configure revision f126e068
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for xrdb 1.1.0. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10# Foundation, Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94as_myself= 95case $0 in #(( 96 *[\\/]* ) as_myself=$0 ;; 97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98for as_dir in $PATH 99do 100 IFS=$as_save_IFS 101 test -z "$as_dir" && as_dir=. 102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103 done 104IFS=$as_save_IFS 105 106 ;; 107esac 108# We did not find ourselves, most probably we were run as `sh COMMAND' 109# in which case we are not to be found in the path. 110if test "x$as_myself" = x; then 111 as_myself=$0 112fi 113if test ! -f "$as_myself"; then 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115 exit 1 116fi 117 118# Unset variables that we do not need and which cause bugs (e.g. in 119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120# suppresses any "Segmentation fault" message there. '((' could 121# trigger a bug in pdksh 5.2.14. 122for as_var in BASH_ENV ENV MAIL MAILPATH 123do eval test x\${$as_var+set} = xset \ 124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# CDPATH. 137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138 139if test "x$CONFIG_SHELL" = x; then 140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141 emulate sh 142 NULLCMD=: 143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 144 # is contrary to our usage. Disable this feature. 145 alias -g '\${1+\"\$@\"}'='\"\$@\"' 146 setopt NO_GLOB_SUBST 147else 148 case \`(set -o) 2>/dev/null\` in #( 149 *posix*) : 150 set -o posix ;; #( 151 *) : 152 ;; 153esac 154fi 155" 156 as_required="as_fn_return () { (exit \$1); } 157as_fn_success () { as_fn_return 0; } 158as_fn_failure () { as_fn_return 1; } 159as_fn_ret_success () { return 0; } 160as_fn_ret_failure () { return 1; } 161 162exitcode=0 163as_fn_success || { exitcode=1; echo as_fn_success failed.; } 164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 168 169else 170 exitcode=1; echo positional parameters were not saved. 171fi 172test x\$exitcode = x0 || exit 1" 173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 177test \$(( 1 + 1 )) = 2 || exit 1" 178 if (eval "$as_required") 2>/dev/null; then : 179 as_have_required=yes 180else 181 as_have_required=no 182fi 183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 184 185else 186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 187as_found=false 188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 189do 190 IFS=$as_save_IFS 191 test -z "$as_dir" && as_dir=. 192 as_found=: 193 case $as_dir in #( 194 /*) 195 for as_base in sh bash ksh sh5; do 196 # Try only shells that exist, to save several forks. 197 as_shell=$as_dir/$as_base 198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 200 CONFIG_SHELL=$as_shell as_have_required=yes 201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 202 break 2 203fi 204fi 205 done;; 206 esac 207 as_found=false 208done 209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 211 CONFIG_SHELL=$SHELL as_have_required=yes 212fi; } 213IFS=$as_save_IFS 214 215 216 if test "x$CONFIG_SHELL" != x; then : 217 # We cannot yet assume a decent shell, so we have to provide a 218 # neutralization value for shells without unset; and this also 219 # works around shells that cannot unset nonexistent variables. 220 # Preserve -v and -x to the replacement shell. 221 BASH_ENV=/dev/null 222 ENV=/dev/null 223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 224 export CONFIG_SHELL 225 case $- in # (((( 226 *v*x* | *x*v* ) as_opts=-vx ;; 227 *v* ) as_opts=-v ;; 228 *x* ) as_opts=-x ;; 229 * ) as_opts= ;; 230 esac 231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 232fi 233 234 if test x$as_have_required = xno; then : 235 $as_echo "$0: This script requires a shell more modern than all" 236 $as_echo "$0: the shells that I found on your system." 237 if test x${ZSH_VERSION+set} = xset ; then 238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 239 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 240 else 241 $as_echo "$0: Please tell bug-autoconf@gnu.org and 242$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 243$0: about your system, including any error possibly output 244$0: before this message. Then install a modern shell, or 245$0: manually run the script under such a shell if you do 246$0: have one." 247 fi 248 exit 1 249fi 250fi 251fi 252SHELL=${CONFIG_SHELL-/bin/sh} 253export SHELL 254# Unset more variables known to interfere with behavior of common tools. 255CLICOLOR_FORCE= GREP_OPTIONS= 256unset CLICOLOR_FORCE GREP_OPTIONS 257 258## --------------------- ## 259## M4sh Shell Functions. ## 260## --------------------- ## 261# as_fn_unset VAR 262# --------------- 263# Portably unset VAR. 264as_fn_unset () 265{ 266 { eval $1=; unset $1;} 267} 268as_unset=as_fn_unset 269 270# as_fn_set_status STATUS 271# ----------------------- 272# Set $? to STATUS, without forking. 273as_fn_set_status () 274{ 275 return $1 276} # as_fn_set_status 277 278# as_fn_exit STATUS 279# ----------------- 280# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 281as_fn_exit () 282{ 283 set +e 284 as_fn_set_status $1 285 exit $1 286} # as_fn_exit 287 288# as_fn_mkdir_p 289# ------------- 290# Create "$as_dir" as a directory, including parents if necessary. 291as_fn_mkdir_p () 292{ 293 294 case $as_dir in #( 295 -*) as_dir=./$as_dir;; 296 esac 297 test -d "$as_dir" || eval $as_mkdir_p || { 298 as_dirs= 299 while :; do 300 case $as_dir in #( 301 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 302 *) as_qdir=$as_dir;; 303 esac 304 as_dirs="'$as_qdir' $as_dirs" 305 as_dir=`$as_dirname -- "$as_dir" || 306$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 307 X"$as_dir" : 'X\(//\)[^/]' \| \ 308 X"$as_dir" : 'X\(//\)$' \| \ 309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 310$as_echo X"$as_dir" | 311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 312 s//\1/ 313 q 314 } 315 /^X\(\/\/\)[^/].*/{ 316 s//\1/ 317 q 318 } 319 /^X\(\/\/\)$/{ 320 s//\1/ 321 q 322 } 323 /^X\(\/\).*/{ 324 s//\1/ 325 q 326 } 327 s/.*/./; q'` 328 test -d "$as_dir" && break 329 done 330 test -z "$as_dirs" || eval "mkdir $as_dirs" 331 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 332 333 334} # as_fn_mkdir_p 335# as_fn_append VAR VALUE 336# ---------------------- 337# Append the text in VALUE to the end of the definition contained in VAR. Take 338# advantage of any shell optimizations that allow amortized linear growth over 339# repeated appends, instead of the typical quadratic growth present in naive 340# implementations. 341if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 342 eval 'as_fn_append () 343 { 344 eval $1+=\$2 345 }' 346else 347 as_fn_append () 348 { 349 eval $1=\$$1\$2 350 } 351fi # as_fn_append 352 353# as_fn_arith ARG... 354# ------------------ 355# Perform arithmetic evaluation on the ARGs, and store the result in the 356# global $as_val. Take advantage of shells that can avoid forks. The arguments 357# must be portable across $(()) and expr. 358if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 359 eval 'as_fn_arith () 360 { 361 as_val=$(( $* )) 362 }' 363else 364 as_fn_arith () 365 { 366 as_val=`expr "$@" || test $? -eq 1` 367 } 368fi # as_fn_arith 369 370 371# as_fn_error STATUS ERROR [LINENO LOG_FD] 372# ---------------------------------------- 373# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 374# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 375# script with STATUS, using 1 if that was 0. 376as_fn_error () 377{ 378 as_status=$1; test $as_status -eq 0 && as_status=1 379 if test "$4"; then 380 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 381 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 382 fi 383 $as_echo "$as_me: error: $2" >&2 384 as_fn_exit $as_status 385} # as_fn_error 386 387if expr a : '\(a\)' >/dev/null 2>&1 && 388 test "X`expr 00001 : '.*\(...\)'`" = X001; then 389 as_expr=expr 390else 391 as_expr=false 392fi 393 394if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 395 as_basename=basename 396else 397 as_basename=false 398fi 399 400if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 401 as_dirname=dirname 402else 403 as_dirname=false 404fi 405 406as_me=`$as_basename -- "$0" || 407$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 408 X"$0" : 'X\(//\)$' \| \ 409 X"$0" : 'X\(/\)' \| . 2>/dev/null || 410$as_echo X/"$0" | 411 sed '/^.*\/\([^/][^/]*\)\/*$/{ 412 s//\1/ 413 q 414 } 415 /^X\/\(\/\/\)$/{ 416 s//\1/ 417 q 418 } 419 /^X\/\(\/\).*/{ 420 s//\1/ 421 q 422 } 423 s/.*/./; q'` 424 425# Avoid depending upon Character Ranges. 426as_cr_letters='abcdefghijklmnopqrstuvwxyz' 427as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 428as_cr_Letters=$as_cr_letters$as_cr_LETTERS 429as_cr_digits='0123456789' 430as_cr_alnum=$as_cr_Letters$as_cr_digits 431 432 433 as_lineno_1=$LINENO as_lineno_1a=$LINENO 434 as_lineno_2=$LINENO as_lineno_2a=$LINENO 435 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 436 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 437 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 438 sed -n ' 439 p 440 /[$]LINENO/= 441 ' <$as_myself | 442 sed ' 443 s/[$]LINENO.*/&-/ 444 t lineno 445 b 446 :lineno 447 N 448 :loop 449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 450 t loop 451 s/-\n.*// 452 ' >$as_me.lineno && 453 chmod +x "$as_me.lineno" || 454 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 455 456 # Don't try to exec as it changes $[0], causing all sort of problems 457 # (the dirname of $[0] is not the place where we might find the 458 # original and so on. Autoconf is especially sensitive to this). 459 . "./$as_me.lineno" 460 # Exit status is that of the last command. 461 exit 462} 463 464ECHO_C= ECHO_N= ECHO_T= 465case `echo -n x` in #((((( 466-n*) 467 case `echo 'xy\c'` in 468 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 469 xy) ECHO_C='\c';; 470 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 471 ECHO_T=' ';; 472 esac;; 473*) 474 ECHO_N='-n';; 475esac 476 477rm -f conf$$ conf$$.exe conf$$.file 478if test -d conf$$.dir; then 479 rm -f conf$$.dir/conf$$.file 480else 481 rm -f conf$$.dir 482 mkdir conf$$.dir 2>/dev/null 483fi 484if (echo >conf$$.file) 2>/dev/null; then 485 if ln -s conf$$.file conf$$ 2>/dev/null; then 486 as_ln_s='ln -s' 487 # ... but there are two gotchas: 488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 490 # In both cases, we have to default to `cp -p'. 491 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 492 as_ln_s='cp -p' 493 elif ln conf$$.file conf$$ 2>/dev/null; then 494 as_ln_s=ln 495 else 496 as_ln_s='cp -p' 497 fi 498else 499 as_ln_s='cp -p' 500fi 501rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 502rmdir conf$$.dir 2>/dev/null 503 504if mkdir -p . 2>/dev/null; then 505 as_mkdir_p='mkdir -p "$as_dir"' 506else 507 test -d ./-p && rmdir ./-p 508 as_mkdir_p=false 509fi 510 511if test -x / >/dev/null 2>&1; then 512 as_test_x='test -x' 513else 514 if ls -dL / >/dev/null 2>&1; then 515 as_ls_L_option=L 516 else 517 as_ls_L_option= 518 fi 519 as_test_x=' 520 eval sh -c '\'' 521 if test -d "$1"; then 522 test -d "$1/."; 523 else 524 case $1 in #( 525 -*)set "./$1";; 526 esac; 527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 528 ???[sx]*):;;*)false;;esac;fi 529 '\'' sh 530 ' 531fi 532as_executable_p=$as_test_x 533 534# Sed expression to map a string onto a valid CPP name. 535as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 536 537# Sed expression to map a string onto a valid variable name. 538as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 539 540 541test -n "$DJDIR" || exec 7<&0 </dev/null 542exec 6>&1 543 544# Name of the host. 545# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 546# so uname gets run too. 547ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 548 549# 550# Initializations. 551# 552ac_default_prefix=/usr/local 553ac_clean_files= 554ac_config_libobj_dir=. 555LIBOBJS= 556cross_compiling=no 557subdirs= 558MFLAGS= 559MAKEFLAGS= 560 561# Identity of this package. 562PACKAGE_NAME='xrdb' 563PACKAGE_TARNAME='xrdb' 564PACKAGE_VERSION='1.1.0' 565PACKAGE_STRING='xrdb 1.1.0' 566PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 567PACKAGE_URL='' 568 569ac_unique_file="Makefile.am" 570# Factoring default headers for most tests. 571ac_includes_default="\ 572#include <stdio.h> 573#ifdef HAVE_SYS_TYPES_H 574# include <sys/types.h> 575#endif 576#ifdef HAVE_SYS_STAT_H 577# include <sys/stat.h> 578#endif 579#ifdef STDC_HEADERS 580# include <stdlib.h> 581# include <stddef.h> 582#else 583# ifdef HAVE_STDLIB_H 584# include <stdlib.h> 585# endif 586#endif 587#ifdef HAVE_STRING_H 588# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 589# include <memory.h> 590# endif 591# include <string.h> 592#endif 593#ifdef HAVE_STRINGS_H 594# include <strings.h> 595#endif 596#ifdef HAVE_INTTYPES_H 597# include <inttypes.h> 598#endif 599#ifdef HAVE_STDINT_H 600# include <stdint.h> 601#endif 602#ifdef HAVE_UNISTD_H 603# include <unistd.h> 604#endif" 605 606ac_subst_vars='am__EXEEXT_FALSE 607am__EXEEXT_TRUE 608LTLIBOBJS 609LIBOBJS 610XRDB_LIBS 611XRDB_CFLAGS 612CPP_PATH 613MAN_SUBSTS 614XORG_MAN_PAGE 615ADMIN_MAN_DIR 616DRIVER_MAN_DIR 617MISC_MAN_DIR 618FILE_MAN_DIR 619LIB_MAN_DIR 620APP_MAN_DIR 621ADMIN_MAN_SUFFIX 622DRIVER_MAN_SUFFIX 623MISC_MAN_SUFFIX 624FILE_MAN_SUFFIX 625LIB_MAN_SUFFIX 626APP_MAN_SUFFIX 627SED 628host_os 629host_vendor 630host_cpu 631host 632build_os 633build_vendor 634build_cpu 635build 636INSTALL_CMD 637PKG_CONFIG 638CHANGELOG_CMD 639STRICT_CFLAGS 640CWARNFLAGS 641BASE_CFLAGS 642MAINT 643MAINTAINER_MODE_FALSE 644MAINTAINER_MODE_TRUE 645AM_BACKSLASH 646AM_DEFAULT_VERBOSITY 647AM_DEFAULT_V 648AM_V 649am__fastdepCC_FALSE 650am__fastdepCC_TRUE 651CCDEPMODE 652am__nodep 653AMDEPBACKSLASH 654AMDEP_FALSE 655AMDEP_TRUE 656am__quote 657am__include 658DEPDIR 659am__untar 660am__tar 661AMTAR 662am__leading_dot 663SET_MAKE 664AWK 665mkdir_p 666MKDIR_P 667INSTALL_STRIP_PROGRAM 668STRIP 669install_sh 670MAKEINFO 671AUTOHEADER 672AUTOMAKE 673AUTOCONF 674ACLOCAL 675VERSION 676PACKAGE 677CYGPATH_W 678am__isrc 679INSTALL_DATA 680INSTALL_SCRIPT 681INSTALL_PROGRAM 682EGREP 683GREP 684CPP 685OBJEXT 686EXEEXT 687ac_ct_CC 688CPPFLAGS 689LDFLAGS 690CFLAGS 691CC 692target_alias 693host_alias 694build_alias 695LIBS 696ECHO_T 697ECHO_N 698ECHO_C 699DEFS 700mandir 701localedir 702libdir 703psdir 704pdfdir 705dvidir 706htmldir 707infodir 708docdir 709oldincludedir 710includedir 711localstatedir 712sharedstatedir 713sysconfdir 714datadir 715datarootdir 716libexecdir 717sbindir 718bindir 719program_transform_name 720prefix 721exec_prefix 722PACKAGE_URL 723PACKAGE_BUGREPORT 724PACKAGE_STRING 725PACKAGE_VERSION 726PACKAGE_TARNAME 727PACKAGE_NAME 728PATH_SEPARATOR 729SHELL' 730ac_subst_files='' 731ac_user_opts=' 732enable_option_checking 733enable_dependency_tracking 734enable_silent_rules 735enable_maintainer_mode 736enable_selective_werror 737enable_strict_compilation 738with_cpp 739' 740 ac_precious_vars='build_alias 741host_alias 742target_alias 743CC 744CFLAGS 745LDFLAGS 746LIBS 747CPPFLAGS 748CPP 749PKG_CONFIG 750XRDB_CFLAGS 751XRDB_LIBS' 752 753 754# Initialize some variables set by options. 755ac_init_help= 756ac_init_version=false 757ac_unrecognized_opts= 758ac_unrecognized_sep= 759# The variables have the same names as the options, with 760# dashes changed to underlines. 761cache_file=/dev/null 762exec_prefix=NONE 763no_create= 764no_recursion= 765prefix=NONE 766program_prefix=NONE 767program_suffix=NONE 768program_transform_name=s,x,x, 769silent= 770site= 771srcdir= 772verbose= 773x_includes=NONE 774x_libraries=NONE 775 776# Installation directory options. 777# These are left unexpanded so users can "make install exec_prefix=/foo" 778# and all the variables that are supposed to be based on exec_prefix 779# by default will actually change. 780# Use braces instead of parens because sh, perl, etc. also accept them. 781# (The list follows the same order as the GNU Coding Standards.) 782bindir='${exec_prefix}/bin' 783sbindir='${exec_prefix}/sbin' 784libexecdir='${exec_prefix}/libexec' 785datarootdir='${prefix}/share' 786datadir='${datarootdir}' 787sysconfdir='${prefix}/etc' 788sharedstatedir='${prefix}/com' 789localstatedir='${prefix}/var' 790includedir='${prefix}/include' 791oldincludedir='/usr/include' 792docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 793infodir='${datarootdir}/info' 794htmldir='${docdir}' 795dvidir='${docdir}' 796pdfdir='${docdir}' 797psdir='${docdir}' 798libdir='${exec_prefix}/lib' 799localedir='${datarootdir}/locale' 800mandir='${datarootdir}/man' 801 802ac_prev= 803ac_dashdash= 804for ac_option 805do 806 # If the previous option needs an argument, assign it. 807 if test -n "$ac_prev"; then 808 eval $ac_prev=\$ac_option 809 ac_prev= 810 continue 811 fi 812 813 case $ac_option in 814 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 815 *=) ac_optarg= ;; 816 *) ac_optarg=yes ;; 817 esac 818 819 # Accept the important Cygnus configure options, so we can diagnose typos. 820 821 case $ac_dashdash$ac_option in 822 --) 823 ac_dashdash=yes ;; 824 825 -bindir | --bindir | --bindi | --bind | --bin | --bi) 826 ac_prev=bindir ;; 827 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 828 bindir=$ac_optarg ;; 829 830 -build | --build | --buil | --bui | --bu) 831 ac_prev=build_alias ;; 832 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 833 build_alias=$ac_optarg ;; 834 835 -cache-file | --cache-file | --cache-fil | --cache-fi \ 836 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 837 ac_prev=cache_file ;; 838 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 839 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 840 cache_file=$ac_optarg ;; 841 842 --config-cache | -C) 843 cache_file=config.cache ;; 844 845 -datadir | --datadir | --datadi | --datad) 846 ac_prev=datadir ;; 847 -datadir=* | --datadir=* | --datadi=* | --datad=*) 848 datadir=$ac_optarg ;; 849 850 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 851 | --dataroo | --dataro | --datar) 852 ac_prev=datarootdir ;; 853 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 854 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 855 datarootdir=$ac_optarg ;; 856 857 -disable-* | --disable-*) 858 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 859 # Reject names that are not valid shell variable names. 860 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 861 as_fn_error $? "invalid feature name: $ac_useropt" 862 ac_useropt_orig=$ac_useropt 863 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 864 case $ac_user_opts in 865 *" 866"enable_$ac_useropt" 867"*) ;; 868 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 869 ac_unrecognized_sep=', ';; 870 esac 871 eval enable_$ac_useropt=no ;; 872 873 -docdir | --docdir | --docdi | --doc | --do) 874 ac_prev=docdir ;; 875 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 876 docdir=$ac_optarg ;; 877 878 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 879 ac_prev=dvidir ;; 880 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 881 dvidir=$ac_optarg ;; 882 883 -enable-* | --enable-*) 884 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 885 # Reject names that are not valid shell variable names. 886 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 887 as_fn_error $? "invalid feature name: $ac_useropt" 888 ac_useropt_orig=$ac_useropt 889 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 890 case $ac_user_opts in 891 *" 892"enable_$ac_useropt" 893"*) ;; 894 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 895 ac_unrecognized_sep=', ';; 896 esac 897 eval enable_$ac_useropt=\$ac_optarg ;; 898 899 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 900 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 901 | --exec | --exe | --ex) 902 ac_prev=exec_prefix ;; 903 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 904 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 905 | --exec=* | --exe=* | --ex=*) 906 exec_prefix=$ac_optarg ;; 907 908 -gas | --gas | --ga | --g) 909 # Obsolete; use --with-gas. 910 with_gas=yes ;; 911 912 -help | --help | --hel | --he | -h) 913 ac_init_help=long ;; 914 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 915 ac_init_help=recursive ;; 916 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 917 ac_init_help=short ;; 918 919 -host | --host | --hos | --ho) 920 ac_prev=host_alias ;; 921 -host=* | --host=* | --hos=* | --ho=*) 922 host_alias=$ac_optarg ;; 923 924 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 925 ac_prev=htmldir ;; 926 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 927 | --ht=*) 928 htmldir=$ac_optarg ;; 929 930 -includedir | --includedir | --includedi | --included | --include \ 931 | --includ | --inclu | --incl | --inc) 932 ac_prev=includedir ;; 933 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 934 | --includ=* | --inclu=* | --incl=* | --inc=*) 935 includedir=$ac_optarg ;; 936 937 -infodir | --infodir | --infodi | --infod | --info | --inf) 938 ac_prev=infodir ;; 939 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 940 infodir=$ac_optarg ;; 941 942 -libdir | --libdir | --libdi | --libd) 943 ac_prev=libdir ;; 944 -libdir=* | --libdir=* | --libdi=* | --libd=*) 945 libdir=$ac_optarg ;; 946 947 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 948 | --libexe | --libex | --libe) 949 ac_prev=libexecdir ;; 950 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 951 | --libexe=* | --libex=* | --libe=*) 952 libexecdir=$ac_optarg ;; 953 954 -localedir | --localedir | --localedi | --localed | --locale) 955 ac_prev=localedir ;; 956 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 957 localedir=$ac_optarg ;; 958 959 -localstatedir | --localstatedir | --localstatedi | --localstated \ 960 | --localstate | --localstat | --localsta | --localst | --locals) 961 ac_prev=localstatedir ;; 962 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 963 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 964 localstatedir=$ac_optarg ;; 965 966 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 967 ac_prev=mandir ;; 968 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 969 mandir=$ac_optarg ;; 970 971 -nfp | --nfp | --nf) 972 # Obsolete; use --without-fp. 973 with_fp=no ;; 974 975 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 976 | --no-cr | --no-c | -n) 977 no_create=yes ;; 978 979 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 980 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 981 no_recursion=yes ;; 982 983 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 984 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 985 | --oldin | --oldi | --old | --ol | --o) 986 ac_prev=oldincludedir ;; 987 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 988 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 989 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 990 oldincludedir=$ac_optarg ;; 991 992 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 993 ac_prev=prefix ;; 994 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 995 prefix=$ac_optarg ;; 996 997 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 998 | --program-pre | --program-pr | --program-p) 999 ac_prev=program_prefix ;; 1000 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1001 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1002 program_prefix=$ac_optarg ;; 1003 1004 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1005 | --program-suf | --program-su | --program-s) 1006 ac_prev=program_suffix ;; 1007 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1008 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1009 program_suffix=$ac_optarg ;; 1010 1011 -program-transform-name | --program-transform-name \ 1012 | --program-transform-nam | --program-transform-na \ 1013 | --program-transform-n | --program-transform- \ 1014 | --program-transform | --program-transfor \ 1015 | --program-transfo | --program-transf \ 1016 | --program-trans | --program-tran \ 1017 | --progr-tra | --program-tr | --program-t) 1018 ac_prev=program_transform_name ;; 1019 -program-transform-name=* | --program-transform-name=* \ 1020 | --program-transform-nam=* | --program-transform-na=* \ 1021 | --program-transform-n=* | --program-transform-=* \ 1022 | --program-transform=* | --program-transfor=* \ 1023 | --program-transfo=* | --program-transf=* \ 1024 | --program-trans=* | --program-tran=* \ 1025 | --progr-tra=* | --program-tr=* | --program-t=*) 1026 program_transform_name=$ac_optarg ;; 1027 1028 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1029 ac_prev=pdfdir ;; 1030 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1031 pdfdir=$ac_optarg ;; 1032 1033 -psdir | --psdir | --psdi | --psd | --ps) 1034 ac_prev=psdir ;; 1035 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1036 psdir=$ac_optarg ;; 1037 1038 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1039 | -silent | --silent | --silen | --sile | --sil) 1040 silent=yes ;; 1041 1042 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1043 ac_prev=sbindir ;; 1044 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1045 | --sbi=* | --sb=*) 1046 sbindir=$ac_optarg ;; 1047 1048 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1049 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1050 | --sharedst | --shareds | --shared | --share | --shar \ 1051 | --sha | --sh) 1052 ac_prev=sharedstatedir ;; 1053 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1054 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1055 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1056 | --sha=* | --sh=*) 1057 sharedstatedir=$ac_optarg ;; 1058 1059 -site | --site | --sit) 1060 ac_prev=site ;; 1061 -site=* | --site=* | --sit=*) 1062 site=$ac_optarg ;; 1063 1064 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1065 ac_prev=srcdir ;; 1066 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1067 srcdir=$ac_optarg ;; 1068 1069 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1070 | --syscon | --sysco | --sysc | --sys | --sy) 1071 ac_prev=sysconfdir ;; 1072 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1073 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1074 sysconfdir=$ac_optarg ;; 1075 1076 -target | --target | --targe | --targ | --tar | --ta | --t) 1077 ac_prev=target_alias ;; 1078 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1079 target_alias=$ac_optarg ;; 1080 1081 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1082 verbose=yes ;; 1083 1084 -version | --version | --versio | --versi | --vers | -V) 1085 ac_init_version=: ;; 1086 1087 -with-* | --with-*) 1088 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1089 # Reject names that are not valid shell variable names. 1090 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1091 as_fn_error $? "invalid package name: $ac_useropt" 1092 ac_useropt_orig=$ac_useropt 1093 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1094 case $ac_user_opts in 1095 *" 1096"with_$ac_useropt" 1097"*) ;; 1098 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1099 ac_unrecognized_sep=', ';; 1100 esac 1101 eval with_$ac_useropt=\$ac_optarg ;; 1102 1103 -without-* | --without-*) 1104 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1105 # Reject names that are not valid shell variable names. 1106 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1107 as_fn_error $? "invalid package name: $ac_useropt" 1108 ac_useropt_orig=$ac_useropt 1109 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1110 case $ac_user_opts in 1111 *" 1112"with_$ac_useropt" 1113"*) ;; 1114 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1115 ac_unrecognized_sep=', ';; 1116 esac 1117 eval with_$ac_useropt=no ;; 1118 1119 --x) 1120 # Obsolete; use --with-x. 1121 with_x=yes ;; 1122 1123 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1124 | --x-incl | --x-inc | --x-in | --x-i) 1125 ac_prev=x_includes ;; 1126 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1127 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1128 x_includes=$ac_optarg ;; 1129 1130 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1131 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1132 ac_prev=x_libraries ;; 1133 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1134 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1135 x_libraries=$ac_optarg ;; 1136 1137 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1138Try \`$0 --help' for more information" 1139 ;; 1140 1141 *=*) 1142 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1143 # Reject names that are not valid shell variable names. 1144 case $ac_envvar in #( 1145 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1146 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1147 esac 1148 eval $ac_envvar=\$ac_optarg 1149 export $ac_envvar ;; 1150 1151 *) 1152 # FIXME: should be removed in autoconf 3.0. 1153 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1154 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1155 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1156 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1157 ;; 1158 1159 esac 1160done 1161 1162if test -n "$ac_prev"; then 1163 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1164 as_fn_error $? "missing argument to $ac_option" 1165fi 1166 1167if test -n "$ac_unrecognized_opts"; then 1168 case $enable_option_checking in 1169 no) ;; 1170 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1171 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1172 esac 1173fi 1174 1175# Check all directory arguments for consistency. 1176for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1177 datadir sysconfdir sharedstatedir localstatedir includedir \ 1178 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1179 libdir localedir mandir 1180do 1181 eval ac_val=\$$ac_var 1182 # Remove trailing slashes. 1183 case $ac_val in 1184 */ ) 1185 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1186 eval $ac_var=\$ac_val;; 1187 esac 1188 # Be sure to have absolute directory names. 1189 case $ac_val in 1190 [\\/$]* | ?:[\\/]* ) continue;; 1191 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1192 esac 1193 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1194done 1195 1196# There might be people who depend on the old broken behavior: `$host' 1197# used to hold the argument of --host etc. 1198# FIXME: To remove some day. 1199build=$build_alias 1200host=$host_alias 1201target=$target_alias 1202 1203# FIXME: To remove some day. 1204if test "x$host_alias" != x; then 1205 if test "x$build_alias" = x; then 1206 cross_compiling=maybe 1207 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1208 If a cross compiler is detected then cross compile mode will be used" >&2 1209 elif test "x$build_alias" != "x$host_alias"; then 1210 cross_compiling=yes 1211 fi 1212fi 1213 1214ac_tool_prefix= 1215test -n "$host_alias" && ac_tool_prefix=$host_alias- 1216 1217test "$silent" = yes && exec 6>/dev/null 1218 1219 1220ac_pwd=`pwd` && test -n "$ac_pwd" && 1221ac_ls_di=`ls -di .` && 1222ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1223 as_fn_error $? "working directory cannot be determined" 1224test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1225 as_fn_error $? "pwd does not report name of working directory" 1226 1227 1228# Find the source files, if location was not specified. 1229if test -z "$srcdir"; then 1230 ac_srcdir_defaulted=yes 1231 # Try the directory containing this script, then the parent directory. 1232 ac_confdir=`$as_dirname -- "$as_myself" || 1233$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1234 X"$as_myself" : 'X\(//\)[^/]' \| \ 1235 X"$as_myself" : 'X\(//\)$' \| \ 1236 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1237$as_echo X"$as_myself" | 1238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1239 s//\1/ 1240 q 1241 } 1242 /^X\(\/\/\)[^/].*/{ 1243 s//\1/ 1244 q 1245 } 1246 /^X\(\/\/\)$/{ 1247 s//\1/ 1248 q 1249 } 1250 /^X\(\/\).*/{ 1251 s//\1/ 1252 q 1253 } 1254 s/.*/./; q'` 1255 srcdir=$ac_confdir 1256 if test ! -r "$srcdir/$ac_unique_file"; then 1257 srcdir=.. 1258 fi 1259else 1260 ac_srcdir_defaulted=no 1261fi 1262if test ! -r "$srcdir/$ac_unique_file"; then 1263 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1264 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1265fi 1266ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1267ac_abs_confdir=`( 1268 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1269 pwd)` 1270# When building in place, set srcdir=. 1271if test "$ac_abs_confdir" = "$ac_pwd"; then 1272 srcdir=. 1273fi 1274# Remove unnecessary trailing slashes from srcdir. 1275# Double slashes in file names in object file debugging info 1276# mess up M-x gdb in Emacs. 1277case $srcdir in 1278*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1279esac 1280for ac_var in $ac_precious_vars; do 1281 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1282 eval ac_env_${ac_var}_value=\$${ac_var} 1283 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1284 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1285done 1286 1287# 1288# Report the --help message. 1289# 1290if test "$ac_init_help" = "long"; then 1291 # Omit some internal or obsolete options to make the list less imposing. 1292 # This message is too long to be a string in the A/UX 3.1 sh. 1293 cat <<_ACEOF 1294\`configure' configures xrdb 1.1.0 to adapt to many kinds of systems. 1295 1296Usage: $0 [OPTION]... [VAR=VALUE]... 1297 1298To assign environment variables (e.g., CC, CFLAGS...), specify them as 1299VAR=VALUE. See below for descriptions of some of the useful variables. 1300 1301Defaults for the options are specified in brackets. 1302 1303Configuration: 1304 -h, --help display this help and exit 1305 --help=short display options specific to this package 1306 --help=recursive display the short help of all the included packages 1307 -V, --version display version information and exit 1308 -q, --quiet, --silent do not print \`checking ...' messages 1309 --cache-file=FILE cache test results in FILE [disabled] 1310 -C, --config-cache alias for \`--cache-file=config.cache' 1311 -n, --no-create do not create output files 1312 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1313 1314Installation directories: 1315 --prefix=PREFIX install architecture-independent files in PREFIX 1316 [$ac_default_prefix] 1317 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1318 [PREFIX] 1319 1320By default, \`make install' will install all the files in 1321\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1322an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1323for instance \`--prefix=\$HOME'. 1324 1325For better control, use the options below. 1326 1327Fine tuning of the installation directories: 1328 --bindir=DIR user executables [EPREFIX/bin] 1329 --sbindir=DIR system admin executables [EPREFIX/sbin] 1330 --libexecdir=DIR program executables [EPREFIX/libexec] 1331 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1332 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1333 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1334 --libdir=DIR object code libraries [EPREFIX/lib] 1335 --includedir=DIR C header files [PREFIX/include] 1336 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1337 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1338 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1339 --infodir=DIR info documentation [DATAROOTDIR/info] 1340 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1341 --mandir=DIR man documentation [DATAROOTDIR/man] 1342 --docdir=DIR documentation root [DATAROOTDIR/doc/xrdb] 1343 --htmldir=DIR html documentation [DOCDIR] 1344 --dvidir=DIR dvi documentation [DOCDIR] 1345 --pdfdir=DIR pdf documentation [DOCDIR] 1346 --psdir=DIR ps documentation [DOCDIR] 1347_ACEOF 1348 1349 cat <<\_ACEOF 1350 1351Program names: 1352 --program-prefix=PREFIX prepend PREFIX to installed program names 1353 --program-suffix=SUFFIX append SUFFIX to installed program names 1354 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1355 1356System types: 1357 --build=BUILD configure for building on BUILD [guessed] 1358 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1359_ACEOF 1360fi 1361 1362if test -n "$ac_init_help"; then 1363 case $ac_init_help in 1364 short | recursive ) echo "Configuration of xrdb 1.1.0:";; 1365 esac 1366 cat <<\_ACEOF 1367 1368Optional Features: 1369 --disable-option-checking ignore unrecognized --enable/--with options 1370 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1371 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1372 --enable-dependency-tracking 1373 do not reject slow dependency extractors 1374 --disable-dependency-tracking 1375 speeds up one-time build 1376 --enable-silent-rules less verbose build output (undo: "make V=1") 1377 --disable-silent-rules verbose build output (undo: "make V=0") 1378 --enable-maintainer-mode 1379 enable make rules and dependencies not useful (and 1380 sometimes confusing) to the casual installer 1381 --disable-selective-werror 1382 Turn off selective compiler errors. (default: 1383 enabled) 1384 --enable-strict-compilation 1385 Enable all warnings from compiler and make them 1386 errors (default: disabled) 1387 1388Optional Packages: 1389 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1390 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1391 --with-cpp=path comma-separated list of paths to cpp command for 1392 xrdb to use at runtime 1393 1394Some influential environment variables: 1395 CC C compiler command 1396 CFLAGS C compiler flags 1397 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1398 nonstandard directory <lib dir> 1399 LIBS libraries to pass to the linker, e.g. -l<library> 1400 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1401 you have headers in a nonstandard directory <include dir> 1402 CPP C preprocessor 1403 PKG_CONFIG path to pkg-config utility 1404 XRDB_CFLAGS C compiler flags for XRDB, overriding pkg-config 1405 XRDB_LIBS linker flags for XRDB, overriding pkg-config 1406 1407Use these variables to override the choices made by `configure' or to help 1408it to find libraries and programs with nonstandard names/locations. 1409 1410Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1411_ACEOF 1412ac_status=$? 1413fi 1414 1415if test "$ac_init_help" = "recursive"; then 1416 # If there are subdirs, report their specific --help. 1417 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1418 test -d "$ac_dir" || 1419 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1420 continue 1421 ac_builddir=. 1422 1423case "$ac_dir" in 1424.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1425*) 1426 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1427 # A ".." for each directory in $ac_dir_suffix. 1428 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1429 case $ac_top_builddir_sub in 1430 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1431 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1432 esac ;; 1433esac 1434ac_abs_top_builddir=$ac_pwd 1435ac_abs_builddir=$ac_pwd$ac_dir_suffix 1436# for backward compatibility: 1437ac_top_builddir=$ac_top_build_prefix 1438 1439case $srcdir in 1440 .) # We are building in place. 1441 ac_srcdir=. 1442 ac_top_srcdir=$ac_top_builddir_sub 1443 ac_abs_top_srcdir=$ac_pwd ;; 1444 [\\/]* | ?:[\\/]* ) # Absolute name. 1445 ac_srcdir=$srcdir$ac_dir_suffix; 1446 ac_top_srcdir=$srcdir 1447 ac_abs_top_srcdir=$srcdir ;; 1448 *) # Relative name. 1449 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1450 ac_top_srcdir=$ac_top_build_prefix$srcdir 1451 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1452esac 1453ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1454 1455 cd "$ac_dir" || { ac_status=$?; continue; } 1456 # Check for guested configure. 1457 if test -f "$ac_srcdir/configure.gnu"; then 1458 echo && 1459 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1460 elif test -f "$ac_srcdir/configure"; then 1461 echo && 1462 $SHELL "$ac_srcdir/configure" --help=recursive 1463 else 1464 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1465 fi || ac_status=$? 1466 cd "$ac_pwd" || { ac_status=$?; break; } 1467 done 1468fi 1469 1470test -n "$ac_init_help" && exit $ac_status 1471if $ac_init_version; then 1472 cat <<\_ACEOF 1473xrdb configure 1.1.0 1474generated by GNU Autoconf 2.68 1475 1476Copyright (C) 2010 Free Software Foundation, Inc. 1477This configure script is free software; the Free Software Foundation 1478gives unlimited permission to copy, distribute and modify it. 1479_ACEOF 1480 exit 1481fi 1482 1483## ------------------------ ## 1484## Autoconf initialization. ## 1485## ------------------------ ## 1486 1487# ac_fn_c_try_compile LINENO 1488# -------------------------- 1489# Try to compile conftest.$ac_ext, and return whether this succeeded. 1490ac_fn_c_try_compile () 1491{ 1492 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1493 rm -f conftest.$ac_objext 1494 if { { ac_try="$ac_compile" 1495case "(($ac_try" in 1496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1497 *) ac_try_echo=$ac_try;; 1498esac 1499eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1500$as_echo "$ac_try_echo"; } >&5 1501 (eval "$ac_compile") 2>conftest.err 1502 ac_status=$? 1503 if test -s conftest.err; then 1504 grep -v '^ *+' conftest.err >conftest.er1 1505 cat conftest.er1 >&5 1506 mv -f conftest.er1 conftest.err 1507 fi 1508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1509 test $ac_status = 0; } && { 1510 test -z "$ac_c_werror_flag" || 1511 test ! -s conftest.err 1512 } && test -s conftest.$ac_objext; then : 1513 ac_retval=0 1514else 1515 $as_echo "$as_me: failed program was:" >&5 1516sed 's/^/| /' conftest.$ac_ext >&5 1517 1518 ac_retval=1 1519fi 1520 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1521 as_fn_set_status $ac_retval 1522 1523} # ac_fn_c_try_compile 1524 1525# ac_fn_c_try_cpp LINENO 1526# ---------------------- 1527# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1528ac_fn_c_try_cpp () 1529{ 1530 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1531 if { { ac_try="$ac_cpp conftest.$ac_ext" 1532case "(($ac_try" in 1533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1534 *) ac_try_echo=$ac_try;; 1535esac 1536eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1537$as_echo "$ac_try_echo"; } >&5 1538 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1539 ac_status=$? 1540 if test -s conftest.err; then 1541 grep -v '^ *+' conftest.err >conftest.er1 1542 cat conftest.er1 >&5 1543 mv -f conftest.er1 conftest.err 1544 fi 1545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1546 test $ac_status = 0; } > conftest.i && { 1547 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1548 test ! -s conftest.err 1549 }; then : 1550 ac_retval=0 1551else 1552 $as_echo "$as_me: failed program was:" >&5 1553sed 's/^/| /' conftest.$ac_ext >&5 1554 1555 ac_retval=1 1556fi 1557 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1558 as_fn_set_status $ac_retval 1559 1560} # ac_fn_c_try_cpp 1561 1562# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1563# ------------------------------------------------------- 1564# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1565# the include files in INCLUDES and setting the cache variable VAR 1566# accordingly. 1567ac_fn_c_check_header_mongrel () 1568{ 1569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1570 if eval \${$3+:} false; then : 1571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1572$as_echo_n "checking for $2... " >&6; } 1573if eval \${$3+:} false; then : 1574 $as_echo_n "(cached) " >&6 1575fi 1576eval ac_res=\$$3 1577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1578$as_echo "$ac_res" >&6; } 1579else 1580 # Is the header compilable? 1581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1582$as_echo_n "checking $2 usability... " >&6; } 1583cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1584/* end confdefs.h. */ 1585$4 1586#include <$2> 1587_ACEOF 1588if ac_fn_c_try_compile "$LINENO"; then : 1589 ac_header_compiler=yes 1590else 1591 ac_header_compiler=no 1592fi 1593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1595$as_echo "$ac_header_compiler" >&6; } 1596 1597# Is the header present? 1598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1599$as_echo_n "checking $2 presence... " >&6; } 1600cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1601/* end confdefs.h. */ 1602#include <$2> 1603_ACEOF 1604if ac_fn_c_try_cpp "$LINENO"; then : 1605 ac_header_preproc=yes 1606else 1607 ac_header_preproc=no 1608fi 1609rm -f conftest.err conftest.i conftest.$ac_ext 1610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1611$as_echo "$ac_header_preproc" >&6; } 1612 1613# So? What about this header? 1614case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1615 yes:no: ) 1616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1617$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1619$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1620 ;; 1621 no:yes:* ) 1622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1623$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1625$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1627$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1629$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1631$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1632( $as_echo "## ---------------------------------------------------------------------- ## 1633## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 1634## ---------------------------------------------------------------------- ##" 1635 ) | sed "s/^/$as_me: WARNING: /" >&2 1636 ;; 1637esac 1638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1639$as_echo_n "checking for $2... " >&6; } 1640if eval \${$3+:} false; then : 1641 $as_echo_n "(cached) " >&6 1642else 1643 eval "$3=\$ac_header_compiler" 1644fi 1645eval ac_res=\$$3 1646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1647$as_echo "$ac_res" >&6; } 1648fi 1649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1650 1651} # ac_fn_c_check_header_mongrel 1652 1653# ac_fn_c_try_run LINENO 1654# ---------------------- 1655# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1656# that executables *can* be run. 1657ac_fn_c_try_run () 1658{ 1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1660 if { { ac_try="$ac_link" 1661case "(($ac_try" in 1662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1663 *) ac_try_echo=$ac_try;; 1664esac 1665eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1666$as_echo "$ac_try_echo"; } >&5 1667 (eval "$ac_link") 2>&5 1668 ac_status=$? 1669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1670 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1671 { { case "(($ac_try" in 1672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1673 *) ac_try_echo=$ac_try;; 1674esac 1675eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1676$as_echo "$ac_try_echo"; } >&5 1677 (eval "$ac_try") 2>&5 1678 ac_status=$? 1679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1680 test $ac_status = 0; }; }; then : 1681 ac_retval=0 1682else 1683 $as_echo "$as_me: program exited with status $ac_status" >&5 1684 $as_echo "$as_me: failed program was:" >&5 1685sed 's/^/| /' conftest.$ac_ext >&5 1686 1687 ac_retval=$ac_status 1688fi 1689 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1691 as_fn_set_status $ac_retval 1692 1693} # ac_fn_c_try_run 1694 1695# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1696# ------------------------------------------------------- 1697# Tests whether HEADER exists and can be compiled using the include files in 1698# INCLUDES, setting the cache variable VAR accordingly. 1699ac_fn_c_check_header_compile () 1700{ 1701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1703$as_echo_n "checking for $2... " >&6; } 1704if eval \${$3+:} false; then : 1705 $as_echo_n "(cached) " >&6 1706else 1707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1708/* end confdefs.h. */ 1709$4 1710#include <$2> 1711_ACEOF 1712if ac_fn_c_try_compile "$LINENO"; then : 1713 eval "$3=yes" 1714else 1715 eval "$3=no" 1716fi 1717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1718fi 1719eval ac_res=\$$3 1720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1721$as_echo "$ac_res" >&6; } 1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1723 1724} # ac_fn_c_check_header_compile 1725 1726# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1727# --------------------------------------------- 1728# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1729# accordingly. 1730ac_fn_c_check_decl () 1731{ 1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1733 as_decl_name=`echo $2|sed 's/ *(.*//'` 1734 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1736$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1737if eval \${$3+:} false; then : 1738 $as_echo_n "(cached) " >&6 1739else 1740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1741/* end confdefs.h. */ 1742$4 1743int 1744main () 1745{ 1746#ifndef $as_decl_name 1747#ifdef __cplusplus 1748 (void) $as_decl_use; 1749#else 1750 (void) $as_decl_name; 1751#endif 1752#endif 1753 1754 ; 1755 return 0; 1756} 1757_ACEOF 1758if ac_fn_c_try_compile "$LINENO"; then : 1759 eval "$3=yes" 1760else 1761 eval "$3=no" 1762fi 1763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1764fi 1765eval ac_res=\$$3 1766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1767$as_echo "$ac_res" >&6; } 1768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1769 1770} # ac_fn_c_check_decl 1771 1772# ac_fn_c_try_link LINENO 1773# ----------------------- 1774# Try to link conftest.$ac_ext, and return whether this succeeded. 1775ac_fn_c_try_link () 1776{ 1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1778 rm -f conftest.$ac_objext conftest$ac_exeext 1779 if { { ac_try="$ac_link" 1780case "(($ac_try" in 1781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1782 *) ac_try_echo=$ac_try;; 1783esac 1784eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1785$as_echo "$ac_try_echo"; } >&5 1786 (eval "$ac_link") 2>conftest.err 1787 ac_status=$? 1788 if test -s conftest.err; then 1789 grep -v '^ *+' conftest.err >conftest.er1 1790 cat conftest.er1 >&5 1791 mv -f conftest.er1 conftest.err 1792 fi 1793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1794 test $ac_status = 0; } && { 1795 test -z "$ac_c_werror_flag" || 1796 test ! -s conftest.err 1797 } && test -s conftest$ac_exeext && { 1798 test "$cross_compiling" = yes || 1799 $as_test_x conftest$ac_exeext 1800 }; then : 1801 ac_retval=0 1802else 1803 $as_echo "$as_me: failed program was:" >&5 1804sed 's/^/| /' conftest.$ac_ext >&5 1805 1806 ac_retval=1 1807fi 1808 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1809 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1810 # interfere with the next link command; also delete a directory that is 1811 # left behind by Apple's compiler. We do this before executing the actions. 1812 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1813 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1814 as_fn_set_status $ac_retval 1815 1816} # ac_fn_c_try_link 1817 1818# ac_fn_c_check_func LINENO FUNC VAR 1819# ---------------------------------- 1820# Tests whether FUNC exists, setting the cache variable VAR accordingly 1821ac_fn_c_check_func () 1822{ 1823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1825$as_echo_n "checking for $2... " >&6; } 1826if eval \${$3+:} false; then : 1827 $as_echo_n "(cached) " >&6 1828else 1829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1830/* end confdefs.h. */ 1831/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1832 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1833#define $2 innocuous_$2 1834 1835/* System header to define __stub macros and hopefully few prototypes, 1836 which can conflict with char $2 (); below. 1837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1838 <limits.h> exists even on freestanding compilers. */ 1839 1840#ifdef __STDC__ 1841# include <limits.h> 1842#else 1843# include <assert.h> 1844#endif 1845 1846#undef $2 1847 1848/* Override any GCC internal prototype to avoid an error. 1849 Use char because int might match the return type of a GCC 1850 builtin and then its argument prototype would still apply. */ 1851#ifdef __cplusplus 1852extern "C" 1853#endif 1854char $2 (); 1855/* The GNU C library defines this for functions which it implements 1856 to always fail with ENOSYS. Some functions are actually named 1857 something starting with __ and the normal name is an alias. */ 1858#if defined __stub_$2 || defined __stub___$2 1859choke me 1860#endif 1861 1862int 1863main () 1864{ 1865return $2 (); 1866 ; 1867 return 0; 1868} 1869_ACEOF 1870if ac_fn_c_try_link "$LINENO"; then : 1871 eval "$3=yes" 1872else 1873 eval "$3=no" 1874fi 1875rm -f core conftest.err conftest.$ac_objext \ 1876 conftest$ac_exeext conftest.$ac_ext 1877fi 1878eval ac_res=\$$3 1879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1880$as_echo "$ac_res" >&6; } 1881 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1882 1883} # ac_fn_c_check_func 1884cat >config.log <<_ACEOF 1885This file contains any messages produced by compilers while 1886running configure, to aid debugging if configure makes a mistake. 1887 1888It was created by xrdb $as_me 1.1.0, which was 1889generated by GNU Autoconf 2.68. Invocation command line was 1890 1891 $ $0 $@ 1892 1893_ACEOF 1894exec 5>>config.log 1895{ 1896cat <<_ASUNAME 1897## --------- ## 1898## Platform. ## 1899## --------- ## 1900 1901hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1902uname -m = `(uname -m) 2>/dev/null || echo unknown` 1903uname -r = `(uname -r) 2>/dev/null || echo unknown` 1904uname -s = `(uname -s) 2>/dev/null || echo unknown` 1905uname -v = `(uname -v) 2>/dev/null || echo unknown` 1906 1907/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1908/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1909 1910/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1911/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1912/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1913/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1914/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1915/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1916/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1917 1918_ASUNAME 1919 1920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1921for as_dir in $PATH 1922do 1923 IFS=$as_save_IFS 1924 test -z "$as_dir" && as_dir=. 1925 $as_echo "PATH: $as_dir" 1926 done 1927IFS=$as_save_IFS 1928 1929} >&5 1930 1931cat >&5 <<_ACEOF 1932 1933 1934## ----------- ## 1935## Core tests. ## 1936## ----------- ## 1937 1938_ACEOF 1939 1940 1941# Keep a trace of the command line. 1942# Strip out --no-create and --no-recursion so they do not pile up. 1943# Strip out --silent because we don't want to record it for future runs. 1944# Also quote any args containing shell meta-characters. 1945# Make two passes to allow for proper duplicate-argument suppression. 1946ac_configure_args= 1947ac_configure_args0= 1948ac_configure_args1= 1949ac_must_keep_next=false 1950for ac_pass in 1 2 1951do 1952 for ac_arg 1953 do 1954 case $ac_arg in 1955 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1956 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1957 | -silent | --silent | --silen | --sile | --sil) 1958 continue ;; 1959 *\'*) 1960 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1961 esac 1962 case $ac_pass in 1963 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1964 2) 1965 as_fn_append ac_configure_args1 " '$ac_arg'" 1966 if test $ac_must_keep_next = true; then 1967 ac_must_keep_next=false # Got value, back to normal. 1968 else 1969 case $ac_arg in 1970 *=* | --config-cache | -C | -disable-* | --disable-* \ 1971 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1972 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1973 | -with-* | --with-* | -without-* | --without-* | --x) 1974 case "$ac_configure_args0 " in 1975 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1976 esac 1977 ;; 1978 -* ) ac_must_keep_next=true ;; 1979 esac 1980 fi 1981 as_fn_append ac_configure_args " '$ac_arg'" 1982 ;; 1983 esac 1984 done 1985done 1986{ ac_configure_args0=; unset ac_configure_args0;} 1987{ ac_configure_args1=; unset ac_configure_args1;} 1988 1989# When interrupted or exit'd, cleanup temporary files, and complete 1990# config.log. We remove comments because anyway the quotes in there 1991# would cause problems or look ugly. 1992# WARNING: Use '\'' to represent an apostrophe within the trap. 1993# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1994trap 'exit_status=$? 1995 # Save into config.log some information that might help in debugging. 1996 { 1997 echo 1998 1999 $as_echo "## ---------------- ## 2000## Cache variables. ## 2001## ---------------- ##" 2002 echo 2003 # The following way of writing the cache mishandles newlines in values, 2004( 2005 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2006 eval ac_val=\$$ac_var 2007 case $ac_val in #( 2008 *${as_nl}*) 2009 case $ac_var in #( 2010 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2011$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2012 esac 2013 case $ac_var in #( 2014 _ | IFS | as_nl) ;; #( 2015 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2016 *) { eval $ac_var=; unset $ac_var;} ;; 2017 esac ;; 2018 esac 2019 done 2020 (set) 2>&1 | 2021 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2022 *${as_nl}ac_space=\ *) 2023 sed -n \ 2024 "s/'\''/'\''\\\\'\'''\''/g; 2025 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2026 ;; #( 2027 *) 2028 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2029 ;; 2030 esac | 2031 sort 2032) 2033 echo 2034 2035 $as_echo "## ----------------- ## 2036## Output variables. ## 2037## ----------------- ##" 2038 echo 2039 for ac_var in $ac_subst_vars 2040 do 2041 eval ac_val=\$$ac_var 2042 case $ac_val in 2043 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2044 esac 2045 $as_echo "$ac_var='\''$ac_val'\''" 2046 done | sort 2047 echo 2048 2049 if test -n "$ac_subst_files"; then 2050 $as_echo "## ------------------- ## 2051## File substitutions. ## 2052## ------------------- ##" 2053 echo 2054 for ac_var in $ac_subst_files 2055 do 2056 eval ac_val=\$$ac_var 2057 case $ac_val in 2058 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2059 esac 2060 $as_echo "$ac_var='\''$ac_val'\''" 2061 done | sort 2062 echo 2063 fi 2064 2065 if test -s confdefs.h; then 2066 $as_echo "## ----------- ## 2067## confdefs.h. ## 2068## ----------- ##" 2069 echo 2070 cat confdefs.h 2071 echo 2072 fi 2073 test "$ac_signal" != 0 && 2074 $as_echo "$as_me: caught signal $ac_signal" 2075 $as_echo "$as_me: exit $exit_status" 2076 } >&5 2077 rm -f core *.core core.conftest.* && 2078 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2079 exit $exit_status 2080' 0 2081for ac_signal in 1 2 13 15; do 2082 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2083done 2084ac_signal=0 2085 2086# confdefs.h avoids OS command line length limits that DEFS can exceed. 2087rm -f -r conftest* confdefs.h 2088 2089$as_echo "/* confdefs.h */" > confdefs.h 2090 2091# Predefined preprocessor variables. 2092 2093cat >>confdefs.h <<_ACEOF 2094#define PACKAGE_NAME "$PACKAGE_NAME" 2095_ACEOF 2096 2097cat >>confdefs.h <<_ACEOF 2098#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2099_ACEOF 2100 2101cat >>confdefs.h <<_ACEOF 2102#define PACKAGE_VERSION "$PACKAGE_VERSION" 2103_ACEOF 2104 2105cat >>confdefs.h <<_ACEOF 2106#define PACKAGE_STRING "$PACKAGE_STRING" 2107_ACEOF 2108 2109cat >>confdefs.h <<_ACEOF 2110#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2111_ACEOF 2112 2113cat >>confdefs.h <<_ACEOF 2114#define PACKAGE_URL "$PACKAGE_URL" 2115_ACEOF 2116 2117 2118# Let the site file select an alternate cache file if it wants to. 2119# Prefer an explicitly selected file to automatically selected ones. 2120ac_site_file1=NONE 2121ac_site_file2=NONE 2122if test -n "$CONFIG_SITE"; then 2123 # We do not want a PATH search for config.site. 2124 case $CONFIG_SITE in #(( 2125 -*) ac_site_file1=./$CONFIG_SITE;; 2126 */*) ac_site_file1=$CONFIG_SITE;; 2127 *) ac_site_file1=./$CONFIG_SITE;; 2128 esac 2129elif test "x$prefix" != xNONE; then 2130 ac_site_file1=$prefix/share/config.site 2131 ac_site_file2=$prefix/etc/config.site 2132else 2133 ac_site_file1=$ac_default_prefix/share/config.site 2134 ac_site_file2=$ac_default_prefix/etc/config.site 2135fi 2136for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2137do 2138 test "x$ac_site_file" = xNONE && continue 2139 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2140 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2141$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2142 sed 's/^/| /' "$ac_site_file" >&5 2143 . "$ac_site_file" \ 2144 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2145$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2146as_fn_error $? "failed to load site script $ac_site_file 2147See \`config.log' for more details" "$LINENO" 5; } 2148 fi 2149done 2150 2151if test -r "$cache_file"; then 2152 # Some versions of bash will fail to source /dev/null (special files 2153 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2154 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2155 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2156$as_echo "$as_me: loading cache $cache_file" >&6;} 2157 case $cache_file in 2158 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2159 *) . "./$cache_file";; 2160 esac 2161 fi 2162else 2163 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2164$as_echo "$as_me: creating cache $cache_file" >&6;} 2165 >$cache_file 2166fi 2167 2168# Check that the precious variables saved in the cache have kept the same 2169# value. 2170ac_cache_corrupted=false 2171for ac_var in $ac_precious_vars; do 2172 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2173 eval ac_new_set=\$ac_env_${ac_var}_set 2174 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2175 eval ac_new_val=\$ac_env_${ac_var}_value 2176 case $ac_old_set,$ac_new_set in 2177 set,) 2178 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2179$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2180 ac_cache_corrupted=: ;; 2181 ,set) 2182 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2183$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2184 ac_cache_corrupted=: ;; 2185 ,);; 2186 *) 2187 if test "x$ac_old_val" != "x$ac_new_val"; then 2188 # differences in whitespace do not lead to failure. 2189 ac_old_val_w=`echo x $ac_old_val` 2190 ac_new_val_w=`echo x $ac_new_val` 2191 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2192 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2193$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2194 ac_cache_corrupted=: 2195 else 2196 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2197$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2198 eval $ac_var=\$ac_old_val 2199 fi 2200 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2201$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2202 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2203$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2204 fi;; 2205 esac 2206 # Pass precious variables to config.status. 2207 if test "$ac_new_set" = set; then 2208 case $ac_new_val in 2209 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2210 *) ac_arg=$ac_var=$ac_new_val ;; 2211 esac 2212 case " $ac_configure_args " in 2213 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2214 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2215 esac 2216 fi 2217done 2218if $ac_cache_corrupted; then 2219 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2220$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2221 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2222$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2223 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2224fi 2225## -------------------- ## 2226## Main body of script. ## 2227## -------------------- ## 2228 2229ac_ext=c 2230ac_cpp='$CPP $CPPFLAGS' 2231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2233ac_compiler_gnu=$ac_cv_c_compiler_gnu 2234 2235 2236 2237ac_config_headers="$ac_config_headers config.h" 2238 2239# expand $ac_aux_dir to an absolute path 2240am_aux_dir=`cd $ac_aux_dir && pwd` 2241 2242ac_ext=c 2243ac_cpp='$CPP $CPPFLAGS' 2244ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2245ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2246ac_compiler_gnu=$ac_cv_c_compiler_gnu 2247if test -n "$ac_tool_prefix"; then 2248 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2249set dummy ${ac_tool_prefix}gcc; ac_word=$2 2250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2251$as_echo_n "checking for $ac_word... " >&6; } 2252if ${ac_cv_prog_CC+:} false; then : 2253 $as_echo_n "(cached) " >&6 2254else 2255 if test -n "$CC"; then 2256 ac_cv_prog_CC="$CC" # Let the user override the test. 2257else 2258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2259for as_dir in $PATH 2260do 2261 IFS=$as_save_IFS 2262 test -z "$as_dir" && as_dir=. 2263 for ac_exec_ext in '' $ac_executable_extensions; do 2264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2265 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2267 break 2 2268 fi 2269done 2270 done 2271IFS=$as_save_IFS 2272 2273fi 2274fi 2275CC=$ac_cv_prog_CC 2276if test -n "$CC"; then 2277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2278$as_echo "$CC" >&6; } 2279else 2280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2281$as_echo "no" >&6; } 2282fi 2283 2284 2285fi 2286if test -z "$ac_cv_prog_CC"; then 2287 ac_ct_CC=$CC 2288 # Extract the first word of "gcc", so it can be a program name with args. 2289set dummy gcc; ac_word=$2 2290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2291$as_echo_n "checking for $ac_word... " >&6; } 2292if ${ac_cv_prog_ac_ct_CC+:} false; then : 2293 $as_echo_n "(cached) " >&6 2294else 2295 if test -n "$ac_ct_CC"; then 2296 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2297else 2298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2299for as_dir in $PATH 2300do 2301 IFS=$as_save_IFS 2302 test -z "$as_dir" && as_dir=. 2303 for ac_exec_ext in '' $ac_executable_extensions; do 2304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2305 ac_cv_prog_ac_ct_CC="gcc" 2306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2307 break 2 2308 fi 2309done 2310 done 2311IFS=$as_save_IFS 2312 2313fi 2314fi 2315ac_ct_CC=$ac_cv_prog_ac_ct_CC 2316if test -n "$ac_ct_CC"; then 2317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2318$as_echo "$ac_ct_CC" >&6; } 2319else 2320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2321$as_echo "no" >&6; } 2322fi 2323 2324 if test "x$ac_ct_CC" = x; then 2325 CC="" 2326 else 2327 case $cross_compiling:$ac_tool_warned in 2328yes:) 2329{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2330$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2331ac_tool_warned=yes ;; 2332esac 2333 CC=$ac_ct_CC 2334 fi 2335else 2336 CC="$ac_cv_prog_CC" 2337fi 2338 2339if test -z "$CC"; then 2340 if test -n "$ac_tool_prefix"; then 2341 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2342set dummy ${ac_tool_prefix}cc; ac_word=$2 2343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2344$as_echo_n "checking for $ac_word... " >&6; } 2345if ${ac_cv_prog_CC+:} false; then : 2346 $as_echo_n "(cached) " >&6 2347else 2348 if test -n "$CC"; then 2349 ac_cv_prog_CC="$CC" # Let the user override the test. 2350else 2351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2352for as_dir in $PATH 2353do 2354 IFS=$as_save_IFS 2355 test -z "$as_dir" && as_dir=. 2356 for ac_exec_ext in '' $ac_executable_extensions; do 2357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2358 ac_cv_prog_CC="${ac_tool_prefix}cc" 2359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2360 break 2 2361 fi 2362done 2363 done 2364IFS=$as_save_IFS 2365 2366fi 2367fi 2368CC=$ac_cv_prog_CC 2369if test -n "$CC"; then 2370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2371$as_echo "$CC" >&6; } 2372else 2373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2374$as_echo "no" >&6; } 2375fi 2376 2377 2378 fi 2379fi 2380if test -z "$CC"; then 2381 # Extract the first word of "cc", so it can be a program name with args. 2382set dummy cc; ac_word=$2 2383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2384$as_echo_n "checking for $ac_word... " >&6; } 2385if ${ac_cv_prog_CC+:} false; then : 2386 $as_echo_n "(cached) " >&6 2387else 2388 if test -n "$CC"; then 2389 ac_cv_prog_CC="$CC" # Let the user override the test. 2390else 2391 ac_prog_rejected=no 2392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2393for as_dir in $PATH 2394do 2395 IFS=$as_save_IFS 2396 test -z "$as_dir" && as_dir=. 2397 for ac_exec_ext in '' $ac_executable_extensions; do 2398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2399 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2400 ac_prog_rejected=yes 2401 continue 2402 fi 2403 ac_cv_prog_CC="cc" 2404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2405 break 2 2406 fi 2407done 2408 done 2409IFS=$as_save_IFS 2410 2411if test $ac_prog_rejected = yes; then 2412 # We found a bogon in the path, so make sure we never use it. 2413 set dummy $ac_cv_prog_CC 2414 shift 2415 if test $# != 0; then 2416 # We chose a different compiler from the bogus one. 2417 # However, it has the same basename, so the bogon will be chosen 2418 # first if we set CC to just the basename; use the full file name. 2419 shift 2420 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2421 fi 2422fi 2423fi 2424fi 2425CC=$ac_cv_prog_CC 2426if test -n "$CC"; then 2427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2428$as_echo "$CC" >&6; } 2429else 2430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2431$as_echo "no" >&6; } 2432fi 2433 2434 2435fi 2436if test -z "$CC"; then 2437 if test -n "$ac_tool_prefix"; then 2438 for ac_prog in cl.exe 2439 do 2440 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2441set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2443$as_echo_n "checking for $ac_word... " >&6; } 2444if ${ac_cv_prog_CC+:} false; then : 2445 $as_echo_n "(cached) " >&6 2446else 2447 if test -n "$CC"; then 2448 ac_cv_prog_CC="$CC" # Let the user override the test. 2449else 2450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2451for as_dir in $PATH 2452do 2453 IFS=$as_save_IFS 2454 test -z "$as_dir" && as_dir=. 2455 for ac_exec_ext in '' $ac_executable_extensions; do 2456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2457 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2459 break 2 2460 fi 2461done 2462 done 2463IFS=$as_save_IFS 2464 2465fi 2466fi 2467CC=$ac_cv_prog_CC 2468if test -n "$CC"; then 2469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2470$as_echo "$CC" >&6; } 2471else 2472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2473$as_echo "no" >&6; } 2474fi 2475 2476 2477 test -n "$CC" && break 2478 done 2479fi 2480if test -z "$CC"; then 2481 ac_ct_CC=$CC 2482 for ac_prog in cl.exe 2483do 2484 # Extract the first word of "$ac_prog", so it can be a program name with args. 2485set dummy $ac_prog; ac_word=$2 2486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2487$as_echo_n "checking for $ac_word... " >&6; } 2488if ${ac_cv_prog_ac_ct_CC+:} false; then : 2489 $as_echo_n "(cached) " >&6 2490else 2491 if test -n "$ac_ct_CC"; then 2492 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2493else 2494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2495for as_dir in $PATH 2496do 2497 IFS=$as_save_IFS 2498 test -z "$as_dir" && as_dir=. 2499 for ac_exec_ext in '' $ac_executable_extensions; do 2500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2501 ac_cv_prog_ac_ct_CC="$ac_prog" 2502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2503 break 2 2504 fi 2505done 2506 done 2507IFS=$as_save_IFS 2508 2509fi 2510fi 2511ac_ct_CC=$ac_cv_prog_ac_ct_CC 2512if test -n "$ac_ct_CC"; then 2513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2514$as_echo "$ac_ct_CC" >&6; } 2515else 2516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2517$as_echo "no" >&6; } 2518fi 2519 2520 2521 test -n "$ac_ct_CC" && break 2522done 2523 2524 if test "x$ac_ct_CC" = x; then 2525 CC="" 2526 else 2527 case $cross_compiling:$ac_tool_warned in 2528yes:) 2529{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2530$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2531ac_tool_warned=yes ;; 2532esac 2533 CC=$ac_ct_CC 2534 fi 2535fi 2536 2537fi 2538 2539 2540test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2541$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2542as_fn_error $? "no acceptable C compiler found in \$PATH 2543See \`config.log' for more details" "$LINENO" 5; } 2544 2545# Provide some information about the compiler. 2546$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2547set X $ac_compile 2548ac_compiler=$2 2549for ac_option in --version -v -V -qversion; do 2550 { { ac_try="$ac_compiler $ac_option >&5" 2551case "(($ac_try" in 2552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2553 *) ac_try_echo=$ac_try;; 2554esac 2555eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2556$as_echo "$ac_try_echo"; } >&5 2557 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2558 ac_status=$? 2559 if test -s conftest.err; then 2560 sed '10a\ 2561... rest of stderr output deleted ... 2562 10q' conftest.err >conftest.er1 2563 cat conftest.er1 >&5 2564 fi 2565 rm -f conftest.er1 conftest.err 2566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2567 test $ac_status = 0; } 2568done 2569 2570cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2571/* end confdefs.h. */ 2572 2573int 2574main () 2575{ 2576 2577 ; 2578 return 0; 2579} 2580_ACEOF 2581ac_clean_files_save=$ac_clean_files 2582ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2583# Try to create an executable without -o first, disregard a.out. 2584# It will help us diagnose broken compilers, and finding out an intuition 2585# of exeext. 2586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2587$as_echo_n "checking whether the C compiler works... " >&6; } 2588ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2589 2590# The possible output files: 2591ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2592 2593ac_rmfiles= 2594for ac_file in $ac_files 2595do 2596 case $ac_file in 2597 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2598 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2599 esac 2600done 2601rm -f $ac_rmfiles 2602 2603if { { ac_try="$ac_link_default" 2604case "(($ac_try" in 2605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2606 *) ac_try_echo=$ac_try;; 2607esac 2608eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2609$as_echo "$ac_try_echo"; } >&5 2610 (eval "$ac_link_default") 2>&5 2611 ac_status=$? 2612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2613 test $ac_status = 0; }; then : 2614 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2615# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2616# in a Makefile. We should not override ac_cv_exeext if it was cached, 2617# so that the user can short-circuit this test for compilers unknown to 2618# Autoconf. 2619for ac_file in $ac_files '' 2620do 2621 test -f "$ac_file" || continue 2622 case $ac_file in 2623 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2624 ;; 2625 [ab].out ) 2626 # We found the default executable, but exeext='' is most 2627 # certainly right. 2628 break;; 2629 *.* ) 2630 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2631 then :; else 2632 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2633 fi 2634 # We set ac_cv_exeext here because the later test for it is not 2635 # safe: cross compilers may not add the suffix if given an `-o' 2636 # argument, so we may need to know it at that point already. 2637 # Even if this section looks crufty: it has the advantage of 2638 # actually working. 2639 break;; 2640 * ) 2641 break;; 2642 esac 2643done 2644test "$ac_cv_exeext" = no && ac_cv_exeext= 2645 2646else 2647 ac_file='' 2648fi 2649if test -z "$ac_file"; then : 2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2651$as_echo "no" >&6; } 2652$as_echo "$as_me: failed program was:" >&5 2653sed 's/^/| /' conftest.$ac_ext >&5 2654 2655{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2656$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2657as_fn_error 77 "C compiler cannot create executables 2658See \`config.log' for more details" "$LINENO" 5; } 2659else 2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2661$as_echo "yes" >&6; } 2662fi 2663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2664$as_echo_n "checking for C compiler default output file name... " >&6; } 2665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2666$as_echo "$ac_file" >&6; } 2667ac_exeext=$ac_cv_exeext 2668 2669rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2670ac_clean_files=$ac_clean_files_save 2671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2672$as_echo_n "checking for suffix of executables... " >&6; } 2673if { { ac_try="$ac_link" 2674case "(($ac_try" in 2675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2676 *) ac_try_echo=$ac_try;; 2677esac 2678eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2679$as_echo "$ac_try_echo"; } >&5 2680 (eval "$ac_link") 2>&5 2681 ac_status=$? 2682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2683 test $ac_status = 0; }; then : 2684 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2685# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2686# work properly (i.e., refer to `conftest.exe'), while it won't with 2687# `rm'. 2688for ac_file in conftest.exe conftest conftest.*; do 2689 test -f "$ac_file" || continue 2690 case $ac_file in 2691 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2692 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2693 break;; 2694 * ) break;; 2695 esac 2696done 2697else 2698 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2699$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2700as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2701See \`config.log' for more details" "$LINENO" 5; } 2702fi 2703rm -f conftest conftest$ac_cv_exeext 2704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2705$as_echo "$ac_cv_exeext" >&6; } 2706 2707rm -f conftest.$ac_ext 2708EXEEXT=$ac_cv_exeext 2709ac_exeext=$EXEEXT 2710cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2711/* end confdefs.h. */ 2712#include <stdio.h> 2713int 2714main () 2715{ 2716FILE *f = fopen ("conftest.out", "w"); 2717 return ferror (f) || fclose (f) != 0; 2718 2719 ; 2720 return 0; 2721} 2722_ACEOF 2723ac_clean_files="$ac_clean_files conftest.out" 2724# Check that the compiler produces executables we can run. If not, either 2725# the compiler is broken, or we cross compile. 2726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2727$as_echo_n "checking whether we are cross compiling... " >&6; } 2728if test "$cross_compiling" != yes; then 2729 { { ac_try="$ac_link" 2730case "(($ac_try" in 2731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2732 *) ac_try_echo=$ac_try;; 2733esac 2734eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2735$as_echo "$ac_try_echo"; } >&5 2736 (eval "$ac_link") 2>&5 2737 ac_status=$? 2738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2739 test $ac_status = 0; } 2740 if { ac_try='./conftest$ac_cv_exeext' 2741 { { case "(($ac_try" in 2742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2743 *) ac_try_echo=$ac_try;; 2744esac 2745eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2746$as_echo "$ac_try_echo"; } >&5 2747 (eval "$ac_try") 2>&5 2748 ac_status=$? 2749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2750 test $ac_status = 0; }; }; then 2751 cross_compiling=no 2752 else 2753 if test "$cross_compiling" = maybe; then 2754 cross_compiling=yes 2755 else 2756 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2757$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2758as_fn_error $? "cannot run C compiled programs. 2759If you meant to cross compile, use \`--host'. 2760See \`config.log' for more details" "$LINENO" 5; } 2761 fi 2762 fi 2763fi 2764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2765$as_echo "$cross_compiling" >&6; } 2766 2767rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 2768ac_clean_files=$ac_clean_files_save 2769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2770$as_echo_n "checking for suffix of object files... " >&6; } 2771if ${ac_cv_objext+:} false; then : 2772 $as_echo_n "(cached) " >&6 2773else 2774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2775/* end confdefs.h. */ 2776 2777int 2778main () 2779{ 2780 2781 ; 2782 return 0; 2783} 2784_ACEOF 2785rm -f conftest.o conftest.obj 2786if { { ac_try="$ac_compile" 2787case "(($ac_try" in 2788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2789 *) ac_try_echo=$ac_try;; 2790esac 2791eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2792$as_echo "$ac_try_echo"; } >&5 2793 (eval "$ac_compile") 2>&5 2794 ac_status=$? 2795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2796 test $ac_status = 0; }; then : 2797 for ac_file in conftest.o conftest.obj conftest.*; do 2798 test -f "$ac_file" || continue; 2799 case $ac_file in 2800 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2801 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2802 break;; 2803 esac 2804done 2805else 2806 $as_echo "$as_me: failed program was:" >&5 2807sed 's/^/| /' conftest.$ac_ext >&5 2808 2809{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2810$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2811as_fn_error $? "cannot compute suffix of object files: cannot compile 2812See \`config.log' for more details" "$LINENO" 5; } 2813fi 2814rm -f conftest.$ac_cv_objext conftest.$ac_ext 2815fi 2816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 2817$as_echo "$ac_cv_objext" >&6; } 2818OBJEXT=$ac_cv_objext 2819ac_objext=$OBJEXT 2820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 2821$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2822if ${ac_cv_c_compiler_gnu+:} false; then : 2823 $as_echo_n "(cached) " >&6 2824else 2825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2826/* end confdefs.h. */ 2827 2828int 2829main () 2830{ 2831#ifndef __GNUC__ 2832 choke me 2833#endif 2834 2835 ; 2836 return 0; 2837} 2838_ACEOF 2839if ac_fn_c_try_compile "$LINENO"; then : 2840 ac_compiler_gnu=yes 2841else 2842 ac_compiler_gnu=no 2843fi 2844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2845ac_cv_c_compiler_gnu=$ac_compiler_gnu 2846 2847fi 2848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 2849$as_echo "$ac_cv_c_compiler_gnu" >&6; } 2850if test $ac_compiler_gnu = yes; then 2851 GCC=yes 2852else 2853 GCC= 2854fi 2855ac_test_CFLAGS=${CFLAGS+set} 2856ac_save_CFLAGS=$CFLAGS 2857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 2858$as_echo_n "checking whether $CC accepts -g... " >&6; } 2859if ${ac_cv_prog_cc_g+:} false; then : 2860 $as_echo_n "(cached) " >&6 2861else 2862 ac_save_c_werror_flag=$ac_c_werror_flag 2863 ac_c_werror_flag=yes 2864 ac_cv_prog_cc_g=no 2865 CFLAGS="-g" 2866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2867/* end confdefs.h. */ 2868 2869int 2870main () 2871{ 2872 2873 ; 2874 return 0; 2875} 2876_ACEOF 2877if ac_fn_c_try_compile "$LINENO"; then : 2878 ac_cv_prog_cc_g=yes 2879else 2880 CFLAGS="" 2881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2882/* end confdefs.h. */ 2883 2884int 2885main () 2886{ 2887 2888 ; 2889 return 0; 2890} 2891_ACEOF 2892if ac_fn_c_try_compile "$LINENO"; then : 2893 2894else 2895 ac_c_werror_flag=$ac_save_c_werror_flag 2896 CFLAGS="-g" 2897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2898/* end confdefs.h. */ 2899 2900int 2901main () 2902{ 2903 2904 ; 2905 return 0; 2906} 2907_ACEOF 2908if ac_fn_c_try_compile "$LINENO"; then : 2909 ac_cv_prog_cc_g=yes 2910fi 2911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2912fi 2913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2914fi 2915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2916 ac_c_werror_flag=$ac_save_c_werror_flag 2917fi 2918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 2919$as_echo "$ac_cv_prog_cc_g" >&6; } 2920if test "$ac_test_CFLAGS" = set; then 2921 CFLAGS=$ac_save_CFLAGS 2922elif test $ac_cv_prog_cc_g = yes; then 2923 if test "$GCC" = yes; then 2924 CFLAGS="-g -O2" 2925 else 2926 CFLAGS="-g" 2927 fi 2928else 2929 if test "$GCC" = yes; then 2930 CFLAGS="-O2" 2931 else 2932 CFLAGS= 2933 fi 2934fi 2935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 2936$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 2937if ${ac_cv_prog_cc_c89+:} false; then : 2938 $as_echo_n "(cached) " >&6 2939else 2940 ac_cv_prog_cc_c89=no 2941ac_save_CC=$CC 2942cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2943/* end confdefs.h. */ 2944#include <stdarg.h> 2945#include <stdio.h> 2946#include <sys/types.h> 2947#include <sys/stat.h> 2948/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2949struct buf { int x; }; 2950FILE * (*rcsopen) (struct buf *, struct stat *, int); 2951static char *e (p, i) 2952 char **p; 2953 int i; 2954{ 2955 return p[i]; 2956} 2957static char *f (char * (*g) (char **, int), char **p, ...) 2958{ 2959 char *s; 2960 va_list v; 2961 va_start (v,p); 2962 s = g (p, va_arg (v,int)); 2963 va_end (v); 2964 return s; 2965} 2966 2967/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2968 function prototypes and stuff, but not '\xHH' hex character constants. 2969 These don't provoke an error unfortunately, instead are silently treated 2970 as 'x'. The following induces an error, until -std is added to get 2971 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2972 array size at least. It's necessary to write '\x00'==0 to get something 2973 that's true only with -std. */ 2974int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2975 2976/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2977 inside strings and character constants. */ 2978#define FOO(x) 'x' 2979int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 2980 2981int test (int i, double x); 2982struct s1 {int (*f) (int a);}; 2983struct s2 {int (*f) (double a);}; 2984int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2985int argc; 2986char **argv; 2987int 2988main () 2989{ 2990return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2991 ; 2992 return 0; 2993} 2994_ACEOF 2995for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 2996 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2997do 2998 CC="$ac_save_CC $ac_arg" 2999 if ac_fn_c_try_compile "$LINENO"; then : 3000 ac_cv_prog_cc_c89=$ac_arg 3001fi 3002rm -f core conftest.err conftest.$ac_objext 3003 test "x$ac_cv_prog_cc_c89" != "xno" && break 3004done 3005rm -f conftest.$ac_ext 3006CC=$ac_save_CC 3007 3008fi 3009# AC_CACHE_VAL 3010case "x$ac_cv_prog_cc_c89" in 3011 x) 3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3013$as_echo "none needed" >&6; } ;; 3014 xno) 3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3016$as_echo "unsupported" >&6; } ;; 3017 *) 3018 CC="$CC $ac_cv_prog_cc_c89" 3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3020$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3021esac 3022if test "x$ac_cv_prog_cc_c89" != xno; then : 3023 3024fi 3025 3026ac_ext=c 3027ac_cpp='$CPP $CPPFLAGS' 3028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3030ac_compiler_gnu=$ac_cv_c_compiler_gnu 3031 3032ac_ext=c 3033ac_cpp='$CPP $CPPFLAGS' 3034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3036ac_compiler_gnu=$ac_cv_c_compiler_gnu 3037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3038$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3039if ${am_cv_prog_cc_c_o+:} false; then : 3040 $as_echo_n "(cached) " >&6 3041else 3042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3043/* end confdefs.h. */ 3044 3045int 3046main () 3047{ 3048 3049 ; 3050 return 0; 3051} 3052_ACEOF 3053 # Make sure it works both with $CC and with simple cc. 3054 # Following AC_PROG_CC_C_O, we do the test twice because some 3055 # compilers refuse to overwrite an existing .o file with -o, 3056 # though they will create one. 3057 am_cv_prog_cc_c_o=yes 3058 for am_i in 1 2; do 3059 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3060 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3061 ac_status=$? 3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3063 (exit $ac_status); } \ 3064 && test -f conftest2.$ac_objext; then 3065 : OK 3066 else 3067 am_cv_prog_cc_c_o=no 3068 break 3069 fi 3070 done 3071 rm -f core conftest* 3072 unset am_i 3073fi 3074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3075$as_echo "$am_cv_prog_cc_c_o" >&6; } 3076if test "$am_cv_prog_cc_c_o" != yes; then 3077 # Losing compiler, so override with the script. 3078 # FIXME: It is wrong to rewrite CC. 3079 # But if we don't then we get into trouble of one sort or another. 3080 # A longer-term fix would be to have automake use am__CC in this case, 3081 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3082 CC="$am_aux_dir/compile $CC" 3083fi 3084ac_ext=c 3085ac_cpp='$CPP $CPPFLAGS' 3086ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3087ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3088ac_compiler_gnu=$ac_cv_c_compiler_gnu 3089 3090 3091 3092ac_ext=c 3093ac_cpp='$CPP $CPPFLAGS' 3094ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3095ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3096ac_compiler_gnu=$ac_cv_c_compiler_gnu 3097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3098$as_echo_n "checking how to run the C preprocessor... " >&6; } 3099# On Suns, sometimes $CPP names a directory. 3100if test -n "$CPP" && test -d "$CPP"; then 3101 CPP= 3102fi 3103if test -z "$CPP"; then 3104 if ${ac_cv_prog_CPP+:} false; then : 3105 $as_echo_n "(cached) " >&6 3106else 3107 # Double quotes because CPP needs to be expanded 3108 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3109 do 3110 ac_preproc_ok=false 3111for ac_c_preproc_warn_flag in '' yes 3112do 3113 # Use a header file that comes with gcc, so configuring glibc 3114 # with a fresh cross-compiler works. 3115 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3116 # <limits.h> exists even on freestanding compilers. 3117 # On the NeXT, cc -E runs the code through the compiler's parser, 3118 # not just through cpp. "Syntax error" is here to catch this case. 3119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3120/* end confdefs.h. */ 3121#ifdef __STDC__ 3122# include <limits.h> 3123#else 3124# include <assert.h> 3125#endif 3126 Syntax error 3127_ACEOF 3128if ac_fn_c_try_cpp "$LINENO"; then : 3129 3130else 3131 # Broken: fails on valid input. 3132continue 3133fi 3134rm -f conftest.err conftest.i conftest.$ac_ext 3135 3136 # OK, works on sane cases. Now check whether nonexistent headers 3137 # can be detected and how. 3138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3139/* end confdefs.h. */ 3140#include <ac_nonexistent.h> 3141_ACEOF 3142if ac_fn_c_try_cpp "$LINENO"; then : 3143 # Broken: success on invalid input. 3144continue 3145else 3146 # Passes both tests. 3147ac_preproc_ok=: 3148break 3149fi 3150rm -f conftest.err conftest.i conftest.$ac_ext 3151 3152done 3153# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3154rm -f conftest.i conftest.err conftest.$ac_ext 3155if $ac_preproc_ok; then : 3156 break 3157fi 3158 3159 done 3160 ac_cv_prog_CPP=$CPP 3161 3162fi 3163 CPP=$ac_cv_prog_CPP 3164else 3165 ac_cv_prog_CPP=$CPP 3166fi 3167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3168$as_echo "$CPP" >&6; } 3169ac_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 3216else 3217 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3218$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3219as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3220See \`config.log' for more details" "$LINENO" 5; } 3221fi 3222 3223ac_ext=c 3224ac_cpp='$CPP $CPPFLAGS' 3225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3227ac_compiler_gnu=$ac_cv_c_compiler_gnu 3228 3229 3230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3231$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3232if ${ac_cv_path_GREP+:} false; then : 3233 $as_echo_n "(cached) " >&6 3234else 3235 if test -z "$GREP"; then 3236 ac_path_GREP_found=false 3237 # Loop through the user's path and test for each of PROGNAME-LIST 3238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3239for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3240do 3241 IFS=$as_save_IFS 3242 test -z "$as_dir" && as_dir=. 3243 for ac_prog in grep ggrep; do 3244 for ac_exec_ext in '' $ac_executable_extensions; do 3245 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3246 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3247# Check for GNU ac_path_GREP and select it if it is found. 3248 # Check for GNU $ac_path_GREP 3249case `"$ac_path_GREP" --version 2>&1` in 3250*GNU*) 3251 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3252*) 3253 ac_count=0 3254 $as_echo_n 0123456789 >"conftest.in" 3255 while : 3256 do 3257 cat "conftest.in" "conftest.in" >"conftest.tmp" 3258 mv "conftest.tmp" "conftest.in" 3259 cp "conftest.in" "conftest.nl" 3260 $as_echo 'GREP' >> "conftest.nl" 3261 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3262 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3263 as_fn_arith $ac_count + 1 && ac_count=$as_val 3264 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3265 # Best one so far, save it but keep looking for a better one 3266 ac_cv_path_GREP="$ac_path_GREP" 3267 ac_path_GREP_max=$ac_count 3268 fi 3269 # 10*(2^10) chars as input seems more than enough 3270 test $ac_count -gt 10 && break 3271 done 3272 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3273esac 3274 3275 $ac_path_GREP_found && break 3 3276 done 3277 done 3278 done 3279IFS=$as_save_IFS 3280 if test -z "$ac_cv_path_GREP"; then 3281 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3282 fi 3283else 3284 ac_cv_path_GREP=$GREP 3285fi 3286 3287fi 3288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3289$as_echo "$ac_cv_path_GREP" >&6; } 3290 GREP="$ac_cv_path_GREP" 3291 3292 3293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3294$as_echo_n "checking for egrep... " >&6; } 3295if ${ac_cv_path_EGREP+:} false; then : 3296 $as_echo_n "(cached) " >&6 3297else 3298 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3299 then ac_cv_path_EGREP="$GREP -E" 3300 else 3301 if test -z "$EGREP"; then 3302 ac_path_EGREP_found=false 3303 # Loop through the user's path and test for each of PROGNAME-LIST 3304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3305for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3306do 3307 IFS=$as_save_IFS 3308 test -z "$as_dir" && as_dir=. 3309 for ac_prog in egrep; do 3310 for ac_exec_ext in '' $ac_executable_extensions; do 3311 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3312 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3313# Check for GNU ac_path_EGREP and select it if it is found. 3314 # Check for GNU $ac_path_EGREP 3315case `"$ac_path_EGREP" --version 2>&1` in 3316*GNU*) 3317 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3318*) 3319 ac_count=0 3320 $as_echo_n 0123456789 >"conftest.in" 3321 while : 3322 do 3323 cat "conftest.in" "conftest.in" >"conftest.tmp" 3324 mv "conftest.tmp" "conftest.in" 3325 cp "conftest.in" "conftest.nl" 3326 $as_echo 'EGREP' >> "conftest.nl" 3327 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3328 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3329 as_fn_arith $ac_count + 1 && ac_count=$as_val 3330 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3331 # Best one so far, save it but keep looking for a better one 3332 ac_cv_path_EGREP="$ac_path_EGREP" 3333 ac_path_EGREP_max=$ac_count 3334 fi 3335 # 10*(2^10) chars as input seems more than enough 3336 test $ac_count -gt 10 && break 3337 done 3338 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3339esac 3340 3341 $ac_path_EGREP_found && break 3 3342 done 3343 done 3344 done 3345IFS=$as_save_IFS 3346 if test -z "$ac_cv_path_EGREP"; then 3347 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3348 fi 3349else 3350 ac_cv_path_EGREP=$EGREP 3351fi 3352 3353 fi 3354fi 3355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3356$as_echo "$ac_cv_path_EGREP" >&6; } 3357 EGREP="$ac_cv_path_EGREP" 3358 3359 3360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3361$as_echo_n "checking for ANSI C header files... " >&6; } 3362if ${ac_cv_header_stdc+:} false; then : 3363 $as_echo_n "(cached) " >&6 3364else 3365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3366/* end confdefs.h. */ 3367#include <stdlib.h> 3368#include <stdarg.h> 3369#include <string.h> 3370#include <float.h> 3371 3372int 3373main () 3374{ 3375 3376 ; 3377 return 0; 3378} 3379_ACEOF 3380if ac_fn_c_try_compile "$LINENO"; then : 3381 ac_cv_header_stdc=yes 3382else 3383 ac_cv_header_stdc=no 3384fi 3385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3386 3387if test $ac_cv_header_stdc = yes; then 3388 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3390/* end confdefs.h. */ 3391#include <string.h> 3392 3393_ACEOF 3394if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3395 $EGREP "memchr" >/dev/null 2>&1; then : 3396 3397else 3398 ac_cv_header_stdc=no 3399fi 3400rm -f conftest* 3401 3402fi 3403 3404if test $ac_cv_header_stdc = yes; then 3405 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3407/* end confdefs.h. */ 3408#include <stdlib.h> 3409 3410_ACEOF 3411if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3412 $EGREP "free" >/dev/null 2>&1; then : 3413 3414else 3415 ac_cv_header_stdc=no 3416fi 3417rm -f conftest* 3418 3419fi 3420 3421if test $ac_cv_header_stdc = yes; then 3422 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3423 if test "$cross_compiling" = yes; then : 3424 : 3425else 3426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3427/* end confdefs.h. */ 3428#include <ctype.h> 3429#include <stdlib.h> 3430#if ((' ' & 0x0FF) == 0x020) 3431# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3432# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3433#else 3434# define ISLOWER(c) \ 3435 (('a' <= (c) && (c) <= 'i') \ 3436 || ('j' <= (c) && (c) <= 'r') \ 3437 || ('s' <= (c) && (c) <= 'z')) 3438# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3439#endif 3440 3441#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3442int 3443main () 3444{ 3445 int i; 3446 for (i = 0; i < 256; i++) 3447 if (XOR (islower (i), ISLOWER (i)) 3448 || toupper (i) != TOUPPER (i)) 3449 return 2; 3450 return 0; 3451} 3452_ACEOF 3453if ac_fn_c_try_run "$LINENO"; then : 3454 3455else 3456 ac_cv_header_stdc=no 3457fi 3458rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3459 conftest.$ac_objext conftest.beam conftest.$ac_ext 3460fi 3461 3462fi 3463fi 3464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3465$as_echo "$ac_cv_header_stdc" >&6; } 3466if test $ac_cv_header_stdc = yes; then 3467 3468$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3469 3470fi 3471 3472# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3473for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3474 inttypes.h stdint.h unistd.h 3475do : 3476 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3477ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3478" 3479if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3480 cat >>confdefs.h <<_ACEOF 3481#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3482_ACEOF 3483 3484fi 3485 3486done 3487 3488 3489 3490 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 3491if test "x$ac_cv_header_minix_config_h" = xyes; then : 3492 MINIX=yes 3493else 3494 MINIX= 3495fi 3496 3497 3498 if test "$MINIX" = yes; then 3499 3500$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 3501 3502 3503$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 3504 3505 3506$as_echo "#define _MINIX 1" >>confdefs.h 3507 3508 fi 3509 3510 3511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3512$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3513if ${ac_cv_safe_to_define___extensions__+:} false; then : 3514 $as_echo_n "(cached) " >&6 3515else 3516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3517/* end confdefs.h. */ 3518 3519# define __EXTENSIONS__ 1 3520 $ac_includes_default 3521int 3522main () 3523{ 3524 3525 ; 3526 return 0; 3527} 3528_ACEOF 3529if ac_fn_c_try_compile "$LINENO"; then : 3530 ac_cv_safe_to_define___extensions__=yes 3531else 3532 ac_cv_safe_to_define___extensions__=no 3533fi 3534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3535fi 3536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3537$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 3538 test $ac_cv_safe_to_define___extensions__ = yes && 3539 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 3540 3541 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 3542 3543 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 3544 3545 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3546 3547 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 3548 3549 3550 3551# Initialize Automake 3552am__api_version='1.14' 3553 3554ac_aux_dir= 3555for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 3556 if test -f "$ac_dir/install-sh"; then 3557 ac_aux_dir=$ac_dir 3558 ac_install_sh="$ac_aux_dir/install-sh -c" 3559 break 3560 elif test -f "$ac_dir/install.sh"; then 3561 ac_aux_dir=$ac_dir 3562 ac_install_sh="$ac_aux_dir/install.sh -c" 3563 break 3564 elif test -f "$ac_dir/shtool"; then 3565 ac_aux_dir=$ac_dir 3566 ac_install_sh="$ac_aux_dir/shtool install -c" 3567 break 3568 fi 3569done 3570if test -z "$ac_aux_dir"; then 3571 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 3572fi 3573 3574# These three variables are undocumented and unsupported, 3575# and are intended to be withdrawn in a future Autoconf release. 3576# They can cause serious problems if a builder's source tree is in a directory 3577# whose full name contains unusual characters. 3578ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3579ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3580ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3581 3582 3583# Find a good install program. We prefer a C program (faster), 3584# so one script is as good as another. But avoid the broken or 3585# incompatible versions: 3586# SysV /etc/install, /usr/sbin/install 3587# SunOS /usr/etc/install 3588# IRIX /sbin/install 3589# AIX /bin/install 3590# AmigaOS /C/install, which installs bootblocks on floppy discs 3591# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3592# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3593# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3594# OS/2's system install, which has a completely different semantic 3595# ./install, which can be erroneously created by make from ./install.sh. 3596# Reject install programs that cannot install multiple files. 3597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3598$as_echo_n "checking for a BSD-compatible install... " >&6; } 3599if test -z "$INSTALL"; then 3600if ${ac_cv_path_install+:} false; then : 3601 $as_echo_n "(cached) " >&6 3602else 3603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3604for as_dir in $PATH 3605do 3606 IFS=$as_save_IFS 3607 test -z "$as_dir" && as_dir=. 3608 # Account for people who put trailing slashes in PATH elements. 3609case $as_dir/ in #(( 3610 ./ | .// | /[cC]/* | \ 3611 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3612 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3613 /usr/ucb/* ) ;; 3614 *) 3615 # OSF1 and SCO ODT 3.0 have their own names for install. 3616 # Don't use installbsd from OSF since it installs stuff as root 3617 # by default. 3618 for ac_prog in ginstall scoinst install; do 3619 for ac_exec_ext in '' $ac_executable_extensions; do 3620 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3621 if test $ac_prog = install && 3622 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3623 # AIX install. It has an incompatible calling convention. 3624 : 3625 elif test $ac_prog = install && 3626 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3627 # program-specific install script used by HP pwplus--don't use. 3628 : 3629 else 3630 rm -rf conftest.one conftest.two conftest.dir 3631 echo one > conftest.one 3632 echo two > conftest.two 3633 mkdir conftest.dir 3634 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3635 test -s conftest.one && test -s conftest.two && 3636 test -s conftest.dir/conftest.one && 3637 test -s conftest.dir/conftest.two 3638 then 3639 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3640 break 3 3641 fi 3642 fi 3643 fi 3644 done 3645 done 3646 ;; 3647esac 3648 3649 done 3650IFS=$as_save_IFS 3651 3652rm -rf conftest.one conftest.two conftest.dir 3653 3654fi 3655 if test "${ac_cv_path_install+set}" = set; then 3656 INSTALL=$ac_cv_path_install 3657 else 3658 # As a last resort, use the slow shell script. Don't cache a 3659 # value for INSTALL within a source directory, because that will 3660 # break other packages using the cache if that directory is 3661 # removed, or if the value is a relative name. 3662 INSTALL=$ac_install_sh 3663 fi 3664fi 3665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3666$as_echo "$INSTALL" >&6; } 3667 3668# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3669# It thinks the first close brace ends the variable substitution. 3670test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3671 3672test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3673 3674test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3675 3676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3677$as_echo_n "checking whether build environment is sane... " >&6; } 3678# Reject unsafe characters in $srcdir or the absolute working directory 3679# name. Accept space and tab only in the latter. 3680am_lf=' 3681' 3682case `pwd` in 3683 *[\\\"\#\$\&\'\`$am_lf]*) 3684 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3685esac 3686case $srcdir in 3687 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3688 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3689esac 3690 3691# Do 'set' in a subshell so we don't clobber the current shell's 3692# arguments. Must try -L first in case configure is actually a 3693# symlink; some systems play weird games with the mod time of symlinks 3694# (eg FreeBSD returns the mod time of the symlink's containing 3695# directory). 3696if ( 3697 am_has_slept=no 3698 for am_try in 1 2; do 3699 echo "timestamp, slept: $am_has_slept" > conftest.file 3700 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3701 if test "$*" = "X"; then 3702 # -L didn't work. 3703 set X `ls -t "$srcdir/configure" conftest.file` 3704 fi 3705 if test "$*" != "X $srcdir/configure conftest.file" \ 3706 && test "$*" != "X conftest.file $srcdir/configure"; then 3707 3708 # If neither matched, then we have a broken ls. This can happen 3709 # if, for instance, CONFIG_SHELL is bash and it inherits a 3710 # broken ls alias from the environment. This has actually 3711 # happened. Such a system could not be considered "sane". 3712 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3713 alias in your environment" "$LINENO" 5 3714 fi 3715 if test "$2" = conftest.file || test $am_try -eq 2; then 3716 break 3717 fi 3718 # Just in case. 3719 sleep 1 3720 am_has_slept=yes 3721 done 3722 test "$2" = conftest.file 3723 ) 3724then 3725 # Ok. 3726 : 3727else 3728 as_fn_error $? "newly created file is older than distributed files! 3729Check your system clock" "$LINENO" 5 3730fi 3731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3732$as_echo "yes" >&6; } 3733# If we didn't sleep, we still need to ensure time stamps of config.status and 3734# generated files are strictly newer. 3735am_sleep_pid= 3736if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3737 ( sleep 1 ) & 3738 am_sleep_pid=$! 3739fi 3740 3741rm -f conftest.file 3742 3743test "$program_prefix" != NONE && 3744 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3745# Use a double $ so make ignores it. 3746test "$program_suffix" != NONE && 3747 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3748# Double any \ or $. 3749# By default was `s,x,x', remove it if useless. 3750ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3751program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3752 3753if test x"${MISSING+set}" != xset; then 3754 case $am_aux_dir in 3755 *\ * | *\ *) 3756 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3757 *) 3758 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3759 esac 3760fi 3761# Use eval to expand $SHELL 3762if eval "$MISSING --is-lightweight"; then 3763 am_missing_run="$MISSING " 3764else 3765 am_missing_run= 3766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3767$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3768fi 3769 3770if test x"${install_sh}" != xset; then 3771 case $am_aux_dir in 3772 *\ * | *\ *) 3773 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3774 *) 3775 install_sh="\${SHELL} $am_aux_dir/install-sh" 3776 esac 3777fi 3778 3779# Installed binaries are usually stripped using 'strip' when the user 3780# run "make install-strip". However 'strip' might not be the right 3781# tool to use in cross-compilation environments, therefore Automake 3782# will honor the 'STRIP' environment variable to overrule this program. 3783if test "$cross_compiling" != no; then 3784 if test -n "$ac_tool_prefix"; then 3785 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3786set dummy ${ac_tool_prefix}strip; ac_word=$2 3787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3788$as_echo_n "checking for $ac_word... " >&6; } 3789if ${ac_cv_prog_STRIP+:} false; then : 3790 $as_echo_n "(cached) " >&6 3791else 3792 if test -n "$STRIP"; then 3793 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3794else 3795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3796for as_dir in $PATH 3797do 3798 IFS=$as_save_IFS 3799 test -z "$as_dir" && as_dir=. 3800 for ac_exec_ext in '' $ac_executable_extensions; do 3801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3802 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3804 break 2 3805 fi 3806done 3807 done 3808IFS=$as_save_IFS 3809 3810fi 3811fi 3812STRIP=$ac_cv_prog_STRIP 3813if test -n "$STRIP"; then 3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3815$as_echo "$STRIP" >&6; } 3816else 3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3818$as_echo "no" >&6; } 3819fi 3820 3821 3822fi 3823if test -z "$ac_cv_prog_STRIP"; then 3824 ac_ct_STRIP=$STRIP 3825 # Extract the first word of "strip", so it can be a program name with args. 3826set dummy strip; ac_word=$2 3827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3828$as_echo_n "checking for $ac_word... " >&6; } 3829if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3830 $as_echo_n "(cached) " >&6 3831else 3832 if test -n "$ac_ct_STRIP"; then 3833 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3834else 3835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3836for as_dir in $PATH 3837do 3838 IFS=$as_save_IFS 3839 test -z "$as_dir" && as_dir=. 3840 for ac_exec_ext in '' $ac_executable_extensions; do 3841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3842 ac_cv_prog_ac_ct_STRIP="strip" 3843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3844 break 2 3845 fi 3846done 3847 done 3848IFS=$as_save_IFS 3849 3850fi 3851fi 3852ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3853if test -n "$ac_ct_STRIP"; then 3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3855$as_echo "$ac_ct_STRIP" >&6; } 3856else 3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3858$as_echo "no" >&6; } 3859fi 3860 3861 if test "x$ac_ct_STRIP" = x; then 3862 STRIP=":" 3863 else 3864 case $cross_compiling:$ac_tool_warned in 3865yes:) 3866{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3867$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3868ac_tool_warned=yes ;; 3869esac 3870 STRIP=$ac_ct_STRIP 3871 fi 3872else 3873 STRIP="$ac_cv_prog_STRIP" 3874fi 3875 3876fi 3877INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3878 3879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3880$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3881if test -z "$MKDIR_P"; then 3882 if ${ac_cv_path_mkdir+:} false; then : 3883 $as_echo_n "(cached) " >&6 3884else 3885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3886for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3887do 3888 IFS=$as_save_IFS 3889 test -z "$as_dir" && as_dir=. 3890 for ac_prog in mkdir gmkdir; do 3891 for ac_exec_ext in '' $ac_executable_extensions; do 3892 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 3893 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3894 'mkdir (GNU coreutils) '* | \ 3895 'mkdir (coreutils) '* | \ 3896 'mkdir (fileutils) '4.1*) 3897 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3898 break 3;; 3899 esac 3900 done 3901 done 3902 done 3903IFS=$as_save_IFS 3904 3905fi 3906 3907 test -d ./--version && rmdir ./--version 3908 if test "${ac_cv_path_mkdir+set}" = set; then 3909 MKDIR_P="$ac_cv_path_mkdir -p" 3910 else 3911 # As a last resort, use the slow shell script. Don't cache a 3912 # value for MKDIR_P within a source directory, because that will 3913 # break other packages using the cache if that directory is 3914 # removed, or if the value is a relative name. 3915 MKDIR_P="$ac_install_sh -d" 3916 fi 3917fi 3918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3919$as_echo "$MKDIR_P" >&6; } 3920 3921for ac_prog in gawk mawk nawk awk 3922do 3923 # Extract the first word of "$ac_prog", so it can be a program name with args. 3924set dummy $ac_prog; ac_word=$2 3925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3926$as_echo_n "checking for $ac_word... " >&6; } 3927if ${ac_cv_prog_AWK+:} false; then : 3928 $as_echo_n "(cached) " >&6 3929else 3930 if test -n "$AWK"; then 3931 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3932else 3933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3934for as_dir in $PATH 3935do 3936 IFS=$as_save_IFS 3937 test -z "$as_dir" && as_dir=. 3938 for ac_exec_ext in '' $ac_executable_extensions; do 3939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3940 ac_cv_prog_AWK="$ac_prog" 3941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3942 break 2 3943 fi 3944done 3945 done 3946IFS=$as_save_IFS 3947 3948fi 3949fi 3950AWK=$ac_cv_prog_AWK 3951if test -n "$AWK"; then 3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3953$as_echo "$AWK" >&6; } 3954else 3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3956$as_echo "no" >&6; } 3957fi 3958 3959 3960 test -n "$AWK" && break 3961done 3962 3963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3964$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3965set x ${MAKE-make} 3966ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3967if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3968 $as_echo_n "(cached) " >&6 3969else 3970 cat >conftest.make <<\_ACEOF 3971SHELL = /bin/sh 3972all: 3973 @echo '@@@%%%=$(MAKE)=@@@%%%' 3974_ACEOF 3975# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3976case `${MAKE-make} -f conftest.make 2>/dev/null` in 3977 *@@@%%%=?*=@@@%%%*) 3978 eval ac_cv_prog_make_${ac_make}_set=yes;; 3979 *) 3980 eval ac_cv_prog_make_${ac_make}_set=no;; 3981esac 3982rm -f conftest.make 3983fi 3984if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3986$as_echo "yes" >&6; } 3987 SET_MAKE= 3988else 3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3990$as_echo "no" >&6; } 3991 SET_MAKE="MAKE=${MAKE-make}" 3992fi 3993 3994rm -rf .tst 2>/dev/null 3995mkdir .tst 2>/dev/null 3996if test -d .tst; then 3997 am__leading_dot=. 3998else 3999 am__leading_dot=_ 4000fi 4001rmdir .tst 2>/dev/null 4002 4003DEPDIR="${am__leading_dot}deps" 4004 4005ac_config_commands="$ac_config_commands depfiles" 4006 4007 4008am_make=${MAKE-make} 4009cat > confinc << 'END' 4010am__doit: 4011 @echo this is the am__doit target 4012.PHONY: am__doit 4013END 4014# If we don't find an include directive, just comment out the code. 4015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4016$as_echo_n "checking for style of include used by $am_make... " >&6; } 4017am__include="#" 4018am__quote= 4019_am_result=none 4020# First try GNU make style include. 4021echo "include confinc" > confmf 4022# Ignore all kinds of additional output from 'make'. 4023case `$am_make -s -f confmf 2> /dev/null` in #( 4024*the\ am__doit\ target*) 4025 am__include=include 4026 am__quote= 4027 _am_result=GNU 4028 ;; 4029esac 4030# Now try BSD make style include. 4031if test "$am__include" = "#"; then 4032 echo '.include "confinc"' > confmf 4033 case `$am_make -s -f confmf 2> /dev/null` in #( 4034 *the\ am__doit\ target*) 4035 am__include=.include 4036 am__quote="\"" 4037 _am_result=BSD 4038 ;; 4039 esac 4040fi 4041 4042 4043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4044$as_echo "$_am_result" >&6; } 4045rm -f confinc confmf 4046 4047# Check whether --enable-dependency-tracking was given. 4048if test "${enable_dependency_tracking+set}" = set; then : 4049 enableval=$enable_dependency_tracking; 4050fi 4051 4052if test "x$enable_dependency_tracking" != xno; then 4053 am_depcomp="$ac_aux_dir/depcomp" 4054 AMDEPBACKSLASH='\' 4055 am__nodep='_no' 4056fi 4057 if test "x$enable_dependency_tracking" != xno; then 4058 AMDEP_TRUE= 4059 AMDEP_FALSE='#' 4060else 4061 AMDEP_TRUE='#' 4062 AMDEP_FALSE= 4063fi 4064 4065 4066# Check whether --enable-silent-rules was given. 4067if test "${enable_silent_rules+set}" = set; then : 4068 enableval=$enable_silent_rules; 4069fi 4070 4071case $enable_silent_rules in # ((( 4072 yes) AM_DEFAULT_VERBOSITY=0;; 4073 no) AM_DEFAULT_VERBOSITY=1;; 4074 *) AM_DEFAULT_VERBOSITY=1;; 4075esac 4076am_make=${MAKE-make} 4077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4078$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4079if ${am_cv_make_support_nested_variables+:} false; then : 4080 $as_echo_n "(cached) " >&6 4081else 4082 if $as_echo 'TRUE=$(BAR$(V)) 4083BAR0=false 4084BAR1=true 4085V=1 4086am__doit: 4087 @$(TRUE) 4088.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4089 am_cv_make_support_nested_variables=yes 4090else 4091 am_cv_make_support_nested_variables=no 4092fi 4093fi 4094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4095$as_echo "$am_cv_make_support_nested_variables" >&6; } 4096if test $am_cv_make_support_nested_variables = yes; then 4097 AM_V='$(V)' 4098 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4099else 4100 AM_V=$AM_DEFAULT_VERBOSITY 4101 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4102fi 4103AM_BACKSLASH='\' 4104 4105if test "`cd $srcdir && pwd`" != "`pwd`"; then 4106 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4107 # is not polluted with repeated "-I." 4108 am__isrc=' -I$(srcdir)' 4109 # test to see if srcdir already configured 4110 if test -f $srcdir/config.status; then 4111 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4112 fi 4113fi 4114 4115# test whether we have cygpath 4116if test -z "$CYGPATH_W"; then 4117 if (cygpath --version) >/dev/null 2>/dev/null; then 4118 CYGPATH_W='cygpath -w' 4119 else 4120 CYGPATH_W=echo 4121 fi 4122fi 4123 4124 4125# Define the identity of the package. 4126 PACKAGE='xrdb' 4127 VERSION='1.1.0' 4128 4129 4130cat >>confdefs.h <<_ACEOF 4131#define PACKAGE "$PACKAGE" 4132_ACEOF 4133 4134 4135cat >>confdefs.h <<_ACEOF 4136#define VERSION "$VERSION" 4137_ACEOF 4138 4139# Some tools Automake needs. 4140 4141ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4142 4143 4144AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4145 4146 4147AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4148 4149 4150AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4151 4152 4153MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4154 4155# For better backward compatibility. To be removed once Automake 1.9.x 4156# dies out for good. For more background, see: 4157# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4158# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4159mkdir_p='$(MKDIR_P)' 4160 4161# We need awk for the "check" target. The system "awk" is bad on 4162# some platforms. 4163# Always define AMTAR for backward compatibility. Yes, it's still used 4164# in the wild :-( We should find a proper way to deprecate it ... 4165AMTAR='$${TAR-tar}' 4166 4167 4168# We'll loop over all known methods to create a tar archive until one works. 4169_am_tools='gnutar pax cpio none' 4170 4171am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4172 4173 4174 4175 4176 4177depcc="$CC" am_compiler_list= 4178 4179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4180$as_echo_n "checking dependency style of $depcc... " >&6; } 4181if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4182 $as_echo_n "(cached) " >&6 4183else 4184 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4185 # We make a subdir and do the tests there. Otherwise we can end up 4186 # making bogus files that we don't know about and never remove. For 4187 # instance it was reported that on HP-UX the gcc test will end up 4188 # making a dummy file named 'D' -- because '-MD' means "put the output 4189 # in D". 4190 rm -rf conftest.dir 4191 mkdir conftest.dir 4192 # Copy depcomp to subdir because otherwise we won't find it if we're 4193 # using a relative directory. 4194 cp "$am_depcomp" conftest.dir 4195 cd conftest.dir 4196 # We will build objects and dependencies in a subdirectory because 4197 # it helps to detect inapplicable dependency modes. For instance 4198 # both Tru64's cc and ICC support -MD to output dependencies as a 4199 # side effect of compilation, but ICC will put the dependencies in 4200 # the current directory while Tru64 will put them in the object 4201 # directory. 4202 mkdir sub 4203 4204 am_cv_CC_dependencies_compiler_type=none 4205 if test "$am_compiler_list" = ""; then 4206 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4207 fi 4208 am__universal=false 4209 case " $depcc " in #( 4210 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4211 esac 4212 4213 for depmode in $am_compiler_list; do 4214 # Setup a source with many dependencies, because some compilers 4215 # like to wrap large dependency lists on column 80 (with \), and 4216 # we should not choose a depcomp mode which is confused by this. 4217 # 4218 # We need to recreate these files for each test, as the compiler may 4219 # overwrite some of them when testing with obscure command lines. 4220 # This happens at least with the AIX C compiler. 4221 : > sub/conftest.c 4222 for i in 1 2 3 4 5 6; do 4223 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4224 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4225 # Solaris 10 /bin/sh. 4226 echo '/* dummy */' > sub/conftst$i.h 4227 done 4228 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4229 4230 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4231 # mode. It turns out that the SunPro C++ compiler does not properly 4232 # handle '-M -o', and we need to detect this. Also, some Intel 4233 # versions had trouble with output in subdirs. 4234 am__obj=sub/conftest.${OBJEXT-o} 4235 am__minus_obj="-o $am__obj" 4236 case $depmode in 4237 gcc) 4238 # This depmode causes a compiler race in universal mode. 4239 test "$am__universal" = false || continue 4240 ;; 4241 nosideeffect) 4242 # After this tag, mechanisms are not by side-effect, so they'll 4243 # only be used when explicitly requested. 4244 if test "x$enable_dependency_tracking" = xyes; then 4245 continue 4246 else 4247 break 4248 fi 4249 ;; 4250 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4251 # This compiler won't grok '-c -o', but also, the minuso test has 4252 # not run yet. These depmodes are late enough in the game, and 4253 # so weak that their functioning should not be impacted. 4254 am__obj=conftest.${OBJEXT-o} 4255 am__minus_obj= 4256 ;; 4257 none) break ;; 4258 esac 4259 if depmode=$depmode \ 4260 source=sub/conftest.c object=$am__obj \ 4261 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4262 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4263 >/dev/null 2>conftest.err && 4264 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4265 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4266 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4267 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4268 # icc doesn't choke on unknown options, it will just issue warnings 4269 # or remarks (even with -Werror). So we grep stderr for any message 4270 # that says an option was ignored or not supported. 4271 # When given -MP, icc 7.0 and 7.1 complain thusly: 4272 # icc: Command line warning: ignoring option '-M'; no argument required 4273 # The diagnosis changed in icc 8.0: 4274 # icc: Command line remark: option '-MP' not supported 4275 if (grep 'ignoring option' conftest.err || 4276 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4277 am_cv_CC_dependencies_compiler_type=$depmode 4278 break 4279 fi 4280 fi 4281 done 4282 4283 cd .. 4284 rm -rf conftest.dir 4285else 4286 am_cv_CC_dependencies_compiler_type=none 4287fi 4288 4289fi 4290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4291$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4292CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4293 4294 if 4295 test "x$enable_dependency_tracking" != xno \ 4296 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4297 am__fastdepCC_TRUE= 4298 am__fastdepCC_FALSE='#' 4299else 4300 am__fastdepCC_TRUE='#' 4301 am__fastdepCC_FALSE= 4302fi 4303 4304 4305 4306# POSIX will say in a future version that running "rm -f" with no argument 4307# is OK; and we want to be able to make that assumption in our Makefile 4308# recipes. So use an aggressive probe to check that the usage we want is 4309# actually supported "in the wild" to an acceptable degree. 4310# See automake bug#10828. 4311# To make any issue more visible, cause the running configure to be aborted 4312# by default if the 'rm' program in use doesn't match our expectations; the 4313# user can still override this though. 4314if rm -f && rm -fr && rm -rf; then : OK; else 4315 cat >&2 <<'END' 4316Oops! 4317 4318Your 'rm' program seems unable to run without file operands specified 4319on the command line, even when the '-f' option is present. This is contrary 4320to the behaviour of most rm programs out there, and not conforming with 4321the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4322 4323Please tell bug-automake@gnu.org about your system, including the value 4324of your $PATH and any error possibly output before this message. This 4325can help us improve future automake versions. 4326 4327END 4328 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4329 echo 'Configuration will proceed anyway, since you have set the' >&2 4330 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4331 echo >&2 4332 else 4333 cat >&2 <<'END' 4334Aborting the configuration process, to ensure you take notice of the issue. 4335 4336You can download and install GNU coreutils to get an 'rm' implementation 4337that behaves properly: <http://www.gnu.org/software/coreutils/>. 4338 4339If you want to complete the configuration process using your problematic 4340'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4341to "yes", and re-run configure. 4342 4343END 4344 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4345 fi 4346fi 4347 4348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 4349$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 4350 # Check whether --enable-maintainer-mode was given. 4351if test "${enable_maintainer_mode+set}" = set; then : 4352 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 4353else 4354 USE_MAINTAINER_MODE=no 4355fi 4356 4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 4358$as_echo "$USE_MAINTAINER_MODE" >&6; } 4359 if test $USE_MAINTAINER_MODE = yes; then 4360 MAINTAINER_MODE_TRUE= 4361 MAINTAINER_MODE_FALSE='#' 4362else 4363 MAINTAINER_MODE_TRUE='#' 4364 MAINTAINER_MODE_FALSE= 4365fi 4366 4367 MAINT=$MAINTAINER_MODE_TRUE 4368 4369 4370 4371# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4384$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4385if ${ac_cv_prog_cc_c99+:} false; then : 4386 $as_echo_n "(cached) " >&6 4387else 4388 ac_cv_prog_cc_c99=no 4389ac_save_CC=$CC 4390cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4391/* end confdefs.h. */ 4392#include <stdarg.h> 4393#include <stdbool.h> 4394#include <stdlib.h> 4395#include <wchar.h> 4396#include <stdio.h> 4397 4398// Check varargs macros. These examples are taken from C99 6.10.3.5. 4399#define debug(...) fprintf (stderr, __VA_ARGS__) 4400#define showlist(...) puts (#__VA_ARGS__) 4401#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4402static void 4403test_varargs_macros (void) 4404{ 4405 int x = 1234; 4406 int y = 5678; 4407 debug ("Flag"); 4408 debug ("X = %d\n", x); 4409 showlist (The first, second, and third items.); 4410 report (x>y, "x is %d but y is %d", x, y); 4411} 4412 4413// Check long long types. 4414#define BIG64 18446744073709551615ull 4415#define BIG32 4294967295ul 4416#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4417#if !BIG_OK 4418 your preprocessor is broken; 4419#endif 4420#if BIG_OK 4421#else 4422 your preprocessor is broken; 4423#endif 4424static long long int bignum = -9223372036854775807LL; 4425static unsigned long long int ubignum = BIG64; 4426 4427struct incomplete_array 4428{ 4429 int datasize; 4430 double data[]; 4431}; 4432 4433struct named_init { 4434 int number; 4435 const wchar_t *name; 4436 double average; 4437}; 4438 4439typedef const char *ccp; 4440 4441static inline int 4442test_restrict (ccp restrict text) 4443{ 4444 // See if C++-style comments work. 4445 // Iterate through items via the restricted pointer. 4446 // Also check for declarations in for loops. 4447 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4448 continue; 4449 return 0; 4450} 4451 4452// Check varargs and va_copy. 4453static void 4454test_varargs (const char *format, ...) 4455{ 4456 va_list args; 4457 va_start (args, format); 4458 va_list args_copy; 4459 va_copy (args_copy, args); 4460 4461 const char *str; 4462 int number; 4463 float fnumber; 4464 4465 while (*format) 4466 { 4467 switch (*format++) 4468 { 4469 case 's': // string 4470 str = va_arg (args_copy, const char *); 4471 break; 4472 case 'd': // int 4473 number = va_arg (args_copy, int); 4474 break; 4475 case 'f': // float 4476 fnumber = va_arg (args_copy, double); 4477 break; 4478 default: 4479 break; 4480 } 4481 } 4482 va_end (args_copy); 4483 va_end (args); 4484} 4485 4486int 4487main () 4488{ 4489 4490 // Check bool. 4491 _Bool success = false; 4492 4493 // Check restrict. 4494 if (test_restrict ("String literal") == 0) 4495 success = true; 4496 char *restrict newvar = "Another string"; 4497 4498 // Check varargs. 4499 test_varargs ("s, d' f .", "string", 65, 34.234); 4500 test_varargs_macros (); 4501 4502 // Check flexible array members. 4503 struct incomplete_array *ia = 4504 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4505 ia->datasize = 10; 4506 for (int i = 0; i < ia->datasize; ++i) 4507 ia->data[i] = i * 1.234; 4508 4509 // Check named initializers. 4510 struct named_init ni = { 4511 .number = 34, 4512 .name = L"Test wide string", 4513 .average = 543.34343, 4514 }; 4515 4516 ni.number = 58; 4517 4518 int dynamic_array[ni.number]; 4519 dynamic_array[ni.number - 1] = 543; 4520 4521 // work around unused variable warnings 4522 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4523 || dynamic_array[ni.number - 1] != 543); 4524 4525 ; 4526 return 0; 4527} 4528_ACEOF 4529for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 4530do 4531 CC="$ac_save_CC $ac_arg" 4532 if ac_fn_c_try_compile "$LINENO"; then : 4533 ac_cv_prog_cc_c99=$ac_arg 4534fi 4535rm -f core conftest.err conftest.$ac_objext 4536 test "x$ac_cv_prog_cc_c99" != "xno" && break 4537done 4538rm -f conftest.$ac_ext 4539CC=$ac_save_CC 4540 4541fi 4542# AC_CACHE_VAL 4543case "x$ac_cv_prog_cc_c99" in 4544 x) 4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4546$as_echo "none needed" >&6; } ;; 4547 xno) 4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4549$as_echo "unsupported" >&6; } ;; 4550 *) 4551 CC="$CC $ac_cv_prog_cc_c99" 4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4553$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4554esac 4555if test "x$ac_cv_prog_cc_c99" != xno; then : 4556 4557fi 4558 4559 4560 4561 4562 4563 4564ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4565if test "x$ac_cv_have_decl___clang__" = xyes; then : 4566 CLANGCC="yes" 4567else 4568 CLANGCC="no" 4569fi 4570 4571ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4572if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4573 INTELCC="yes" 4574else 4575 INTELCC="no" 4576fi 4577 4578ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4579if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4580 SUNCC="yes" 4581else 4582 SUNCC="no" 4583fi 4584 4585 4586 4587 4588if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4589 if test -n "$ac_tool_prefix"; then 4590 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4591set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4593$as_echo_n "checking for $ac_word... " >&6; } 4594if ${ac_cv_path_PKG_CONFIG+:} false; then : 4595 $as_echo_n "(cached) " >&6 4596else 4597 case $PKG_CONFIG in 4598 [\\/]* | ?:[\\/]*) 4599 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4600 ;; 4601 *) 4602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4603for as_dir in $PATH 4604do 4605 IFS=$as_save_IFS 4606 test -z "$as_dir" && as_dir=. 4607 for ac_exec_ext in '' $ac_executable_extensions; do 4608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4609 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4611 break 2 4612 fi 4613done 4614 done 4615IFS=$as_save_IFS 4616 4617 ;; 4618esac 4619fi 4620PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4621if test -n "$PKG_CONFIG"; then 4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4623$as_echo "$PKG_CONFIG" >&6; } 4624else 4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4626$as_echo "no" >&6; } 4627fi 4628 4629 4630fi 4631if test -z "$ac_cv_path_PKG_CONFIG"; then 4632 ac_pt_PKG_CONFIG=$PKG_CONFIG 4633 # Extract the first word of "pkg-config", so it can be a program name with args. 4634set dummy pkg-config; ac_word=$2 4635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4636$as_echo_n "checking for $ac_word... " >&6; } 4637if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4638 $as_echo_n "(cached) " >&6 4639else 4640 case $ac_pt_PKG_CONFIG in 4641 [\\/]* | ?:[\\/]*) 4642 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4643 ;; 4644 *) 4645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4646for as_dir in $PATH 4647do 4648 IFS=$as_save_IFS 4649 test -z "$as_dir" && as_dir=. 4650 for ac_exec_ext in '' $ac_executable_extensions; do 4651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4652 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4654 break 2 4655 fi 4656done 4657 done 4658IFS=$as_save_IFS 4659 4660 ;; 4661esac 4662fi 4663ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4664if test -n "$ac_pt_PKG_CONFIG"; then 4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4666$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4667else 4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4669$as_echo "no" >&6; } 4670fi 4671 4672 if test "x$ac_pt_PKG_CONFIG" = x; then 4673 PKG_CONFIG="" 4674 else 4675 case $cross_compiling:$ac_tool_warned in 4676yes:) 4677{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4678$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4679ac_tool_warned=yes ;; 4680esac 4681 PKG_CONFIG=$ac_pt_PKG_CONFIG 4682 fi 4683else 4684 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4685fi 4686 4687fi 4688if test -n "$PKG_CONFIG"; then 4689 _pkg_min_version=0.9.0 4690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4691$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4692 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4694$as_echo "yes" >&6; } 4695 else 4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4697$as_echo "no" >&6; } 4698 PKG_CONFIG="" 4699 fi 4700 4701fi 4702# Make sure we can run config.sub. 4703$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4704 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4705 4706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4707$as_echo_n "checking build system type... " >&6; } 4708if ${ac_cv_build+:} false; then : 4709 $as_echo_n "(cached) " >&6 4710else 4711 ac_build_alias=$build_alias 4712test "x$ac_build_alias" = x && 4713 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4714test "x$ac_build_alias" = x && 4715 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4716ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4717 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4718 4719fi 4720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4721$as_echo "$ac_cv_build" >&6; } 4722case $ac_cv_build in 4723*-*-*) ;; 4724*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4725esac 4726build=$ac_cv_build 4727ac_save_IFS=$IFS; IFS='-' 4728set x $ac_cv_build 4729shift 4730build_cpu=$1 4731build_vendor=$2 4732shift; shift 4733# Remember, the first character of IFS is used to create $*, 4734# except with old shells: 4735build_os=$* 4736IFS=$ac_save_IFS 4737case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4738 4739 4740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4741$as_echo_n "checking host system type... " >&6; } 4742if ${ac_cv_host+:} false; then : 4743 $as_echo_n "(cached) " >&6 4744else 4745 if test "x$host_alias" = x; then 4746 ac_cv_host=$ac_cv_build 4747else 4748 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4749 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4750fi 4751 4752fi 4753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4754$as_echo "$ac_cv_host" >&6; } 4755case $ac_cv_host in 4756*-*-*) ;; 4757*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4758esac 4759host=$ac_cv_host 4760ac_save_IFS=$IFS; IFS='-' 4761set x $ac_cv_host 4762shift 4763host_cpu=$1 4764host_vendor=$2 4765shift; shift 4766# Remember, the first character of IFS is used to create $*, 4767# except with old shells: 4768host_os=$* 4769IFS=$ac_save_IFS 4770case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4771 4772 4773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4774$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4775if ${ac_cv_path_SED+:} false; then : 4776 $as_echo_n "(cached) " >&6 4777else 4778 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4779 for ac_i in 1 2 3 4 5 6 7; do 4780 ac_script="$ac_script$as_nl$ac_script" 4781 done 4782 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4783 { ac_script=; unset ac_script;} 4784 if test -z "$SED"; then 4785 ac_path_SED_found=false 4786 # Loop through the user's path and test for each of PROGNAME-LIST 4787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4788for as_dir in $PATH 4789do 4790 IFS=$as_save_IFS 4791 test -z "$as_dir" && as_dir=. 4792 for ac_prog in sed gsed; do 4793 for ac_exec_ext in '' $ac_executable_extensions; do 4794 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4795 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4796# Check for GNU ac_path_SED and select it if it is found. 4797 # Check for GNU $ac_path_SED 4798case `"$ac_path_SED" --version 2>&1` in 4799*GNU*) 4800 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4801*) 4802 ac_count=0 4803 $as_echo_n 0123456789 >"conftest.in" 4804 while : 4805 do 4806 cat "conftest.in" "conftest.in" >"conftest.tmp" 4807 mv "conftest.tmp" "conftest.in" 4808 cp "conftest.in" "conftest.nl" 4809 $as_echo '' >> "conftest.nl" 4810 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4811 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4812 as_fn_arith $ac_count + 1 && ac_count=$as_val 4813 if test $ac_count -gt ${ac_path_SED_max-0}; then 4814 # Best one so far, save it but keep looking for a better one 4815 ac_cv_path_SED="$ac_path_SED" 4816 ac_path_SED_max=$ac_count 4817 fi 4818 # 10*(2^10) chars as input seems more than enough 4819 test $ac_count -gt 10 && break 4820 done 4821 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4822esac 4823 4824 $ac_path_SED_found && break 3 4825 done 4826 done 4827 done 4828IFS=$as_save_IFS 4829 if test -z "$ac_cv_path_SED"; then 4830 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4831 fi 4832else 4833 ac_cv_path_SED=$SED 4834fi 4835 4836fi 4837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4838$as_echo "$ac_cv_path_SED" >&6; } 4839 SED="$ac_cv_path_SED" 4840 rm -f conftest.sed 4841 4842 4843 4844 4845 4846 4847# Check whether --enable-selective-werror was given. 4848if test "${enable_selective_werror+set}" = set; then : 4849 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4850else 4851 SELECTIVE_WERROR=yes 4852fi 4853 4854 4855 4856 4857 4858# -v is too short to test reliably with XORG_TESTSET_CFLAG 4859if test "x$SUNCC" = "xyes"; then 4860 BASE_CFLAGS="-v" 4861else 4862 BASE_CFLAGS="" 4863fi 4864 4865# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879xorg_testset_save_CFLAGS="$CFLAGS" 4880 4881if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4882 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4884$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4885if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4886 $as_echo_n "(cached) " >&6 4887else 4888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4889/* end confdefs.h. */ 4890int i; 4891_ACEOF 4892if ac_fn_c_try_compile "$LINENO"; then : 4893 xorg_cv_cc_flag_unknown_warning_option=yes 4894else 4895 xorg_cv_cc_flag_unknown_warning_option=no 4896fi 4897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4898fi 4899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4900$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4901 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4902 CFLAGS="$xorg_testset_save_CFLAGS" 4903fi 4904 4905if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4906 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4907 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4908 fi 4909 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4911$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4912if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4913 $as_echo_n "(cached) " >&6 4914else 4915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4916/* end confdefs.h. */ 4917int i; 4918_ACEOF 4919if ac_fn_c_try_compile "$LINENO"; then : 4920 xorg_cv_cc_flag_unused_command_line_argument=yes 4921else 4922 xorg_cv_cc_flag_unused_command_line_argument=no 4923fi 4924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4925fi 4926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4927$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4928 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4929 CFLAGS="$xorg_testset_save_CFLAGS" 4930fi 4931 4932found="no" 4933 4934 if test $found = "no" ; then 4935 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4936 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4937 fi 4938 4939 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4940 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4941 fi 4942 4943 CFLAGS="$CFLAGS -Wall" 4944 4945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4946$as_echo_n "checking if $CC supports -Wall... " >&6; } 4947 cacheid=xorg_cv_cc_flag__Wall 4948 if eval \${$cacheid+:} false; then : 4949 $as_echo_n "(cached) " >&6 4950else 4951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4952/* end confdefs.h. */ 4953int i; 4954int 4955main () 4956{ 4957 4958 ; 4959 return 0; 4960} 4961_ACEOF 4962if ac_fn_c_try_link "$LINENO"; then : 4963 eval $cacheid=yes 4964else 4965 eval $cacheid=no 4966fi 4967rm -f core conftest.err conftest.$ac_objext \ 4968 conftest$ac_exeext conftest.$ac_ext 4969fi 4970 4971 4972 CFLAGS="$xorg_testset_save_CFLAGS" 4973 4974 eval supported=\$$cacheid 4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4976$as_echo "$supported" >&6; } 4977 if test "$supported" = "yes" ; then 4978 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4979 found="yes" 4980 fi 4981 fi 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997xorg_testset_save_CFLAGS="$CFLAGS" 4998 4999if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5000 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5002$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5003if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5004 $as_echo_n "(cached) " >&6 5005else 5006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5007/* end confdefs.h. */ 5008int i; 5009_ACEOF 5010if ac_fn_c_try_compile "$LINENO"; then : 5011 xorg_cv_cc_flag_unknown_warning_option=yes 5012else 5013 xorg_cv_cc_flag_unknown_warning_option=no 5014fi 5015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5016fi 5017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5018$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5019 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5020 CFLAGS="$xorg_testset_save_CFLAGS" 5021fi 5022 5023if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5024 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5025 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5026 fi 5027 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5029$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5030if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5031 $as_echo_n "(cached) " >&6 5032else 5033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5034/* end confdefs.h. */ 5035int i; 5036_ACEOF 5037if ac_fn_c_try_compile "$LINENO"; then : 5038 xorg_cv_cc_flag_unused_command_line_argument=yes 5039else 5040 xorg_cv_cc_flag_unused_command_line_argument=no 5041fi 5042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5043fi 5044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5045$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5046 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5047 CFLAGS="$xorg_testset_save_CFLAGS" 5048fi 5049 5050found="no" 5051 5052 if test $found = "no" ; then 5053 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5054 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5055 fi 5056 5057 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5058 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5059 fi 5060 5061 CFLAGS="$CFLAGS -Wpointer-arith" 5062 5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5064$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 5065 cacheid=xorg_cv_cc_flag__Wpointer_arith 5066 if eval \${$cacheid+:} false; then : 5067 $as_echo_n "(cached) " >&6 5068else 5069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5070/* end confdefs.h. */ 5071int i; 5072int 5073main () 5074{ 5075 5076 ; 5077 return 0; 5078} 5079_ACEOF 5080if ac_fn_c_try_link "$LINENO"; then : 5081 eval $cacheid=yes 5082else 5083 eval $cacheid=no 5084fi 5085rm -f core conftest.err conftest.$ac_objext \ 5086 conftest$ac_exeext conftest.$ac_ext 5087fi 5088 5089 5090 CFLAGS="$xorg_testset_save_CFLAGS" 5091 5092 eval supported=\$$cacheid 5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5094$as_echo "$supported" >&6; } 5095 if test "$supported" = "yes" ; then 5096 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5097 found="yes" 5098 fi 5099 fi 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115xorg_testset_save_CFLAGS="$CFLAGS" 5116 5117if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5118 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5120$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5121if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5122 $as_echo_n "(cached) " >&6 5123else 5124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5125/* end confdefs.h. */ 5126int i; 5127_ACEOF 5128if ac_fn_c_try_compile "$LINENO"; then : 5129 xorg_cv_cc_flag_unknown_warning_option=yes 5130else 5131 xorg_cv_cc_flag_unknown_warning_option=no 5132fi 5133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5134fi 5135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5136$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5137 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5138 CFLAGS="$xorg_testset_save_CFLAGS" 5139fi 5140 5141if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5142 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5143 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5144 fi 5145 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5147$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5148if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5149 $as_echo_n "(cached) " >&6 5150else 5151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5152/* end confdefs.h. */ 5153int i; 5154_ACEOF 5155if ac_fn_c_try_compile "$LINENO"; then : 5156 xorg_cv_cc_flag_unused_command_line_argument=yes 5157else 5158 xorg_cv_cc_flag_unused_command_line_argument=no 5159fi 5160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5161fi 5162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5163$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5164 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5165 CFLAGS="$xorg_testset_save_CFLAGS" 5166fi 5167 5168found="no" 5169 5170 if test $found = "no" ; then 5171 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5172 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5173 fi 5174 5175 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5176 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5177 fi 5178 5179 CFLAGS="$CFLAGS -Wmissing-declarations" 5180 5181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5182$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 5183 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5184 if eval \${$cacheid+:} false; then : 5185 $as_echo_n "(cached) " >&6 5186else 5187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5188/* end confdefs.h. */ 5189int i; 5190int 5191main () 5192{ 5193 5194 ; 5195 return 0; 5196} 5197_ACEOF 5198if ac_fn_c_try_link "$LINENO"; then : 5199 eval $cacheid=yes 5200else 5201 eval $cacheid=no 5202fi 5203rm -f core conftest.err conftest.$ac_objext \ 5204 conftest$ac_exeext conftest.$ac_ext 5205fi 5206 5207 5208 CFLAGS="$xorg_testset_save_CFLAGS" 5209 5210 eval supported=\$$cacheid 5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5212$as_echo "$supported" >&6; } 5213 if test "$supported" = "yes" ; then 5214 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5215 found="yes" 5216 fi 5217 fi 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233xorg_testset_save_CFLAGS="$CFLAGS" 5234 5235if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5236 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5238$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5239if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5240 $as_echo_n "(cached) " >&6 5241else 5242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5243/* end confdefs.h. */ 5244int i; 5245_ACEOF 5246if ac_fn_c_try_compile "$LINENO"; then : 5247 xorg_cv_cc_flag_unknown_warning_option=yes 5248else 5249 xorg_cv_cc_flag_unknown_warning_option=no 5250fi 5251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5252fi 5253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5254$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5255 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5256 CFLAGS="$xorg_testset_save_CFLAGS" 5257fi 5258 5259if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5260 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5261 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5262 fi 5263 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5265$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5266if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5267 $as_echo_n "(cached) " >&6 5268else 5269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5270/* end confdefs.h. */ 5271int i; 5272_ACEOF 5273if ac_fn_c_try_compile "$LINENO"; then : 5274 xorg_cv_cc_flag_unused_command_line_argument=yes 5275else 5276 xorg_cv_cc_flag_unused_command_line_argument=no 5277fi 5278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5279fi 5280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5281$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5282 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5283 CFLAGS="$xorg_testset_save_CFLAGS" 5284fi 5285 5286found="no" 5287 5288 if test $found = "no" ; then 5289 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5290 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5291 fi 5292 5293 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5294 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5295 fi 5296 5297 CFLAGS="$CFLAGS -Wformat=2" 5298 5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5300$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5301 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh` 5302 if eval \${$cacheid+:} false; then : 5303 $as_echo_n "(cached) " >&6 5304else 5305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5306/* end confdefs.h. */ 5307int i; 5308int 5309main () 5310{ 5311 5312 ; 5313 return 0; 5314} 5315_ACEOF 5316if ac_fn_c_try_link "$LINENO"; then : 5317 eval $cacheid=yes 5318else 5319 eval $cacheid=no 5320fi 5321rm -f core conftest.err conftest.$ac_objext \ 5322 conftest$ac_exeext conftest.$ac_ext 5323fi 5324 5325 5326 CFLAGS="$xorg_testset_save_CFLAGS" 5327 5328 eval supported=\$$cacheid 5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5330$as_echo "$supported" >&6; } 5331 if test "$supported" = "yes" ; then 5332 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5333 found="yes" 5334 fi 5335 fi 5336 5337 if test $found = "no" ; then 5338 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5339 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5340 fi 5341 5342 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5344 fi 5345 5346 CFLAGS="$CFLAGS -Wformat" 5347 5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5349$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5350 cacheid=xorg_cv_cc_flag__Wformat 5351 if eval \${$cacheid+:} false; then : 5352 $as_echo_n "(cached) " >&6 5353else 5354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5355/* end confdefs.h. */ 5356int i; 5357int 5358main () 5359{ 5360 5361 ; 5362 return 0; 5363} 5364_ACEOF 5365if ac_fn_c_try_link "$LINENO"; then : 5366 eval $cacheid=yes 5367else 5368 eval $cacheid=no 5369fi 5370rm -f core conftest.err conftest.$ac_objext \ 5371 conftest$ac_exeext conftest.$ac_ext 5372fi 5373 5374 5375 CFLAGS="$xorg_testset_save_CFLAGS" 5376 5377 eval supported=\$$cacheid 5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5379$as_echo "$supported" >&6; } 5380 if test "$supported" = "yes" ; then 5381 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5382 found="yes" 5383 fi 5384 fi 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402xorg_testset_save_CFLAGS="$CFLAGS" 5403 5404if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5405 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5407$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5408if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5409 $as_echo_n "(cached) " >&6 5410else 5411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5412/* end confdefs.h. */ 5413int i; 5414_ACEOF 5415if ac_fn_c_try_compile "$LINENO"; then : 5416 xorg_cv_cc_flag_unknown_warning_option=yes 5417else 5418 xorg_cv_cc_flag_unknown_warning_option=no 5419fi 5420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5421fi 5422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5423$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5424 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5425 CFLAGS="$xorg_testset_save_CFLAGS" 5426fi 5427 5428if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5429 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5430 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5431 fi 5432 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5434$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5435if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5436 $as_echo_n "(cached) " >&6 5437else 5438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5439/* end confdefs.h. */ 5440int i; 5441_ACEOF 5442if ac_fn_c_try_compile "$LINENO"; then : 5443 xorg_cv_cc_flag_unused_command_line_argument=yes 5444else 5445 xorg_cv_cc_flag_unused_command_line_argument=no 5446fi 5447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5448fi 5449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5450$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5451 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5452 CFLAGS="$xorg_testset_save_CFLAGS" 5453fi 5454 5455found="no" 5456 5457 if test $found = "no" ; then 5458 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5459 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5460 fi 5461 5462 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5463 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5464 fi 5465 5466 CFLAGS="$CFLAGS -Wstrict-prototypes" 5467 5468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5469$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5470 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5471 if eval \${$cacheid+:} false; then : 5472 $as_echo_n "(cached) " >&6 5473else 5474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5475/* end confdefs.h. */ 5476int i; 5477int 5478main () 5479{ 5480 5481 ; 5482 return 0; 5483} 5484_ACEOF 5485if ac_fn_c_try_link "$LINENO"; then : 5486 eval $cacheid=yes 5487else 5488 eval $cacheid=no 5489fi 5490rm -f core conftest.err conftest.$ac_objext \ 5491 conftest$ac_exeext conftest.$ac_ext 5492fi 5493 5494 5495 CFLAGS="$xorg_testset_save_CFLAGS" 5496 5497 eval supported=\$$cacheid 5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5499$as_echo "$supported" >&6; } 5500 if test "$supported" = "yes" ; then 5501 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5502 found="yes" 5503 fi 5504 fi 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520xorg_testset_save_CFLAGS="$CFLAGS" 5521 5522if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5523 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5525$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5526if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5527 $as_echo_n "(cached) " >&6 5528else 5529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5530/* end confdefs.h. */ 5531int i; 5532_ACEOF 5533if ac_fn_c_try_compile "$LINENO"; then : 5534 xorg_cv_cc_flag_unknown_warning_option=yes 5535else 5536 xorg_cv_cc_flag_unknown_warning_option=no 5537fi 5538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5539fi 5540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5541$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5542 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5543 CFLAGS="$xorg_testset_save_CFLAGS" 5544fi 5545 5546if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5547 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5548 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5549 fi 5550 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5552$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5553if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5554 $as_echo_n "(cached) " >&6 5555else 5556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5557/* end confdefs.h. */ 5558int i; 5559_ACEOF 5560if ac_fn_c_try_compile "$LINENO"; then : 5561 xorg_cv_cc_flag_unused_command_line_argument=yes 5562else 5563 xorg_cv_cc_flag_unused_command_line_argument=no 5564fi 5565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5566fi 5567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5568$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5569 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5570 CFLAGS="$xorg_testset_save_CFLAGS" 5571fi 5572 5573found="no" 5574 5575 if test $found = "no" ; then 5576 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5577 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5578 fi 5579 5580 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5581 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5582 fi 5583 5584 CFLAGS="$CFLAGS -Wmissing-prototypes" 5585 5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5587$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5588 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5589 if eval \${$cacheid+:} false; then : 5590 $as_echo_n "(cached) " >&6 5591else 5592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5593/* end confdefs.h. */ 5594int i; 5595int 5596main () 5597{ 5598 5599 ; 5600 return 0; 5601} 5602_ACEOF 5603if ac_fn_c_try_link "$LINENO"; then : 5604 eval $cacheid=yes 5605else 5606 eval $cacheid=no 5607fi 5608rm -f core conftest.err conftest.$ac_objext \ 5609 conftest$ac_exeext conftest.$ac_ext 5610fi 5611 5612 5613 CFLAGS="$xorg_testset_save_CFLAGS" 5614 5615 eval supported=\$$cacheid 5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5617$as_echo "$supported" >&6; } 5618 if test "$supported" = "yes" ; then 5619 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5620 found="yes" 5621 fi 5622 fi 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638xorg_testset_save_CFLAGS="$CFLAGS" 5639 5640if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5641 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5643$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5644if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5645 $as_echo_n "(cached) " >&6 5646else 5647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5648/* end confdefs.h. */ 5649int i; 5650_ACEOF 5651if ac_fn_c_try_compile "$LINENO"; then : 5652 xorg_cv_cc_flag_unknown_warning_option=yes 5653else 5654 xorg_cv_cc_flag_unknown_warning_option=no 5655fi 5656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5657fi 5658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5659$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5660 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5661 CFLAGS="$xorg_testset_save_CFLAGS" 5662fi 5663 5664if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5665 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5666 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5667 fi 5668 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5670$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5671if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5672 $as_echo_n "(cached) " >&6 5673else 5674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5675/* end confdefs.h. */ 5676int i; 5677_ACEOF 5678if ac_fn_c_try_compile "$LINENO"; then : 5679 xorg_cv_cc_flag_unused_command_line_argument=yes 5680else 5681 xorg_cv_cc_flag_unused_command_line_argument=no 5682fi 5683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5684fi 5685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5686$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5687 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5688 CFLAGS="$xorg_testset_save_CFLAGS" 5689fi 5690 5691found="no" 5692 5693 if test $found = "no" ; then 5694 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5695 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5696 fi 5697 5698 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5699 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5700 fi 5701 5702 CFLAGS="$CFLAGS -Wnested-externs" 5703 5704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5705$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5706 cacheid=xorg_cv_cc_flag__Wnested_externs 5707 if eval \${$cacheid+:} false; then : 5708 $as_echo_n "(cached) " >&6 5709else 5710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5711/* end confdefs.h. */ 5712int i; 5713int 5714main () 5715{ 5716 5717 ; 5718 return 0; 5719} 5720_ACEOF 5721if ac_fn_c_try_link "$LINENO"; then : 5722 eval $cacheid=yes 5723else 5724 eval $cacheid=no 5725fi 5726rm -f core conftest.err conftest.$ac_objext \ 5727 conftest$ac_exeext conftest.$ac_ext 5728fi 5729 5730 5731 CFLAGS="$xorg_testset_save_CFLAGS" 5732 5733 eval supported=\$$cacheid 5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5735$as_echo "$supported" >&6; } 5736 if test "$supported" = "yes" ; then 5737 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5738 found="yes" 5739 fi 5740 fi 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756xorg_testset_save_CFLAGS="$CFLAGS" 5757 5758if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5759 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5761$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5762if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5763 $as_echo_n "(cached) " >&6 5764else 5765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5766/* end confdefs.h. */ 5767int i; 5768_ACEOF 5769if ac_fn_c_try_compile "$LINENO"; then : 5770 xorg_cv_cc_flag_unknown_warning_option=yes 5771else 5772 xorg_cv_cc_flag_unknown_warning_option=no 5773fi 5774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5775fi 5776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5777$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5778 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5779 CFLAGS="$xorg_testset_save_CFLAGS" 5780fi 5781 5782if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5783 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5784 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5785 fi 5786 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5788$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5789if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5790 $as_echo_n "(cached) " >&6 5791else 5792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5793/* end confdefs.h. */ 5794int i; 5795_ACEOF 5796if ac_fn_c_try_compile "$LINENO"; then : 5797 xorg_cv_cc_flag_unused_command_line_argument=yes 5798else 5799 xorg_cv_cc_flag_unused_command_line_argument=no 5800fi 5801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5802fi 5803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5804$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5805 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5806 CFLAGS="$xorg_testset_save_CFLAGS" 5807fi 5808 5809found="no" 5810 5811 if test $found = "no" ; then 5812 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5813 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5814 fi 5815 5816 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5818 fi 5819 5820 CFLAGS="$CFLAGS -Wbad-function-cast" 5821 5822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5823$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5824 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5825 if eval \${$cacheid+:} false; then : 5826 $as_echo_n "(cached) " >&6 5827else 5828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5829/* end confdefs.h. */ 5830int i; 5831int 5832main () 5833{ 5834 5835 ; 5836 return 0; 5837} 5838_ACEOF 5839if ac_fn_c_try_link "$LINENO"; then : 5840 eval $cacheid=yes 5841else 5842 eval $cacheid=no 5843fi 5844rm -f core conftest.err conftest.$ac_objext \ 5845 conftest$ac_exeext conftest.$ac_ext 5846fi 5847 5848 5849 CFLAGS="$xorg_testset_save_CFLAGS" 5850 5851 eval supported=\$$cacheid 5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5853$as_echo "$supported" >&6; } 5854 if test "$supported" = "yes" ; then 5855 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5856 found="yes" 5857 fi 5858 fi 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874xorg_testset_save_CFLAGS="$CFLAGS" 5875 5876if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5877 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5879$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5880if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5881 $as_echo_n "(cached) " >&6 5882else 5883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5884/* end confdefs.h. */ 5885int i; 5886_ACEOF 5887if ac_fn_c_try_compile "$LINENO"; then : 5888 xorg_cv_cc_flag_unknown_warning_option=yes 5889else 5890 xorg_cv_cc_flag_unknown_warning_option=no 5891fi 5892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5893fi 5894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5895$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5896 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5897 CFLAGS="$xorg_testset_save_CFLAGS" 5898fi 5899 5900if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5901 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5902 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5903 fi 5904 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5906$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5907if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5908 $as_echo_n "(cached) " >&6 5909else 5910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5911/* end confdefs.h. */ 5912int i; 5913_ACEOF 5914if ac_fn_c_try_compile "$LINENO"; then : 5915 xorg_cv_cc_flag_unused_command_line_argument=yes 5916else 5917 xorg_cv_cc_flag_unused_command_line_argument=no 5918fi 5919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5920fi 5921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5922$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5923 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5924 CFLAGS="$xorg_testset_save_CFLAGS" 5925fi 5926 5927found="no" 5928 5929 if test $found = "no" ; then 5930 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5931 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5932 fi 5933 5934 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5935 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5936 fi 5937 5938 CFLAGS="$CFLAGS -Wold-style-definition" 5939 5940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5941$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5942 cacheid=xorg_cv_cc_flag__Wold_style_definition 5943 if eval \${$cacheid+:} false; then : 5944 $as_echo_n "(cached) " >&6 5945else 5946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5947/* end confdefs.h. */ 5948int i; 5949int 5950main () 5951{ 5952 5953 ; 5954 return 0; 5955} 5956_ACEOF 5957if ac_fn_c_try_link "$LINENO"; then : 5958 eval $cacheid=yes 5959else 5960 eval $cacheid=no 5961fi 5962rm -f core conftest.err conftest.$ac_objext \ 5963 conftest$ac_exeext conftest.$ac_ext 5964fi 5965 5966 5967 CFLAGS="$xorg_testset_save_CFLAGS" 5968 5969 eval supported=\$$cacheid 5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5971$as_echo "$supported" >&6; } 5972 if test "$supported" = "yes" ; then 5973 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5974 found="yes" 5975 fi 5976 fi 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992xorg_testset_save_CFLAGS="$CFLAGS" 5993 5994if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5995 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5997$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5998if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5999 $as_echo_n "(cached) " >&6 6000else 6001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6002/* end confdefs.h. */ 6003int i; 6004_ACEOF 6005if ac_fn_c_try_compile "$LINENO"; then : 6006 xorg_cv_cc_flag_unknown_warning_option=yes 6007else 6008 xorg_cv_cc_flag_unknown_warning_option=no 6009fi 6010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6011fi 6012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6013$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6014 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6015 CFLAGS="$xorg_testset_save_CFLAGS" 6016fi 6017 6018if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6019 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6020 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6021 fi 6022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6024$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6025if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6026 $as_echo_n "(cached) " >&6 6027else 6028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6029/* end confdefs.h. */ 6030int i; 6031_ACEOF 6032if ac_fn_c_try_compile "$LINENO"; then : 6033 xorg_cv_cc_flag_unused_command_line_argument=yes 6034else 6035 xorg_cv_cc_flag_unused_command_line_argument=no 6036fi 6037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6038fi 6039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6040$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6041 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6042 CFLAGS="$xorg_testset_save_CFLAGS" 6043fi 6044 6045found="no" 6046 6047 if test $found = "no" ; then 6048 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6049 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6050 fi 6051 6052 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6054 fi 6055 6056 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6057 6058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6059$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6060 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6061 if eval \${$cacheid+:} false; then : 6062 $as_echo_n "(cached) " >&6 6063else 6064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6065/* end confdefs.h. */ 6066int i; 6067int 6068main () 6069{ 6070 6071 ; 6072 return 0; 6073} 6074_ACEOF 6075if ac_fn_c_try_link "$LINENO"; then : 6076 eval $cacheid=yes 6077else 6078 eval $cacheid=no 6079fi 6080rm -f core conftest.err conftest.$ac_objext \ 6081 conftest$ac_exeext conftest.$ac_ext 6082fi 6083 6084 6085 CFLAGS="$xorg_testset_save_CFLAGS" 6086 6087 eval supported=\$$cacheid 6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6089$as_echo "$supported" >&6; } 6090 if test "$supported" = "yes" ; then 6091 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6092 found="yes" 6093 fi 6094 fi 6095 6096 6097 6098 6099 6100# This chunk adds additional warnings that could catch undesired effects. 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114xorg_testset_save_CFLAGS="$CFLAGS" 6115 6116if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6117 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6119$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6120if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6121 $as_echo_n "(cached) " >&6 6122else 6123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6124/* end confdefs.h. */ 6125int i; 6126_ACEOF 6127if ac_fn_c_try_compile "$LINENO"; then : 6128 xorg_cv_cc_flag_unknown_warning_option=yes 6129else 6130 xorg_cv_cc_flag_unknown_warning_option=no 6131fi 6132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6133fi 6134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6135$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6136 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6137 CFLAGS="$xorg_testset_save_CFLAGS" 6138fi 6139 6140if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6141 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6142 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6143 fi 6144 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6146$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6147if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6148 $as_echo_n "(cached) " >&6 6149else 6150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6151/* end confdefs.h. */ 6152int i; 6153_ACEOF 6154if ac_fn_c_try_compile "$LINENO"; then : 6155 xorg_cv_cc_flag_unused_command_line_argument=yes 6156else 6157 xorg_cv_cc_flag_unused_command_line_argument=no 6158fi 6159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6160fi 6161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6162$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6163 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6164 CFLAGS="$xorg_testset_save_CFLAGS" 6165fi 6166 6167found="no" 6168 6169 if test $found = "no" ; then 6170 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6171 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6172 fi 6173 6174 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6175 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6176 fi 6177 6178 CFLAGS="$CFLAGS -Wunused" 6179 6180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6181$as_echo_n "checking if $CC supports -Wunused... " >&6; } 6182 cacheid=xorg_cv_cc_flag__Wunused 6183 if eval \${$cacheid+:} false; then : 6184 $as_echo_n "(cached) " >&6 6185else 6186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6187/* end confdefs.h. */ 6188int i; 6189int 6190main () 6191{ 6192 6193 ; 6194 return 0; 6195} 6196_ACEOF 6197if ac_fn_c_try_link "$LINENO"; then : 6198 eval $cacheid=yes 6199else 6200 eval $cacheid=no 6201fi 6202rm -f core conftest.err conftest.$ac_objext \ 6203 conftest$ac_exeext conftest.$ac_ext 6204fi 6205 6206 6207 CFLAGS="$xorg_testset_save_CFLAGS" 6208 6209 eval supported=\$$cacheid 6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6211$as_echo "$supported" >&6; } 6212 if test "$supported" = "yes" ; then 6213 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6214 found="yes" 6215 fi 6216 fi 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232xorg_testset_save_CFLAGS="$CFLAGS" 6233 6234if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6235 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6237$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6238if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6239 $as_echo_n "(cached) " >&6 6240else 6241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6242/* end confdefs.h. */ 6243int i; 6244_ACEOF 6245if ac_fn_c_try_compile "$LINENO"; then : 6246 xorg_cv_cc_flag_unknown_warning_option=yes 6247else 6248 xorg_cv_cc_flag_unknown_warning_option=no 6249fi 6250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6251fi 6252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6253$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6254 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6255 CFLAGS="$xorg_testset_save_CFLAGS" 6256fi 6257 6258if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6259 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6260 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6261 fi 6262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6264$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6265if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6266 $as_echo_n "(cached) " >&6 6267else 6268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6269/* end confdefs.h. */ 6270int i; 6271_ACEOF 6272if ac_fn_c_try_compile "$LINENO"; then : 6273 xorg_cv_cc_flag_unused_command_line_argument=yes 6274else 6275 xorg_cv_cc_flag_unused_command_line_argument=no 6276fi 6277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6278fi 6279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6280$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6281 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6282 CFLAGS="$xorg_testset_save_CFLAGS" 6283fi 6284 6285found="no" 6286 6287 if test $found = "no" ; then 6288 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6289 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6290 fi 6291 6292 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6293 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6294 fi 6295 6296 CFLAGS="$CFLAGS -Wuninitialized" 6297 6298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6299$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6300 cacheid=xorg_cv_cc_flag__Wuninitialized 6301 if eval \${$cacheid+:} false; then : 6302 $as_echo_n "(cached) " >&6 6303else 6304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6305/* end confdefs.h. */ 6306int i; 6307int 6308main () 6309{ 6310 6311 ; 6312 return 0; 6313} 6314_ACEOF 6315if ac_fn_c_try_link "$LINENO"; then : 6316 eval $cacheid=yes 6317else 6318 eval $cacheid=no 6319fi 6320rm -f core conftest.err conftest.$ac_objext \ 6321 conftest$ac_exeext conftest.$ac_ext 6322fi 6323 6324 6325 CFLAGS="$xorg_testset_save_CFLAGS" 6326 6327 eval supported=\$$cacheid 6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6329$as_echo "$supported" >&6; } 6330 if test "$supported" = "yes" ; then 6331 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6332 found="yes" 6333 fi 6334 fi 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350xorg_testset_save_CFLAGS="$CFLAGS" 6351 6352if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6353 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6355$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6356if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6357 $as_echo_n "(cached) " >&6 6358else 6359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6360/* end confdefs.h. */ 6361int i; 6362_ACEOF 6363if ac_fn_c_try_compile "$LINENO"; then : 6364 xorg_cv_cc_flag_unknown_warning_option=yes 6365else 6366 xorg_cv_cc_flag_unknown_warning_option=no 6367fi 6368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6369fi 6370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6371$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6372 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6373 CFLAGS="$xorg_testset_save_CFLAGS" 6374fi 6375 6376if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6377 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6378 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6379 fi 6380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6382$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6383if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6384 $as_echo_n "(cached) " >&6 6385else 6386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6387/* end confdefs.h. */ 6388int i; 6389_ACEOF 6390if ac_fn_c_try_compile "$LINENO"; then : 6391 xorg_cv_cc_flag_unused_command_line_argument=yes 6392else 6393 xorg_cv_cc_flag_unused_command_line_argument=no 6394fi 6395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6396fi 6397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6398$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6399 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6400 CFLAGS="$xorg_testset_save_CFLAGS" 6401fi 6402 6403found="no" 6404 6405 if test $found = "no" ; then 6406 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6407 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6408 fi 6409 6410 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6411 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6412 fi 6413 6414 CFLAGS="$CFLAGS -Wshadow" 6415 6416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6417$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6418 cacheid=xorg_cv_cc_flag__Wshadow 6419 if eval \${$cacheid+:} false; then : 6420 $as_echo_n "(cached) " >&6 6421else 6422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6423/* end confdefs.h. */ 6424int i; 6425int 6426main () 6427{ 6428 6429 ; 6430 return 0; 6431} 6432_ACEOF 6433if ac_fn_c_try_link "$LINENO"; then : 6434 eval $cacheid=yes 6435else 6436 eval $cacheid=no 6437fi 6438rm -f core conftest.err conftest.$ac_objext \ 6439 conftest$ac_exeext conftest.$ac_ext 6440fi 6441 6442 6443 CFLAGS="$xorg_testset_save_CFLAGS" 6444 6445 eval supported=\$$cacheid 6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6447$as_echo "$supported" >&6; } 6448 if test "$supported" = "yes" ; then 6449 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6450 found="yes" 6451 fi 6452 fi 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468xorg_testset_save_CFLAGS="$CFLAGS" 6469 6470if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6471 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6473$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6474if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6475 $as_echo_n "(cached) " >&6 6476else 6477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6478/* end confdefs.h. */ 6479int i; 6480_ACEOF 6481if ac_fn_c_try_compile "$LINENO"; then : 6482 xorg_cv_cc_flag_unknown_warning_option=yes 6483else 6484 xorg_cv_cc_flag_unknown_warning_option=no 6485fi 6486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6487fi 6488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6489$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6490 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6491 CFLAGS="$xorg_testset_save_CFLAGS" 6492fi 6493 6494if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6495 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6496 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6497 fi 6498 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6500$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6501if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6502 $as_echo_n "(cached) " >&6 6503else 6504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6505/* end confdefs.h. */ 6506int i; 6507_ACEOF 6508if ac_fn_c_try_compile "$LINENO"; then : 6509 xorg_cv_cc_flag_unused_command_line_argument=yes 6510else 6511 xorg_cv_cc_flag_unused_command_line_argument=no 6512fi 6513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6514fi 6515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6516$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6517 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6518 CFLAGS="$xorg_testset_save_CFLAGS" 6519fi 6520 6521found="no" 6522 6523 if test $found = "no" ; then 6524 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6525 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6526 fi 6527 6528 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6529 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6530 fi 6531 6532 CFLAGS="$CFLAGS -Wcast-qual" 6533 6534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5 6535$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; } 6536 cacheid=xorg_cv_cc_flag__Wcast_qual 6537 if eval \${$cacheid+:} false; then : 6538 $as_echo_n "(cached) " >&6 6539else 6540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6541/* end confdefs.h. */ 6542int i; 6543int 6544main () 6545{ 6546 6547 ; 6548 return 0; 6549} 6550_ACEOF 6551if ac_fn_c_try_link "$LINENO"; then : 6552 eval $cacheid=yes 6553else 6554 eval $cacheid=no 6555fi 6556rm -f core conftest.err conftest.$ac_objext \ 6557 conftest$ac_exeext conftest.$ac_ext 6558fi 6559 6560 6561 CFLAGS="$xorg_testset_save_CFLAGS" 6562 6563 eval supported=\$$cacheid 6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6565$as_echo "$supported" >&6; } 6566 if test "$supported" = "yes" ; then 6567 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 6568 found="yes" 6569 fi 6570 fi 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586xorg_testset_save_CFLAGS="$CFLAGS" 6587 6588if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6589 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6591$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6592if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6593 $as_echo_n "(cached) " >&6 6594else 6595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6596/* end confdefs.h. */ 6597int i; 6598_ACEOF 6599if ac_fn_c_try_compile "$LINENO"; then : 6600 xorg_cv_cc_flag_unknown_warning_option=yes 6601else 6602 xorg_cv_cc_flag_unknown_warning_option=no 6603fi 6604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6605fi 6606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6607$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6608 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6609 CFLAGS="$xorg_testset_save_CFLAGS" 6610fi 6611 6612if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6613 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6614 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6615 fi 6616 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6618$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6619if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6620 $as_echo_n "(cached) " >&6 6621else 6622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6623/* end confdefs.h. */ 6624int i; 6625_ACEOF 6626if ac_fn_c_try_compile "$LINENO"; then : 6627 xorg_cv_cc_flag_unused_command_line_argument=yes 6628else 6629 xorg_cv_cc_flag_unused_command_line_argument=no 6630fi 6631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6632fi 6633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6634$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6635 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6636 CFLAGS="$xorg_testset_save_CFLAGS" 6637fi 6638 6639found="no" 6640 6641 if test $found = "no" ; then 6642 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6643 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6644 fi 6645 6646 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6647 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6648 fi 6649 6650 CFLAGS="$CFLAGS -Wmissing-noreturn" 6651 6652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6653$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6654 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6655 if eval \${$cacheid+:} false; then : 6656 $as_echo_n "(cached) " >&6 6657else 6658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6659/* end confdefs.h. */ 6660int i; 6661int 6662main () 6663{ 6664 6665 ; 6666 return 0; 6667} 6668_ACEOF 6669if ac_fn_c_try_link "$LINENO"; then : 6670 eval $cacheid=yes 6671else 6672 eval $cacheid=no 6673fi 6674rm -f core conftest.err conftest.$ac_objext \ 6675 conftest$ac_exeext conftest.$ac_ext 6676fi 6677 6678 6679 CFLAGS="$xorg_testset_save_CFLAGS" 6680 6681 eval supported=\$$cacheid 6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6683$as_echo "$supported" >&6; } 6684 if test "$supported" = "yes" ; then 6685 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6686 found="yes" 6687 fi 6688 fi 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704xorg_testset_save_CFLAGS="$CFLAGS" 6705 6706if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6707 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6709$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6710if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6711 $as_echo_n "(cached) " >&6 6712else 6713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6714/* end confdefs.h. */ 6715int i; 6716_ACEOF 6717if ac_fn_c_try_compile "$LINENO"; then : 6718 xorg_cv_cc_flag_unknown_warning_option=yes 6719else 6720 xorg_cv_cc_flag_unknown_warning_option=no 6721fi 6722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6723fi 6724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6725$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6726 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6727 CFLAGS="$xorg_testset_save_CFLAGS" 6728fi 6729 6730if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6731 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6732 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6733 fi 6734 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6736$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6737if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6738 $as_echo_n "(cached) " >&6 6739else 6740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6741/* end confdefs.h. */ 6742int i; 6743_ACEOF 6744if ac_fn_c_try_compile "$LINENO"; then : 6745 xorg_cv_cc_flag_unused_command_line_argument=yes 6746else 6747 xorg_cv_cc_flag_unused_command_line_argument=no 6748fi 6749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6750fi 6751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6752$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6753 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6754 CFLAGS="$xorg_testset_save_CFLAGS" 6755fi 6756 6757found="no" 6758 6759 if test $found = "no" ; then 6760 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6761 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6762 fi 6763 6764 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6765 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6766 fi 6767 6768 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6769 6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6771$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6772 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6773 if eval \${$cacheid+:} false; then : 6774 $as_echo_n "(cached) " >&6 6775else 6776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6777/* end confdefs.h. */ 6778int i; 6779int 6780main () 6781{ 6782 6783 ; 6784 return 0; 6785} 6786_ACEOF 6787if ac_fn_c_try_link "$LINENO"; then : 6788 eval $cacheid=yes 6789else 6790 eval $cacheid=no 6791fi 6792rm -f core conftest.err conftest.$ac_objext \ 6793 conftest$ac_exeext conftest.$ac_ext 6794fi 6795 6796 6797 CFLAGS="$xorg_testset_save_CFLAGS" 6798 6799 eval supported=\$$cacheid 6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6801$as_echo "$supported" >&6; } 6802 if test "$supported" = "yes" ; then 6803 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6804 found="yes" 6805 fi 6806 fi 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822xorg_testset_save_CFLAGS="$CFLAGS" 6823 6824if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6825 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6827$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6828if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6829 $as_echo_n "(cached) " >&6 6830else 6831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6832/* end confdefs.h. */ 6833int i; 6834_ACEOF 6835if ac_fn_c_try_compile "$LINENO"; then : 6836 xorg_cv_cc_flag_unknown_warning_option=yes 6837else 6838 xorg_cv_cc_flag_unknown_warning_option=no 6839fi 6840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6841fi 6842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6843$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6844 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6845 CFLAGS="$xorg_testset_save_CFLAGS" 6846fi 6847 6848if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6849 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6850 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6851 fi 6852 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6854$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6855if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6856 $as_echo_n "(cached) " >&6 6857else 6858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6859/* end confdefs.h. */ 6860int i; 6861_ACEOF 6862if ac_fn_c_try_compile "$LINENO"; then : 6863 xorg_cv_cc_flag_unused_command_line_argument=yes 6864else 6865 xorg_cv_cc_flag_unused_command_line_argument=no 6866fi 6867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6868fi 6869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6870$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6871 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6872 CFLAGS="$xorg_testset_save_CFLAGS" 6873fi 6874 6875found="no" 6876 6877 if test $found = "no" ; then 6878 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6879 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6880 fi 6881 6882 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6883 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6884 fi 6885 6886 CFLAGS="$CFLAGS -Wredundant-decls" 6887 6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6889$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6890 cacheid=xorg_cv_cc_flag__Wredundant_decls 6891 if eval \${$cacheid+:} false; then : 6892 $as_echo_n "(cached) " >&6 6893else 6894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6895/* end confdefs.h. */ 6896int i; 6897int 6898main () 6899{ 6900 6901 ; 6902 return 0; 6903} 6904_ACEOF 6905if ac_fn_c_try_link "$LINENO"; then : 6906 eval $cacheid=yes 6907else 6908 eval $cacheid=no 6909fi 6910rm -f core conftest.err conftest.$ac_objext \ 6911 conftest$ac_exeext conftest.$ac_ext 6912fi 6913 6914 6915 CFLAGS="$xorg_testset_save_CFLAGS" 6916 6917 eval supported=\$$cacheid 6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6919$as_echo "$supported" >&6; } 6920 if test "$supported" = "yes" ; then 6921 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6922 found="yes" 6923 fi 6924 fi 6925 6926 6927 6928# These are currently disabled because they are noisy. They will be enabled 6929# in the future once the codebase is sufficiently modernized to silence 6930# them. For now, I don't want them to drown out the other warnings. 6931# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 6932# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6933# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6934 6935# Turn some warnings into errors, so we don't accidently get successful builds 6936# when there are problems that should be fixed. 6937 6938if test "x$SELECTIVE_WERROR" = "xyes" ; then 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952xorg_testset_save_CFLAGS="$CFLAGS" 6953 6954if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6955 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6957$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6958if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6959 $as_echo_n "(cached) " >&6 6960else 6961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6962/* end confdefs.h. */ 6963int i; 6964_ACEOF 6965if ac_fn_c_try_compile "$LINENO"; then : 6966 xorg_cv_cc_flag_unknown_warning_option=yes 6967else 6968 xorg_cv_cc_flag_unknown_warning_option=no 6969fi 6970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6971fi 6972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6973$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6974 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6975 CFLAGS="$xorg_testset_save_CFLAGS" 6976fi 6977 6978if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6979 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6980 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6981 fi 6982 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6984$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6985if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6986 $as_echo_n "(cached) " >&6 6987else 6988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6989/* end confdefs.h. */ 6990int i; 6991_ACEOF 6992if ac_fn_c_try_compile "$LINENO"; then : 6993 xorg_cv_cc_flag_unused_command_line_argument=yes 6994else 6995 xorg_cv_cc_flag_unused_command_line_argument=no 6996fi 6997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6998fi 6999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7000$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7001 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7002 CFLAGS="$xorg_testset_save_CFLAGS" 7003fi 7004 7005found="no" 7006 7007 if test $found = "no" ; then 7008 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7009 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7010 fi 7011 7012 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7013 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7014 fi 7015 7016 CFLAGS="$CFLAGS -Werror=implicit" 7017 7018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7019$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 7020 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh` 7021 if eval \${$cacheid+:} false; then : 7022 $as_echo_n "(cached) " >&6 7023else 7024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7025/* end confdefs.h. */ 7026int i; 7027int 7028main () 7029{ 7030 7031 ; 7032 return 0; 7033} 7034_ACEOF 7035if ac_fn_c_try_link "$LINENO"; then : 7036 eval $cacheid=yes 7037else 7038 eval $cacheid=no 7039fi 7040rm -f core conftest.err conftest.$ac_objext \ 7041 conftest$ac_exeext conftest.$ac_ext 7042fi 7043 7044 7045 CFLAGS="$xorg_testset_save_CFLAGS" 7046 7047 eval supported=\$$cacheid 7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7049$as_echo "$supported" >&6; } 7050 if test "$supported" = "yes" ; then 7051 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7052 found="yes" 7053 fi 7054 fi 7055 7056 if test $found = "no" ; then 7057 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7058 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7059 fi 7060 7061 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7062 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7063 fi 7064 7065 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7066 7067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 7068$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7069 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh` 7070 if eval \${$cacheid+:} false; then : 7071 $as_echo_n "(cached) " >&6 7072else 7073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7074/* end confdefs.h. */ 7075int i; 7076int 7077main () 7078{ 7079 7080 ; 7081 return 0; 7082} 7083_ACEOF 7084if ac_fn_c_try_link "$LINENO"; then : 7085 eval $cacheid=yes 7086else 7087 eval $cacheid=no 7088fi 7089rm -f core conftest.err conftest.$ac_objext \ 7090 conftest$ac_exeext conftest.$ac_ext 7091fi 7092 7093 7094 CFLAGS="$xorg_testset_save_CFLAGS" 7095 7096 eval supported=\$$cacheid 7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7098$as_echo "$supported" >&6; } 7099 if test "$supported" = "yes" ; then 7100 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7101 found="yes" 7102 fi 7103 fi 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119xorg_testset_save_CFLAGS="$CFLAGS" 7120 7121if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7122 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7124$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7125if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7126 $as_echo_n "(cached) " >&6 7127else 7128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7129/* end confdefs.h. */ 7130int i; 7131_ACEOF 7132if ac_fn_c_try_compile "$LINENO"; then : 7133 xorg_cv_cc_flag_unknown_warning_option=yes 7134else 7135 xorg_cv_cc_flag_unknown_warning_option=no 7136fi 7137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7138fi 7139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7140$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7141 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7142 CFLAGS="$xorg_testset_save_CFLAGS" 7143fi 7144 7145if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7146 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7147 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7148 fi 7149 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7151$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7152if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7153 $as_echo_n "(cached) " >&6 7154else 7155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7156/* end confdefs.h. */ 7157int i; 7158_ACEOF 7159if ac_fn_c_try_compile "$LINENO"; then : 7160 xorg_cv_cc_flag_unused_command_line_argument=yes 7161else 7162 xorg_cv_cc_flag_unused_command_line_argument=no 7163fi 7164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7165fi 7166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7167$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7168 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7169 CFLAGS="$xorg_testset_save_CFLAGS" 7170fi 7171 7172found="no" 7173 7174 if test $found = "no" ; then 7175 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7176 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7177 fi 7178 7179 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7180 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7181 fi 7182 7183 CFLAGS="$CFLAGS -Werror=nonnull" 7184 7185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7186$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7187 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh` 7188 if eval \${$cacheid+:} false; then : 7189 $as_echo_n "(cached) " >&6 7190else 7191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7192/* end confdefs.h. */ 7193int i; 7194int 7195main () 7196{ 7197 7198 ; 7199 return 0; 7200} 7201_ACEOF 7202if ac_fn_c_try_link "$LINENO"; then : 7203 eval $cacheid=yes 7204else 7205 eval $cacheid=no 7206fi 7207rm -f core conftest.err conftest.$ac_objext \ 7208 conftest$ac_exeext conftest.$ac_ext 7209fi 7210 7211 7212 CFLAGS="$xorg_testset_save_CFLAGS" 7213 7214 eval supported=\$$cacheid 7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7216$as_echo "$supported" >&6; } 7217 if test "$supported" = "yes" ; then 7218 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7219 found="yes" 7220 fi 7221 fi 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237xorg_testset_save_CFLAGS="$CFLAGS" 7238 7239if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7240 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7242$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7243if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7244 $as_echo_n "(cached) " >&6 7245else 7246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7247/* end confdefs.h. */ 7248int i; 7249_ACEOF 7250if ac_fn_c_try_compile "$LINENO"; then : 7251 xorg_cv_cc_flag_unknown_warning_option=yes 7252else 7253 xorg_cv_cc_flag_unknown_warning_option=no 7254fi 7255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7256fi 7257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7258$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7259 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7260 CFLAGS="$xorg_testset_save_CFLAGS" 7261fi 7262 7263if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7264 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7265 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7266 fi 7267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7269$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7270if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7271 $as_echo_n "(cached) " >&6 7272else 7273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7274/* end confdefs.h. */ 7275int i; 7276_ACEOF 7277if ac_fn_c_try_compile "$LINENO"; then : 7278 xorg_cv_cc_flag_unused_command_line_argument=yes 7279else 7280 xorg_cv_cc_flag_unused_command_line_argument=no 7281fi 7282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7283fi 7284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7285$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7286 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7287 CFLAGS="$xorg_testset_save_CFLAGS" 7288fi 7289 7290found="no" 7291 7292 if test $found = "no" ; then 7293 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7294 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7295 fi 7296 7297 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7298 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7299 fi 7300 7301 CFLAGS="$CFLAGS -Werror=init-self" 7302 7303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7304$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7305 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh` 7306 if eval \${$cacheid+:} false; then : 7307 $as_echo_n "(cached) " >&6 7308else 7309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7310/* end confdefs.h. */ 7311int i; 7312int 7313main () 7314{ 7315 7316 ; 7317 return 0; 7318} 7319_ACEOF 7320if ac_fn_c_try_link "$LINENO"; then : 7321 eval $cacheid=yes 7322else 7323 eval $cacheid=no 7324fi 7325rm -f core conftest.err conftest.$ac_objext \ 7326 conftest$ac_exeext conftest.$ac_ext 7327fi 7328 7329 7330 CFLAGS="$xorg_testset_save_CFLAGS" 7331 7332 eval supported=\$$cacheid 7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7334$as_echo "$supported" >&6; } 7335 if test "$supported" = "yes" ; then 7336 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7337 found="yes" 7338 fi 7339 fi 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355xorg_testset_save_CFLAGS="$CFLAGS" 7356 7357if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7358 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7360$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7361if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7362 $as_echo_n "(cached) " >&6 7363else 7364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7365/* end confdefs.h. */ 7366int i; 7367_ACEOF 7368if ac_fn_c_try_compile "$LINENO"; then : 7369 xorg_cv_cc_flag_unknown_warning_option=yes 7370else 7371 xorg_cv_cc_flag_unknown_warning_option=no 7372fi 7373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7374fi 7375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7376$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7377 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7378 CFLAGS="$xorg_testset_save_CFLAGS" 7379fi 7380 7381if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7382 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7383 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7384 fi 7385 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7387$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7388if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7389 $as_echo_n "(cached) " >&6 7390else 7391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7392/* end confdefs.h. */ 7393int i; 7394_ACEOF 7395if ac_fn_c_try_compile "$LINENO"; then : 7396 xorg_cv_cc_flag_unused_command_line_argument=yes 7397else 7398 xorg_cv_cc_flag_unused_command_line_argument=no 7399fi 7400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7401fi 7402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7403$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7404 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7405 CFLAGS="$xorg_testset_save_CFLAGS" 7406fi 7407 7408found="no" 7409 7410 if test $found = "no" ; then 7411 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7412 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7413 fi 7414 7415 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7416 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7417 fi 7418 7419 CFLAGS="$CFLAGS -Werror=main" 7420 7421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7422$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7423 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh` 7424 if eval \${$cacheid+:} false; then : 7425 $as_echo_n "(cached) " >&6 7426else 7427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7428/* end confdefs.h. */ 7429int i; 7430int 7431main () 7432{ 7433 7434 ; 7435 return 0; 7436} 7437_ACEOF 7438if ac_fn_c_try_link "$LINENO"; then : 7439 eval $cacheid=yes 7440else 7441 eval $cacheid=no 7442fi 7443rm -f core conftest.err conftest.$ac_objext \ 7444 conftest$ac_exeext conftest.$ac_ext 7445fi 7446 7447 7448 CFLAGS="$xorg_testset_save_CFLAGS" 7449 7450 eval supported=\$$cacheid 7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7452$as_echo "$supported" >&6; } 7453 if test "$supported" = "yes" ; then 7454 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7455 found="yes" 7456 fi 7457 fi 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473xorg_testset_save_CFLAGS="$CFLAGS" 7474 7475if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7476 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7478$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7479if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7480 $as_echo_n "(cached) " >&6 7481else 7482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7483/* end confdefs.h. */ 7484int i; 7485_ACEOF 7486if ac_fn_c_try_compile "$LINENO"; then : 7487 xorg_cv_cc_flag_unknown_warning_option=yes 7488else 7489 xorg_cv_cc_flag_unknown_warning_option=no 7490fi 7491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7492fi 7493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7494$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7495 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7496 CFLAGS="$xorg_testset_save_CFLAGS" 7497fi 7498 7499if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7500 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7501 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7502 fi 7503 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7505$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7506if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7507 $as_echo_n "(cached) " >&6 7508else 7509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7510/* end confdefs.h. */ 7511int i; 7512_ACEOF 7513if ac_fn_c_try_compile "$LINENO"; then : 7514 xorg_cv_cc_flag_unused_command_line_argument=yes 7515else 7516 xorg_cv_cc_flag_unused_command_line_argument=no 7517fi 7518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7519fi 7520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7521$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7522 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7523 CFLAGS="$xorg_testset_save_CFLAGS" 7524fi 7525 7526found="no" 7527 7528 if test $found = "no" ; then 7529 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7530 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7531 fi 7532 7533 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7534 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7535 fi 7536 7537 CFLAGS="$CFLAGS -Werror=missing-braces" 7538 7539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7540$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7541 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh` 7542 if eval \${$cacheid+:} false; then : 7543 $as_echo_n "(cached) " >&6 7544else 7545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7546/* end confdefs.h. */ 7547int i; 7548int 7549main () 7550{ 7551 7552 ; 7553 return 0; 7554} 7555_ACEOF 7556if ac_fn_c_try_link "$LINENO"; then : 7557 eval $cacheid=yes 7558else 7559 eval $cacheid=no 7560fi 7561rm -f core conftest.err conftest.$ac_objext \ 7562 conftest$ac_exeext conftest.$ac_ext 7563fi 7564 7565 7566 CFLAGS="$xorg_testset_save_CFLAGS" 7567 7568 eval supported=\$$cacheid 7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7570$as_echo "$supported" >&6; } 7571 if test "$supported" = "yes" ; then 7572 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7573 found="yes" 7574 fi 7575 fi 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591xorg_testset_save_CFLAGS="$CFLAGS" 7592 7593if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7594 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7596$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7597if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7598 $as_echo_n "(cached) " >&6 7599else 7600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7601/* end confdefs.h. */ 7602int i; 7603_ACEOF 7604if ac_fn_c_try_compile "$LINENO"; then : 7605 xorg_cv_cc_flag_unknown_warning_option=yes 7606else 7607 xorg_cv_cc_flag_unknown_warning_option=no 7608fi 7609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7610fi 7611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7612$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7613 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7614 CFLAGS="$xorg_testset_save_CFLAGS" 7615fi 7616 7617if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7618 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7619 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7620 fi 7621 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7623$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7624if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7625 $as_echo_n "(cached) " >&6 7626else 7627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7628/* end confdefs.h. */ 7629int i; 7630_ACEOF 7631if ac_fn_c_try_compile "$LINENO"; then : 7632 xorg_cv_cc_flag_unused_command_line_argument=yes 7633else 7634 xorg_cv_cc_flag_unused_command_line_argument=no 7635fi 7636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7637fi 7638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7639$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7640 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7641 CFLAGS="$xorg_testset_save_CFLAGS" 7642fi 7643 7644found="no" 7645 7646 if test $found = "no" ; then 7647 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7648 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7649 fi 7650 7651 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7652 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7653 fi 7654 7655 CFLAGS="$CFLAGS -Werror=sequence-point" 7656 7657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7658$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7659 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh` 7660 if eval \${$cacheid+:} false; then : 7661 $as_echo_n "(cached) " >&6 7662else 7663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7664/* end confdefs.h. */ 7665int i; 7666int 7667main () 7668{ 7669 7670 ; 7671 return 0; 7672} 7673_ACEOF 7674if ac_fn_c_try_link "$LINENO"; then : 7675 eval $cacheid=yes 7676else 7677 eval $cacheid=no 7678fi 7679rm -f core conftest.err conftest.$ac_objext \ 7680 conftest$ac_exeext conftest.$ac_ext 7681fi 7682 7683 7684 CFLAGS="$xorg_testset_save_CFLAGS" 7685 7686 eval supported=\$$cacheid 7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7688$as_echo "$supported" >&6; } 7689 if test "$supported" = "yes" ; then 7690 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7691 found="yes" 7692 fi 7693 fi 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709xorg_testset_save_CFLAGS="$CFLAGS" 7710 7711if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7712 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7714$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7715if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7716 $as_echo_n "(cached) " >&6 7717else 7718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7719/* end confdefs.h. */ 7720int i; 7721_ACEOF 7722if ac_fn_c_try_compile "$LINENO"; then : 7723 xorg_cv_cc_flag_unknown_warning_option=yes 7724else 7725 xorg_cv_cc_flag_unknown_warning_option=no 7726fi 7727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7728fi 7729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7730$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7731 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7732 CFLAGS="$xorg_testset_save_CFLAGS" 7733fi 7734 7735if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7736 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7737 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7738 fi 7739 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7741$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7742if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7743 $as_echo_n "(cached) " >&6 7744else 7745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7746/* end confdefs.h. */ 7747int i; 7748_ACEOF 7749if ac_fn_c_try_compile "$LINENO"; then : 7750 xorg_cv_cc_flag_unused_command_line_argument=yes 7751else 7752 xorg_cv_cc_flag_unused_command_line_argument=no 7753fi 7754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7755fi 7756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7757$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7758 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7759 CFLAGS="$xorg_testset_save_CFLAGS" 7760fi 7761 7762found="no" 7763 7764 if test $found = "no" ; then 7765 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7766 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7767 fi 7768 7769 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7770 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7771 fi 7772 7773 CFLAGS="$CFLAGS -Werror=return-type" 7774 7775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7776$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7777 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh` 7778 if eval \${$cacheid+:} false; then : 7779 $as_echo_n "(cached) " >&6 7780else 7781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7782/* end confdefs.h. */ 7783int i; 7784int 7785main () 7786{ 7787 7788 ; 7789 return 0; 7790} 7791_ACEOF 7792if ac_fn_c_try_link "$LINENO"; then : 7793 eval $cacheid=yes 7794else 7795 eval $cacheid=no 7796fi 7797rm -f core conftest.err conftest.$ac_objext \ 7798 conftest$ac_exeext conftest.$ac_ext 7799fi 7800 7801 7802 CFLAGS="$xorg_testset_save_CFLAGS" 7803 7804 eval supported=\$$cacheid 7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7806$as_echo "$supported" >&6; } 7807 if test "$supported" = "yes" ; then 7808 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7809 found="yes" 7810 fi 7811 fi 7812 7813 if test $found = "no" ; then 7814 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7815 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7816 fi 7817 7818 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7819 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7820 fi 7821 7822 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7823 7824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7825$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7826 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh` 7827 if eval \${$cacheid+:} false; then : 7828 $as_echo_n "(cached) " >&6 7829else 7830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7831/* end confdefs.h. */ 7832int i; 7833int 7834main () 7835{ 7836 7837 ; 7838 return 0; 7839} 7840_ACEOF 7841if ac_fn_c_try_link "$LINENO"; then : 7842 eval $cacheid=yes 7843else 7844 eval $cacheid=no 7845fi 7846rm -f core conftest.err conftest.$ac_objext \ 7847 conftest$ac_exeext conftest.$ac_ext 7848fi 7849 7850 7851 CFLAGS="$xorg_testset_save_CFLAGS" 7852 7853 eval supported=\$$cacheid 7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7855$as_echo "$supported" >&6; } 7856 if test "$supported" = "yes" ; then 7857 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7858 found="yes" 7859 fi 7860 fi 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876xorg_testset_save_CFLAGS="$CFLAGS" 7877 7878if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7879 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7881$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7882if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7883 $as_echo_n "(cached) " >&6 7884else 7885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7886/* end confdefs.h. */ 7887int i; 7888_ACEOF 7889if ac_fn_c_try_compile "$LINENO"; then : 7890 xorg_cv_cc_flag_unknown_warning_option=yes 7891else 7892 xorg_cv_cc_flag_unknown_warning_option=no 7893fi 7894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7895fi 7896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7897$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7898 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7899 CFLAGS="$xorg_testset_save_CFLAGS" 7900fi 7901 7902if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7903 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7904 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7905 fi 7906 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7908$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7909if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7910 $as_echo_n "(cached) " >&6 7911else 7912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7913/* end confdefs.h. */ 7914int i; 7915_ACEOF 7916if ac_fn_c_try_compile "$LINENO"; then : 7917 xorg_cv_cc_flag_unused_command_line_argument=yes 7918else 7919 xorg_cv_cc_flag_unused_command_line_argument=no 7920fi 7921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7922fi 7923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7924$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7925 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7926 CFLAGS="$xorg_testset_save_CFLAGS" 7927fi 7928 7929found="no" 7930 7931 if test $found = "no" ; then 7932 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7933 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7934 fi 7935 7936 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7937 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7938 fi 7939 7940 CFLAGS="$CFLAGS -Werror=trigraphs" 7941 7942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7943$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7944 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh` 7945 if eval \${$cacheid+:} false; then : 7946 $as_echo_n "(cached) " >&6 7947else 7948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7949/* end confdefs.h. */ 7950int i; 7951int 7952main () 7953{ 7954 7955 ; 7956 return 0; 7957} 7958_ACEOF 7959if ac_fn_c_try_link "$LINENO"; then : 7960 eval $cacheid=yes 7961else 7962 eval $cacheid=no 7963fi 7964rm -f core conftest.err conftest.$ac_objext \ 7965 conftest$ac_exeext conftest.$ac_ext 7966fi 7967 7968 7969 CFLAGS="$xorg_testset_save_CFLAGS" 7970 7971 eval supported=\$$cacheid 7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7973$as_echo "$supported" >&6; } 7974 if test "$supported" = "yes" ; then 7975 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7976 found="yes" 7977 fi 7978 fi 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994xorg_testset_save_CFLAGS="$CFLAGS" 7995 7996if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7997 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7999$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8000if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8001 $as_echo_n "(cached) " >&6 8002else 8003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8004/* end confdefs.h. */ 8005int i; 8006_ACEOF 8007if ac_fn_c_try_compile "$LINENO"; then : 8008 xorg_cv_cc_flag_unknown_warning_option=yes 8009else 8010 xorg_cv_cc_flag_unknown_warning_option=no 8011fi 8012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8013fi 8014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8015$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8016 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8017 CFLAGS="$xorg_testset_save_CFLAGS" 8018fi 8019 8020if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8021 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8022 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8023 fi 8024 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8026$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8027if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8028 $as_echo_n "(cached) " >&6 8029else 8030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8031/* end confdefs.h. */ 8032int i; 8033_ACEOF 8034if ac_fn_c_try_compile "$LINENO"; then : 8035 xorg_cv_cc_flag_unused_command_line_argument=yes 8036else 8037 xorg_cv_cc_flag_unused_command_line_argument=no 8038fi 8039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8040fi 8041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8042$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8043 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8044 CFLAGS="$xorg_testset_save_CFLAGS" 8045fi 8046 8047found="no" 8048 8049 if test $found = "no" ; then 8050 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8051 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8052 fi 8053 8054 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8055 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8056 fi 8057 8058 CFLAGS="$CFLAGS -Werror=array-bounds" 8059 8060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8061$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 8062 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh` 8063 if eval \${$cacheid+:} false; then : 8064 $as_echo_n "(cached) " >&6 8065else 8066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8067/* end confdefs.h. */ 8068int i; 8069int 8070main () 8071{ 8072 8073 ; 8074 return 0; 8075} 8076_ACEOF 8077if ac_fn_c_try_link "$LINENO"; then : 8078 eval $cacheid=yes 8079else 8080 eval $cacheid=no 8081fi 8082rm -f core conftest.err conftest.$ac_objext \ 8083 conftest$ac_exeext conftest.$ac_ext 8084fi 8085 8086 8087 CFLAGS="$xorg_testset_save_CFLAGS" 8088 8089 eval supported=\$$cacheid 8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8091$as_echo "$supported" >&6; } 8092 if test "$supported" = "yes" ; then 8093 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8094 found="yes" 8095 fi 8096 fi 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112xorg_testset_save_CFLAGS="$CFLAGS" 8113 8114if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8115 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8117$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8118if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8119 $as_echo_n "(cached) " >&6 8120else 8121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8122/* end confdefs.h. */ 8123int i; 8124_ACEOF 8125if ac_fn_c_try_compile "$LINENO"; then : 8126 xorg_cv_cc_flag_unknown_warning_option=yes 8127else 8128 xorg_cv_cc_flag_unknown_warning_option=no 8129fi 8130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8131fi 8132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8133$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8134 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8135 CFLAGS="$xorg_testset_save_CFLAGS" 8136fi 8137 8138if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8139 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8140 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8141 fi 8142 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8144$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8145if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8146 $as_echo_n "(cached) " >&6 8147else 8148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8149/* end confdefs.h. */ 8150int i; 8151_ACEOF 8152if ac_fn_c_try_compile "$LINENO"; then : 8153 xorg_cv_cc_flag_unused_command_line_argument=yes 8154else 8155 xorg_cv_cc_flag_unused_command_line_argument=no 8156fi 8157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8158fi 8159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8160$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8161 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8162 CFLAGS="$xorg_testset_save_CFLAGS" 8163fi 8164 8165found="no" 8166 8167 if test $found = "no" ; then 8168 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8169 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8170 fi 8171 8172 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8173 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8174 fi 8175 8176 CFLAGS="$CFLAGS -Werror=write-strings" 8177 8178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8179$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8180 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh` 8181 if eval \${$cacheid+:} false; then : 8182 $as_echo_n "(cached) " >&6 8183else 8184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8185/* end confdefs.h. */ 8186int i; 8187int 8188main () 8189{ 8190 8191 ; 8192 return 0; 8193} 8194_ACEOF 8195if ac_fn_c_try_link "$LINENO"; then : 8196 eval $cacheid=yes 8197else 8198 eval $cacheid=no 8199fi 8200rm -f core conftest.err conftest.$ac_objext \ 8201 conftest$ac_exeext conftest.$ac_ext 8202fi 8203 8204 8205 CFLAGS="$xorg_testset_save_CFLAGS" 8206 8207 eval supported=\$$cacheid 8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8209$as_echo "$supported" >&6; } 8210 if test "$supported" = "yes" ; then 8211 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8212 found="yes" 8213 fi 8214 fi 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230xorg_testset_save_CFLAGS="$CFLAGS" 8231 8232if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8233 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8235$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8236if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8237 $as_echo_n "(cached) " >&6 8238else 8239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8240/* end confdefs.h. */ 8241int i; 8242_ACEOF 8243if ac_fn_c_try_compile "$LINENO"; then : 8244 xorg_cv_cc_flag_unknown_warning_option=yes 8245else 8246 xorg_cv_cc_flag_unknown_warning_option=no 8247fi 8248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8249fi 8250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8251$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8252 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8253 CFLAGS="$xorg_testset_save_CFLAGS" 8254fi 8255 8256if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8257 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8258 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8259 fi 8260 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8262$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8263if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8264 $as_echo_n "(cached) " >&6 8265else 8266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8267/* end confdefs.h. */ 8268int i; 8269_ACEOF 8270if ac_fn_c_try_compile "$LINENO"; then : 8271 xorg_cv_cc_flag_unused_command_line_argument=yes 8272else 8273 xorg_cv_cc_flag_unused_command_line_argument=no 8274fi 8275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8276fi 8277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8278$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8279 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8280 CFLAGS="$xorg_testset_save_CFLAGS" 8281fi 8282 8283found="no" 8284 8285 if test $found = "no" ; then 8286 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8287 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8288 fi 8289 8290 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8292 fi 8293 8294 CFLAGS="$CFLAGS -Werror=address" 8295 8296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8297$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8298 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh` 8299 if eval \${$cacheid+:} false; then : 8300 $as_echo_n "(cached) " >&6 8301else 8302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8303/* end confdefs.h. */ 8304int i; 8305int 8306main () 8307{ 8308 8309 ; 8310 return 0; 8311} 8312_ACEOF 8313if ac_fn_c_try_link "$LINENO"; then : 8314 eval $cacheid=yes 8315else 8316 eval $cacheid=no 8317fi 8318rm -f core conftest.err conftest.$ac_objext \ 8319 conftest$ac_exeext conftest.$ac_ext 8320fi 8321 8322 8323 CFLAGS="$xorg_testset_save_CFLAGS" 8324 8325 eval supported=\$$cacheid 8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8327$as_echo "$supported" >&6; } 8328 if test "$supported" = "yes" ; then 8329 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8330 found="yes" 8331 fi 8332 fi 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348xorg_testset_save_CFLAGS="$CFLAGS" 8349 8350if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8351 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8353$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8354if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8355 $as_echo_n "(cached) " >&6 8356else 8357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8358/* end confdefs.h. */ 8359int i; 8360_ACEOF 8361if ac_fn_c_try_compile "$LINENO"; then : 8362 xorg_cv_cc_flag_unknown_warning_option=yes 8363else 8364 xorg_cv_cc_flag_unknown_warning_option=no 8365fi 8366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8367fi 8368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8369$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8370 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8371 CFLAGS="$xorg_testset_save_CFLAGS" 8372fi 8373 8374if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8376 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8377 fi 8378 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8380$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8381if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8382 $as_echo_n "(cached) " >&6 8383else 8384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8385/* end confdefs.h. */ 8386int i; 8387_ACEOF 8388if ac_fn_c_try_compile "$LINENO"; then : 8389 xorg_cv_cc_flag_unused_command_line_argument=yes 8390else 8391 xorg_cv_cc_flag_unused_command_line_argument=no 8392fi 8393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8394fi 8395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8396$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8397 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8398 CFLAGS="$xorg_testset_save_CFLAGS" 8399fi 8400 8401found="no" 8402 8403 if test $found = "no" ; then 8404 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8405 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8406 fi 8407 8408 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8410 fi 8411 8412 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8413 8414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8415$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8416 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh` 8417 if eval \${$cacheid+:} false; then : 8418 $as_echo_n "(cached) " >&6 8419else 8420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8421/* end confdefs.h. */ 8422int i; 8423int 8424main () 8425{ 8426 8427 ; 8428 return 0; 8429} 8430_ACEOF 8431if ac_fn_c_try_link "$LINENO"; then : 8432 eval $cacheid=yes 8433else 8434 eval $cacheid=no 8435fi 8436rm -f core conftest.err conftest.$ac_objext \ 8437 conftest$ac_exeext conftest.$ac_ext 8438fi 8439 8440 8441 CFLAGS="$xorg_testset_save_CFLAGS" 8442 8443 eval supported=\$$cacheid 8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8445$as_echo "$supported" >&6; } 8446 if test "$supported" = "yes" ; then 8447 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8448 found="yes" 8449 fi 8450 fi 8451 8452 if test $found = "no" ; then 8453 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8454 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8455 fi 8456 8457 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8458 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8459 fi 8460 8461 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8462 8463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8464$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8465 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh` 8466 if eval \${$cacheid+:} false; then : 8467 $as_echo_n "(cached) " >&6 8468else 8469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8470/* end confdefs.h. */ 8471int i; 8472int 8473main () 8474{ 8475 8476 ; 8477 return 0; 8478} 8479_ACEOF 8480if ac_fn_c_try_link "$LINENO"; then : 8481 eval $cacheid=yes 8482else 8483 eval $cacheid=no 8484fi 8485rm -f core conftest.err conftest.$ac_objext \ 8486 conftest$ac_exeext conftest.$ac_ext 8487fi 8488 8489 8490 CFLAGS="$xorg_testset_save_CFLAGS" 8491 8492 eval supported=\$$cacheid 8493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8494$as_echo "$supported" >&6; } 8495 if test "$supported" = "yes" ; then 8496 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8497 found="yes" 8498 fi 8499 fi 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515xorg_testset_save_CFLAGS="$CFLAGS" 8516 8517if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8518 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8520$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8521if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8522 $as_echo_n "(cached) " >&6 8523else 8524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8525/* end confdefs.h. */ 8526int i; 8527_ACEOF 8528if ac_fn_c_try_compile "$LINENO"; then : 8529 xorg_cv_cc_flag_unknown_warning_option=yes 8530else 8531 xorg_cv_cc_flag_unknown_warning_option=no 8532fi 8533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8534fi 8535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8536$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8537 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8538 CFLAGS="$xorg_testset_save_CFLAGS" 8539fi 8540 8541if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8542 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8543 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8544 fi 8545 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8547$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8548if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8549 $as_echo_n "(cached) " >&6 8550else 8551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8552/* end confdefs.h. */ 8553int i; 8554_ACEOF 8555if ac_fn_c_try_compile "$LINENO"; then : 8556 xorg_cv_cc_flag_unused_command_line_argument=yes 8557else 8558 xorg_cv_cc_flag_unused_command_line_argument=no 8559fi 8560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8561fi 8562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8563$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8564 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8565 CFLAGS="$xorg_testset_save_CFLAGS" 8566fi 8567 8568found="no" 8569 8570 if test $found = "no" ; then 8571 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8572 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8573 fi 8574 8575 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8576 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8577 fi 8578 8579 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8580 8581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8582$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8583 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh` 8584 if eval \${$cacheid+:} false; then : 8585 $as_echo_n "(cached) " >&6 8586else 8587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8588/* end confdefs.h. */ 8589int i; 8590int 8591main () 8592{ 8593 8594 ; 8595 return 0; 8596} 8597_ACEOF 8598if ac_fn_c_try_link "$LINENO"; then : 8599 eval $cacheid=yes 8600else 8601 eval $cacheid=no 8602fi 8603rm -f core conftest.err conftest.$ac_objext \ 8604 conftest$ac_exeext conftest.$ac_ext 8605fi 8606 8607 8608 CFLAGS="$xorg_testset_save_CFLAGS" 8609 8610 eval supported=\$$cacheid 8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8612$as_echo "$supported" >&6; } 8613 if test "$supported" = "yes" ; then 8614 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8615 found="yes" 8616 fi 8617 fi 8618 8619 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8620else 8621{ $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 8622$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;} 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632 8633 8634 8635 8636xorg_testset_save_CFLAGS="$CFLAGS" 8637 8638if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8639 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8641$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8642if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8643 $as_echo_n "(cached) " >&6 8644else 8645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8646/* end confdefs.h. */ 8647int i; 8648_ACEOF 8649if ac_fn_c_try_compile "$LINENO"; then : 8650 xorg_cv_cc_flag_unknown_warning_option=yes 8651else 8652 xorg_cv_cc_flag_unknown_warning_option=no 8653fi 8654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8655fi 8656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8657$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8658 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8659 CFLAGS="$xorg_testset_save_CFLAGS" 8660fi 8661 8662if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8663 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8664 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8665 fi 8666 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8668$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8669if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8670 $as_echo_n "(cached) " >&6 8671else 8672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8673/* end confdefs.h. */ 8674int i; 8675_ACEOF 8676if ac_fn_c_try_compile "$LINENO"; then : 8677 xorg_cv_cc_flag_unused_command_line_argument=yes 8678else 8679 xorg_cv_cc_flag_unused_command_line_argument=no 8680fi 8681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8682fi 8683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8684$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8685 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8686 CFLAGS="$xorg_testset_save_CFLAGS" 8687fi 8688 8689found="no" 8690 8691 if test $found = "no" ; then 8692 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8693 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8694 fi 8695 8696 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8697 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8698 fi 8699 8700 CFLAGS="$CFLAGS -Wimplicit" 8701 8702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8703$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8704 cacheid=xorg_cv_cc_flag__Wimplicit 8705 if eval \${$cacheid+:} false; then : 8706 $as_echo_n "(cached) " >&6 8707else 8708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8709/* end confdefs.h. */ 8710int i; 8711int 8712main () 8713{ 8714 8715 ; 8716 return 0; 8717} 8718_ACEOF 8719if ac_fn_c_try_link "$LINENO"; then : 8720 eval $cacheid=yes 8721else 8722 eval $cacheid=no 8723fi 8724rm -f core conftest.err conftest.$ac_objext \ 8725 conftest$ac_exeext conftest.$ac_ext 8726fi 8727 8728 8729 CFLAGS="$xorg_testset_save_CFLAGS" 8730 8731 eval supported=\$$cacheid 8732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8733$as_echo "$supported" >&6; } 8734 if test "$supported" = "yes" ; then 8735 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8736 found="yes" 8737 fi 8738 fi 8739 8740 8741 8742 8743 8744 8745 8746 8747 8748 8749 8750 8751 8752 8753 8754xorg_testset_save_CFLAGS="$CFLAGS" 8755 8756if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8757 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8759$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8760if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8761 $as_echo_n "(cached) " >&6 8762else 8763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8764/* end confdefs.h. */ 8765int i; 8766_ACEOF 8767if ac_fn_c_try_compile "$LINENO"; then : 8768 xorg_cv_cc_flag_unknown_warning_option=yes 8769else 8770 xorg_cv_cc_flag_unknown_warning_option=no 8771fi 8772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8773fi 8774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8775$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8776 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8777 CFLAGS="$xorg_testset_save_CFLAGS" 8778fi 8779 8780if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8781 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8782 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8783 fi 8784 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8786$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8787if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8788 $as_echo_n "(cached) " >&6 8789else 8790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8791/* end confdefs.h. */ 8792int i; 8793_ACEOF 8794if ac_fn_c_try_compile "$LINENO"; then : 8795 xorg_cv_cc_flag_unused_command_line_argument=yes 8796else 8797 xorg_cv_cc_flag_unused_command_line_argument=no 8798fi 8799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8800fi 8801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8802$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8803 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8804 CFLAGS="$xorg_testset_save_CFLAGS" 8805fi 8806 8807found="no" 8808 8809 if test $found = "no" ; then 8810 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8811 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8812 fi 8813 8814 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8815 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8816 fi 8817 8818 CFLAGS="$CFLAGS -Wnonnull" 8819 8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8821$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8822 cacheid=xorg_cv_cc_flag__Wnonnull 8823 if eval \${$cacheid+:} false; then : 8824 $as_echo_n "(cached) " >&6 8825else 8826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8827/* end confdefs.h. */ 8828int i; 8829int 8830main () 8831{ 8832 8833 ; 8834 return 0; 8835} 8836_ACEOF 8837if ac_fn_c_try_link "$LINENO"; then : 8838 eval $cacheid=yes 8839else 8840 eval $cacheid=no 8841fi 8842rm -f core conftest.err conftest.$ac_objext \ 8843 conftest$ac_exeext conftest.$ac_ext 8844fi 8845 8846 8847 CFLAGS="$xorg_testset_save_CFLAGS" 8848 8849 eval supported=\$$cacheid 8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8851$as_echo "$supported" >&6; } 8852 if test "$supported" = "yes" ; then 8853 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8854 found="yes" 8855 fi 8856 fi 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870 8871 8872xorg_testset_save_CFLAGS="$CFLAGS" 8873 8874if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8875 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8877$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8878if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8879 $as_echo_n "(cached) " >&6 8880else 8881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8882/* end confdefs.h. */ 8883int i; 8884_ACEOF 8885if ac_fn_c_try_compile "$LINENO"; then : 8886 xorg_cv_cc_flag_unknown_warning_option=yes 8887else 8888 xorg_cv_cc_flag_unknown_warning_option=no 8889fi 8890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8891fi 8892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8893$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8894 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8895 CFLAGS="$xorg_testset_save_CFLAGS" 8896fi 8897 8898if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8899 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8900 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8901 fi 8902 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8904$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8905if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8906 $as_echo_n "(cached) " >&6 8907else 8908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8909/* end confdefs.h. */ 8910int i; 8911_ACEOF 8912if ac_fn_c_try_compile "$LINENO"; then : 8913 xorg_cv_cc_flag_unused_command_line_argument=yes 8914else 8915 xorg_cv_cc_flag_unused_command_line_argument=no 8916fi 8917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8918fi 8919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8920$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8921 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8922 CFLAGS="$xorg_testset_save_CFLAGS" 8923fi 8924 8925found="no" 8926 8927 if test $found = "no" ; then 8928 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8929 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8930 fi 8931 8932 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8933 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8934 fi 8935 8936 CFLAGS="$CFLAGS -Winit-self" 8937 8938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8939$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8940 cacheid=xorg_cv_cc_flag__Winit_self 8941 if eval \${$cacheid+:} false; then : 8942 $as_echo_n "(cached) " >&6 8943else 8944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8945/* end confdefs.h. */ 8946int i; 8947int 8948main () 8949{ 8950 8951 ; 8952 return 0; 8953} 8954_ACEOF 8955if ac_fn_c_try_link "$LINENO"; then : 8956 eval $cacheid=yes 8957else 8958 eval $cacheid=no 8959fi 8960rm -f core conftest.err conftest.$ac_objext \ 8961 conftest$ac_exeext conftest.$ac_ext 8962fi 8963 8964 8965 CFLAGS="$xorg_testset_save_CFLAGS" 8966 8967 eval supported=\$$cacheid 8968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8969$as_echo "$supported" >&6; } 8970 if test "$supported" = "yes" ; then 8971 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8972 found="yes" 8973 fi 8974 fi 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990xorg_testset_save_CFLAGS="$CFLAGS" 8991 8992if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8993 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8995$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8996if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8997 $as_echo_n "(cached) " >&6 8998else 8999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9000/* end confdefs.h. */ 9001int i; 9002_ACEOF 9003if ac_fn_c_try_compile "$LINENO"; then : 9004 xorg_cv_cc_flag_unknown_warning_option=yes 9005else 9006 xorg_cv_cc_flag_unknown_warning_option=no 9007fi 9008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9009fi 9010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9011$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9012 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9013 CFLAGS="$xorg_testset_save_CFLAGS" 9014fi 9015 9016if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9017 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9018 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9019 fi 9020 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9022$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9023if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9024 $as_echo_n "(cached) " >&6 9025else 9026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9027/* end confdefs.h. */ 9028int i; 9029_ACEOF 9030if ac_fn_c_try_compile "$LINENO"; then : 9031 xorg_cv_cc_flag_unused_command_line_argument=yes 9032else 9033 xorg_cv_cc_flag_unused_command_line_argument=no 9034fi 9035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9036fi 9037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9038$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9039 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9040 CFLAGS="$xorg_testset_save_CFLAGS" 9041fi 9042 9043found="no" 9044 9045 if test $found = "no" ; then 9046 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9047 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9048 fi 9049 9050 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9051 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9052 fi 9053 9054 CFLAGS="$CFLAGS -Wmain" 9055 9056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9057$as_echo_n "checking if $CC supports -Wmain... " >&6; } 9058 cacheid=xorg_cv_cc_flag__Wmain 9059 if eval \${$cacheid+:} false; then : 9060 $as_echo_n "(cached) " >&6 9061else 9062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9063/* end confdefs.h. */ 9064int i; 9065int 9066main () 9067{ 9068 9069 ; 9070 return 0; 9071} 9072_ACEOF 9073if ac_fn_c_try_link "$LINENO"; then : 9074 eval $cacheid=yes 9075else 9076 eval $cacheid=no 9077fi 9078rm -f core conftest.err conftest.$ac_objext \ 9079 conftest$ac_exeext conftest.$ac_ext 9080fi 9081 9082 9083 CFLAGS="$xorg_testset_save_CFLAGS" 9084 9085 eval supported=\$$cacheid 9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9087$as_echo "$supported" >&6; } 9088 if test "$supported" = "yes" ; then 9089 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9090 found="yes" 9091 fi 9092 fi 9093 9094 9095 9096 9097 9098 9099 9100 9101 9102 9103 9104 9105 9106 9107 9108xorg_testset_save_CFLAGS="$CFLAGS" 9109 9110if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9111 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9113$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9114if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9115 $as_echo_n "(cached) " >&6 9116else 9117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9118/* end confdefs.h. */ 9119int i; 9120_ACEOF 9121if ac_fn_c_try_compile "$LINENO"; then : 9122 xorg_cv_cc_flag_unknown_warning_option=yes 9123else 9124 xorg_cv_cc_flag_unknown_warning_option=no 9125fi 9126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9127fi 9128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9129$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9130 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9131 CFLAGS="$xorg_testset_save_CFLAGS" 9132fi 9133 9134if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9135 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9136 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9137 fi 9138 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9140$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9141if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9142 $as_echo_n "(cached) " >&6 9143else 9144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9145/* end confdefs.h. */ 9146int i; 9147_ACEOF 9148if ac_fn_c_try_compile "$LINENO"; then : 9149 xorg_cv_cc_flag_unused_command_line_argument=yes 9150else 9151 xorg_cv_cc_flag_unused_command_line_argument=no 9152fi 9153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9154fi 9155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9156$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9157 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9158 CFLAGS="$xorg_testset_save_CFLAGS" 9159fi 9160 9161found="no" 9162 9163 if test $found = "no" ; then 9164 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9165 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9166 fi 9167 9168 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9169 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9170 fi 9171 9172 CFLAGS="$CFLAGS -Wmissing-braces" 9173 9174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9175$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 9176 cacheid=xorg_cv_cc_flag__Wmissing_braces 9177 if eval \${$cacheid+:} false; then : 9178 $as_echo_n "(cached) " >&6 9179else 9180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9181/* end confdefs.h. */ 9182int i; 9183int 9184main () 9185{ 9186 9187 ; 9188 return 0; 9189} 9190_ACEOF 9191if ac_fn_c_try_link "$LINENO"; then : 9192 eval $cacheid=yes 9193else 9194 eval $cacheid=no 9195fi 9196rm -f core conftest.err conftest.$ac_objext \ 9197 conftest$ac_exeext conftest.$ac_ext 9198fi 9199 9200 9201 CFLAGS="$xorg_testset_save_CFLAGS" 9202 9203 eval supported=\$$cacheid 9204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9205$as_echo "$supported" >&6; } 9206 if test "$supported" = "yes" ; then 9207 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9208 found="yes" 9209 fi 9210 fi 9211 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226xorg_testset_save_CFLAGS="$CFLAGS" 9227 9228if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9229 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9231$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9232if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9233 $as_echo_n "(cached) " >&6 9234else 9235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9236/* end confdefs.h. */ 9237int i; 9238_ACEOF 9239if ac_fn_c_try_compile "$LINENO"; then : 9240 xorg_cv_cc_flag_unknown_warning_option=yes 9241else 9242 xorg_cv_cc_flag_unknown_warning_option=no 9243fi 9244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9245fi 9246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9247$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9248 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9249 CFLAGS="$xorg_testset_save_CFLAGS" 9250fi 9251 9252if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9253 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9254 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9255 fi 9256 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9258$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9259if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9260 $as_echo_n "(cached) " >&6 9261else 9262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9263/* end confdefs.h. */ 9264int i; 9265_ACEOF 9266if ac_fn_c_try_compile "$LINENO"; then : 9267 xorg_cv_cc_flag_unused_command_line_argument=yes 9268else 9269 xorg_cv_cc_flag_unused_command_line_argument=no 9270fi 9271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9272fi 9273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9274$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9275 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9276 CFLAGS="$xorg_testset_save_CFLAGS" 9277fi 9278 9279found="no" 9280 9281 if test $found = "no" ; then 9282 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9283 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9284 fi 9285 9286 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9287 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9288 fi 9289 9290 CFLAGS="$CFLAGS -Wsequence-point" 9291 9292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9293$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9294 cacheid=xorg_cv_cc_flag__Wsequence_point 9295 if eval \${$cacheid+:} false; then : 9296 $as_echo_n "(cached) " >&6 9297else 9298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9299/* end confdefs.h. */ 9300int i; 9301int 9302main () 9303{ 9304 9305 ; 9306 return 0; 9307} 9308_ACEOF 9309if ac_fn_c_try_link "$LINENO"; then : 9310 eval $cacheid=yes 9311else 9312 eval $cacheid=no 9313fi 9314rm -f core conftest.err conftest.$ac_objext \ 9315 conftest$ac_exeext conftest.$ac_ext 9316fi 9317 9318 9319 CFLAGS="$xorg_testset_save_CFLAGS" 9320 9321 eval supported=\$$cacheid 9322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9323$as_echo "$supported" >&6; } 9324 if test "$supported" = "yes" ; then 9325 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9326 found="yes" 9327 fi 9328 fi 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340 9341 9342 9343 9344xorg_testset_save_CFLAGS="$CFLAGS" 9345 9346if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9347 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9349$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9350if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9351 $as_echo_n "(cached) " >&6 9352else 9353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9354/* end confdefs.h. */ 9355int i; 9356_ACEOF 9357if ac_fn_c_try_compile "$LINENO"; then : 9358 xorg_cv_cc_flag_unknown_warning_option=yes 9359else 9360 xorg_cv_cc_flag_unknown_warning_option=no 9361fi 9362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9363fi 9364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9365$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9366 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9367 CFLAGS="$xorg_testset_save_CFLAGS" 9368fi 9369 9370if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9372 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9373 fi 9374 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9376$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9377if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9378 $as_echo_n "(cached) " >&6 9379else 9380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9381/* end confdefs.h. */ 9382int i; 9383_ACEOF 9384if ac_fn_c_try_compile "$LINENO"; then : 9385 xorg_cv_cc_flag_unused_command_line_argument=yes 9386else 9387 xorg_cv_cc_flag_unused_command_line_argument=no 9388fi 9389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9390fi 9391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9392$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9393 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9394 CFLAGS="$xorg_testset_save_CFLAGS" 9395fi 9396 9397found="no" 9398 9399 if test $found = "no" ; then 9400 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9401 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9402 fi 9403 9404 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9405 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9406 fi 9407 9408 CFLAGS="$CFLAGS -Wreturn-type" 9409 9410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9411$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9412 cacheid=xorg_cv_cc_flag__Wreturn_type 9413 if eval \${$cacheid+:} false; then : 9414 $as_echo_n "(cached) " >&6 9415else 9416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9417/* end confdefs.h. */ 9418int i; 9419int 9420main () 9421{ 9422 9423 ; 9424 return 0; 9425} 9426_ACEOF 9427if ac_fn_c_try_link "$LINENO"; then : 9428 eval $cacheid=yes 9429else 9430 eval $cacheid=no 9431fi 9432rm -f core conftest.err conftest.$ac_objext \ 9433 conftest$ac_exeext conftest.$ac_ext 9434fi 9435 9436 9437 CFLAGS="$xorg_testset_save_CFLAGS" 9438 9439 eval supported=\$$cacheid 9440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9441$as_echo "$supported" >&6; } 9442 if test "$supported" = "yes" ; then 9443 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9444 found="yes" 9445 fi 9446 fi 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462xorg_testset_save_CFLAGS="$CFLAGS" 9463 9464if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9465 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9467$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9468if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9469 $as_echo_n "(cached) " >&6 9470else 9471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9472/* end confdefs.h. */ 9473int i; 9474_ACEOF 9475if ac_fn_c_try_compile "$LINENO"; then : 9476 xorg_cv_cc_flag_unknown_warning_option=yes 9477else 9478 xorg_cv_cc_flag_unknown_warning_option=no 9479fi 9480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9481fi 9482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9483$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9484 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9485 CFLAGS="$xorg_testset_save_CFLAGS" 9486fi 9487 9488if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9489 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9490 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9491 fi 9492 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9494$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9495if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9496 $as_echo_n "(cached) " >&6 9497else 9498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9499/* end confdefs.h. */ 9500int i; 9501_ACEOF 9502if ac_fn_c_try_compile "$LINENO"; then : 9503 xorg_cv_cc_flag_unused_command_line_argument=yes 9504else 9505 xorg_cv_cc_flag_unused_command_line_argument=no 9506fi 9507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9508fi 9509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9510$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9511 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9512 CFLAGS="$xorg_testset_save_CFLAGS" 9513fi 9514 9515found="no" 9516 9517 if test $found = "no" ; then 9518 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9519 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9520 fi 9521 9522 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9523 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9524 fi 9525 9526 CFLAGS="$CFLAGS -Wtrigraphs" 9527 9528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9529$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9530 cacheid=xorg_cv_cc_flag__Wtrigraphs 9531 if eval \${$cacheid+:} false; then : 9532 $as_echo_n "(cached) " >&6 9533else 9534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9535/* end confdefs.h. */ 9536int i; 9537int 9538main () 9539{ 9540 9541 ; 9542 return 0; 9543} 9544_ACEOF 9545if ac_fn_c_try_link "$LINENO"; then : 9546 eval $cacheid=yes 9547else 9548 eval $cacheid=no 9549fi 9550rm -f core conftest.err conftest.$ac_objext \ 9551 conftest$ac_exeext conftest.$ac_ext 9552fi 9553 9554 9555 CFLAGS="$xorg_testset_save_CFLAGS" 9556 9557 eval supported=\$$cacheid 9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9559$as_echo "$supported" >&6; } 9560 if test "$supported" = "yes" ; then 9561 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9562 found="yes" 9563 fi 9564 fi 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579 9580xorg_testset_save_CFLAGS="$CFLAGS" 9581 9582if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9583 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9585$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9586if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9587 $as_echo_n "(cached) " >&6 9588else 9589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9590/* end confdefs.h. */ 9591int i; 9592_ACEOF 9593if ac_fn_c_try_compile "$LINENO"; then : 9594 xorg_cv_cc_flag_unknown_warning_option=yes 9595else 9596 xorg_cv_cc_flag_unknown_warning_option=no 9597fi 9598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9599fi 9600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9601$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9602 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9603 CFLAGS="$xorg_testset_save_CFLAGS" 9604fi 9605 9606if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9607 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9608 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9609 fi 9610 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9612$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9613if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9614 $as_echo_n "(cached) " >&6 9615else 9616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9617/* end confdefs.h. */ 9618int i; 9619_ACEOF 9620if ac_fn_c_try_compile "$LINENO"; then : 9621 xorg_cv_cc_flag_unused_command_line_argument=yes 9622else 9623 xorg_cv_cc_flag_unused_command_line_argument=no 9624fi 9625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9626fi 9627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9628$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9629 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9630 CFLAGS="$xorg_testset_save_CFLAGS" 9631fi 9632 9633found="no" 9634 9635 if test $found = "no" ; then 9636 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9637 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9638 fi 9639 9640 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9641 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9642 fi 9643 9644 CFLAGS="$CFLAGS -Warray-bounds" 9645 9646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9647$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9648 cacheid=xorg_cv_cc_flag__Warray_bounds 9649 if eval \${$cacheid+:} false; then : 9650 $as_echo_n "(cached) " >&6 9651else 9652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9653/* end confdefs.h. */ 9654int i; 9655int 9656main () 9657{ 9658 9659 ; 9660 return 0; 9661} 9662_ACEOF 9663if ac_fn_c_try_link "$LINENO"; then : 9664 eval $cacheid=yes 9665else 9666 eval $cacheid=no 9667fi 9668rm -f core conftest.err conftest.$ac_objext \ 9669 conftest$ac_exeext conftest.$ac_ext 9670fi 9671 9672 9673 CFLAGS="$xorg_testset_save_CFLAGS" 9674 9675 eval supported=\$$cacheid 9676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9677$as_echo "$supported" >&6; } 9678 if test "$supported" = "yes" ; then 9679 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9680 found="yes" 9681 fi 9682 fi 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698xorg_testset_save_CFLAGS="$CFLAGS" 9699 9700if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9701 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9703$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9704if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9705 $as_echo_n "(cached) " >&6 9706else 9707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9708/* end confdefs.h. */ 9709int i; 9710_ACEOF 9711if ac_fn_c_try_compile "$LINENO"; then : 9712 xorg_cv_cc_flag_unknown_warning_option=yes 9713else 9714 xorg_cv_cc_flag_unknown_warning_option=no 9715fi 9716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9717fi 9718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9719$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9720 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9721 CFLAGS="$xorg_testset_save_CFLAGS" 9722fi 9723 9724if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9725 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9726 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9727 fi 9728 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9730$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9731if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9732 $as_echo_n "(cached) " >&6 9733else 9734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9735/* end confdefs.h. */ 9736int i; 9737_ACEOF 9738if ac_fn_c_try_compile "$LINENO"; then : 9739 xorg_cv_cc_flag_unused_command_line_argument=yes 9740else 9741 xorg_cv_cc_flag_unused_command_line_argument=no 9742fi 9743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9744fi 9745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9746$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9747 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9748 CFLAGS="$xorg_testset_save_CFLAGS" 9749fi 9750 9751found="no" 9752 9753 if test $found = "no" ; then 9754 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9755 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9756 fi 9757 9758 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9759 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9760 fi 9761 9762 CFLAGS="$CFLAGS -Wwrite-strings" 9763 9764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9765$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9766 cacheid=xorg_cv_cc_flag__Wwrite_strings 9767 if eval \${$cacheid+:} false; then : 9768 $as_echo_n "(cached) " >&6 9769else 9770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9771/* end confdefs.h. */ 9772int i; 9773int 9774main () 9775{ 9776 9777 ; 9778 return 0; 9779} 9780_ACEOF 9781if ac_fn_c_try_link "$LINENO"; then : 9782 eval $cacheid=yes 9783else 9784 eval $cacheid=no 9785fi 9786rm -f core conftest.err conftest.$ac_objext \ 9787 conftest$ac_exeext conftest.$ac_ext 9788fi 9789 9790 9791 CFLAGS="$xorg_testset_save_CFLAGS" 9792 9793 eval supported=\$$cacheid 9794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9795$as_echo "$supported" >&6; } 9796 if test "$supported" = "yes" ; then 9797 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9798 found="yes" 9799 fi 9800 fi 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816xorg_testset_save_CFLAGS="$CFLAGS" 9817 9818if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9819 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9821$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9822if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9823 $as_echo_n "(cached) " >&6 9824else 9825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9826/* end confdefs.h. */ 9827int i; 9828_ACEOF 9829if ac_fn_c_try_compile "$LINENO"; then : 9830 xorg_cv_cc_flag_unknown_warning_option=yes 9831else 9832 xorg_cv_cc_flag_unknown_warning_option=no 9833fi 9834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9835fi 9836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9837$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9838 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9839 CFLAGS="$xorg_testset_save_CFLAGS" 9840fi 9841 9842if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9843 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9844 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9845 fi 9846 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9848$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9849if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9850 $as_echo_n "(cached) " >&6 9851else 9852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9853/* end confdefs.h. */ 9854int i; 9855_ACEOF 9856if ac_fn_c_try_compile "$LINENO"; then : 9857 xorg_cv_cc_flag_unused_command_line_argument=yes 9858else 9859 xorg_cv_cc_flag_unused_command_line_argument=no 9860fi 9861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9862fi 9863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9864$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9865 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9866 CFLAGS="$xorg_testset_save_CFLAGS" 9867fi 9868 9869found="no" 9870 9871 if test $found = "no" ; then 9872 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9873 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9874 fi 9875 9876 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9877 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9878 fi 9879 9880 CFLAGS="$CFLAGS -Waddress" 9881 9882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9883$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9884 cacheid=xorg_cv_cc_flag__Waddress 9885 if eval \${$cacheid+:} false; then : 9886 $as_echo_n "(cached) " >&6 9887else 9888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9889/* end confdefs.h. */ 9890int i; 9891int 9892main () 9893{ 9894 9895 ; 9896 return 0; 9897} 9898_ACEOF 9899if ac_fn_c_try_link "$LINENO"; then : 9900 eval $cacheid=yes 9901else 9902 eval $cacheid=no 9903fi 9904rm -f core conftest.err conftest.$ac_objext \ 9905 conftest$ac_exeext conftest.$ac_ext 9906fi 9907 9908 9909 CFLAGS="$xorg_testset_save_CFLAGS" 9910 9911 eval supported=\$$cacheid 9912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9913$as_echo "$supported" >&6; } 9914 if test "$supported" = "yes" ; then 9915 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9916 found="yes" 9917 fi 9918 fi 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934xorg_testset_save_CFLAGS="$CFLAGS" 9935 9936if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9937 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9939$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9940if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9941 $as_echo_n "(cached) " >&6 9942else 9943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9944/* end confdefs.h. */ 9945int i; 9946_ACEOF 9947if ac_fn_c_try_compile "$LINENO"; then : 9948 xorg_cv_cc_flag_unknown_warning_option=yes 9949else 9950 xorg_cv_cc_flag_unknown_warning_option=no 9951fi 9952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9953fi 9954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9955$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9956 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9957 CFLAGS="$xorg_testset_save_CFLAGS" 9958fi 9959 9960if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9961 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9962 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9963 fi 9964 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9966$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9967if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9968 $as_echo_n "(cached) " >&6 9969else 9970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9971/* end confdefs.h. */ 9972int i; 9973_ACEOF 9974if ac_fn_c_try_compile "$LINENO"; then : 9975 xorg_cv_cc_flag_unused_command_line_argument=yes 9976else 9977 xorg_cv_cc_flag_unused_command_line_argument=no 9978fi 9979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9980fi 9981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9982$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9983 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9984 CFLAGS="$xorg_testset_save_CFLAGS" 9985fi 9986 9987found="no" 9988 9989 if test $found = "no" ; then 9990 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9991 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9992 fi 9993 9994 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9995 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9996 fi 9997 9998 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9999 10000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10001$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10002 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10003 if eval \${$cacheid+:} false; then : 10004 $as_echo_n "(cached) " >&6 10005else 10006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10007/* end confdefs.h. */ 10008int i; 10009int 10010main () 10011{ 10012 10013 ; 10014 return 0; 10015} 10016_ACEOF 10017if ac_fn_c_try_link "$LINENO"; then : 10018 eval $cacheid=yes 10019else 10020 eval $cacheid=no 10021fi 10022rm -f core conftest.err conftest.$ac_objext \ 10023 conftest$ac_exeext conftest.$ac_ext 10024fi 10025 10026 10027 CFLAGS="$xorg_testset_save_CFLAGS" 10028 10029 eval supported=\$$cacheid 10030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10031$as_echo "$supported" >&6; } 10032 if test "$supported" = "yes" ; then 10033 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10034 found="yes" 10035 fi 10036 fi 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052xorg_testset_save_CFLAGS="$CFLAGS" 10053 10054if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10055 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10057$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10058if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10059 $as_echo_n "(cached) " >&6 10060else 10061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10062/* end confdefs.h. */ 10063int i; 10064_ACEOF 10065if ac_fn_c_try_compile "$LINENO"; then : 10066 xorg_cv_cc_flag_unknown_warning_option=yes 10067else 10068 xorg_cv_cc_flag_unknown_warning_option=no 10069fi 10070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10071fi 10072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10073$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10074 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10075 CFLAGS="$xorg_testset_save_CFLAGS" 10076fi 10077 10078if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10079 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10080 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10081 fi 10082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10084$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10085if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10086 $as_echo_n "(cached) " >&6 10087else 10088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10089/* end confdefs.h. */ 10090int i; 10091_ACEOF 10092if ac_fn_c_try_compile "$LINENO"; then : 10093 xorg_cv_cc_flag_unused_command_line_argument=yes 10094else 10095 xorg_cv_cc_flag_unused_command_line_argument=no 10096fi 10097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10098fi 10099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10100$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10101 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10102 CFLAGS="$xorg_testset_save_CFLAGS" 10103fi 10104 10105found="no" 10106 10107 if test $found = "no" ; then 10108 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10109 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10110 fi 10111 10112 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10113 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10114 fi 10115 10116 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10117 10118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10119$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10120 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10121 if eval \${$cacheid+:} false; then : 10122 $as_echo_n "(cached) " >&6 10123else 10124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10125/* end confdefs.h. */ 10126int i; 10127int 10128main () 10129{ 10130 10131 ; 10132 return 0; 10133} 10134_ACEOF 10135if ac_fn_c_try_link "$LINENO"; then : 10136 eval $cacheid=yes 10137else 10138 eval $cacheid=no 10139fi 10140rm -f core conftest.err conftest.$ac_objext \ 10141 conftest$ac_exeext conftest.$ac_ext 10142fi 10143 10144 10145 CFLAGS="$xorg_testset_save_CFLAGS" 10146 10147 eval supported=\$$cacheid 10148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10149$as_echo "$supported" >&6; } 10150 if test "$supported" = "yes" ; then 10151 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10152 found="yes" 10153 fi 10154 fi 10155 10156 10157fi 10158 10159 10160 10161 10162 10163 10164 10165 CWARNFLAGS="$BASE_CFLAGS" 10166 if test "x$GCC" = xyes ; then 10167 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10168 fi 10169 10170 10171 10172 10173 10174 10175 10176 10177# Check whether --enable-strict-compilation was given. 10178if test "${enable_strict_compilation+set}" = set; then : 10179 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10180else 10181 STRICT_COMPILE=no 10182fi 10183 10184 10185 10186 10187 10188 10189STRICT_CFLAGS="" 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203xorg_testset_save_CFLAGS="$CFLAGS" 10204 10205if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10206 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10208$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10209if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10210 $as_echo_n "(cached) " >&6 10211else 10212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10213/* end confdefs.h. */ 10214int i; 10215_ACEOF 10216if ac_fn_c_try_compile "$LINENO"; then : 10217 xorg_cv_cc_flag_unknown_warning_option=yes 10218else 10219 xorg_cv_cc_flag_unknown_warning_option=no 10220fi 10221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10222fi 10223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10224$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10225 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10226 CFLAGS="$xorg_testset_save_CFLAGS" 10227fi 10228 10229if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10230 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10231 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10232 fi 10233 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10235$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10236if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10237 $as_echo_n "(cached) " >&6 10238else 10239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10240/* end confdefs.h. */ 10241int i; 10242_ACEOF 10243if ac_fn_c_try_compile "$LINENO"; then : 10244 xorg_cv_cc_flag_unused_command_line_argument=yes 10245else 10246 xorg_cv_cc_flag_unused_command_line_argument=no 10247fi 10248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10249fi 10250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10251$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10252 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10253 CFLAGS="$xorg_testset_save_CFLAGS" 10254fi 10255 10256found="no" 10257 10258 if test $found = "no" ; then 10259 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10260 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10261 fi 10262 10263 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10264 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10265 fi 10266 10267 CFLAGS="$CFLAGS -pedantic" 10268 10269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10270$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10271 cacheid=xorg_cv_cc_flag__pedantic 10272 if eval \${$cacheid+:} false; then : 10273 $as_echo_n "(cached) " >&6 10274else 10275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10276/* end confdefs.h. */ 10277int i; 10278int 10279main () 10280{ 10281 10282 ; 10283 return 0; 10284} 10285_ACEOF 10286if ac_fn_c_try_link "$LINENO"; then : 10287 eval $cacheid=yes 10288else 10289 eval $cacheid=no 10290fi 10291rm -f core conftest.err conftest.$ac_objext \ 10292 conftest$ac_exeext conftest.$ac_ext 10293fi 10294 10295 10296 CFLAGS="$xorg_testset_save_CFLAGS" 10297 10298 eval supported=\$$cacheid 10299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10300$as_echo "$supported" >&6; } 10301 if test "$supported" = "yes" ; then 10302 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10303 found="yes" 10304 fi 10305 fi 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321xorg_testset_save_CFLAGS="$CFLAGS" 10322 10323if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10324 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10326$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10327if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10328 $as_echo_n "(cached) " >&6 10329else 10330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10331/* end confdefs.h. */ 10332int i; 10333_ACEOF 10334if ac_fn_c_try_compile "$LINENO"; then : 10335 xorg_cv_cc_flag_unknown_warning_option=yes 10336else 10337 xorg_cv_cc_flag_unknown_warning_option=no 10338fi 10339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10340fi 10341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10342$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10343 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10344 CFLAGS="$xorg_testset_save_CFLAGS" 10345fi 10346 10347if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10348 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10349 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10350 fi 10351 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10353$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10354if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10355 $as_echo_n "(cached) " >&6 10356else 10357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10358/* end confdefs.h. */ 10359int i; 10360_ACEOF 10361if ac_fn_c_try_compile "$LINENO"; then : 10362 xorg_cv_cc_flag_unused_command_line_argument=yes 10363else 10364 xorg_cv_cc_flag_unused_command_line_argument=no 10365fi 10366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10367fi 10368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10369$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10370 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10371 CFLAGS="$xorg_testset_save_CFLAGS" 10372fi 10373 10374found="no" 10375 10376 if test $found = "no" ; then 10377 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10378 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10379 fi 10380 10381 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10382 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10383 fi 10384 10385 CFLAGS="$CFLAGS -Werror" 10386 10387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10388$as_echo_n "checking if $CC supports -Werror... " >&6; } 10389 cacheid=xorg_cv_cc_flag__Werror 10390 if eval \${$cacheid+:} false; then : 10391 $as_echo_n "(cached) " >&6 10392else 10393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10394/* end confdefs.h. */ 10395int i; 10396int 10397main () 10398{ 10399 10400 ; 10401 return 0; 10402} 10403_ACEOF 10404if ac_fn_c_try_link "$LINENO"; then : 10405 eval $cacheid=yes 10406else 10407 eval $cacheid=no 10408fi 10409rm -f core conftest.err conftest.$ac_objext \ 10410 conftest$ac_exeext conftest.$ac_ext 10411fi 10412 10413 10414 CFLAGS="$xorg_testset_save_CFLAGS" 10415 10416 eval supported=\$$cacheid 10417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10418$as_echo "$supported" >&6; } 10419 if test "$supported" = "yes" ; then 10420 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10421 found="yes" 10422 fi 10423 fi 10424 10425 if test $found = "no" ; then 10426 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10427 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10428 fi 10429 10430 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10431 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10432 fi 10433 10434 CFLAGS="$CFLAGS -errwarn" 10435 10436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10437$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10438 cacheid=xorg_cv_cc_flag__errwarn 10439 if eval \${$cacheid+:} false; then : 10440 $as_echo_n "(cached) " >&6 10441else 10442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10443/* end confdefs.h. */ 10444int i; 10445int 10446main () 10447{ 10448 10449 ; 10450 return 0; 10451} 10452_ACEOF 10453if ac_fn_c_try_link "$LINENO"; then : 10454 eval $cacheid=yes 10455else 10456 eval $cacheid=no 10457fi 10458rm -f core conftest.err conftest.$ac_objext \ 10459 conftest$ac_exeext conftest.$ac_ext 10460fi 10461 10462 10463 CFLAGS="$xorg_testset_save_CFLAGS" 10464 10465 eval supported=\$$cacheid 10466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10467$as_echo "$supported" >&6; } 10468 if test "$supported" = "yes" ; then 10469 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10470 found="yes" 10471 fi 10472 fi 10473 10474 10475 10476# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10477# activate it with -Werror, so we add it here explicitly. 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491xorg_testset_save_CFLAGS="$CFLAGS" 10492 10493if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10494 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10496$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10497if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10498 $as_echo_n "(cached) " >&6 10499else 10500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10501/* end confdefs.h. */ 10502int i; 10503_ACEOF 10504if ac_fn_c_try_compile "$LINENO"; then : 10505 xorg_cv_cc_flag_unknown_warning_option=yes 10506else 10507 xorg_cv_cc_flag_unknown_warning_option=no 10508fi 10509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10510fi 10511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10512$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10513 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10514 CFLAGS="$xorg_testset_save_CFLAGS" 10515fi 10516 10517if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10518 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10519 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10520 fi 10521 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10523$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10524if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10525 $as_echo_n "(cached) " >&6 10526else 10527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10528/* end confdefs.h. */ 10529int i; 10530_ACEOF 10531if ac_fn_c_try_compile "$LINENO"; then : 10532 xorg_cv_cc_flag_unused_command_line_argument=yes 10533else 10534 xorg_cv_cc_flag_unused_command_line_argument=no 10535fi 10536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10537fi 10538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10539$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10540 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10541 CFLAGS="$xorg_testset_save_CFLAGS" 10542fi 10543 10544found="no" 10545 10546 if test $found = "no" ; then 10547 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10548 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10549 fi 10550 10551 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10552 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10553 fi 10554 10555 CFLAGS="$CFLAGS -Werror=attributes" 10556 10557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10558$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10559 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh` 10560 if eval \${$cacheid+:} false; then : 10561 $as_echo_n "(cached) " >&6 10562else 10563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10564/* end confdefs.h. */ 10565int i; 10566int 10567main () 10568{ 10569 10570 ; 10571 return 0; 10572} 10573_ACEOF 10574if ac_fn_c_try_link "$LINENO"; then : 10575 eval $cacheid=yes 10576else 10577 eval $cacheid=no 10578fi 10579rm -f core conftest.err conftest.$ac_objext \ 10580 conftest$ac_exeext conftest.$ac_ext 10581fi 10582 10583 10584 CFLAGS="$xorg_testset_save_CFLAGS" 10585 10586 eval supported=\$$cacheid 10587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10588$as_echo "$supported" >&6; } 10589 if test "$supported" = "yes" ; then 10590 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10591 found="yes" 10592 fi 10593 fi 10594 10595 10596 10597if test "x$STRICT_COMPILE" = "xyes"; then 10598 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10599 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10600fi 10601 10602 10603 10604 10605 10606 10607cat >>confdefs.h <<_ACEOF 10608#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10609_ACEOF 10610 10611 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10612 if test "x$PVM" = "x"; then 10613 PVM="0" 10614 fi 10615 10616cat >>confdefs.h <<_ACEOF 10617#define PACKAGE_VERSION_MINOR $PVM 10618_ACEOF 10619 10620 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10621 if test "x$PVP" = "x"; then 10622 PVP="0" 10623 fi 10624 10625cat >>confdefs.h <<_ACEOF 10626#define PACKAGE_VERSION_PATCHLEVEL $PVP 10627_ACEOF 10628 10629 10630 10631CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10632mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10633|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10634echo 'git directory not found: installing possibly empty changelog.' >&2)" 10635 10636 10637 10638 10639macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10640INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10641mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10642|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10643echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10644 10645 10646 10647 10648 10649 10650if test x$APP_MAN_SUFFIX = x ; then 10651 APP_MAN_SUFFIX=1 10652fi 10653if test x$APP_MAN_DIR = x ; then 10654 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10655fi 10656 10657if test x$LIB_MAN_SUFFIX = x ; then 10658 LIB_MAN_SUFFIX=3 10659fi 10660if test x$LIB_MAN_DIR = x ; then 10661 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10662fi 10663 10664if test x$FILE_MAN_SUFFIX = x ; then 10665 case $host_os in 10666 solaris*) FILE_MAN_SUFFIX=4 ;; 10667 *) FILE_MAN_SUFFIX=5 ;; 10668 esac 10669fi 10670if test x$FILE_MAN_DIR = x ; then 10671 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10672fi 10673 10674if test x$MISC_MAN_SUFFIX = x ; then 10675 case $host_os in 10676 solaris*) MISC_MAN_SUFFIX=5 ;; 10677 *) MISC_MAN_SUFFIX=7 ;; 10678 esac 10679fi 10680if test x$MISC_MAN_DIR = x ; then 10681 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10682fi 10683 10684if test x$DRIVER_MAN_SUFFIX = x ; then 10685 case $host_os in 10686 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10687 *) DRIVER_MAN_SUFFIX=4 ;; 10688 esac 10689fi 10690if test x$DRIVER_MAN_DIR = x ; then 10691 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10692fi 10693 10694if test x$ADMIN_MAN_SUFFIX = x ; then 10695 case $host_os in 10696 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10697 *) ADMIN_MAN_SUFFIX=8 ;; 10698 esac 10699fi 10700if test x$ADMIN_MAN_DIR = x ; then 10701 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10702fi 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718XORG_MAN_PAGE="X Version 11" 10719 10720MAN_SUBSTS="\ 10721 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10722 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10723 -e 's|__xservername__|Xorg|g' \ 10724 -e 's|__xconfigfile__|xorg.conf|g' \ 10725 -e 's|__projectroot__|\$(prefix)|g' \ 10726 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10727 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10728 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10729 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10730 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10731 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10732 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10733 10734 10735 10736# Check whether --enable-silent-rules was given. 10737if test "${enable_silent_rules+set}" = set; then : 10738 enableval=$enable_silent_rules; 10739fi 10740 10741case $enable_silent_rules in # ((( 10742 yes) AM_DEFAULT_VERBOSITY=0;; 10743 no) AM_DEFAULT_VERBOSITY=1;; 10744 *) AM_DEFAULT_VERBOSITY=0;; 10745esac 10746am_make=${MAKE-make} 10747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10748$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10749if ${am_cv_make_support_nested_variables+:} false; then : 10750 $as_echo_n "(cached) " >&6 10751else 10752 if $as_echo 'TRUE=$(BAR$(V)) 10753BAR0=false 10754BAR1=true 10755V=1 10756am__doit: 10757 @$(TRUE) 10758.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10759 am_cv_make_support_nested_variables=yes 10760else 10761 am_cv_make_support_nested_variables=no 10762fi 10763fi 10764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10765$as_echo "$am_cv_make_support_nested_variables" >&6; } 10766if test $am_cv_make_support_nested_variables = yes; then 10767 AM_V='$(V)' 10768 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10769else 10770 AM_V=$AM_DEFAULT_VERBOSITY 10771 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10772fi 10773AM_BACKSLASH='\' 10774 10775 10776 10777for ac_func in mkstemp asprintf 10778do : 10779 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 10780ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 10781if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 10782 cat >>confdefs.h <<_ACEOF 10783#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 10784_ACEOF 10785 10786fi 10787done 10788 10789 10790# Find MAXHOSTNAMELEN definition 10791# Common hidey holes: 10792# BSD & Linux - <sys/param.h> 10793# Solaris - <netdb.h> 10794 10795ac_fn_c_check_decl "$LINENO" "MAXHOSTNAMELEN" "ac_cv_have_decl_MAXHOSTNAMELEN" "$ac_includes_default" 10796if test "x$ac_cv_have_decl_MAXHOSTNAMELEN" = xyes; then : 10797 FOUND_MAXHOSTNAMELEN=yes 10798fi 10799 10800 10801if test x$FOUND_MAXHOSTNAMELEN != xyes ; then 10802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for header that defines MAXHOSTNAMELEN" >&5 10803$as_echo_n "checking for header that defines MAXHOSTNAMELEN... " >&6; } 10804 10805 FOUND_MAXHOSTNAMELEN='not found' 10806 10807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10808/* end confdefs.h. */ 10809#include <sys/param.h> 10810int 10811main () 10812{ 10813int h = MAXHOSTNAMELEN; 10814 ; 10815 return 0; 10816} 10817_ACEOF 10818if ac_fn_c_try_compile "$LINENO"; then : 10819 FOUND_MAXHOSTNAMELEN='sys/param.h' 10820 10821$as_echo "#define NEED_SYS_PARAM_H 1" >>confdefs.h 10822 10823fi 10824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10825 10826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10827/* end confdefs.h. */ 10828#include <netdb.h> 10829int 10830main () 10831{ 10832int h = MAXHOSTNAMELEN; 10833 ; 10834 return 0; 10835} 10836_ACEOF 10837if ac_fn_c_try_compile "$LINENO"; then : 10838 FOUND_MAXHOSTNAMELEN='netdb.h' 10839 10840$as_echo "#define NEED_NETDB_H 1" >>confdefs.h 10841 10842fi 10843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10844 10845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOUND_MAXHOSTNAMELEN" >&5 10846$as_echo "$FOUND_MAXHOSTNAMELEN" >&6; } 10847fi 10848 10849# xrdb needs to know where to find cpp at runtime - previously set as CppCmd 10850# in Imake config files for each OS 10851 10852# Check whether --with-cpp was given. 10853if test "${with_cpp+set}" = set; then : 10854 withval=$with_cpp; { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpp" >&5 10855$as_echo_n "checking for cpp... " >&6; } 10856 CPP_PATH=$withval 10857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: --with-cpp specified $CPP_PATH" >&5 10858$as_echo "--with-cpp specified $CPP_PATH" >&6; } 10859else 10860 # Extract the first word of "cpp", so it can be a program name with args. 10861set dummy cpp; ac_word=$2 10862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10863$as_echo_n "checking for $ac_word... " >&6; } 10864if ${ac_cv_path_CPP_PATH+:} false; then : 10865 $as_echo_n "(cached) " >&6 10866else 10867 case $CPP_PATH in 10868 [\\/]* | ?:[\\/]*) 10869 ac_cv_path_CPP_PATH="$CPP_PATH" # Let the user override the test with a path. 10870 ;; 10871 *) 10872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10873as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib" 10874for as_dir in $as_dummy 10875do 10876 IFS=$as_save_IFS 10877 test -z "$as_dir" && as_dir=. 10878 for ac_exec_ext in '' $ac_executable_extensions; do 10879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10880 ac_cv_path_CPP_PATH="$as_dir/$ac_word$ac_exec_ext" 10881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10882 break 2 10883 fi 10884done 10885 done 10886IFS=$as_save_IFS 10887 10888 test -z "$ac_cv_path_CPP_PATH" && ac_cv_path_CPP_PATH="cpp" 10889 ;; 10890esac 10891fi 10892CPP_PATH=$ac_cv_path_CPP_PATH 10893if test -n "$CPP_PATH"; then 10894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP_PATH" >&5 10895$as_echo "$CPP_PATH" >&6; } 10896else 10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10898$as_echo "no" >&6; } 10899fi 10900 10901 10902fi 10903 10904CPP_PATH=`echo ${CPP_PATH} | sed 's/,/\\",\\"/g'` 10905 10906cat >>confdefs.h <<_ACEOF 10907#define CPP "$CPP_PATH" 10908_ACEOF 10909 10910 10911# Checks for pkg-config packages 10912 10913pkg_failed=no 10914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRDB" >&5 10915$as_echo_n "checking for XRDB... " >&6; } 10916 10917if test -n "$XRDB_CFLAGS"; then 10918 pkg_cv_XRDB_CFLAGS="$XRDB_CFLAGS" 10919 elif test -n "$PKG_CONFIG"; then 10920 if test -n "$PKG_CONFIG" && \ 10921 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmuu x11 xproto >= 7.0.17\""; } >&5 10922 ($PKG_CONFIG --exists --print-errors "xmuu x11 xproto >= 7.0.17") 2>&5 10923 ac_status=$? 10924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10925 test $ac_status = 0; }; then 10926 pkg_cv_XRDB_CFLAGS=`$PKG_CONFIG --cflags "xmuu x11 xproto >= 7.0.17" 2>/dev/null` 10927else 10928 pkg_failed=yes 10929fi 10930 else 10931 pkg_failed=untried 10932fi 10933if test -n "$XRDB_LIBS"; then 10934 pkg_cv_XRDB_LIBS="$XRDB_LIBS" 10935 elif test -n "$PKG_CONFIG"; then 10936 if test -n "$PKG_CONFIG" && \ 10937 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmuu x11 xproto >= 7.0.17\""; } >&5 10938 ($PKG_CONFIG --exists --print-errors "xmuu x11 xproto >= 7.0.17") 2>&5 10939 ac_status=$? 10940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10941 test $ac_status = 0; }; then 10942 pkg_cv_XRDB_LIBS=`$PKG_CONFIG --libs "xmuu x11 xproto >= 7.0.17" 2>/dev/null` 10943else 10944 pkg_failed=yes 10945fi 10946 else 10947 pkg_failed=untried 10948fi 10949 10950 10951 10952if test $pkg_failed = yes; then 10953 10954if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10955 _pkg_short_errors_supported=yes 10956else 10957 _pkg_short_errors_supported=no 10958fi 10959 if test $_pkg_short_errors_supported = yes; then 10960 XRDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xmuu x11 xproto >= 7.0.17" 2>&1` 10961 else 10962 XRDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "xmuu x11 xproto >= 7.0.17" 2>&1` 10963 fi 10964 # Put the nasty error message in config.log where it belongs 10965 echo "$XRDB_PKG_ERRORS" >&5 10966 10967 as_fn_error $? "Package requirements (xmuu x11 xproto >= 7.0.17) were not met: 10968 10969$XRDB_PKG_ERRORS 10970 10971Consider adjusting the PKG_CONFIG_PATH environment variable if you 10972installed software in a non-standard prefix. 10973 10974Alternatively, you may set the environment variables XRDB_CFLAGS 10975and XRDB_LIBS to avoid the need to call pkg-config. 10976See the pkg-config man page for more details. 10977" "$LINENO" 5 10978elif test $pkg_failed = untried; then 10979 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10980$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10981as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10982is in your PATH or set the PKG_CONFIG environment variable to the full 10983path to pkg-config. 10984 10985Alternatively, you may set the environment variables XRDB_CFLAGS 10986and XRDB_LIBS to avoid the need to call pkg-config. 10987See the pkg-config man page for more details. 10988 10989To get pkg-config, see <http://pkg-config.freedesktop.org/>. 10990See \`config.log' for more details" "$LINENO" 5; } 10991else 10992 XRDB_CFLAGS=$pkg_cv_XRDB_CFLAGS 10993 XRDB_LIBS=$pkg_cv_XRDB_LIBS 10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10995$as_echo "yes" >&6; } 10996 : 10997fi 10998 10999ac_config_files="$ac_config_files Makefile man/Makefile" 11000 11001cat >confcache <<\_ACEOF 11002# This file is a shell script that caches the results of configure 11003# tests run on this system so they can be shared between configure 11004# scripts and configure runs, see configure's option --config-cache. 11005# It is not useful on other systems. If it contains results you don't 11006# want to keep, you may remove or edit it. 11007# 11008# config.status only pays attention to the cache file if you give it 11009# the --recheck option to rerun configure. 11010# 11011# `ac_cv_env_foo' variables (set or unset) will be overridden when 11012# loading this file, other *unset* `ac_cv_foo' will be assigned the 11013# following values. 11014 11015_ACEOF 11016 11017# The following way of writing the cache mishandles newlines in values, 11018# but we know of no workaround that is simple, portable, and efficient. 11019# So, we kill variables containing newlines. 11020# Ultrix sh set writes to stderr and can't be redirected directly, 11021# and sets the high bit in the cache file unless we assign to the vars. 11022( 11023 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11024 eval ac_val=\$$ac_var 11025 case $ac_val in #( 11026 *${as_nl}*) 11027 case $ac_var in #( 11028 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11029$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11030 esac 11031 case $ac_var in #( 11032 _ | IFS | as_nl) ;; #( 11033 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11034 *) { eval $ac_var=; unset $ac_var;} ;; 11035 esac ;; 11036 esac 11037 done 11038 11039 (set) 2>&1 | 11040 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11041 *${as_nl}ac_space=\ *) 11042 # `set' does not quote correctly, so add quotes: double-quote 11043 # substitution turns \\\\ into \\, and sed turns \\ into \. 11044 sed -n \ 11045 "s/'/'\\\\''/g; 11046 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11047 ;; #( 11048 *) 11049 # `set' quotes correctly as required by POSIX, so do not add quotes. 11050 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11051 ;; 11052 esac | 11053 sort 11054) | 11055 sed ' 11056 /^ac_cv_env_/b end 11057 t clear 11058 :clear 11059 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11060 t end 11061 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11062 :end' >>confcache 11063if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11064 if test -w "$cache_file"; then 11065 if test "x$cache_file" != "x/dev/null"; then 11066 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11067$as_echo "$as_me: updating cache $cache_file" >&6;} 11068 if test ! -f "$cache_file" || test -h "$cache_file"; then 11069 cat confcache >"$cache_file" 11070 else 11071 case $cache_file in #( 11072 */* | ?:*) 11073 mv -f confcache "$cache_file"$$ && 11074 mv -f "$cache_file"$$ "$cache_file" ;; #( 11075 *) 11076 mv -f confcache "$cache_file" ;; 11077 esac 11078 fi 11079 fi 11080 else 11081 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11082$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11083 fi 11084fi 11085rm -f confcache 11086 11087test "x$prefix" = xNONE && prefix=$ac_default_prefix 11088# Let make expand exec_prefix. 11089test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11090 11091DEFS=-DHAVE_CONFIG_H 11092 11093ac_libobjs= 11094ac_ltlibobjs= 11095U= 11096for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11097 # 1. Remove the extension, and $U if already installed. 11098 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11099 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11100 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11101 # will be set to the directory where LIBOBJS objects are built. 11102 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11103 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11104done 11105LIBOBJS=$ac_libobjs 11106 11107LTLIBOBJS=$ac_ltlibobjs 11108 11109 11110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11111$as_echo_n "checking that generated files are newer than configure... " >&6; } 11112 if test -n "$am_sleep_pid"; then 11113 # Hide warnings about reused PIDs. 11114 wait $am_sleep_pid 2>/dev/null 11115 fi 11116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 11117$as_echo "done" >&6; } 11118if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11119 as_fn_error $? "conditional \"AMDEP\" was never defined. 11120Usually this means the macro was only invoked conditionally." "$LINENO" 5 11121fi 11122if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11123 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11124Usually this means the macro was only invoked conditionally." "$LINENO" 5 11125fi 11126 if test -n "$EXEEXT"; then 11127 am__EXEEXT_TRUE= 11128 am__EXEEXT_FALSE='#' 11129else 11130 am__EXEEXT_TRUE='#' 11131 am__EXEEXT_FALSE= 11132fi 11133 11134if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 11135 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 11136Usually this means the macro was only invoked conditionally." "$LINENO" 5 11137fi 11138 11139: "${CONFIG_STATUS=./config.status}" 11140ac_write_fail=0 11141ac_clean_files_save=$ac_clean_files 11142ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11143{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11144$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11145as_write_fail=0 11146cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11147#! $SHELL 11148# Generated by $as_me. 11149# Run this file to recreate the current configuration. 11150# Compiler output produced by configure, useful for debugging 11151# configure, is in config.log if it exists. 11152 11153debug=false 11154ac_cs_recheck=false 11155ac_cs_silent=false 11156 11157SHELL=\${CONFIG_SHELL-$SHELL} 11158export SHELL 11159_ASEOF 11160cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11161## -------------------- ## 11162## M4sh Initialization. ## 11163## -------------------- ## 11164 11165# Be more Bourne compatible 11166DUALCASE=1; export DUALCASE # for MKS sh 11167if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 11168 emulate sh 11169 NULLCMD=: 11170 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11171 # is contrary to our usage. Disable this feature. 11172 alias -g '${1+"$@"}'='"$@"' 11173 setopt NO_GLOB_SUBST 11174else 11175 case `(set -o) 2>/dev/null` in #( 11176 *posix*) : 11177 set -o posix ;; #( 11178 *) : 11179 ;; 11180esac 11181fi 11182 11183 11184as_nl=' 11185' 11186export as_nl 11187# Printing a long string crashes Solaris 7 /usr/bin/printf. 11188as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11189as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11190as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11191# Prefer a ksh shell builtin over an external printf program on Solaris, 11192# but without wasting forks for bash or zsh. 11193if test -z "$BASH_VERSION$ZSH_VERSION" \ 11194 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 11195 as_echo='print -r --' 11196 as_echo_n='print -rn --' 11197elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11198 as_echo='printf %s\n' 11199 as_echo_n='printf %s' 11200else 11201 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11202 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11203 as_echo_n='/usr/ucb/echo -n' 11204 else 11205 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11206 as_echo_n_body='eval 11207 arg=$1; 11208 case $arg in #( 11209 *"$as_nl"*) 11210 expr "X$arg" : "X\\(.*\\)$as_nl"; 11211 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11212 esac; 11213 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11214 ' 11215 export as_echo_n_body 11216 as_echo_n='sh -c $as_echo_n_body as_echo' 11217 fi 11218 export as_echo_body 11219 as_echo='sh -c $as_echo_body as_echo' 11220fi 11221 11222# The user is always right. 11223if test "${PATH_SEPARATOR+set}" != set; then 11224 PATH_SEPARATOR=: 11225 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11226 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11227 PATH_SEPARATOR=';' 11228 } 11229fi 11230 11231 11232# IFS 11233# We need space, tab and new line, in precisely that order. Quoting is 11234# there to prevent editors from complaining about space-tab. 11235# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11236# splitting by setting IFS to empty value.) 11237IFS=" "" $as_nl" 11238 11239# Find who we are. Look in the path if we contain no directory separator. 11240as_myself= 11241case $0 in #(( 11242 *[\\/]* ) as_myself=$0 ;; 11243 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11244for as_dir in $PATH 11245do 11246 IFS=$as_save_IFS 11247 test -z "$as_dir" && as_dir=. 11248 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11249 done 11250IFS=$as_save_IFS 11251 11252 ;; 11253esac 11254# We did not find ourselves, most probably we were run as `sh COMMAND' 11255# in which case we are not to be found in the path. 11256if test "x$as_myself" = x; then 11257 as_myself=$0 11258fi 11259if test ! -f "$as_myself"; then 11260 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11261 exit 1 11262fi 11263 11264# Unset variables that we do not need and which cause bugs (e.g. in 11265# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 11266# suppresses any "Segmentation fault" message there. '((' could 11267# trigger a bug in pdksh 5.2.14. 11268for as_var in BASH_ENV ENV MAIL MAILPATH 11269do eval test x\${$as_var+set} = xset \ 11270 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11271done 11272PS1='$ ' 11273PS2='> ' 11274PS4='+ ' 11275 11276# NLS nuisances. 11277LC_ALL=C 11278export LC_ALL 11279LANGUAGE=C 11280export LANGUAGE 11281 11282# CDPATH. 11283(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11284 11285 11286# as_fn_error STATUS ERROR [LINENO LOG_FD] 11287# ---------------------------------------- 11288# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11289# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11290# script with STATUS, using 1 if that was 0. 11291as_fn_error () 11292{ 11293 as_status=$1; test $as_status -eq 0 && as_status=1 11294 if test "$4"; then 11295 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11296 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11297 fi 11298 $as_echo "$as_me: error: $2" >&2 11299 as_fn_exit $as_status 11300} # as_fn_error 11301 11302 11303# as_fn_set_status STATUS 11304# ----------------------- 11305# Set $? to STATUS, without forking. 11306as_fn_set_status () 11307{ 11308 return $1 11309} # as_fn_set_status 11310 11311# as_fn_exit STATUS 11312# ----------------- 11313# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11314as_fn_exit () 11315{ 11316 set +e 11317 as_fn_set_status $1 11318 exit $1 11319} # as_fn_exit 11320 11321# as_fn_unset VAR 11322# --------------- 11323# Portably unset VAR. 11324as_fn_unset () 11325{ 11326 { eval $1=; unset $1;} 11327} 11328as_unset=as_fn_unset 11329# as_fn_append VAR VALUE 11330# ---------------------- 11331# Append the text in VALUE to the end of the definition contained in VAR. Take 11332# advantage of any shell optimizations that allow amortized linear growth over 11333# repeated appends, instead of the typical quadratic growth present in naive 11334# implementations. 11335if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11336 eval 'as_fn_append () 11337 { 11338 eval $1+=\$2 11339 }' 11340else 11341 as_fn_append () 11342 { 11343 eval $1=\$$1\$2 11344 } 11345fi # as_fn_append 11346 11347# as_fn_arith ARG... 11348# ------------------ 11349# Perform arithmetic evaluation on the ARGs, and store the result in the 11350# global $as_val. Take advantage of shells that can avoid forks. The arguments 11351# must be portable across $(()) and expr. 11352if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11353 eval 'as_fn_arith () 11354 { 11355 as_val=$(( $* )) 11356 }' 11357else 11358 as_fn_arith () 11359 { 11360 as_val=`expr "$@" || test $? -eq 1` 11361 } 11362fi # as_fn_arith 11363 11364 11365if expr a : '\(a\)' >/dev/null 2>&1 && 11366 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11367 as_expr=expr 11368else 11369 as_expr=false 11370fi 11371 11372if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11373 as_basename=basename 11374else 11375 as_basename=false 11376fi 11377 11378if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11379 as_dirname=dirname 11380else 11381 as_dirname=false 11382fi 11383 11384as_me=`$as_basename -- "$0" || 11385$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11386 X"$0" : 'X\(//\)$' \| \ 11387 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11388$as_echo X/"$0" | 11389 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11390 s//\1/ 11391 q 11392 } 11393 /^X\/\(\/\/\)$/{ 11394 s//\1/ 11395 q 11396 } 11397 /^X\/\(\/\).*/{ 11398 s//\1/ 11399 q 11400 } 11401 s/.*/./; q'` 11402 11403# Avoid depending upon Character Ranges. 11404as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11405as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11406as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11407as_cr_digits='0123456789' 11408as_cr_alnum=$as_cr_Letters$as_cr_digits 11409 11410ECHO_C= ECHO_N= ECHO_T= 11411case `echo -n x` in #((((( 11412-n*) 11413 case `echo 'xy\c'` in 11414 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11415 xy) ECHO_C='\c';; 11416 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11417 ECHO_T=' ';; 11418 esac;; 11419*) 11420 ECHO_N='-n';; 11421esac 11422 11423rm -f conf$$ conf$$.exe conf$$.file 11424if test -d conf$$.dir; then 11425 rm -f conf$$.dir/conf$$.file 11426else 11427 rm -f conf$$.dir 11428 mkdir conf$$.dir 2>/dev/null 11429fi 11430if (echo >conf$$.file) 2>/dev/null; then 11431 if ln -s conf$$.file conf$$ 2>/dev/null; then 11432 as_ln_s='ln -s' 11433 # ... but there are two gotchas: 11434 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11435 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11436 # In both cases, we have to default to `cp -p'. 11437 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11438 as_ln_s='cp -p' 11439 elif ln conf$$.file conf$$ 2>/dev/null; then 11440 as_ln_s=ln 11441 else 11442 as_ln_s='cp -p' 11443 fi 11444else 11445 as_ln_s='cp -p' 11446fi 11447rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11448rmdir conf$$.dir 2>/dev/null 11449 11450 11451# as_fn_mkdir_p 11452# ------------- 11453# Create "$as_dir" as a directory, including parents if necessary. 11454as_fn_mkdir_p () 11455{ 11456 11457 case $as_dir in #( 11458 -*) as_dir=./$as_dir;; 11459 esac 11460 test -d "$as_dir" || eval $as_mkdir_p || { 11461 as_dirs= 11462 while :; do 11463 case $as_dir in #( 11464 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11465 *) as_qdir=$as_dir;; 11466 esac 11467 as_dirs="'$as_qdir' $as_dirs" 11468 as_dir=`$as_dirname -- "$as_dir" || 11469$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11470 X"$as_dir" : 'X\(//\)[^/]' \| \ 11471 X"$as_dir" : 'X\(//\)$' \| \ 11472 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11473$as_echo X"$as_dir" | 11474 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11475 s//\1/ 11476 q 11477 } 11478 /^X\(\/\/\)[^/].*/{ 11479 s//\1/ 11480 q 11481 } 11482 /^X\(\/\/\)$/{ 11483 s//\1/ 11484 q 11485 } 11486 /^X\(\/\).*/{ 11487 s//\1/ 11488 q 11489 } 11490 s/.*/./; q'` 11491 test -d "$as_dir" && break 11492 done 11493 test -z "$as_dirs" || eval "mkdir $as_dirs" 11494 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11495 11496 11497} # as_fn_mkdir_p 11498if mkdir -p . 2>/dev/null; then 11499 as_mkdir_p='mkdir -p "$as_dir"' 11500else 11501 test -d ./-p && rmdir ./-p 11502 as_mkdir_p=false 11503fi 11504 11505if test -x / >/dev/null 2>&1; then 11506 as_test_x='test -x' 11507else 11508 if ls -dL / >/dev/null 2>&1; then 11509 as_ls_L_option=L 11510 else 11511 as_ls_L_option= 11512 fi 11513 as_test_x=' 11514 eval sh -c '\'' 11515 if test -d "$1"; then 11516 test -d "$1/."; 11517 else 11518 case $1 in #( 11519 -*)set "./$1";; 11520 esac; 11521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 11522 ???[sx]*):;;*)false;;esac;fi 11523 '\'' sh 11524 ' 11525fi 11526as_executable_p=$as_test_x 11527 11528# Sed expression to map a string onto a valid CPP name. 11529as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11530 11531# Sed expression to map a string onto a valid variable name. 11532as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11533 11534 11535exec 6>&1 11536## ----------------------------------- ## 11537## Main body of $CONFIG_STATUS script. ## 11538## ----------------------------------- ## 11539_ASEOF 11540test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11541 11542cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11543# Save the log message, to keep $0 and so on meaningful, and to 11544# report actual input values of CONFIG_FILES etc. instead of their 11545# values after options handling. 11546ac_log=" 11547This file was extended by xrdb $as_me 1.1.0, which was 11548generated by GNU Autoconf 2.68. Invocation command line was 11549 11550 CONFIG_FILES = $CONFIG_FILES 11551 CONFIG_HEADERS = $CONFIG_HEADERS 11552 CONFIG_LINKS = $CONFIG_LINKS 11553 CONFIG_COMMANDS = $CONFIG_COMMANDS 11554 $ $0 $@ 11555 11556on `(hostname || uname -n) 2>/dev/null | sed 1q` 11557" 11558 11559_ACEOF 11560 11561case $ac_config_files in *" 11562"*) set x $ac_config_files; shift; ac_config_files=$*;; 11563esac 11564 11565case $ac_config_headers in *" 11566"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11567esac 11568 11569 11570cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11571# Files that config.status was made for. 11572config_files="$ac_config_files" 11573config_headers="$ac_config_headers" 11574config_commands="$ac_config_commands" 11575 11576_ACEOF 11577 11578cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11579ac_cs_usage="\ 11580\`$as_me' instantiates files and other configuration actions 11581from templates according to the current configuration. Unless the files 11582and actions are specified as TAGs, all are instantiated by default. 11583 11584Usage: $0 [OPTION]... [TAG]... 11585 11586 -h, --help print this help, then exit 11587 -V, --version print version number and configuration settings, then exit 11588 --config print configuration, then exit 11589 -q, --quiet, --silent 11590 do not print progress messages 11591 -d, --debug don't remove temporary files 11592 --recheck update $as_me by reconfiguring in the same conditions 11593 --file=FILE[:TEMPLATE] 11594 instantiate the configuration file FILE 11595 --header=FILE[:TEMPLATE] 11596 instantiate the configuration header FILE 11597 11598Configuration files: 11599$config_files 11600 11601Configuration headers: 11602$config_headers 11603 11604Configuration commands: 11605$config_commands 11606 11607Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 11608 11609_ACEOF 11610cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11611ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11612ac_cs_version="\\ 11613xrdb config.status 1.1.0 11614configured by $0, generated by GNU Autoconf 2.68, 11615 with options \\"\$ac_cs_config\\" 11616 11617Copyright (C) 2010 Free Software Foundation, Inc. 11618This config.status script is free software; the Free Software Foundation 11619gives unlimited permission to copy, distribute and modify it." 11620 11621ac_pwd='$ac_pwd' 11622srcdir='$srcdir' 11623INSTALL='$INSTALL' 11624MKDIR_P='$MKDIR_P' 11625AWK='$AWK' 11626test -n "\$AWK" || AWK=awk 11627_ACEOF 11628 11629cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11630# The default lists apply if the user does not specify any file. 11631ac_need_defaults=: 11632while test $# != 0 11633do 11634 case $1 in 11635 --*=?*) 11636 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11637 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11638 ac_shift=: 11639 ;; 11640 --*=) 11641 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11642 ac_optarg= 11643 ac_shift=: 11644 ;; 11645 *) 11646 ac_option=$1 11647 ac_optarg=$2 11648 ac_shift=shift 11649 ;; 11650 esac 11651 11652 case $ac_option in 11653 # Handling of the options. 11654 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11655 ac_cs_recheck=: ;; 11656 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11657 $as_echo "$ac_cs_version"; exit ;; 11658 --config | --confi | --conf | --con | --co | --c ) 11659 $as_echo "$ac_cs_config"; exit ;; 11660 --debug | --debu | --deb | --de | --d | -d ) 11661 debug=: ;; 11662 --file | --fil | --fi | --f ) 11663 $ac_shift 11664 case $ac_optarg in 11665 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11666 '') as_fn_error $? "missing file argument" ;; 11667 esac 11668 as_fn_append CONFIG_FILES " '$ac_optarg'" 11669 ac_need_defaults=false;; 11670 --header | --heade | --head | --hea ) 11671 $ac_shift 11672 case $ac_optarg in 11673 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11674 esac 11675 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11676 ac_need_defaults=false;; 11677 --he | --h) 11678 # Conflict between --help and --header 11679 as_fn_error $? "ambiguous option: \`$1' 11680Try \`$0 --help' for more information.";; 11681 --help | --hel | -h ) 11682 $as_echo "$ac_cs_usage"; exit ;; 11683 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11684 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11685 ac_cs_silent=: ;; 11686 11687 # This is an error. 11688 -*) as_fn_error $? "unrecognized option: \`$1' 11689Try \`$0 --help' for more information." ;; 11690 11691 *) as_fn_append ac_config_targets " $1" 11692 ac_need_defaults=false ;; 11693 11694 esac 11695 shift 11696done 11697 11698ac_configure_extra_args= 11699 11700if $ac_cs_silent; then 11701 exec 6>/dev/null 11702 ac_configure_extra_args="$ac_configure_extra_args --silent" 11703fi 11704 11705_ACEOF 11706cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11707if \$ac_cs_recheck; then 11708 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11709 shift 11710 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11711 CONFIG_SHELL='$SHELL' 11712 export CONFIG_SHELL 11713 exec "\$@" 11714fi 11715 11716_ACEOF 11717cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11718exec 5>>config.log 11719{ 11720 echo 11721 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11722## Running $as_me. ## 11723_ASBOX 11724 $as_echo "$ac_log" 11725} >&5 11726 11727_ACEOF 11728cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11729# 11730# INIT-COMMANDS 11731# 11732AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 11733 11734_ACEOF 11735 11736cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11737 11738# Handling of arguments. 11739for ac_config_target in $ac_config_targets 11740do 11741 case $ac_config_target in 11742 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11743 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11744 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11745 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 11746 11747 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11748 esac 11749done 11750 11751 11752# If the user did not use the arguments to specify the items to instantiate, 11753# then the envvar interface is used. Set only those that are not. 11754# We use the long form for the default assignment because of an extremely 11755# bizarre bug on SunOS 4.1.3. 11756if $ac_need_defaults; then 11757 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11758 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11759 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11760fi 11761 11762# Have a temporary directory for convenience. Make it in the build tree 11763# simply because there is no reason against having it here, and in addition, 11764# creating and moving files from /tmp can sometimes cause problems. 11765# Hook for its removal unless debugging. 11766# Note that there is a small window in which the directory will not be cleaned: 11767# after its creation but before its name has been assigned to `$tmp'. 11768$debug || 11769{ 11770 tmp= ac_tmp= 11771 trap 'exit_status=$? 11772 : "${ac_tmp:=$tmp}" 11773 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11774' 0 11775 trap 'as_fn_exit 1' 1 2 13 15 11776} 11777# Create a (secure) tmp directory for tmp files. 11778 11779{ 11780 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11781 test -d "$tmp" 11782} || 11783{ 11784 tmp=./conf$$-$RANDOM 11785 (umask 077 && mkdir "$tmp") 11786} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11787ac_tmp=$tmp 11788 11789# Set up the scripts for CONFIG_FILES section. 11790# No need to generate them if there are no CONFIG_FILES. 11791# This happens for instance with `./config.status config.h'. 11792if test -n "$CONFIG_FILES"; then 11793 11794 11795ac_cr=`echo X | tr X '\015'` 11796# On cygwin, bash can eat \r inside `` if the user requested igncr. 11797# But we know of no other shell where ac_cr would be empty at this 11798# point, so we can use a bashism as a fallback. 11799if test "x$ac_cr" = x; then 11800 eval ac_cr=\$\'\\r\' 11801fi 11802ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11803if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11804 ac_cs_awk_cr='\\r' 11805else 11806 ac_cs_awk_cr=$ac_cr 11807fi 11808 11809echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 11810_ACEOF 11811 11812 11813{ 11814 echo "cat >conf$$subs.awk <<_ACEOF" && 11815 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11816 echo "_ACEOF" 11817} >conf$$subs.sh || 11818 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11819ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11820ac_delim='%!_!# ' 11821for ac_last_try in false false false false false :; do 11822 . ./conf$$subs.sh || 11823 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11824 11825 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 11826 if test $ac_delim_n = $ac_delim_num; then 11827 break 11828 elif $ac_last_try; then 11829 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11830 else 11831 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11832 fi 11833done 11834rm -f conf$$subs.sh 11835 11836cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11837cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 11838_ACEOF 11839sed -n ' 11840h 11841s/^/S["/; s/!.*/"]=/ 11842p 11843g 11844s/^[^!]*!// 11845:repl 11846t repl 11847s/'"$ac_delim"'$// 11848t delim 11849:nl 11850h 11851s/\(.\{148\}\)..*/\1/ 11852t more1 11853s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 11854p 11855n 11856b repl 11857:more1 11858s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11859p 11860g 11861s/.\{148\}// 11862t nl 11863:delim 11864h 11865s/\(.\{148\}\)..*/\1/ 11866t more2 11867s/["\\]/\\&/g; s/^/"/; s/$/"/ 11868p 11869b 11870:more2 11871s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11872p 11873g 11874s/.\{148\}// 11875t delim 11876' <conf$$subs.awk | sed ' 11877/^[^""]/{ 11878 N 11879 s/\n// 11880} 11881' >>$CONFIG_STATUS || ac_write_fail=1 11882rm -f conf$$subs.awk 11883cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11884_ACAWK 11885cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 11886 for (key in S) S_is_set[key] = 1 11887 FS = "" 11888 11889} 11890{ 11891 line = $ 0 11892 nfields = split(line, field, "@") 11893 substed = 0 11894 len = length(field[1]) 11895 for (i = 2; i < nfields; i++) { 11896 key = field[i] 11897 keylen = length(key) 11898 if (S_is_set[key]) { 11899 value = S[key] 11900 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 11901 len += length(value) + length(field[++i]) 11902 substed = 1 11903 } else 11904 len += 1 + keylen 11905 } 11906 11907 print line 11908} 11909 11910_ACAWK 11911_ACEOF 11912cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11913if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 11914 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 11915else 11916 cat 11917fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 11918 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 11919_ACEOF 11920 11921# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 11922# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 11923# trailing colons and then remove the whole line if VPATH becomes empty 11924# (actually we leave an empty line to preserve line numbers). 11925if test "x$srcdir" = x.; then 11926 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 11927h 11928s/// 11929s/^/:/ 11930s/[ ]*$/:/ 11931s/:\$(srcdir):/:/g 11932s/:\${srcdir}:/:/g 11933s/:@srcdir@:/:/g 11934s/^:*// 11935s/:*$// 11936x 11937s/\(=[ ]*\).*/\1/ 11938G 11939s/\n// 11940s/^[^=]*=[ ]*$// 11941}' 11942fi 11943 11944cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11945fi # test -n "$CONFIG_FILES" 11946 11947# Set up the scripts for CONFIG_HEADERS section. 11948# No need to generate them if there are no CONFIG_HEADERS. 11949# This happens for instance with `./config.status Makefile'. 11950if test -n "$CONFIG_HEADERS"; then 11951cat >"$ac_tmp/defines.awk" <<\_ACAWK || 11952BEGIN { 11953_ACEOF 11954 11955# Transform confdefs.h into an awk script `defines.awk', embedded as 11956# here-document in config.status, that substitutes the proper values into 11957# config.h.in to produce config.h. 11958 11959# Create a delimiter string that does not exist in confdefs.h, to ease 11960# handling of long lines. 11961ac_delim='%!_!# ' 11962for ac_last_try in false false :; do 11963 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 11964 if test -z "$ac_tt"; then 11965 break 11966 elif $ac_last_try; then 11967 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 11968 else 11969 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11970 fi 11971done 11972 11973# For the awk script, D is an array of macro values keyed by name, 11974# likewise P contains macro parameters if any. Preserve backslash 11975# newline sequences. 11976 11977ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 11978sed -n ' 11979s/.\{148\}/&'"$ac_delim"'/g 11980t rset 11981:rset 11982s/^[ ]*#[ ]*define[ ][ ]*/ / 11983t def 11984d 11985:def 11986s/\\$// 11987t bsnl 11988s/["\\]/\\&/g 11989s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11990D["\1"]=" \3"/p 11991s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 11992d 11993:bsnl 11994s/["\\]/\\&/g 11995s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11996D["\1"]=" \3\\\\\\n"\\/p 11997t cont 11998s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 11999t cont 12000d 12001:cont 12002n 12003s/.\{148\}/&'"$ac_delim"'/g 12004t clear 12005:clear 12006s/\\$// 12007t bsnlc 12008s/["\\]/\\&/g; s/^/"/; s/$/"/p 12009d 12010:bsnlc 12011s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12012b cont 12013' <confdefs.h | sed ' 12014s/'"$ac_delim"'/"\\\ 12015"/g' >>$CONFIG_STATUS || ac_write_fail=1 12016 12017cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12018 for (key in D) D_is_set[key] = 1 12019 FS = "" 12020} 12021/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12022 line = \$ 0 12023 split(line, arg, " ") 12024 if (arg[1] == "#") { 12025 defundef = arg[2] 12026 mac1 = arg[3] 12027 } else { 12028 defundef = substr(arg[1], 2) 12029 mac1 = arg[2] 12030 } 12031 split(mac1, mac2, "(") #) 12032 macro = mac2[1] 12033 prefix = substr(line, 1, index(line, defundef) - 1) 12034 if (D_is_set[macro]) { 12035 # Preserve the white space surrounding the "#". 12036 print prefix "define", macro P[macro] D[macro] 12037 next 12038 } else { 12039 # Replace #undef with comments. This is necessary, for example, 12040 # in the case of _POSIX_SOURCE, which is predefined and required 12041 # on some systems where configure will not decide to define it. 12042 if (defundef == "undef") { 12043 print "/*", prefix defundef, macro, "*/" 12044 next 12045 } 12046 } 12047} 12048{ print } 12049_ACAWK 12050_ACEOF 12051cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12052 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12053fi # test -n "$CONFIG_HEADERS" 12054 12055 12056eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12057shift 12058for ac_tag 12059do 12060 case $ac_tag in 12061 :[FHLC]) ac_mode=$ac_tag; continue;; 12062 esac 12063 case $ac_mode$ac_tag in 12064 :[FHL]*:*);; 12065 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12066 :[FH]-) ac_tag=-:-;; 12067 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12068 esac 12069 ac_save_IFS=$IFS 12070 IFS=: 12071 set x $ac_tag 12072 IFS=$ac_save_IFS 12073 shift 12074 ac_file=$1 12075 shift 12076 12077 case $ac_mode in 12078 :L) ac_source=$1;; 12079 :[FH]) 12080 ac_file_inputs= 12081 for ac_f 12082 do 12083 case $ac_f in 12084 -) ac_f="$ac_tmp/stdin";; 12085 *) # Look for the file first in the build tree, then in the source tree 12086 # (if the path is not absolute). The absolute path cannot be DOS-style, 12087 # because $ac_f cannot contain `:'. 12088 test -f "$ac_f" || 12089 case $ac_f in 12090 [\\/$]*) false;; 12091 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12092 esac || 12093 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12094 esac 12095 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12096 as_fn_append ac_file_inputs " '$ac_f'" 12097 done 12098 12099 # Let's still pretend it is `configure' which instantiates (i.e., don't 12100 # use $as_me), people would be surprised to read: 12101 # /* config.h. Generated by config.status. */ 12102 configure_input='Generated from '` 12103 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12104 `' by configure.' 12105 if test x"$ac_file" != x-; then 12106 configure_input="$ac_file. $configure_input" 12107 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12108$as_echo "$as_me: creating $ac_file" >&6;} 12109 fi 12110 # Neutralize special characters interpreted by sed in replacement strings. 12111 case $configure_input in #( 12112 *\&* | *\|* | *\\* ) 12113 ac_sed_conf_input=`$as_echo "$configure_input" | 12114 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12115 *) ac_sed_conf_input=$configure_input;; 12116 esac 12117 12118 case $ac_tag in 12119 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12120 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12121 esac 12122 ;; 12123 esac 12124 12125 ac_dir=`$as_dirname -- "$ac_file" || 12126$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12127 X"$ac_file" : 'X\(//\)[^/]' \| \ 12128 X"$ac_file" : 'X\(//\)$' \| \ 12129 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12130$as_echo X"$ac_file" | 12131 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12132 s//\1/ 12133 q 12134 } 12135 /^X\(\/\/\)[^/].*/{ 12136 s//\1/ 12137 q 12138 } 12139 /^X\(\/\/\)$/{ 12140 s//\1/ 12141 q 12142 } 12143 /^X\(\/\).*/{ 12144 s//\1/ 12145 q 12146 } 12147 s/.*/./; q'` 12148 as_dir="$ac_dir"; as_fn_mkdir_p 12149 ac_builddir=. 12150 12151case "$ac_dir" in 12152.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12153*) 12154 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 12155 # A ".." for each directory in $ac_dir_suffix. 12156 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12157 case $ac_top_builddir_sub in 12158 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12159 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12160 esac ;; 12161esac 12162ac_abs_top_builddir=$ac_pwd 12163ac_abs_builddir=$ac_pwd$ac_dir_suffix 12164# for backward compatibility: 12165ac_top_builddir=$ac_top_build_prefix 12166 12167case $srcdir in 12168 .) # We are building in place. 12169 ac_srcdir=. 12170 ac_top_srcdir=$ac_top_builddir_sub 12171 ac_abs_top_srcdir=$ac_pwd ;; 12172 [\\/]* | ?:[\\/]* ) # Absolute name. 12173 ac_srcdir=$srcdir$ac_dir_suffix; 12174 ac_top_srcdir=$srcdir 12175 ac_abs_top_srcdir=$srcdir ;; 12176 *) # Relative name. 12177 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12178 ac_top_srcdir=$ac_top_build_prefix$srcdir 12179 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12180esac 12181ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12182 12183 12184 case $ac_mode in 12185 :F) 12186 # 12187 # CONFIG_FILE 12188 # 12189 12190 case $INSTALL in 12191 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12192 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12193 esac 12194 ac_MKDIR_P=$MKDIR_P 12195 case $MKDIR_P in 12196 [\\/$]* | ?:[\\/]* ) ;; 12197 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12198 esac 12199_ACEOF 12200 12201cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12202# If the template does not know about datarootdir, expand it. 12203# FIXME: This hack should be removed a few years after 2.60. 12204ac_datarootdir_hack=; ac_datarootdir_seen= 12205ac_sed_dataroot=' 12206/datarootdir/ { 12207 p 12208 q 12209} 12210/@datadir@/p 12211/@docdir@/p 12212/@infodir@/p 12213/@localedir@/p 12214/@mandir@/p' 12215case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12216*datarootdir*) ac_datarootdir_seen=yes;; 12217*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12219$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12220_ACEOF 12221cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12222 ac_datarootdir_hack=' 12223 s&@datadir@&$datadir&g 12224 s&@docdir@&$docdir&g 12225 s&@infodir@&$infodir&g 12226 s&@localedir@&$localedir&g 12227 s&@mandir@&$mandir&g 12228 s&\\\${datarootdir}&$datarootdir&g' ;; 12229esac 12230_ACEOF 12231 12232# Neutralize VPATH when `$srcdir' = `.'. 12233# Shell code in configure.ac might set extrasub. 12234# FIXME: do we really want to maintain this feature? 12235cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12236ac_sed_extra="$ac_vpsub 12237$extrasub 12238_ACEOF 12239cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12240:t 12241/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12242s|@configure_input@|$ac_sed_conf_input|;t t 12243s&@top_builddir@&$ac_top_builddir_sub&;t t 12244s&@top_build_prefix@&$ac_top_build_prefix&;t t 12245s&@srcdir@&$ac_srcdir&;t t 12246s&@abs_srcdir@&$ac_abs_srcdir&;t t 12247s&@top_srcdir@&$ac_top_srcdir&;t t 12248s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12249s&@builddir@&$ac_builddir&;t t 12250s&@abs_builddir@&$ac_abs_builddir&;t t 12251s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12252s&@INSTALL@&$ac_INSTALL&;t t 12253s&@MKDIR_P@&$ac_MKDIR_P&;t t 12254$ac_datarootdir_hack 12255" 12256eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12257 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12258 12259test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12260 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12261 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12262 "$ac_tmp/out"`; test -z "$ac_out"; } && 12263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12264which seems to be undefined. Please make sure it is defined" >&5 12265$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12266which seems to be undefined. Please make sure it is defined" >&2;} 12267 12268 rm -f "$ac_tmp/stdin" 12269 case $ac_file in 12270 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12271 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12272 esac \ 12273 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12274 ;; 12275 :H) 12276 # 12277 # CONFIG_HEADER 12278 # 12279 if test x"$ac_file" != x-; then 12280 { 12281 $as_echo "/* $configure_input */" \ 12282 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12283 } >"$ac_tmp/config.h" \ 12284 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12285 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12286 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12287$as_echo "$as_me: $ac_file is unchanged" >&6;} 12288 else 12289 rm -f "$ac_file" 12290 mv "$ac_tmp/config.h" "$ac_file" \ 12291 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12292 fi 12293 else 12294 $as_echo "/* $configure_input */" \ 12295 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12296 || as_fn_error $? "could not create -" "$LINENO" 5 12297 fi 12298# Compute "$ac_file"'s index in $config_headers. 12299_am_arg="$ac_file" 12300_am_stamp_count=1 12301for _am_header in $config_headers :; do 12302 case $_am_header in 12303 $_am_arg | $_am_arg:* ) 12304 break ;; 12305 * ) 12306 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12307 esac 12308done 12309echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12310$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12311 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12312 X"$_am_arg" : 'X\(//\)$' \| \ 12313 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12314$as_echo X"$_am_arg" | 12315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12316 s//\1/ 12317 q 12318 } 12319 /^X\(\/\/\)[^/].*/{ 12320 s//\1/ 12321 q 12322 } 12323 /^X\(\/\/\)$/{ 12324 s//\1/ 12325 q 12326 } 12327 /^X\(\/\).*/{ 12328 s//\1/ 12329 q 12330 } 12331 s/.*/./; q'`/stamp-h$_am_stamp_count 12332 ;; 12333 12334 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12335$as_echo "$as_me: executing $ac_file commands" >&6;} 12336 ;; 12337 esac 12338 12339 12340 case $ac_file$ac_mode in 12341 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12342 # Older Autoconf quotes --file arguments for eval, but not when files 12343 # are listed without --file. Let's play safe and only enable the eval 12344 # if we detect the quoting. 12345 case $CONFIG_FILES in 12346 *\'*) eval set x "$CONFIG_FILES" ;; 12347 *) set x $CONFIG_FILES ;; 12348 esac 12349 shift 12350 for mf 12351 do 12352 # Strip MF so we end up with the name of the file. 12353 mf=`echo "$mf" | sed -e 's/:.*$//'` 12354 # Check whether this is an Automake generated Makefile or not. 12355 # We used to match only the files named 'Makefile.in', but 12356 # some people rename them; so instead we look at the file content. 12357 # Grep'ing the first line is not enough: some people post-process 12358 # each Makefile.in and add a new line on top of each file to say so. 12359 # Grep'ing the whole file is not good either: AIX grep has a line 12360 # limit of 2048, but all sed's we know have understand at least 4000. 12361 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 12362 dirpart=`$as_dirname -- "$mf" || 12363$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12364 X"$mf" : 'X\(//\)[^/]' \| \ 12365 X"$mf" : 'X\(//\)$' \| \ 12366 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 12367$as_echo X"$mf" | 12368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12369 s//\1/ 12370 q 12371 } 12372 /^X\(\/\/\)[^/].*/{ 12373 s//\1/ 12374 q 12375 } 12376 /^X\(\/\/\)$/{ 12377 s//\1/ 12378 q 12379 } 12380 /^X\(\/\).*/{ 12381 s//\1/ 12382 q 12383 } 12384 s/.*/./; q'` 12385 else 12386 continue 12387 fi 12388 # Extract the definition of DEPDIR, am__include, and am__quote 12389 # from the Makefile without running 'make'. 12390 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 12391 test -z "$DEPDIR" && continue 12392 am__include=`sed -n 's/^am__include = //p' < "$mf"` 12393 test -z "$am__include" && continue 12394 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 12395 # Find all dependency output files, they are included files with 12396 # $(DEPDIR) in their names. We invoke sed twice because it is the 12397 # simplest approach to changing $(DEPDIR) to its actual value in the 12398 # expansion. 12399 for file in `sed -n " 12400 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 12401 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 12402 # Make sure the directory exists. 12403 test -f "$dirpart/$file" && continue 12404 fdir=`$as_dirname -- "$file" || 12405$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12406 X"$file" : 'X\(//\)[^/]' \| \ 12407 X"$file" : 'X\(//\)$' \| \ 12408 X"$file" : 'X\(/\)' \| . 2>/dev/null || 12409$as_echo X"$file" | 12410 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12411 s//\1/ 12412 q 12413 } 12414 /^X\(\/\/\)[^/].*/{ 12415 s//\1/ 12416 q 12417 } 12418 /^X\(\/\/\)$/{ 12419 s//\1/ 12420 q 12421 } 12422 /^X\(\/\).*/{ 12423 s//\1/ 12424 q 12425 } 12426 s/.*/./; q'` 12427 as_dir=$dirpart/$fdir; as_fn_mkdir_p 12428 # echo "creating $dirpart/$file" 12429 echo '# dummy' > "$dirpart/$file" 12430 done 12431 done 12432} 12433 ;; 12434 12435 esac 12436done # for ac_tag 12437 12438 12439as_fn_exit 0 12440_ACEOF 12441ac_clean_files=$ac_clean_files_save 12442 12443test $ac_write_fail = 0 || 12444 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12445 12446 12447# configure is writing to config.log, and then calls config.status. 12448# config.status does its own redirection, appending to config.log. 12449# Unfortunately, on DOS this fails, as config.log is still kept open 12450# by configure, so config.status won't be able to write to it; its 12451# output is simply discarded. So we exec the FD to /dev/null, 12452# effectively closing config.log, so it can be properly (re)opened and 12453# appended to by config.status. When coming back to configure, we 12454# need to make the FD available again. 12455if test "$no_create" != yes; then 12456 ac_cs_success=: 12457 ac_config_status_args= 12458 test "$silent" = yes && 12459 ac_config_status_args="$ac_config_status_args --quiet" 12460 exec 5>/dev/null 12461 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12462 exec 5>>config.log 12463 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12464 # would make configure fail if this is the last instruction. 12465 $ac_cs_success || as_fn_exit 1 12466fi 12467if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12469$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12470fi 12471 12472