configure revision 9e1184fe
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for xrdb 1.2.1. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xrdb/issues>. 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://gitlab.freedesktop.org/xorg/app/xrdb/issues 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='xrdb' 583PACKAGE_TARNAME='xrdb' 584PACKAGE_VERSION='1.2.1' 585PACKAGE_STRING='xrdb 1.2.1' 586PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xrdb/issues' 587PACKAGE_URL='' 588 589ac_unique_file="Makefile.am" 590# Factoring default headers for most tests. 591ac_includes_default="\ 592#include <stdio.h> 593#ifdef HAVE_SYS_TYPES_H 594# include <sys/types.h> 595#endif 596#ifdef HAVE_SYS_STAT_H 597# include <sys/stat.h> 598#endif 599#ifdef STDC_HEADERS 600# include <stdlib.h> 601# include <stddef.h> 602#else 603# ifdef HAVE_STDLIB_H 604# include <stdlib.h> 605# endif 606#endif 607#ifdef HAVE_STRING_H 608# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 609# include <memory.h> 610# endif 611# include <string.h> 612#endif 613#ifdef HAVE_STRINGS_H 614# include <strings.h> 615#endif 616#ifdef HAVE_INTTYPES_H 617# include <inttypes.h> 618#endif 619#ifdef HAVE_STDINT_H 620# include <stdint.h> 621#endif 622#ifdef HAVE_UNISTD_H 623# include <unistd.h> 624#endif" 625 626ac_subst_vars='am__EXEEXT_FALSE 627am__EXEEXT_TRUE 628LTLIBOBJS 629LIBOBJS 630XRDB_LIBS 631XRDB_CFLAGS 632CPP_PATH 633MAN_SUBSTS 634XORG_MAN_PAGE 635ADMIN_MAN_DIR 636DRIVER_MAN_DIR 637MISC_MAN_DIR 638FILE_MAN_DIR 639LIB_MAN_DIR 640APP_MAN_DIR 641ADMIN_MAN_SUFFIX 642DRIVER_MAN_SUFFIX 643MISC_MAN_SUFFIX 644FILE_MAN_SUFFIX 645LIB_MAN_SUFFIX 646APP_MAN_SUFFIX 647SED 648host_os 649host_vendor 650host_cpu 651host 652build_os 653build_vendor 654build_cpu 655build 656INSTALL_CMD 657PKG_CONFIG_LIBDIR 658PKG_CONFIG_PATH 659PKG_CONFIG 660CHANGELOG_CMD 661STRICT_CFLAGS 662CWARNFLAGS 663BASE_CFLAGS 664AM_BACKSLASH 665AM_DEFAULT_VERBOSITY 666AM_DEFAULT_V 667AM_V 668am__fastdepCC_FALSE 669am__fastdepCC_TRUE 670CCDEPMODE 671am__nodep 672AMDEPBACKSLASH 673AMDEP_FALSE 674AMDEP_TRUE 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 729runstatedir 730localstatedir 731sharedstatedir 732sysconfdir 733datadir 734datarootdir 735libexecdir 736sbindir 737bindir 738program_transform_name 739prefix 740exec_prefix 741PACKAGE_URL 742PACKAGE_BUGREPORT 743PACKAGE_STRING 744PACKAGE_VERSION 745PACKAGE_TARNAME 746PACKAGE_NAME 747PATH_SEPARATOR 748SHELL 749am__quote' 750ac_subst_files='' 751ac_user_opts=' 752enable_option_checking 753enable_dependency_tracking 754enable_silent_rules 755enable_selective_werror 756enable_strict_compilation 757with_cpp 758' 759 ac_precious_vars='build_alias 760host_alias 761target_alias 762CC 763CFLAGS 764LDFLAGS 765LIBS 766CPPFLAGS 767CPP 768PKG_CONFIG 769PKG_CONFIG_PATH 770PKG_CONFIG_LIBDIR 771XRDB_CFLAGS 772XRDB_LIBS' 773 774 775# Initialize some variables set by options. 776ac_init_help= 777ac_init_version=false 778ac_unrecognized_opts= 779ac_unrecognized_sep= 780# The variables have the same names as the options, with 781# dashes changed to underlines. 782cache_file=/dev/null 783exec_prefix=NONE 784no_create= 785no_recursion= 786prefix=NONE 787program_prefix=NONE 788program_suffix=NONE 789program_transform_name=s,x,x, 790silent= 791site= 792srcdir= 793verbose= 794x_includes=NONE 795x_libraries=NONE 796 797# Installation directory options. 798# These are left unexpanded so users can "make install exec_prefix=/foo" 799# and all the variables that are supposed to be based on exec_prefix 800# by default will actually change. 801# Use braces instead of parens because sh, perl, etc. also accept them. 802# (The list follows the same order as the GNU Coding Standards.) 803bindir='${exec_prefix}/bin' 804sbindir='${exec_prefix}/sbin' 805libexecdir='${exec_prefix}/libexec' 806datarootdir='${prefix}/share' 807datadir='${datarootdir}' 808sysconfdir='${prefix}/etc' 809sharedstatedir='${prefix}/com' 810localstatedir='${prefix}/var' 811runstatedir='${localstatedir}/run' 812includedir='${prefix}/include' 813oldincludedir='/usr/include' 814docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 815infodir='${datarootdir}/info' 816htmldir='${docdir}' 817dvidir='${docdir}' 818pdfdir='${docdir}' 819psdir='${docdir}' 820libdir='${exec_prefix}/lib' 821localedir='${datarootdir}/locale' 822mandir='${datarootdir}/man' 823 824ac_prev= 825ac_dashdash= 826for ac_option 827do 828 # If the previous option needs an argument, assign it. 829 if test -n "$ac_prev"; then 830 eval $ac_prev=\$ac_option 831 ac_prev= 832 continue 833 fi 834 835 case $ac_option in 836 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 837 *=) ac_optarg= ;; 838 *) ac_optarg=yes ;; 839 esac 840 841 # Accept the important Cygnus configure options, so we can diagnose typos. 842 843 case $ac_dashdash$ac_option in 844 --) 845 ac_dashdash=yes ;; 846 847 -bindir | --bindir | --bindi | --bind | --bin | --bi) 848 ac_prev=bindir ;; 849 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 850 bindir=$ac_optarg ;; 851 852 -build | --build | --buil | --bui | --bu) 853 ac_prev=build_alias ;; 854 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 855 build_alias=$ac_optarg ;; 856 857 -cache-file | --cache-file | --cache-fil | --cache-fi \ 858 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 859 ac_prev=cache_file ;; 860 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 861 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 862 cache_file=$ac_optarg ;; 863 864 --config-cache | -C) 865 cache_file=config.cache ;; 866 867 -datadir | --datadir | --datadi | --datad) 868 ac_prev=datadir ;; 869 -datadir=* | --datadir=* | --datadi=* | --datad=*) 870 datadir=$ac_optarg ;; 871 872 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 873 | --dataroo | --dataro | --datar) 874 ac_prev=datarootdir ;; 875 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 876 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 877 datarootdir=$ac_optarg ;; 878 879 -disable-* | --disable-*) 880 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 881 # Reject names that are not valid shell variable names. 882 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 883 as_fn_error $? "invalid feature name: $ac_useropt" 884 ac_useropt_orig=$ac_useropt 885 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 886 case $ac_user_opts in 887 *" 888"enable_$ac_useropt" 889"*) ;; 890 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 891 ac_unrecognized_sep=', ';; 892 esac 893 eval enable_$ac_useropt=no ;; 894 895 -docdir | --docdir | --docdi | --doc | --do) 896 ac_prev=docdir ;; 897 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 898 docdir=$ac_optarg ;; 899 900 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 901 ac_prev=dvidir ;; 902 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 903 dvidir=$ac_optarg ;; 904 905 -enable-* | --enable-*) 906 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 907 # Reject names that are not valid shell variable names. 908 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 909 as_fn_error $? "invalid feature name: $ac_useropt" 910 ac_useropt_orig=$ac_useropt 911 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 912 case $ac_user_opts in 913 *" 914"enable_$ac_useropt" 915"*) ;; 916 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 917 ac_unrecognized_sep=', ';; 918 esac 919 eval enable_$ac_useropt=\$ac_optarg ;; 920 921 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 922 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 923 | --exec | --exe | --ex) 924 ac_prev=exec_prefix ;; 925 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 926 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 927 | --exec=* | --exe=* | --ex=*) 928 exec_prefix=$ac_optarg ;; 929 930 -gas | --gas | --ga | --g) 931 # Obsolete; use --with-gas. 932 with_gas=yes ;; 933 934 -help | --help | --hel | --he | -h) 935 ac_init_help=long ;; 936 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 937 ac_init_help=recursive ;; 938 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 939 ac_init_help=short ;; 940 941 -host | --host | --hos | --ho) 942 ac_prev=host_alias ;; 943 -host=* | --host=* | --hos=* | --ho=*) 944 host_alias=$ac_optarg ;; 945 946 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 947 ac_prev=htmldir ;; 948 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 949 | --ht=*) 950 htmldir=$ac_optarg ;; 951 952 -includedir | --includedir | --includedi | --included | --include \ 953 | --includ | --inclu | --incl | --inc) 954 ac_prev=includedir ;; 955 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 956 | --includ=* | --inclu=* | --incl=* | --inc=*) 957 includedir=$ac_optarg ;; 958 959 -infodir | --infodir | --infodi | --infod | --info | --inf) 960 ac_prev=infodir ;; 961 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 962 infodir=$ac_optarg ;; 963 964 -libdir | --libdir | --libdi | --libd) 965 ac_prev=libdir ;; 966 -libdir=* | --libdir=* | --libdi=* | --libd=*) 967 libdir=$ac_optarg ;; 968 969 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 970 | --libexe | --libex | --libe) 971 ac_prev=libexecdir ;; 972 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 973 | --libexe=* | --libex=* | --libe=*) 974 libexecdir=$ac_optarg ;; 975 976 -localedir | --localedir | --localedi | --localed | --locale) 977 ac_prev=localedir ;; 978 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 979 localedir=$ac_optarg ;; 980 981 -localstatedir | --localstatedir | --localstatedi | --localstated \ 982 | --localstate | --localstat | --localsta | --localst | --locals) 983 ac_prev=localstatedir ;; 984 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 985 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 986 localstatedir=$ac_optarg ;; 987 988 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 989 ac_prev=mandir ;; 990 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 991 mandir=$ac_optarg ;; 992 993 -nfp | --nfp | --nf) 994 # Obsolete; use --without-fp. 995 with_fp=no ;; 996 997 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 998 | --no-cr | --no-c | -n) 999 no_create=yes ;; 1000 1001 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1002 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1003 no_recursion=yes ;; 1004 1005 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1006 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1007 | --oldin | --oldi | --old | --ol | --o) 1008 ac_prev=oldincludedir ;; 1009 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1010 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1011 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1012 oldincludedir=$ac_optarg ;; 1013 1014 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1015 ac_prev=prefix ;; 1016 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1017 prefix=$ac_optarg ;; 1018 1019 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1020 | --program-pre | --program-pr | --program-p) 1021 ac_prev=program_prefix ;; 1022 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1023 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1024 program_prefix=$ac_optarg ;; 1025 1026 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1027 | --program-suf | --program-su | --program-s) 1028 ac_prev=program_suffix ;; 1029 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1030 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1031 program_suffix=$ac_optarg ;; 1032 1033 -program-transform-name | --program-transform-name \ 1034 | --program-transform-nam | --program-transform-na \ 1035 | --program-transform-n | --program-transform- \ 1036 | --program-transform | --program-transfor \ 1037 | --program-transfo | --program-transf \ 1038 | --program-trans | --program-tran \ 1039 | --progr-tra | --program-tr | --program-t) 1040 ac_prev=program_transform_name ;; 1041 -program-transform-name=* | --program-transform-name=* \ 1042 | --program-transform-nam=* | --program-transform-na=* \ 1043 | --program-transform-n=* | --program-transform-=* \ 1044 | --program-transform=* | --program-transfor=* \ 1045 | --program-transfo=* | --program-transf=* \ 1046 | --program-trans=* | --program-tran=* \ 1047 | --progr-tra=* | --program-tr=* | --program-t=*) 1048 program_transform_name=$ac_optarg ;; 1049 1050 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1051 ac_prev=pdfdir ;; 1052 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1053 pdfdir=$ac_optarg ;; 1054 1055 -psdir | --psdir | --psdi | --psd | --ps) 1056 ac_prev=psdir ;; 1057 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1058 psdir=$ac_optarg ;; 1059 1060 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1061 | -silent | --silent | --silen | --sile | --sil) 1062 silent=yes ;; 1063 1064 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1065 | --runstate | --runstat | --runsta | --runst | --runs \ 1066 | --run | --ru | --r) 1067 ac_prev=runstatedir ;; 1068 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1069 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1070 | --run=* | --ru=* | --r=*) 1071 runstatedir=$ac_optarg ;; 1072 1073 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1074 ac_prev=sbindir ;; 1075 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1076 | --sbi=* | --sb=*) 1077 sbindir=$ac_optarg ;; 1078 1079 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1080 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1081 | --sharedst | --shareds | --shared | --share | --shar \ 1082 | --sha | --sh) 1083 ac_prev=sharedstatedir ;; 1084 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1085 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1086 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1087 | --sha=* | --sh=*) 1088 sharedstatedir=$ac_optarg ;; 1089 1090 -site | --site | --sit) 1091 ac_prev=site ;; 1092 -site=* | --site=* | --sit=*) 1093 site=$ac_optarg ;; 1094 1095 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1096 ac_prev=srcdir ;; 1097 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1098 srcdir=$ac_optarg ;; 1099 1100 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1101 | --syscon | --sysco | --sysc | --sys | --sy) 1102 ac_prev=sysconfdir ;; 1103 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1104 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1105 sysconfdir=$ac_optarg ;; 1106 1107 -target | --target | --targe | --targ | --tar | --ta | --t) 1108 ac_prev=target_alias ;; 1109 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1110 target_alias=$ac_optarg ;; 1111 1112 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1113 verbose=yes ;; 1114 1115 -version | --version | --versio | --versi | --vers | -V) 1116 ac_init_version=: ;; 1117 1118 -with-* | --with-*) 1119 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1120 # Reject names that are not valid shell variable names. 1121 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1122 as_fn_error $? "invalid package name: $ac_useropt" 1123 ac_useropt_orig=$ac_useropt 1124 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1125 case $ac_user_opts in 1126 *" 1127"with_$ac_useropt" 1128"*) ;; 1129 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1130 ac_unrecognized_sep=', ';; 1131 esac 1132 eval with_$ac_useropt=\$ac_optarg ;; 1133 1134 -without-* | --without-*) 1135 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1136 # Reject names that are not valid shell variable names. 1137 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1138 as_fn_error $? "invalid package name: $ac_useropt" 1139 ac_useropt_orig=$ac_useropt 1140 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1141 case $ac_user_opts in 1142 *" 1143"with_$ac_useropt" 1144"*) ;; 1145 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1146 ac_unrecognized_sep=', ';; 1147 esac 1148 eval with_$ac_useropt=no ;; 1149 1150 --x) 1151 # Obsolete; use --with-x. 1152 with_x=yes ;; 1153 1154 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1155 | --x-incl | --x-inc | --x-in | --x-i) 1156 ac_prev=x_includes ;; 1157 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1158 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1159 x_includes=$ac_optarg ;; 1160 1161 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1162 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1163 ac_prev=x_libraries ;; 1164 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1165 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1166 x_libraries=$ac_optarg ;; 1167 1168 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1169Try \`$0 --help' for more information" 1170 ;; 1171 1172 *=*) 1173 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1174 # Reject names that are not valid shell variable names. 1175 case $ac_envvar in #( 1176 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1177 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1178 esac 1179 eval $ac_envvar=\$ac_optarg 1180 export $ac_envvar ;; 1181 1182 *) 1183 # FIXME: should be removed in autoconf 3.0. 1184 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1185 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1186 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1187 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1188 ;; 1189 1190 esac 1191done 1192 1193if test -n "$ac_prev"; then 1194 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1195 as_fn_error $? "missing argument to $ac_option" 1196fi 1197 1198if test -n "$ac_unrecognized_opts"; then 1199 case $enable_option_checking in 1200 no) ;; 1201 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1202 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1203 esac 1204fi 1205 1206# Check all directory arguments for consistency. 1207for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1208 datadir sysconfdir sharedstatedir localstatedir includedir \ 1209 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1210 libdir localedir mandir runstatedir 1211do 1212 eval ac_val=\$$ac_var 1213 # Remove trailing slashes. 1214 case $ac_val in 1215 */ ) 1216 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1217 eval $ac_var=\$ac_val;; 1218 esac 1219 # Be sure to have absolute directory names. 1220 case $ac_val in 1221 [\\/$]* | ?:[\\/]* ) continue;; 1222 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1223 esac 1224 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1225done 1226 1227# There might be people who depend on the old broken behavior: `$host' 1228# used to hold the argument of --host etc. 1229# FIXME: To remove some day. 1230build=$build_alias 1231host=$host_alias 1232target=$target_alias 1233 1234# FIXME: To remove some day. 1235if test "x$host_alias" != x; then 1236 if test "x$build_alias" = x; then 1237 cross_compiling=maybe 1238 elif test "x$build_alias" != "x$host_alias"; then 1239 cross_compiling=yes 1240 fi 1241fi 1242 1243ac_tool_prefix= 1244test -n "$host_alias" && ac_tool_prefix=$host_alias- 1245 1246test "$silent" = yes && exec 6>/dev/null 1247 1248 1249ac_pwd=`pwd` && test -n "$ac_pwd" && 1250ac_ls_di=`ls -di .` && 1251ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1252 as_fn_error $? "working directory cannot be determined" 1253test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1254 as_fn_error $? "pwd does not report name of working directory" 1255 1256 1257# Find the source files, if location was not specified. 1258if test -z "$srcdir"; then 1259 ac_srcdir_defaulted=yes 1260 # Try the directory containing this script, then the parent directory. 1261 ac_confdir=`$as_dirname -- "$as_myself" || 1262$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1263 X"$as_myself" : 'X\(//\)[^/]' \| \ 1264 X"$as_myself" : 'X\(//\)$' \| \ 1265 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1266$as_echo X"$as_myself" | 1267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1268 s//\1/ 1269 q 1270 } 1271 /^X\(\/\/\)[^/].*/{ 1272 s//\1/ 1273 q 1274 } 1275 /^X\(\/\/\)$/{ 1276 s//\1/ 1277 q 1278 } 1279 /^X\(\/\).*/{ 1280 s//\1/ 1281 q 1282 } 1283 s/.*/./; q'` 1284 srcdir=$ac_confdir 1285 if test ! -r "$srcdir/$ac_unique_file"; then 1286 srcdir=.. 1287 fi 1288else 1289 ac_srcdir_defaulted=no 1290fi 1291if test ! -r "$srcdir/$ac_unique_file"; then 1292 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1293 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1294fi 1295ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1296ac_abs_confdir=`( 1297 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1298 pwd)` 1299# When building in place, set srcdir=. 1300if test "$ac_abs_confdir" = "$ac_pwd"; then 1301 srcdir=. 1302fi 1303# Remove unnecessary trailing slashes from srcdir. 1304# Double slashes in file names in object file debugging info 1305# mess up M-x gdb in Emacs. 1306case $srcdir in 1307*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1308esac 1309for ac_var in $ac_precious_vars; do 1310 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1311 eval ac_env_${ac_var}_value=\$${ac_var} 1312 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1313 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1314done 1315 1316# 1317# Report the --help message. 1318# 1319if test "$ac_init_help" = "long"; then 1320 # Omit some internal or obsolete options to make the list less imposing. 1321 # This message is too long to be a string in the A/UX 3.1 sh. 1322 cat <<_ACEOF 1323\`configure' configures xrdb 1.2.1 to adapt to many kinds of systems. 1324 1325Usage: $0 [OPTION]... [VAR=VALUE]... 1326 1327To assign environment variables (e.g., CC, CFLAGS...), specify them as 1328VAR=VALUE. See below for descriptions of some of the useful variables. 1329 1330Defaults for the options are specified in brackets. 1331 1332Configuration: 1333 -h, --help display this help and exit 1334 --help=short display options specific to this package 1335 --help=recursive display the short help of all the included packages 1336 -V, --version display version information and exit 1337 -q, --quiet, --silent do not print \`checking ...' messages 1338 --cache-file=FILE cache test results in FILE [disabled] 1339 -C, --config-cache alias for \`--cache-file=config.cache' 1340 -n, --no-create do not create output files 1341 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1342 1343Installation directories: 1344 --prefix=PREFIX install architecture-independent files in PREFIX 1345 [$ac_default_prefix] 1346 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1347 [PREFIX] 1348 1349By default, \`make install' will install all the files in 1350\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1351an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1352for instance \`--prefix=\$HOME'. 1353 1354For better control, use the options below. 1355 1356Fine tuning of the installation directories: 1357 --bindir=DIR user executables [EPREFIX/bin] 1358 --sbindir=DIR system admin executables [EPREFIX/sbin] 1359 --libexecdir=DIR program executables [EPREFIX/libexec] 1360 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1361 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1362 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1363 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1364 --libdir=DIR object code libraries [EPREFIX/lib] 1365 --includedir=DIR C header files [PREFIX/include] 1366 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1367 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1368 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1369 --infodir=DIR info documentation [DATAROOTDIR/info] 1370 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1371 --mandir=DIR man documentation [DATAROOTDIR/man] 1372 --docdir=DIR documentation root [DATAROOTDIR/doc/xrdb] 1373 --htmldir=DIR html documentation [DOCDIR] 1374 --dvidir=DIR dvi documentation [DOCDIR] 1375 --pdfdir=DIR pdf documentation [DOCDIR] 1376 --psdir=DIR ps documentation [DOCDIR] 1377_ACEOF 1378 1379 cat <<\_ACEOF 1380 1381Program names: 1382 --program-prefix=PREFIX prepend PREFIX to installed program names 1383 --program-suffix=SUFFIX append SUFFIX to installed program names 1384 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1385 1386System types: 1387 --build=BUILD configure for building on BUILD [guessed] 1388 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1389_ACEOF 1390fi 1391 1392if test -n "$ac_init_help"; then 1393 case $ac_init_help in 1394 short | recursive ) echo "Configuration of xrdb 1.2.1:";; 1395 esac 1396 cat <<\_ACEOF 1397 1398Optional Features: 1399 --disable-option-checking ignore unrecognized --enable/--with options 1400 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1401 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1402 --enable-dependency-tracking 1403 do not reject slow dependency extractors 1404 --disable-dependency-tracking 1405 speeds up one-time build 1406 --enable-silent-rules less verbose build output (undo: "make V=1") 1407 --disable-silent-rules verbose build output (undo: "make V=0") 1408 --disable-selective-werror 1409 Turn off selective compiler errors. (default: 1410 enabled) 1411 --enable-strict-compilation 1412 Enable all warnings from compiler and make them 1413 errors (default: disabled) 1414 1415Optional Packages: 1416 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1417 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1418 --with-cpp=path comma-separated list of paths to cpp command for 1419 xrdb to use at runtime 1420 1421Some influential environment variables: 1422 CC C compiler command 1423 CFLAGS C compiler flags 1424 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1425 nonstandard directory <lib dir> 1426 LIBS libraries to pass to the linker, e.g. -l<library> 1427 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1428 you have headers in a nonstandard directory <include dir> 1429 CPP C preprocessor 1430 PKG_CONFIG path to pkg-config utility 1431 PKG_CONFIG_PATH 1432 directories to add to pkg-config's search path 1433 PKG_CONFIG_LIBDIR 1434 path overriding pkg-config's built-in search path 1435 XRDB_CFLAGS C compiler flags for XRDB, overriding pkg-config 1436 XRDB_LIBS linker flags for XRDB, overriding pkg-config 1437 1438Use these variables to override the choices made by `configure' or to help 1439it to find libraries and programs with nonstandard names/locations. 1440 1441Report bugs to <https://gitlab.freedesktop.org/xorg/app/xrdb/issues>. 1442_ACEOF 1443ac_status=$? 1444fi 1445 1446if test "$ac_init_help" = "recursive"; then 1447 # If there are subdirs, report their specific --help. 1448 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1449 test -d "$ac_dir" || 1450 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1451 continue 1452 ac_builddir=. 1453 1454case "$ac_dir" in 1455.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1456*) 1457 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1458 # A ".." for each directory in $ac_dir_suffix. 1459 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1460 case $ac_top_builddir_sub in 1461 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1462 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1463 esac ;; 1464esac 1465ac_abs_top_builddir=$ac_pwd 1466ac_abs_builddir=$ac_pwd$ac_dir_suffix 1467# for backward compatibility: 1468ac_top_builddir=$ac_top_build_prefix 1469 1470case $srcdir in 1471 .) # We are building in place. 1472 ac_srcdir=. 1473 ac_top_srcdir=$ac_top_builddir_sub 1474 ac_abs_top_srcdir=$ac_pwd ;; 1475 [\\/]* | ?:[\\/]* ) # Absolute name. 1476 ac_srcdir=$srcdir$ac_dir_suffix; 1477 ac_top_srcdir=$srcdir 1478 ac_abs_top_srcdir=$srcdir ;; 1479 *) # Relative name. 1480 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1481 ac_top_srcdir=$ac_top_build_prefix$srcdir 1482 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1483esac 1484ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1485 1486 cd "$ac_dir" || { ac_status=$?; continue; } 1487 # Check for guested configure. 1488 if test -f "$ac_srcdir/configure.gnu"; then 1489 echo && 1490 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1491 elif test -f "$ac_srcdir/configure"; then 1492 echo && 1493 $SHELL "$ac_srcdir/configure" --help=recursive 1494 else 1495 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1496 fi || ac_status=$? 1497 cd "$ac_pwd" || { ac_status=$?; break; } 1498 done 1499fi 1500 1501test -n "$ac_init_help" && exit $ac_status 1502if $ac_init_version; then 1503 cat <<\_ACEOF 1504xrdb configure 1.2.1 1505generated by GNU Autoconf 2.69 1506 1507Copyright (C) 2012 Free Software Foundation, Inc. 1508This configure script is free software; the Free Software Foundation 1509gives unlimited permission to copy, distribute and modify it. 1510_ACEOF 1511 exit 1512fi 1513 1514## ------------------------ ## 1515## Autoconf initialization. ## 1516## ------------------------ ## 1517 1518# ac_fn_c_try_compile LINENO 1519# -------------------------- 1520# Try to compile conftest.$ac_ext, and return whether this succeeded. 1521ac_fn_c_try_compile () 1522{ 1523 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1524 rm -f conftest.$ac_objext 1525 if { { ac_try="$ac_compile" 1526case "(($ac_try" in 1527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1528 *) ac_try_echo=$ac_try;; 1529esac 1530eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1531$as_echo "$ac_try_echo"; } >&5 1532 (eval "$ac_compile") 2>conftest.err 1533 ac_status=$? 1534 if test -s conftest.err; then 1535 grep -v '^ *+' conftest.err >conftest.er1 1536 cat conftest.er1 >&5 1537 mv -f conftest.er1 conftest.err 1538 fi 1539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1540 test $ac_status = 0; } && { 1541 test -z "$ac_c_werror_flag" || 1542 test ! -s conftest.err 1543 } && test -s conftest.$ac_objext; then : 1544 ac_retval=0 1545else 1546 $as_echo "$as_me: failed program was:" >&5 1547sed 's/^/| /' conftest.$ac_ext >&5 1548 1549 ac_retval=1 1550fi 1551 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1552 as_fn_set_status $ac_retval 1553 1554} # ac_fn_c_try_compile 1555 1556# ac_fn_c_try_cpp LINENO 1557# ---------------------- 1558# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1559ac_fn_c_try_cpp () 1560{ 1561 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1562 if { { ac_try="$ac_cpp conftest.$ac_ext" 1563case "(($ac_try" in 1564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1565 *) ac_try_echo=$ac_try;; 1566esac 1567eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1568$as_echo "$ac_try_echo"; } >&5 1569 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1570 ac_status=$? 1571 if test -s conftest.err; then 1572 grep -v '^ *+' conftest.err >conftest.er1 1573 cat conftest.er1 >&5 1574 mv -f conftest.er1 conftest.err 1575 fi 1576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1577 test $ac_status = 0; } > conftest.i && { 1578 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1579 test ! -s conftest.err 1580 }; then : 1581 ac_retval=0 1582else 1583 $as_echo "$as_me: failed program was:" >&5 1584sed 's/^/| /' conftest.$ac_ext >&5 1585 1586 ac_retval=1 1587fi 1588 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1589 as_fn_set_status $ac_retval 1590 1591} # ac_fn_c_try_cpp 1592 1593# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1594# ------------------------------------------------------- 1595# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1596# the include files in INCLUDES and setting the cache variable VAR 1597# accordingly. 1598ac_fn_c_check_header_mongrel () 1599{ 1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1601 if eval \${$3+:} false; then : 1602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1603$as_echo_n "checking for $2... " >&6; } 1604if eval \${$3+:} false; then : 1605 $as_echo_n "(cached) " >&6 1606fi 1607eval ac_res=\$$3 1608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1609$as_echo "$ac_res" >&6; } 1610else 1611 # Is the header compilable? 1612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1613$as_echo_n "checking $2 usability... " >&6; } 1614cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1615/* end confdefs.h. */ 1616$4 1617#include <$2> 1618_ACEOF 1619if ac_fn_c_try_compile "$LINENO"; then : 1620 ac_header_compiler=yes 1621else 1622 ac_header_compiler=no 1623fi 1624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1626$as_echo "$ac_header_compiler" >&6; } 1627 1628# Is the header present? 1629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1630$as_echo_n "checking $2 presence... " >&6; } 1631cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1632/* end confdefs.h. */ 1633#include <$2> 1634_ACEOF 1635if ac_fn_c_try_cpp "$LINENO"; then : 1636 ac_header_preproc=yes 1637else 1638 ac_header_preproc=no 1639fi 1640rm -f conftest.err conftest.i conftest.$ac_ext 1641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1642$as_echo "$ac_header_preproc" >&6; } 1643 1644# So? What about this header? 1645case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1646 yes:no: ) 1647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1648$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1650$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1651 ;; 1652 no:yes:* ) 1653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1654$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1656$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1658$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1660$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1662$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1663( $as_echo "## ------------------------------------------------------------------ ## 1664## Report this to https://gitlab.freedesktop.org/xorg/app/xrdb/issues ## 1665## ------------------------------------------------------------------ ##" 1666 ) | sed "s/^/$as_me: WARNING: /" >&2 1667 ;; 1668esac 1669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1670$as_echo_n "checking for $2... " >&6; } 1671if eval \${$3+:} false; then : 1672 $as_echo_n "(cached) " >&6 1673else 1674 eval "$3=\$ac_header_compiler" 1675fi 1676eval ac_res=\$$3 1677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1678$as_echo "$ac_res" >&6; } 1679fi 1680 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1681 1682} # ac_fn_c_check_header_mongrel 1683 1684# ac_fn_c_try_run LINENO 1685# ---------------------- 1686# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1687# that executables *can* be run. 1688ac_fn_c_try_run () 1689{ 1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1691 if { { ac_try="$ac_link" 1692case "(($ac_try" in 1693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1694 *) ac_try_echo=$ac_try;; 1695esac 1696eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1697$as_echo "$ac_try_echo"; } >&5 1698 (eval "$ac_link") 2>&5 1699 ac_status=$? 1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1701 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1702 { { case "(($ac_try" in 1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1704 *) ac_try_echo=$ac_try;; 1705esac 1706eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1707$as_echo "$ac_try_echo"; } >&5 1708 (eval "$ac_try") 2>&5 1709 ac_status=$? 1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1711 test $ac_status = 0; }; }; then : 1712 ac_retval=0 1713else 1714 $as_echo "$as_me: program exited with status $ac_status" >&5 1715 $as_echo "$as_me: failed program was:" >&5 1716sed 's/^/| /' conftest.$ac_ext >&5 1717 1718 ac_retval=$ac_status 1719fi 1720 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1722 as_fn_set_status $ac_retval 1723 1724} # ac_fn_c_try_run 1725 1726# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1727# ------------------------------------------------------- 1728# Tests whether HEADER exists and can be compiled using the include files in 1729# INCLUDES, setting the cache variable VAR accordingly. 1730ac_fn_c_check_header_compile () 1731{ 1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1734$as_echo_n "checking for $2... " >&6; } 1735if eval \${$3+:} false; then : 1736 $as_echo_n "(cached) " >&6 1737else 1738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1739/* end confdefs.h. */ 1740$4 1741#include <$2> 1742_ACEOF 1743if ac_fn_c_try_compile "$LINENO"; then : 1744 eval "$3=yes" 1745else 1746 eval "$3=no" 1747fi 1748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1749fi 1750eval ac_res=\$$3 1751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1752$as_echo "$ac_res" >&6; } 1753 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1754 1755} # ac_fn_c_check_header_compile 1756 1757# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1758# --------------------------------------------- 1759# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1760# accordingly. 1761ac_fn_c_check_decl () 1762{ 1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1764 as_decl_name=`echo $2|sed 's/ *(.*//'` 1765 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1767$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1768if eval \${$3+:} false; then : 1769 $as_echo_n "(cached) " >&6 1770else 1771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1772/* end confdefs.h. */ 1773$4 1774int 1775main () 1776{ 1777#ifndef $as_decl_name 1778#ifdef __cplusplus 1779 (void) $as_decl_use; 1780#else 1781 (void) $as_decl_name; 1782#endif 1783#endif 1784 1785 ; 1786 return 0; 1787} 1788_ACEOF 1789if ac_fn_c_try_compile "$LINENO"; then : 1790 eval "$3=yes" 1791else 1792 eval "$3=no" 1793fi 1794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1795fi 1796eval ac_res=\$$3 1797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1798$as_echo "$ac_res" >&6; } 1799 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1800 1801} # ac_fn_c_check_decl 1802 1803# ac_fn_c_try_link LINENO 1804# ----------------------- 1805# Try to link conftest.$ac_ext, and return whether this succeeded. 1806ac_fn_c_try_link () 1807{ 1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1809 rm -f conftest.$ac_objext conftest$ac_exeext 1810 if { { ac_try="$ac_link" 1811case "(($ac_try" in 1812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1813 *) ac_try_echo=$ac_try;; 1814esac 1815eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1816$as_echo "$ac_try_echo"; } >&5 1817 (eval "$ac_link") 2>conftest.err 1818 ac_status=$? 1819 if test -s conftest.err; then 1820 grep -v '^ *+' conftest.err >conftest.er1 1821 cat conftest.er1 >&5 1822 mv -f conftest.er1 conftest.err 1823 fi 1824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1825 test $ac_status = 0; } && { 1826 test -z "$ac_c_werror_flag" || 1827 test ! -s conftest.err 1828 } && test -s conftest$ac_exeext && { 1829 test "$cross_compiling" = yes || 1830 test -x conftest$ac_exeext 1831 }; then : 1832 ac_retval=0 1833else 1834 $as_echo "$as_me: failed program was:" >&5 1835sed 's/^/| /' conftest.$ac_ext >&5 1836 1837 ac_retval=1 1838fi 1839 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1840 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1841 # interfere with the next link command; also delete a directory that is 1842 # left behind by Apple's compiler. We do this before executing the actions. 1843 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1844 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1845 as_fn_set_status $ac_retval 1846 1847} # ac_fn_c_try_link 1848 1849# ac_fn_c_check_func LINENO FUNC VAR 1850# ---------------------------------- 1851# Tests whether FUNC exists, setting the cache variable VAR accordingly 1852ac_fn_c_check_func () 1853{ 1854 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1856$as_echo_n "checking for $2... " >&6; } 1857if eval \${$3+:} false; then : 1858 $as_echo_n "(cached) " >&6 1859else 1860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1861/* end confdefs.h. */ 1862/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1863 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1864#define $2 innocuous_$2 1865 1866/* System header to define __stub macros and hopefully few prototypes, 1867 which can conflict with char $2 (); below. 1868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1869 <limits.h> exists even on freestanding compilers. */ 1870 1871#ifdef __STDC__ 1872# include <limits.h> 1873#else 1874# include <assert.h> 1875#endif 1876 1877#undef $2 1878 1879/* Override any GCC internal prototype to avoid an error. 1880 Use char because int might match the return type of a GCC 1881 builtin and then its argument prototype would still apply. */ 1882#ifdef __cplusplus 1883extern "C" 1884#endif 1885char $2 (); 1886/* The GNU C library defines this for functions which it implements 1887 to always fail with ENOSYS. Some functions are actually named 1888 something starting with __ and the normal name is an alias. */ 1889#if defined __stub_$2 || defined __stub___$2 1890choke me 1891#endif 1892 1893int 1894main () 1895{ 1896return $2 (); 1897 ; 1898 return 0; 1899} 1900_ACEOF 1901if ac_fn_c_try_link "$LINENO"; then : 1902 eval "$3=yes" 1903else 1904 eval "$3=no" 1905fi 1906rm -f core conftest.err conftest.$ac_objext \ 1907 conftest$ac_exeext conftest.$ac_ext 1908fi 1909eval ac_res=\$$3 1910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1911$as_echo "$ac_res" >&6; } 1912 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1913 1914} # ac_fn_c_check_func 1915cat >config.log <<_ACEOF 1916This file contains any messages produced by compilers while 1917running configure, to aid debugging if configure makes a mistake. 1918 1919It was created by xrdb $as_me 1.2.1, which was 1920generated by GNU Autoconf 2.69. Invocation command line was 1921 1922 $ $0 $@ 1923 1924_ACEOF 1925exec 5>>config.log 1926{ 1927cat <<_ASUNAME 1928## --------- ## 1929## Platform. ## 1930## --------- ## 1931 1932hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1933uname -m = `(uname -m) 2>/dev/null || echo unknown` 1934uname -r = `(uname -r) 2>/dev/null || echo unknown` 1935uname -s = `(uname -s) 2>/dev/null || echo unknown` 1936uname -v = `(uname -v) 2>/dev/null || echo unknown` 1937 1938/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1939/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1940 1941/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1942/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1943/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1944/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1945/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1946/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1947/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1948 1949_ASUNAME 1950 1951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1952for as_dir in $PATH 1953do 1954 IFS=$as_save_IFS 1955 test -z "$as_dir" && as_dir=. 1956 $as_echo "PATH: $as_dir" 1957 done 1958IFS=$as_save_IFS 1959 1960} >&5 1961 1962cat >&5 <<_ACEOF 1963 1964 1965## ----------- ## 1966## Core tests. ## 1967## ----------- ## 1968 1969_ACEOF 1970 1971 1972# Keep a trace of the command line. 1973# Strip out --no-create and --no-recursion so they do not pile up. 1974# Strip out --silent because we don't want to record it for future runs. 1975# Also quote any args containing shell meta-characters. 1976# Make two passes to allow for proper duplicate-argument suppression. 1977ac_configure_args= 1978ac_configure_args0= 1979ac_configure_args1= 1980ac_must_keep_next=false 1981for ac_pass in 1 2 1982do 1983 for ac_arg 1984 do 1985 case $ac_arg in 1986 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1987 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1988 | -silent | --silent | --silen | --sile | --sil) 1989 continue ;; 1990 *\'*) 1991 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1992 esac 1993 case $ac_pass in 1994 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1995 2) 1996 as_fn_append ac_configure_args1 " '$ac_arg'" 1997 if test $ac_must_keep_next = true; then 1998 ac_must_keep_next=false # Got value, back to normal. 1999 else 2000 case $ac_arg in 2001 *=* | --config-cache | -C | -disable-* | --disable-* \ 2002 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2003 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2004 | -with-* | --with-* | -without-* | --without-* | --x) 2005 case "$ac_configure_args0 " in 2006 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2007 esac 2008 ;; 2009 -* ) ac_must_keep_next=true ;; 2010 esac 2011 fi 2012 as_fn_append ac_configure_args " '$ac_arg'" 2013 ;; 2014 esac 2015 done 2016done 2017{ ac_configure_args0=; unset ac_configure_args0;} 2018{ ac_configure_args1=; unset ac_configure_args1;} 2019 2020# When interrupted or exit'd, cleanup temporary files, and complete 2021# config.log. We remove comments because anyway the quotes in there 2022# would cause problems or look ugly. 2023# WARNING: Use '\'' to represent an apostrophe within the trap. 2024# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2025trap 'exit_status=$? 2026 # Save into config.log some information that might help in debugging. 2027 { 2028 echo 2029 2030 $as_echo "## ---------------- ## 2031## Cache variables. ## 2032## ---------------- ##" 2033 echo 2034 # The following way of writing the cache mishandles newlines in values, 2035( 2036 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2037 eval ac_val=\$$ac_var 2038 case $ac_val in #( 2039 *${as_nl}*) 2040 case $ac_var in #( 2041 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2042$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2043 esac 2044 case $ac_var in #( 2045 _ | IFS | as_nl) ;; #( 2046 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2047 *) { eval $ac_var=; unset $ac_var;} ;; 2048 esac ;; 2049 esac 2050 done 2051 (set) 2>&1 | 2052 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2053 *${as_nl}ac_space=\ *) 2054 sed -n \ 2055 "s/'\''/'\''\\\\'\'''\''/g; 2056 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2057 ;; #( 2058 *) 2059 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2060 ;; 2061 esac | 2062 sort 2063) 2064 echo 2065 2066 $as_echo "## ----------------- ## 2067## Output variables. ## 2068## ----------------- ##" 2069 echo 2070 for ac_var in $ac_subst_vars 2071 do 2072 eval ac_val=\$$ac_var 2073 case $ac_val in 2074 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2075 esac 2076 $as_echo "$ac_var='\''$ac_val'\''" 2077 done | sort 2078 echo 2079 2080 if test -n "$ac_subst_files"; then 2081 $as_echo "## ------------------- ## 2082## File substitutions. ## 2083## ------------------- ##" 2084 echo 2085 for ac_var in $ac_subst_files 2086 do 2087 eval ac_val=\$$ac_var 2088 case $ac_val in 2089 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2090 esac 2091 $as_echo "$ac_var='\''$ac_val'\''" 2092 done | sort 2093 echo 2094 fi 2095 2096 if test -s confdefs.h; then 2097 $as_echo "## ----------- ## 2098## confdefs.h. ## 2099## ----------- ##" 2100 echo 2101 cat confdefs.h 2102 echo 2103 fi 2104 test "$ac_signal" != 0 && 2105 $as_echo "$as_me: caught signal $ac_signal" 2106 $as_echo "$as_me: exit $exit_status" 2107 } >&5 2108 rm -f core *.core core.conftest.* && 2109 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2110 exit $exit_status 2111' 0 2112for ac_signal in 1 2 13 15; do 2113 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2114done 2115ac_signal=0 2116 2117# confdefs.h avoids OS command line length limits that DEFS can exceed. 2118rm -f -r conftest* confdefs.h 2119 2120$as_echo "/* confdefs.h */" > confdefs.h 2121 2122# Predefined preprocessor variables. 2123 2124cat >>confdefs.h <<_ACEOF 2125#define PACKAGE_NAME "$PACKAGE_NAME" 2126_ACEOF 2127 2128cat >>confdefs.h <<_ACEOF 2129#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2130_ACEOF 2131 2132cat >>confdefs.h <<_ACEOF 2133#define PACKAGE_VERSION "$PACKAGE_VERSION" 2134_ACEOF 2135 2136cat >>confdefs.h <<_ACEOF 2137#define PACKAGE_STRING "$PACKAGE_STRING" 2138_ACEOF 2139 2140cat >>confdefs.h <<_ACEOF 2141#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2142_ACEOF 2143 2144cat >>confdefs.h <<_ACEOF 2145#define PACKAGE_URL "$PACKAGE_URL" 2146_ACEOF 2147 2148 2149# Let the site file select an alternate cache file if it wants to. 2150# Prefer an explicitly selected file to automatically selected ones. 2151ac_site_file1=NONE 2152ac_site_file2=NONE 2153if test -n "$CONFIG_SITE"; then 2154 # We do not want a PATH search for config.site. 2155 case $CONFIG_SITE in #(( 2156 -*) ac_site_file1=./$CONFIG_SITE;; 2157 */*) ac_site_file1=$CONFIG_SITE;; 2158 *) ac_site_file1=./$CONFIG_SITE;; 2159 esac 2160elif test "x$prefix" != xNONE; then 2161 ac_site_file1=$prefix/share/config.site 2162 ac_site_file2=$prefix/etc/config.site 2163else 2164 ac_site_file1=$ac_default_prefix/share/config.site 2165 ac_site_file2=$ac_default_prefix/etc/config.site 2166fi 2167for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2168do 2169 test "x$ac_site_file" = xNONE && continue 2170 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2171 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2172$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2173 sed 's/^/| /' "$ac_site_file" >&5 2174 . "$ac_site_file" \ 2175 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2176$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2177as_fn_error $? "failed to load site script $ac_site_file 2178See \`config.log' for more details" "$LINENO" 5; } 2179 fi 2180done 2181 2182if test -r "$cache_file"; then 2183 # Some versions of bash will fail to source /dev/null (special files 2184 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2185 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2186 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2187$as_echo "$as_me: loading cache $cache_file" >&6;} 2188 case $cache_file in 2189 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2190 *) . "./$cache_file";; 2191 esac 2192 fi 2193else 2194 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2195$as_echo "$as_me: creating cache $cache_file" >&6;} 2196 >$cache_file 2197fi 2198 2199# Check that the precious variables saved in the cache have kept the same 2200# value. 2201ac_cache_corrupted=false 2202for ac_var in $ac_precious_vars; do 2203 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2204 eval ac_new_set=\$ac_env_${ac_var}_set 2205 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2206 eval ac_new_val=\$ac_env_${ac_var}_value 2207 case $ac_old_set,$ac_new_set in 2208 set,) 2209 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2210$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2211 ac_cache_corrupted=: ;; 2212 ,set) 2213 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2214$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2215 ac_cache_corrupted=: ;; 2216 ,);; 2217 *) 2218 if test "x$ac_old_val" != "x$ac_new_val"; then 2219 # differences in whitespace do not lead to failure. 2220 ac_old_val_w=`echo x $ac_old_val` 2221 ac_new_val_w=`echo x $ac_new_val` 2222 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2223 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2224$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2225 ac_cache_corrupted=: 2226 else 2227 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2228$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2229 eval $ac_var=\$ac_old_val 2230 fi 2231 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2232$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2233 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2234$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2235 fi;; 2236 esac 2237 # Pass precious variables to config.status. 2238 if test "$ac_new_set" = set; then 2239 case $ac_new_val in 2240 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2241 *) ac_arg=$ac_var=$ac_new_val ;; 2242 esac 2243 case " $ac_configure_args " in 2244 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2245 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2246 esac 2247 fi 2248done 2249if $ac_cache_corrupted; then 2250 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2251$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2252 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2253$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2254 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2255fi 2256## -------------------- ## 2257## Main body of script. ## 2258## -------------------- ## 2259 2260ac_ext=c 2261ac_cpp='$CPP $CPPFLAGS' 2262ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2263ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2264ac_compiler_gnu=$ac_cv_c_compiler_gnu 2265 2266 2267 2268ac_config_headers="$ac_config_headers config.h" 2269 2270ac_aux_dir= 2271for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2272 if test -f "$ac_dir/install-sh"; then 2273 ac_aux_dir=$ac_dir 2274 ac_install_sh="$ac_aux_dir/install-sh -c" 2275 break 2276 elif test -f "$ac_dir/install.sh"; then 2277 ac_aux_dir=$ac_dir 2278 ac_install_sh="$ac_aux_dir/install.sh -c" 2279 break 2280 elif test -f "$ac_dir/shtool"; then 2281 ac_aux_dir=$ac_dir 2282 ac_install_sh="$ac_aux_dir/shtool install -c" 2283 break 2284 fi 2285done 2286if test -z "$ac_aux_dir"; then 2287 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2288fi 2289 2290# These three variables are undocumented and unsupported, 2291# and are intended to be withdrawn in a future Autoconf release. 2292# They can cause serious problems if a builder's source tree is in a directory 2293# whose full name contains unusual characters. 2294ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2295ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2296ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2297 2298 2299# Expand $ac_aux_dir to an absolute path. 2300am_aux_dir=`cd "$ac_aux_dir" && pwd` 2301 2302ac_ext=c 2303ac_cpp='$CPP $CPPFLAGS' 2304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2306ac_compiler_gnu=$ac_cv_c_compiler_gnu 2307if test -n "$ac_tool_prefix"; then 2308 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2309set dummy ${ac_tool_prefix}gcc; ac_word=$2 2310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2311$as_echo_n "checking for $ac_word... " >&6; } 2312if ${ac_cv_prog_CC+:} false; then : 2313 $as_echo_n "(cached) " >&6 2314else 2315 if test -n "$CC"; then 2316 ac_cv_prog_CC="$CC" # Let the user override the test. 2317else 2318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2319for as_dir in $PATH 2320do 2321 IFS=$as_save_IFS 2322 test -z "$as_dir" && as_dir=. 2323 for ac_exec_ext in '' $ac_executable_extensions; do 2324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2325 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2327 break 2 2328 fi 2329done 2330 done 2331IFS=$as_save_IFS 2332 2333fi 2334fi 2335CC=$ac_cv_prog_CC 2336if test -n "$CC"; then 2337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2338$as_echo "$CC" >&6; } 2339else 2340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2341$as_echo "no" >&6; } 2342fi 2343 2344 2345fi 2346if test -z "$ac_cv_prog_CC"; then 2347 ac_ct_CC=$CC 2348 # Extract the first word of "gcc", so it can be a program name with args. 2349set dummy gcc; ac_word=$2 2350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2351$as_echo_n "checking for $ac_word... " >&6; } 2352if ${ac_cv_prog_ac_ct_CC+:} false; then : 2353 $as_echo_n "(cached) " >&6 2354else 2355 if test -n "$ac_ct_CC"; then 2356 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2357else 2358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2359for as_dir in $PATH 2360do 2361 IFS=$as_save_IFS 2362 test -z "$as_dir" && as_dir=. 2363 for ac_exec_ext in '' $ac_executable_extensions; do 2364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2365 ac_cv_prog_ac_ct_CC="gcc" 2366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2367 break 2 2368 fi 2369done 2370 done 2371IFS=$as_save_IFS 2372 2373fi 2374fi 2375ac_ct_CC=$ac_cv_prog_ac_ct_CC 2376if test -n "$ac_ct_CC"; then 2377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2378$as_echo "$ac_ct_CC" >&6; } 2379else 2380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2381$as_echo "no" >&6; } 2382fi 2383 2384 if test "x$ac_ct_CC" = x; then 2385 CC="" 2386 else 2387 case $cross_compiling:$ac_tool_warned in 2388yes:) 2389{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2390$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2391ac_tool_warned=yes ;; 2392esac 2393 CC=$ac_ct_CC 2394 fi 2395else 2396 CC="$ac_cv_prog_CC" 2397fi 2398 2399if test -z "$CC"; then 2400 if test -n "$ac_tool_prefix"; then 2401 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2402set dummy ${ac_tool_prefix}cc; ac_word=$2 2403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2404$as_echo_n "checking for $ac_word... " >&6; } 2405if ${ac_cv_prog_CC+:} false; then : 2406 $as_echo_n "(cached) " >&6 2407else 2408 if test -n "$CC"; then 2409 ac_cv_prog_CC="$CC" # Let the user override the test. 2410else 2411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2412for as_dir in $PATH 2413do 2414 IFS=$as_save_IFS 2415 test -z "$as_dir" && as_dir=. 2416 for ac_exec_ext in '' $ac_executable_extensions; do 2417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2418 ac_cv_prog_CC="${ac_tool_prefix}cc" 2419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2420 break 2 2421 fi 2422done 2423 done 2424IFS=$as_save_IFS 2425 2426fi 2427fi 2428CC=$ac_cv_prog_CC 2429if test -n "$CC"; then 2430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2431$as_echo "$CC" >&6; } 2432else 2433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2434$as_echo "no" >&6; } 2435fi 2436 2437 2438 fi 2439fi 2440if test -z "$CC"; then 2441 # Extract the first word of "cc", so it can be a program name with args. 2442set dummy cc; ac_word=$2 2443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2444$as_echo_n "checking for $ac_word... " >&6; } 2445if ${ac_cv_prog_CC+:} false; then : 2446 $as_echo_n "(cached) " >&6 2447else 2448 if test -n "$CC"; then 2449 ac_cv_prog_CC="$CC" # Let the user override the test. 2450else 2451 ac_prog_rejected=no 2452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2453for as_dir in $PATH 2454do 2455 IFS=$as_save_IFS 2456 test -z "$as_dir" && as_dir=. 2457 for ac_exec_ext in '' $ac_executable_extensions; do 2458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2459 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2460 ac_prog_rejected=yes 2461 continue 2462 fi 2463 ac_cv_prog_CC="cc" 2464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2465 break 2 2466 fi 2467done 2468 done 2469IFS=$as_save_IFS 2470 2471if test $ac_prog_rejected = yes; then 2472 # We found a bogon in the path, so make sure we never use it. 2473 set dummy $ac_cv_prog_CC 2474 shift 2475 if test $# != 0; then 2476 # We chose a different compiler from the bogus one. 2477 # However, it has the same basename, so the bogon will be chosen 2478 # first if we set CC to just the basename; use the full file name. 2479 shift 2480 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2481 fi 2482fi 2483fi 2484fi 2485CC=$ac_cv_prog_CC 2486if test -n "$CC"; then 2487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2488$as_echo "$CC" >&6; } 2489else 2490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2491$as_echo "no" >&6; } 2492fi 2493 2494 2495fi 2496if test -z "$CC"; then 2497 if test -n "$ac_tool_prefix"; then 2498 for ac_prog in cl.exe 2499 do 2500 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2501set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2503$as_echo_n "checking for $ac_word... " >&6; } 2504if ${ac_cv_prog_CC+:} false; then : 2505 $as_echo_n "(cached) " >&6 2506else 2507 if test -n "$CC"; then 2508 ac_cv_prog_CC="$CC" # Let the user override the test. 2509else 2510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2511for as_dir in $PATH 2512do 2513 IFS=$as_save_IFS 2514 test -z "$as_dir" && as_dir=. 2515 for ac_exec_ext in '' $ac_executable_extensions; do 2516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2517 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2519 break 2 2520 fi 2521done 2522 done 2523IFS=$as_save_IFS 2524 2525fi 2526fi 2527CC=$ac_cv_prog_CC 2528if test -n "$CC"; then 2529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2530$as_echo "$CC" >&6; } 2531else 2532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2533$as_echo "no" >&6; } 2534fi 2535 2536 2537 test -n "$CC" && break 2538 done 2539fi 2540if test -z "$CC"; then 2541 ac_ct_CC=$CC 2542 for ac_prog in cl.exe 2543do 2544 # Extract the first word of "$ac_prog", so it can be a program name with args. 2545set dummy $ac_prog; ac_word=$2 2546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2547$as_echo_n "checking for $ac_word... " >&6; } 2548if ${ac_cv_prog_ac_ct_CC+:} false; then : 2549 $as_echo_n "(cached) " >&6 2550else 2551 if test -n "$ac_ct_CC"; then 2552 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2553else 2554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2555for as_dir in $PATH 2556do 2557 IFS=$as_save_IFS 2558 test -z "$as_dir" && as_dir=. 2559 for ac_exec_ext in '' $ac_executable_extensions; do 2560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2561 ac_cv_prog_ac_ct_CC="$ac_prog" 2562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2563 break 2 2564 fi 2565done 2566 done 2567IFS=$as_save_IFS 2568 2569fi 2570fi 2571ac_ct_CC=$ac_cv_prog_ac_ct_CC 2572if test -n "$ac_ct_CC"; then 2573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2574$as_echo "$ac_ct_CC" >&6; } 2575else 2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2577$as_echo "no" >&6; } 2578fi 2579 2580 2581 test -n "$ac_ct_CC" && break 2582done 2583 2584 if test "x$ac_ct_CC" = x; then 2585 CC="" 2586 else 2587 case $cross_compiling:$ac_tool_warned in 2588yes:) 2589{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2590$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2591ac_tool_warned=yes ;; 2592esac 2593 CC=$ac_ct_CC 2594 fi 2595fi 2596 2597fi 2598 2599 2600test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2601$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2602as_fn_error $? "no acceptable C compiler found in \$PATH 2603See \`config.log' for more details" "$LINENO" 5; } 2604 2605# Provide some information about the compiler. 2606$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2607set X $ac_compile 2608ac_compiler=$2 2609for ac_option in --version -v -V -qversion; do 2610 { { ac_try="$ac_compiler $ac_option >&5" 2611case "(($ac_try" in 2612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2613 *) ac_try_echo=$ac_try;; 2614esac 2615eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2616$as_echo "$ac_try_echo"; } >&5 2617 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2618 ac_status=$? 2619 if test -s conftest.err; then 2620 sed '10a\ 2621... rest of stderr output deleted ... 2622 10q' conftest.err >conftest.er1 2623 cat conftest.er1 >&5 2624 fi 2625 rm -f conftest.er1 conftest.err 2626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2627 test $ac_status = 0; } 2628done 2629 2630cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2631/* end confdefs.h. */ 2632 2633int 2634main () 2635{ 2636 2637 ; 2638 return 0; 2639} 2640_ACEOF 2641ac_clean_files_save=$ac_clean_files 2642ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2643# Try to create an executable without -o first, disregard a.out. 2644# It will help us diagnose broken compilers, and finding out an intuition 2645# of exeext. 2646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2647$as_echo_n "checking whether the C compiler works... " >&6; } 2648ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2649 2650# The possible output files: 2651ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2652 2653ac_rmfiles= 2654for ac_file in $ac_files 2655do 2656 case $ac_file in 2657 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2658 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2659 esac 2660done 2661rm -f $ac_rmfiles 2662 2663if { { ac_try="$ac_link_default" 2664case "(($ac_try" in 2665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2666 *) ac_try_echo=$ac_try;; 2667esac 2668eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2669$as_echo "$ac_try_echo"; } >&5 2670 (eval "$ac_link_default") 2>&5 2671 ac_status=$? 2672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2673 test $ac_status = 0; }; then : 2674 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2675# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2676# in a Makefile. We should not override ac_cv_exeext if it was cached, 2677# so that the user can short-circuit this test for compilers unknown to 2678# Autoconf. 2679for ac_file in $ac_files '' 2680do 2681 test -f "$ac_file" || continue 2682 case $ac_file in 2683 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2684 ;; 2685 [ab].out ) 2686 # We found the default executable, but exeext='' is most 2687 # certainly right. 2688 break;; 2689 *.* ) 2690 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2691 then :; else 2692 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2693 fi 2694 # We set ac_cv_exeext here because the later test for it is not 2695 # safe: cross compilers may not add the suffix if given an `-o' 2696 # argument, so we may need to know it at that point already. 2697 # Even if this section looks crufty: it has the advantage of 2698 # actually working. 2699 break;; 2700 * ) 2701 break;; 2702 esac 2703done 2704test "$ac_cv_exeext" = no && ac_cv_exeext= 2705 2706else 2707 ac_file='' 2708fi 2709if test -z "$ac_file"; then : 2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2711$as_echo "no" >&6; } 2712$as_echo "$as_me: failed program was:" >&5 2713sed 's/^/| /' conftest.$ac_ext >&5 2714 2715{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2716$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2717as_fn_error 77 "C compiler cannot create executables 2718See \`config.log' for more details" "$LINENO" 5; } 2719else 2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2721$as_echo "yes" >&6; } 2722fi 2723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2724$as_echo_n "checking for C compiler default output file name... " >&6; } 2725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2726$as_echo "$ac_file" >&6; } 2727ac_exeext=$ac_cv_exeext 2728 2729rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2730ac_clean_files=$ac_clean_files_save 2731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2732$as_echo_n "checking for suffix of executables... " >&6; } 2733if { { ac_try="$ac_link" 2734case "(($ac_try" in 2735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2736 *) ac_try_echo=$ac_try;; 2737esac 2738eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2739$as_echo "$ac_try_echo"; } >&5 2740 (eval "$ac_link") 2>&5 2741 ac_status=$? 2742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2743 test $ac_status = 0; }; then : 2744 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2745# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2746# work properly (i.e., refer to `conftest.exe'), while it won't with 2747# `rm'. 2748for ac_file in conftest.exe conftest conftest.*; do 2749 test -f "$ac_file" || continue 2750 case $ac_file in 2751 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2752 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2753 break;; 2754 * ) break;; 2755 esac 2756done 2757else 2758 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2759$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2760as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2761See \`config.log' for more details" "$LINENO" 5; } 2762fi 2763rm -f conftest conftest$ac_cv_exeext 2764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2765$as_echo "$ac_cv_exeext" >&6; } 2766 2767rm -f conftest.$ac_ext 2768EXEEXT=$ac_cv_exeext 2769ac_exeext=$EXEEXT 2770cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2771/* end confdefs.h. */ 2772#include <stdio.h> 2773int 2774main () 2775{ 2776FILE *f = fopen ("conftest.out", "w"); 2777 return ferror (f) || fclose (f) != 0; 2778 2779 ; 2780 return 0; 2781} 2782_ACEOF 2783ac_clean_files="$ac_clean_files conftest.out" 2784# Check that the compiler produces executables we can run. If not, either 2785# the compiler is broken, or we cross compile. 2786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2787$as_echo_n "checking whether we are cross compiling... " >&6; } 2788if test "$cross_compiling" != yes; then 2789 { { ac_try="$ac_link" 2790case "(($ac_try" in 2791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2792 *) ac_try_echo=$ac_try;; 2793esac 2794eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2795$as_echo "$ac_try_echo"; } >&5 2796 (eval "$ac_link") 2>&5 2797 ac_status=$? 2798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2799 test $ac_status = 0; } 2800 if { ac_try='./conftest$ac_cv_exeext' 2801 { { case "(($ac_try" in 2802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2803 *) ac_try_echo=$ac_try;; 2804esac 2805eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2806$as_echo "$ac_try_echo"; } >&5 2807 (eval "$ac_try") 2>&5 2808 ac_status=$? 2809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2810 test $ac_status = 0; }; }; then 2811 cross_compiling=no 2812 else 2813 if test "$cross_compiling" = maybe; then 2814 cross_compiling=yes 2815 else 2816 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2817$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2818as_fn_error $? "cannot run C compiled programs. 2819If you meant to cross compile, use \`--host'. 2820See \`config.log' for more details" "$LINENO" 5; } 2821 fi 2822 fi 2823fi 2824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2825$as_echo "$cross_compiling" >&6; } 2826 2827rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 2828ac_clean_files=$ac_clean_files_save 2829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2830$as_echo_n "checking for suffix of object files... " >&6; } 2831if ${ac_cv_objext+:} false; then : 2832 $as_echo_n "(cached) " >&6 2833else 2834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2835/* end confdefs.h. */ 2836 2837int 2838main () 2839{ 2840 2841 ; 2842 return 0; 2843} 2844_ACEOF 2845rm -f conftest.o conftest.obj 2846if { { ac_try="$ac_compile" 2847case "(($ac_try" in 2848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2849 *) ac_try_echo=$ac_try;; 2850esac 2851eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2852$as_echo "$ac_try_echo"; } >&5 2853 (eval "$ac_compile") 2>&5 2854 ac_status=$? 2855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2856 test $ac_status = 0; }; then : 2857 for ac_file in conftest.o conftest.obj conftest.*; do 2858 test -f "$ac_file" || continue; 2859 case $ac_file in 2860 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2861 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2862 break;; 2863 esac 2864done 2865else 2866 $as_echo "$as_me: failed program was:" >&5 2867sed 's/^/| /' conftest.$ac_ext >&5 2868 2869{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2870$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2871as_fn_error $? "cannot compute suffix of object files: cannot compile 2872See \`config.log' for more details" "$LINENO" 5; } 2873fi 2874rm -f conftest.$ac_cv_objext conftest.$ac_ext 2875fi 2876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 2877$as_echo "$ac_cv_objext" >&6; } 2878OBJEXT=$ac_cv_objext 2879ac_objext=$OBJEXT 2880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 2881$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2882if ${ac_cv_c_compiler_gnu+:} false; then : 2883 $as_echo_n "(cached) " >&6 2884else 2885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2886/* end confdefs.h. */ 2887 2888int 2889main () 2890{ 2891#ifndef __GNUC__ 2892 choke me 2893#endif 2894 2895 ; 2896 return 0; 2897} 2898_ACEOF 2899if ac_fn_c_try_compile "$LINENO"; then : 2900 ac_compiler_gnu=yes 2901else 2902 ac_compiler_gnu=no 2903fi 2904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2905ac_cv_c_compiler_gnu=$ac_compiler_gnu 2906 2907fi 2908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 2909$as_echo "$ac_cv_c_compiler_gnu" >&6; } 2910if test $ac_compiler_gnu = yes; then 2911 GCC=yes 2912else 2913 GCC= 2914fi 2915ac_test_CFLAGS=${CFLAGS+set} 2916ac_save_CFLAGS=$CFLAGS 2917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 2918$as_echo_n "checking whether $CC accepts -g... " >&6; } 2919if ${ac_cv_prog_cc_g+:} false; then : 2920 $as_echo_n "(cached) " >&6 2921else 2922 ac_save_c_werror_flag=$ac_c_werror_flag 2923 ac_c_werror_flag=yes 2924 ac_cv_prog_cc_g=no 2925 CFLAGS="-g" 2926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2927/* end confdefs.h. */ 2928 2929int 2930main () 2931{ 2932 2933 ; 2934 return 0; 2935} 2936_ACEOF 2937if ac_fn_c_try_compile "$LINENO"; then : 2938 ac_cv_prog_cc_g=yes 2939else 2940 CFLAGS="" 2941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2942/* end confdefs.h. */ 2943 2944int 2945main () 2946{ 2947 2948 ; 2949 return 0; 2950} 2951_ACEOF 2952if ac_fn_c_try_compile "$LINENO"; then : 2953 2954else 2955 ac_c_werror_flag=$ac_save_c_werror_flag 2956 CFLAGS="-g" 2957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2958/* end confdefs.h. */ 2959 2960int 2961main () 2962{ 2963 2964 ; 2965 return 0; 2966} 2967_ACEOF 2968if ac_fn_c_try_compile "$LINENO"; then : 2969 ac_cv_prog_cc_g=yes 2970fi 2971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2972fi 2973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2974fi 2975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2976 ac_c_werror_flag=$ac_save_c_werror_flag 2977fi 2978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 2979$as_echo "$ac_cv_prog_cc_g" >&6; } 2980if test "$ac_test_CFLAGS" = set; then 2981 CFLAGS=$ac_save_CFLAGS 2982elif test $ac_cv_prog_cc_g = yes; then 2983 if test "$GCC" = yes; then 2984 CFLAGS="-g -O2" 2985 else 2986 CFLAGS="-g" 2987 fi 2988else 2989 if test "$GCC" = yes; then 2990 CFLAGS="-O2" 2991 else 2992 CFLAGS= 2993 fi 2994fi 2995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 2996$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 2997if ${ac_cv_prog_cc_c89+:} false; then : 2998 $as_echo_n "(cached) " >&6 2999else 3000 ac_cv_prog_cc_c89=no 3001ac_save_CC=$CC 3002cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3003/* end confdefs.h. */ 3004#include <stdarg.h> 3005#include <stdio.h> 3006struct stat; 3007/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3008struct buf { int x; }; 3009FILE * (*rcsopen) (struct buf *, struct stat *, int); 3010static char *e (p, i) 3011 char **p; 3012 int i; 3013{ 3014 return p[i]; 3015} 3016static char *f (char * (*g) (char **, int), char **p, ...) 3017{ 3018 char *s; 3019 va_list v; 3020 va_start (v,p); 3021 s = g (p, va_arg (v,int)); 3022 va_end (v); 3023 return s; 3024} 3025 3026/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3027 function prototypes and stuff, but not '\xHH' hex character constants. 3028 These don't provoke an error unfortunately, instead are silently treated 3029 as 'x'. The following induces an error, until -std is added to get 3030 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3031 array size at least. It's necessary to write '\x00'==0 to get something 3032 that's true only with -std. */ 3033int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3034 3035/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3036 inside strings and character constants. */ 3037#define FOO(x) 'x' 3038int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3039 3040int test (int i, double x); 3041struct s1 {int (*f) (int a);}; 3042struct s2 {int (*f) (double a);}; 3043int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3044int argc; 3045char **argv; 3046int 3047main () 3048{ 3049return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3050 ; 3051 return 0; 3052} 3053_ACEOF 3054for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3055 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3056do 3057 CC="$ac_save_CC $ac_arg" 3058 if ac_fn_c_try_compile "$LINENO"; then : 3059 ac_cv_prog_cc_c89=$ac_arg 3060fi 3061rm -f core conftest.err conftest.$ac_objext 3062 test "x$ac_cv_prog_cc_c89" != "xno" && break 3063done 3064rm -f conftest.$ac_ext 3065CC=$ac_save_CC 3066 3067fi 3068# AC_CACHE_VAL 3069case "x$ac_cv_prog_cc_c89" in 3070 x) 3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3072$as_echo "none needed" >&6; } ;; 3073 xno) 3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3075$as_echo "unsupported" >&6; } ;; 3076 *) 3077 CC="$CC $ac_cv_prog_cc_c89" 3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3079$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3080esac 3081if test "x$ac_cv_prog_cc_c89" != xno; then : 3082 3083fi 3084 3085ac_ext=c 3086ac_cpp='$CPP $CPPFLAGS' 3087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3089ac_compiler_gnu=$ac_cv_c_compiler_gnu 3090 3091ac_ext=c 3092ac_cpp='$CPP $CPPFLAGS' 3093ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3094ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3095ac_compiler_gnu=$ac_cv_c_compiler_gnu 3096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3097$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3098if ${am_cv_prog_cc_c_o+:} false; then : 3099 $as_echo_n "(cached) " >&6 3100else 3101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3102/* end confdefs.h. */ 3103 3104int 3105main () 3106{ 3107 3108 ; 3109 return 0; 3110} 3111_ACEOF 3112 # Make sure it works both with $CC and with simple cc. 3113 # Following AC_PROG_CC_C_O, we do the test twice because some 3114 # compilers refuse to overwrite an existing .o file with -o, 3115 # though they will create one. 3116 am_cv_prog_cc_c_o=yes 3117 for am_i in 1 2; do 3118 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3119 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3120 ac_status=$? 3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3122 (exit $ac_status); } \ 3123 && test -f conftest2.$ac_objext; then 3124 : OK 3125 else 3126 am_cv_prog_cc_c_o=no 3127 break 3128 fi 3129 done 3130 rm -f core conftest* 3131 unset am_i 3132fi 3133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3134$as_echo "$am_cv_prog_cc_c_o" >&6; } 3135if test "$am_cv_prog_cc_c_o" != yes; then 3136 # Losing compiler, so override with the script. 3137 # FIXME: It is wrong to rewrite CC. 3138 # But if we don't then we get into trouble of one sort or another. 3139 # A longer-term fix would be to have automake use am__CC in this case, 3140 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3141 CC="$am_aux_dir/compile $CC" 3142fi 3143ac_ext=c 3144ac_cpp='$CPP $CPPFLAGS' 3145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3147ac_compiler_gnu=$ac_cv_c_compiler_gnu 3148 3149 3150 3151ac_ext=c 3152ac_cpp='$CPP $CPPFLAGS' 3153ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3154ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3155ac_compiler_gnu=$ac_cv_c_compiler_gnu 3156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3157$as_echo_n "checking how to run the C preprocessor... " >&6; } 3158# On Suns, sometimes $CPP names a directory. 3159if test -n "$CPP" && test -d "$CPP"; then 3160 CPP= 3161fi 3162if test -z "$CPP"; then 3163 if ${ac_cv_prog_CPP+:} false; then : 3164 $as_echo_n "(cached) " >&6 3165else 3166 # Double quotes because CPP needs to be expanded 3167 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3168 do 3169 ac_preproc_ok=false 3170for ac_c_preproc_warn_flag in '' yes 3171do 3172 # Use a header file that comes with gcc, so configuring glibc 3173 # with a fresh cross-compiler works. 3174 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3175 # <limits.h> exists even on freestanding compilers. 3176 # On the NeXT, cc -E runs the code through the compiler's parser, 3177 # not just through cpp. "Syntax error" is here to catch this case. 3178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3179/* end confdefs.h. */ 3180#ifdef __STDC__ 3181# include <limits.h> 3182#else 3183# include <assert.h> 3184#endif 3185 Syntax error 3186_ACEOF 3187if ac_fn_c_try_cpp "$LINENO"; then : 3188 3189else 3190 # Broken: fails on valid input. 3191continue 3192fi 3193rm -f conftest.err conftest.i conftest.$ac_ext 3194 3195 # OK, works on sane cases. Now check whether nonexistent headers 3196 # can be detected and how. 3197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3198/* end confdefs.h. */ 3199#include <ac_nonexistent.h> 3200_ACEOF 3201if ac_fn_c_try_cpp "$LINENO"; then : 3202 # Broken: success on invalid input. 3203continue 3204else 3205 # Passes both tests. 3206ac_preproc_ok=: 3207break 3208fi 3209rm -f conftest.err conftest.i conftest.$ac_ext 3210 3211done 3212# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3213rm -f conftest.i conftest.err conftest.$ac_ext 3214if $ac_preproc_ok; then : 3215 break 3216fi 3217 3218 done 3219 ac_cv_prog_CPP=$CPP 3220 3221fi 3222 CPP=$ac_cv_prog_CPP 3223else 3224 ac_cv_prog_CPP=$CPP 3225fi 3226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3227$as_echo "$CPP" >&6; } 3228ac_preproc_ok=false 3229for ac_c_preproc_warn_flag in '' yes 3230do 3231 # Use a header file that comes with gcc, so configuring glibc 3232 # with a fresh cross-compiler works. 3233 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3234 # <limits.h> exists even on freestanding compilers. 3235 # On the NeXT, cc -E runs the code through the compiler's parser, 3236 # not just through cpp. "Syntax error" is here to catch this case. 3237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3238/* end confdefs.h. */ 3239#ifdef __STDC__ 3240# include <limits.h> 3241#else 3242# include <assert.h> 3243#endif 3244 Syntax error 3245_ACEOF 3246if ac_fn_c_try_cpp "$LINENO"; then : 3247 3248else 3249 # Broken: fails on valid input. 3250continue 3251fi 3252rm -f conftest.err conftest.i conftest.$ac_ext 3253 3254 # OK, works on sane cases. Now check whether nonexistent headers 3255 # can be detected and how. 3256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3257/* end confdefs.h. */ 3258#include <ac_nonexistent.h> 3259_ACEOF 3260if ac_fn_c_try_cpp "$LINENO"; then : 3261 # Broken: success on invalid input. 3262continue 3263else 3264 # Passes both tests. 3265ac_preproc_ok=: 3266break 3267fi 3268rm -f conftest.err conftest.i conftest.$ac_ext 3269 3270done 3271# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3272rm -f conftest.i conftest.err conftest.$ac_ext 3273if $ac_preproc_ok; then : 3274 3275else 3276 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3277$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3278as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3279See \`config.log' for more details" "$LINENO" 5; } 3280fi 3281 3282ac_ext=c 3283ac_cpp='$CPP $CPPFLAGS' 3284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3286ac_compiler_gnu=$ac_cv_c_compiler_gnu 3287 3288 3289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3290$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3291if ${ac_cv_path_GREP+:} false; then : 3292 $as_echo_n "(cached) " >&6 3293else 3294 if test -z "$GREP"; then 3295 ac_path_GREP_found=false 3296 # Loop through the user's path and test for each of PROGNAME-LIST 3297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3298for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3299do 3300 IFS=$as_save_IFS 3301 test -z "$as_dir" && as_dir=. 3302 for ac_prog in grep ggrep; do 3303 for ac_exec_ext in '' $ac_executable_extensions; do 3304 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3305 as_fn_executable_p "$ac_path_GREP" || continue 3306# Check for GNU ac_path_GREP and select it if it is found. 3307 # Check for GNU $ac_path_GREP 3308case `"$ac_path_GREP" --version 2>&1` in 3309*GNU*) 3310 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3311*) 3312 ac_count=0 3313 $as_echo_n 0123456789 >"conftest.in" 3314 while : 3315 do 3316 cat "conftest.in" "conftest.in" >"conftest.tmp" 3317 mv "conftest.tmp" "conftest.in" 3318 cp "conftest.in" "conftest.nl" 3319 $as_echo 'GREP' >> "conftest.nl" 3320 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3321 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3322 as_fn_arith $ac_count + 1 && ac_count=$as_val 3323 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3324 # Best one so far, save it but keep looking for a better one 3325 ac_cv_path_GREP="$ac_path_GREP" 3326 ac_path_GREP_max=$ac_count 3327 fi 3328 # 10*(2^10) chars as input seems more than enough 3329 test $ac_count -gt 10 && break 3330 done 3331 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3332esac 3333 3334 $ac_path_GREP_found && break 3 3335 done 3336 done 3337 done 3338IFS=$as_save_IFS 3339 if test -z "$ac_cv_path_GREP"; then 3340 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3341 fi 3342else 3343 ac_cv_path_GREP=$GREP 3344fi 3345 3346fi 3347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3348$as_echo "$ac_cv_path_GREP" >&6; } 3349 GREP="$ac_cv_path_GREP" 3350 3351 3352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3353$as_echo_n "checking for egrep... " >&6; } 3354if ${ac_cv_path_EGREP+:} false; then : 3355 $as_echo_n "(cached) " >&6 3356else 3357 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3358 then ac_cv_path_EGREP="$GREP -E" 3359 else 3360 if test -z "$EGREP"; then 3361 ac_path_EGREP_found=false 3362 # Loop through the user's path and test for each of PROGNAME-LIST 3363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3364for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3365do 3366 IFS=$as_save_IFS 3367 test -z "$as_dir" && as_dir=. 3368 for ac_prog in egrep; do 3369 for ac_exec_ext in '' $ac_executable_extensions; do 3370 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3371 as_fn_executable_p "$ac_path_EGREP" || continue 3372# Check for GNU ac_path_EGREP and select it if it is found. 3373 # Check for GNU $ac_path_EGREP 3374case `"$ac_path_EGREP" --version 2>&1` in 3375*GNU*) 3376 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3377*) 3378 ac_count=0 3379 $as_echo_n 0123456789 >"conftest.in" 3380 while : 3381 do 3382 cat "conftest.in" "conftest.in" >"conftest.tmp" 3383 mv "conftest.tmp" "conftest.in" 3384 cp "conftest.in" "conftest.nl" 3385 $as_echo 'EGREP' >> "conftest.nl" 3386 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3387 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3388 as_fn_arith $ac_count + 1 && ac_count=$as_val 3389 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3390 # Best one so far, save it but keep looking for a better one 3391 ac_cv_path_EGREP="$ac_path_EGREP" 3392 ac_path_EGREP_max=$ac_count 3393 fi 3394 # 10*(2^10) chars as input seems more than enough 3395 test $ac_count -gt 10 && break 3396 done 3397 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3398esac 3399 3400 $ac_path_EGREP_found && break 3 3401 done 3402 done 3403 done 3404IFS=$as_save_IFS 3405 if test -z "$ac_cv_path_EGREP"; then 3406 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3407 fi 3408else 3409 ac_cv_path_EGREP=$EGREP 3410fi 3411 3412 fi 3413fi 3414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3415$as_echo "$ac_cv_path_EGREP" >&6; } 3416 EGREP="$ac_cv_path_EGREP" 3417 3418 3419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3420$as_echo_n "checking for ANSI C header files... " >&6; } 3421if ${ac_cv_header_stdc+:} false; then : 3422 $as_echo_n "(cached) " >&6 3423else 3424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3425/* end confdefs.h. */ 3426#include <stdlib.h> 3427#include <stdarg.h> 3428#include <string.h> 3429#include <float.h> 3430 3431int 3432main () 3433{ 3434 3435 ; 3436 return 0; 3437} 3438_ACEOF 3439if ac_fn_c_try_compile "$LINENO"; then : 3440 ac_cv_header_stdc=yes 3441else 3442 ac_cv_header_stdc=no 3443fi 3444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3445 3446if test $ac_cv_header_stdc = yes; then 3447 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3449/* end confdefs.h. */ 3450#include <string.h> 3451 3452_ACEOF 3453if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3454 $EGREP "memchr" >/dev/null 2>&1; then : 3455 3456else 3457 ac_cv_header_stdc=no 3458fi 3459rm -f conftest* 3460 3461fi 3462 3463if test $ac_cv_header_stdc = yes; then 3464 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3466/* end confdefs.h. */ 3467#include <stdlib.h> 3468 3469_ACEOF 3470if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3471 $EGREP "free" >/dev/null 2>&1; then : 3472 3473else 3474 ac_cv_header_stdc=no 3475fi 3476rm -f conftest* 3477 3478fi 3479 3480if test $ac_cv_header_stdc = yes; then 3481 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3482 if test "$cross_compiling" = yes; then : 3483 : 3484else 3485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3486/* end confdefs.h. */ 3487#include <ctype.h> 3488#include <stdlib.h> 3489#if ((' ' & 0x0FF) == 0x020) 3490# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3491# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3492#else 3493# define ISLOWER(c) \ 3494 (('a' <= (c) && (c) <= 'i') \ 3495 || ('j' <= (c) && (c) <= 'r') \ 3496 || ('s' <= (c) && (c) <= 'z')) 3497# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3498#endif 3499 3500#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3501int 3502main () 3503{ 3504 int i; 3505 for (i = 0; i < 256; i++) 3506 if (XOR (islower (i), ISLOWER (i)) 3507 || toupper (i) != TOUPPER (i)) 3508 return 2; 3509 return 0; 3510} 3511_ACEOF 3512if ac_fn_c_try_run "$LINENO"; then : 3513 3514else 3515 ac_cv_header_stdc=no 3516fi 3517rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3518 conftest.$ac_objext conftest.beam conftest.$ac_ext 3519fi 3520 3521fi 3522fi 3523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3524$as_echo "$ac_cv_header_stdc" >&6; } 3525if test $ac_cv_header_stdc = yes; then 3526 3527$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3528 3529fi 3530 3531# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3532for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3533 inttypes.h stdint.h unistd.h 3534do : 3535 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3536ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3537" 3538if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3539 cat >>confdefs.h <<_ACEOF 3540#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3541_ACEOF 3542 3543fi 3544 3545done 3546 3547 3548 3549 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 3550if test "x$ac_cv_header_minix_config_h" = xyes; then : 3551 MINIX=yes 3552else 3553 MINIX= 3554fi 3555 3556 3557 if test "$MINIX" = yes; then 3558 3559$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 3560 3561 3562$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 3563 3564 3565$as_echo "#define _MINIX 1" >>confdefs.h 3566 3567 fi 3568 3569 3570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3571$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3572if ${ac_cv_safe_to_define___extensions__+:} false; then : 3573 $as_echo_n "(cached) " >&6 3574else 3575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3576/* end confdefs.h. */ 3577 3578# define __EXTENSIONS__ 1 3579 $ac_includes_default 3580int 3581main () 3582{ 3583 3584 ; 3585 return 0; 3586} 3587_ACEOF 3588if ac_fn_c_try_compile "$LINENO"; then : 3589 ac_cv_safe_to_define___extensions__=yes 3590else 3591 ac_cv_safe_to_define___extensions__=no 3592fi 3593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3594fi 3595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3596$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 3597 test $ac_cv_safe_to_define___extensions__ = yes && 3598 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 3599 3600 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 3601 3602 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 3603 3604 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3605 3606 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 3607 3608 3609 3610# Initialize Automake 3611am__api_version='1.16' 3612 3613# Find a good install program. We prefer a C program (faster), 3614# so one script is as good as another. But avoid the broken or 3615# incompatible versions: 3616# SysV /etc/install, /usr/sbin/install 3617# SunOS /usr/etc/install 3618# IRIX /sbin/install 3619# AIX /bin/install 3620# AmigaOS /C/install, which installs bootblocks on floppy discs 3621# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3622# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3623# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3624# OS/2's system install, which has a completely different semantic 3625# ./install, which can be erroneously created by make from ./install.sh. 3626# Reject install programs that cannot install multiple files. 3627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3628$as_echo_n "checking for a BSD-compatible install... " >&6; } 3629if test -z "$INSTALL"; then 3630if ${ac_cv_path_install+:} false; then : 3631 $as_echo_n "(cached) " >&6 3632else 3633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3634for as_dir in $PATH 3635do 3636 IFS=$as_save_IFS 3637 test -z "$as_dir" && as_dir=. 3638 # Account for people who put trailing slashes in PATH elements. 3639case $as_dir/ in #(( 3640 ./ | .// | /[cC]/* | \ 3641 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3642 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3643 /usr/ucb/* ) ;; 3644 *) 3645 # OSF1 and SCO ODT 3.0 have their own names for install. 3646 # Don't use installbsd from OSF since it installs stuff as root 3647 # by default. 3648 for ac_prog in ginstall scoinst install; do 3649 for ac_exec_ext in '' $ac_executable_extensions; do 3650 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3651 if test $ac_prog = install && 3652 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3653 # AIX install. It has an incompatible calling convention. 3654 : 3655 elif test $ac_prog = install && 3656 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3657 # program-specific install script used by HP pwplus--don't use. 3658 : 3659 else 3660 rm -rf conftest.one conftest.two conftest.dir 3661 echo one > conftest.one 3662 echo two > conftest.two 3663 mkdir conftest.dir 3664 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3665 test -s conftest.one && test -s conftest.two && 3666 test -s conftest.dir/conftest.one && 3667 test -s conftest.dir/conftest.two 3668 then 3669 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3670 break 3 3671 fi 3672 fi 3673 fi 3674 done 3675 done 3676 ;; 3677esac 3678 3679 done 3680IFS=$as_save_IFS 3681 3682rm -rf conftest.one conftest.two conftest.dir 3683 3684fi 3685 if test "${ac_cv_path_install+set}" = set; then 3686 INSTALL=$ac_cv_path_install 3687 else 3688 # As a last resort, use the slow shell script. Don't cache a 3689 # value for INSTALL within a source directory, because that will 3690 # break other packages using the cache if that directory is 3691 # removed, or if the value is a relative name. 3692 INSTALL=$ac_install_sh 3693 fi 3694fi 3695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3696$as_echo "$INSTALL" >&6; } 3697 3698# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3699# It thinks the first close brace ends the variable substitution. 3700test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3701 3702test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3703 3704test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3705 3706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3707$as_echo_n "checking whether build environment is sane... " >&6; } 3708# Reject unsafe characters in $srcdir or the absolute working directory 3709# name. Accept space and tab only in the latter. 3710am_lf=' 3711' 3712case `pwd` in 3713 *[\\\"\#\$\&\'\`$am_lf]*) 3714 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3715esac 3716case $srcdir in 3717 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3718 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3719esac 3720 3721# Do 'set' in a subshell so we don't clobber the current shell's 3722# arguments. Must try -L first in case configure is actually a 3723# symlink; some systems play weird games with the mod time of symlinks 3724# (eg FreeBSD returns the mod time of the symlink's containing 3725# directory). 3726if ( 3727 am_has_slept=no 3728 for am_try in 1 2; do 3729 echo "timestamp, slept: $am_has_slept" > conftest.file 3730 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3731 if test "$*" = "X"; then 3732 # -L didn't work. 3733 set X `ls -t "$srcdir/configure" conftest.file` 3734 fi 3735 if test "$*" != "X $srcdir/configure conftest.file" \ 3736 && test "$*" != "X conftest.file $srcdir/configure"; then 3737 3738 # If neither matched, then we have a broken ls. This can happen 3739 # if, for instance, CONFIG_SHELL is bash and it inherits a 3740 # broken ls alias from the environment. This has actually 3741 # happened. Such a system could not be considered "sane". 3742 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3743 alias in your environment" "$LINENO" 5 3744 fi 3745 if test "$2" = conftest.file || test $am_try -eq 2; then 3746 break 3747 fi 3748 # Just in case. 3749 sleep 1 3750 am_has_slept=yes 3751 done 3752 test "$2" = conftest.file 3753 ) 3754then 3755 # Ok. 3756 : 3757else 3758 as_fn_error $? "newly created file is older than distributed files! 3759Check your system clock" "$LINENO" 5 3760fi 3761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3762$as_echo "yes" >&6; } 3763# If we didn't sleep, we still need to ensure time stamps of config.status and 3764# generated files are strictly newer. 3765am_sleep_pid= 3766if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3767 ( sleep 1 ) & 3768 am_sleep_pid=$! 3769fi 3770 3771rm -f conftest.file 3772 3773test "$program_prefix" != NONE && 3774 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3775# Use a double $ so make ignores it. 3776test "$program_suffix" != NONE && 3777 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3778# Double any \ or $. 3779# By default was `s,x,x', remove it if useless. 3780ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3781program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3782 3783if test x"${MISSING+set}" != xset; then 3784 case $am_aux_dir in 3785 *\ * | *\ *) 3786 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3787 *) 3788 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3789 esac 3790fi 3791# Use eval to expand $SHELL 3792if eval "$MISSING --is-lightweight"; then 3793 am_missing_run="$MISSING " 3794else 3795 am_missing_run= 3796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3797$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3798fi 3799 3800if test x"${install_sh+set}" != xset; then 3801 case $am_aux_dir in 3802 *\ * | *\ *) 3803 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3804 *) 3805 install_sh="\${SHELL} $am_aux_dir/install-sh" 3806 esac 3807fi 3808 3809# Installed binaries are usually stripped using 'strip' when the user 3810# run "make install-strip". However 'strip' might not be the right 3811# tool to use in cross-compilation environments, therefore Automake 3812# will honor the 'STRIP' environment variable to overrule this program. 3813if test "$cross_compiling" != no; then 3814 if test -n "$ac_tool_prefix"; then 3815 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3816set dummy ${ac_tool_prefix}strip; ac_word=$2 3817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3818$as_echo_n "checking for $ac_word... " >&6; } 3819if ${ac_cv_prog_STRIP+:} false; then : 3820 $as_echo_n "(cached) " >&6 3821else 3822 if test -n "$STRIP"; then 3823 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3824else 3825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3826for as_dir in $PATH 3827do 3828 IFS=$as_save_IFS 3829 test -z "$as_dir" && as_dir=. 3830 for ac_exec_ext in '' $ac_executable_extensions; do 3831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3832 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3834 break 2 3835 fi 3836done 3837 done 3838IFS=$as_save_IFS 3839 3840fi 3841fi 3842STRIP=$ac_cv_prog_STRIP 3843if test -n "$STRIP"; then 3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3845$as_echo "$STRIP" >&6; } 3846else 3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3848$as_echo "no" >&6; } 3849fi 3850 3851 3852fi 3853if test -z "$ac_cv_prog_STRIP"; then 3854 ac_ct_STRIP=$STRIP 3855 # Extract the first word of "strip", so it can be a program name with args. 3856set dummy strip; ac_word=$2 3857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3858$as_echo_n "checking for $ac_word... " >&6; } 3859if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3860 $as_echo_n "(cached) " >&6 3861else 3862 if test -n "$ac_ct_STRIP"; then 3863 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3864else 3865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3866for as_dir in $PATH 3867do 3868 IFS=$as_save_IFS 3869 test -z "$as_dir" && as_dir=. 3870 for ac_exec_ext in '' $ac_executable_extensions; do 3871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3872 ac_cv_prog_ac_ct_STRIP="strip" 3873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3874 break 2 3875 fi 3876done 3877 done 3878IFS=$as_save_IFS 3879 3880fi 3881fi 3882ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3883if test -n "$ac_ct_STRIP"; then 3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3885$as_echo "$ac_ct_STRIP" >&6; } 3886else 3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3888$as_echo "no" >&6; } 3889fi 3890 3891 if test "x$ac_ct_STRIP" = x; then 3892 STRIP=":" 3893 else 3894 case $cross_compiling:$ac_tool_warned in 3895yes:) 3896{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3897$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3898ac_tool_warned=yes ;; 3899esac 3900 STRIP=$ac_ct_STRIP 3901 fi 3902else 3903 STRIP="$ac_cv_prog_STRIP" 3904fi 3905 3906fi 3907INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3908 3909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3910$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3911if test -z "$MKDIR_P"; then 3912 if ${ac_cv_path_mkdir+:} false; then : 3913 $as_echo_n "(cached) " >&6 3914else 3915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3916for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3917do 3918 IFS=$as_save_IFS 3919 test -z "$as_dir" && as_dir=. 3920 for ac_prog in mkdir gmkdir; do 3921 for ac_exec_ext in '' $ac_executable_extensions; do 3922 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3923 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3924 'mkdir (GNU coreutils) '* | \ 3925 'mkdir (coreutils) '* | \ 3926 'mkdir (fileutils) '4.1*) 3927 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3928 break 3;; 3929 esac 3930 done 3931 done 3932 done 3933IFS=$as_save_IFS 3934 3935fi 3936 3937 test -d ./--version && rmdir ./--version 3938 if test "${ac_cv_path_mkdir+set}" = set; then 3939 MKDIR_P="$ac_cv_path_mkdir -p" 3940 else 3941 # As a last resort, use the slow shell script. Don't cache a 3942 # value for MKDIR_P within a source directory, because that will 3943 # break other packages using the cache if that directory is 3944 # removed, or if the value is a relative name. 3945 MKDIR_P="$ac_install_sh -d" 3946 fi 3947fi 3948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3949$as_echo "$MKDIR_P" >&6; } 3950 3951for ac_prog in gawk mawk nawk awk 3952do 3953 # Extract the first word of "$ac_prog", so it can be a program name with args. 3954set dummy $ac_prog; ac_word=$2 3955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3956$as_echo_n "checking for $ac_word... " >&6; } 3957if ${ac_cv_prog_AWK+:} false; then : 3958 $as_echo_n "(cached) " >&6 3959else 3960 if test -n "$AWK"; then 3961 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3962else 3963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3964for as_dir in $PATH 3965do 3966 IFS=$as_save_IFS 3967 test -z "$as_dir" && as_dir=. 3968 for ac_exec_ext in '' $ac_executable_extensions; do 3969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3970 ac_cv_prog_AWK="$ac_prog" 3971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3972 break 2 3973 fi 3974done 3975 done 3976IFS=$as_save_IFS 3977 3978fi 3979fi 3980AWK=$ac_cv_prog_AWK 3981if test -n "$AWK"; then 3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3983$as_echo "$AWK" >&6; } 3984else 3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3986$as_echo "no" >&6; } 3987fi 3988 3989 3990 test -n "$AWK" && break 3991done 3992 3993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3994$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3995set x ${MAKE-make} 3996ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3997if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3998 $as_echo_n "(cached) " >&6 3999else 4000 cat >conftest.make <<\_ACEOF 4001SHELL = /bin/sh 4002all: 4003 @echo '@@@%%%=$(MAKE)=@@@%%%' 4004_ACEOF 4005# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4006case `${MAKE-make} -f conftest.make 2>/dev/null` in 4007 *@@@%%%=?*=@@@%%%*) 4008 eval ac_cv_prog_make_${ac_make}_set=yes;; 4009 *) 4010 eval ac_cv_prog_make_${ac_make}_set=no;; 4011esac 4012rm -f conftest.make 4013fi 4014if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4016$as_echo "yes" >&6; } 4017 SET_MAKE= 4018else 4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4020$as_echo "no" >&6; } 4021 SET_MAKE="MAKE=${MAKE-make}" 4022fi 4023 4024rm -rf .tst 2>/dev/null 4025mkdir .tst 2>/dev/null 4026if test -d .tst; then 4027 am__leading_dot=. 4028else 4029 am__leading_dot=_ 4030fi 4031rmdir .tst 2>/dev/null 4032 4033DEPDIR="${am__leading_dot}deps" 4034 4035ac_config_commands="$ac_config_commands depfiles" 4036 4037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4038$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 4039cat > confinc.mk << 'END' 4040am__doit: 4041 @echo this is the am__doit target >confinc.out 4042.PHONY: am__doit 4043END 4044am__include="#" 4045am__quote= 4046# BSD make does it like this. 4047echo '.include "confinc.mk" # ignored' > confmf.BSD 4048# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4049echo 'include confinc.mk # ignored' > confmf.GNU 4050_am_result=no 4051for s in GNU BSD; do 4052 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4053 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4054 ac_status=$? 4055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4056 (exit $ac_status); } 4057 case $?:`cat confinc.out 2>/dev/null` in #( 4058 '0:this is the am__doit target') : 4059 case $s in #( 4060 BSD) : 4061 am__include='.include' am__quote='"' ;; #( 4062 *) : 4063 am__include='include' am__quote='' ;; 4064esac ;; #( 4065 *) : 4066 ;; 4067esac 4068 if test "$am__include" != "#"; then 4069 _am_result="yes ($s style)" 4070 break 4071 fi 4072done 4073rm -f confinc.* confmf.* 4074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4075$as_echo "${_am_result}" >&6; } 4076 4077# Check whether --enable-dependency-tracking was given. 4078if test "${enable_dependency_tracking+set}" = set; then : 4079 enableval=$enable_dependency_tracking; 4080fi 4081 4082if test "x$enable_dependency_tracking" != xno; then 4083 am_depcomp="$ac_aux_dir/depcomp" 4084 AMDEPBACKSLASH='\' 4085 am__nodep='_no' 4086fi 4087 if test "x$enable_dependency_tracking" != xno; then 4088 AMDEP_TRUE= 4089 AMDEP_FALSE='#' 4090else 4091 AMDEP_TRUE='#' 4092 AMDEP_FALSE= 4093fi 4094 4095 4096# Check whether --enable-silent-rules was given. 4097if test "${enable_silent_rules+set}" = set; then : 4098 enableval=$enable_silent_rules; 4099fi 4100 4101case $enable_silent_rules in # ((( 4102 yes) AM_DEFAULT_VERBOSITY=0;; 4103 no) AM_DEFAULT_VERBOSITY=1;; 4104 *) AM_DEFAULT_VERBOSITY=1;; 4105esac 4106am_make=${MAKE-make} 4107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4108$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4109if ${am_cv_make_support_nested_variables+:} false; then : 4110 $as_echo_n "(cached) " >&6 4111else 4112 if $as_echo 'TRUE=$(BAR$(V)) 4113BAR0=false 4114BAR1=true 4115V=1 4116am__doit: 4117 @$(TRUE) 4118.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4119 am_cv_make_support_nested_variables=yes 4120else 4121 am_cv_make_support_nested_variables=no 4122fi 4123fi 4124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4125$as_echo "$am_cv_make_support_nested_variables" >&6; } 4126if test $am_cv_make_support_nested_variables = yes; then 4127 AM_V='$(V)' 4128 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4129else 4130 AM_V=$AM_DEFAULT_VERBOSITY 4131 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4132fi 4133AM_BACKSLASH='\' 4134 4135if test "`cd $srcdir && pwd`" != "`pwd`"; then 4136 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4137 # is not polluted with repeated "-I." 4138 am__isrc=' -I$(srcdir)' 4139 # test to see if srcdir already configured 4140 if test -f $srcdir/config.status; then 4141 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4142 fi 4143fi 4144 4145# test whether we have cygpath 4146if test -z "$CYGPATH_W"; then 4147 if (cygpath --version) >/dev/null 2>/dev/null; then 4148 CYGPATH_W='cygpath -w' 4149 else 4150 CYGPATH_W=echo 4151 fi 4152fi 4153 4154 4155# Define the identity of the package. 4156 PACKAGE='xrdb' 4157 VERSION='1.2.1' 4158 4159 4160cat >>confdefs.h <<_ACEOF 4161#define PACKAGE "$PACKAGE" 4162_ACEOF 4163 4164 4165cat >>confdefs.h <<_ACEOF 4166#define VERSION "$VERSION" 4167_ACEOF 4168 4169# Some tools Automake needs. 4170 4171ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4172 4173 4174AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4175 4176 4177AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4178 4179 4180AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4181 4182 4183MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4184 4185# For better backward compatibility. To be removed once Automake 1.9.x 4186# dies out for good. For more background, see: 4187# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4188# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4189mkdir_p='$(MKDIR_P)' 4190 4191# We need awk for the "check" target (and possibly the TAP driver). The 4192# system "awk" is bad on some platforms. 4193# Always define AMTAR for backward compatibility. Yes, it's still used 4194# in the wild :-( We should find a proper way to deprecate it ... 4195AMTAR='$${TAR-tar}' 4196 4197 4198# We'll loop over all known methods to create a tar archive until one works. 4199_am_tools='gnutar pax cpio none' 4200 4201am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4202 4203 4204 4205 4206 4207depcc="$CC" am_compiler_list= 4208 4209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4210$as_echo_n "checking dependency style of $depcc... " >&6; } 4211if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4212 $as_echo_n "(cached) " >&6 4213else 4214 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4215 # We make a subdir and do the tests there. Otherwise we can end up 4216 # making bogus files that we don't know about and never remove. For 4217 # instance it was reported that on HP-UX the gcc test will end up 4218 # making a dummy file named 'D' -- because '-MD' means "put the output 4219 # in D". 4220 rm -rf conftest.dir 4221 mkdir conftest.dir 4222 # Copy depcomp to subdir because otherwise we won't find it if we're 4223 # using a relative directory. 4224 cp "$am_depcomp" conftest.dir 4225 cd conftest.dir 4226 # We will build objects and dependencies in a subdirectory because 4227 # it helps to detect inapplicable dependency modes. For instance 4228 # both Tru64's cc and ICC support -MD to output dependencies as a 4229 # side effect of compilation, but ICC will put the dependencies in 4230 # the current directory while Tru64 will put them in the object 4231 # directory. 4232 mkdir sub 4233 4234 am_cv_CC_dependencies_compiler_type=none 4235 if test "$am_compiler_list" = ""; then 4236 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4237 fi 4238 am__universal=false 4239 case " $depcc " in #( 4240 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4241 esac 4242 4243 for depmode in $am_compiler_list; do 4244 # Setup a source with many dependencies, because some compilers 4245 # like to wrap large dependency lists on column 80 (with \), and 4246 # we should not choose a depcomp mode which is confused by this. 4247 # 4248 # We need to recreate these files for each test, as the compiler may 4249 # overwrite some of them when testing with obscure command lines. 4250 # This happens at least with the AIX C compiler. 4251 : > sub/conftest.c 4252 for i in 1 2 3 4 5 6; do 4253 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4254 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4255 # Solaris 10 /bin/sh. 4256 echo '/* dummy */' > sub/conftst$i.h 4257 done 4258 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4259 4260 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4261 # mode. It turns out that the SunPro C++ compiler does not properly 4262 # handle '-M -o', and we need to detect this. Also, some Intel 4263 # versions had trouble with output in subdirs. 4264 am__obj=sub/conftest.${OBJEXT-o} 4265 am__minus_obj="-o $am__obj" 4266 case $depmode in 4267 gcc) 4268 # This depmode causes a compiler race in universal mode. 4269 test "$am__universal" = false || continue 4270 ;; 4271 nosideeffect) 4272 # After this tag, mechanisms are not by side-effect, so they'll 4273 # only be used when explicitly requested. 4274 if test "x$enable_dependency_tracking" = xyes; then 4275 continue 4276 else 4277 break 4278 fi 4279 ;; 4280 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4281 # This compiler won't grok '-c -o', but also, the minuso test has 4282 # not run yet. These depmodes are late enough in the game, and 4283 # so weak that their functioning should not be impacted. 4284 am__obj=conftest.${OBJEXT-o} 4285 am__minus_obj= 4286 ;; 4287 none) break ;; 4288 esac 4289 if depmode=$depmode \ 4290 source=sub/conftest.c object=$am__obj \ 4291 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4292 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4293 >/dev/null 2>conftest.err && 4294 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4295 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4296 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4297 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4298 # icc doesn't choke on unknown options, it will just issue warnings 4299 # or remarks (even with -Werror). So we grep stderr for any message 4300 # that says an option was ignored or not supported. 4301 # When given -MP, icc 7.0 and 7.1 complain thusly: 4302 # icc: Command line warning: ignoring option '-M'; no argument required 4303 # The diagnosis changed in icc 8.0: 4304 # icc: Command line remark: option '-MP' not supported 4305 if (grep 'ignoring option' conftest.err || 4306 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4307 am_cv_CC_dependencies_compiler_type=$depmode 4308 break 4309 fi 4310 fi 4311 done 4312 4313 cd .. 4314 rm -rf conftest.dir 4315else 4316 am_cv_CC_dependencies_compiler_type=none 4317fi 4318 4319fi 4320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4321$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4322CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4323 4324 if 4325 test "x$enable_dependency_tracking" != xno \ 4326 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4327 am__fastdepCC_TRUE= 4328 am__fastdepCC_FALSE='#' 4329else 4330 am__fastdepCC_TRUE='#' 4331 am__fastdepCC_FALSE= 4332fi 4333 4334 4335 4336# POSIX will say in a future version that running "rm -f" with no argument 4337# is OK; and we want to be able to make that assumption in our Makefile 4338# recipes. So use an aggressive probe to check that the usage we want is 4339# actually supported "in the wild" to an acceptable degree. 4340# See automake bug#10828. 4341# To make any issue more visible, cause the running configure to be aborted 4342# by default if the 'rm' program in use doesn't match our expectations; the 4343# user can still override this though. 4344if rm -f && rm -fr && rm -rf; then : OK; else 4345 cat >&2 <<'END' 4346Oops! 4347 4348Your 'rm' program seems unable to run without file operands specified 4349on the command line, even when the '-f' option is present. This is contrary 4350to the behaviour of most rm programs out there, and not conforming with 4351the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4352 4353Please tell bug-automake@gnu.org about your system, including the value 4354of your $PATH and any error possibly output before this message. This 4355can help us improve future automake versions. 4356 4357END 4358 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4359 echo 'Configuration will proceed anyway, since you have set the' >&2 4360 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4361 echo >&2 4362 else 4363 cat >&2 <<'END' 4364Aborting the configuration process, to ensure you take notice of the issue. 4365 4366You can download and install GNU coreutils to get an 'rm' implementation 4367that behaves properly: <https://www.gnu.org/software/coreutils/>. 4368 4369If you want to complete the configuration process using your problematic 4370'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4371to "yes", and re-run configure. 4372 4373END 4374 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4375 fi 4376fi 4377 4378 4379# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4392$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4393if ${ac_cv_prog_cc_c99+:} false; then : 4394 $as_echo_n "(cached) " >&6 4395else 4396 ac_cv_prog_cc_c99=no 4397ac_save_CC=$CC 4398cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4399/* end confdefs.h. */ 4400#include <stdarg.h> 4401#include <stdbool.h> 4402#include <stdlib.h> 4403#include <wchar.h> 4404#include <stdio.h> 4405 4406// Check varargs macros. These examples are taken from C99 6.10.3.5. 4407#define debug(...) fprintf (stderr, __VA_ARGS__) 4408#define showlist(...) puts (#__VA_ARGS__) 4409#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4410static void 4411test_varargs_macros (void) 4412{ 4413 int x = 1234; 4414 int y = 5678; 4415 debug ("Flag"); 4416 debug ("X = %d\n", x); 4417 showlist (The first, second, and third items.); 4418 report (x>y, "x is %d but y is %d", x, y); 4419} 4420 4421// Check long long types. 4422#define BIG64 18446744073709551615ull 4423#define BIG32 4294967295ul 4424#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4425#if !BIG_OK 4426 your preprocessor is broken; 4427#endif 4428#if BIG_OK 4429#else 4430 your preprocessor is broken; 4431#endif 4432static long long int bignum = -9223372036854775807LL; 4433static unsigned long long int ubignum = BIG64; 4434 4435struct incomplete_array 4436{ 4437 int datasize; 4438 double data[]; 4439}; 4440 4441struct named_init { 4442 int number; 4443 const wchar_t *name; 4444 double average; 4445}; 4446 4447typedef const char *ccp; 4448 4449static inline int 4450test_restrict (ccp restrict text) 4451{ 4452 // See if C++-style comments work. 4453 // Iterate through items via the restricted pointer. 4454 // Also check for declarations in for loops. 4455 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4456 continue; 4457 return 0; 4458} 4459 4460// Check varargs and va_copy. 4461static void 4462test_varargs (const char *format, ...) 4463{ 4464 va_list args; 4465 va_start (args, format); 4466 va_list args_copy; 4467 va_copy (args_copy, args); 4468 4469 const char *str; 4470 int number; 4471 float fnumber; 4472 4473 while (*format) 4474 { 4475 switch (*format++) 4476 { 4477 case 's': // string 4478 str = va_arg (args_copy, const char *); 4479 break; 4480 case 'd': // int 4481 number = va_arg (args_copy, int); 4482 break; 4483 case 'f': // float 4484 fnumber = va_arg (args_copy, double); 4485 break; 4486 default: 4487 break; 4488 } 4489 } 4490 va_end (args_copy); 4491 va_end (args); 4492} 4493 4494int 4495main () 4496{ 4497 4498 // Check bool. 4499 _Bool success = false; 4500 4501 // Check restrict. 4502 if (test_restrict ("String literal") == 0) 4503 success = true; 4504 char *restrict newvar = "Another string"; 4505 4506 // Check varargs. 4507 test_varargs ("s, d' f .", "string", 65, 34.234); 4508 test_varargs_macros (); 4509 4510 // Check flexible array members. 4511 struct incomplete_array *ia = 4512 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4513 ia->datasize = 10; 4514 for (int i = 0; i < ia->datasize; ++i) 4515 ia->data[i] = i * 1.234; 4516 4517 // Check named initializers. 4518 struct named_init ni = { 4519 .number = 34, 4520 .name = L"Test wide string", 4521 .average = 543.34343, 4522 }; 4523 4524 ni.number = 58; 4525 4526 int dynamic_array[ni.number]; 4527 dynamic_array[ni.number - 1] = 543; 4528 4529 // work around unused variable warnings 4530 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4531 || dynamic_array[ni.number - 1] != 543); 4532 4533 ; 4534 return 0; 4535} 4536_ACEOF 4537for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4538do 4539 CC="$ac_save_CC $ac_arg" 4540 if ac_fn_c_try_compile "$LINENO"; then : 4541 ac_cv_prog_cc_c99=$ac_arg 4542fi 4543rm -f core conftest.err conftest.$ac_objext 4544 test "x$ac_cv_prog_cc_c99" != "xno" && break 4545done 4546rm -f conftest.$ac_ext 4547CC=$ac_save_CC 4548 4549fi 4550# AC_CACHE_VAL 4551case "x$ac_cv_prog_cc_c99" in 4552 x) 4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4554$as_echo "none needed" >&6; } ;; 4555 xno) 4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4557$as_echo "unsupported" >&6; } ;; 4558 *) 4559 CC="$CC $ac_cv_prog_cc_c99" 4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4561$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4562esac 4563if test "x$ac_cv_prog_cc_c99" != xno; then : 4564 4565fi 4566 4567 4568 4569 4570 4571 4572ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4573if test "x$ac_cv_have_decl___clang__" = xyes; then : 4574 CLANGCC="yes" 4575else 4576 CLANGCC="no" 4577fi 4578 4579ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4580if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4581 INTELCC="yes" 4582else 4583 INTELCC="no" 4584fi 4585 4586ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4587if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4588 SUNCC="yes" 4589else 4590 SUNCC="no" 4591fi 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4602 if test -n "$ac_tool_prefix"; then 4603 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4604set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4606$as_echo_n "checking for $ac_word... " >&6; } 4607if ${ac_cv_path_PKG_CONFIG+:} false; then : 4608 $as_echo_n "(cached) " >&6 4609else 4610 case $PKG_CONFIG in 4611 [\\/]* | ?:[\\/]*) 4612 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4613 ;; 4614 *) 4615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4616for as_dir in $PATH 4617do 4618 IFS=$as_save_IFS 4619 test -z "$as_dir" && as_dir=. 4620 for ac_exec_ext in '' $ac_executable_extensions; do 4621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4622 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4624 break 2 4625 fi 4626done 4627 done 4628IFS=$as_save_IFS 4629 4630 ;; 4631esac 4632fi 4633PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4634if test -n "$PKG_CONFIG"; then 4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4636$as_echo "$PKG_CONFIG" >&6; } 4637else 4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4639$as_echo "no" >&6; } 4640fi 4641 4642 4643fi 4644if test -z "$ac_cv_path_PKG_CONFIG"; then 4645 ac_pt_PKG_CONFIG=$PKG_CONFIG 4646 # Extract the first word of "pkg-config", so it can be a program name with args. 4647set dummy pkg-config; ac_word=$2 4648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4649$as_echo_n "checking for $ac_word... " >&6; } 4650if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4651 $as_echo_n "(cached) " >&6 4652else 4653 case $ac_pt_PKG_CONFIG in 4654 [\\/]* | ?:[\\/]*) 4655 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4656 ;; 4657 *) 4658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4659for as_dir in $PATH 4660do 4661 IFS=$as_save_IFS 4662 test -z "$as_dir" && as_dir=. 4663 for ac_exec_ext in '' $ac_executable_extensions; do 4664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4665 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4667 break 2 4668 fi 4669done 4670 done 4671IFS=$as_save_IFS 4672 4673 ;; 4674esac 4675fi 4676ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4677if test -n "$ac_pt_PKG_CONFIG"; then 4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4679$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4680else 4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4682$as_echo "no" >&6; } 4683fi 4684 4685 if test "x$ac_pt_PKG_CONFIG" = x; then 4686 PKG_CONFIG="" 4687 else 4688 case $cross_compiling:$ac_tool_warned in 4689yes:) 4690{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4691$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4692ac_tool_warned=yes ;; 4693esac 4694 PKG_CONFIG=$ac_pt_PKG_CONFIG 4695 fi 4696else 4697 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4698fi 4699 4700fi 4701if test -n "$PKG_CONFIG"; then 4702 _pkg_min_version=0.9.0 4703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4704$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4705 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4707$as_echo "yes" >&6; } 4708 else 4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4710$as_echo "no" >&6; } 4711 PKG_CONFIG="" 4712 fi 4713fi 4714# Make sure we can run config.sub. 4715$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4716 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4717 4718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4719$as_echo_n "checking build system type... " >&6; } 4720if ${ac_cv_build+:} false; then : 4721 $as_echo_n "(cached) " >&6 4722else 4723 ac_build_alias=$build_alias 4724test "x$ac_build_alias" = x && 4725 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4726test "x$ac_build_alias" = x && 4727 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4728ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4729 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4730 4731fi 4732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4733$as_echo "$ac_cv_build" >&6; } 4734case $ac_cv_build in 4735*-*-*) ;; 4736*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4737esac 4738build=$ac_cv_build 4739ac_save_IFS=$IFS; IFS='-' 4740set x $ac_cv_build 4741shift 4742build_cpu=$1 4743build_vendor=$2 4744shift; shift 4745# Remember, the first character of IFS is used to create $*, 4746# except with old shells: 4747build_os=$* 4748IFS=$ac_save_IFS 4749case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4750 4751 4752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4753$as_echo_n "checking host system type... " >&6; } 4754if ${ac_cv_host+:} false; then : 4755 $as_echo_n "(cached) " >&6 4756else 4757 if test "x$host_alias" = x; then 4758 ac_cv_host=$ac_cv_build 4759else 4760 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4761 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4762fi 4763 4764fi 4765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4766$as_echo "$ac_cv_host" >&6; } 4767case $ac_cv_host in 4768*-*-*) ;; 4769*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4770esac 4771host=$ac_cv_host 4772ac_save_IFS=$IFS; IFS='-' 4773set x $ac_cv_host 4774shift 4775host_cpu=$1 4776host_vendor=$2 4777shift; shift 4778# Remember, the first character of IFS is used to create $*, 4779# except with old shells: 4780host_os=$* 4781IFS=$ac_save_IFS 4782case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4783 4784 4785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4786$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4787if ${ac_cv_path_SED+:} false; then : 4788 $as_echo_n "(cached) " >&6 4789else 4790 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4791 for ac_i in 1 2 3 4 5 6 7; do 4792 ac_script="$ac_script$as_nl$ac_script" 4793 done 4794 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4795 { ac_script=; unset ac_script;} 4796 if test -z "$SED"; then 4797 ac_path_SED_found=false 4798 # Loop through the user's path and test for each of PROGNAME-LIST 4799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4800for as_dir in $PATH 4801do 4802 IFS=$as_save_IFS 4803 test -z "$as_dir" && as_dir=. 4804 for ac_prog in sed gsed; do 4805 for ac_exec_ext in '' $ac_executable_extensions; do 4806 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4807 as_fn_executable_p "$ac_path_SED" || continue 4808# Check for GNU ac_path_SED and select it if it is found. 4809 # Check for GNU $ac_path_SED 4810case `"$ac_path_SED" --version 2>&1` in 4811*GNU*) 4812 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4813*) 4814 ac_count=0 4815 $as_echo_n 0123456789 >"conftest.in" 4816 while : 4817 do 4818 cat "conftest.in" "conftest.in" >"conftest.tmp" 4819 mv "conftest.tmp" "conftest.in" 4820 cp "conftest.in" "conftest.nl" 4821 $as_echo '' >> "conftest.nl" 4822 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4823 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4824 as_fn_arith $ac_count + 1 && ac_count=$as_val 4825 if test $ac_count -gt ${ac_path_SED_max-0}; then 4826 # Best one so far, save it but keep looking for a better one 4827 ac_cv_path_SED="$ac_path_SED" 4828 ac_path_SED_max=$ac_count 4829 fi 4830 # 10*(2^10) chars as input seems more than enough 4831 test $ac_count -gt 10 && break 4832 done 4833 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4834esac 4835 4836 $ac_path_SED_found && break 3 4837 done 4838 done 4839 done 4840IFS=$as_save_IFS 4841 if test -z "$ac_cv_path_SED"; then 4842 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4843 fi 4844else 4845 ac_cv_path_SED=$SED 4846fi 4847 4848fi 4849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4850$as_echo "$ac_cv_path_SED" >&6; } 4851 SED="$ac_cv_path_SED" 4852 rm -f conftest.sed 4853 4854 4855 4856 4857 4858 4859# Check whether --enable-selective-werror was given. 4860if test "${enable_selective_werror+set}" = set; then : 4861 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4862else 4863 SELECTIVE_WERROR=yes 4864fi 4865 4866 4867 4868 4869 4870# -v is too short to test reliably with XORG_TESTSET_CFLAG 4871if test "x$SUNCC" = "xyes"; then 4872 BASE_CFLAGS="-v" 4873else 4874 BASE_CFLAGS="" 4875fi 4876 4877# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891xorg_testset_save_CFLAGS="$CFLAGS" 4892 4893if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4894 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4896$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4897if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4898 $as_echo_n "(cached) " >&6 4899else 4900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4901/* end confdefs.h. */ 4902int i; 4903_ACEOF 4904if ac_fn_c_try_compile "$LINENO"; then : 4905 xorg_cv_cc_flag_unknown_warning_option=yes 4906else 4907 xorg_cv_cc_flag_unknown_warning_option=no 4908fi 4909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4910fi 4911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4912$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4913 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4914 CFLAGS="$xorg_testset_save_CFLAGS" 4915fi 4916 4917if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4918 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4919 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4920 fi 4921 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4923$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4924if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4925 $as_echo_n "(cached) " >&6 4926else 4927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4928/* end confdefs.h. */ 4929int i; 4930_ACEOF 4931if ac_fn_c_try_compile "$LINENO"; then : 4932 xorg_cv_cc_flag_unused_command_line_argument=yes 4933else 4934 xorg_cv_cc_flag_unused_command_line_argument=no 4935fi 4936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4937fi 4938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4939$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4940 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4941 CFLAGS="$xorg_testset_save_CFLAGS" 4942fi 4943 4944found="no" 4945 4946 if test $found = "no" ; then 4947 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4948 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4949 fi 4950 4951 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4953 fi 4954 4955 CFLAGS="$CFLAGS -Wall" 4956 4957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4958$as_echo_n "checking if $CC supports -Wall... " >&6; } 4959 cacheid=xorg_cv_cc_flag__Wall 4960 if eval \${$cacheid+:} false; then : 4961 $as_echo_n "(cached) " >&6 4962else 4963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4964/* end confdefs.h. */ 4965int i; 4966int 4967main () 4968{ 4969 4970 ; 4971 return 0; 4972} 4973_ACEOF 4974if ac_fn_c_try_link "$LINENO"; then : 4975 eval $cacheid=yes 4976else 4977 eval $cacheid=no 4978fi 4979rm -f core conftest.err conftest.$ac_objext \ 4980 conftest$ac_exeext conftest.$ac_ext 4981fi 4982 4983 4984 CFLAGS="$xorg_testset_save_CFLAGS" 4985 4986 eval supported=\$$cacheid 4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4988$as_echo "$supported" >&6; } 4989 if test "$supported" = "yes" ; then 4990 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4991 found="yes" 4992 fi 4993 fi 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009xorg_testset_save_CFLAGS="$CFLAGS" 5010 5011if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5012 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5014$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5015if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5016 $as_echo_n "(cached) " >&6 5017else 5018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5019/* end confdefs.h. */ 5020int i; 5021_ACEOF 5022if ac_fn_c_try_compile "$LINENO"; then : 5023 xorg_cv_cc_flag_unknown_warning_option=yes 5024else 5025 xorg_cv_cc_flag_unknown_warning_option=no 5026fi 5027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5028fi 5029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5030$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5031 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5032 CFLAGS="$xorg_testset_save_CFLAGS" 5033fi 5034 5035if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5036 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5037 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5038 fi 5039 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5041$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5042if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5043 $as_echo_n "(cached) " >&6 5044else 5045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5046/* end confdefs.h. */ 5047int i; 5048_ACEOF 5049if ac_fn_c_try_compile "$LINENO"; then : 5050 xorg_cv_cc_flag_unused_command_line_argument=yes 5051else 5052 xorg_cv_cc_flag_unused_command_line_argument=no 5053fi 5054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5055fi 5056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5057$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5058 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5059 CFLAGS="$xorg_testset_save_CFLAGS" 5060fi 5061 5062found="no" 5063 5064 if test $found = "no" ; then 5065 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5066 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5067 fi 5068 5069 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5071 fi 5072 5073 CFLAGS="$CFLAGS -Wpointer-arith" 5074 5075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5076$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 5077 cacheid=xorg_cv_cc_flag__Wpointer_arith 5078 if eval \${$cacheid+:} false; then : 5079 $as_echo_n "(cached) " >&6 5080else 5081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5082/* end confdefs.h. */ 5083int i; 5084int 5085main () 5086{ 5087 5088 ; 5089 return 0; 5090} 5091_ACEOF 5092if ac_fn_c_try_link "$LINENO"; then : 5093 eval $cacheid=yes 5094else 5095 eval $cacheid=no 5096fi 5097rm -f core conftest.err conftest.$ac_objext \ 5098 conftest$ac_exeext conftest.$ac_ext 5099fi 5100 5101 5102 CFLAGS="$xorg_testset_save_CFLAGS" 5103 5104 eval supported=\$$cacheid 5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5106$as_echo "$supported" >&6; } 5107 if test "$supported" = "yes" ; then 5108 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5109 found="yes" 5110 fi 5111 fi 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127xorg_testset_save_CFLAGS="$CFLAGS" 5128 5129if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5130 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5132$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5133if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5134 $as_echo_n "(cached) " >&6 5135else 5136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5137/* end confdefs.h. */ 5138int i; 5139_ACEOF 5140if ac_fn_c_try_compile "$LINENO"; then : 5141 xorg_cv_cc_flag_unknown_warning_option=yes 5142else 5143 xorg_cv_cc_flag_unknown_warning_option=no 5144fi 5145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5146fi 5147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5148$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5149 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5150 CFLAGS="$xorg_testset_save_CFLAGS" 5151fi 5152 5153if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5154 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5155 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5156 fi 5157 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5159$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5160if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5161 $as_echo_n "(cached) " >&6 5162else 5163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5164/* end confdefs.h. */ 5165int i; 5166_ACEOF 5167if ac_fn_c_try_compile "$LINENO"; then : 5168 xorg_cv_cc_flag_unused_command_line_argument=yes 5169else 5170 xorg_cv_cc_flag_unused_command_line_argument=no 5171fi 5172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5173fi 5174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5175$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5176 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5177 CFLAGS="$xorg_testset_save_CFLAGS" 5178fi 5179 5180found="no" 5181 5182 if test $found = "no" ; then 5183 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5184 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5185 fi 5186 5187 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5188 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5189 fi 5190 5191 CFLAGS="$CFLAGS -Wmissing-declarations" 5192 5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5194$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 5195 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5196 if eval \${$cacheid+:} false; then : 5197 $as_echo_n "(cached) " >&6 5198else 5199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5200/* end confdefs.h. */ 5201int i; 5202int 5203main () 5204{ 5205 5206 ; 5207 return 0; 5208} 5209_ACEOF 5210if ac_fn_c_try_link "$LINENO"; then : 5211 eval $cacheid=yes 5212else 5213 eval $cacheid=no 5214fi 5215rm -f core conftest.err conftest.$ac_objext \ 5216 conftest$ac_exeext conftest.$ac_ext 5217fi 5218 5219 5220 CFLAGS="$xorg_testset_save_CFLAGS" 5221 5222 eval supported=\$$cacheid 5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5224$as_echo "$supported" >&6; } 5225 if test "$supported" = "yes" ; then 5226 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5227 found="yes" 5228 fi 5229 fi 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245xorg_testset_save_CFLAGS="$CFLAGS" 5246 5247if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5248 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5250$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5251if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5252 $as_echo_n "(cached) " >&6 5253else 5254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5255/* end confdefs.h. */ 5256int i; 5257_ACEOF 5258if ac_fn_c_try_compile "$LINENO"; then : 5259 xorg_cv_cc_flag_unknown_warning_option=yes 5260else 5261 xorg_cv_cc_flag_unknown_warning_option=no 5262fi 5263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5264fi 5265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5266$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5267 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5268 CFLAGS="$xorg_testset_save_CFLAGS" 5269fi 5270 5271if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5272 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5273 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5274 fi 5275 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5277$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5278if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5279 $as_echo_n "(cached) " >&6 5280else 5281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5282/* end confdefs.h. */ 5283int i; 5284_ACEOF 5285if ac_fn_c_try_compile "$LINENO"; then : 5286 xorg_cv_cc_flag_unused_command_line_argument=yes 5287else 5288 xorg_cv_cc_flag_unused_command_line_argument=no 5289fi 5290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5291fi 5292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5293$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5294 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5295 CFLAGS="$xorg_testset_save_CFLAGS" 5296fi 5297 5298found="no" 5299 5300 if test $found = "no" ; then 5301 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5302 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5303 fi 5304 5305 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5306 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5307 fi 5308 5309 CFLAGS="$CFLAGS -Wformat=2" 5310 5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5312$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5313 cacheid=xorg_cv_cc_flag__Wformat_2 5314 if eval \${$cacheid+:} false; then : 5315 $as_echo_n "(cached) " >&6 5316else 5317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5318/* end confdefs.h. */ 5319int i; 5320int 5321main () 5322{ 5323 5324 ; 5325 return 0; 5326} 5327_ACEOF 5328if ac_fn_c_try_link "$LINENO"; then : 5329 eval $cacheid=yes 5330else 5331 eval $cacheid=no 5332fi 5333rm -f core conftest.err conftest.$ac_objext \ 5334 conftest$ac_exeext conftest.$ac_ext 5335fi 5336 5337 5338 CFLAGS="$xorg_testset_save_CFLAGS" 5339 5340 eval supported=\$$cacheid 5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5342$as_echo "$supported" >&6; } 5343 if test "$supported" = "yes" ; then 5344 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5345 found="yes" 5346 fi 5347 fi 5348 5349 if test $found = "no" ; then 5350 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5351 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5352 fi 5353 5354 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5355 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5356 fi 5357 5358 CFLAGS="$CFLAGS -Wformat" 5359 5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5361$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5362 cacheid=xorg_cv_cc_flag__Wformat 5363 if eval \${$cacheid+:} false; then : 5364 $as_echo_n "(cached) " >&6 5365else 5366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5367/* end confdefs.h. */ 5368int i; 5369int 5370main () 5371{ 5372 5373 ; 5374 return 0; 5375} 5376_ACEOF 5377if ac_fn_c_try_link "$LINENO"; then : 5378 eval $cacheid=yes 5379else 5380 eval $cacheid=no 5381fi 5382rm -f core conftest.err conftest.$ac_objext \ 5383 conftest$ac_exeext conftest.$ac_ext 5384fi 5385 5386 5387 CFLAGS="$xorg_testset_save_CFLAGS" 5388 5389 eval supported=\$$cacheid 5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5391$as_echo "$supported" >&6; } 5392 if test "$supported" = "yes" ; then 5393 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5394 found="yes" 5395 fi 5396 fi 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414xorg_testset_save_CFLAGS="$CFLAGS" 5415 5416if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5417 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5419$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5420if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5421 $as_echo_n "(cached) " >&6 5422else 5423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5424/* end confdefs.h. */ 5425int i; 5426_ACEOF 5427if ac_fn_c_try_compile "$LINENO"; then : 5428 xorg_cv_cc_flag_unknown_warning_option=yes 5429else 5430 xorg_cv_cc_flag_unknown_warning_option=no 5431fi 5432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5433fi 5434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5435$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5436 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5437 CFLAGS="$xorg_testset_save_CFLAGS" 5438fi 5439 5440if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5441 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5442 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5443 fi 5444 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5446$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5447if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5448 $as_echo_n "(cached) " >&6 5449else 5450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5451/* end confdefs.h. */ 5452int i; 5453_ACEOF 5454if ac_fn_c_try_compile "$LINENO"; then : 5455 xorg_cv_cc_flag_unused_command_line_argument=yes 5456else 5457 xorg_cv_cc_flag_unused_command_line_argument=no 5458fi 5459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5460fi 5461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5462$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5463 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5464 CFLAGS="$xorg_testset_save_CFLAGS" 5465fi 5466 5467found="no" 5468 5469 if test $found = "no" ; then 5470 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5471 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5472 fi 5473 5474 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5475 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5476 fi 5477 5478 CFLAGS="$CFLAGS -Wstrict-prototypes" 5479 5480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5481$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5482 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5483 if eval \${$cacheid+:} false; then : 5484 $as_echo_n "(cached) " >&6 5485else 5486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5487/* end confdefs.h. */ 5488int i; 5489int 5490main () 5491{ 5492 5493 ; 5494 return 0; 5495} 5496_ACEOF 5497if ac_fn_c_try_link "$LINENO"; then : 5498 eval $cacheid=yes 5499else 5500 eval $cacheid=no 5501fi 5502rm -f core conftest.err conftest.$ac_objext \ 5503 conftest$ac_exeext conftest.$ac_ext 5504fi 5505 5506 5507 CFLAGS="$xorg_testset_save_CFLAGS" 5508 5509 eval supported=\$$cacheid 5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5511$as_echo "$supported" >&6; } 5512 if test "$supported" = "yes" ; then 5513 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5514 found="yes" 5515 fi 5516 fi 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532xorg_testset_save_CFLAGS="$CFLAGS" 5533 5534if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5535 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5537$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5538if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5539 $as_echo_n "(cached) " >&6 5540else 5541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5542/* end confdefs.h. */ 5543int i; 5544_ACEOF 5545if ac_fn_c_try_compile "$LINENO"; then : 5546 xorg_cv_cc_flag_unknown_warning_option=yes 5547else 5548 xorg_cv_cc_flag_unknown_warning_option=no 5549fi 5550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5551fi 5552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5553$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5554 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5555 CFLAGS="$xorg_testset_save_CFLAGS" 5556fi 5557 5558if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5559 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5560 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5561 fi 5562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5564$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5565if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5566 $as_echo_n "(cached) " >&6 5567else 5568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5569/* end confdefs.h. */ 5570int i; 5571_ACEOF 5572if ac_fn_c_try_compile "$LINENO"; then : 5573 xorg_cv_cc_flag_unused_command_line_argument=yes 5574else 5575 xorg_cv_cc_flag_unused_command_line_argument=no 5576fi 5577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5578fi 5579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5580$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5581 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5582 CFLAGS="$xorg_testset_save_CFLAGS" 5583fi 5584 5585found="no" 5586 5587 if test $found = "no" ; then 5588 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5589 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5590 fi 5591 5592 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5593 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5594 fi 5595 5596 CFLAGS="$CFLAGS -Wmissing-prototypes" 5597 5598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5599$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5600 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5601 if eval \${$cacheid+:} false; then : 5602 $as_echo_n "(cached) " >&6 5603else 5604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5605/* end confdefs.h. */ 5606int i; 5607int 5608main () 5609{ 5610 5611 ; 5612 return 0; 5613} 5614_ACEOF 5615if ac_fn_c_try_link "$LINENO"; then : 5616 eval $cacheid=yes 5617else 5618 eval $cacheid=no 5619fi 5620rm -f core conftest.err conftest.$ac_objext \ 5621 conftest$ac_exeext conftest.$ac_ext 5622fi 5623 5624 5625 CFLAGS="$xorg_testset_save_CFLAGS" 5626 5627 eval supported=\$$cacheid 5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5629$as_echo "$supported" >&6; } 5630 if test "$supported" = "yes" ; then 5631 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5632 found="yes" 5633 fi 5634 fi 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650xorg_testset_save_CFLAGS="$CFLAGS" 5651 5652if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5653 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5655$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5656if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5657 $as_echo_n "(cached) " >&6 5658else 5659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5660/* end confdefs.h. */ 5661int i; 5662_ACEOF 5663if ac_fn_c_try_compile "$LINENO"; then : 5664 xorg_cv_cc_flag_unknown_warning_option=yes 5665else 5666 xorg_cv_cc_flag_unknown_warning_option=no 5667fi 5668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5669fi 5670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5671$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5672 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5673 CFLAGS="$xorg_testset_save_CFLAGS" 5674fi 5675 5676if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5677 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5678 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5679 fi 5680 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5682$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5683if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5684 $as_echo_n "(cached) " >&6 5685else 5686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5687/* end confdefs.h. */ 5688int i; 5689_ACEOF 5690if ac_fn_c_try_compile "$LINENO"; then : 5691 xorg_cv_cc_flag_unused_command_line_argument=yes 5692else 5693 xorg_cv_cc_flag_unused_command_line_argument=no 5694fi 5695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5696fi 5697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5698$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5699 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5700 CFLAGS="$xorg_testset_save_CFLAGS" 5701fi 5702 5703found="no" 5704 5705 if test $found = "no" ; then 5706 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5707 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5708 fi 5709 5710 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5711 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5712 fi 5713 5714 CFLAGS="$CFLAGS -Wnested-externs" 5715 5716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5717$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5718 cacheid=xorg_cv_cc_flag__Wnested_externs 5719 if eval \${$cacheid+:} false; then : 5720 $as_echo_n "(cached) " >&6 5721else 5722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5723/* end confdefs.h. */ 5724int i; 5725int 5726main () 5727{ 5728 5729 ; 5730 return 0; 5731} 5732_ACEOF 5733if ac_fn_c_try_link "$LINENO"; then : 5734 eval $cacheid=yes 5735else 5736 eval $cacheid=no 5737fi 5738rm -f core conftest.err conftest.$ac_objext \ 5739 conftest$ac_exeext conftest.$ac_ext 5740fi 5741 5742 5743 CFLAGS="$xorg_testset_save_CFLAGS" 5744 5745 eval supported=\$$cacheid 5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5747$as_echo "$supported" >&6; } 5748 if test "$supported" = "yes" ; then 5749 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5750 found="yes" 5751 fi 5752 fi 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768xorg_testset_save_CFLAGS="$CFLAGS" 5769 5770if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5771 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5773$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5774if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5775 $as_echo_n "(cached) " >&6 5776else 5777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5778/* end confdefs.h. */ 5779int i; 5780_ACEOF 5781if ac_fn_c_try_compile "$LINENO"; then : 5782 xorg_cv_cc_flag_unknown_warning_option=yes 5783else 5784 xorg_cv_cc_flag_unknown_warning_option=no 5785fi 5786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5787fi 5788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5789$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5790 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5791 CFLAGS="$xorg_testset_save_CFLAGS" 5792fi 5793 5794if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5795 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5796 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5797 fi 5798 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5800$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5801if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5802 $as_echo_n "(cached) " >&6 5803else 5804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5805/* end confdefs.h. */ 5806int i; 5807_ACEOF 5808if ac_fn_c_try_compile "$LINENO"; then : 5809 xorg_cv_cc_flag_unused_command_line_argument=yes 5810else 5811 xorg_cv_cc_flag_unused_command_line_argument=no 5812fi 5813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5814fi 5815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5816$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5817 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5818 CFLAGS="$xorg_testset_save_CFLAGS" 5819fi 5820 5821found="no" 5822 5823 if test $found = "no" ; then 5824 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5825 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5826 fi 5827 5828 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5829 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5830 fi 5831 5832 CFLAGS="$CFLAGS -Wbad-function-cast" 5833 5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5835$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5836 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5837 if eval \${$cacheid+:} false; then : 5838 $as_echo_n "(cached) " >&6 5839else 5840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5841/* end confdefs.h. */ 5842int i; 5843int 5844main () 5845{ 5846 5847 ; 5848 return 0; 5849} 5850_ACEOF 5851if ac_fn_c_try_link "$LINENO"; then : 5852 eval $cacheid=yes 5853else 5854 eval $cacheid=no 5855fi 5856rm -f core conftest.err conftest.$ac_objext \ 5857 conftest$ac_exeext conftest.$ac_ext 5858fi 5859 5860 5861 CFLAGS="$xorg_testset_save_CFLAGS" 5862 5863 eval supported=\$$cacheid 5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5865$as_echo "$supported" >&6; } 5866 if test "$supported" = "yes" ; then 5867 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5868 found="yes" 5869 fi 5870 fi 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886xorg_testset_save_CFLAGS="$CFLAGS" 5887 5888if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5889 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5891$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5892if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5893 $as_echo_n "(cached) " >&6 5894else 5895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5896/* end confdefs.h. */ 5897int i; 5898_ACEOF 5899if ac_fn_c_try_compile "$LINENO"; then : 5900 xorg_cv_cc_flag_unknown_warning_option=yes 5901else 5902 xorg_cv_cc_flag_unknown_warning_option=no 5903fi 5904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5905fi 5906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5907$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5908 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5909 CFLAGS="$xorg_testset_save_CFLAGS" 5910fi 5911 5912if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5913 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5914 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5915 fi 5916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5918$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5919if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5920 $as_echo_n "(cached) " >&6 5921else 5922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5923/* end confdefs.h. */ 5924int i; 5925_ACEOF 5926if ac_fn_c_try_compile "$LINENO"; then : 5927 xorg_cv_cc_flag_unused_command_line_argument=yes 5928else 5929 xorg_cv_cc_flag_unused_command_line_argument=no 5930fi 5931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5932fi 5933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5934$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5935 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5936 CFLAGS="$xorg_testset_save_CFLAGS" 5937fi 5938 5939found="no" 5940 5941 if test $found = "no" ; then 5942 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5943 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5944 fi 5945 5946 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5947 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5948 fi 5949 5950 CFLAGS="$CFLAGS -Wold-style-definition" 5951 5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5953$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5954 cacheid=xorg_cv_cc_flag__Wold_style_definition 5955 if eval \${$cacheid+:} false; then : 5956 $as_echo_n "(cached) " >&6 5957else 5958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5959/* end confdefs.h. */ 5960int i; 5961int 5962main () 5963{ 5964 5965 ; 5966 return 0; 5967} 5968_ACEOF 5969if ac_fn_c_try_link "$LINENO"; then : 5970 eval $cacheid=yes 5971else 5972 eval $cacheid=no 5973fi 5974rm -f core conftest.err conftest.$ac_objext \ 5975 conftest$ac_exeext conftest.$ac_ext 5976fi 5977 5978 5979 CFLAGS="$xorg_testset_save_CFLAGS" 5980 5981 eval supported=\$$cacheid 5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5983$as_echo "$supported" >&6; } 5984 if test "$supported" = "yes" ; then 5985 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5986 found="yes" 5987 fi 5988 fi 5989 5990 if test $found = "no" ; then 5991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5992 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5993 fi 5994 5995 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5996 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5997 fi 5998 5999 CFLAGS="$CFLAGS -fd" 6000 6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6002$as_echo_n "checking if $CC supports -fd... " >&6; } 6003 cacheid=xorg_cv_cc_flag__fd 6004 if eval \${$cacheid+:} false; then : 6005 $as_echo_n "(cached) " >&6 6006else 6007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6008/* end confdefs.h. */ 6009int i; 6010int 6011main () 6012{ 6013 6014 ; 6015 return 0; 6016} 6017_ACEOF 6018if ac_fn_c_try_link "$LINENO"; then : 6019 eval $cacheid=yes 6020else 6021 eval $cacheid=no 6022fi 6023rm -f core conftest.err conftest.$ac_objext \ 6024 conftest$ac_exeext conftest.$ac_ext 6025fi 6026 6027 6028 CFLAGS="$xorg_testset_save_CFLAGS" 6029 6030 eval supported=\$$cacheid 6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6032$as_echo "$supported" >&6; } 6033 if test "$supported" = "yes" ; then 6034 BASE_CFLAGS="$BASE_CFLAGS -fd" 6035 found="yes" 6036 fi 6037 fi 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053xorg_testset_save_CFLAGS="$CFLAGS" 6054 6055if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6056 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6058$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6059if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6060 $as_echo_n "(cached) " >&6 6061else 6062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6063/* end confdefs.h. */ 6064int i; 6065_ACEOF 6066if ac_fn_c_try_compile "$LINENO"; then : 6067 xorg_cv_cc_flag_unknown_warning_option=yes 6068else 6069 xorg_cv_cc_flag_unknown_warning_option=no 6070fi 6071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6072fi 6073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6074$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6075 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6076 CFLAGS="$xorg_testset_save_CFLAGS" 6077fi 6078 6079if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6080 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6081 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6082 fi 6083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6085$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6086if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6087 $as_echo_n "(cached) " >&6 6088else 6089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6090/* end confdefs.h. */ 6091int i; 6092_ACEOF 6093if ac_fn_c_try_compile "$LINENO"; then : 6094 xorg_cv_cc_flag_unused_command_line_argument=yes 6095else 6096 xorg_cv_cc_flag_unused_command_line_argument=no 6097fi 6098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6099fi 6100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6101$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6102 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6103 CFLAGS="$xorg_testset_save_CFLAGS" 6104fi 6105 6106found="no" 6107 6108 if test $found = "no" ; then 6109 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6110 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6111 fi 6112 6113 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6114 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6115 fi 6116 6117 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6118 6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6120$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6121 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6122 if eval \${$cacheid+:} false; then : 6123 $as_echo_n "(cached) " >&6 6124else 6125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6126/* end confdefs.h. */ 6127int i; 6128int 6129main () 6130{ 6131 6132 ; 6133 return 0; 6134} 6135_ACEOF 6136if ac_fn_c_try_link "$LINENO"; then : 6137 eval $cacheid=yes 6138else 6139 eval $cacheid=no 6140fi 6141rm -f core conftest.err conftest.$ac_objext \ 6142 conftest$ac_exeext conftest.$ac_ext 6143fi 6144 6145 6146 CFLAGS="$xorg_testset_save_CFLAGS" 6147 6148 eval supported=\$$cacheid 6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6150$as_echo "$supported" >&6; } 6151 if test "$supported" = "yes" ; then 6152 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6153 found="yes" 6154 fi 6155 fi 6156 6157 6158 6159 6160 6161# This chunk adds additional warnings that could catch undesired effects. 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175xorg_testset_save_CFLAGS="$CFLAGS" 6176 6177if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6178 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6180$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6181if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6182 $as_echo_n "(cached) " >&6 6183else 6184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6185/* end confdefs.h. */ 6186int i; 6187_ACEOF 6188if ac_fn_c_try_compile "$LINENO"; then : 6189 xorg_cv_cc_flag_unknown_warning_option=yes 6190else 6191 xorg_cv_cc_flag_unknown_warning_option=no 6192fi 6193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6194fi 6195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6196$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6197 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6198 CFLAGS="$xorg_testset_save_CFLAGS" 6199fi 6200 6201if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6202 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6203 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6204 fi 6205 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6207$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6208if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6209 $as_echo_n "(cached) " >&6 6210else 6211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6212/* end confdefs.h. */ 6213int i; 6214_ACEOF 6215if ac_fn_c_try_compile "$LINENO"; then : 6216 xorg_cv_cc_flag_unused_command_line_argument=yes 6217else 6218 xorg_cv_cc_flag_unused_command_line_argument=no 6219fi 6220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6221fi 6222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6223$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6224 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6225 CFLAGS="$xorg_testset_save_CFLAGS" 6226fi 6227 6228found="no" 6229 6230 if test $found = "no" ; then 6231 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6232 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6233 fi 6234 6235 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6237 fi 6238 6239 CFLAGS="$CFLAGS -Wunused" 6240 6241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6242$as_echo_n "checking if $CC supports -Wunused... " >&6; } 6243 cacheid=xorg_cv_cc_flag__Wunused 6244 if eval \${$cacheid+:} false; then : 6245 $as_echo_n "(cached) " >&6 6246else 6247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6248/* end confdefs.h. */ 6249int i; 6250int 6251main () 6252{ 6253 6254 ; 6255 return 0; 6256} 6257_ACEOF 6258if ac_fn_c_try_link "$LINENO"; then : 6259 eval $cacheid=yes 6260else 6261 eval $cacheid=no 6262fi 6263rm -f core conftest.err conftest.$ac_objext \ 6264 conftest$ac_exeext conftest.$ac_ext 6265fi 6266 6267 6268 CFLAGS="$xorg_testset_save_CFLAGS" 6269 6270 eval supported=\$$cacheid 6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6272$as_echo "$supported" >&6; } 6273 if test "$supported" = "yes" ; then 6274 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6275 found="yes" 6276 fi 6277 fi 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293xorg_testset_save_CFLAGS="$CFLAGS" 6294 6295if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6296 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6298$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6299if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6300 $as_echo_n "(cached) " >&6 6301else 6302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6303/* end confdefs.h. */ 6304int i; 6305_ACEOF 6306if ac_fn_c_try_compile "$LINENO"; then : 6307 xorg_cv_cc_flag_unknown_warning_option=yes 6308else 6309 xorg_cv_cc_flag_unknown_warning_option=no 6310fi 6311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6312fi 6313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6314$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6315 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6316 CFLAGS="$xorg_testset_save_CFLAGS" 6317fi 6318 6319if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6320 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6321 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6322 fi 6323 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6325$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6326if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6327 $as_echo_n "(cached) " >&6 6328else 6329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6330/* end confdefs.h. */ 6331int i; 6332_ACEOF 6333if ac_fn_c_try_compile "$LINENO"; then : 6334 xorg_cv_cc_flag_unused_command_line_argument=yes 6335else 6336 xorg_cv_cc_flag_unused_command_line_argument=no 6337fi 6338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6339fi 6340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6341$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6342 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6343 CFLAGS="$xorg_testset_save_CFLAGS" 6344fi 6345 6346found="no" 6347 6348 if test $found = "no" ; then 6349 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6350 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6351 fi 6352 6353 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6354 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6355 fi 6356 6357 CFLAGS="$CFLAGS -Wuninitialized" 6358 6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6360$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6361 cacheid=xorg_cv_cc_flag__Wuninitialized 6362 if eval \${$cacheid+:} false; then : 6363 $as_echo_n "(cached) " >&6 6364else 6365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6366/* end confdefs.h. */ 6367int i; 6368int 6369main () 6370{ 6371 6372 ; 6373 return 0; 6374} 6375_ACEOF 6376if ac_fn_c_try_link "$LINENO"; then : 6377 eval $cacheid=yes 6378else 6379 eval $cacheid=no 6380fi 6381rm -f core conftest.err conftest.$ac_objext \ 6382 conftest$ac_exeext conftest.$ac_ext 6383fi 6384 6385 6386 CFLAGS="$xorg_testset_save_CFLAGS" 6387 6388 eval supported=\$$cacheid 6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6390$as_echo "$supported" >&6; } 6391 if test "$supported" = "yes" ; then 6392 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6393 found="yes" 6394 fi 6395 fi 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411xorg_testset_save_CFLAGS="$CFLAGS" 6412 6413if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6414 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6416$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6417if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6418 $as_echo_n "(cached) " >&6 6419else 6420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6421/* end confdefs.h. */ 6422int i; 6423_ACEOF 6424if ac_fn_c_try_compile "$LINENO"; then : 6425 xorg_cv_cc_flag_unknown_warning_option=yes 6426else 6427 xorg_cv_cc_flag_unknown_warning_option=no 6428fi 6429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6430fi 6431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6432$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6433 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6434 CFLAGS="$xorg_testset_save_CFLAGS" 6435fi 6436 6437if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6438 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6439 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6440 fi 6441 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6443$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6444if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6445 $as_echo_n "(cached) " >&6 6446else 6447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6448/* end confdefs.h. */ 6449int i; 6450_ACEOF 6451if ac_fn_c_try_compile "$LINENO"; then : 6452 xorg_cv_cc_flag_unused_command_line_argument=yes 6453else 6454 xorg_cv_cc_flag_unused_command_line_argument=no 6455fi 6456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6457fi 6458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6459$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6460 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6461 CFLAGS="$xorg_testset_save_CFLAGS" 6462fi 6463 6464found="no" 6465 6466 if test $found = "no" ; then 6467 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6468 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6469 fi 6470 6471 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6473 fi 6474 6475 CFLAGS="$CFLAGS -Wshadow" 6476 6477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6478$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6479 cacheid=xorg_cv_cc_flag__Wshadow 6480 if eval \${$cacheid+:} false; then : 6481 $as_echo_n "(cached) " >&6 6482else 6483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6484/* end confdefs.h. */ 6485int i; 6486int 6487main () 6488{ 6489 6490 ; 6491 return 0; 6492} 6493_ACEOF 6494if ac_fn_c_try_link "$LINENO"; then : 6495 eval $cacheid=yes 6496else 6497 eval $cacheid=no 6498fi 6499rm -f core conftest.err conftest.$ac_objext \ 6500 conftest$ac_exeext conftest.$ac_ext 6501fi 6502 6503 6504 CFLAGS="$xorg_testset_save_CFLAGS" 6505 6506 eval supported=\$$cacheid 6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6508$as_echo "$supported" >&6; } 6509 if test "$supported" = "yes" ; then 6510 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6511 found="yes" 6512 fi 6513 fi 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529xorg_testset_save_CFLAGS="$CFLAGS" 6530 6531if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6532 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6534$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6535if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6536 $as_echo_n "(cached) " >&6 6537else 6538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6539/* end confdefs.h. */ 6540int i; 6541_ACEOF 6542if ac_fn_c_try_compile "$LINENO"; then : 6543 xorg_cv_cc_flag_unknown_warning_option=yes 6544else 6545 xorg_cv_cc_flag_unknown_warning_option=no 6546fi 6547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6548fi 6549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6550$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6551 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6552 CFLAGS="$xorg_testset_save_CFLAGS" 6553fi 6554 6555if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6556 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6557 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6558 fi 6559 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6561$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6562if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6563 $as_echo_n "(cached) " >&6 6564else 6565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6566/* end confdefs.h. */ 6567int i; 6568_ACEOF 6569if ac_fn_c_try_compile "$LINENO"; then : 6570 xorg_cv_cc_flag_unused_command_line_argument=yes 6571else 6572 xorg_cv_cc_flag_unused_command_line_argument=no 6573fi 6574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6575fi 6576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6577$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6578 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6579 CFLAGS="$xorg_testset_save_CFLAGS" 6580fi 6581 6582found="no" 6583 6584 if test $found = "no" ; then 6585 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6586 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6587 fi 6588 6589 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6590 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6591 fi 6592 6593 CFLAGS="$CFLAGS -Wmissing-noreturn" 6594 6595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6596$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6597 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6598 if eval \${$cacheid+:} false; then : 6599 $as_echo_n "(cached) " >&6 6600else 6601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6602/* end confdefs.h. */ 6603int i; 6604int 6605main () 6606{ 6607 6608 ; 6609 return 0; 6610} 6611_ACEOF 6612if ac_fn_c_try_link "$LINENO"; then : 6613 eval $cacheid=yes 6614else 6615 eval $cacheid=no 6616fi 6617rm -f core conftest.err conftest.$ac_objext \ 6618 conftest$ac_exeext conftest.$ac_ext 6619fi 6620 6621 6622 CFLAGS="$xorg_testset_save_CFLAGS" 6623 6624 eval supported=\$$cacheid 6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6626$as_echo "$supported" >&6; } 6627 if test "$supported" = "yes" ; then 6628 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6629 found="yes" 6630 fi 6631 fi 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647xorg_testset_save_CFLAGS="$CFLAGS" 6648 6649if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6650 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6652$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6653if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6654 $as_echo_n "(cached) " >&6 6655else 6656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6657/* end confdefs.h. */ 6658int i; 6659_ACEOF 6660if ac_fn_c_try_compile "$LINENO"; then : 6661 xorg_cv_cc_flag_unknown_warning_option=yes 6662else 6663 xorg_cv_cc_flag_unknown_warning_option=no 6664fi 6665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6666fi 6667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6668$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6669 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6670 CFLAGS="$xorg_testset_save_CFLAGS" 6671fi 6672 6673if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6674 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6675 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6676 fi 6677 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6679$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6680if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6681 $as_echo_n "(cached) " >&6 6682else 6683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6684/* end confdefs.h. */ 6685int i; 6686_ACEOF 6687if ac_fn_c_try_compile "$LINENO"; then : 6688 xorg_cv_cc_flag_unused_command_line_argument=yes 6689else 6690 xorg_cv_cc_flag_unused_command_line_argument=no 6691fi 6692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6693fi 6694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6695$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6696 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6697 CFLAGS="$xorg_testset_save_CFLAGS" 6698fi 6699 6700found="no" 6701 6702 if test $found = "no" ; then 6703 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6704 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6705 fi 6706 6707 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6709 fi 6710 6711 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6712 6713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6714$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6715 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6716 if eval \${$cacheid+:} false; then : 6717 $as_echo_n "(cached) " >&6 6718else 6719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6720/* end confdefs.h. */ 6721int i; 6722int 6723main () 6724{ 6725 6726 ; 6727 return 0; 6728} 6729_ACEOF 6730if ac_fn_c_try_link "$LINENO"; then : 6731 eval $cacheid=yes 6732else 6733 eval $cacheid=no 6734fi 6735rm -f core conftest.err conftest.$ac_objext \ 6736 conftest$ac_exeext conftest.$ac_ext 6737fi 6738 6739 6740 CFLAGS="$xorg_testset_save_CFLAGS" 6741 6742 eval supported=\$$cacheid 6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6744$as_echo "$supported" >&6; } 6745 if test "$supported" = "yes" ; then 6746 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6747 found="yes" 6748 fi 6749 fi 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765xorg_testset_save_CFLAGS="$CFLAGS" 6766 6767if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6768 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6770$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6771if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6772 $as_echo_n "(cached) " >&6 6773else 6774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6775/* end confdefs.h. */ 6776int i; 6777_ACEOF 6778if ac_fn_c_try_compile "$LINENO"; then : 6779 xorg_cv_cc_flag_unknown_warning_option=yes 6780else 6781 xorg_cv_cc_flag_unknown_warning_option=no 6782fi 6783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6784fi 6785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6786$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6787 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6788 CFLAGS="$xorg_testset_save_CFLAGS" 6789fi 6790 6791if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6792 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6793 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6794 fi 6795 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6797$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6798if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6799 $as_echo_n "(cached) " >&6 6800else 6801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6802/* end confdefs.h. */ 6803int i; 6804_ACEOF 6805if ac_fn_c_try_compile "$LINENO"; then : 6806 xorg_cv_cc_flag_unused_command_line_argument=yes 6807else 6808 xorg_cv_cc_flag_unused_command_line_argument=no 6809fi 6810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6811fi 6812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6813$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6814 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6815 CFLAGS="$xorg_testset_save_CFLAGS" 6816fi 6817 6818found="no" 6819 6820 if test $found = "no" ; then 6821 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6822 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6823 fi 6824 6825 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6826 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6827 fi 6828 6829 CFLAGS="$CFLAGS -Wredundant-decls" 6830 6831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6832$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6833 cacheid=xorg_cv_cc_flag__Wredundant_decls 6834 if eval \${$cacheid+:} false; then : 6835 $as_echo_n "(cached) " >&6 6836else 6837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6838/* end confdefs.h. */ 6839int i; 6840int 6841main () 6842{ 6843 6844 ; 6845 return 0; 6846} 6847_ACEOF 6848if ac_fn_c_try_link "$LINENO"; then : 6849 eval $cacheid=yes 6850else 6851 eval $cacheid=no 6852fi 6853rm -f core conftest.err conftest.$ac_objext \ 6854 conftest$ac_exeext conftest.$ac_ext 6855fi 6856 6857 6858 CFLAGS="$xorg_testset_save_CFLAGS" 6859 6860 eval supported=\$$cacheid 6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6862$as_echo "$supported" >&6; } 6863 if test "$supported" = "yes" ; then 6864 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6865 found="yes" 6866 fi 6867 fi 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883xorg_testset_save_CFLAGS="$CFLAGS" 6884 6885if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6886 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6888$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6889if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6890 $as_echo_n "(cached) " >&6 6891else 6892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6893/* end confdefs.h. */ 6894int i; 6895_ACEOF 6896if ac_fn_c_try_compile "$LINENO"; then : 6897 xorg_cv_cc_flag_unknown_warning_option=yes 6898else 6899 xorg_cv_cc_flag_unknown_warning_option=no 6900fi 6901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6902fi 6903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6904$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6905 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6906 CFLAGS="$xorg_testset_save_CFLAGS" 6907fi 6908 6909if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6910 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6911 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6912 fi 6913 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6915$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6916if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6917 $as_echo_n "(cached) " >&6 6918else 6919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6920/* end confdefs.h. */ 6921int i; 6922_ACEOF 6923if ac_fn_c_try_compile "$LINENO"; then : 6924 xorg_cv_cc_flag_unused_command_line_argument=yes 6925else 6926 xorg_cv_cc_flag_unused_command_line_argument=no 6927fi 6928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6929fi 6930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6931$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6932 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6933 CFLAGS="$xorg_testset_save_CFLAGS" 6934fi 6935 6936found="no" 6937 6938 if test $found = "no" ; then 6939 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6940 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6941 fi 6942 6943 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6944 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6945 fi 6946 6947 CFLAGS="$CFLAGS -Wlogical-op" 6948 6949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 6950$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 6951 cacheid=xorg_cv_cc_flag__Wlogical_op 6952 if eval \${$cacheid+:} false; then : 6953 $as_echo_n "(cached) " >&6 6954else 6955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6956/* end confdefs.h. */ 6957int i; 6958int 6959main () 6960{ 6961 6962 ; 6963 return 0; 6964} 6965_ACEOF 6966if ac_fn_c_try_link "$LINENO"; then : 6967 eval $cacheid=yes 6968else 6969 eval $cacheid=no 6970fi 6971rm -f core conftest.err conftest.$ac_objext \ 6972 conftest$ac_exeext conftest.$ac_ext 6973fi 6974 6975 6976 CFLAGS="$xorg_testset_save_CFLAGS" 6977 6978 eval supported=\$$cacheid 6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6980$as_echo "$supported" >&6; } 6981 if test "$supported" = "yes" ; then 6982 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 6983 found="yes" 6984 fi 6985 fi 6986 6987 6988 6989# These are currently disabled because they are noisy. They will be enabled 6990# in the future once the codebase is sufficiently modernized to silence 6991# them. For now, I don't want them to drown out the other warnings. 6992# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6993# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6994# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 6995 6996# Turn some warnings into errors, so we don't accidently get successful builds 6997# when there are problems that should be fixed. 6998 6999if test "x$SELECTIVE_WERROR" = "xyes" ; then 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013xorg_testset_save_CFLAGS="$CFLAGS" 7014 7015if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7016 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7018$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7019if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7020 $as_echo_n "(cached) " >&6 7021else 7022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7023/* end confdefs.h. */ 7024int i; 7025_ACEOF 7026if ac_fn_c_try_compile "$LINENO"; then : 7027 xorg_cv_cc_flag_unknown_warning_option=yes 7028else 7029 xorg_cv_cc_flag_unknown_warning_option=no 7030fi 7031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7032fi 7033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7034$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7035 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7036 CFLAGS="$xorg_testset_save_CFLAGS" 7037fi 7038 7039if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7040 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7041 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7042 fi 7043 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7045$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7046if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7047 $as_echo_n "(cached) " >&6 7048else 7049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7050/* end confdefs.h. */ 7051int i; 7052_ACEOF 7053if ac_fn_c_try_compile "$LINENO"; then : 7054 xorg_cv_cc_flag_unused_command_line_argument=yes 7055else 7056 xorg_cv_cc_flag_unused_command_line_argument=no 7057fi 7058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7059fi 7060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7061$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7062 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7063 CFLAGS="$xorg_testset_save_CFLAGS" 7064fi 7065 7066found="no" 7067 7068 if test $found = "no" ; then 7069 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7070 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7071 fi 7072 7073 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7074 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7075 fi 7076 7077 CFLAGS="$CFLAGS -Werror=implicit" 7078 7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7080$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 7081 cacheid=xorg_cv_cc_flag__Werror_implicit 7082 if eval \${$cacheid+:} false; then : 7083 $as_echo_n "(cached) " >&6 7084else 7085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7086/* end confdefs.h. */ 7087int i; 7088int 7089main () 7090{ 7091 7092 ; 7093 return 0; 7094} 7095_ACEOF 7096if ac_fn_c_try_link "$LINENO"; then : 7097 eval $cacheid=yes 7098else 7099 eval $cacheid=no 7100fi 7101rm -f core conftest.err conftest.$ac_objext \ 7102 conftest$ac_exeext conftest.$ac_ext 7103fi 7104 7105 7106 CFLAGS="$xorg_testset_save_CFLAGS" 7107 7108 eval supported=\$$cacheid 7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7110$as_echo "$supported" >&6; } 7111 if test "$supported" = "yes" ; then 7112 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7113 found="yes" 7114 fi 7115 fi 7116 7117 if test $found = "no" ; then 7118 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7119 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7120 fi 7121 7122 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7123 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7124 fi 7125 7126 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7127 7128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 7129$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7130 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7131 if eval \${$cacheid+:} false; then : 7132 $as_echo_n "(cached) " >&6 7133else 7134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7135/* end confdefs.h. */ 7136int i; 7137int 7138main () 7139{ 7140 7141 ; 7142 return 0; 7143} 7144_ACEOF 7145if ac_fn_c_try_link "$LINENO"; then : 7146 eval $cacheid=yes 7147else 7148 eval $cacheid=no 7149fi 7150rm -f core conftest.err conftest.$ac_objext \ 7151 conftest$ac_exeext conftest.$ac_ext 7152fi 7153 7154 7155 CFLAGS="$xorg_testset_save_CFLAGS" 7156 7157 eval supported=\$$cacheid 7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7159$as_echo "$supported" >&6; } 7160 if test "$supported" = "yes" ; then 7161 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7162 found="yes" 7163 fi 7164 fi 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180xorg_testset_save_CFLAGS="$CFLAGS" 7181 7182if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7183 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7185$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7186if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7187 $as_echo_n "(cached) " >&6 7188else 7189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7190/* end confdefs.h. */ 7191int i; 7192_ACEOF 7193if ac_fn_c_try_compile "$LINENO"; then : 7194 xorg_cv_cc_flag_unknown_warning_option=yes 7195else 7196 xorg_cv_cc_flag_unknown_warning_option=no 7197fi 7198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7199fi 7200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7201$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7202 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7203 CFLAGS="$xorg_testset_save_CFLAGS" 7204fi 7205 7206if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7207 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7208 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7209 fi 7210 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7212$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7213if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7214 $as_echo_n "(cached) " >&6 7215else 7216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7217/* end confdefs.h. */ 7218int i; 7219_ACEOF 7220if ac_fn_c_try_compile "$LINENO"; then : 7221 xorg_cv_cc_flag_unused_command_line_argument=yes 7222else 7223 xorg_cv_cc_flag_unused_command_line_argument=no 7224fi 7225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7226fi 7227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7228$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7229 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7230 CFLAGS="$xorg_testset_save_CFLAGS" 7231fi 7232 7233found="no" 7234 7235 if test $found = "no" ; then 7236 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7237 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7238 fi 7239 7240 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7242 fi 7243 7244 CFLAGS="$CFLAGS -Werror=nonnull" 7245 7246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7247$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7248 cacheid=xorg_cv_cc_flag__Werror_nonnull 7249 if eval \${$cacheid+:} false; then : 7250 $as_echo_n "(cached) " >&6 7251else 7252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7253/* end confdefs.h. */ 7254int i; 7255int 7256main () 7257{ 7258 7259 ; 7260 return 0; 7261} 7262_ACEOF 7263if ac_fn_c_try_link "$LINENO"; then : 7264 eval $cacheid=yes 7265else 7266 eval $cacheid=no 7267fi 7268rm -f core conftest.err conftest.$ac_objext \ 7269 conftest$ac_exeext conftest.$ac_ext 7270fi 7271 7272 7273 CFLAGS="$xorg_testset_save_CFLAGS" 7274 7275 eval supported=\$$cacheid 7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7277$as_echo "$supported" >&6; } 7278 if test "$supported" = "yes" ; then 7279 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7280 found="yes" 7281 fi 7282 fi 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298xorg_testset_save_CFLAGS="$CFLAGS" 7299 7300if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7301 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7303$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7304if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7305 $as_echo_n "(cached) " >&6 7306else 7307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7308/* end confdefs.h. */ 7309int i; 7310_ACEOF 7311if ac_fn_c_try_compile "$LINENO"; then : 7312 xorg_cv_cc_flag_unknown_warning_option=yes 7313else 7314 xorg_cv_cc_flag_unknown_warning_option=no 7315fi 7316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7317fi 7318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7319$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7320 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7321 CFLAGS="$xorg_testset_save_CFLAGS" 7322fi 7323 7324if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7325 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7326 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7327 fi 7328 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7330$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7331if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7332 $as_echo_n "(cached) " >&6 7333else 7334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7335/* end confdefs.h. */ 7336int i; 7337_ACEOF 7338if ac_fn_c_try_compile "$LINENO"; then : 7339 xorg_cv_cc_flag_unused_command_line_argument=yes 7340else 7341 xorg_cv_cc_flag_unused_command_line_argument=no 7342fi 7343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7344fi 7345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7346$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7347 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7348 CFLAGS="$xorg_testset_save_CFLAGS" 7349fi 7350 7351found="no" 7352 7353 if test $found = "no" ; then 7354 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7355 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7356 fi 7357 7358 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7360 fi 7361 7362 CFLAGS="$CFLAGS -Werror=init-self" 7363 7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7365$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7366 cacheid=xorg_cv_cc_flag__Werror_init_self 7367 if eval \${$cacheid+:} false; then : 7368 $as_echo_n "(cached) " >&6 7369else 7370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7371/* end confdefs.h. */ 7372int i; 7373int 7374main () 7375{ 7376 7377 ; 7378 return 0; 7379} 7380_ACEOF 7381if ac_fn_c_try_link "$LINENO"; then : 7382 eval $cacheid=yes 7383else 7384 eval $cacheid=no 7385fi 7386rm -f core conftest.err conftest.$ac_objext \ 7387 conftest$ac_exeext conftest.$ac_ext 7388fi 7389 7390 7391 CFLAGS="$xorg_testset_save_CFLAGS" 7392 7393 eval supported=\$$cacheid 7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7395$as_echo "$supported" >&6; } 7396 if test "$supported" = "yes" ; then 7397 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7398 found="yes" 7399 fi 7400 fi 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416xorg_testset_save_CFLAGS="$CFLAGS" 7417 7418if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7419 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7421$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7422if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7423 $as_echo_n "(cached) " >&6 7424else 7425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7426/* end confdefs.h. */ 7427int i; 7428_ACEOF 7429if ac_fn_c_try_compile "$LINENO"; then : 7430 xorg_cv_cc_flag_unknown_warning_option=yes 7431else 7432 xorg_cv_cc_flag_unknown_warning_option=no 7433fi 7434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7435fi 7436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7437$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7438 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7439 CFLAGS="$xorg_testset_save_CFLAGS" 7440fi 7441 7442if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7443 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7444 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7445 fi 7446 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7448$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7449if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7450 $as_echo_n "(cached) " >&6 7451else 7452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7453/* end confdefs.h. */ 7454int i; 7455_ACEOF 7456if ac_fn_c_try_compile "$LINENO"; then : 7457 xorg_cv_cc_flag_unused_command_line_argument=yes 7458else 7459 xorg_cv_cc_flag_unused_command_line_argument=no 7460fi 7461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7462fi 7463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7464$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7465 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7466 CFLAGS="$xorg_testset_save_CFLAGS" 7467fi 7468 7469found="no" 7470 7471 if test $found = "no" ; then 7472 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7473 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7474 fi 7475 7476 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7477 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7478 fi 7479 7480 CFLAGS="$CFLAGS -Werror=main" 7481 7482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7483$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7484 cacheid=xorg_cv_cc_flag__Werror_main 7485 if eval \${$cacheid+:} false; then : 7486 $as_echo_n "(cached) " >&6 7487else 7488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7489/* end confdefs.h. */ 7490int i; 7491int 7492main () 7493{ 7494 7495 ; 7496 return 0; 7497} 7498_ACEOF 7499if ac_fn_c_try_link "$LINENO"; then : 7500 eval $cacheid=yes 7501else 7502 eval $cacheid=no 7503fi 7504rm -f core conftest.err conftest.$ac_objext \ 7505 conftest$ac_exeext conftest.$ac_ext 7506fi 7507 7508 7509 CFLAGS="$xorg_testset_save_CFLAGS" 7510 7511 eval supported=\$$cacheid 7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7513$as_echo "$supported" >&6; } 7514 if test "$supported" = "yes" ; then 7515 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7516 found="yes" 7517 fi 7518 fi 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534xorg_testset_save_CFLAGS="$CFLAGS" 7535 7536if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7537 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7539$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7540if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7541 $as_echo_n "(cached) " >&6 7542else 7543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7544/* end confdefs.h. */ 7545int i; 7546_ACEOF 7547if ac_fn_c_try_compile "$LINENO"; then : 7548 xorg_cv_cc_flag_unknown_warning_option=yes 7549else 7550 xorg_cv_cc_flag_unknown_warning_option=no 7551fi 7552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7553fi 7554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7555$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7556 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7557 CFLAGS="$xorg_testset_save_CFLAGS" 7558fi 7559 7560if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7561 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7562 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7563 fi 7564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7566$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7567if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7568 $as_echo_n "(cached) " >&6 7569else 7570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7571/* end confdefs.h. */ 7572int i; 7573_ACEOF 7574if ac_fn_c_try_compile "$LINENO"; then : 7575 xorg_cv_cc_flag_unused_command_line_argument=yes 7576else 7577 xorg_cv_cc_flag_unused_command_line_argument=no 7578fi 7579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7580fi 7581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7582$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7583 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7584 CFLAGS="$xorg_testset_save_CFLAGS" 7585fi 7586 7587found="no" 7588 7589 if test $found = "no" ; then 7590 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7591 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7592 fi 7593 7594 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7596 fi 7597 7598 CFLAGS="$CFLAGS -Werror=missing-braces" 7599 7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7601$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7602 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7603 if eval \${$cacheid+:} false; then : 7604 $as_echo_n "(cached) " >&6 7605else 7606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7607/* end confdefs.h. */ 7608int i; 7609int 7610main () 7611{ 7612 7613 ; 7614 return 0; 7615} 7616_ACEOF 7617if ac_fn_c_try_link "$LINENO"; then : 7618 eval $cacheid=yes 7619else 7620 eval $cacheid=no 7621fi 7622rm -f core conftest.err conftest.$ac_objext \ 7623 conftest$ac_exeext conftest.$ac_ext 7624fi 7625 7626 7627 CFLAGS="$xorg_testset_save_CFLAGS" 7628 7629 eval supported=\$$cacheid 7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7631$as_echo "$supported" >&6; } 7632 if test "$supported" = "yes" ; then 7633 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7634 found="yes" 7635 fi 7636 fi 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652xorg_testset_save_CFLAGS="$CFLAGS" 7653 7654if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7655 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7657$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7658if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7659 $as_echo_n "(cached) " >&6 7660else 7661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7662/* end confdefs.h. */ 7663int i; 7664_ACEOF 7665if ac_fn_c_try_compile "$LINENO"; then : 7666 xorg_cv_cc_flag_unknown_warning_option=yes 7667else 7668 xorg_cv_cc_flag_unknown_warning_option=no 7669fi 7670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7671fi 7672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7673$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7674 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7675 CFLAGS="$xorg_testset_save_CFLAGS" 7676fi 7677 7678if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7679 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7680 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7681 fi 7682 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7684$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7685if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7686 $as_echo_n "(cached) " >&6 7687else 7688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7689/* end confdefs.h. */ 7690int i; 7691_ACEOF 7692if ac_fn_c_try_compile "$LINENO"; then : 7693 xorg_cv_cc_flag_unused_command_line_argument=yes 7694else 7695 xorg_cv_cc_flag_unused_command_line_argument=no 7696fi 7697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7698fi 7699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7700$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7701 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7702 CFLAGS="$xorg_testset_save_CFLAGS" 7703fi 7704 7705found="no" 7706 7707 if test $found = "no" ; then 7708 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7709 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7710 fi 7711 7712 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7714 fi 7715 7716 CFLAGS="$CFLAGS -Werror=sequence-point" 7717 7718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7719$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7720 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7721 if eval \${$cacheid+:} false; then : 7722 $as_echo_n "(cached) " >&6 7723else 7724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7725/* end confdefs.h. */ 7726int i; 7727int 7728main () 7729{ 7730 7731 ; 7732 return 0; 7733} 7734_ACEOF 7735if ac_fn_c_try_link "$LINENO"; then : 7736 eval $cacheid=yes 7737else 7738 eval $cacheid=no 7739fi 7740rm -f core conftest.err conftest.$ac_objext \ 7741 conftest$ac_exeext conftest.$ac_ext 7742fi 7743 7744 7745 CFLAGS="$xorg_testset_save_CFLAGS" 7746 7747 eval supported=\$$cacheid 7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7749$as_echo "$supported" >&6; } 7750 if test "$supported" = "yes" ; then 7751 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7752 found="yes" 7753 fi 7754 fi 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770xorg_testset_save_CFLAGS="$CFLAGS" 7771 7772if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7773 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7775$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7776if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7777 $as_echo_n "(cached) " >&6 7778else 7779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7780/* end confdefs.h. */ 7781int i; 7782_ACEOF 7783if ac_fn_c_try_compile "$LINENO"; then : 7784 xorg_cv_cc_flag_unknown_warning_option=yes 7785else 7786 xorg_cv_cc_flag_unknown_warning_option=no 7787fi 7788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7789fi 7790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7791$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7792 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7793 CFLAGS="$xorg_testset_save_CFLAGS" 7794fi 7795 7796if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7797 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7798 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7799 fi 7800 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7802$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7803if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7804 $as_echo_n "(cached) " >&6 7805else 7806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7807/* end confdefs.h. */ 7808int i; 7809_ACEOF 7810if ac_fn_c_try_compile "$LINENO"; then : 7811 xorg_cv_cc_flag_unused_command_line_argument=yes 7812else 7813 xorg_cv_cc_flag_unused_command_line_argument=no 7814fi 7815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7816fi 7817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7818$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7819 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7820 CFLAGS="$xorg_testset_save_CFLAGS" 7821fi 7822 7823found="no" 7824 7825 if test $found = "no" ; then 7826 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7827 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7828 fi 7829 7830 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7831 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7832 fi 7833 7834 CFLAGS="$CFLAGS -Werror=return-type" 7835 7836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7837$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7838 cacheid=xorg_cv_cc_flag__Werror_return_type 7839 if eval \${$cacheid+:} false; then : 7840 $as_echo_n "(cached) " >&6 7841else 7842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7843/* end confdefs.h. */ 7844int i; 7845int 7846main () 7847{ 7848 7849 ; 7850 return 0; 7851} 7852_ACEOF 7853if ac_fn_c_try_link "$LINENO"; then : 7854 eval $cacheid=yes 7855else 7856 eval $cacheid=no 7857fi 7858rm -f core conftest.err conftest.$ac_objext \ 7859 conftest$ac_exeext conftest.$ac_ext 7860fi 7861 7862 7863 CFLAGS="$xorg_testset_save_CFLAGS" 7864 7865 eval supported=\$$cacheid 7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7867$as_echo "$supported" >&6; } 7868 if test "$supported" = "yes" ; then 7869 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7870 found="yes" 7871 fi 7872 fi 7873 7874 if test $found = "no" ; then 7875 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7876 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7877 fi 7878 7879 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7880 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7881 fi 7882 7883 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7884 7885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7886$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7887 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7888 if eval \${$cacheid+:} false; then : 7889 $as_echo_n "(cached) " >&6 7890else 7891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7892/* end confdefs.h. */ 7893int i; 7894int 7895main () 7896{ 7897 7898 ; 7899 return 0; 7900} 7901_ACEOF 7902if ac_fn_c_try_link "$LINENO"; then : 7903 eval $cacheid=yes 7904else 7905 eval $cacheid=no 7906fi 7907rm -f core conftest.err conftest.$ac_objext \ 7908 conftest$ac_exeext conftest.$ac_ext 7909fi 7910 7911 7912 CFLAGS="$xorg_testset_save_CFLAGS" 7913 7914 eval supported=\$$cacheid 7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7916$as_echo "$supported" >&6; } 7917 if test "$supported" = "yes" ; then 7918 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7919 found="yes" 7920 fi 7921 fi 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937xorg_testset_save_CFLAGS="$CFLAGS" 7938 7939if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7940 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7942$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7943if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7944 $as_echo_n "(cached) " >&6 7945else 7946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7947/* end confdefs.h. */ 7948int i; 7949_ACEOF 7950if ac_fn_c_try_compile "$LINENO"; then : 7951 xorg_cv_cc_flag_unknown_warning_option=yes 7952else 7953 xorg_cv_cc_flag_unknown_warning_option=no 7954fi 7955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7956fi 7957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7958$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7959 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7960 CFLAGS="$xorg_testset_save_CFLAGS" 7961fi 7962 7963if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7964 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7965 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7966 fi 7967 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7969$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7970if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7971 $as_echo_n "(cached) " >&6 7972else 7973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7974/* end confdefs.h. */ 7975int i; 7976_ACEOF 7977if ac_fn_c_try_compile "$LINENO"; then : 7978 xorg_cv_cc_flag_unused_command_line_argument=yes 7979else 7980 xorg_cv_cc_flag_unused_command_line_argument=no 7981fi 7982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7983fi 7984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7985$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7986 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7987 CFLAGS="$xorg_testset_save_CFLAGS" 7988fi 7989 7990found="no" 7991 7992 if test $found = "no" ; then 7993 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7994 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7995 fi 7996 7997 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7999 fi 8000 8001 CFLAGS="$CFLAGS -Werror=trigraphs" 8002 8003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8004$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 8005 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8006 if eval \${$cacheid+:} false; then : 8007 $as_echo_n "(cached) " >&6 8008else 8009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8010/* end confdefs.h. */ 8011int i; 8012int 8013main () 8014{ 8015 8016 ; 8017 return 0; 8018} 8019_ACEOF 8020if ac_fn_c_try_link "$LINENO"; then : 8021 eval $cacheid=yes 8022else 8023 eval $cacheid=no 8024fi 8025rm -f core conftest.err conftest.$ac_objext \ 8026 conftest$ac_exeext conftest.$ac_ext 8027fi 8028 8029 8030 CFLAGS="$xorg_testset_save_CFLAGS" 8031 8032 eval supported=\$$cacheid 8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8034$as_echo "$supported" >&6; } 8035 if test "$supported" = "yes" ; then 8036 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8037 found="yes" 8038 fi 8039 fi 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055xorg_testset_save_CFLAGS="$CFLAGS" 8056 8057if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8058 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8060$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8061if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8062 $as_echo_n "(cached) " >&6 8063else 8064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8065/* end confdefs.h. */ 8066int i; 8067_ACEOF 8068if ac_fn_c_try_compile "$LINENO"; then : 8069 xorg_cv_cc_flag_unknown_warning_option=yes 8070else 8071 xorg_cv_cc_flag_unknown_warning_option=no 8072fi 8073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8074fi 8075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8076$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8077 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8078 CFLAGS="$xorg_testset_save_CFLAGS" 8079fi 8080 8081if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8082 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8083 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8084 fi 8085 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8087$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8088if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8089 $as_echo_n "(cached) " >&6 8090else 8091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8092/* end confdefs.h. */ 8093int i; 8094_ACEOF 8095if ac_fn_c_try_compile "$LINENO"; then : 8096 xorg_cv_cc_flag_unused_command_line_argument=yes 8097else 8098 xorg_cv_cc_flag_unused_command_line_argument=no 8099fi 8100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8101fi 8102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8103$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8104 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8105 CFLAGS="$xorg_testset_save_CFLAGS" 8106fi 8107 8108found="no" 8109 8110 if test $found = "no" ; then 8111 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8112 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8113 fi 8114 8115 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8116 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8117 fi 8118 8119 CFLAGS="$CFLAGS -Werror=array-bounds" 8120 8121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8122$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 8123 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8124 if eval \${$cacheid+:} false; then : 8125 $as_echo_n "(cached) " >&6 8126else 8127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8128/* end confdefs.h. */ 8129int i; 8130int 8131main () 8132{ 8133 8134 ; 8135 return 0; 8136} 8137_ACEOF 8138if ac_fn_c_try_link "$LINENO"; then : 8139 eval $cacheid=yes 8140else 8141 eval $cacheid=no 8142fi 8143rm -f core conftest.err conftest.$ac_objext \ 8144 conftest$ac_exeext conftest.$ac_ext 8145fi 8146 8147 8148 CFLAGS="$xorg_testset_save_CFLAGS" 8149 8150 eval supported=\$$cacheid 8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8152$as_echo "$supported" >&6; } 8153 if test "$supported" = "yes" ; then 8154 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8155 found="yes" 8156 fi 8157 fi 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173xorg_testset_save_CFLAGS="$CFLAGS" 8174 8175if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8176 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8178$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8179if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8180 $as_echo_n "(cached) " >&6 8181else 8182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8183/* end confdefs.h. */ 8184int i; 8185_ACEOF 8186if ac_fn_c_try_compile "$LINENO"; then : 8187 xorg_cv_cc_flag_unknown_warning_option=yes 8188else 8189 xorg_cv_cc_flag_unknown_warning_option=no 8190fi 8191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8192fi 8193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8194$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8195 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8196 CFLAGS="$xorg_testset_save_CFLAGS" 8197fi 8198 8199if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8200 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8201 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8202 fi 8203 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8205$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8206if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8207 $as_echo_n "(cached) " >&6 8208else 8209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8210/* end confdefs.h. */ 8211int i; 8212_ACEOF 8213if ac_fn_c_try_compile "$LINENO"; then : 8214 xorg_cv_cc_flag_unused_command_line_argument=yes 8215else 8216 xorg_cv_cc_flag_unused_command_line_argument=no 8217fi 8218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8219fi 8220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8221$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8222 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8223 CFLAGS="$xorg_testset_save_CFLAGS" 8224fi 8225 8226found="no" 8227 8228 if test $found = "no" ; then 8229 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8230 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8231 fi 8232 8233 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8234 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8235 fi 8236 8237 CFLAGS="$CFLAGS -Werror=write-strings" 8238 8239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8240$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8241 cacheid=xorg_cv_cc_flag__Werror_write_strings 8242 if eval \${$cacheid+:} false; then : 8243 $as_echo_n "(cached) " >&6 8244else 8245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8246/* end confdefs.h. */ 8247int i; 8248int 8249main () 8250{ 8251 8252 ; 8253 return 0; 8254} 8255_ACEOF 8256if ac_fn_c_try_link "$LINENO"; then : 8257 eval $cacheid=yes 8258else 8259 eval $cacheid=no 8260fi 8261rm -f core conftest.err conftest.$ac_objext \ 8262 conftest$ac_exeext conftest.$ac_ext 8263fi 8264 8265 8266 CFLAGS="$xorg_testset_save_CFLAGS" 8267 8268 eval supported=\$$cacheid 8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8270$as_echo "$supported" >&6; } 8271 if test "$supported" = "yes" ; then 8272 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8273 found="yes" 8274 fi 8275 fi 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291xorg_testset_save_CFLAGS="$CFLAGS" 8292 8293if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8294 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8296$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8297if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8298 $as_echo_n "(cached) " >&6 8299else 8300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8301/* end confdefs.h. */ 8302int i; 8303_ACEOF 8304if ac_fn_c_try_compile "$LINENO"; then : 8305 xorg_cv_cc_flag_unknown_warning_option=yes 8306else 8307 xorg_cv_cc_flag_unknown_warning_option=no 8308fi 8309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8310fi 8311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8312$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8313 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8314 CFLAGS="$xorg_testset_save_CFLAGS" 8315fi 8316 8317if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8318 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8319 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8320 fi 8321 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8323$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8324if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8325 $as_echo_n "(cached) " >&6 8326else 8327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8328/* end confdefs.h. */ 8329int i; 8330_ACEOF 8331if ac_fn_c_try_compile "$LINENO"; then : 8332 xorg_cv_cc_flag_unused_command_line_argument=yes 8333else 8334 xorg_cv_cc_flag_unused_command_line_argument=no 8335fi 8336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8337fi 8338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8339$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8340 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8341 CFLAGS="$xorg_testset_save_CFLAGS" 8342fi 8343 8344found="no" 8345 8346 if test $found = "no" ; then 8347 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8348 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8349 fi 8350 8351 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8353 fi 8354 8355 CFLAGS="$CFLAGS -Werror=address" 8356 8357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8358$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8359 cacheid=xorg_cv_cc_flag__Werror_address 8360 if eval \${$cacheid+:} false; then : 8361 $as_echo_n "(cached) " >&6 8362else 8363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8364/* end confdefs.h. */ 8365int i; 8366int 8367main () 8368{ 8369 8370 ; 8371 return 0; 8372} 8373_ACEOF 8374if ac_fn_c_try_link "$LINENO"; then : 8375 eval $cacheid=yes 8376else 8377 eval $cacheid=no 8378fi 8379rm -f core conftest.err conftest.$ac_objext \ 8380 conftest$ac_exeext conftest.$ac_ext 8381fi 8382 8383 8384 CFLAGS="$xorg_testset_save_CFLAGS" 8385 8386 eval supported=\$$cacheid 8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8388$as_echo "$supported" >&6; } 8389 if test "$supported" = "yes" ; then 8390 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8391 found="yes" 8392 fi 8393 fi 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409xorg_testset_save_CFLAGS="$CFLAGS" 8410 8411if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8412 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8414$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8415if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8416 $as_echo_n "(cached) " >&6 8417else 8418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8419/* end confdefs.h. */ 8420int i; 8421_ACEOF 8422if ac_fn_c_try_compile "$LINENO"; then : 8423 xorg_cv_cc_flag_unknown_warning_option=yes 8424else 8425 xorg_cv_cc_flag_unknown_warning_option=no 8426fi 8427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8428fi 8429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8430$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8431 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8432 CFLAGS="$xorg_testset_save_CFLAGS" 8433fi 8434 8435if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8436 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8437 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8438 fi 8439 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8441$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8442if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8443 $as_echo_n "(cached) " >&6 8444else 8445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8446/* end confdefs.h. */ 8447int i; 8448_ACEOF 8449if ac_fn_c_try_compile "$LINENO"; then : 8450 xorg_cv_cc_flag_unused_command_line_argument=yes 8451else 8452 xorg_cv_cc_flag_unused_command_line_argument=no 8453fi 8454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8455fi 8456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8457$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8458 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8459 CFLAGS="$xorg_testset_save_CFLAGS" 8460fi 8461 8462found="no" 8463 8464 if test $found = "no" ; then 8465 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8466 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8467 fi 8468 8469 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8470 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8471 fi 8472 8473 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8474 8475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8476$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8477 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8478 if eval \${$cacheid+:} false; then : 8479 $as_echo_n "(cached) " >&6 8480else 8481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8482/* end confdefs.h. */ 8483int i; 8484int 8485main () 8486{ 8487 8488 ; 8489 return 0; 8490} 8491_ACEOF 8492if ac_fn_c_try_link "$LINENO"; then : 8493 eval $cacheid=yes 8494else 8495 eval $cacheid=no 8496fi 8497rm -f core conftest.err conftest.$ac_objext \ 8498 conftest$ac_exeext conftest.$ac_ext 8499fi 8500 8501 8502 CFLAGS="$xorg_testset_save_CFLAGS" 8503 8504 eval supported=\$$cacheid 8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8506$as_echo "$supported" >&6; } 8507 if test "$supported" = "yes" ; then 8508 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8509 found="yes" 8510 fi 8511 fi 8512 8513 if test $found = "no" ; then 8514 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8515 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8516 fi 8517 8518 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8519 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8520 fi 8521 8522 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8523 8524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8525$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8526 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8527 if eval \${$cacheid+:} false; then : 8528 $as_echo_n "(cached) " >&6 8529else 8530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8531/* end confdefs.h. */ 8532int i; 8533int 8534main () 8535{ 8536 8537 ; 8538 return 0; 8539} 8540_ACEOF 8541if ac_fn_c_try_link "$LINENO"; then : 8542 eval $cacheid=yes 8543else 8544 eval $cacheid=no 8545fi 8546rm -f core conftest.err conftest.$ac_objext \ 8547 conftest$ac_exeext conftest.$ac_ext 8548fi 8549 8550 8551 CFLAGS="$xorg_testset_save_CFLAGS" 8552 8553 eval supported=\$$cacheid 8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8555$as_echo "$supported" >&6; } 8556 if test "$supported" = "yes" ; then 8557 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8558 found="yes" 8559 fi 8560 fi 8561 8562 8563 8564 8565 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576xorg_testset_save_CFLAGS="$CFLAGS" 8577 8578if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8579 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8581$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8582if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8583 $as_echo_n "(cached) " >&6 8584else 8585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8586/* end confdefs.h. */ 8587int i; 8588_ACEOF 8589if ac_fn_c_try_compile "$LINENO"; then : 8590 xorg_cv_cc_flag_unknown_warning_option=yes 8591else 8592 xorg_cv_cc_flag_unknown_warning_option=no 8593fi 8594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8595fi 8596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8597$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8598 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8599 CFLAGS="$xorg_testset_save_CFLAGS" 8600fi 8601 8602if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8603 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8604 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8605 fi 8606 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8608$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8609if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8610 $as_echo_n "(cached) " >&6 8611else 8612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8613/* end confdefs.h. */ 8614int i; 8615_ACEOF 8616if ac_fn_c_try_compile "$LINENO"; then : 8617 xorg_cv_cc_flag_unused_command_line_argument=yes 8618else 8619 xorg_cv_cc_flag_unused_command_line_argument=no 8620fi 8621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8622fi 8623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8624$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8625 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8626 CFLAGS="$xorg_testset_save_CFLAGS" 8627fi 8628 8629found="no" 8630 8631 if test $found = "no" ; then 8632 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8633 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8634 fi 8635 8636 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8637 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8638 fi 8639 8640 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8641 8642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8643$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8644 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8645 if eval \${$cacheid+:} false; then : 8646 $as_echo_n "(cached) " >&6 8647else 8648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8649/* end confdefs.h. */ 8650int i; 8651int 8652main () 8653{ 8654 8655 ; 8656 return 0; 8657} 8658_ACEOF 8659if ac_fn_c_try_link "$LINENO"; then : 8660 eval $cacheid=yes 8661else 8662 eval $cacheid=no 8663fi 8664rm -f core conftest.err conftest.$ac_objext \ 8665 conftest$ac_exeext conftest.$ac_ext 8666fi 8667 8668 8669 CFLAGS="$xorg_testset_save_CFLAGS" 8670 8671 eval supported=\$$cacheid 8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8673$as_echo "$supported" >&6; } 8674 if test "$supported" = "yes" ; then 8675 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8676 found="yes" 8677 fi 8678 fi 8679 8680 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8681else 8682{ $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 8683$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;} 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697xorg_testset_save_CFLAGS="$CFLAGS" 8698 8699if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8700 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8702$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8703if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8704 $as_echo_n "(cached) " >&6 8705else 8706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8707/* end confdefs.h. */ 8708int i; 8709_ACEOF 8710if ac_fn_c_try_compile "$LINENO"; then : 8711 xorg_cv_cc_flag_unknown_warning_option=yes 8712else 8713 xorg_cv_cc_flag_unknown_warning_option=no 8714fi 8715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8716fi 8717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8718$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8719 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8720 CFLAGS="$xorg_testset_save_CFLAGS" 8721fi 8722 8723if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8724 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8725 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8726 fi 8727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8729$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8730if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8731 $as_echo_n "(cached) " >&6 8732else 8733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8734/* end confdefs.h. */ 8735int i; 8736_ACEOF 8737if ac_fn_c_try_compile "$LINENO"; then : 8738 xorg_cv_cc_flag_unused_command_line_argument=yes 8739else 8740 xorg_cv_cc_flag_unused_command_line_argument=no 8741fi 8742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8743fi 8744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8745$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8746 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8747 CFLAGS="$xorg_testset_save_CFLAGS" 8748fi 8749 8750found="no" 8751 8752 if test $found = "no" ; then 8753 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8754 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8755 fi 8756 8757 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8758 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8759 fi 8760 8761 CFLAGS="$CFLAGS -Wimplicit" 8762 8763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8764$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8765 cacheid=xorg_cv_cc_flag__Wimplicit 8766 if eval \${$cacheid+:} false; then : 8767 $as_echo_n "(cached) " >&6 8768else 8769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8770/* end confdefs.h. */ 8771int i; 8772int 8773main () 8774{ 8775 8776 ; 8777 return 0; 8778} 8779_ACEOF 8780if ac_fn_c_try_link "$LINENO"; then : 8781 eval $cacheid=yes 8782else 8783 eval $cacheid=no 8784fi 8785rm -f core conftest.err conftest.$ac_objext \ 8786 conftest$ac_exeext conftest.$ac_ext 8787fi 8788 8789 8790 CFLAGS="$xorg_testset_save_CFLAGS" 8791 8792 eval supported=\$$cacheid 8793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8794$as_echo "$supported" >&6; } 8795 if test "$supported" = "yes" ; then 8796 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8797 found="yes" 8798 fi 8799 fi 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815xorg_testset_save_CFLAGS="$CFLAGS" 8816 8817if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8818 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8820$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8821if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8822 $as_echo_n "(cached) " >&6 8823else 8824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8825/* end confdefs.h. */ 8826int i; 8827_ACEOF 8828if ac_fn_c_try_compile "$LINENO"; then : 8829 xorg_cv_cc_flag_unknown_warning_option=yes 8830else 8831 xorg_cv_cc_flag_unknown_warning_option=no 8832fi 8833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8834fi 8835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8836$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8837 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8838 CFLAGS="$xorg_testset_save_CFLAGS" 8839fi 8840 8841if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8842 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8843 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8844 fi 8845 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8847$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8848if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8849 $as_echo_n "(cached) " >&6 8850else 8851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8852/* end confdefs.h. */ 8853int i; 8854_ACEOF 8855if ac_fn_c_try_compile "$LINENO"; then : 8856 xorg_cv_cc_flag_unused_command_line_argument=yes 8857else 8858 xorg_cv_cc_flag_unused_command_line_argument=no 8859fi 8860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8861fi 8862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8863$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8864 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8865 CFLAGS="$xorg_testset_save_CFLAGS" 8866fi 8867 8868found="no" 8869 8870 if test $found = "no" ; then 8871 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8872 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8873 fi 8874 8875 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8877 fi 8878 8879 CFLAGS="$CFLAGS -Wnonnull" 8880 8881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8882$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8883 cacheid=xorg_cv_cc_flag__Wnonnull 8884 if eval \${$cacheid+:} false; then : 8885 $as_echo_n "(cached) " >&6 8886else 8887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8888/* end confdefs.h. */ 8889int i; 8890int 8891main () 8892{ 8893 8894 ; 8895 return 0; 8896} 8897_ACEOF 8898if ac_fn_c_try_link "$LINENO"; then : 8899 eval $cacheid=yes 8900else 8901 eval $cacheid=no 8902fi 8903rm -f core conftest.err conftest.$ac_objext \ 8904 conftest$ac_exeext conftest.$ac_ext 8905fi 8906 8907 8908 CFLAGS="$xorg_testset_save_CFLAGS" 8909 8910 eval supported=\$$cacheid 8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8912$as_echo "$supported" >&6; } 8913 if test "$supported" = "yes" ; then 8914 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8915 found="yes" 8916 fi 8917 fi 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933xorg_testset_save_CFLAGS="$CFLAGS" 8934 8935if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8936 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8938$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8939if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8940 $as_echo_n "(cached) " >&6 8941else 8942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8943/* end confdefs.h. */ 8944int i; 8945_ACEOF 8946if ac_fn_c_try_compile "$LINENO"; then : 8947 xorg_cv_cc_flag_unknown_warning_option=yes 8948else 8949 xorg_cv_cc_flag_unknown_warning_option=no 8950fi 8951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8952fi 8953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8954$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8955 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8956 CFLAGS="$xorg_testset_save_CFLAGS" 8957fi 8958 8959if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8960 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8961 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8962 fi 8963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8965$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8966if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8967 $as_echo_n "(cached) " >&6 8968else 8969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8970/* end confdefs.h. */ 8971int i; 8972_ACEOF 8973if ac_fn_c_try_compile "$LINENO"; then : 8974 xorg_cv_cc_flag_unused_command_line_argument=yes 8975else 8976 xorg_cv_cc_flag_unused_command_line_argument=no 8977fi 8978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8979fi 8980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8981$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8982 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8983 CFLAGS="$xorg_testset_save_CFLAGS" 8984fi 8985 8986found="no" 8987 8988 if test $found = "no" ; then 8989 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8990 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8991 fi 8992 8993 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8995 fi 8996 8997 CFLAGS="$CFLAGS -Winit-self" 8998 8999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9000$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 9001 cacheid=xorg_cv_cc_flag__Winit_self 9002 if eval \${$cacheid+:} false; then : 9003 $as_echo_n "(cached) " >&6 9004else 9005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9006/* end confdefs.h. */ 9007int i; 9008int 9009main () 9010{ 9011 9012 ; 9013 return 0; 9014} 9015_ACEOF 9016if ac_fn_c_try_link "$LINENO"; then : 9017 eval $cacheid=yes 9018else 9019 eval $cacheid=no 9020fi 9021rm -f core conftest.err conftest.$ac_objext \ 9022 conftest$ac_exeext conftest.$ac_ext 9023fi 9024 9025 9026 CFLAGS="$xorg_testset_save_CFLAGS" 9027 9028 eval supported=\$$cacheid 9029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9030$as_echo "$supported" >&6; } 9031 if test "$supported" = "yes" ; then 9032 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9033 found="yes" 9034 fi 9035 fi 9036 9037 9038 9039 9040 9041 9042 9043 9044 9045 9046 9047 9048 9049 9050 9051xorg_testset_save_CFLAGS="$CFLAGS" 9052 9053if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9054 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9056$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9057if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9058 $as_echo_n "(cached) " >&6 9059else 9060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9061/* end confdefs.h. */ 9062int i; 9063_ACEOF 9064if ac_fn_c_try_compile "$LINENO"; then : 9065 xorg_cv_cc_flag_unknown_warning_option=yes 9066else 9067 xorg_cv_cc_flag_unknown_warning_option=no 9068fi 9069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9070fi 9071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9072$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9073 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9074 CFLAGS="$xorg_testset_save_CFLAGS" 9075fi 9076 9077if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9078 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9079 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9080 fi 9081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9083$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9084if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9085 $as_echo_n "(cached) " >&6 9086else 9087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9088/* end confdefs.h. */ 9089int i; 9090_ACEOF 9091if ac_fn_c_try_compile "$LINENO"; then : 9092 xorg_cv_cc_flag_unused_command_line_argument=yes 9093else 9094 xorg_cv_cc_flag_unused_command_line_argument=no 9095fi 9096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9097fi 9098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9099$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9100 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9101 CFLAGS="$xorg_testset_save_CFLAGS" 9102fi 9103 9104found="no" 9105 9106 if test $found = "no" ; then 9107 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9108 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9109 fi 9110 9111 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9113 fi 9114 9115 CFLAGS="$CFLAGS -Wmain" 9116 9117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9118$as_echo_n "checking if $CC supports -Wmain... " >&6; } 9119 cacheid=xorg_cv_cc_flag__Wmain 9120 if eval \${$cacheid+:} false; then : 9121 $as_echo_n "(cached) " >&6 9122else 9123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9124/* end confdefs.h. */ 9125int i; 9126int 9127main () 9128{ 9129 9130 ; 9131 return 0; 9132} 9133_ACEOF 9134if ac_fn_c_try_link "$LINENO"; then : 9135 eval $cacheid=yes 9136else 9137 eval $cacheid=no 9138fi 9139rm -f core conftest.err conftest.$ac_objext \ 9140 conftest$ac_exeext conftest.$ac_ext 9141fi 9142 9143 9144 CFLAGS="$xorg_testset_save_CFLAGS" 9145 9146 eval supported=\$$cacheid 9147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9148$as_echo "$supported" >&6; } 9149 if test "$supported" = "yes" ; then 9150 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9151 found="yes" 9152 fi 9153 fi 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169xorg_testset_save_CFLAGS="$CFLAGS" 9170 9171if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9172 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9174$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9175if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9176 $as_echo_n "(cached) " >&6 9177else 9178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9179/* end confdefs.h. */ 9180int i; 9181_ACEOF 9182if ac_fn_c_try_compile "$LINENO"; then : 9183 xorg_cv_cc_flag_unknown_warning_option=yes 9184else 9185 xorg_cv_cc_flag_unknown_warning_option=no 9186fi 9187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9188fi 9189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9190$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9191 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9192 CFLAGS="$xorg_testset_save_CFLAGS" 9193fi 9194 9195if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9196 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9197 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9198 fi 9199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9201$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9202if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9203 $as_echo_n "(cached) " >&6 9204else 9205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9206/* end confdefs.h. */ 9207int i; 9208_ACEOF 9209if ac_fn_c_try_compile "$LINENO"; then : 9210 xorg_cv_cc_flag_unused_command_line_argument=yes 9211else 9212 xorg_cv_cc_flag_unused_command_line_argument=no 9213fi 9214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9215fi 9216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9217$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9218 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9219 CFLAGS="$xorg_testset_save_CFLAGS" 9220fi 9221 9222found="no" 9223 9224 if test $found = "no" ; then 9225 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9226 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9227 fi 9228 9229 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9231 fi 9232 9233 CFLAGS="$CFLAGS -Wmissing-braces" 9234 9235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9236$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 9237 cacheid=xorg_cv_cc_flag__Wmissing_braces 9238 if eval \${$cacheid+:} false; then : 9239 $as_echo_n "(cached) " >&6 9240else 9241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9242/* end confdefs.h. */ 9243int i; 9244int 9245main () 9246{ 9247 9248 ; 9249 return 0; 9250} 9251_ACEOF 9252if ac_fn_c_try_link "$LINENO"; then : 9253 eval $cacheid=yes 9254else 9255 eval $cacheid=no 9256fi 9257rm -f core conftest.err conftest.$ac_objext \ 9258 conftest$ac_exeext conftest.$ac_ext 9259fi 9260 9261 9262 CFLAGS="$xorg_testset_save_CFLAGS" 9263 9264 eval supported=\$$cacheid 9265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9266$as_echo "$supported" >&6; } 9267 if test "$supported" = "yes" ; then 9268 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9269 found="yes" 9270 fi 9271 fi 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287xorg_testset_save_CFLAGS="$CFLAGS" 9288 9289if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9290 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9292$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9293if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9294 $as_echo_n "(cached) " >&6 9295else 9296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9297/* end confdefs.h. */ 9298int i; 9299_ACEOF 9300if ac_fn_c_try_compile "$LINENO"; then : 9301 xorg_cv_cc_flag_unknown_warning_option=yes 9302else 9303 xorg_cv_cc_flag_unknown_warning_option=no 9304fi 9305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9306fi 9307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9308$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9309 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9310 CFLAGS="$xorg_testset_save_CFLAGS" 9311fi 9312 9313if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9314 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9315 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9316 fi 9317 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9319$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9320if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9321 $as_echo_n "(cached) " >&6 9322else 9323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9324/* end confdefs.h. */ 9325int i; 9326_ACEOF 9327if ac_fn_c_try_compile "$LINENO"; then : 9328 xorg_cv_cc_flag_unused_command_line_argument=yes 9329else 9330 xorg_cv_cc_flag_unused_command_line_argument=no 9331fi 9332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9333fi 9334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9335$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9336 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9337 CFLAGS="$xorg_testset_save_CFLAGS" 9338fi 9339 9340found="no" 9341 9342 if test $found = "no" ; then 9343 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9344 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9345 fi 9346 9347 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9349 fi 9350 9351 CFLAGS="$CFLAGS -Wsequence-point" 9352 9353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9354$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9355 cacheid=xorg_cv_cc_flag__Wsequence_point 9356 if eval \${$cacheid+:} false; then : 9357 $as_echo_n "(cached) " >&6 9358else 9359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9360/* end confdefs.h. */ 9361int i; 9362int 9363main () 9364{ 9365 9366 ; 9367 return 0; 9368} 9369_ACEOF 9370if ac_fn_c_try_link "$LINENO"; then : 9371 eval $cacheid=yes 9372else 9373 eval $cacheid=no 9374fi 9375rm -f core conftest.err conftest.$ac_objext \ 9376 conftest$ac_exeext conftest.$ac_ext 9377fi 9378 9379 9380 CFLAGS="$xorg_testset_save_CFLAGS" 9381 9382 eval supported=\$$cacheid 9383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9384$as_echo "$supported" >&6; } 9385 if test "$supported" = "yes" ; then 9386 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9387 found="yes" 9388 fi 9389 fi 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405xorg_testset_save_CFLAGS="$CFLAGS" 9406 9407if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9408 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9410$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9411if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9412 $as_echo_n "(cached) " >&6 9413else 9414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9415/* end confdefs.h. */ 9416int i; 9417_ACEOF 9418if ac_fn_c_try_compile "$LINENO"; then : 9419 xorg_cv_cc_flag_unknown_warning_option=yes 9420else 9421 xorg_cv_cc_flag_unknown_warning_option=no 9422fi 9423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9424fi 9425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9426$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9427 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9428 CFLAGS="$xorg_testset_save_CFLAGS" 9429fi 9430 9431if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9432 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9433 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9434 fi 9435 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9437$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9438if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9439 $as_echo_n "(cached) " >&6 9440else 9441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9442/* end confdefs.h. */ 9443int i; 9444_ACEOF 9445if ac_fn_c_try_compile "$LINENO"; then : 9446 xorg_cv_cc_flag_unused_command_line_argument=yes 9447else 9448 xorg_cv_cc_flag_unused_command_line_argument=no 9449fi 9450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9451fi 9452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9453$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9454 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9455 CFLAGS="$xorg_testset_save_CFLAGS" 9456fi 9457 9458found="no" 9459 9460 if test $found = "no" ; then 9461 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9462 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9463 fi 9464 9465 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9467 fi 9468 9469 CFLAGS="$CFLAGS -Wreturn-type" 9470 9471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9472$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9473 cacheid=xorg_cv_cc_flag__Wreturn_type 9474 if eval \${$cacheid+:} false; then : 9475 $as_echo_n "(cached) " >&6 9476else 9477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9478/* end confdefs.h. */ 9479int i; 9480int 9481main () 9482{ 9483 9484 ; 9485 return 0; 9486} 9487_ACEOF 9488if ac_fn_c_try_link "$LINENO"; then : 9489 eval $cacheid=yes 9490else 9491 eval $cacheid=no 9492fi 9493rm -f core conftest.err conftest.$ac_objext \ 9494 conftest$ac_exeext conftest.$ac_ext 9495fi 9496 9497 9498 CFLAGS="$xorg_testset_save_CFLAGS" 9499 9500 eval supported=\$$cacheid 9501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9502$as_echo "$supported" >&6; } 9503 if test "$supported" = "yes" ; then 9504 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9505 found="yes" 9506 fi 9507 fi 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523xorg_testset_save_CFLAGS="$CFLAGS" 9524 9525if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9526 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9528$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9529if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9530 $as_echo_n "(cached) " >&6 9531else 9532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9533/* end confdefs.h. */ 9534int i; 9535_ACEOF 9536if ac_fn_c_try_compile "$LINENO"; then : 9537 xorg_cv_cc_flag_unknown_warning_option=yes 9538else 9539 xorg_cv_cc_flag_unknown_warning_option=no 9540fi 9541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9542fi 9543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9544$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9545 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9546 CFLAGS="$xorg_testset_save_CFLAGS" 9547fi 9548 9549if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9550 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9551 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9552 fi 9553 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9555$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9556if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9557 $as_echo_n "(cached) " >&6 9558else 9559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9560/* end confdefs.h. */ 9561int i; 9562_ACEOF 9563if ac_fn_c_try_compile "$LINENO"; then : 9564 xorg_cv_cc_flag_unused_command_line_argument=yes 9565else 9566 xorg_cv_cc_flag_unused_command_line_argument=no 9567fi 9568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9569fi 9570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9571$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9572 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9573 CFLAGS="$xorg_testset_save_CFLAGS" 9574fi 9575 9576found="no" 9577 9578 if test $found = "no" ; then 9579 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9580 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9581 fi 9582 9583 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9584 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9585 fi 9586 9587 CFLAGS="$CFLAGS -Wtrigraphs" 9588 9589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9590$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9591 cacheid=xorg_cv_cc_flag__Wtrigraphs 9592 if eval \${$cacheid+:} false; then : 9593 $as_echo_n "(cached) " >&6 9594else 9595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9596/* end confdefs.h. */ 9597int i; 9598int 9599main () 9600{ 9601 9602 ; 9603 return 0; 9604} 9605_ACEOF 9606if ac_fn_c_try_link "$LINENO"; then : 9607 eval $cacheid=yes 9608else 9609 eval $cacheid=no 9610fi 9611rm -f core conftest.err conftest.$ac_objext \ 9612 conftest$ac_exeext conftest.$ac_ext 9613fi 9614 9615 9616 CFLAGS="$xorg_testset_save_CFLAGS" 9617 9618 eval supported=\$$cacheid 9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9620$as_echo "$supported" >&6; } 9621 if test "$supported" = "yes" ; then 9622 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9623 found="yes" 9624 fi 9625 fi 9626 9627 9628 9629 9630 9631 9632 9633 9634 9635 9636 9637 9638 9639 9640 9641xorg_testset_save_CFLAGS="$CFLAGS" 9642 9643if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9644 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9646$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9647if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9648 $as_echo_n "(cached) " >&6 9649else 9650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9651/* end confdefs.h. */ 9652int i; 9653_ACEOF 9654if ac_fn_c_try_compile "$LINENO"; then : 9655 xorg_cv_cc_flag_unknown_warning_option=yes 9656else 9657 xorg_cv_cc_flag_unknown_warning_option=no 9658fi 9659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9660fi 9661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9662$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9663 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9664 CFLAGS="$xorg_testset_save_CFLAGS" 9665fi 9666 9667if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9668 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9669 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9670 fi 9671 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9673$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9674if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9675 $as_echo_n "(cached) " >&6 9676else 9677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9678/* end confdefs.h. */ 9679int i; 9680_ACEOF 9681if ac_fn_c_try_compile "$LINENO"; then : 9682 xorg_cv_cc_flag_unused_command_line_argument=yes 9683else 9684 xorg_cv_cc_flag_unused_command_line_argument=no 9685fi 9686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9687fi 9688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9689$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9690 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9691 CFLAGS="$xorg_testset_save_CFLAGS" 9692fi 9693 9694found="no" 9695 9696 if test $found = "no" ; then 9697 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9698 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9699 fi 9700 9701 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9702 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9703 fi 9704 9705 CFLAGS="$CFLAGS -Warray-bounds" 9706 9707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9708$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9709 cacheid=xorg_cv_cc_flag__Warray_bounds 9710 if eval \${$cacheid+:} false; then : 9711 $as_echo_n "(cached) " >&6 9712else 9713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9714/* end confdefs.h. */ 9715int i; 9716int 9717main () 9718{ 9719 9720 ; 9721 return 0; 9722} 9723_ACEOF 9724if ac_fn_c_try_link "$LINENO"; then : 9725 eval $cacheid=yes 9726else 9727 eval $cacheid=no 9728fi 9729rm -f core conftest.err conftest.$ac_objext \ 9730 conftest$ac_exeext conftest.$ac_ext 9731fi 9732 9733 9734 CFLAGS="$xorg_testset_save_CFLAGS" 9735 9736 eval supported=\$$cacheid 9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9738$as_echo "$supported" >&6; } 9739 if test "$supported" = "yes" ; then 9740 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9741 found="yes" 9742 fi 9743 fi 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759xorg_testset_save_CFLAGS="$CFLAGS" 9760 9761if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9762 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9764$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9765if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9766 $as_echo_n "(cached) " >&6 9767else 9768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9769/* end confdefs.h. */ 9770int i; 9771_ACEOF 9772if ac_fn_c_try_compile "$LINENO"; then : 9773 xorg_cv_cc_flag_unknown_warning_option=yes 9774else 9775 xorg_cv_cc_flag_unknown_warning_option=no 9776fi 9777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9778fi 9779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9780$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9781 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9782 CFLAGS="$xorg_testset_save_CFLAGS" 9783fi 9784 9785if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9786 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9787 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9788 fi 9789 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9791$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9792if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9793 $as_echo_n "(cached) " >&6 9794else 9795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9796/* end confdefs.h. */ 9797int i; 9798_ACEOF 9799if ac_fn_c_try_compile "$LINENO"; then : 9800 xorg_cv_cc_flag_unused_command_line_argument=yes 9801else 9802 xorg_cv_cc_flag_unused_command_line_argument=no 9803fi 9804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9805fi 9806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9807$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9808 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9809 CFLAGS="$xorg_testset_save_CFLAGS" 9810fi 9811 9812found="no" 9813 9814 if test $found = "no" ; then 9815 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9816 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9817 fi 9818 9819 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9820 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9821 fi 9822 9823 CFLAGS="$CFLAGS -Wwrite-strings" 9824 9825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9826$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9827 cacheid=xorg_cv_cc_flag__Wwrite_strings 9828 if eval \${$cacheid+:} false; then : 9829 $as_echo_n "(cached) " >&6 9830else 9831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9832/* end confdefs.h. */ 9833int i; 9834int 9835main () 9836{ 9837 9838 ; 9839 return 0; 9840} 9841_ACEOF 9842if ac_fn_c_try_link "$LINENO"; then : 9843 eval $cacheid=yes 9844else 9845 eval $cacheid=no 9846fi 9847rm -f core conftest.err conftest.$ac_objext \ 9848 conftest$ac_exeext conftest.$ac_ext 9849fi 9850 9851 9852 CFLAGS="$xorg_testset_save_CFLAGS" 9853 9854 eval supported=\$$cacheid 9855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9856$as_echo "$supported" >&6; } 9857 if test "$supported" = "yes" ; then 9858 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9859 found="yes" 9860 fi 9861 fi 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877xorg_testset_save_CFLAGS="$CFLAGS" 9878 9879if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9880 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9882$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9883if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9884 $as_echo_n "(cached) " >&6 9885else 9886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9887/* end confdefs.h. */ 9888int i; 9889_ACEOF 9890if ac_fn_c_try_compile "$LINENO"; then : 9891 xorg_cv_cc_flag_unknown_warning_option=yes 9892else 9893 xorg_cv_cc_flag_unknown_warning_option=no 9894fi 9895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9896fi 9897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9898$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9899 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9900 CFLAGS="$xorg_testset_save_CFLAGS" 9901fi 9902 9903if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9904 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9905 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9906 fi 9907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9909$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9910if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9911 $as_echo_n "(cached) " >&6 9912else 9913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9914/* end confdefs.h. */ 9915int i; 9916_ACEOF 9917if ac_fn_c_try_compile "$LINENO"; then : 9918 xorg_cv_cc_flag_unused_command_line_argument=yes 9919else 9920 xorg_cv_cc_flag_unused_command_line_argument=no 9921fi 9922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9923fi 9924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9925$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9926 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9927 CFLAGS="$xorg_testset_save_CFLAGS" 9928fi 9929 9930found="no" 9931 9932 if test $found = "no" ; then 9933 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9934 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9935 fi 9936 9937 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9938 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9939 fi 9940 9941 CFLAGS="$CFLAGS -Waddress" 9942 9943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9944$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9945 cacheid=xorg_cv_cc_flag__Waddress 9946 if eval \${$cacheid+:} false; then : 9947 $as_echo_n "(cached) " >&6 9948else 9949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9950/* end confdefs.h. */ 9951int i; 9952int 9953main () 9954{ 9955 9956 ; 9957 return 0; 9958} 9959_ACEOF 9960if ac_fn_c_try_link "$LINENO"; then : 9961 eval $cacheid=yes 9962else 9963 eval $cacheid=no 9964fi 9965rm -f core conftest.err conftest.$ac_objext \ 9966 conftest$ac_exeext conftest.$ac_ext 9967fi 9968 9969 9970 CFLAGS="$xorg_testset_save_CFLAGS" 9971 9972 eval supported=\$$cacheid 9973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9974$as_echo "$supported" >&6; } 9975 if test "$supported" = "yes" ; then 9976 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9977 found="yes" 9978 fi 9979 fi 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995xorg_testset_save_CFLAGS="$CFLAGS" 9996 9997if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9998 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10000$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10001if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10002 $as_echo_n "(cached) " >&6 10003else 10004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10005/* end confdefs.h. */ 10006int i; 10007_ACEOF 10008if ac_fn_c_try_compile "$LINENO"; then : 10009 xorg_cv_cc_flag_unknown_warning_option=yes 10010else 10011 xorg_cv_cc_flag_unknown_warning_option=no 10012fi 10013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10014fi 10015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10016$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10017 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10018 CFLAGS="$xorg_testset_save_CFLAGS" 10019fi 10020 10021if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10022 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10023 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10024 fi 10025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10027$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10028if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10029 $as_echo_n "(cached) " >&6 10030else 10031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10032/* end confdefs.h. */ 10033int i; 10034_ACEOF 10035if ac_fn_c_try_compile "$LINENO"; then : 10036 xorg_cv_cc_flag_unused_command_line_argument=yes 10037else 10038 xorg_cv_cc_flag_unused_command_line_argument=no 10039fi 10040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10041fi 10042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10043$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10044 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10045 CFLAGS="$xorg_testset_save_CFLAGS" 10046fi 10047 10048found="no" 10049 10050 if test $found = "no" ; then 10051 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10052 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10053 fi 10054 10055 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10056 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10057 fi 10058 10059 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10060 10061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10062$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10063 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10064 if eval \${$cacheid+:} false; then : 10065 $as_echo_n "(cached) " >&6 10066else 10067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10068/* end confdefs.h. */ 10069int i; 10070int 10071main () 10072{ 10073 10074 ; 10075 return 0; 10076} 10077_ACEOF 10078if ac_fn_c_try_link "$LINENO"; then : 10079 eval $cacheid=yes 10080else 10081 eval $cacheid=no 10082fi 10083rm -f core conftest.err conftest.$ac_objext \ 10084 conftest$ac_exeext conftest.$ac_ext 10085fi 10086 10087 10088 CFLAGS="$xorg_testset_save_CFLAGS" 10089 10090 eval supported=\$$cacheid 10091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10092$as_echo "$supported" >&6; } 10093 if test "$supported" = "yes" ; then 10094 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10095 found="yes" 10096 fi 10097 fi 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113xorg_testset_save_CFLAGS="$CFLAGS" 10114 10115if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10116 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10118$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10119if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10120 $as_echo_n "(cached) " >&6 10121else 10122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10123/* end confdefs.h. */ 10124int i; 10125_ACEOF 10126if ac_fn_c_try_compile "$LINENO"; then : 10127 xorg_cv_cc_flag_unknown_warning_option=yes 10128else 10129 xorg_cv_cc_flag_unknown_warning_option=no 10130fi 10131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10132fi 10133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10134$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10135 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10136 CFLAGS="$xorg_testset_save_CFLAGS" 10137fi 10138 10139if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10140 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10141 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10142 fi 10143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10145$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10146if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10147 $as_echo_n "(cached) " >&6 10148else 10149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10150/* end confdefs.h. */ 10151int i; 10152_ACEOF 10153if ac_fn_c_try_compile "$LINENO"; then : 10154 xorg_cv_cc_flag_unused_command_line_argument=yes 10155else 10156 xorg_cv_cc_flag_unused_command_line_argument=no 10157fi 10158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10159fi 10160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10161$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10162 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10163 CFLAGS="$xorg_testset_save_CFLAGS" 10164fi 10165 10166found="no" 10167 10168 if test $found = "no" ; then 10169 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10170 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10171 fi 10172 10173 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10174 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10175 fi 10176 10177 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10178 10179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10180$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10181 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10182 if eval \${$cacheid+:} false; then : 10183 $as_echo_n "(cached) " >&6 10184else 10185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10186/* end confdefs.h. */ 10187int i; 10188int 10189main () 10190{ 10191 10192 ; 10193 return 0; 10194} 10195_ACEOF 10196if ac_fn_c_try_link "$LINENO"; then : 10197 eval $cacheid=yes 10198else 10199 eval $cacheid=no 10200fi 10201rm -f core conftest.err conftest.$ac_objext \ 10202 conftest$ac_exeext conftest.$ac_ext 10203fi 10204 10205 10206 CFLAGS="$xorg_testset_save_CFLAGS" 10207 10208 eval supported=\$$cacheid 10209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10210$as_echo "$supported" >&6; } 10211 if test "$supported" = "yes" ; then 10212 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10213 found="yes" 10214 fi 10215 fi 10216 10217 10218fi 10219 10220 10221 10222 10223 10224 10225 10226 CWARNFLAGS="$BASE_CFLAGS" 10227 if test "x$GCC" = xyes ; then 10228 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10229 fi 10230 10231 10232 10233 10234 10235 10236 10237 10238# Check whether --enable-strict-compilation was given. 10239if test "${enable_strict_compilation+set}" = set; then : 10240 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10241else 10242 STRICT_COMPILE=no 10243fi 10244 10245 10246 10247 10248 10249 10250STRICT_CFLAGS="" 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264xorg_testset_save_CFLAGS="$CFLAGS" 10265 10266if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10267 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10269$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10270if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10271 $as_echo_n "(cached) " >&6 10272else 10273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10274/* end confdefs.h. */ 10275int i; 10276_ACEOF 10277if ac_fn_c_try_compile "$LINENO"; then : 10278 xorg_cv_cc_flag_unknown_warning_option=yes 10279else 10280 xorg_cv_cc_flag_unknown_warning_option=no 10281fi 10282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10283fi 10284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10285$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10286 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10287 CFLAGS="$xorg_testset_save_CFLAGS" 10288fi 10289 10290if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10291 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10292 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10293 fi 10294 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10296$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10297if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10298 $as_echo_n "(cached) " >&6 10299else 10300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10301/* end confdefs.h. */ 10302int i; 10303_ACEOF 10304if ac_fn_c_try_compile "$LINENO"; then : 10305 xorg_cv_cc_flag_unused_command_line_argument=yes 10306else 10307 xorg_cv_cc_flag_unused_command_line_argument=no 10308fi 10309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10310fi 10311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10312$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10313 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10314 CFLAGS="$xorg_testset_save_CFLAGS" 10315fi 10316 10317found="no" 10318 10319 if test $found = "no" ; then 10320 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10321 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10322 fi 10323 10324 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10325 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10326 fi 10327 10328 CFLAGS="$CFLAGS -pedantic" 10329 10330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10331$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10332 cacheid=xorg_cv_cc_flag__pedantic 10333 if eval \${$cacheid+:} false; then : 10334 $as_echo_n "(cached) " >&6 10335else 10336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10337/* end confdefs.h. */ 10338int i; 10339int 10340main () 10341{ 10342 10343 ; 10344 return 0; 10345} 10346_ACEOF 10347if ac_fn_c_try_link "$LINENO"; then : 10348 eval $cacheid=yes 10349else 10350 eval $cacheid=no 10351fi 10352rm -f core conftest.err conftest.$ac_objext \ 10353 conftest$ac_exeext conftest.$ac_ext 10354fi 10355 10356 10357 CFLAGS="$xorg_testset_save_CFLAGS" 10358 10359 eval supported=\$$cacheid 10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10361$as_echo "$supported" >&6; } 10362 if test "$supported" = "yes" ; then 10363 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10364 found="yes" 10365 fi 10366 fi 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382xorg_testset_save_CFLAGS="$CFLAGS" 10383 10384if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10385 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10387$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10388if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10389 $as_echo_n "(cached) " >&6 10390else 10391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10392/* end confdefs.h. */ 10393int i; 10394_ACEOF 10395if ac_fn_c_try_compile "$LINENO"; then : 10396 xorg_cv_cc_flag_unknown_warning_option=yes 10397else 10398 xorg_cv_cc_flag_unknown_warning_option=no 10399fi 10400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10401fi 10402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10403$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10404 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10405 CFLAGS="$xorg_testset_save_CFLAGS" 10406fi 10407 10408if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10409 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10410 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10411 fi 10412 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10414$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10415if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10416 $as_echo_n "(cached) " >&6 10417else 10418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10419/* end confdefs.h. */ 10420int i; 10421_ACEOF 10422if ac_fn_c_try_compile "$LINENO"; then : 10423 xorg_cv_cc_flag_unused_command_line_argument=yes 10424else 10425 xorg_cv_cc_flag_unused_command_line_argument=no 10426fi 10427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10428fi 10429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10430$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10431 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10432 CFLAGS="$xorg_testset_save_CFLAGS" 10433fi 10434 10435found="no" 10436 10437 if test $found = "no" ; then 10438 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10439 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10440 fi 10441 10442 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10443 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10444 fi 10445 10446 CFLAGS="$CFLAGS -Werror" 10447 10448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10449$as_echo_n "checking if $CC supports -Werror... " >&6; } 10450 cacheid=xorg_cv_cc_flag__Werror 10451 if eval \${$cacheid+:} false; then : 10452 $as_echo_n "(cached) " >&6 10453else 10454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10455/* end confdefs.h. */ 10456int i; 10457int 10458main () 10459{ 10460 10461 ; 10462 return 0; 10463} 10464_ACEOF 10465if ac_fn_c_try_link "$LINENO"; then : 10466 eval $cacheid=yes 10467else 10468 eval $cacheid=no 10469fi 10470rm -f core conftest.err conftest.$ac_objext \ 10471 conftest$ac_exeext conftest.$ac_ext 10472fi 10473 10474 10475 CFLAGS="$xorg_testset_save_CFLAGS" 10476 10477 eval supported=\$$cacheid 10478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10479$as_echo "$supported" >&6; } 10480 if test "$supported" = "yes" ; then 10481 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10482 found="yes" 10483 fi 10484 fi 10485 10486 if test $found = "no" ; then 10487 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10488 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10489 fi 10490 10491 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10492 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10493 fi 10494 10495 CFLAGS="$CFLAGS -errwarn" 10496 10497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10498$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10499 cacheid=xorg_cv_cc_flag__errwarn 10500 if eval \${$cacheid+:} false; then : 10501 $as_echo_n "(cached) " >&6 10502else 10503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10504/* end confdefs.h. */ 10505int i; 10506int 10507main () 10508{ 10509 10510 ; 10511 return 0; 10512} 10513_ACEOF 10514if ac_fn_c_try_link "$LINENO"; then : 10515 eval $cacheid=yes 10516else 10517 eval $cacheid=no 10518fi 10519rm -f core conftest.err conftest.$ac_objext \ 10520 conftest$ac_exeext conftest.$ac_ext 10521fi 10522 10523 10524 CFLAGS="$xorg_testset_save_CFLAGS" 10525 10526 eval supported=\$$cacheid 10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10528$as_echo "$supported" >&6; } 10529 if test "$supported" = "yes" ; then 10530 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10531 found="yes" 10532 fi 10533 fi 10534 10535 10536 10537# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10538# activate it with -Werror, so we add it here explicitly. 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552xorg_testset_save_CFLAGS="$CFLAGS" 10553 10554if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10555 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10557$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10558if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10559 $as_echo_n "(cached) " >&6 10560else 10561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10562/* end confdefs.h. */ 10563int i; 10564_ACEOF 10565if ac_fn_c_try_compile "$LINENO"; then : 10566 xorg_cv_cc_flag_unknown_warning_option=yes 10567else 10568 xorg_cv_cc_flag_unknown_warning_option=no 10569fi 10570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10571fi 10572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10573$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10574 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10575 CFLAGS="$xorg_testset_save_CFLAGS" 10576fi 10577 10578if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10579 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10580 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10581 fi 10582 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10584$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10585if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10586 $as_echo_n "(cached) " >&6 10587else 10588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10589/* end confdefs.h. */ 10590int i; 10591_ACEOF 10592if ac_fn_c_try_compile "$LINENO"; then : 10593 xorg_cv_cc_flag_unused_command_line_argument=yes 10594else 10595 xorg_cv_cc_flag_unused_command_line_argument=no 10596fi 10597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10598fi 10599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10600$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10601 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10602 CFLAGS="$xorg_testset_save_CFLAGS" 10603fi 10604 10605found="no" 10606 10607 if test $found = "no" ; then 10608 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10609 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10610 fi 10611 10612 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10613 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10614 fi 10615 10616 CFLAGS="$CFLAGS -Werror=attributes" 10617 10618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10619$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10620 cacheid=xorg_cv_cc_flag__Werror_attributes 10621 if eval \${$cacheid+:} false; then : 10622 $as_echo_n "(cached) " >&6 10623else 10624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10625/* end confdefs.h. */ 10626int i; 10627int 10628main () 10629{ 10630 10631 ; 10632 return 0; 10633} 10634_ACEOF 10635if ac_fn_c_try_link "$LINENO"; then : 10636 eval $cacheid=yes 10637else 10638 eval $cacheid=no 10639fi 10640rm -f core conftest.err conftest.$ac_objext \ 10641 conftest$ac_exeext conftest.$ac_ext 10642fi 10643 10644 10645 CFLAGS="$xorg_testset_save_CFLAGS" 10646 10647 eval supported=\$$cacheid 10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10649$as_echo "$supported" >&6; } 10650 if test "$supported" = "yes" ; then 10651 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10652 found="yes" 10653 fi 10654 fi 10655 10656 10657 10658if test "x$STRICT_COMPILE" = "xyes"; then 10659 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10660 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10661fi 10662 10663 10664 10665 10666 10667 10668cat >>confdefs.h <<_ACEOF 10669#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10670_ACEOF 10671 10672 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10673 if test "x$PVM" = "x"; then 10674 PVM="0" 10675 fi 10676 10677cat >>confdefs.h <<_ACEOF 10678#define PACKAGE_VERSION_MINOR $PVM 10679_ACEOF 10680 10681 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10682 if test "x$PVP" = "x"; then 10683 PVP="0" 10684 fi 10685 10686cat >>confdefs.h <<_ACEOF 10687#define PACKAGE_VERSION_PATCHLEVEL $PVP 10688_ACEOF 10689 10690 10691 10692CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10693mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10694|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10695echo 'git directory not found: installing possibly empty changelog.' >&2)" 10696 10697 10698 10699 10700macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10701INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10702mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10703|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10704echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10705 10706 10707 10708 10709 10710 10711if test x$APP_MAN_SUFFIX = x ; then 10712 APP_MAN_SUFFIX=1 10713fi 10714if test x$APP_MAN_DIR = x ; then 10715 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10716fi 10717 10718if test x$LIB_MAN_SUFFIX = x ; then 10719 LIB_MAN_SUFFIX=3 10720fi 10721if test x$LIB_MAN_DIR = x ; then 10722 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10723fi 10724 10725if test x$FILE_MAN_SUFFIX = x ; then 10726 case $host_os in 10727 solaris*) FILE_MAN_SUFFIX=4 ;; 10728 *) FILE_MAN_SUFFIX=5 ;; 10729 esac 10730fi 10731if test x$FILE_MAN_DIR = x ; then 10732 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10733fi 10734 10735if test x$MISC_MAN_SUFFIX = x ; then 10736 case $host_os in 10737 solaris*) MISC_MAN_SUFFIX=5 ;; 10738 *) MISC_MAN_SUFFIX=7 ;; 10739 esac 10740fi 10741if test x$MISC_MAN_DIR = x ; then 10742 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10743fi 10744 10745if test x$DRIVER_MAN_SUFFIX = x ; then 10746 case $host_os in 10747 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10748 *) DRIVER_MAN_SUFFIX=4 ;; 10749 esac 10750fi 10751if test x$DRIVER_MAN_DIR = x ; then 10752 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10753fi 10754 10755if test x$ADMIN_MAN_SUFFIX = x ; then 10756 case $host_os in 10757 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10758 *) ADMIN_MAN_SUFFIX=8 ;; 10759 esac 10760fi 10761if test x$ADMIN_MAN_DIR = x ; then 10762 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10763fi 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779XORG_MAN_PAGE="X Version 11" 10780 10781MAN_SUBSTS="\ 10782 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10783 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10784 -e 's|__xservername__|Xorg|g' \ 10785 -e 's|__xconfigfile__|xorg.conf|g' \ 10786 -e 's|__projectroot__|\$(prefix)|g' \ 10787 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10788 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10789 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10790 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10791 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10792 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10793 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10794 10795 10796 10797# Check whether --enable-silent-rules was given. 10798if test "${enable_silent_rules+set}" = set; then : 10799 enableval=$enable_silent_rules; 10800fi 10801 10802case $enable_silent_rules in # ((( 10803 yes) AM_DEFAULT_VERBOSITY=0;; 10804 no) AM_DEFAULT_VERBOSITY=1;; 10805 *) AM_DEFAULT_VERBOSITY=0;; 10806esac 10807am_make=${MAKE-make} 10808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10809$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10810if ${am_cv_make_support_nested_variables+:} false; then : 10811 $as_echo_n "(cached) " >&6 10812else 10813 if $as_echo 'TRUE=$(BAR$(V)) 10814BAR0=false 10815BAR1=true 10816V=1 10817am__doit: 10818 @$(TRUE) 10819.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10820 am_cv_make_support_nested_variables=yes 10821else 10822 am_cv_make_support_nested_variables=no 10823fi 10824fi 10825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10826$as_echo "$am_cv_make_support_nested_variables" >&6; } 10827if test $am_cv_make_support_nested_variables = yes; then 10828 AM_V='$(V)' 10829 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10830else 10831 AM_V=$AM_DEFAULT_VERBOSITY 10832 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10833fi 10834AM_BACKSLASH='\' 10835 10836 10837 10838for ac_func in mkstemp asprintf reallocarray 10839do : 10840 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 10841ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 10842if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 10843 cat >>confdefs.h <<_ACEOF 10844#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 10845_ACEOF 10846 10847fi 10848done 10849 10850 10851# Find MAXHOSTNAMELEN definition 10852# Common hidey holes: 10853# BSD & Linux - <sys/param.h> 10854# Solaris - <netdb.h> 10855 10856ac_fn_c_check_decl "$LINENO" "MAXHOSTNAMELEN" "ac_cv_have_decl_MAXHOSTNAMELEN" "$ac_includes_default" 10857if test "x$ac_cv_have_decl_MAXHOSTNAMELEN" = xyes; then : 10858 FOUND_MAXHOSTNAMELEN=yes 10859fi 10860 10861 10862if test x$FOUND_MAXHOSTNAMELEN != xyes ; then 10863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for header that defines MAXHOSTNAMELEN" >&5 10864$as_echo_n "checking for header that defines MAXHOSTNAMELEN... " >&6; } 10865 10866 FOUND_MAXHOSTNAMELEN='not found' 10867 10868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10869/* end confdefs.h. */ 10870#include <sys/param.h> 10871int 10872main () 10873{ 10874int h = MAXHOSTNAMELEN; 10875 ; 10876 return 0; 10877} 10878_ACEOF 10879if ac_fn_c_try_compile "$LINENO"; then : 10880 FOUND_MAXHOSTNAMELEN='sys/param.h' 10881 10882$as_echo "#define NEED_SYS_PARAM_H 1" >>confdefs.h 10883 10884fi 10885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10886 10887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10888/* end confdefs.h. */ 10889#include <netdb.h> 10890int 10891main () 10892{ 10893int h = MAXHOSTNAMELEN; 10894 ; 10895 return 0; 10896} 10897_ACEOF 10898if ac_fn_c_try_compile "$LINENO"; then : 10899 FOUND_MAXHOSTNAMELEN='netdb.h' 10900 10901$as_echo "#define NEED_NETDB_H 1" >>confdefs.h 10902 10903fi 10904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10905 10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOUND_MAXHOSTNAMELEN" >&5 10907$as_echo "$FOUND_MAXHOSTNAMELEN" >&6; } 10908fi 10909 10910# xrdb needs to know where to find cpp at runtime - previously set as CppCmd 10911# in Imake config files for each OS 10912 10913# Check whether --with-cpp was given. 10914if test "${with_cpp+set}" = set; then : 10915 withval=$with_cpp; { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpp" >&5 10916$as_echo_n "checking for cpp... " >&6; } 10917 CPP_PATH=$withval 10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: --with-cpp specified $CPP_PATH" >&5 10919$as_echo "--with-cpp specified $CPP_PATH" >&6; } 10920else 10921 # Extract the first word of "cpp", so it can be a program name with args. 10922set dummy cpp; ac_word=$2 10923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10924$as_echo_n "checking for $ac_word... " >&6; } 10925if ${ac_cv_path_CPP_PATH+:} false; then : 10926 $as_echo_n "(cached) " >&6 10927else 10928 case $CPP_PATH in 10929 [\\/]* | ?:[\\/]*) 10930 ac_cv_path_CPP_PATH="$CPP_PATH" # Let the user override the test with a path. 10931 ;; 10932 *) 10933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10934as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib" 10935for as_dir in $as_dummy 10936do 10937 IFS=$as_save_IFS 10938 test -z "$as_dir" && as_dir=. 10939 for ac_exec_ext in '' $ac_executable_extensions; do 10940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10941 ac_cv_path_CPP_PATH="$as_dir/$ac_word$ac_exec_ext" 10942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10943 break 2 10944 fi 10945done 10946 done 10947IFS=$as_save_IFS 10948 10949 test -z "$ac_cv_path_CPP_PATH" && ac_cv_path_CPP_PATH="cpp" 10950 ;; 10951esac 10952fi 10953CPP_PATH=$ac_cv_path_CPP_PATH 10954if test -n "$CPP_PATH"; then 10955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP_PATH" >&5 10956$as_echo "$CPP_PATH" >&6; } 10957else 10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10959$as_echo "no" >&6; } 10960fi 10961 10962 10963fi 10964 10965CPP_PATH=`echo ${CPP_PATH} | sed 's/,/\\",\\"/g'` 10966 10967cat >>confdefs.h <<_ACEOF 10968#define CPP "$CPP_PATH" 10969_ACEOF 10970 10971 10972# Checks for pkg-config packages 10973 10974pkg_failed=no 10975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRDB" >&5 10976$as_echo_n "checking for XRDB... " >&6; } 10977 10978if test -n "$XRDB_CFLAGS"; then 10979 pkg_cv_XRDB_CFLAGS="$XRDB_CFLAGS" 10980 elif test -n "$PKG_CONFIG"; then 10981 if test -n "$PKG_CONFIG" && \ 10982 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmuu x11 xproto >= 7.0.25\""; } >&5 10983 ($PKG_CONFIG --exists --print-errors "xmuu x11 xproto >= 7.0.25") 2>&5 10984 ac_status=$? 10985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10986 test $ac_status = 0; }; then 10987 pkg_cv_XRDB_CFLAGS=`$PKG_CONFIG --cflags "xmuu x11 xproto >= 7.0.25" 2>/dev/null` 10988 test "x$?" != "x0" && pkg_failed=yes 10989else 10990 pkg_failed=yes 10991fi 10992 else 10993 pkg_failed=untried 10994fi 10995if test -n "$XRDB_LIBS"; then 10996 pkg_cv_XRDB_LIBS="$XRDB_LIBS" 10997 elif test -n "$PKG_CONFIG"; then 10998 if test -n "$PKG_CONFIG" && \ 10999 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmuu x11 xproto >= 7.0.25\""; } >&5 11000 ($PKG_CONFIG --exists --print-errors "xmuu x11 xproto >= 7.0.25") 2>&5 11001 ac_status=$? 11002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11003 test $ac_status = 0; }; then 11004 pkg_cv_XRDB_LIBS=`$PKG_CONFIG --libs "xmuu x11 xproto >= 7.0.25" 2>/dev/null` 11005 test "x$?" != "x0" && pkg_failed=yes 11006else 11007 pkg_failed=yes 11008fi 11009 else 11010 pkg_failed=untried 11011fi 11012 11013 11014 11015if test $pkg_failed = yes; then 11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11017$as_echo "no" >&6; } 11018 11019if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11020 _pkg_short_errors_supported=yes 11021else 11022 _pkg_short_errors_supported=no 11023fi 11024 if test $_pkg_short_errors_supported = yes; then 11025 XRDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xmuu x11 xproto >= 7.0.25" 2>&1` 11026 else 11027 XRDB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xmuu x11 xproto >= 7.0.25" 2>&1` 11028 fi 11029 # Put the nasty error message in config.log where it belongs 11030 echo "$XRDB_PKG_ERRORS" >&5 11031 11032 as_fn_error $? "Package requirements (xmuu x11 xproto >= 7.0.25) were not met: 11033 11034$XRDB_PKG_ERRORS 11035 11036Consider adjusting the PKG_CONFIG_PATH environment variable if you 11037installed software in a non-standard prefix. 11038 11039Alternatively, you may set the environment variables XRDB_CFLAGS 11040and XRDB_LIBS to avoid the need to call pkg-config. 11041See the pkg-config man page for more details." "$LINENO" 5 11042elif test $pkg_failed = untried; then 11043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11044$as_echo "no" >&6; } 11045 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11046$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11047as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11048is in your PATH or set the PKG_CONFIG environment variable to the full 11049path to pkg-config. 11050 11051Alternatively, you may set the environment variables XRDB_CFLAGS 11052and XRDB_LIBS to avoid the need to call pkg-config. 11053See the pkg-config man page for more details. 11054 11055To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11056See \`config.log' for more details" "$LINENO" 5; } 11057else 11058 XRDB_CFLAGS=$pkg_cv_XRDB_CFLAGS 11059 XRDB_LIBS=$pkg_cv_XRDB_LIBS 11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11061$as_echo "yes" >&6; } 11062 11063fi 11064 11065ac_config_files="$ac_config_files Makefile man/Makefile" 11066 11067cat >confcache <<\_ACEOF 11068# This file is a shell script that caches the results of configure 11069# tests run on this system so they can be shared between configure 11070# scripts and configure runs, see configure's option --config-cache. 11071# It is not useful on other systems. If it contains results you don't 11072# want to keep, you may remove or edit it. 11073# 11074# config.status only pays attention to the cache file if you give it 11075# the --recheck option to rerun configure. 11076# 11077# `ac_cv_env_foo' variables (set or unset) will be overridden when 11078# loading this file, other *unset* `ac_cv_foo' will be assigned the 11079# following values. 11080 11081_ACEOF 11082 11083# The following way of writing the cache mishandles newlines in values, 11084# but we know of no workaround that is simple, portable, and efficient. 11085# So, we kill variables containing newlines. 11086# Ultrix sh set writes to stderr and can't be redirected directly, 11087# and sets the high bit in the cache file unless we assign to the vars. 11088( 11089 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11090 eval ac_val=\$$ac_var 11091 case $ac_val in #( 11092 *${as_nl}*) 11093 case $ac_var in #( 11094 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11095$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11096 esac 11097 case $ac_var in #( 11098 _ | IFS | as_nl) ;; #( 11099 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11100 *) { eval $ac_var=; unset $ac_var;} ;; 11101 esac ;; 11102 esac 11103 done 11104 11105 (set) 2>&1 | 11106 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11107 *${as_nl}ac_space=\ *) 11108 # `set' does not quote correctly, so add quotes: double-quote 11109 # substitution turns \\\\ into \\, and sed turns \\ into \. 11110 sed -n \ 11111 "s/'/'\\\\''/g; 11112 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11113 ;; #( 11114 *) 11115 # `set' quotes correctly as required by POSIX, so do not add quotes. 11116 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11117 ;; 11118 esac | 11119 sort 11120) | 11121 sed ' 11122 /^ac_cv_env_/b end 11123 t clear 11124 :clear 11125 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11126 t end 11127 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11128 :end' >>confcache 11129if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11130 if test -w "$cache_file"; then 11131 if test "x$cache_file" != "x/dev/null"; then 11132 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11133$as_echo "$as_me: updating cache $cache_file" >&6;} 11134 if test ! -f "$cache_file" || test -h "$cache_file"; then 11135 cat confcache >"$cache_file" 11136 else 11137 case $cache_file in #( 11138 */* | ?:*) 11139 mv -f confcache "$cache_file"$$ && 11140 mv -f "$cache_file"$$ "$cache_file" ;; #( 11141 *) 11142 mv -f confcache "$cache_file" ;; 11143 esac 11144 fi 11145 fi 11146 else 11147 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11148$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11149 fi 11150fi 11151rm -f confcache 11152 11153test "x$prefix" = xNONE && prefix=$ac_default_prefix 11154# Let make expand exec_prefix. 11155test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11156 11157DEFS=-DHAVE_CONFIG_H 11158 11159ac_libobjs= 11160ac_ltlibobjs= 11161U= 11162for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11163 # 1. Remove the extension, and $U if already installed. 11164 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11165 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11166 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11167 # will be set to the directory where LIBOBJS objects are built. 11168 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11169 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11170done 11171LIBOBJS=$ac_libobjs 11172 11173LTLIBOBJS=$ac_ltlibobjs 11174 11175 11176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11177$as_echo_n "checking that generated files are newer than configure... " >&6; } 11178 if test -n "$am_sleep_pid"; then 11179 # Hide warnings about reused PIDs. 11180 wait $am_sleep_pid 2>/dev/null 11181 fi 11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 11183$as_echo "done" >&6; } 11184if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11185 as_fn_error $? "conditional \"AMDEP\" was never defined. 11186Usually this means the macro was only invoked conditionally." "$LINENO" 5 11187fi 11188if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11189 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11190Usually this means the macro was only invoked conditionally." "$LINENO" 5 11191fi 11192 if test -n "$EXEEXT"; then 11193 am__EXEEXT_TRUE= 11194 am__EXEEXT_FALSE='#' 11195else 11196 am__EXEEXT_TRUE='#' 11197 am__EXEEXT_FALSE= 11198fi 11199 11200 11201: "${CONFIG_STATUS=./config.status}" 11202ac_write_fail=0 11203ac_clean_files_save=$ac_clean_files 11204ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11205{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11206$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11207as_write_fail=0 11208cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11209#! $SHELL 11210# Generated by $as_me. 11211# Run this file to recreate the current configuration. 11212# Compiler output produced by configure, useful for debugging 11213# configure, is in config.log if it exists. 11214 11215debug=false 11216ac_cs_recheck=false 11217ac_cs_silent=false 11218 11219SHELL=\${CONFIG_SHELL-$SHELL} 11220export SHELL 11221_ASEOF 11222cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11223## -------------------- ## 11224## M4sh Initialization. ## 11225## -------------------- ## 11226 11227# Be more Bourne compatible 11228DUALCASE=1; export DUALCASE # for MKS sh 11229if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 11230 emulate sh 11231 NULLCMD=: 11232 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11233 # is contrary to our usage. Disable this feature. 11234 alias -g '${1+"$@"}'='"$@"' 11235 setopt NO_GLOB_SUBST 11236else 11237 case `(set -o) 2>/dev/null` in #( 11238 *posix*) : 11239 set -o posix ;; #( 11240 *) : 11241 ;; 11242esac 11243fi 11244 11245 11246as_nl=' 11247' 11248export as_nl 11249# Printing a long string crashes Solaris 7 /usr/bin/printf. 11250as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11251as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11252as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11253# Prefer a ksh shell builtin over an external printf program on Solaris, 11254# but without wasting forks for bash or zsh. 11255if test -z "$BASH_VERSION$ZSH_VERSION" \ 11256 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 11257 as_echo='print -r --' 11258 as_echo_n='print -rn --' 11259elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11260 as_echo='printf %s\n' 11261 as_echo_n='printf %s' 11262else 11263 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11264 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11265 as_echo_n='/usr/ucb/echo -n' 11266 else 11267 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11268 as_echo_n_body='eval 11269 arg=$1; 11270 case $arg in #( 11271 *"$as_nl"*) 11272 expr "X$arg" : "X\\(.*\\)$as_nl"; 11273 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11274 esac; 11275 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11276 ' 11277 export as_echo_n_body 11278 as_echo_n='sh -c $as_echo_n_body as_echo' 11279 fi 11280 export as_echo_body 11281 as_echo='sh -c $as_echo_body as_echo' 11282fi 11283 11284# The user is always right. 11285if test "${PATH_SEPARATOR+set}" != set; then 11286 PATH_SEPARATOR=: 11287 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11288 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11289 PATH_SEPARATOR=';' 11290 } 11291fi 11292 11293 11294# IFS 11295# We need space, tab and new line, in precisely that order. Quoting is 11296# there to prevent editors from complaining about space-tab. 11297# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11298# splitting by setting IFS to empty value.) 11299IFS=" "" $as_nl" 11300 11301# Find who we are. Look in the path if we contain no directory separator. 11302as_myself= 11303case $0 in #(( 11304 *[\\/]* ) as_myself=$0 ;; 11305 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11306for as_dir in $PATH 11307do 11308 IFS=$as_save_IFS 11309 test -z "$as_dir" && as_dir=. 11310 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11311 done 11312IFS=$as_save_IFS 11313 11314 ;; 11315esac 11316# We did not find ourselves, most probably we were run as `sh COMMAND' 11317# in which case we are not to be found in the path. 11318if test "x$as_myself" = x; then 11319 as_myself=$0 11320fi 11321if test ! -f "$as_myself"; then 11322 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11323 exit 1 11324fi 11325 11326# Unset variables that we do not need and which cause bugs (e.g. in 11327# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 11328# suppresses any "Segmentation fault" message there. '((' could 11329# trigger a bug in pdksh 5.2.14. 11330for as_var in BASH_ENV ENV MAIL MAILPATH 11331do eval test x\${$as_var+set} = xset \ 11332 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11333done 11334PS1='$ ' 11335PS2='> ' 11336PS4='+ ' 11337 11338# NLS nuisances. 11339LC_ALL=C 11340export LC_ALL 11341LANGUAGE=C 11342export LANGUAGE 11343 11344# CDPATH. 11345(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11346 11347 11348# as_fn_error STATUS ERROR [LINENO LOG_FD] 11349# ---------------------------------------- 11350# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11351# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11352# script with STATUS, using 1 if that was 0. 11353as_fn_error () 11354{ 11355 as_status=$1; test $as_status -eq 0 && as_status=1 11356 if test "$4"; then 11357 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11358 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11359 fi 11360 $as_echo "$as_me: error: $2" >&2 11361 as_fn_exit $as_status 11362} # as_fn_error 11363 11364 11365# as_fn_set_status STATUS 11366# ----------------------- 11367# Set $? to STATUS, without forking. 11368as_fn_set_status () 11369{ 11370 return $1 11371} # as_fn_set_status 11372 11373# as_fn_exit STATUS 11374# ----------------- 11375# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11376as_fn_exit () 11377{ 11378 set +e 11379 as_fn_set_status $1 11380 exit $1 11381} # as_fn_exit 11382 11383# as_fn_unset VAR 11384# --------------- 11385# Portably unset VAR. 11386as_fn_unset () 11387{ 11388 { eval $1=; unset $1;} 11389} 11390as_unset=as_fn_unset 11391# as_fn_append VAR VALUE 11392# ---------------------- 11393# Append the text in VALUE to the end of the definition contained in VAR. Take 11394# advantage of any shell optimizations that allow amortized linear growth over 11395# repeated appends, instead of the typical quadratic growth present in naive 11396# implementations. 11397if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11398 eval 'as_fn_append () 11399 { 11400 eval $1+=\$2 11401 }' 11402else 11403 as_fn_append () 11404 { 11405 eval $1=\$$1\$2 11406 } 11407fi # as_fn_append 11408 11409# as_fn_arith ARG... 11410# ------------------ 11411# Perform arithmetic evaluation on the ARGs, and store the result in the 11412# global $as_val. Take advantage of shells that can avoid forks. The arguments 11413# must be portable across $(()) and expr. 11414if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11415 eval 'as_fn_arith () 11416 { 11417 as_val=$(( $* )) 11418 }' 11419else 11420 as_fn_arith () 11421 { 11422 as_val=`expr "$@" || test $? -eq 1` 11423 } 11424fi # as_fn_arith 11425 11426 11427if expr a : '\(a\)' >/dev/null 2>&1 && 11428 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11429 as_expr=expr 11430else 11431 as_expr=false 11432fi 11433 11434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11435 as_basename=basename 11436else 11437 as_basename=false 11438fi 11439 11440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11441 as_dirname=dirname 11442else 11443 as_dirname=false 11444fi 11445 11446as_me=`$as_basename -- "$0" || 11447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11448 X"$0" : 'X\(//\)$' \| \ 11449 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11450$as_echo X/"$0" | 11451 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11452 s//\1/ 11453 q 11454 } 11455 /^X\/\(\/\/\)$/{ 11456 s//\1/ 11457 q 11458 } 11459 /^X\/\(\/\).*/{ 11460 s//\1/ 11461 q 11462 } 11463 s/.*/./; q'` 11464 11465# Avoid depending upon Character Ranges. 11466as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11468as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11469as_cr_digits='0123456789' 11470as_cr_alnum=$as_cr_Letters$as_cr_digits 11471 11472ECHO_C= ECHO_N= ECHO_T= 11473case `echo -n x` in #((((( 11474-n*) 11475 case `echo 'xy\c'` in 11476 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11477 xy) ECHO_C='\c';; 11478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11479 ECHO_T=' ';; 11480 esac;; 11481*) 11482 ECHO_N='-n';; 11483esac 11484 11485rm -f conf$$ conf$$.exe conf$$.file 11486if test -d conf$$.dir; then 11487 rm -f conf$$.dir/conf$$.file 11488else 11489 rm -f conf$$.dir 11490 mkdir conf$$.dir 2>/dev/null 11491fi 11492if (echo >conf$$.file) 2>/dev/null; then 11493 if ln -s conf$$.file conf$$ 2>/dev/null; then 11494 as_ln_s='ln -s' 11495 # ... but there are two gotchas: 11496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11498 # In both cases, we have to default to `cp -pR'. 11499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11500 as_ln_s='cp -pR' 11501 elif ln conf$$.file conf$$ 2>/dev/null; then 11502 as_ln_s=ln 11503 else 11504 as_ln_s='cp -pR' 11505 fi 11506else 11507 as_ln_s='cp -pR' 11508fi 11509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11510rmdir conf$$.dir 2>/dev/null 11511 11512 11513# as_fn_mkdir_p 11514# ------------- 11515# Create "$as_dir" as a directory, including parents if necessary. 11516as_fn_mkdir_p () 11517{ 11518 11519 case $as_dir in #( 11520 -*) as_dir=./$as_dir;; 11521 esac 11522 test -d "$as_dir" || eval $as_mkdir_p || { 11523 as_dirs= 11524 while :; do 11525 case $as_dir in #( 11526 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11527 *) as_qdir=$as_dir;; 11528 esac 11529 as_dirs="'$as_qdir' $as_dirs" 11530 as_dir=`$as_dirname -- "$as_dir" || 11531$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11532 X"$as_dir" : 'X\(//\)[^/]' \| \ 11533 X"$as_dir" : 'X\(//\)$' \| \ 11534 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11535$as_echo X"$as_dir" | 11536 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11537 s//\1/ 11538 q 11539 } 11540 /^X\(\/\/\)[^/].*/{ 11541 s//\1/ 11542 q 11543 } 11544 /^X\(\/\/\)$/{ 11545 s//\1/ 11546 q 11547 } 11548 /^X\(\/\).*/{ 11549 s//\1/ 11550 q 11551 } 11552 s/.*/./; q'` 11553 test -d "$as_dir" && break 11554 done 11555 test -z "$as_dirs" || eval "mkdir $as_dirs" 11556 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11557 11558 11559} # as_fn_mkdir_p 11560if mkdir -p . 2>/dev/null; then 11561 as_mkdir_p='mkdir -p "$as_dir"' 11562else 11563 test -d ./-p && rmdir ./-p 11564 as_mkdir_p=false 11565fi 11566 11567 11568# as_fn_executable_p FILE 11569# ----------------------- 11570# Test if FILE is an executable regular file. 11571as_fn_executable_p () 11572{ 11573 test -f "$1" && test -x "$1" 11574} # as_fn_executable_p 11575as_test_x='test -x' 11576as_executable_p=as_fn_executable_p 11577 11578# Sed expression to map a string onto a valid CPP name. 11579as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11580 11581# Sed expression to map a string onto a valid variable name. 11582as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11583 11584 11585exec 6>&1 11586## ----------------------------------- ## 11587## Main body of $CONFIG_STATUS script. ## 11588## ----------------------------------- ## 11589_ASEOF 11590test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11591 11592cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11593# Save the log message, to keep $0 and so on meaningful, and to 11594# report actual input values of CONFIG_FILES etc. instead of their 11595# values after options handling. 11596ac_log=" 11597This file was extended by xrdb $as_me 1.2.1, which was 11598generated by GNU Autoconf 2.69. Invocation command line was 11599 11600 CONFIG_FILES = $CONFIG_FILES 11601 CONFIG_HEADERS = $CONFIG_HEADERS 11602 CONFIG_LINKS = $CONFIG_LINKS 11603 CONFIG_COMMANDS = $CONFIG_COMMANDS 11604 $ $0 $@ 11605 11606on `(hostname || uname -n) 2>/dev/null | sed 1q` 11607" 11608 11609_ACEOF 11610 11611case $ac_config_files in *" 11612"*) set x $ac_config_files; shift; ac_config_files=$*;; 11613esac 11614 11615case $ac_config_headers in *" 11616"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11617esac 11618 11619 11620cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11621# Files that config.status was made for. 11622config_files="$ac_config_files" 11623config_headers="$ac_config_headers" 11624config_commands="$ac_config_commands" 11625 11626_ACEOF 11627 11628cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11629ac_cs_usage="\ 11630\`$as_me' instantiates files and other configuration actions 11631from templates according to the current configuration. Unless the files 11632and actions are specified as TAGs, all are instantiated by default. 11633 11634Usage: $0 [OPTION]... [TAG]... 11635 11636 -h, --help print this help, then exit 11637 -V, --version print version number and configuration settings, then exit 11638 --config print configuration, then exit 11639 -q, --quiet, --silent 11640 do not print progress messages 11641 -d, --debug don't remove temporary files 11642 --recheck update $as_me by reconfiguring in the same conditions 11643 --file=FILE[:TEMPLATE] 11644 instantiate the configuration file FILE 11645 --header=FILE[:TEMPLATE] 11646 instantiate the configuration header FILE 11647 11648Configuration files: 11649$config_files 11650 11651Configuration headers: 11652$config_headers 11653 11654Configuration commands: 11655$config_commands 11656 11657Report bugs to <https://gitlab.freedesktop.org/xorg/app/xrdb/issues>." 11658 11659_ACEOF 11660cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11661ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11662ac_cs_version="\\ 11663xrdb config.status 1.2.1 11664configured by $0, generated by GNU Autoconf 2.69, 11665 with options \\"\$ac_cs_config\\" 11666 11667Copyright (C) 2012 Free Software Foundation, Inc. 11668This config.status script is free software; the Free Software Foundation 11669gives unlimited permission to copy, distribute and modify it." 11670 11671ac_pwd='$ac_pwd' 11672srcdir='$srcdir' 11673INSTALL='$INSTALL' 11674MKDIR_P='$MKDIR_P' 11675AWK='$AWK' 11676test -n "\$AWK" || AWK=awk 11677_ACEOF 11678 11679cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11680# The default lists apply if the user does not specify any file. 11681ac_need_defaults=: 11682while test $# != 0 11683do 11684 case $1 in 11685 --*=?*) 11686 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11687 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11688 ac_shift=: 11689 ;; 11690 --*=) 11691 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11692 ac_optarg= 11693 ac_shift=: 11694 ;; 11695 *) 11696 ac_option=$1 11697 ac_optarg=$2 11698 ac_shift=shift 11699 ;; 11700 esac 11701 11702 case $ac_option in 11703 # Handling of the options. 11704 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11705 ac_cs_recheck=: ;; 11706 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11707 $as_echo "$ac_cs_version"; exit ;; 11708 --config | --confi | --conf | --con | --co | --c ) 11709 $as_echo "$ac_cs_config"; exit ;; 11710 --debug | --debu | --deb | --de | --d | -d ) 11711 debug=: ;; 11712 --file | --fil | --fi | --f ) 11713 $ac_shift 11714 case $ac_optarg in 11715 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11716 '') as_fn_error $? "missing file argument" ;; 11717 esac 11718 as_fn_append CONFIG_FILES " '$ac_optarg'" 11719 ac_need_defaults=false;; 11720 --header | --heade | --head | --hea ) 11721 $ac_shift 11722 case $ac_optarg in 11723 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11724 esac 11725 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11726 ac_need_defaults=false;; 11727 --he | --h) 11728 # Conflict between --help and --header 11729 as_fn_error $? "ambiguous option: \`$1' 11730Try \`$0 --help' for more information.";; 11731 --help | --hel | -h ) 11732 $as_echo "$ac_cs_usage"; exit ;; 11733 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11734 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11735 ac_cs_silent=: ;; 11736 11737 # This is an error. 11738 -*) as_fn_error $? "unrecognized option: \`$1' 11739Try \`$0 --help' for more information." ;; 11740 11741 *) as_fn_append ac_config_targets " $1" 11742 ac_need_defaults=false ;; 11743 11744 esac 11745 shift 11746done 11747 11748ac_configure_extra_args= 11749 11750if $ac_cs_silent; then 11751 exec 6>/dev/null 11752 ac_configure_extra_args="$ac_configure_extra_args --silent" 11753fi 11754 11755_ACEOF 11756cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11757if \$ac_cs_recheck; then 11758 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11759 shift 11760 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11761 CONFIG_SHELL='$SHELL' 11762 export CONFIG_SHELL 11763 exec "\$@" 11764fi 11765 11766_ACEOF 11767cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11768exec 5>>config.log 11769{ 11770 echo 11771 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11772## Running $as_me. ## 11773_ASBOX 11774 $as_echo "$ac_log" 11775} >&5 11776 11777_ACEOF 11778cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11779# 11780# INIT-COMMANDS 11781# 11782AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 11783 11784_ACEOF 11785 11786cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11787 11788# Handling of arguments. 11789for ac_config_target in $ac_config_targets 11790do 11791 case $ac_config_target in 11792 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11793 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11794 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11795 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 11796 11797 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11798 esac 11799done 11800 11801 11802# If the user did not use the arguments to specify the items to instantiate, 11803# then the envvar interface is used. Set only those that are not. 11804# We use the long form for the default assignment because of an extremely 11805# bizarre bug on SunOS 4.1.3. 11806if $ac_need_defaults; then 11807 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11808 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11809 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11810fi 11811 11812# Have a temporary directory for convenience. Make it in the build tree 11813# simply because there is no reason against having it here, and in addition, 11814# creating and moving files from /tmp can sometimes cause problems. 11815# Hook for its removal unless debugging. 11816# Note that there is a small window in which the directory will not be cleaned: 11817# after its creation but before its name has been assigned to `$tmp'. 11818$debug || 11819{ 11820 tmp= ac_tmp= 11821 trap 'exit_status=$? 11822 : "${ac_tmp:=$tmp}" 11823 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11824' 0 11825 trap 'as_fn_exit 1' 1 2 13 15 11826} 11827# Create a (secure) tmp directory for tmp files. 11828 11829{ 11830 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11831 test -d "$tmp" 11832} || 11833{ 11834 tmp=./conf$$-$RANDOM 11835 (umask 077 && mkdir "$tmp") 11836} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11837ac_tmp=$tmp 11838 11839# Set up the scripts for CONFIG_FILES section. 11840# No need to generate them if there are no CONFIG_FILES. 11841# This happens for instance with `./config.status config.h'. 11842if test -n "$CONFIG_FILES"; then 11843 11844 11845ac_cr=`echo X | tr X '\015'` 11846# On cygwin, bash can eat \r inside `` if the user requested igncr. 11847# But we know of no other shell where ac_cr would be empty at this 11848# point, so we can use a bashism as a fallback. 11849if test "x$ac_cr" = x; then 11850 eval ac_cr=\$\'\\r\' 11851fi 11852ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11853if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11854 ac_cs_awk_cr='\\r' 11855else 11856 ac_cs_awk_cr=$ac_cr 11857fi 11858 11859echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 11860_ACEOF 11861 11862 11863{ 11864 echo "cat >conf$$subs.awk <<_ACEOF" && 11865 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11866 echo "_ACEOF" 11867} >conf$$subs.sh || 11868 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11869ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11870ac_delim='%!_!# ' 11871for ac_last_try in false false false false false :; do 11872 . ./conf$$subs.sh || 11873 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11874 11875 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 11876 if test $ac_delim_n = $ac_delim_num; then 11877 break 11878 elif $ac_last_try; then 11879 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11880 else 11881 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11882 fi 11883done 11884rm -f conf$$subs.sh 11885 11886cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11887cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 11888_ACEOF 11889sed -n ' 11890h 11891s/^/S["/; s/!.*/"]=/ 11892p 11893g 11894s/^[^!]*!// 11895:repl 11896t repl 11897s/'"$ac_delim"'$// 11898t delim 11899:nl 11900h 11901s/\(.\{148\}\)..*/\1/ 11902t more1 11903s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 11904p 11905n 11906b repl 11907:more1 11908s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11909p 11910g 11911s/.\{148\}// 11912t nl 11913:delim 11914h 11915s/\(.\{148\}\)..*/\1/ 11916t more2 11917s/["\\]/\\&/g; s/^/"/; s/$/"/ 11918p 11919b 11920:more2 11921s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11922p 11923g 11924s/.\{148\}// 11925t delim 11926' <conf$$subs.awk | sed ' 11927/^[^""]/{ 11928 N 11929 s/\n// 11930} 11931' >>$CONFIG_STATUS || ac_write_fail=1 11932rm -f conf$$subs.awk 11933cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11934_ACAWK 11935cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 11936 for (key in S) S_is_set[key] = 1 11937 FS = "" 11938 11939} 11940{ 11941 line = $ 0 11942 nfields = split(line, field, "@") 11943 substed = 0 11944 len = length(field[1]) 11945 for (i = 2; i < nfields; i++) { 11946 key = field[i] 11947 keylen = length(key) 11948 if (S_is_set[key]) { 11949 value = S[key] 11950 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 11951 len += length(value) + length(field[++i]) 11952 substed = 1 11953 } else 11954 len += 1 + keylen 11955 } 11956 11957 print line 11958} 11959 11960_ACAWK 11961_ACEOF 11962cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11963if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 11964 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 11965else 11966 cat 11967fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 11968 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 11969_ACEOF 11970 11971# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 11972# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 11973# trailing colons and then remove the whole line if VPATH becomes empty 11974# (actually we leave an empty line to preserve line numbers). 11975if test "x$srcdir" = x.; then 11976 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 11977h 11978s/// 11979s/^/:/ 11980s/[ ]*$/:/ 11981s/:\$(srcdir):/:/g 11982s/:\${srcdir}:/:/g 11983s/:@srcdir@:/:/g 11984s/^:*// 11985s/:*$// 11986x 11987s/\(=[ ]*\).*/\1/ 11988G 11989s/\n// 11990s/^[^=]*=[ ]*$// 11991}' 11992fi 11993 11994cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11995fi # test -n "$CONFIG_FILES" 11996 11997# Set up the scripts for CONFIG_HEADERS section. 11998# No need to generate them if there are no CONFIG_HEADERS. 11999# This happens for instance with `./config.status Makefile'. 12000if test -n "$CONFIG_HEADERS"; then 12001cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12002BEGIN { 12003_ACEOF 12004 12005# Transform confdefs.h into an awk script `defines.awk', embedded as 12006# here-document in config.status, that substitutes the proper values into 12007# config.h.in to produce config.h. 12008 12009# Create a delimiter string that does not exist in confdefs.h, to ease 12010# handling of long lines. 12011ac_delim='%!_!# ' 12012for ac_last_try in false false :; do 12013 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12014 if test -z "$ac_tt"; then 12015 break 12016 elif $ac_last_try; then 12017 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12018 else 12019 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12020 fi 12021done 12022 12023# For the awk script, D is an array of macro values keyed by name, 12024# likewise P contains macro parameters if any. Preserve backslash 12025# newline sequences. 12026 12027ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12028sed -n ' 12029s/.\{148\}/&'"$ac_delim"'/g 12030t rset 12031:rset 12032s/^[ ]*#[ ]*define[ ][ ]*/ / 12033t def 12034d 12035:def 12036s/\\$// 12037t bsnl 12038s/["\\]/\\&/g 12039s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12040D["\1"]=" \3"/p 12041s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12042d 12043:bsnl 12044s/["\\]/\\&/g 12045s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12046D["\1"]=" \3\\\\\\n"\\/p 12047t cont 12048s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12049t cont 12050d 12051:cont 12052n 12053s/.\{148\}/&'"$ac_delim"'/g 12054t clear 12055:clear 12056s/\\$// 12057t bsnlc 12058s/["\\]/\\&/g; s/^/"/; s/$/"/p 12059d 12060:bsnlc 12061s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12062b cont 12063' <confdefs.h | sed ' 12064s/'"$ac_delim"'/"\\\ 12065"/g' >>$CONFIG_STATUS || ac_write_fail=1 12066 12067cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12068 for (key in D) D_is_set[key] = 1 12069 FS = "" 12070} 12071/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12072 line = \$ 0 12073 split(line, arg, " ") 12074 if (arg[1] == "#") { 12075 defundef = arg[2] 12076 mac1 = arg[3] 12077 } else { 12078 defundef = substr(arg[1], 2) 12079 mac1 = arg[2] 12080 } 12081 split(mac1, mac2, "(") #) 12082 macro = mac2[1] 12083 prefix = substr(line, 1, index(line, defundef) - 1) 12084 if (D_is_set[macro]) { 12085 # Preserve the white space surrounding the "#". 12086 print prefix "define", macro P[macro] D[macro] 12087 next 12088 } else { 12089 # Replace #undef with comments. This is necessary, for example, 12090 # in the case of _POSIX_SOURCE, which is predefined and required 12091 # on some systems where configure will not decide to define it. 12092 if (defundef == "undef") { 12093 print "/*", prefix defundef, macro, "*/" 12094 next 12095 } 12096 } 12097} 12098{ print } 12099_ACAWK 12100_ACEOF 12101cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12102 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12103fi # test -n "$CONFIG_HEADERS" 12104 12105 12106eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12107shift 12108for ac_tag 12109do 12110 case $ac_tag in 12111 :[FHLC]) ac_mode=$ac_tag; continue;; 12112 esac 12113 case $ac_mode$ac_tag in 12114 :[FHL]*:*);; 12115 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12116 :[FH]-) ac_tag=-:-;; 12117 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12118 esac 12119 ac_save_IFS=$IFS 12120 IFS=: 12121 set x $ac_tag 12122 IFS=$ac_save_IFS 12123 shift 12124 ac_file=$1 12125 shift 12126 12127 case $ac_mode in 12128 :L) ac_source=$1;; 12129 :[FH]) 12130 ac_file_inputs= 12131 for ac_f 12132 do 12133 case $ac_f in 12134 -) ac_f="$ac_tmp/stdin";; 12135 *) # Look for the file first in the build tree, then in the source tree 12136 # (if the path is not absolute). The absolute path cannot be DOS-style, 12137 # because $ac_f cannot contain `:'. 12138 test -f "$ac_f" || 12139 case $ac_f in 12140 [\\/$]*) false;; 12141 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12142 esac || 12143 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12144 esac 12145 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12146 as_fn_append ac_file_inputs " '$ac_f'" 12147 done 12148 12149 # Let's still pretend it is `configure' which instantiates (i.e., don't 12150 # use $as_me), people would be surprised to read: 12151 # /* config.h. Generated by config.status. */ 12152 configure_input='Generated from '` 12153 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12154 `' by configure.' 12155 if test x"$ac_file" != x-; then 12156 configure_input="$ac_file. $configure_input" 12157 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12158$as_echo "$as_me: creating $ac_file" >&6;} 12159 fi 12160 # Neutralize special characters interpreted by sed in replacement strings. 12161 case $configure_input in #( 12162 *\&* | *\|* | *\\* ) 12163 ac_sed_conf_input=`$as_echo "$configure_input" | 12164 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12165 *) ac_sed_conf_input=$configure_input;; 12166 esac 12167 12168 case $ac_tag in 12169 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12170 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12171 esac 12172 ;; 12173 esac 12174 12175 ac_dir=`$as_dirname -- "$ac_file" || 12176$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12177 X"$ac_file" : 'X\(//\)[^/]' \| \ 12178 X"$ac_file" : 'X\(//\)$' \| \ 12179 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12180$as_echo X"$ac_file" | 12181 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12182 s//\1/ 12183 q 12184 } 12185 /^X\(\/\/\)[^/].*/{ 12186 s//\1/ 12187 q 12188 } 12189 /^X\(\/\/\)$/{ 12190 s//\1/ 12191 q 12192 } 12193 /^X\(\/\).*/{ 12194 s//\1/ 12195 q 12196 } 12197 s/.*/./; q'` 12198 as_dir="$ac_dir"; as_fn_mkdir_p 12199 ac_builddir=. 12200 12201case "$ac_dir" in 12202.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12203*) 12204 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 12205 # A ".." for each directory in $ac_dir_suffix. 12206 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12207 case $ac_top_builddir_sub in 12208 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12209 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12210 esac ;; 12211esac 12212ac_abs_top_builddir=$ac_pwd 12213ac_abs_builddir=$ac_pwd$ac_dir_suffix 12214# for backward compatibility: 12215ac_top_builddir=$ac_top_build_prefix 12216 12217case $srcdir in 12218 .) # We are building in place. 12219 ac_srcdir=. 12220 ac_top_srcdir=$ac_top_builddir_sub 12221 ac_abs_top_srcdir=$ac_pwd ;; 12222 [\\/]* | ?:[\\/]* ) # Absolute name. 12223 ac_srcdir=$srcdir$ac_dir_suffix; 12224 ac_top_srcdir=$srcdir 12225 ac_abs_top_srcdir=$srcdir ;; 12226 *) # Relative name. 12227 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12228 ac_top_srcdir=$ac_top_build_prefix$srcdir 12229 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12230esac 12231ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12232 12233 12234 case $ac_mode in 12235 :F) 12236 # 12237 # CONFIG_FILE 12238 # 12239 12240 case $INSTALL in 12241 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12242 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12243 esac 12244 ac_MKDIR_P=$MKDIR_P 12245 case $MKDIR_P in 12246 [\\/$]* | ?:[\\/]* ) ;; 12247 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12248 esac 12249_ACEOF 12250 12251cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12252# If the template does not know about datarootdir, expand it. 12253# FIXME: This hack should be removed a few years after 2.60. 12254ac_datarootdir_hack=; ac_datarootdir_seen= 12255ac_sed_dataroot=' 12256/datarootdir/ { 12257 p 12258 q 12259} 12260/@datadir@/p 12261/@docdir@/p 12262/@infodir@/p 12263/@localedir@/p 12264/@mandir@/p' 12265case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12266*datarootdir*) ac_datarootdir_seen=yes;; 12267*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12269$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12270_ACEOF 12271cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12272 ac_datarootdir_hack=' 12273 s&@datadir@&$datadir&g 12274 s&@docdir@&$docdir&g 12275 s&@infodir@&$infodir&g 12276 s&@localedir@&$localedir&g 12277 s&@mandir@&$mandir&g 12278 s&\\\${datarootdir}&$datarootdir&g' ;; 12279esac 12280_ACEOF 12281 12282# Neutralize VPATH when `$srcdir' = `.'. 12283# Shell code in configure.ac might set extrasub. 12284# FIXME: do we really want to maintain this feature? 12285cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12286ac_sed_extra="$ac_vpsub 12287$extrasub 12288_ACEOF 12289cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12290:t 12291/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12292s|@configure_input@|$ac_sed_conf_input|;t t 12293s&@top_builddir@&$ac_top_builddir_sub&;t t 12294s&@top_build_prefix@&$ac_top_build_prefix&;t t 12295s&@srcdir@&$ac_srcdir&;t t 12296s&@abs_srcdir@&$ac_abs_srcdir&;t t 12297s&@top_srcdir@&$ac_top_srcdir&;t t 12298s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12299s&@builddir@&$ac_builddir&;t t 12300s&@abs_builddir@&$ac_abs_builddir&;t t 12301s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12302s&@INSTALL@&$ac_INSTALL&;t t 12303s&@MKDIR_P@&$ac_MKDIR_P&;t t 12304$ac_datarootdir_hack 12305" 12306eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12307 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12308 12309test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12310 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12311 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12312 "$ac_tmp/out"`; test -z "$ac_out"; } && 12313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12314which seems to be undefined. Please make sure it is defined" >&5 12315$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12316which seems to be undefined. Please make sure it is defined" >&2;} 12317 12318 rm -f "$ac_tmp/stdin" 12319 case $ac_file in 12320 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12321 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12322 esac \ 12323 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12324 ;; 12325 :H) 12326 # 12327 # CONFIG_HEADER 12328 # 12329 if test x"$ac_file" != x-; then 12330 { 12331 $as_echo "/* $configure_input */" \ 12332 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12333 } >"$ac_tmp/config.h" \ 12334 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12335 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12336 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12337$as_echo "$as_me: $ac_file is unchanged" >&6;} 12338 else 12339 rm -f "$ac_file" 12340 mv "$ac_tmp/config.h" "$ac_file" \ 12341 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12342 fi 12343 else 12344 $as_echo "/* $configure_input */" \ 12345 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12346 || as_fn_error $? "could not create -" "$LINENO" 5 12347 fi 12348# Compute "$ac_file"'s index in $config_headers. 12349_am_arg="$ac_file" 12350_am_stamp_count=1 12351for _am_header in $config_headers :; do 12352 case $_am_header in 12353 $_am_arg | $_am_arg:* ) 12354 break ;; 12355 * ) 12356 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12357 esac 12358done 12359echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12360$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12361 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12362 X"$_am_arg" : 'X\(//\)$' \| \ 12363 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12364$as_echo X"$_am_arg" | 12365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12366 s//\1/ 12367 q 12368 } 12369 /^X\(\/\/\)[^/].*/{ 12370 s//\1/ 12371 q 12372 } 12373 /^X\(\/\/\)$/{ 12374 s//\1/ 12375 q 12376 } 12377 /^X\(\/\).*/{ 12378 s//\1/ 12379 q 12380 } 12381 s/.*/./; q'`/stamp-h$_am_stamp_count 12382 ;; 12383 12384 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12385$as_echo "$as_me: executing $ac_file commands" >&6;} 12386 ;; 12387 esac 12388 12389 12390 case $ac_file$ac_mode in 12391 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12392 # Older Autoconf quotes --file arguments for eval, but not when files 12393 # are listed without --file. Let's play safe and only enable the eval 12394 # if we detect the quoting. 12395 # TODO: see whether this extra hack can be removed once we start 12396 # requiring Autoconf 2.70 or later. 12397 case $CONFIG_FILES in #( 12398 *\'*) : 12399 eval set x "$CONFIG_FILES" ;; #( 12400 *) : 12401 set x $CONFIG_FILES ;; #( 12402 *) : 12403 ;; 12404esac 12405 shift 12406 # Used to flag and report bootstrapping failures. 12407 am_rc=0 12408 for am_mf 12409 do 12410 # Strip MF so we end up with the name of the file. 12411 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 12412 # Check whether this is an Automake generated Makefile which includes 12413 # dependency-tracking related rules and includes. 12414 # Grep'ing the whole file directly is not great: AIX grep has a line 12415 # limit of 2048, but all sed's we know have understand at least 4000. 12416 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 12417 || continue 12418 am_dirpart=`$as_dirname -- "$am_mf" || 12419$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12420 X"$am_mf" : 'X\(//\)[^/]' \| \ 12421 X"$am_mf" : 'X\(//\)$' \| \ 12422 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12423$as_echo X"$am_mf" | 12424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12425 s//\1/ 12426 q 12427 } 12428 /^X\(\/\/\)[^/].*/{ 12429 s//\1/ 12430 q 12431 } 12432 /^X\(\/\/\)$/{ 12433 s//\1/ 12434 q 12435 } 12436 /^X\(\/\).*/{ 12437 s//\1/ 12438 q 12439 } 12440 s/.*/./; q'` 12441 am_filepart=`$as_basename -- "$am_mf" || 12442$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 12443 X"$am_mf" : 'X\(//\)$' \| \ 12444 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12445$as_echo X/"$am_mf" | 12446 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12447 s//\1/ 12448 q 12449 } 12450 /^X\/\(\/\/\)$/{ 12451 s//\1/ 12452 q 12453 } 12454 /^X\/\(\/\).*/{ 12455 s//\1/ 12456 q 12457 } 12458 s/.*/./; q'` 12459 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 12460 && sed -e '/# am--include-marker/d' "$am_filepart" \ 12461 | $MAKE -f - am--depfiles" >&5 12462 (cd "$am_dirpart" \ 12463 && sed -e '/# am--include-marker/d' "$am_filepart" \ 12464 | $MAKE -f - am--depfiles) >&5 2>&5 12465 ac_status=$? 12466 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12467 (exit $ac_status); } || am_rc=$? 12468 done 12469 if test $am_rc -ne 0; then 12470 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12471$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12472as_fn_error $? "Something went wrong bootstrapping makefile fragments 12473 for automatic dependency tracking. Try re-running configure with the 12474 '--disable-dependency-tracking' option to at least be able to build 12475 the package (albeit without support for automatic dependency tracking). 12476See \`config.log' for more details" "$LINENO" 5; } 12477 fi 12478 { am_dirpart=; unset am_dirpart;} 12479 { am_filepart=; unset am_filepart;} 12480 { am_mf=; unset am_mf;} 12481 { am_rc=; unset am_rc;} 12482 rm -f conftest-deps.mk 12483} 12484 ;; 12485 12486 esac 12487done # for ac_tag 12488 12489 12490as_fn_exit 0 12491_ACEOF 12492ac_clean_files=$ac_clean_files_save 12493 12494test $ac_write_fail = 0 || 12495 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12496 12497 12498# configure is writing to config.log, and then calls config.status. 12499# config.status does its own redirection, appending to config.log. 12500# Unfortunately, on DOS this fails, as config.log is still kept open 12501# by configure, so config.status won't be able to write to it; its 12502# output is simply discarded. So we exec the FD to /dev/null, 12503# effectively closing config.log, so it can be properly (re)opened and 12504# appended to by config.status. When coming back to configure, we 12505# need to make the FD available again. 12506if test "$no_create" != yes; then 12507 ac_cs_success=: 12508 ac_config_status_args= 12509 test "$silent" = yes && 12510 ac_config_status_args="$ac_config_status_args --quiet" 12511 exec 5>/dev/null 12512 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12513 exec 5>>config.log 12514 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12515 # would make configure fail if this is the last instruction. 12516 $ac_cs_success || as_fn_exit 1 12517fi 12518if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12520$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12521fi 12522 12523