configure revision 87aef7c3
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for mkfontscale 1.1.1. 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='mkfontscale' 563PACKAGE_TARNAME='mkfontscale' 564PACKAGE_VERSION='1.1.1' 565PACKAGE_STRING='mkfontscale 1.1.1' 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 610LINT_FALSE 611LINT_TRUE 612LINT_FLAGS 613LINT 614X11_LIBS 615X11_CFLAGS 616MKFONTSCALE_LIBS 617MKFONTSCALE_CFLAGS 618MAN_SUBSTS 619XORG_MAN_PAGE 620ADMIN_MAN_DIR 621DRIVER_MAN_DIR 622MISC_MAN_DIR 623FILE_MAN_DIR 624LIB_MAN_DIR 625APP_MAN_DIR 626ADMIN_MAN_SUFFIX 627DRIVER_MAN_SUFFIX 628MISC_MAN_SUFFIX 629FILE_MAN_SUFFIX 630LIB_MAN_SUFFIX 631APP_MAN_SUFFIX 632SED 633host_os 634host_vendor 635host_cpu 636host 637build_os 638build_vendor 639build_cpu 640build 641INSTALL_CMD 642PKG_CONFIG 643CHANGELOG_CMD 644STRICT_CFLAGS 645CWARNFLAGS 646BASE_CFLAGS 647MAINT 648MAINTAINER_MODE_FALSE 649MAINTAINER_MODE_TRUE 650AM_BACKSLASH 651AM_DEFAULT_VERBOSITY 652AM_DEFAULT_V 653AM_V 654am__fastdepCC_FALSE 655am__fastdepCC_TRUE 656CCDEPMODE 657am__nodep 658AMDEPBACKSLASH 659AMDEP_FALSE 660AMDEP_TRUE 661am__quote 662am__include 663DEPDIR 664am__untar 665am__tar 666AMTAR 667am__leading_dot 668SET_MAKE 669AWK 670mkdir_p 671MKDIR_P 672INSTALL_STRIP_PROGRAM 673STRIP 674install_sh 675MAKEINFO 676AUTOHEADER 677AUTOMAKE 678AUTOCONF 679ACLOCAL 680VERSION 681PACKAGE 682CYGPATH_W 683am__isrc 684INSTALL_DATA 685INSTALL_SCRIPT 686INSTALL_PROGRAM 687EGREP 688GREP 689CPP 690OBJEXT 691EXEEXT 692ac_ct_CC 693CPPFLAGS 694LDFLAGS 695CFLAGS 696CC 697target_alias 698host_alias 699build_alias 700LIBS 701ECHO_T 702ECHO_N 703ECHO_C 704DEFS 705mandir 706localedir 707libdir 708psdir 709pdfdir 710dvidir 711htmldir 712infodir 713docdir 714oldincludedir 715includedir 716localstatedir 717sharedstatedir 718sysconfdir 719datadir 720datarootdir 721libexecdir 722sbindir 723bindir 724program_transform_name 725prefix 726exec_prefix 727PACKAGE_URL 728PACKAGE_BUGREPORT 729PACKAGE_STRING 730PACKAGE_VERSION 731PACKAGE_TARNAME 732PACKAGE_NAME 733PATH_SEPARATOR 734SHELL' 735ac_subst_files='' 736ac_user_opts=' 737enable_option_checking 738enable_dependency_tracking 739enable_silent_rules 740enable_maintainer_mode 741enable_selective_werror 742enable_strict_compilation 743with_bzip2 744with_lint 745' 746 ac_precious_vars='build_alias 747host_alias 748target_alias 749CC 750CFLAGS 751LDFLAGS 752LIBS 753CPPFLAGS 754CPP 755PKG_CONFIG 756MKFONTSCALE_CFLAGS 757MKFONTSCALE_LIBS 758X11_CFLAGS 759X11_LIBS 760LINT 761LINT_FLAGS' 762 763 764# Initialize some variables set by options. 765ac_init_help= 766ac_init_version=false 767ac_unrecognized_opts= 768ac_unrecognized_sep= 769# The variables have the same names as the options, with 770# dashes changed to underlines. 771cache_file=/dev/null 772exec_prefix=NONE 773no_create= 774no_recursion= 775prefix=NONE 776program_prefix=NONE 777program_suffix=NONE 778program_transform_name=s,x,x, 779silent= 780site= 781srcdir= 782verbose= 783x_includes=NONE 784x_libraries=NONE 785 786# Installation directory options. 787# These are left unexpanded so users can "make install exec_prefix=/foo" 788# and all the variables that are supposed to be based on exec_prefix 789# by default will actually change. 790# Use braces instead of parens because sh, perl, etc. also accept them. 791# (The list follows the same order as the GNU Coding Standards.) 792bindir='${exec_prefix}/bin' 793sbindir='${exec_prefix}/sbin' 794libexecdir='${exec_prefix}/libexec' 795datarootdir='${prefix}/share' 796datadir='${datarootdir}' 797sysconfdir='${prefix}/etc' 798sharedstatedir='${prefix}/com' 799localstatedir='${prefix}/var' 800includedir='${prefix}/include' 801oldincludedir='/usr/include' 802docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 803infodir='${datarootdir}/info' 804htmldir='${docdir}' 805dvidir='${docdir}' 806pdfdir='${docdir}' 807psdir='${docdir}' 808libdir='${exec_prefix}/lib' 809localedir='${datarootdir}/locale' 810mandir='${datarootdir}/man' 811 812ac_prev= 813ac_dashdash= 814for ac_option 815do 816 # If the previous option needs an argument, assign it. 817 if test -n "$ac_prev"; then 818 eval $ac_prev=\$ac_option 819 ac_prev= 820 continue 821 fi 822 823 case $ac_option in 824 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 825 *=) ac_optarg= ;; 826 *) ac_optarg=yes ;; 827 esac 828 829 # Accept the important Cygnus configure options, so we can diagnose typos. 830 831 case $ac_dashdash$ac_option in 832 --) 833 ac_dashdash=yes ;; 834 835 -bindir | --bindir | --bindi | --bind | --bin | --bi) 836 ac_prev=bindir ;; 837 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 838 bindir=$ac_optarg ;; 839 840 -build | --build | --buil | --bui | --bu) 841 ac_prev=build_alias ;; 842 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 843 build_alias=$ac_optarg ;; 844 845 -cache-file | --cache-file | --cache-fil | --cache-fi \ 846 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 847 ac_prev=cache_file ;; 848 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 849 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 850 cache_file=$ac_optarg ;; 851 852 --config-cache | -C) 853 cache_file=config.cache ;; 854 855 -datadir | --datadir | --datadi | --datad) 856 ac_prev=datadir ;; 857 -datadir=* | --datadir=* | --datadi=* | --datad=*) 858 datadir=$ac_optarg ;; 859 860 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 861 | --dataroo | --dataro | --datar) 862 ac_prev=datarootdir ;; 863 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 864 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 865 datarootdir=$ac_optarg ;; 866 867 -disable-* | --disable-*) 868 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 869 # Reject names that are not valid shell variable names. 870 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 871 as_fn_error $? "invalid feature name: $ac_useropt" 872 ac_useropt_orig=$ac_useropt 873 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 874 case $ac_user_opts in 875 *" 876"enable_$ac_useropt" 877"*) ;; 878 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 879 ac_unrecognized_sep=', ';; 880 esac 881 eval enable_$ac_useropt=no ;; 882 883 -docdir | --docdir | --docdi | --doc | --do) 884 ac_prev=docdir ;; 885 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 886 docdir=$ac_optarg ;; 887 888 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 889 ac_prev=dvidir ;; 890 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 891 dvidir=$ac_optarg ;; 892 893 -enable-* | --enable-*) 894 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 895 # Reject names that are not valid shell variable names. 896 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 897 as_fn_error $? "invalid feature name: $ac_useropt" 898 ac_useropt_orig=$ac_useropt 899 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 900 case $ac_user_opts in 901 *" 902"enable_$ac_useropt" 903"*) ;; 904 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 905 ac_unrecognized_sep=', ';; 906 esac 907 eval enable_$ac_useropt=\$ac_optarg ;; 908 909 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 910 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 911 | --exec | --exe | --ex) 912 ac_prev=exec_prefix ;; 913 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 914 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 915 | --exec=* | --exe=* | --ex=*) 916 exec_prefix=$ac_optarg ;; 917 918 -gas | --gas | --ga | --g) 919 # Obsolete; use --with-gas. 920 with_gas=yes ;; 921 922 -help | --help | --hel | --he | -h) 923 ac_init_help=long ;; 924 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 925 ac_init_help=recursive ;; 926 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 927 ac_init_help=short ;; 928 929 -host | --host | --hos | --ho) 930 ac_prev=host_alias ;; 931 -host=* | --host=* | --hos=* | --ho=*) 932 host_alias=$ac_optarg ;; 933 934 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 935 ac_prev=htmldir ;; 936 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 937 | --ht=*) 938 htmldir=$ac_optarg ;; 939 940 -includedir | --includedir | --includedi | --included | --include \ 941 | --includ | --inclu | --incl | --inc) 942 ac_prev=includedir ;; 943 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 944 | --includ=* | --inclu=* | --incl=* | --inc=*) 945 includedir=$ac_optarg ;; 946 947 -infodir | --infodir | --infodi | --infod | --info | --inf) 948 ac_prev=infodir ;; 949 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 950 infodir=$ac_optarg ;; 951 952 -libdir | --libdir | --libdi | --libd) 953 ac_prev=libdir ;; 954 -libdir=* | --libdir=* | --libdi=* | --libd=*) 955 libdir=$ac_optarg ;; 956 957 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 958 | --libexe | --libex | --libe) 959 ac_prev=libexecdir ;; 960 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 961 | --libexe=* | --libex=* | --libe=*) 962 libexecdir=$ac_optarg ;; 963 964 -localedir | --localedir | --localedi | --localed | --locale) 965 ac_prev=localedir ;; 966 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 967 localedir=$ac_optarg ;; 968 969 -localstatedir | --localstatedir | --localstatedi | --localstated \ 970 | --localstate | --localstat | --localsta | --localst | --locals) 971 ac_prev=localstatedir ;; 972 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 973 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 974 localstatedir=$ac_optarg ;; 975 976 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 977 ac_prev=mandir ;; 978 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 979 mandir=$ac_optarg ;; 980 981 -nfp | --nfp | --nf) 982 # Obsolete; use --without-fp. 983 with_fp=no ;; 984 985 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 986 | --no-cr | --no-c | -n) 987 no_create=yes ;; 988 989 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 990 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 991 no_recursion=yes ;; 992 993 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 994 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 995 | --oldin | --oldi | --old | --ol | --o) 996 ac_prev=oldincludedir ;; 997 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 998 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 999 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1000 oldincludedir=$ac_optarg ;; 1001 1002 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1003 ac_prev=prefix ;; 1004 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1005 prefix=$ac_optarg ;; 1006 1007 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1008 | --program-pre | --program-pr | --program-p) 1009 ac_prev=program_prefix ;; 1010 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1011 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1012 program_prefix=$ac_optarg ;; 1013 1014 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1015 | --program-suf | --program-su | --program-s) 1016 ac_prev=program_suffix ;; 1017 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1018 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1019 program_suffix=$ac_optarg ;; 1020 1021 -program-transform-name | --program-transform-name \ 1022 | --program-transform-nam | --program-transform-na \ 1023 | --program-transform-n | --program-transform- \ 1024 | --program-transform | --program-transfor \ 1025 | --program-transfo | --program-transf \ 1026 | --program-trans | --program-tran \ 1027 | --progr-tra | --program-tr | --program-t) 1028 ac_prev=program_transform_name ;; 1029 -program-transform-name=* | --program-transform-name=* \ 1030 | --program-transform-nam=* | --program-transform-na=* \ 1031 | --program-transform-n=* | --program-transform-=* \ 1032 | --program-transform=* | --program-transfor=* \ 1033 | --program-transfo=* | --program-transf=* \ 1034 | --program-trans=* | --program-tran=* \ 1035 | --progr-tra=* | --program-tr=* | --program-t=*) 1036 program_transform_name=$ac_optarg ;; 1037 1038 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1039 ac_prev=pdfdir ;; 1040 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1041 pdfdir=$ac_optarg ;; 1042 1043 -psdir | --psdir | --psdi | --psd | --ps) 1044 ac_prev=psdir ;; 1045 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1046 psdir=$ac_optarg ;; 1047 1048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1049 | -silent | --silent | --silen | --sile | --sil) 1050 silent=yes ;; 1051 1052 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1053 ac_prev=sbindir ;; 1054 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1055 | --sbi=* | --sb=*) 1056 sbindir=$ac_optarg ;; 1057 1058 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1059 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1060 | --sharedst | --shareds | --shared | --share | --shar \ 1061 | --sha | --sh) 1062 ac_prev=sharedstatedir ;; 1063 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1064 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1065 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1066 | --sha=* | --sh=*) 1067 sharedstatedir=$ac_optarg ;; 1068 1069 -site | --site | --sit) 1070 ac_prev=site ;; 1071 -site=* | --site=* | --sit=*) 1072 site=$ac_optarg ;; 1073 1074 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1075 ac_prev=srcdir ;; 1076 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1077 srcdir=$ac_optarg ;; 1078 1079 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1080 | --syscon | --sysco | --sysc | --sys | --sy) 1081 ac_prev=sysconfdir ;; 1082 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1083 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1084 sysconfdir=$ac_optarg ;; 1085 1086 -target | --target | --targe | --targ | --tar | --ta | --t) 1087 ac_prev=target_alias ;; 1088 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1089 target_alias=$ac_optarg ;; 1090 1091 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1092 verbose=yes ;; 1093 1094 -version | --version | --versio | --versi | --vers | -V) 1095 ac_init_version=: ;; 1096 1097 -with-* | --with-*) 1098 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1099 # Reject names that are not valid shell variable names. 1100 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1101 as_fn_error $? "invalid package name: $ac_useropt" 1102 ac_useropt_orig=$ac_useropt 1103 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1104 case $ac_user_opts in 1105 *" 1106"with_$ac_useropt" 1107"*) ;; 1108 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1109 ac_unrecognized_sep=', ';; 1110 esac 1111 eval with_$ac_useropt=\$ac_optarg ;; 1112 1113 -without-* | --without-*) 1114 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1115 # Reject names that are not valid shell variable names. 1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1117 as_fn_error $? "invalid package name: $ac_useropt" 1118 ac_useropt_orig=$ac_useropt 1119 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1120 case $ac_user_opts in 1121 *" 1122"with_$ac_useropt" 1123"*) ;; 1124 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1125 ac_unrecognized_sep=', ';; 1126 esac 1127 eval with_$ac_useropt=no ;; 1128 1129 --x) 1130 # Obsolete; use --with-x. 1131 with_x=yes ;; 1132 1133 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1134 | --x-incl | --x-inc | --x-in | --x-i) 1135 ac_prev=x_includes ;; 1136 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1137 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1138 x_includes=$ac_optarg ;; 1139 1140 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1141 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1142 ac_prev=x_libraries ;; 1143 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1144 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1145 x_libraries=$ac_optarg ;; 1146 1147 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1148Try \`$0 --help' for more information" 1149 ;; 1150 1151 *=*) 1152 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1153 # Reject names that are not valid shell variable names. 1154 case $ac_envvar in #( 1155 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1156 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1157 esac 1158 eval $ac_envvar=\$ac_optarg 1159 export $ac_envvar ;; 1160 1161 *) 1162 # FIXME: should be removed in autoconf 3.0. 1163 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1164 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1165 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1166 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1167 ;; 1168 1169 esac 1170done 1171 1172if test -n "$ac_prev"; then 1173 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1174 as_fn_error $? "missing argument to $ac_option" 1175fi 1176 1177if test -n "$ac_unrecognized_opts"; then 1178 case $enable_option_checking in 1179 no) ;; 1180 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1181 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1182 esac 1183fi 1184 1185# Check all directory arguments for consistency. 1186for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1187 datadir sysconfdir sharedstatedir localstatedir includedir \ 1188 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1189 libdir localedir mandir 1190do 1191 eval ac_val=\$$ac_var 1192 # Remove trailing slashes. 1193 case $ac_val in 1194 */ ) 1195 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1196 eval $ac_var=\$ac_val;; 1197 esac 1198 # Be sure to have absolute directory names. 1199 case $ac_val in 1200 [\\/$]* | ?:[\\/]* ) continue;; 1201 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1202 esac 1203 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1204done 1205 1206# There might be people who depend on the old broken behavior: `$host' 1207# used to hold the argument of --host etc. 1208# FIXME: To remove some day. 1209build=$build_alias 1210host=$host_alias 1211target=$target_alias 1212 1213# FIXME: To remove some day. 1214if test "x$host_alias" != x; then 1215 if test "x$build_alias" = x; then 1216 cross_compiling=maybe 1217 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1218 If a cross compiler is detected then cross compile mode will be used" >&2 1219 elif test "x$build_alias" != "x$host_alias"; then 1220 cross_compiling=yes 1221 fi 1222fi 1223 1224ac_tool_prefix= 1225test -n "$host_alias" && ac_tool_prefix=$host_alias- 1226 1227test "$silent" = yes && exec 6>/dev/null 1228 1229 1230ac_pwd=`pwd` && test -n "$ac_pwd" && 1231ac_ls_di=`ls -di .` && 1232ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1233 as_fn_error $? "working directory cannot be determined" 1234test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1235 as_fn_error $? "pwd does not report name of working directory" 1236 1237 1238# Find the source files, if location was not specified. 1239if test -z "$srcdir"; then 1240 ac_srcdir_defaulted=yes 1241 # Try the directory containing this script, then the parent directory. 1242 ac_confdir=`$as_dirname -- "$as_myself" || 1243$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1244 X"$as_myself" : 'X\(//\)[^/]' \| \ 1245 X"$as_myself" : 'X\(//\)$' \| \ 1246 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1247$as_echo X"$as_myself" | 1248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1249 s//\1/ 1250 q 1251 } 1252 /^X\(\/\/\)[^/].*/{ 1253 s//\1/ 1254 q 1255 } 1256 /^X\(\/\/\)$/{ 1257 s//\1/ 1258 q 1259 } 1260 /^X\(\/\).*/{ 1261 s//\1/ 1262 q 1263 } 1264 s/.*/./; q'` 1265 srcdir=$ac_confdir 1266 if test ! -r "$srcdir/$ac_unique_file"; then 1267 srcdir=.. 1268 fi 1269else 1270 ac_srcdir_defaulted=no 1271fi 1272if test ! -r "$srcdir/$ac_unique_file"; then 1273 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1274 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1275fi 1276ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1277ac_abs_confdir=`( 1278 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1279 pwd)` 1280# When building in place, set srcdir=. 1281if test "$ac_abs_confdir" = "$ac_pwd"; then 1282 srcdir=. 1283fi 1284# Remove unnecessary trailing slashes from srcdir. 1285# Double slashes in file names in object file debugging info 1286# mess up M-x gdb in Emacs. 1287case $srcdir in 1288*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1289esac 1290for ac_var in $ac_precious_vars; do 1291 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1292 eval ac_env_${ac_var}_value=\$${ac_var} 1293 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1294 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1295done 1296 1297# 1298# Report the --help message. 1299# 1300if test "$ac_init_help" = "long"; then 1301 # Omit some internal or obsolete options to make the list less imposing. 1302 # This message is too long to be a string in the A/UX 3.1 sh. 1303 cat <<_ACEOF 1304\`configure' configures mkfontscale 1.1.1 to adapt to many kinds of systems. 1305 1306Usage: $0 [OPTION]... [VAR=VALUE]... 1307 1308To assign environment variables (e.g., CC, CFLAGS...), specify them as 1309VAR=VALUE. See below for descriptions of some of the useful variables. 1310 1311Defaults for the options are specified in brackets. 1312 1313Configuration: 1314 -h, --help display this help and exit 1315 --help=short display options specific to this package 1316 --help=recursive display the short help of all the included packages 1317 -V, --version display version information and exit 1318 -q, --quiet, --silent do not print \`checking ...' messages 1319 --cache-file=FILE cache test results in FILE [disabled] 1320 -C, --config-cache alias for \`--cache-file=config.cache' 1321 -n, --no-create do not create output files 1322 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1323 1324Installation directories: 1325 --prefix=PREFIX install architecture-independent files in PREFIX 1326 [$ac_default_prefix] 1327 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1328 [PREFIX] 1329 1330By default, \`make install' will install all the files in 1331\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1332an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1333for instance \`--prefix=\$HOME'. 1334 1335For better control, use the options below. 1336 1337Fine tuning of the installation directories: 1338 --bindir=DIR user executables [EPREFIX/bin] 1339 --sbindir=DIR system admin executables [EPREFIX/sbin] 1340 --libexecdir=DIR program executables [EPREFIX/libexec] 1341 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1342 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1343 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1344 --libdir=DIR object code libraries [EPREFIX/lib] 1345 --includedir=DIR C header files [PREFIX/include] 1346 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1347 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1348 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1349 --infodir=DIR info documentation [DATAROOTDIR/info] 1350 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1351 --mandir=DIR man documentation [DATAROOTDIR/man] 1352 --docdir=DIR documentation root [DATAROOTDIR/doc/mkfontscale] 1353 --htmldir=DIR html documentation [DOCDIR] 1354 --dvidir=DIR dvi documentation [DOCDIR] 1355 --pdfdir=DIR pdf documentation [DOCDIR] 1356 --psdir=DIR ps documentation [DOCDIR] 1357_ACEOF 1358 1359 cat <<\_ACEOF 1360 1361Program names: 1362 --program-prefix=PREFIX prepend PREFIX to installed program names 1363 --program-suffix=SUFFIX append SUFFIX to installed program names 1364 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1365 1366System types: 1367 --build=BUILD configure for building on BUILD [guessed] 1368 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1369_ACEOF 1370fi 1371 1372if test -n "$ac_init_help"; then 1373 case $ac_init_help in 1374 short | recursive ) echo "Configuration of mkfontscale 1.1.1:";; 1375 esac 1376 cat <<\_ACEOF 1377 1378Optional Features: 1379 --disable-option-checking ignore unrecognized --enable/--with options 1380 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1381 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1382 --enable-dependency-tracking 1383 do not reject slow dependency extractors 1384 --disable-dependency-tracking 1385 speeds up one-time build 1386 --enable-silent-rules less verbose build output (undo: "make V=1") 1387 --disable-silent-rules verbose build output (undo: "make V=0") 1388 --enable-maintainer-mode 1389 enable make rules and dependencies not useful (and 1390 sometimes confusing) to the casual installer 1391 --disable-selective-werror 1392 Turn off selective compiler errors. (default: 1393 enabled) 1394 --enable-strict-compilation 1395 Enable all warnings from compiler and make them 1396 errors (default: disabled) 1397 1398Optional Packages: 1399 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1400 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1401 --with-bzip2 Support bzip2 compressed bitmap fonts 1402 --with-lint Use a lint-style source code checker (default: 1403 disabled) 1404 1405Some influential environment variables: 1406 CC C compiler command 1407 CFLAGS C compiler flags 1408 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1409 nonstandard directory <lib dir> 1410 LIBS libraries to pass to the linker, e.g. -l<library> 1411 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1412 you have headers in a nonstandard directory <include dir> 1413 CPP C preprocessor 1414 PKG_CONFIG path to pkg-config utility 1415 MKFONTSCALE_CFLAGS 1416 C compiler flags for MKFONTSCALE, overriding pkg-config 1417 MKFONTSCALE_LIBS 1418 linker flags for MKFONTSCALE, overriding pkg-config 1419 X11_CFLAGS C compiler flags for X11, overriding pkg-config 1420 X11_LIBS linker flags for X11, overriding pkg-config 1421 LINT Path to a lint-style command 1422 LINT_FLAGS Flags for the lint-style command 1423 1424Use these variables to override the choices made by `configure' or to help 1425it to find libraries and programs with nonstandard names/locations. 1426 1427Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1428_ACEOF 1429ac_status=$? 1430fi 1431 1432if test "$ac_init_help" = "recursive"; then 1433 # If there are subdirs, report their specific --help. 1434 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1435 test -d "$ac_dir" || 1436 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1437 continue 1438 ac_builddir=. 1439 1440case "$ac_dir" in 1441.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1442*) 1443 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1444 # A ".." for each directory in $ac_dir_suffix. 1445 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1446 case $ac_top_builddir_sub in 1447 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1448 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1449 esac ;; 1450esac 1451ac_abs_top_builddir=$ac_pwd 1452ac_abs_builddir=$ac_pwd$ac_dir_suffix 1453# for backward compatibility: 1454ac_top_builddir=$ac_top_build_prefix 1455 1456case $srcdir in 1457 .) # We are building in place. 1458 ac_srcdir=. 1459 ac_top_srcdir=$ac_top_builddir_sub 1460 ac_abs_top_srcdir=$ac_pwd ;; 1461 [\\/]* | ?:[\\/]* ) # Absolute name. 1462 ac_srcdir=$srcdir$ac_dir_suffix; 1463 ac_top_srcdir=$srcdir 1464 ac_abs_top_srcdir=$srcdir ;; 1465 *) # Relative name. 1466 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1467 ac_top_srcdir=$ac_top_build_prefix$srcdir 1468 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1469esac 1470ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1471 1472 cd "$ac_dir" || { ac_status=$?; continue; } 1473 # Check for guested configure. 1474 if test -f "$ac_srcdir/configure.gnu"; then 1475 echo && 1476 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1477 elif test -f "$ac_srcdir/configure"; then 1478 echo && 1479 $SHELL "$ac_srcdir/configure" --help=recursive 1480 else 1481 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1482 fi || ac_status=$? 1483 cd "$ac_pwd" || { ac_status=$?; break; } 1484 done 1485fi 1486 1487test -n "$ac_init_help" && exit $ac_status 1488if $ac_init_version; then 1489 cat <<\_ACEOF 1490mkfontscale configure 1.1.1 1491generated by GNU Autoconf 2.68 1492 1493Copyright (C) 2010 Free Software Foundation, Inc. 1494This configure script is free software; the Free Software Foundation 1495gives unlimited permission to copy, distribute and modify it. 1496_ACEOF 1497 exit 1498fi 1499 1500## ------------------------ ## 1501## Autoconf initialization. ## 1502## ------------------------ ## 1503 1504# ac_fn_c_try_compile LINENO 1505# -------------------------- 1506# Try to compile conftest.$ac_ext, and return whether this succeeded. 1507ac_fn_c_try_compile () 1508{ 1509 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1510 rm -f conftest.$ac_objext 1511 if { { ac_try="$ac_compile" 1512case "(($ac_try" in 1513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1514 *) ac_try_echo=$ac_try;; 1515esac 1516eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1517$as_echo "$ac_try_echo"; } >&5 1518 (eval "$ac_compile") 2>conftest.err 1519 ac_status=$? 1520 if test -s conftest.err; then 1521 grep -v '^ *+' conftest.err >conftest.er1 1522 cat conftest.er1 >&5 1523 mv -f conftest.er1 conftest.err 1524 fi 1525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1526 test $ac_status = 0; } && { 1527 test -z "$ac_c_werror_flag" || 1528 test ! -s conftest.err 1529 } && test -s conftest.$ac_objext; then : 1530 ac_retval=0 1531else 1532 $as_echo "$as_me: failed program was:" >&5 1533sed 's/^/| /' conftest.$ac_ext >&5 1534 1535 ac_retval=1 1536fi 1537 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1538 as_fn_set_status $ac_retval 1539 1540} # ac_fn_c_try_compile 1541 1542# ac_fn_c_try_cpp LINENO 1543# ---------------------- 1544# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1545ac_fn_c_try_cpp () 1546{ 1547 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1548 if { { ac_try="$ac_cpp conftest.$ac_ext" 1549case "(($ac_try" in 1550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1551 *) ac_try_echo=$ac_try;; 1552esac 1553eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1554$as_echo "$ac_try_echo"; } >&5 1555 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1556 ac_status=$? 1557 if test -s conftest.err; then 1558 grep -v '^ *+' conftest.err >conftest.er1 1559 cat conftest.er1 >&5 1560 mv -f conftest.er1 conftest.err 1561 fi 1562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1563 test $ac_status = 0; } > conftest.i && { 1564 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1565 test ! -s conftest.err 1566 }; then : 1567 ac_retval=0 1568else 1569 $as_echo "$as_me: failed program was:" >&5 1570sed 's/^/| /' conftest.$ac_ext >&5 1571 1572 ac_retval=1 1573fi 1574 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1575 as_fn_set_status $ac_retval 1576 1577} # ac_fn_c_try_cpp 1578 1579# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1580# ------------------------------------------------------- 1581# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1582# the include files in INCLUDES and setting the cache variable VAR 1583# accordingly. 1584ac_fn_c_check_header_mongrel () 1585{ 1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1587 if eval \${$3+:} false; then : 1588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1589$as_echo_n "checking for $2... " >&6; } 1590if eval \${$3+:} false; then : 1591 $as_echo_n "(cached) " >&6 1592fi 1593eval ac_res=\$$3 1594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1595$as_echo "$ac_res" >&6; } 1596else 1597 # Is the header compilable? 1598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1599$as_echo_n "checking $2 usability... " >&6; } 1600cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1601/* end confdefs.h. */ 1602$4 1603#include <$2> 1604_ACEOF 1605if ac_fn_c_try_compile "$LINENO"; then : 1606 ac_header_compiler=yes 1607else 1608 ac_header_compiler=no 1609fi 1610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1612$as_echo "$ac_header_compiler" >&6; } 1613 1614# Is the header present? 1615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1616$as_echo_n "checking $2 presence... " >&6; } 1617cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1618/* end confdefs.h. */ 1619#include <$2> 1620_ACEOF 1621if ac_fn_c_try_cpp "$LINENO"; then : 1622 ac_header_preproc=yes 1623else 1624 ac_header_preproc=no 1625fi 1626rm -f conftest.err conftest.i conftest.$ac_ext 1627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1628$as_echo "$ac_header_preproc" >&6; } 1629 1630# So? What about this header? 1631case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1632 yes:no: ) 1633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1634$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1636$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1637 ;; 1638 no:yes:* ) 1639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1640$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1642$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1644$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1646$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1648$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1649( $as_echo "## ---------------------------------------------------------------------- ## 1650## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 1651## ---------------------------------------------------------------------- ##" 1652 ) | sed "s/^/$as_me: WARNING: /" >&2 1653 ;; 1654esac 1655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1656$as_echo_n "checking for $2... " >&6; } 1657if eval \${$3+:} false; then : 1658 $as_echo_n "(cached) " >&6 1659else 1660 eval "$3=\$ac_header_compiler" 1661fi 1662eval ac_res=\$$3 1663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1664$as_echo "$ac_res" >&6; } 1665fi 1666 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1667 1668} # ac_fn_c_check_header_mongrel 1669 1670# ac_fn_c_try_run LINENO 1671# ---------------------- 1672# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1673# that executables *can* be run. 1674ac_fn_c_try_run () 1675{ 1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1677 if { { ac_try="$ac_link" 1678case "(($ac_try" in 1679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1680 *) ac_try_echo=$ac_try;; 1681esac 1682eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1683$as_echo "$ac_try_echo"; } >&5 1684 (eval "$ac_link") 2>&5 1685 ac_status=$? 1686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1687 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1688 { { case "(($ac_try" in 1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1690 *) ac_try_echo=$ac_try;; 1691esac 1692eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1693$as_echo "$ac_try_echo"; } >&5 1694 (eval "$ac_try") 2>&5 1695 ac_status=$? 1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1697 test $ac_status = 0; }; }; then : 1698 ac_retval=0 1699else 1700 $as_echo "$as_me: program exited with status $ac_status" >&5 1701 $as_echo "$as_me: failed program was:" >&5 1702sed 's/^/| /' conftest.$ac_ext >&5 1703 1704 ac_retval=$ac_status 1705fi 1706 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1707 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1708 as_fn_set_status $ac_retval 1709 1710} # ac_fn_c_try_run 1711 1712# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1713# ------------------------------------------------------- 1714# Tests whether HEADER exists and can be compiled using the include files in 1715# INCLUDES, setting the cache variable VAR accordingly. 1716ac_fn_c_check_header_compile () 1717{ 1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1720$as_echo_n "checking for $2... " >&6; } 1721if eval \${$3+:} false; then : 1722 $as_echo_n "(cached) " >&6 1723else 1724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1725/* end confdefs.h. */ 1726$4 1727#include <$2> 1728_ACEOF 1729if ac_fn_c_try_compile "$LINENO"; then : 1730 eval "$3=yes" 1731else 1732 eval "$3=no" 1733fi 1734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1735fi 1736eval ac_res=\$$3 1737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1738$as_echo "$ac_res" >&6; } 1739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1740 1741} # ac_fn_c_check_header_compile 1742 1743# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1744# --------------------------------------------- 1745# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1746# accordingly. 1747ac_fn_c_check_decl () 1748{ 1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1750 as_decl_name=`echo $2|sed 's/ *(.*//'` 1751 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1753$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1754if eval \${$3+:} false; then : 1755 $as_echo_n "(cached) " >&6 1756else 1757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1758/* end confdefs.h. */ 1759$4 1760int 1761main () 1762{ 1763#ifndef $as_decl_name 1764#ifdef __cplusplus 1765 (void) $as_decl_use; 1766#else 1767 (void) $as_decl_name; 1768#endif 1769#endif 1770 1771 ; 1772 return 0; 1773} 1774_ACEOF 1775if ac_fn_c_try_compile "$LINENO"; then : 1776 eval "$3=yes" 1777else 1778 eval "$3=no" 1779fi 1780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1781fi 1782eval ac_res=\$$3 1783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1784$as_echo "$ac_res" >&6; } 1785 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1786 1787} # ac_fn_c_check_decl 1788 1789# ac_fn_c_try_link LINENO 1790# ----------------------- 1791# Try to link conftest.$ac_ext, and return whether this succeeded. 1792ac_fn_c_try_link () 1793{ 1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1795 rm -f conftest.$ac_objext conftest$ac_exeext 1796 if { { ac_try="$ac_link" 1797case "(($ac_try" in 1798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1799 *) ac_try_echo=$ac_try;; 1800esac 1801eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1802$as_echo "$ac_try_echo"; } >&5 1803 (eval "$ac_link") 2>conftest.err 1804 ac_status=$? 1805 if test -s conftest.err; then 1806 grep -v '^ *+' conftest.err >conftest.er1 1807 cat conftest.er1 >&5 1808 mv -f conftest.er1 conftest.err 1809 fi 1810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1811 test $ac_status = 0; } && { 1812 test -z "$ac_c_werror_flag" || 1813 test ! -s conftest.err 1814 } && test -s conftest$ac_exeext && { 1815 test "$cross_compiling" = yes || 1816 $as_test_x conftest$ac_exeext 1817 }; then : 1818 ac_retval=0 1819else 1820 $as_echo "$as_me: failed program was:" >&5 1821sed 's/^/| /' conftest.$ac_ext >&5 1822 1823 ac_retval=1 1824fi 1825 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1826 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1827 # interfere with the next link command; also delete a directory that is 1828 # left behind by Apple's compiler. We do this before executing the actions. 1829 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1830 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1831 as_fn_set_status $ac_retval 1832 1833} # ac_fn_c_try_link 1834cat >config.log <<_ACEOF 1835This file contains any messages produced by compilers while 1836running configure, to aid debugging if configure makes a mistake. 1837 1838It was created by mkfontscale $as_me 1.1.1, which was 1839generated by GNU Autoconf 2.68. Invocation command line was 1840 1841 $ $0 $@ 1842 1843_ACEOF 1844exec 5>>config.log 1845{ 1846cat <<_ASUNAME 1847## --------- ## 1848## Platform. ## 1849## --------- ## 1850 1851hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1852uname -m = `(uname -m) 2>/dev/null || echo unknown` 1853uname -r = `(uname -r) 2>/dev/null || echo unknown` 1854uname -s = `(uname -s) 2>/dev/null || echo unknown` 1855uname -v = `(uname -v) 2>/dev/null || echo unknown` 1856 1857/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1858/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1859 1860/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1861/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1862/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1863/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1864/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1865/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1866/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1867 1868_ASUNAME 1869 1870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1871for as_dir in $PATH 1872do 1873 IFS=$as_save_IFS 1874 test -z "$as_dir" && as_dir=. 1875 $as_echo "PATH: $as_dir" 1876 done 1877IFS=$as_save_IFS 1878 1879} >&5 1880 1881cat >&5 <<_ACEOF 1882 1883 1884## ----------- ## 1885## Core tests. ## 1886## ----------- ## 1887 1888_ACEOF 1889 1890 1891# Keep a trace of the command line. 1892# Strip out --no-create and --no-recursion so they do not pile up. 1893# Strip out --silent because we don't want to record it for future runs. 1894# Also quote any args containing shell meta-characters. 1895# Make two passes to allow for proper duplicate-argument suppression. 1896ac_configure_args= 1897ac_configure_args0= 1898ac_configure_args1= 1899ac_must_keep_next=false 1900for ac_pass in 1 2 1901do 1902 for ac_arg 1903 do 1904 case $ac_arg in 1905 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1906 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1907 | -silent | --silent | --silen | --sile | --sil) 1908 continue ;; 1909 *\'*) 1910 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1911 esac 1912 case $ac_pass in 1913 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1914 2) 1915 as_fn_append ac_configure_args1 " '$ac_arg'" 1916 if test $ac_must_keep_next = true; then 1917 ac_must_keep_next=false # Got value, back to normal. 1918 else 1919 case $ac_arg in 1920 *=* | --config-cache | -C | -disable-* | --disable-* \ 1921 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1922 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1923 | -with-* | --with-* | -without-* | --without-* | --x) 1924 case "$ac_configure_args0 " in 1925 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1926 esac 1927 ;; 1928 -* ) ac_must_keep_next=true ;; 1929 esac 1930 fi 1931 as_fn_append ac_configure_args " '$ac_arg'" 1932 ;; 1933 esac 1934 done 1935done 1936{ ac_configure_args0=; unset ac_configure_args0;} 1937{ ac_configure_args1=; unset ac_configure_args1;} 1938 1939# When interrupted or exit'd, cleanup temporary files, and complete 1940# config.log. We remove comments because anyway the quotes in there 1941# would cause problems or look ugly. 1942# WARNING: Use '\'' to represent an apostrophe within the trap. 1943# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1944trap 'exit_status=$? 1945 # Save into config.log some information that might help in debugging. 1946 { 1947 echo 1948 1949 $as_echo "## ---------------- ## 1950## Cache variables. ## 1951## ---------------- ##" 1952 echo 1953 # The following way of writing the cache mishandles newlines in values, 1954( 1955 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1956 eval ac_val=\$$ac_var 1957 case $ac_val in #( 1958 *${as_nl}*) 1959 case $ac_var in #( 1960 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1961$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1962 esac 1963 case $ac_var in #( 1964 _ | IFS | as_nl) ;; #( 1965 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1966 *) { eval $ac_var=; unset $ac_var;} ;; 1967 esac ;; 1968 esac 1969 done 1970 (set) 2>&1 | 1971 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1972 *${as_nl}ac_space=\ *) 1973 sed -n \ 1974 "s/'\''/'\''\\\\'\'''\''/g; 1975 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1976 ;; #( 1977 *) 1978 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1979 ;; 1980 esac | 1981 sort 1982) 1983 echo 1984 1985 $as_echo "## ----------------- ## 1986## Output variables. ## 1987## ----------------- ##" 1988 echo 1989 for ac_var in $ac_subst_vars 1990 do 1991 eval ac_val=\$$ac_var 1992 case $ac_val in 1993 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1994 esac 1995 $as_echo "$ac_var='\''$ac_val'\''" 1996 done | sort 1997 echo 1998 1999 if test -n "$ac_subst_files"; then 2000 $as_echo "## ------------------- ## 2001## File substitutions. ## 2002## ------------------- ##" 2003 echo 2004 for ac_var in $ac_subst_files 2005 do 2006 eval ac_val=\$$ac_var 2007 case $ac_val in 2008 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2009 esac 2010 $as_echo "$ac_var='\''$ac_val'\''" 2011 done | sort 2012 echo 2013 fi 2014 2015 if test -s confdefs.h; then 2016 $as_echo "## ----------- ## 2017## confdefs.h. ## 2018## ----------- ##" 2019 echo 2020 cat confdefs.h 2021 echo 2022 fi 2023 test "$ac_signal" != 0 && 2024 $as_echo "$as_me: caught signal $ac_signal" 2025 $as_echo "$as_me: exit $exit_status" 2026 } >&5 2027 rm -f core *.core core.conftest.* && 2028 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2029 exit $exit_status 2030' 0 2031for ac_signal in 1 2 13 15; do 2032 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2033done 2034ac_signal=0 2035 2036# confdefs.h avoids OS command line length limits that DEFS can exceed. 2037rm -f -r conftest* confdefs.h 2038 2039$as_echo "/* confdefs.h */" > confdefs.h 2040 2041# Predefined preprocessor variables. 2042 2043cat >>confdefs.h <<_ACEOF 2044#define PACKAGE_NAME "$PACKAGE_NAME" 2045_ACEOF 2046 2047cat >>confdefs.h <<_ACEOF 2048#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2049_ACEOF 2050 2051cat >>confdefs.h <<_ACEOF 2052#define PACKAGE_VERSION "$PACKAGE_VERSION" 2053_ACEOF 2054 2055cat >>confdefs.h <<_ACEOF 2056#define PACKAGE_STRING "$PACKAGE_STRING" 2057_ACEOF 2058 2059cat >>confdefs.h <<_ACEOF 2060#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2061_ACEOF 2062 2063cat >>confdefs.h <<_ACEOF 2064#define PACKAGE_URL "$PACKAGE_URL" 2065_ACEOF 2066 2067 2068# Let the site file select an alternate cache file if it wants to. 2069# Prefer an explicitly selected file to automatically selected ones. 2070ac_site_file1=NONE 2071ac_site_file2=NONE 2072if test -n "$CONFIG_SITE"; then 2073 # We do not want a PATH search for config.site. 2074 case $CONFIG_SITE in #(( 2075 -*) ac_site_file1=./$CONFIG_SITE;; 2076 */*) ac_site_file1=$CONFIG_SITE;; 2077 *) ac_site_file1=./$CONFIG_SITE;; 2078 esac 2079elif test "x$prefix" != xNONE; then 2080 ac_site_file1=$prefix/share/config.site 2081 ac_site_file2=$prefix/etc/config.site 2082else 2083 ac_site_file1=$ac_default_prefix/share/config.site 2084 ac_site_file2=$ac_default_prefix/etc/config.site 2085fi 2086for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2087do 2088 test "x$ac_site_file" = xNONE && continue 2089 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2090 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2091$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2092 sed 's/^/| /' "$ac_site_file" >&5 2093 . "$ac_site_file" \ 2094 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2095$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2096as_fn_error $? "failed to load site script $ac_site_file 2097See \`config.log' for more details" "$LINENO" 5; } 2098 fi 2099done 2100 2101if test -r "$cache_file"; then 2102 # Some versions of bash will fail to source /dev/null (special files 2103 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2104 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2105 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2106$as_echo "$as_me: loading cache $cache_file" >&6;} 2107 case $cache_file in 2108 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2109 *) . "./$cache_file";; 2110 esac 2111 fi 2112else 2113 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2114$as_echo "$as_me: creating cache $cache_file" >&6;} 2115 >$cache_file 2116fi 2117 2118# Check that the precious variables saved in the cache have kept the same 2119# value. 2120ac_cache_corrupted=false 2121for ac_var in $ac_precious_vars; do 2122 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2123 eval ac_new_set=\$ac_env_${ac_var}_set 2124 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2125 eval ac_new_val=\$ac_env_${ac_var}_value 2126 case $ac_old_set,$ac_new_set in 2127 set,) 2128 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2129$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2130 ac_cache_corrupted=: ;; 2131 ,set) 2132 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2133$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2134 ac_cache_corrupted=: ;; 2135 ,);; 2136 *) 2137 if test "x$ac_old_val" != "x$ac_new_val"; then 2138 # differences in whitespace do not lead to failure. 2139 ac_old_val_w=`echo x $ac_old_val` 2140 ac_new_val_w=`echo x $ac_new_val` 2141 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2142 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2143$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2144 ac_cache_corrupted=: 2145 else 2146 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2147$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2148 eval $ac_var=\$ac_old_val 2149 fi 2150 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2151$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2152 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2153$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2154 fi;; 2155 esac 2156 # Pass precious variables to config.status. 2157 if test "$ac_new_set" = set; then 2158 case $ac_new_val in 2159 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2160 *) ac_arg=$ac_var=$ac_new_val ;; 2161 esac 2162 case " $ac_configure_args " in 2163 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2164 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2165 esac 2166 fi 2167done 2168if $ac_cache_corrupted; then 2169 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2170$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2171 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2172$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2173 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2174fi 2175## -------------------- ## 2176## Main body of script. ## 2177## -------------------- ## 2178 2179ac_ext=c 2180ac_cpp='$CPP $CPPFLAGS' 2181ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2182ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2183ac_compiler_gnu=$ac_cv_c_compiler_gnu 2184 2185 2186 2187ac_config_headers="$ac_config_headers config.h" 2188 2189# expand $ac_aux_dir to an absolute path 2190am_aux_dir=`cd $ac_aux_dir && pwd` 2191 2192ac_ext=c 2193ac_cpp='$CPP $CPPFLAGS' 2194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2196ac_compiler_gnu=$ac_cv_c_compiler_gnu 2197if test -n "$ac_tool_prefix"; then 2198 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2199set dummy ${ac_tool_prefix}gcc; ac_word=$2 2200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2201$as_echo_n "checking for $ac_word... " >&6; } 2202if ${ac_cv_prog_CC+:} false; then : 2203 $as_echo_n "(cached) " >&6 2204else 2205 if test -n "$CC"; then 2206 ac_cv_prog_CC="$CC" # Let the user override the test. 2207else 2208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2209for as_dir in $PATH 2210do 2211 IFS=$as_save_IFS 2212 test -z "$as_dir" && as_dir=. 2213 for ac_exec_ext in '' $ac_executable_extensions; do 2214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2215 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2217 break 2 2218 fi 2219done 2220 done 2221IFS=$as_save_IFS 2222 2223fi 2224fi 2225CC=$ac_cv_prog_CC 2226if test -n "$CC"; then 2227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2228$as_echo "$CC" >&6; } 2229else 2230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2231$as_echo "no" >&6; } 2232fi 2233 2234 2235fi 2236if test -z "$ac_cv_prog_CC"; then 2237 ac_ct_CC=$CC 2238 # Extract the first word of "gcc", so it can be a program name with args. 2239set dummy gcc; ac_word=$2 2240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2241$as_echo_n "checking for $ac_word... " >&6; } 2242if ${ac_cv_prog_ac_ct_CC+:} false; then : 2243 $as_echo_n "(cached) " >&6 2244else 2245 if test -n "$ac_ct_CC"; then 2246 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2247else 2248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2249for as_dir in $PATH 2250do 2251 IFS=$as_save_IFS 2252 test -z "$as_dir" && as_dir=. 2253 for ac_exec_ext in '' $ac_executable_extensions; do 2254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2255 ac_cv_prog_ac_ct_CC="gcc" 2256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2257 break 2 2258 fi 2259done 2260 done 2261IFS=$as_save_IFS 2262 2263fi 2264fi 2265ac_ct_CC=$ac_cv_prog_ac_ct_CC 2266if test -n "$ac_ct_CC"; then 2267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2268$as_echo "$ac_ct_CC" >&6; } 2269else 2270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2271$as_echo "no" >&6; } 2272fi 2273 2274 if test "x$ac_ct_CC" = x; then 2275 CC="" 2276 else 2277 case $cross_compiling:$ac_tool_warned in 2278yes:) 2279{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2280$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2281ac_tool_warned=yes ;; 2282esac 2283 CC=$ac_ct_CC 2284 fi 2285else 2286 CC="$ac_cv_prog_CC" 2287fi 2288 2289if test -z "$CC"; then 2290 if test -n "$ac_tool_prefix"; then 2291 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2292set dummy ${ac_tool_prefix}cc; ac_word=$2 2293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2294$as_echo_n "checking for $ac_word... " >&6; } 2295if ${ac_cv_prog_CC+:} false; then : 2296 $as_echo_n "(cached) " >&6 2297else 2298 if test -n "$CC"; then 2299 ac_cv_prog_CC="$CC" # Let the user override the test. 2300else 2301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2302for as_dir in $PATH 2303do 2304 IFS=$as_save_IFS 2305 test -z "$as_dir" && as_dir=. 2306 for ac_exec_ext in '' $ac_executable_extensions; do 2307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2308 ac_cv_prog_CC="${ac_tool_prefix}cc" 2309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2310 break 2 2311 fi 2312done 2313 done 2314IFS=$as_save_IFS 2315 2316fi 2317fi 2318CC=$ac_cv_prog_CC 2319if test -n "$CC"; then 2320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2321$as_echo "$CC" >&6; } 2322else 2323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2324$as_echo "no" >&6; } 2325fi 2326 2327 2328 fi 2329fi 2330if test -z "$CC"; then 2331 # Extract the first word of "cc", so it can be a program name with args. 2332set dummy cc; ac_word=$2 2333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2334$as_echo_n "checking for $ac_word... " >&6; } 2335if ${ac_cv_prog_CC+:} false; then : 2336 $as_echo_n "(cached) " >&6 2337else 2338 if test -n "$CC"; then 2339 ac_cv_prog_CC="$CC" # Let the user override the test. 2340else 2341 ac_prog_rejected=no 2342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2343for as_dir in $PATH 2344do 2345 IFS=$as_save_IFS 2346 test -z "$as_dir" && as_dir=. 2347 for ac_exec_ext in '' $ac_executable_extensions; do 2348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2349 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2350 ac_prog_rejected=yes 2351 continue 2352 fi 2353 ac_cv_prog_CC="cc" 2354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2355 break 2 2356 fi 2357done 2358 done 2359IFS=$as_save_IFS 2360 2361if test $ac_prog_rejected = yes; then 2362 # We found a bogon in the path, so make sure we never use it. 2363 set dummy $ac_cv_prog_CC 2364 shift 2365 if test $# != 0; then 2366 # We chose a different compiler from the bogus one. 2367 # However, it has the same basename, so the bogon will be chosen 2368 # first if we set CC to just the basename; use the full file name. 2369 shift 2370 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2371 fi 2372fi 2373fi 2374fi 2375CC=$ac_cv_prog_CC 2376if test -n "$CC"; then 2377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2378$as_echo "$CC" >&6; } 2379else 2380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2381$as_echo "no" >&6; } 2382fi 2383 2384 2385fi 2386if test -z "$CC"; then 2387 if test -n "$ac_tool_prefix"; then 2388 for ac_prog in cl.exe 2389 do 2390 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2391set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2393$as_echo_n "checking for $ac_word... " >&6; } 2394if ${ac_cv_prog_CC+:} false; then : 2395 $as_echo_n "(cached) " >&6 2396else 2397 if test -n "$CC"; then 2398 ac_cv_prog_CC="$CC" # Let the user override the test. 2399else 2400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2401for as_dir in $PATH 2402do 2403 IFS=$as_save_IFS 2404 test -z "$as_dir" && as_dir=. 2405 for ac_exec_ext in '' $ac_executable_extensions; do 2406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2407 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2409 break 2 2410 fi 2411done 2412 done 2413IFS=$as_save_IFS 2414 2415fi 2416fi 2417CC=$ac_cv_prog_CC 2418if test -n "$CC"; then 2419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2420$as_echo "$CC" >&6; } 2421else 2422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2423$as_echo "no" >&6; } 2424fi 2425 2426 2427 test -n "$CC" && break 2428 done 2429fi 2430if test -z "$CC"; then 2431 ac_ct_CC=$CC 2432 for ac_prog in cl.exe 2433do 2434 # Extract the first word of "$ac_prog", so it can be a program name with args. 2435set dummy $ac_prog; ac_word=$2 2436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2437$as_echo_n "checking for $ac_word... " >&6; } 2438if ${ac_cv_prog_ac_ct_CC+:} false; then : 2439 $as_echo_n "(cached) " >&6 2440else 2441 if test -n "$ac_ct_CC"; then 2442 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2443else 2444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2445for as_dir in $PATH 2446do 2447 IFS=$as_save_IFS 2448 test -z "$as_dir" && as_dir=. 2449 for ac_exec_ext in '' $ac_executable_extensions; do 2450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2451 ac_cv_prog_ac_ct_CC="$ac_prog" 2452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2453 break 2 2454 fi 2455done 2456 done 2457IFS=$as_save_IFS 2458 2459fi 2460fi 2461ac_ct_CC=$ac_cv_prog_ac_ct_CC 2462if test -n "$ac_ct_CC"; then 2463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2464$as_echo "$ac_ct_CC" >&6; } 2465else 2466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2467$as_echo "no" >&6; } 2468fi 2469 2470 2471 test -n "$ac_ct_CC" && break 2472done 2473 2474 if test "x$ac_ct_CC" = x; then 2475 CC="" 2476 else 2477 case $cross_compiling:$ac_tool_warned in 2478yes:) 2479{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2480$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2481ac_tool_warned=yes ;; 2482esac 2483 CC=$ac_ct_CC 2484 fi 2485fi 2486 2487fi 2488 2489 2490test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2491$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2492as_fn_error $? "no acceptable C compiler found in \$PATH 2493See \`config.log' for more details" "$LINENO" 5; } 2494 2495# Provide some information about the compiler. 2496$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2497set X $ac_compile 2498ac_compiler=$2 2499for ac_option in --version -v -V -qversion; do 2500 { { ac_try="$ac_compiler $ac_option >&5" 2501case "(($ac_try" in 2502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2503 *) ac_try_echo=$ac_try;; 2504esac 2505eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2506$as_echo "$ac_try_echo"; } >&5 2507 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2508 ac_status=$? 2509 if test -s conftest.err; then 2510 sed '10a\ 2511... rest of stderr output deleted ... 2512 10q' conftest.err >conftest.er1 2513 cat conftest.er1 >&5 2514 fi 2515 rm -f conftest.er1 conftest.err 2516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2517 test $ac_status = 0; } 2518done 2519 2520cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2521/* end confdefs.h. */ 2522 2523int 2524main () 2525{ 2526 2527 ; 2528 return 0; 2529} 2530_ACEOF 2531ac_clean_files_save=$ac_clean_files 2532ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2533# Try to create an executable without -o first, disregard a.out. 2534# It will help us diagnose broken compilers, and finding out an intuition 2535# of exeext. 2536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2537$as_echo_n "checking whether the C compiler works... " >&6; } 2538ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2539 2540# The possible output files: 2541ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2542 2543ac_rmfiles= 2544for ac_file in $ac_files 2545do 2546 case $ac_file in 2547 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2548 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2549 esac 2550done 2551rm -f $ac_rmfiles 2552 2553if { { ac_try="$ac_link_default" 2554case "(($ac_try" in 2555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2556 *) ac_try_echo=$ac_try;; 2557esac 2558eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2559$as_echo "$ac_try_echo"; } >&5 2560 (eval "$ac_link_default") 2>&5 2561 ac_status=$? 2562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2563 test $ac_status = 0; }; then : 2564 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2565# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2566# in a Makefile. We should not override ac_cv_exeext if it was cached, 2567# so that the user can short-circuit this test for compilers unknown to 2568# Autoconf. 2569for ac_file in $ac_files '' 2570do 2571 test -f "$ac_file" || continue 2572 case $ac_file in 2573 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2574 ;; 2575 [ab].out ) 2576 # We found the default executable, but exeext='' is most 2577 # certainly right. 2578 break;; 2579 *.* ) 2580 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2581 then :; else 2582 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2583 fi 2584 # We set ac_cv_exeext here because the later test for it is not 2585 # safe: cross compilers may not add the suffix if given an `-o' 2586 # argument, so we may need to know it at that point already. 2587 # Even if this section looks crufty: it has the advantage of 2588 # actually working. 2589 break;; 2590 * ) 2591 break;; 2592 esac 2593done 2594test "$ac_cv_exeext" = no && ac_cv_exeext= 2595 2596else 2597 ac_file='' 2598fi 2599if test -z "$ac_file"; then : 2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2601$as_echo "no" >&6; } 2602$as_echo "$as_me: failed program was:" >&5 2603sed 's/^/| /' conftest.$ac_ext >&5 2604 2605{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2606$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2607as_fn_error 77 "C compiler cannot create executables 2608See \`config.log' for more details" "$LINENO" 5; } 2609else 2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2611$as_echo "yes" >&6; } 2612fi 2613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2614$as_echo_n "checking for C compiler default output file name... " >&6; } 2615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2616$as_echo "$ac_file" >&6; } 2617ac_exeext=$ac_cv_exeext 2618 2619rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2620ac_clean_files=$ac_clean_files_save 2621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2622$as_echo_n "checking for suffix of executables... " >&6; } 2623if { { ac_try="$ac_link" 2624case "(($ac_try" in 2625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2626 *) ac_try_echo=$ac_try;; 2627esac 2628eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2629$as_echo "$ac_try_echo"; } >&5 2630 (eval "$ac_link") 2>&5 2631 ac_status=$? 2632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2633 test $ac_status = 0; }; then : 2634 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2635# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2636# work properly (i.e., refer to `conftest.exe'), while it won't with 2637# `rm'. 2638for ac_file in conftest.exe conftest conftest.*; do 2639 test -f "$ac_file" || continue 2640 case $ac_file in 2641 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2642 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2643 break;; 2644 * ) break;; 2645 esac 2646done 2647else 2648 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2649$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2650as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2651See \`config.log' for more details" "$LINENO" 5; } 2652fi 2653rm -f conftest conftest$ac_cv_exeext 2654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2655$as_echo "$ac_cv_exeext" >&6; } 2656 2657rm -f conftest.$ac_ext 2658EXEEXT=$ac_cv_exeext 2659ac_exeext=$EXEEXT 2660cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2661/* end confdefs.h. */ 2662#include <stdio.h> 2663int 2664main () 2665{ 2666FILE *f = fopen ("conftest.out", "w"); 2667 return ferror (f) || fclose (f) != 0; 2668 2669 ; 2670 return 0; 2671} 2672_ACEOF 2673ac_clean_files="$ac_clean_files conftest.out" 2674# Check that the compiler produces executables we can run. If not, either 2675# the compiler is broken, or we cross compile. 2676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2677$as_echo_n "checking whether we are cross compiling... " >&6; } 2678if test "$cross_compiling" != yes; then 2679 { { ac_try="$ac_link" 2680case "(($ac_try" in 2681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2682 *) ac_try_echo=$ac_try;; 2683esac 2684eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2685$as_echo "$ac_try_echo"; } >&5 2686 (eval "$ac_link") 2>&5 2687 ac_status=$? 2688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2689 test $ac_status = 0; } 2690 if { ac_try='./conftest$ac_cv_exeext' 2691 { { case "(($ac_try" in 2692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2693 *) ac_try_echo=$ac_try;; 2694esac 2695eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2696$as_echo "$ac_try_echo"; } >&5 2697 (eval "$ac_try") 2>&5 2698 ac_status=$? 2699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2700 test $ac_status = 0; }; }; then 2701 cross_compiling=no 2702 else 2703 if test "$cross_compiling" = maybe; then 2704 cross_compiling=yes 2705 else 2706 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2707$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2708as_fn_error $? "cannot run C compiled programs. 2709If you meant to cross compile, use \`--host'. 2710See \`config.log' for more details" "$LINENO" 5; } 2711 fi 2712 fi 2713fi 2714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2715$as_echo "$cross_compiling" >&6; } 2716 2717rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 2718ac_clean_files=$ac_clean_files_save 2719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2720$as_echo_n "checking for suffix of object files... " >&6; } 2721if ${ac_cv_objext+:} false; then : 2722 $as_echo_n "(cached) " >&6 2723else 2724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2725/* end confdefs.h. */ 2726 2727int 2728main () 2729{ 2730 2731 ; 2732 return 0; 2733} 2734_ACEOF 2735rm -f conftest.o conftest.obj 2736if { { ac_try="$ac_compile" 2737case "(($ac_try" in 2738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2739 *) ac_try_echo=$ac_try;; 2740esac 2741eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2742$as_echo "$ac_try_echo"; } >&5 2743 (eval "$ac_compile") 2>&5 2744 ac_status=$? 2745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2746 test $ac_status = 0; }; then : 2747 for ac_file in conftest.o conftest.obj conftest.*; do 2748 test -f "$ac_file" || continue; 2749 case $ac_file in 2750 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2751 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2752 break;; 2753 esac 2754done 2755else 2756 $as_echo "$as_me: failed program was:" >&5 2757sed 's/^/| /' conftest.$ac_ext >&5 2758 2759{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2760$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2761as_fn_error $? "cannot compute suffix of object files: cannot compile 2762See \`config.log' for more details" "$LINENO" 5; } 2763fi 2764rm -f conftest.$ac_cv_objext conftest.$ac_ext 2765fi 2766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 2767$as_echo "$ac_cv_objext" >&6; } 2768OBJEXT=$ac_cv_objext 2769ac_objext=$OBJEXT 2770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 2771$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2772if ${ac_cv_c_compiler_gnu+:} false; then : 2773 $as_echo_n "(cached) " >&6 2774else 2775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2776/* end confdefs.h. */ 2777 2778int 2779main () 2780{ 2781#ifndef __GNUC__ 2782 choke me 2783#endif 2784 2785 ; 2786 return 0; 2787} 2788_ACEOF 2789if ac_fn_c_try_compile "$LINENO"; then : 2790 ac_compiler_gnu=yes 2791else 2792 ac_compiler_gnu=no 2793fi 2794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2795ac_cv_c_compiler_gnu=$ac_compiler_gnu 2796 2797fi 2798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 2799$as_echo "$ac_cv_c_compiler_gnu" >&6; } 2800if test $ac_compiler_gnu = yes; then 2801 GCC=yes 2802else 2803 GCC= 2804fi 2805ac_test_CFLAGS=${CFLAGS+set} 2806ac_save_CFLAGS=$CFLAGS 2807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 2808$as_echo_n "checking whether $CC accepts -g... " >&6; } 2809if ${ac_cv_prog_cc_g+:} false; then : 2810 $as_echo_n "(cached) " >&6 2811else 2812 ac_save_c_werror_flag=$ac_c_werror_flag 2813 ac_c_werror_flag=yes 2814 ac_cv_prog_cc_g=no 2815 CFLAGS="-g" 2816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2817/* end confdefs.h. */ 2818 2819int 2820main () 2821{ 2822 2823 ; 2824 return 0; 2825} 2826_ACEOF 2827if ac_fn_c_try_compile "$LINENO"; then : 2828 ac_cv_prog_cc_g=yes 2829else 2830 CFLAGS="" 2831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2832/* end confdefs.h. */ 2833 2834int 2835main () 2836{ 2837 2838 ; 2839 return 0; 2840} 2841_ACEOF 2842if ac_fn_c_try_compile "$LINENO"; then : 2843 2844else 2845 ac_c_werror_flag=$ac_save_c_werror_flag 2846 CFLAGS="-g" 2847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2848/* end confdefs.h. */ 2849 2850int 2851main () 2852{ 2853 2854 ; 2855 return 0; 2856} 2857_ACEOF 2858if ac_fn_c_try_compile "$LINENO"; then : 2859 ac_cv_prog_cc_g=yes 2860fi 2861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2862fi 2863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2864fi 2865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2866 ac_c_werror_flag=$ac_save_c_werror_flag 2867fi 2868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 2869$as_echo "$ac_cv_prog_cc_g" >&6; } 2870if test "$ac_test_CFLAGS" = set; then 2871 CFLAGS=$ac_save_CFLAGS 2872elif test $ac_cv_prog_cc_g = yes; then 2873 if test "$GCC" = yes; then 2874 CFLAGS="-g -O2" 2875 else 2876 CFLAGS="-g" 2877 fi 2878else 2879 if test "$GCC" = yes; then 2880 CFLAGS="-O2" 2881 else 2882 CFLAGS= 2883 fi 2884fi 2885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 2886$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 2887if ${ac_cv_prog_cc_c89+:} false; then : 2888 $as_echo_n "(cached) " >&6 2889else 2890 ac_cv_prog_cc_c89=no 2891ac_save_CC=$CC 2892cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2893/* end confdefs.h. */ 2894#include <stdarg.h> 2895#include <stdio.h> 2896#include <sys/types.h> 2897#include <sys/stat.h> 2898/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2899struct buf { int x; }; 2900FILE * (*rcsopen) (struct buf *, struct stat *, int); 2901static char *e (p, i) 2902 char **p; 2903 int i; 2904{ 2905 return p[i]; 2906} 2907static char *f (char * (*g) (char **, int), char **p, ...) 2908{ 2909 char *s; 2910 va_list v; 2911 va_start (v,p); 2912 s = g (p, va_arg (v,int)); 2913 va_end (v); 2914 return s; 2915} 2916 2917/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2918 function prototypes and stuff, but not '\xHH' hex character constants. 2919 These don't provoke an error unfortunately, instead are silently treated 2920 as 'x'. The following induces an error, until -std is added to get 2921 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2922 array size at least. It's necessary to write '\x00'==0 to get something 2923 that's true only with -std. */ 2924int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2925 2926/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2927 inside strings and character constants. */ 2928#define FOO(x) 'x' 2929int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 2930 2931int test (int i, double x); 2932struct s1 {int (*f) (int a);}; 2933struct s2 {int (*f) (double a);}; 2934int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2935int argc; 2936char **argv; 2937int 2938main () 2939{ 2940return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2941 ; 2942 return 0; 2943} 2944_ACEOF 2945for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 2946 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2947do 2948 CC="$ac_save_CC $ac_arg" 2949 if ac_fn_c_try_compile "$LINENO"; then : 2950 ac_cv_prog_cc_c89=$ac_arg 2951fi 2952rm -f core conftest.err conftest.$ac_objext 2953 test "x$ac_cv_prog_cc_c89" != "xno" && break 2954done 2955rm -f conftest.$ac_ext 2956CC=$ac_save_CC 2957 2958fi 2959# AC_CACHE_VAL 2960case "x$ac_cv_prog_cc_c89" in 2961 x) 2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 2963$as_echo "none needed" >&6; } ;; 2964 xno) 2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 2966$as_echo "unsupported" >&6; } ;; 2967 *) 2968 CC="$CC $ac_cv_prog_cc_c89" 2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 2970$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 2971esac 2972if test "x$ac_cv_prog_cc_c89" != xno; then : 2973 2974fi 2975 2976ac_ext=c 2977ac_cpp='$CPP $CPPFLAGS' 2978ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2979ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2980ac_compiler_gnu=$ac_cv_c_compiler_gnu 2981 2982ac_ext=c 2983ac_cpp='$CPP $CPPFLAGS' 2984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2986ac_compiler_gnu=$ac_cv_c_compiler_gnu 2987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 2988$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 2989if ${am_cv_prog_cc_c_o+:} false; then : 2990 $as_echo_n "(cached) " >&6 2991else 2992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2993/* end confdefs.h. */ 2994 2995int 2996main () 2997{ 2998 2999 ; 3000 return 0; 3001} 3002_ACEOF 3003 # Make sure it works both with $CC and with simple cc. 3004 # Following AC_PROG_CC_C_O, we do the test twice because some 3005 # compilers refuse to overwrite an existing .o file with -o, 3006 # though they will create one. 3007 am_cv_prog_cc_c_o=yes 3008 for am_i in 1 2; do 3009 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3010 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3011 ac_status=$? 3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3013 (exit $ac_status); } \ 3014 && test -f conftest2.$ac_objext; then 3015 : OK 3016 else 3017 am_cv_prog_cc_c_o=no 3018 break 3019 fi 3020 done 3021 rm -f core conftest* 3022 unset am_i 3023fi 3024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3025$as_echo "$am_cv_prog_cc_c_o" >&6; } 3026if test "$am_cv_prog_cc_c_o" != yes; then 3027 # Losing compiler, so override with the script. 3028 # FIXME: It is wrong to rewrite CC. 3029 # But if we don't then we get into trouble of one sort or another. 3030 # A longer-term fix would be to have automake use am__CC in this case, 3031 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3032 CC="$am_aux_dir/compile $CC" 3033fi 3034ac_ext=c 3035ac_cpp='$CPP $CPPFLAGS' 3036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3038ac_compiler_gnu=$ac_cv_c_compiler_gnu 3039 3040 3041 3042ac_ext=c 3043ac_cpp='$CPP $CPPFLAGS' 3044ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3045ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3046ac_compiler_gnu=$ac_cv_c_compiler_gnu 3047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3048$as_echo_n "checking how to run the C preprocessor... " >&6; } 3049# On Suns, sometimes $CPP names a directory. 3050if test -n "$CPP" && test -d "$CPP"; then 3051 CPP= 3052fi 3053if test -z "$CPP"; then 3054 if ${ac_cv_prog_CPP+:} false; then : 3055 $as_echo_n "(cached) " >&6 3056else 3057 # Double quotes because CPP needs to be expanded 3058 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3059 do 3060 ac_preproc_ok=false 3061for ac_c_preproc_warn_flag in '' yes 3062do 3063 # Use a header file that comes with gcc, so configuring glibc 3064 # with a fresh cross-compiler works. 3065 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3066 # <limits.h> exists even on freestanding compilers. 3067 # On the NeXT, cc -E runs the code through the compiler's parser, 3068 # not just through cpp. "Syntax error" is here to catch this case. 3069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3070/* end confdefs.h. */ 3071#ifdef __STDC__ 3072# include <limits.h> 3073#else 3074# include <assert.h> 3075#endif 3076 Syntax error 3077_ACEOF 3078if ac_fn_c_try_cpp "$LINENO"; then : 3079 3080else 3081 # Broken: fails on valid input. 3082continue 3083fi 3084rm -f conftest.err conftest.i conftest.$ac_ext 3085 3086 # OK, works on sane cases. Now check whether nonexistent headers 3087 # can be detected and how. 3088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3089/* end confdefs.h. */ 3090#include <ac_nonexistent.h> 3091_ACEOF 3092if ac_fn_c_try_cpp "$LINENO"; then : 3093 # Broken: success on invalid input. 3094continue 3095else 3096 # Passes both tests. 3097ac_preproc_ok=: 3098break 3099fi 3100rm -f conftest.err conftest.i conftest.$ac_ext 3101 3102done 3103# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3104rm -f conftest.i conftest.err conftest.$ac_ext 3105if $ac_preproc_ok; then : 3106 break 3107fi 3108 3109 done 3110 ac_cv_prog_CPP=$CPP 3111 3112fi 3113 CPP=$ac_cv_prog_CPP 3114else 3115 ac_cv_prog_CPP=$CPP 3116fi 3117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3118$as_echo "$CPP" >&6; } 3119ac_preproc_ok=false 3120for ac_c_preproc_warn_flag in '' yes 3121do 3122 # Use a header file that comes with gcc, so configuring glibc 3123 # with a fresh cross-compiler works. 3124 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3125 # <limits.h> exists even on freestanding compilers. 3126 # On the NeXT, cc -E runs the code through the compiler's parser, 3127 # not just through cpp. "Syntax error" is here to catch this case. 3128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3129/* end confdefs.h. */ 3130#ifdef __STDC__ 3131# include <limits.h> 3132#else 3133# include <assert.h> 3134#endif 3135 Syntax error 3136_ACEOF 3137if ac_fn_c_try_cpp "$LINENO"; then : 3138 3139else 3140 # Broken: fails on valid input. 3141continue 3142fi 3143rm -f conftest.err conftest.i conftest.$ac_ext 3144 3145 # OK, works on sane cases. Now check whether nonexistent headers 3146 # can be detected and how. 3147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3148/* end confdefs.h. */ 3149#include <ac_nonexistent.h> 3150_ACEOF 3151if ac_fn_c_try_cpp "$LINENO"; then : 3152 # Broken: success on invalid input. 3153continue 3154else 3155 # Passes both tests. 3156ac_preproc_ok=: 3157break 3158fi 3159rm -f conftest.err conftest.i conftest.$ac_ext 3160 3161done 3162# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3163rm -f conftest.i conftest.err conftest.$ac_ext 3164if $ac_preproc_ok; then : 3165 3166else 3167 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3168$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3169as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3170See \`config.log' for more details" "$LINENO" 5; } 3171fi 3172 3173ac_ext=c 3174ac_cpp='$CPP $CPPFLAGS' 3175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3177ac_compiler_gnu=$ac_cv_c_compiler_gnu 3178 3179 3180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3181$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3182if ${ac_cv_path_GREP+:} false; then : 3183 $as_echo_n "(cached) " >&6 3184else 3185 if test -z "$GREP"; then 3186 ac_path_GREP_found=false 3187 # Loop through the user's path and test for each of PROGNAME-LIST 3188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3189for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3190do 3191 IFS=$as_save_IFS 3192 test -z "$as_dir" && as_dir=. 3193 for ac_prog in grep ggrep; do 3194 for ac_exec_ext in '' $ac_executable_extensions; do 3195 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3196 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3197# Check for GNU ac_path_GREP and select it if it is found. 3198 # Check for GNU $ac_path_GREP 3199case `"$ac_path_GREP" --version 2>&1` in 3200*GNU*) 3201 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3202*) 3203 ac_count=0 3204 $as_echo_n 0123456789 >"conftest.in" 3205 while : 3206 do 3207 cat "conftest.in" "conftest.in" >"conftest.tmp" 3208 mv "conftest.tmp" "conftest.in" 3209 cp "conftest.in" "conftest.nl" 3210 $as_echo 'GREP' >> "conftest.nl" 3211 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3212 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3213 as_fn_arith $ac_count + 1 && ac_count=$as_val 3214 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3215 # Best one so far, save it but keep looking for a better one 3216 ac_cv_path_GREP="$ac_path_GREP" 3217 ac_path_GREP_max=$ac_count 3218 fi 3219 # 10*(2^10) chars as input seems more than enough 3220 test $ac_count -gt 10 && break 3221 done 3222 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3223esac 3224 3225 $ac_path_GREP_found && break 3 3226 done 3227 done 3228 done 3229IFS=$as_save_IFS 3230 if test -z "$ac_cv_path_GREP"; then 3231 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3232 fi 3233else 3234 ac_cv_path_GREP=$GREP 3235fi 3236 3237fi 3238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3239$as_echo "$ac_cv_path_GREP" >&6; } 3240 GREP="$ac_cv_path_GREP" 3241 3242 3243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3244$as_echo_n "checking for egrep... " >&6; } 3245if ${ac_cv_path_EGREP+:} false; then : 3246 $as_echo_n "(cached) " >&6 3247else 3248 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3249 then ac_cv_path_EGREP="$GREP -E" 3250 else 3251 if test -z "$EGREP"; then 3252 ac_path_EGREP_found=false 3253 # Loop through the user's path and test for each of PROGNAME-LIST 3254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3255for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3256do 3257 IFS=$as_save_IFS 3258 test -z "$as_dir" && as_dir=. 3259 for ac_prog in egrep; do 3260 for ac_exec_ext in '' $ac_executable_extensions; do 3261 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3262 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3263# Check for GNU ac_path_EGREP and select it if it is found. 3264 # Check for GNU $ac_path_EGREP 3265case `"$ac_path_EGREP" --version 2>&1` in 3266*GNU*) 3267 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3268*) 3269 ac_count=0 3270 $as_echo_n 0123456789 >"conftest.in" 3271 while : 3272 do 3273 cat "conftest.in" "conftest.in" >"conftest.tmp" 3274 mv "conftest.tmp" "conftest.in" 3275 cp "conftest.in" "conftest.nl" 3276 $as_echo 'EGREP' >> "conftest.nl" 3277 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3278 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3279 as_fn_arith $ac_count + 1 && ac_count=$as_val 3280 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3281 # Best one so far, save it but keep looking for a better one 3282 ac_cv_path_EGREP="$ac_path_EGREP" 3283 ac_path_EGREP_max=$ac_count 3284 fi 3285 # 10*(2^10) chars as input seems more than enough 3286 test $ac_count -gt 10 && break 3287 done 3288 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3289esac 3290 3291 $ac_path_EGREP_found && break 3 3292 done 3293 done 3294 done 3295IFS=$as_save_IFS 3296 if test -z "$ac_cv_path_EGREP"; then 3297 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3298 fi 3299else 3300 ac_cv_path_EGREP=$EGREP 3301fi 3302 3303 fi 3304fi 3305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3306$as_echo "$ac_cv_path_EGREP" >&6; } 3307 EGREP="$ac_cv_path_EGREP" 3308 3309 3310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3311$as_echo_n "checking for ANSI C header files... " >&6; } 3312if ${ac_cv_header_stdc+:} false; then : 3313 $as_echo_n "(cached) " >&6 3314else 3315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3316/* end confdefs.h. */ 3317#include <stdlib.h> 3318#include <stdarg.h> 3319#include <string.h> 3320#include <float.h> 3321 3322int 3323main () 3324{ 3325 3326 ; 3327 return 0; 3328} 3329_ACEOF 3330if ac_fn_c_try_compile "$LINENO"; then : 3331 ac_cv_header_stdc=yes 3332else 3333 ac_cv_header_stdc=no 3334fi 3335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3336 3337if test $ac_cv_header_stdc = yes; then 3338 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3340/* end confdefs.h. */ 3341#include <string.h> 3342 3343_ACEOF 3344if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3345 $EGREP "memchr" >/dev/null 2>&1; then : 3346 3347else 3348 ac_cv_header_stdc=no 3349fi 3350rm -f conftest* 3351 3352fi 3353 3354if test $ac_cv_header_stdc = yes; then 3355 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3357/* end confdefs.h. */ 3358#include <stdlib.h> 3359 3360_ACEOF 3361if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3362 $EGREP "free" >/dev/null 2>&1; then : 3363 3364else 3365 ac_cv_header_stdc=no 3366fi 3367rm -f conftest* 3368 3369fi 3370 3371if test $ac_cv_header_stdc = yes; then 3372 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3373 if test "$cross_compiling" = yes; then : 3374 : 3375else 3376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3377/* end confdefs.h. */ 3378#include <ctype.h> 3379#include <stdlib.h> 3380#if ((' ' & 0x0FF) == 0x020) 3381# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3382# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3383#else 3384# define ISLOWER(c) \ 3385 (('a' <= (c) && (c) <= 'i') \ 3386 || ('j' <= (c) && (c) <= 'r') \ 3387 || ('s' <= (c) && (c) <= 'z')) 3388# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3389#endif 3390 3391#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3392int 3393main () 3394{ 3395 int i; 3396 for (i = 0; i < 256; i++) 3397 if (XOR (islower (i), ISLOWER (i)) 3398 || toupper (i) != TOUPPER (i)) 3399 return 2; 3400 return 0; 3401} 3402_ACEOF 3403if ac_fn_c_try_run "$LINENO"; then : 3404 3405else 3406 ac_cv_header_stdc=no 3407fi 3408rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3409 conftest.$ac_objext conftest.beam conftest.$ac_ext 3410fi 3411 3412fi 3413fi 3414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3415$as_echo "$ac_cv_header_stdc" >&6; } 3416if test $ac_cv_header_stdc = yes; then 3417 3418$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3419 3420fi 3421 3422# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3423for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3424 inttypes.h stdint.h unistd.h 3425do : 3426 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3427ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3428" 3429if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3430 cat >>confdefs.h <<_ACEOF 3431#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3432_ACEOF 3433 3434fi 3435 3436done 3437 3438 3439 3440 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 3441if test "x$ac_cv_header_minix_config_h" = xyes; then : 3442 MINIX=yes 3443else 3444 MINIX= 3445fi 3446 3447 3448 if test "$MINIX" = yes; then 3449 3450$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 3451 3452 3453$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 3454 3455 3456$as_echo "#define _MINIX 1" >>confdefs.h 3457 3458 fi 3459 3460 3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3462$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3463if ${ac_cv_safe_to_define___extensions__+:} false; then : 3464 $as_echo_n "(cached) " >&6 3465else 3466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3467/* end confdefs.h. */ 3468 3469# define __EXTENSIONS__ 1 3470 $ac_includes_default 3471int 3472main () 3473{ 3474 3475 ; 3476 return 0; 3477} 3478_ACEOF 3479if ac_fn_c_try_compile "$LINENO"; then : 3480 ac_cv_safe_to_define___extensions__=yes 3481else 3482 ac_cv_safe_to_define___extensions__=no 3483fi 3484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3485fi 3486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3487$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 3488 test $ac_cv_safe_to_define___extensions__ = yes && 3489 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 3490 3491 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 3492 3493 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 3494 3495 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3496 3497 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 3498 3499 3500 3501# Initialize Automake 3502am__api_version='1.14' 3503 3504ac_aux_dir= 3505for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 3506 if test -f "$ac_dir/install-sh"; then 3507 ac_aux_dir=$ac_dir 3508 ac_install_sh="$ac_aux_dir/install-sh -c" 3509 break 3510 elif test -f "$ac_dir/install.sh"; then 3511 ac_aux_dir=$ac_dir 3512 ac_install_sh="$ac_aux_dir/install.sh -c" 3513 break 3514 elif test -f "$ac_dir/shtool"; then 3515 ac_aux_dir=$ac_dir 3516 ac_install_sh="$ac_aux_dir/shtool install -c" 3517 break 3518 fi 3519done 3520if test -z "$ac_aux_dir"; then 3521 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 3522fi 3523 3524# These three variables are undocumented and unsupported, 3525# and are intended to be withdrawn in a future Autoconf release. 3526# They can cause serious problems if a builder's source tree is in a directory 3527# whose full name contains unusual characters. 3528ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3529ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3530ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3531 3532 3533# Find a good install program. We prefer a C program (faster), 3534# so one script is as good as another. But avoid the broken or 3535# incompatible versions: 3536# SysV /etc/install, /usr/sbin/install 3537# SunOS /usr/etc/install 3538# IRIX /sbin/install 3539# AIX /bin/install 3540# AmigaOS /C/install, which installs bootblocks on floppy discs 3541# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3542# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3543# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3544# OS/2's system install, which has a completely different semantic 3545# ./install, which can be erroneously created by make from ./install.sh. 3546# Reject install programs that cannot install multiple files. 3547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3548$as_echo_n "checking for a BSD-compatible install... " >&6; } 3549if test -z "$INSTALL"; then 3550if ${ac_cv_path_install+:} false; then : 3551 $as_echo_n "(cached) " >&6 3552else 3553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3554for as_dir in $PATH 3555do 3556 IFS=$as_save_IFS 3557 test -z "$as_dir" && as_dir=. 3558 # Account for people who put trailing slashes in PATH elements. 3559case $as_dir/ in #(( 3560 ./ | .// | /[cC]/* | \ 3561 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3562 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3563 /usr/ucb/* ) ;; 3564 *) 3565 # OSF1 and SCO ODT 3.0 have their own names for install. 3566 # Don't use installbsd from OSF since it installs stuff as root 3567 # by default. 3568 for ac_prog in ginstall scoinst install; do 3569 for ac_exec_ext in '' $ac_executable_extensions; do 3570 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3571 if test $ac_prog = install && 3572 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3573 # AIX install. It has an incompatible calling convention. 3574 : 3575 elif test $ac_prog = install && 3576 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3577 # program-specific install script used by HP pwplus--don't use. 3578 : 3579 else 3580 rm -rf conftest.one conftest.two conftest.dir 3581 echo one > conftest.one 3582 echo two > conftest.two 3583 mkdir conftest.dir 3584 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3585 test -s conftest.one && test -s conftest.two && 3586 test -s conftest.dir/conftest.one && 3587 test -s conftest.dir/conftest.two 3588 then 3589 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3590 break 3 3591 fi 3592 fi 3593 fi 3594 done 3595 done 3596 ;; 3597esac 3598 3599 done 3600IFS=$as_save_IFS 3601 3602rm -rf conftest.one conftest.two conftest.dir 3603 3604fi 3605 if test "${ac_cv_path_install+set}" = set; then 3606 INSTALL=$ac_cv_path_install 3607 else 3608 # As a last resort, use the slow shell script. Don't cache a 3609 # value for INSTALL within a source directory, because that will 3610 # break other packages using the cache if that directory is 3611 # removed, or if the value is a relative name. 3612 INSTALL=$ac_install_sh 3613 fi 3614fi 3615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3616$as_echo "$INSTALL" >&6; } 3617 3618# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3619# It thinks the first close brace ends the variable substitution. 3620test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3621 3622test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3623 3624test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3625 3626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3627$as_echo_n "checking whether build environment is sane... " >&6; } 3628# Reject unsafe characters in $srcdir or the absolute working directory 3629# name. Accept space and tab only in the latter. 3630am_lf=' 3631' 3632case `pwd` in 3633 *[\\\"\#\$\&\'\`$am_lf]*) 3634 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3635esac 3636case $srcdir in 3637 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3638 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3639esac 3640 3641# Do 'set' in a subshell so we don't clobber the current shell's 3642# arguments. Must try -L first in case configure is actually a 3643# symlink; some systems play weird games with the mod time of symlinks 3644# (eg FreeBSD returns the mod time of the symlink's containing 3645# directory). 3646if ( 3647 am_has_slept=no 3648 for am_try in 1 2; do 3649 echo "timestamp, slept: $am_has_slept" > conftest.file 3650 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3651 if test "$*" = "X"; then 3652 # -L didn't work. 3653 set X `ls -t "$srcdir/configure" conftest.file` 3654 fi 3655 if test "$*" != "X $srcdir/configure conftest.file" \ 3656 && test "$*" != "X conftest.file $srcdir/configure"; then 3657 3658 # If neither matched, then we have a broken ls. This can happen 3659 # if, for instance, CONFIG_SHELL is bash and it inherits a 3660 # broken ls alias from the environment. This has actually 3661 # happened. Such a system could not be considered "sane". 3662 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3663 alias in your environment" "$LINENO" 5 3664 fi 3665 if test "$2" = conftest.file || test $am_try -eq 2; then 3666 break 3667 fi 3668 # Just in case. 3669 sleep 1 3670 am_has_slept=yes 3671 done 3672 test "$2" = conftest.file 3673 ) 3674then 3675 # Ok. 3676 : 3677else 3678 as_fn_error $? "newly created file is older than distributed files! 3679Check your system clock" "$LINENO" 5 3680fi 3681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3682$as_echo "yes" >&6; } 3683# If we didn't sleep, we still need to ensure time stamps of config.status and 3684# generated files are strictly newer. 3685am_sleep_pid= 3686if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3687 ( sleep 1 ) & 3688 am_sleep_pid=$! 3689fi 3690 3691rm -f conftest.file 3692 3693test "$program_prefix" != NONE && 3694 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3695# Use a double $ so make ignores it. 3696test "$program_suffix" != NONE && 3697 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3698# Double any \ or $. 3699# By default was `s,x,x', remove it if useless. 3700ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3701program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3702 3703if test x"${MISSING+set}" != xset; then 3704 case $am_aux_dir in 3705 *\ * | *\ *) 3706 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3707 *) 3708 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3709 esac 3710fi 3711# Use eval to expand $SHELL 3712if eval "$MISSING --is-lightweight"; then 3713 am_missing_run="$MISSING " 3714else 3715 am_missing_run= 3716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3717$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3718fi 3719 3720if test x"${install_sh}" != xset; then 3721 case $am_aux_dir in 3722 *\ * | *\ *) 3723 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3724 *) 3725 install_sh="\${SHELL} $am_aux_dir/install-sh" 3726 esac 3727fi 3728 3729# Installed binaries are usually stripped using 'strip' when the user 3730# run "make install-strip". However 'strip' might not be the right 3731# tool to use in cross-compilation environments, therefore Automake 3732# will honor the 'STRIP' environment variable to overrule this program. 3733if test "$cross_compiling" != no; then 3734 if test -n "$ac_tool_prefix"; then 3735 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3736set dummy ${ac_tool_prefix}strip; ac_word=$2 3737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3738$as_echo_n "checking for $ac_word... " >&6; } 3739if ${ac_cv_prog_STRIP+:} false; then : 3740 $as_echo_n "(cached) " >&6 3741else 3742 if test -n "$STRIP"; then 3743 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3744else 3745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3746for as_dir in $PATH 3747do 3748 IFS=$as_save_IFS 3749 test -z "$as_dir" && as_dir=. 3750 for ac_exec_ext in '' $ac_executable_extensions; do 3751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3752 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3754 break 2 3755 fi 3756done 3757 done 3758IFS=$as_save_IFS 3759 3760fi 3761fi 3762STRIP=$ac_cv_prog_STRIP 3763if test -n "$STRIP"; then 3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3765$as_echo "$STRIP" >&6; } 3766else 3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3768$as_echo "no" >&6; } 3769fi 3770 3771 3772fi 3773if test -z "$ac_cv_prog_STRIP"; then 3774 ac_ct_STRIP=$STRIP 3775 # Extract the first word of "strip", so it can be a program name with args. 3776set dummy strip; ac_word=$2 3777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3778$as_echo_n "checking for $ac_word... " >&6; } 3779if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3780 $as_echo_n "(cached) " >&6 3781else 3782 if test -n "$ac_ct_STRIP"; then 3783 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3784else 3785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3786for as_dir in $PATH 3787do 3788 IFS=$as_save_IFS 3789 test -z "$as_dir" && as_dir=. 3790 for ac_exec_ext in '' $ac_executable_extensions; do 3791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3792 ac_cv_prog_ac_ct_STRIP="strip" 3793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3794 break 2 3795 fi 3796done 3797 done 3798IFS=$as_save_IFS 3799 3800fi 3801fi 3802ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3803if test -n "$ac_ct_STRIP"; then 3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3805$as_echo "$ac_ct_STRIP" >&6; } 3806else 3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3808$as_echo "no" >&6; } 3809fi 3810 3811 if test "x$ac_ct_STRIP" = x; then 3812 STRIP=":" 3813 else 3814 case $cross_compiling:$ac_tool_warned in 3815yes:) 3816{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3817$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3818ac_tool_warned=yes ;; 3819esac 3820 STRIP=$ac_ct_STRIP 3821 fi 3822else 3823 STRIP="$ac_cv_prog_STRIP" 3824fi 3825 3826fi 3827INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3828 3829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3830$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3831if test -z "$MKDIR_P"; then 3832 if ${ac_cv_path_mkdir+:} false; then : 3833 $as_echo_n "(cached) " >&6 3834else 3835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3836for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3837do 3838 IFS=$as_save_IFS 3839 test -z "$as_dir" && as_dir=. 3840 for ac_prog in mkdir gmkdir; do 3841 for ac_exec_ext in '' $ac_executable_extensions; do 3842 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 3843 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3844 'mkdir (GNU coreutils) '* | \ 3845 'mkdir (coreutils) '* | \ 3846 'mkdir (fileutils) '4.1*) 3847 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3848 break 3;; 3849 esac 3850 done 3851 done 3852 done 3853IFS=$as_save_IFS 3854 3855fi 3856 3857 test -d ./--version && rmdir ./--version 3858 if test "${ac_cv_path_mkdir+set}" = set; then 3859 MKDIR_P="$ac_cv_path_mkdir -p" 3860 else 3861 # As a last resort, use the slow shell script. Don't cache a 3862 # value for MKDIR_P within a source directory, because that will 3863 # break other packages using the cache if that directory is 3864 # removed, or if the value is a relative name. 3865 MKDIR_P="$ac_install_sh -d" 3866 fi 3867fi 3868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3869$as_echo "$MKDIR_P" >&6; } 3870 3871for ac_prog in gawk mawk nawk awk 3872do 3873 # Extract the first word of "$ac_prog", so it can be a program name with args. 3874set dummy $ac_prog; ac_word=$2 3875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3876$as_echo_n "checking for $ac_word... " >&6; } 3877if ${ac_cv_prog_AWK+:} false; then : 3878 $as_echo_n "(cached) " >&6 3879else 3880 if test -n "$AWK"; then 3881 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3882else 3883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3884for as_dir in $PATH 3885do 3886 IFS=$as_save_IFS 3887 test -z "$as_dir" && as_dir=. 3888 for ac_exec_ext in '' $ac_executable_extensions; do 3889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3890 ac_cv_prog_AWK="$ac_prog" 3891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3892 break 2 3893 fi 3894done 3895 done 3896IFS=$as_save_IFS 3897 3898fi 3899fi 3900AWK=$ac_cv_prog_AWK 3901if test -n "$AWK"; then 3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3903$as_echo "$AWK" >&6; } 3904else 3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3906$as_echo "no" >&6; } 3907fi 3908 3909 3910 test -n "$AWK" && break 3911done 3912 3913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3914$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3915set x ${MAKE-make} 3916ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3917if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3918 $as_echo_n "(cached) " >&6 3919else 3920 cat >conftest.make <<\_ACEOF 3921SHELL = /bin/sh 3922all: 3923 @echo '@@@%%%=$(MAKE)=@@@%%%' 3924_ACEOF 3925# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3926case `${MAKE-make} -f conftest.make 2>/dev/null` in 3927 *@@@%%%=?*=@@@%%%*) 3928 eval ac_cv_prog_make_${ac_make}_set=yes;; 3929 *) 3930 eval ac_cv_prog_make_${ac_make}_set=no;; 3931esac 3932rm -f conftest.make 3933fi 3934if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3936$as_echo "yes" >&6; } 3937 SET_MAKE= 3938else 3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3940$as_echo "no" >&6; } 3941 SET_MAKE="MAKE=${MAKE-make}" 3942fi 3943 3944rm -rf .tst 2>/dev/null 3945mkdir .tst 2>/dev/null 3946if test -d .tst; then 3947 am__leading_dot=. 3948else 3949 am__leading_dot=_ 3950fi 3951rmdir .tst 2>/dev/null 3952 3953DEPDIR="${am__leading_dot}deps" 3954 3955ac_config_commands="$ac_config_commands depfiles" 3956 3957 3958am_make=${MAKE-make} 3959cat > confinc << 'END' 3960am__doit: 3961 @echo this is the am__doit target 3962.PHONY: am__doit 3963END 3964# If we don't find an include directive, just comment out the code. 3965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3966$as_echo_n "checking for style of include used by $am_make... " >&6; } 3967am__include="#" 3968am__quote= 3969_am_result=none 3970# First try GNU make style include. 3971echo "include confinc" > confmf 3972# Ignore all kinds of additional output from 'make'. 3973case `$am_make -s -f confmf 2> /dev/null` in #( 3974*the\ am__doit\ target*) 3975 am__include=include 3976 am__quote= 3977 _am_result=GNU 3978 ;; 3979esac 3980# Now try BSD make style include. 3981if test "$am__include" = "#"; then 3982 echo '.include "confinc"' > confmf 3983 case `$am_make -s -f confmf 2> /dev/null` in #( 3984 *the\ am__doit\ target*) 3985 am__include=.include 3986 am__quote="\"" 3987 _am_result=BSD 3988 ;; 3989 esac 3990fi 3991 3992 3993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3994$as_echo "$_am_result" >&6; } 3995rm -f confinc confmf 3996 3997# Check whether --enable-dependency-tracking was given. 3998if test "${enable_dependency_tracking+set}" = set; then : 3999 enableval=$enable_dependency_tracking; 4000fi 4001 4002if test "x$enable_dependency_tracking" != xno; then 4003 am_depcomp="$ac_aux_dir/depcomp" 4004 AMDEPBACKSLASH='\' 4005 am__nodep='_no' 4006fi 4007 if test "x$enable_dependency_tracking" != xno; then 4008 AMDEP_TRUE= 4009 AMDEP_FALSE='#' 4010else 4011 AMDEP_TRUE='#' 4012 AMDEP_FALSE= 4013fi 4014 4015 4016# Check whether --enable-silent-rules was given. 4017if test "${enable_silent_rules+set}" = set; then : 4018 enableval=$enable_silent_rules; 4019fi 4020 4021case $enable_silent_rules in # ((( 4022 yes) AM_DEFAULT_VERBOSITY=0;; 4023 no) AM_DEFAULT_VERBOSITY=1;; 4024 *) AM_DEFAULT_VERBOSITY=1;; 4025esac 4026am_make=${MAKE-make} 4027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4028$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4029if ${am_cv_make_support_nested_variables+:} false; then : 4030 $as_echo_n "(cached) " >&6 4031else 4032 if $as_echo 'TRUE=$(BAR$(V)) 4033BAR0=false 4034BAR1=true 4035V=1 4036am__doit: 4037 @$(TRUE) 4038.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4039 am_cv_make_support_nested_variables=yes 4040else 4041 am_cv_make_support_nested_variables=no 4042fi 4043fi 4044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4045$as_echo "$am_cv_make_support_nested_variables" >&6; } 4046if test $am_cv_make_support_nested_variables = yes; then 4047 AM_V='$(V)' 4048 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4049else 4050 AM_V=$AM_DEFAULT_VERBOSITY 4051 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4052fi 4053AM_BACKSLASH='\' 4054 4055if test "`cd $srcdir && pwd`" != "`pwd`"; then 4056 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4057 # is not polluted with repeated "-I." 4058 am__isrc=' -I$(srcdir)' 4059 # test to see if srcdir already configured 4060 if test -f $srcdir/config.status; then 4061 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4062 fi 4063fi 4064 4065# test whether we have cygpath 4066if test -z "$CYGPATH_W"; then 4067 if (cygpath --version) >/dev/null 2>/dev/null; then 4068 CYGPATH_W='cygpath -w' 4069 else 4070 CYGPATH_W=echo 4071 fi 4072fi 4073 4074 4075# Define the identity of the package. 4076 PACKAGE='mkfontscale' 4077 VERSION='1.1.1' 4078 4079 4080cat >>confdefs.h <<_ACEOF 4081#define PACKAGE "$PACKAGE" 4082_ACEOF 4083 4084 4085cat >>confdefs.h <<_ACEOF 4086#define VERSION "$VERSION" 4087_ACEOF 4088 4089# Some tools Automake needs. 4090 4091ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4092 4093 4094AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4095 4096 4097AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4098 4099 4100AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4101 4102 4103MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4104 4105# For better backward compatibility. To be removed once Automake 1.9.x 4106# dies out for good. For more background, see: 4107# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4108# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4109mkdir_p='$(MKDIR_P)' 4110 4111# We need awk for the "check" target. The system "awk" is bad on 4112# some platforms. 4113# Always define AMTAR for backward compatibility. Yes, it's still used 4114# in the wild :-( We should find a proper way to deprecate it ... 4115AMTAR='$${TAR-tar}' 4116 4117 4118# We'll loop over all known methods to create a tar archive until one works. 4119_am_tools='gnutar pax cpio none' 4120 4121am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4122 4123 4124 4125 4126 4127depcc="$CC" am_compiler_list= 4128 4129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4130$as_echo_n "checking dependency style of $depcc... " >&6; } 4131if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4132 $as_echo_n "(cached) " >&6 4133else 4134 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4135 # We make a subdir and do the tests there. Otherwise we can end up 4136 # making bogus files that we don't know about and never remove. For 4137 # instance it was reported that on HP-UX the gcc test will end up 4138 # making a dummy file named 'D' -- because '-MD' means "put the output 4139 # in D". 4140 rm -rf conftest.dir 4141 mkdir conftest.dir 4142 # Copy depcomp to subdir because otherwise we won't find it if we're 4143 # using a relative directory. 4144 cp "$am_depcomp" conftest.dir 4145 cd conftest.dir 4146 # We will build objects and dependencies in a subdirectory because 4147 # it helps to detect inapplicable dependency modes. For instance 4148 # both Tru64's cc and ICC support -MD to output dependencies as a 4149 # side effect of compilation, but ICC will put the dependencies in 4150 # the current directory while Tru64 will put them in the object 4151 # directory. 4152 mkdir sub 4153 4154 am_cv_CC_dependencies_compiler_type=none 4155 if test "$am_compiler_list" = ""; then 4156 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4157 fi 4158 am__universal=false 4159 case " $depcc " in #( 4160 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4161 esac 4162 4163 for depmode in $am_compiler_list; do 4164 # Setup a source with many dependencies, because some compilers 4165 # like to wrap large dependency lists on column 80 (with \), and 4166 # we should not choose a depcomp mode which is confused by this. 4167 # 4168 # We need to recreate these files for each test, as the compiler may 4169 # overwrite some of them when testing with obscure command lines. 4170 # This happens at least with the AIX C compiler. 4171 : > sub/conftest.c 4172 for i in 1 2 3 4 5 6; do 4173 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4174 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4175 # Solaris 10 /bin/sh. 4176 echo '/* dummy */' > sub/conftst$i.h 4177 done 4178 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4179 4180 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4181 # mode. It turns out that the SunPro C++ compiler does not properly 4182 # handle '-M -o', and we need to detect this. Also, some Intel 4183 # versions had trouble with output in subdirs. 4184 am__obj=sub/conftest.${OBJEXT-o} 4185 am__minus_obj="-o $am__obj" 4186 case $depmode in 4187 gcc) 4188 # This depmode causes a compiler race in universal mode. 4189 test "$am__universal" = false || continue 4190 ;; 4191 nosideeffect) 4192 # After this tag, mechanisms are not by side-effect, so they'll 4193 # only be used when explicitly requested. 4194 if test "x$enable_dependency_tracking" = xyes; then 4195 continue 4196 else 4197 break 4198 fi 4199 ;; 4200 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4201 # This compiler won't grok '-c -o', but also, the minuso test has 4202 # not run yet. These depmodes are late enough in the game, and 4203 # so weak that their functioning should not be impacted. 4204 am__obj=conftest.${OBJEXT-o} 4205 am__minus_obj= 4206 ;; 4207 none) break ;; 4208 esac 4209 if depmode=$depmode \ 4210 source=sub/conftest.c object=$am__obj \ 4211 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4212 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4213 >/dev/null 2>conftest.err && 4214 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4215 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4216 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4217 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4218 # icc doesn't choke on unknown options, it will just issue warnings 4219 # or remarks (even with -Werror). So we grep stderr for any message 4220 # that says an option was ignored or not supported. 4221 # When given -MP, icc 7.0 and 7.1 complain thusly: 4222 # icc: Command line warning: ignoring option '-M'; no argument required 4223 # The diagnosis changed in icc 8.0: 4224 # icc: Command line remark: option '-MP' not supported 4225 if (grep 'ignoring option' conftest.err || 4226 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4227 am_cv_CC_dependencies_compiler_type=$depmode 4228 break 4229 fi 4230 fi 4231 done 4232 4233 cd .. 4234 rm -rf conftest.dir 4235else 4236 am_cv_CC_dependencies_compiler_type=none 4237fi 4238 4239fi 4240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4241$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4242CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4243 4244 if 4245 test "x$enable_dependency_tracking" != xno \ 4246 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4247 am__fastdepCC_TRUE= 4248 am__fastdepCC_FALSE='#' 4249else 4250 am__fastdepCC_TRUE='#' 4251 am__fastdepCC_FALSE= 4252fi 4253 4254 4255 4256# POSIX will say in a future version that running "rm -f" with no argument 4257# is OK; and we want to be able to make that assumption in our Makefile 4258# recipes. So use an aggressive probe to check that the usage we want is 4259# actually supported "in the wild" to an acceptable degree. 4260# See automake bug#10828. 4261# To make any issue more visible, cause the running configure to be aborted 4262# by default if the 'rm' program in use doesn't match our expectations; the 4263# user can still override this though. 4264if rm -f && rm -fr && rm -rf; then : OK; else 4265 cat >&2 <<'END' 4266Oops! 4267 4268Your 'rm' program seems unable to run without file operands specified 4269on the command line, even when the '-f' option is present. This is contrary 4270to the behaviour of most rm programs out there, and not conforming with 4271the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4272 4273Please tell bug-automake@gnu.org about your system, including the value 4274of your $PATH and any error possibly output before this message. This 4275can help us improve future automake versions. 4276 4277END 4278 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4279 echo 'Configuration will proceed anyway, since you have set the' >&2 4280 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4281 echo >&2 4282 else 4283 cat >&2 <<'END' 4284Aborting the configuration process, to ensure you take notice of the issue. 4285 4286You can download and install GNU coreutils to get an 'rm' implementation 4287that behaves properly: <http://www.gnu.org/software/coreutils/>. 4288 4289If you want to complete the configuration process using your problematic 4290'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4291to "yes", and re-run configure. 4292 4293END 4294 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4295 fi 4296fi 4297 4298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 4299$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 4300 # Check whether --enable-maintainer-mode was given. 4301if test "${enable_maintainer_mode+set}" = set; then : 4302 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 4303else 4304 USE_MAINTAINER_MODE=no 4305fi 4306 4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 4308$as_echo "$USE_MAINTAINER_MODE" >&6; } 4309 if test $USE_MAINTAINER_MODE = yes; then 4310 MAINTAINER_MODE_TRUE= 4311 MAINTAINER_MODE_FALSE='#' 4312else 4313 MAINTAINER_MODE_TRUE='#' 4314 MAINTAINER_MODE_FALSE= 4315fi 4316 4317 MAINT=$MAINTAINER_MODE_TRUE 4318 4319 4320 4321# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4334$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4335if ${ac_cv_prog_cc_c99+:} false; then : 4336 $as_echo_n "(cached) " >&6 4337else 4338 ac_cv_prog_cc_c99=no 4339ac_save_CC=$CC 4340cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4341/* end confdefs.h. */ 4342#include <stdarg.h> 4343#include <stdbool.h> 4344#include <stdlib.h> 4345#include <wchar.h> 4346#include <stdio.h> 4347 4348// Check varargs macros. These examples are taken from C99 6.10.3.5. 4349#define debug(...) fprintf (stderr, __VA_ARGS__) 4350#define showlist(...) puts (#__VA_ARGS__) 4351#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4352static void 4353test_varargs_macros (void) 4354{ 4355 int x = 1234; 4356 int y = 5678; 4357 debug ("Flag"); 4358 debug ("X = %d\n", x); 4359 showlist (The first, second, and third items.); 4360 report (x>y, "x is %d but y is %d", x, y); 4361} 4362 4363// Check long long types. 4364#define BIG64 18446744073709551615ull 4365#define BIG32 4294967295ul 4366#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4367#if !BIG_OK 4368 your preprocessor is broken; 4369#endif 4370#if BIG_OK 4371#else 4372 your preprocessor is broken; 4373#endif 4374static long long int bignum = -9223372036854775807LL; 4375static unsigned long long int ubignum = BIG64; 4376 4377struct incomplete_array 4378{ 4379 int datasize; 4380 double data[]; 4381}; 4382 4383struct named_init { 4384 int number; 4385 const wchar_t *name; 4386 double average; 4387}; 4388 4389typedef const char *ccp; 4390 4391static inline int 4392test_restrict (ccp restrict text) 4393{ 4394 // See if C++-style comments work. 4395 // Iterate through items via the restricted pointer. 4396 // Also check for declarations in for loops. 4397 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4398 continue; 4399 return 0; 4400} 4401 4402// Check varargs and va_copy. 4403static void 4404test_varargs (const char *format, ...) 4405{ 4406 va_list args; 4407 va_start (args, format); 4408 va_list args_copy; 4409 va_copy (args_copy, args); 4410 4411 const char *str; 4412 int number; 4413 float fnumber; 4414 4415 while (*format) 4416 { 4417 switch (*format++) 4418 { 4419 case 's': // string 4420 str = va_arg (args_copy, const char *); 4421 break; 4422 case 'd': // int 4423 number = va_arg (args_copy, int); 4424 break; 4425 case 'f': // float 4426 fnumber = va_arg (args_copy, double); 4427 break; 4428 default: 4429 break; 4430 } 4431 } 4432 va_end (args_copy); 4433 va_end (args); 4434} 4435 4436int 4437main () 4438{ 4439 4440 // Check bool. 4441 _Bool success = false; 4442 4443 // Check restrict. 4444 if (test_restrict ("String literal") == 0) 4445 success = true; 4446 char *restrict newvar = "Another string"; 4447 4448 // Check varargs. 4449 test_varargs ("s, d' f .", "string", 65, 34.234); 4450 test_varargs_macros (); 4451 4452 // Check flexible array members. 4453 struct incomplete_array *ia = 4454 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4455 ia->datasize = 10; 4456 for (int i = 0; i < ia->datasize; ++i) 4457 ia->data[i] = i * 1.234; 4458 4459 // Check named initializers. 4460 struct named_init ni = { 4461 .number = 34, 4462 .name = L"Test wide string", 4463 .average = 543.34343, 4464 }; 4465 4466 ni.number = 58; 4467 4468 int dynamic_array[ni.number]; 4469 dynamic_array[ni.number - 1] = 543; 4470 4471 // work around unused variable warnings 4472 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4473 || dynamic_array[ni.number - 1] != 543); 4474 4475 ; 4476 return 0; 4477} 4478_ACEOF 4479for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 4480do 4481 CC="$ac_save_CC $ac_arg" 4482 if ac_fn_c_try_compile "$LINENO"; then : 4483 ac_cv_prog_cc_c99=$ac_arg 4484fi 4485rm -f core conftest.err conftest.$ac_objext 4486 test "x$ac_cv_prog_cc_c99" != "xno" && break 4487done 4488rm -f conftest.$ac_ext 4489CC=$ac_save_CC 4490 4491fi 4492# AC_CACHE_VAL 4493case "x$ac_cv_prog_cc_c99" in 4494 x) 4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4496$as_echo "none needed" >&6; } ;; 4497 xno) 4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4499$as_echo "unsupported" >&6; } ;; 4500 *) 4501 CC="$CC $ac_cv_prog_cc_c99" 4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4503$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4504esac 4505if test "x$ac_cv_prog_cc_c99" != xno; then : 4506 4507fi 4508 4509 4510 4511 4512 4513 4514ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4515if test "x$ac_cv_have_decl___clang__" = xyes; then : 4516 CLANGCC="yes" 4517else 4518 CLANGCC="no" 4519fi 4520 4521ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4522if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4523 INTELCC="yes" 4524else 4525 INTELCC="no" 4526fi 4527 4528ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4529if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4530 SUNCC="yes" 4531else 4532 SUNCC="no" 4533fi 4534 4535 4536 4537 4538if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4539 if test -n "$ac_tool_prefix"; then 4540 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4541set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4543$as_echo_n "checking for $ac_word... " >&6; } 4544if ${ac_cv_path_PKG_CONFIG+:} false; then : 4545 $as_echo_n "(cached) " >&6 4546else 4547 case $PKG_CONFIG in 4548 [\\/]* | ?:[\\/]*) 4549 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4550 ;; 4551 *) 4552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4553for as_dir in $PATH 4554do 4555 IFS=$as_save_IFS 4556 test -z "$as_dir" && as_dir=. 4557 for ac_exec_ext in '' $ac_executable_extensions; do 4558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4559 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4561 break 2 4562 fi 4563done 4564 done 4565IFS=$as_save_IFS 4566 4567 ;; 4568esac 4569fi 4570PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4571if test -n "$PKG_CONFIG"; then 4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4573$as_echo "$PKG_CONFIG" >&6; } 4574else 4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4576$as_echo "no" >&6; } 4577fi 4578 4579 4580fi 4581if test -z "$ac_cv_path_PKG_CONFIG"; then 4582 ac_pt_PKG_CONFIG=$PKG_CONFIG 4583 # Extract the first word of "pkg-config", so it can be a program name with args. 4584set dummy pkg-config; ac_word=$2 4585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4586$as_echo_n "checking for $ac_word... " >&6; } 4587if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4588 $as_echo_n "(cached) " >&6 4589else 4590 case $ac_pt_PKG_CONFIG in 4591 [\\/]* | ?:[\\/]*) 4592 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4593 ;; 4594 *) 4595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4596for as_dir in $PATH 4597do 4598 IFS=$as_save_IFS 4599 test -z "$as_dir" && as_dir=. 4600 for ac_exec_ext in '' $ac_executable_extensions; do 4601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4602 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4604 break 2 4605 fi 4606done 4607 done 4608IFS=$as_save_IFS 4609 4610 ;; 4611esac 4612fi 4613ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4614if test -n "$ac_pt_PKG_CONFIG"; then 4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4616$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4617else 4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4619$as_echo "no" >&6; } 4620fi 4621 4622 if test "x$ac_pt_PKG_CONFIG" = x; then 4623 PKG_CONFIG="" 4624 else 4625 case $cross_compiling:$ac_tool_warned in 4626yes:) 4627{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4628$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4629ac_tool_warned=yes ;; 4630esac 4631 PKG_CONFIG=$ac_pt_PKG_CONFIG 4632 fi 4633else 4634 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4635fi 4636 4637fi 4638if test -n "$PKG_CONFIG"; then 4639 _pkg_min_version=0.9.0 4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4641$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4642 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4644$as_echo "yes" >&6; } 4645 else 4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4647$as_echo "no" >&6; } 4648 PKG_CONFIG="" 4649 fi 4650 4651fi 4652# Make sure we can run config.sub. 4653$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4654 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4655 4656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4657$as_echo_n "checking build system type... " >&6; } 4658if ${ac_cv_build+:} false; then : 4659 $as_echo_n "(cached) " >&6 4660else 4661 ac_build_alias=$build_alias 4662test "x$ac_build_alias" = x && 4663 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4664test "x$ac_build_alias" = x && 4665 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4666ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4667 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4668 4669fi 4670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4671$as_echo "$ac_cv_build" >&6; } 4672case $ac_cv_build in 4673*-*-*) ;; 4674*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4675esac 4676build=$ac_cv_build 4677ac_save_IFS=$IFS; IFS='-' 4678set x $ac_cv_build 4679shift 4680build_cpu=$1 4681build_vendor=$2 4682shift; shift 4683# Remember, the first character of IFS is used to create $*, 4684# except with old shells: 4685build_os=$* 4686IFS=$ac_save_IFS 4687case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4688 4689 4690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4691$as_echo_n "checking host system type... " >&6; } 4692if ${ac_cv_host+:} false; then : 4693 $as_echo_n "(cached) " >&6 4694else 4695 if test "x$host_alias" = x; then 4696 ac_cv_host=$ac_cv_build 4697else 4698 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4699 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4700fi 4701 4702fi 4703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4704$as_echo "$ac_cv_host" >&6; } 4705case $ac_cv_host in 4706*-*-*) ;; 4707*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4708esac 4709host=$ac_cv_host 4710ac_save_IFS=$IFS; IFS='-' 4711set x $ac_cv_host 4712shift 4713host_cpu=$1 4714host_vendor=$2 4715shift; shift 4716# Remember, the first character of IFS is used to create $*, 4717# except with old shells: 4718host_os=$* 4719IFS=$ac_save_IFS 4720case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4721 4722 4723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4724$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4725if ${ac_cv_path_SED+:} false; then : 4726 $as_echo_n "(cached) " >&6 4727else 4728 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4729 for ac_i in 1 2 3 4 5 6 7; do 4730 ac_script="$ac_script$as_nl$ac_script" 4731 done 4732 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4733 { ac_script=; unset ac_script;} 4734 if test -z "$SED"; then 4735 ac_path_SED_found=false 4736 # Loop through the user's path and test for each of PROGNAME-LIST 4737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4738for as_dir in $PATH 4739do 4740 IFS=$as_save_IFS 4741 test -z "$as_dir" && as_dir=. 4742 for ac_prog in sed gsed; do 4743 for ac_exec_ext in '' $ac_executable_extensions; do 4744 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4745 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4746# Check for GNU ac_path_SED and select it if it is found. 4747 # Check for GNU $ac_path_SED 4748case `"$ac_path_SED" --version 2>&1` in 4749*GNU*) 4750 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4751*) 4752 ac_count=0 4753 $as_echo_n 0123456789 >"conftest.in" 4754 while : 4755 do 4756 cat "conftest.in" "conftest.in" >"conftest.tmp" 4757 mv "conftest.tmp" "conftest.in" 4758 cp "conftest.in" "conftest.nl" 4759 $as_echo '' >> "conftest.nl" 4760 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4761 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4762 as_fn_arith $ac_count + 1 && ac_count=$as_val 4763 if test $ac_count -gt ${ac_path_SED_max-0}; then 4764 # Best one so far, save it but keep looking for a better one 4765 ac_cv_path_SED="$ac_path_SED" 4766 ac_path_SED_max=$ac_count 4767 fi 4768 # 10*(2^10) chars as input seems more than enough 4769 test $ac_count -gt 10 && break 4770 done 4771 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4772esac 4773 4774 $ac_path_SED_found && break 3 4775 done 4776 done 4777 done 4778IFS=$as_save_IFS 4779 if test -z "$ac_cv_path_SED"; then 4780 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4781 fi 4782else 4783 ac_cv_path_SED=$SED 4784fi 4785 4786fi 4787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4788$as_echo "$ac_cv_path_SED" >&6; } 4789 SED="$ac_cv_path_SED" 4790 rm -f conftest.sed 4791 4792 4793 4794 4795 4796 4797# Check whether --enable-selective-werror was given. 4798if test "${enable_selective_werror+set}" = set; then : 4799 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4800else 4801 SELECTIVE_WERROR=yes 4802fi 4803 4804 4805 4806 4807 4808# -v is too short to test reliably with XORG_TESTSET_CFLAG 4809if test "x$SUNCC" = "xyes"; then 4810 BASE_CFLAGS="-v" 4811else 4812 BASE_CFLAGS="" 4813fi 4814 4815# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829xorg_testset_save_CFLAGS="$CFLAGS" 4830 4831if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4832 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4834$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4835if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4836 $as_echo_n "(cached) " >&6 4837else 4838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4839/* end confdefs.h. */ 4840int i; 4841_ACEOF 4842if ac_fn_c_try_compile "$LINENO"; then : 4843 xorg_cv_cc_flag_unknown_warning_option=yes 4844else 4845 xorg_cv_cc_flag_unknown_warning_option=no 4846fi 4847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4848fi 4849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4850$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4851 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4852 CFLAGS="$xorg_testset_save_CFLAGS" 4853fi 4854 4855if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4856 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4857 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4858 fi 4859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4861$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4862if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4863 $as_echo_n "(cached) " >&6 4864else 4865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4866/* end confdefs.h. */ 4867int i; 4868_ACEOF 4869if ac_fn_c_try_compile "$LINENO"; then : 4870 xorg_cv_cc_flag_unused_command_line_argument=yes 4871else 4872 xorg_cv_cc_flag_unused_command_line_argument=no 4873fi 4874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4875fi 4876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4877$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4878 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4879 CFLAGS="$xorg_testset_save_CFLAGS" 4880fi 4881 4882found="no" 4883 4884 if test $found = "no" ; then 4885 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4886 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4887 fi 4888 4889 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4890 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4891 fi 4892 4893 CFLAGS="$CFLAGS -Wall" 4894 4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4896$as_echo_n "checking if $CC supports -Wall... " >&6; } 4897 cacheid=xorg_cv_cc_flag__Wall 4898 if eval \${$cacheid+:} false; then : 4899 $as_echo_n "(cached) " >&6 4900else 4901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4902/* end confdefs.h. */ 4903int i; 4904int 4905main () 4906{ 4907 4908 ; 4909 return 0; 4910} 4911_ACEOF 4912if ac_fn_c_try_link "$LINENO"; then : 4913 eval $cacheid=yes 4914else 4915 eval $cacheid=no 4916fi 4917rm -f core conftest.err conftest.$ac_objext \ 4918 conftest$ac_exeext conftest.$ac_ext 4919fi 4920 4921 4922 CFLAGS="$xorg_testset_save_CFLAGS" 4923 4924 eval supported=\$$cacheid 4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4926$as_echo "$supported" >&6; } 4927 if test "$supported" = "yes" ; then 4928 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4929 found="yes" 4930 fi 4931 fi 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947xorg_testset_save_CFLAGS="$CFLAGS" 4948 4949if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4950 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4952$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4953if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4954 $as_echo_n "(cached) " >&6 4955else 4956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4957/* end confdefs.h. */ 4958int i; 4959_ACEOF 4960if ac_fn_c_try_compile "$LINENO"; then : 4961 xorg_cv_cc_flag_unknown_warning_option=yes 4962else 4963 xorg_cv_cc_flag_unknown_warning_option=no 4964fi 4965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4966fi 4967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4968$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4969 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4970 CFLAGS="$xorg_testset_save_CFLAGS" 4971fi 4972 4973if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4974 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4975 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4976 fi 4977 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4979$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4980if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4981 $as_echo_n "(cached) " >&6 4982else 4983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4984/* end confdefs.h. */ 4985int i; 4986_ACEOF 4987if ac_fn_c_try_compile "$LINENO"; then : 4988 xorg_cv_cc_flag_unused_command_line_argument=yes 4989else 4990 xorg_cv_cc_flag_unused_command_line_argument=no 4991fi 4992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4993fi 4994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4995$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4996 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4997 CFLAGS="$xorg_testset_save_CFLAGS" 4998fi 4999 5000found="no" 5001 5002 if test $found = "no" ; then 5003 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5004 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5005 fi 5006 5007 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5009 fi 5010 5011 CFLAGS="$CFLAGS -Wpointer-arith" 5012 5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5014$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 5015 cacheid=xorg_cv_cc_flag__Wpointer_arith 5016 if eval \${$cacheid+:} false; then : 5017 $as_echo_n "(cached) " >&6 5018else 5019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5020/* end confdefs.h. */ 5021int i; 5022int 5023main () 5024{ 5025 5026 ; 5027 return 0; 5028} 5029_ACEOF 5030if ac_fn_c_try_link "$LINENO"; then : 5031 eval $cacheid=yes 5032else 5033 eval $cacheid=no 5034fi 5035rm -f core conftest.err conftest.$ac_objext \ 5036 conftest$ac_exeext conftest.$ac_ext 5037fi 5038 5039 5040 CFLAGS="$xorg_testset_save_CFLAGS" 5041 5042 eval supported=\$$cacheid 5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5044$as_echo "$supported" >&6; } 5045 if test "$supported" = "yes" ; then 5046 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5047 found="yes" 5048 fi 5049 fi 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065xorg_testset_save_CFLAGS="$CFLAGS" 5066 5067if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5068 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5070$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5071if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5072 $as_echo_n "(cached) " >&6 5073else 5074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5075/* end confdefs.h. */ 5076int i; 5077_ACEOF 5078if ac_fn_c_try_compile "$LINENO"; then : 5079 xorg_cv_cc_flag_unknown_warning_option=yes 5080else 5081 xorg_cv_cc_flag_unknown_warning_option=no 5082fi 5083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5084fi 5085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5086$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5087 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5088 CFLAGS="$xorg_testset_save_CFLAGS" 5089fi 5090 5091if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5092 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5093 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5094 fi 5095 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5097$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5098if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5099 $as_echo_n "(cached) " >&6 5100else 5101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5102/* end confdefs.h. */ 5103int i; 5104_ACEOF 5105if ac_fn_c_try_compile "$LINENO"; then : 5106 xorg_cv_cc_flag_unused_command_line_argument=yes 5107else 5108 xorg_cv_cc_flag_unused_command_line_argument=no 5109fi 5110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5111fi 5112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5113$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5114 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5115 CFLAGS="$xorg_testset_save_CFLAGS" 5116fi 5117 5118found="no" 5119 5120 if test $found = "no" ; then 5121 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5122 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5123 fi 5124 5125 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5126 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5127 fi 5128 5129 CFLAGS="$CFLAGS -Wmissing-declarations" 5130 5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5132$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 5133 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5134 if eval \${$cacheid+:} false; then : 5135 $as_echo_n "(cached) " >&6 5136else 5137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5138/* end confdefs.h. */ 5139int i; 5140int 5141main () 5142{ 5143 5144 ; 5145 return 0; 5146} 5147_ACEOF 5148if ac_fn_c_try_link "$LINENO"; then : 5149 eval $cacheid=yes 5150else 5151 eval $cacheid=no 5152fi 5153rm -f core conftest.err conftest.$ac_objext \ 5154 conftest$ac_exeext conftest.$ac_ext 5155fi 5156 5157 5158 CFLAGS="$xorg_testset_save_CFLAGS" 5159 5160 eval supported=\$$cacheid 5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5162$as_echo "$supported" >&6; } 5163 if test "$supported" = "yes" ; then 5164 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5165 found="yes" 5166 fi 5167 fi 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183xorg_testset_save_CFLAGS="$CFLAGS" 5184 5185if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5186 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5188$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5189if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5190 $as_echo_n "(cached) " >&6 5191else 5192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5193/* end confdefs.h. */ 5194int i; 5195_ACEOF 5196if ac_fn_c_try_compile "$LINENO"; then : 5197 xorg_cv_cc_flag_unknown_warning_option=yes 5198else 5199 xorg_cv_cc_flag_unknown_warning_option=no 5200fi 5201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5202fi 5203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5204$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5205 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5206 CFLAGS="$xorg_testset_save_CFLAGS" 5207fi 5208 5209if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5210 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5211 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5212 fi 5213 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5215$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5216if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5217 $as_echo_n "(cached) " >&6 5218else 5219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5220/* end confdefs.h. */ 5221int i; 5222_ACEOF 5223if ac_fn_c_try_compile "$LINENO"; then : 5224 xorg_cv_cc_flag_unused_command_line_argument=yes 5225else 5226 xorg_cv_cc_flag_unused_command_line_argument=no 5227fi 5228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5229fi 5230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5231$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5232 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5233 CFLAGS="$xorg_testset_save_CFLAGS" 5234fi 5235 5236found="no" 5237 5238 if test $found = "no" ; then 5239 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5240 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5241 fi 5242 5243 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5244 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5245 fi 5246 5247 CFLAGS="$CFLAGS -Wformat=2" 5248 5249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5250$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5251 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh` 5252 if eval \${$cacheid+:} false; then : 5253 $as_echo_n "(cached) " >&6 5254else 5255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5256/* end confdefs.h. */ 5257int i; 5258int 5259main () 5260{ 5261 5262 ; 5263 return 0; 5264} 5265_ACEOF 5266if ac_fn_c_try_link "$LINENO"; then : 5267 eval $cacheid=yes 5268else 5269 eval $cacheid=no 5270fi 5271rm -f core conftest.err conftest.$ac_objext \ 5272 conftest$ac_exeext conftest.$ac_ext 5273fi 5274 5275 5276 CFLAGS="$xorg_testset_save_CFLAGS" 5277 5278 eval supported=\$$cacheid 5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5280$as_echo "$supported" >&6; } 5281 if test "$supported" = "yes" ; then 5282 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5283 found="yes" 5284 fi 5285 fi 5286 5287 if test $found = "no" ; then 5288 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5289 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5290 fi 5291 5292 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5293 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5294 fi 5295 5296 CFLAGS="$CFLAGS -Wformat" 5297 5298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5299$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5300 cacheid=xorg_cv_cc_flag__Wformat 5301 if eval \${$cacheid+:} false; then : 5302 $as_echo_n "(cached) " >&6 5303else 5304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5305/* end confdefs.h. */ 5306int i; 5307int 5308main () 5309{ 5310 5311 ; 5312 return 0; 5313} 5314_ACEOF 5315if ac_fn_c_try_link "$LINENO"; then : 5316 eval $cacheid=yes 5317else 5318 eval $cacheid=no 5319fi 5320rm -f core conftest.err conftest.$ac_objext \ 5321 conftest$ac_exeext conftest.$ac_ext 5322fi 5323 5324 5325 CFLAGS="$xorg_testset_save_CFLAGS" 5326 5327 eval supported=\$$cacheid 5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5329$as_echo "$supported" >&6; } 5330 if test "$supported" = "yes" ; then 5331 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5332 found="yes" 5333 fi 5334 fi 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352xorg_testset_save_CFLAGS="$CFLAGS" 5353 5354if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5355 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5357$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5358if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5359 $as_echo_n "(cached) " >&6 5360else 5361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5362/* end confdefs.h. */ 5363int i; 5364_ACEOF 5365if ac_fn_c_try_compile "$LINENO"; then : 5366 xorg_cv_cc_flag_unknown_warning_option=yes 5367else 5368 xorg_cv_cc_flag_unknown_warning_option=no 5369fi 5370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5371fi 5372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5373$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5374 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5375 CFLAGS="$xorg_testset_save_CFLAGS" 5376fi 5377 5378if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5379 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5380 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5381 fi 5382 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5384$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5385if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5386 $as_echo_n "(cached) " >&6 5387else 5388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5389/* end confdefs.h. */ 5390int i; 5391_ACEOF 5392if ac_fn_c_try_compile "$LINENO"; then : 5393 xorg_cv_cc_flag_unused_command_line_argument=yes 5394else 5395 xorg_cv_cc_flag_unused_command_line_argument=no 5396fi 5397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5398fi 5399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5400$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5401 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5402 CFLAGS="$xorg_testset_save_CFLAGS" 5403fi 5404 5405found="no" 5406 5407 if test $found = "no" ; then 5408 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5409 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5410 fi 5411 5412 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5413 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5414 fi 5415 5416 CFLAGS="$CFLAGS -Wstrict-prototypes" 5417 5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5419$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5420 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5421 if eval \${$cacheid+:} false; then : 5422 $as_echo_n "(cached) " >&6 5423else 5424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5425/* end confdefs.h. */ 5426int i; 5427int 5428main () 5429{ 5430 5431 ; 5432 return 0; 5433} 5434_ACEOF 5435if ac_fn_c_try_link "$LINENO"; then : 5436 eval $cacheid=yes 5437else 5438 eval $cacheid=no 5439fi 5440rm -f core conftest.err conftest.$ac_objext \ 5441 conftest$ac_exeext conftest.$ac_ext 5442fi 5443 5444 5445 CFLAGS="$xorg_testset_save_CFLAGS" 5446 5447 eval supported=\$$cacheid 5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5449$as_echo "$supported" >&6; } 5450 if test "$supported" = "yes" ; then 5451 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5452 found="yes" 5453 fi 5454 fi 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470xorg_testset_save_CFLAGS="$CFLAGS" 5471 5472if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5473 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5475$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5476if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5477 $as_echo_n "(cached) " >&6 5478else 5479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5480/* end confdefs.h. */ 5481int i; 5482_ACEOF 5483if ac_fn_c_try_compile "$LINENO"; then : 5484 xorg_cv_cc_flag_unknown_warning_option=yes 5485else 5486 xorg_cv_cc_flag_unknown_warning_option=no 5487fi 5488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5489fi 5490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5491$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5492 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5493 CFLAGS="$xorg_testset_save_CFLAGS" 5494fi 5495 5496if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5497 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5498 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5499 fi 5500 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5502$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5503if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5504 $as_echo_n "(cached) " >&6 5505else 5506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5507/* end confdefs.h. */ 5508int i; 5509_ACEOF 5510if ac_fn_c_try_compile "$LINENO"; then : 5511 xorg_cv_cc_flag_unused_command_line_argument=yes 5512else 5513 xorg_cv_cc_flag_unused_command_line_argument=no 5514fi 5515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5516fi 5517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5518$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5519 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5520 CFLAGS="$xorg_testset_save_CFLAGS" 5521fi 5522 5523found="no" 5524 5525 if test $found = "no" ; then 5526 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5527 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5528 fi 5529 5530 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5532 fi 5533 5534 CFLAGS="$CFLAGS -Wmissing-prototypes" 5535 5536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5537$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5538 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5539 if eval \${$cacheid+:} false; then : 5540 $as_echo_n "(cached) " >&6 5541else 5542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5543/* end confdefs.h. */ 5544int i; 5545int 5546main () 5547{ 5548 5549 ; 5550 return 0; 5551} 5552_ACEOF 5553if ac_fn_c_try_link "$LINENO"; then : 5554 eval $cacheid=yes 5555else 5556 eval $cacheid=no 5557fi 5558rm -f core conftest.err conftest.$ac_objext \ 5559 conftest$ac_exeext conftest.$ac_ext 5560fi 5561 5562 5563 CFLAGS="$xorg_testset_save_CFLAGS" 5564 5565 eval supported=\$$cacheid 5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5567$as_echo "$supported" >&6; } 5568 if test "$supported" = "yes" ; then 5569 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5570 found="yes" 5571 fi 5572 fi 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588xorg_testset_save_CFLAGS="$CFLAGS" 5589 5590if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5591 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5593$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5594if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5595 $as_echo_n "(cached) " >&6 5596else 5597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5598/* end confdefs.h. */ 5599int i; 5600_ACEOF 5601if ac_fn_c_try_compile "$LINENO"; then : 5602 xorg_cv_cc_flag_unknown_warning_option=yes 5603else 5604 xorg_cv_cc_flag_unknown_warning_option=no 5605fi 5606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5607fi 5608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5609$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5610 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5611 CFLAGS="$xorg_testset_save_CFLAGS" 5612fi 5613 5614if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5615 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5616 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5617 fi 5618 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5620$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5621if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5622 $as_echo_n "(cached) " >&6 5623else 5624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5625/* end confdefs.h. */ 5626int i; 5627_ACEOF 5628if ac_fn_c_try_compile "$LINENO"; then : 5629 xorg_cv_cc_flag_unused_command_line_argument=yes 5630else 5631 xorg_cv_cc_flag_unused_command_line_argument=no 5632fi 5633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5634fi 5635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5636$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5637 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5638 CFLAGS="$xorg_testset_save_CFLAGS" 5639fi 5640 5641found="no" 5642 5643 if test $found = "no" ; then 5644 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5645 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5646 fi 5647 5648 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5649 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5650 fi 5651 5652 CFLAGS="$CFLAGS -Wnested-externs" 5653 5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5655$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5656 cacheid=xorg_cv_cc_flag__Wnested_externs 5657 if eval \${$cacheid+:} false; then : 5658 $as_echo_n "(cached) " >&6 5659else 5660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5661/* end confdefs.h. */ 5662int i; 5663int 5664main () 5665{ 5666 5667 ; 5668 return 0; 5669} 5670_ACEOF 5671if ac_fn_c_try_link "$LINENO"; then : 5672 eval $cacheid=yes 5673else 5674 eval $cacheid=no 5675fi 5676rm -f core conftest.err conftest.$ac_objext \ 5677 conftest$ac_exeext conftest.$ac_ext 5678fi 5679 5680 5681 CFLAGS="$xorg_testset_save_CFLAGS" 5682 5683 eval supported=\$$cacheid 5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5685$as_echo "$supported" >&6; } 5686 if test "$supported" = "yes" ; then 5687 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5688 found="yes" 5689 fi 5690 fi 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706xorg_testset_save_CFLAGS="$CFLAGS" 5707 5708if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5709 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5711$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5712if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5713 $as_echo_n "(cached) " >&6 5714else 5715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5716/* end confdefs.h. */ 5717int i; 5718_ACEOF 5719if ac_fn_c_try_compile "$LINENO"; then : 5720 xorg_cv_cc_flag_unknown_warning_option=yes 5721else 5722 xorg_cv_cc_flag_unknown_warning_option=no 5723fi 5724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5725fi 5726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5727$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5728 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5729 CFLAGS="$xorg_testset_save_CFLAGS" 5730fi 5731 5732if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5733 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5734 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5735 fi 5736 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5738$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5739if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5740 $as_echo_n "(cached) " >&6 5741else 5742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5743/* end confdefs.h. */ 5744int i; 5745_ACEOF 5746if ac_fn_c_try_compile "$LINENO"; then : 5747 xorg_cv_cc_flag_unused_command_line_argument=yes 5748else 5749 xorg_cv_cc_flag_unused_command_line_argument=no 5750fi 5751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5752fi 5753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5754$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5755 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5756 CFLAGS="$xorg_testset_save_CFLAGS" 5757fi 5758 5759found="no" 5760 5761 if test $found = "no" ; then 5762 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5763 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5764 fi 5765 5766 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5767 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5768 fi 5769 5770 CFLAGS="$CFLAGS -Wbad-function-cast" 5771 5772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5773$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5774 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5775 if eval \${$cacheid+:} false; then : 5776 $as_echo_n "(cached) " >&6 5777else 5778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5779/* end confdefs.h. */ 5780int i; 5781int 5782main () 5783{ 5784 5785 ; 5786 return 0; 5787} 5788_ACEOF 5789if ac_fn_c_try_link "$LINENO"; then : 5790 eval $cacheid=yes 5791else 5792 eval $cacheid=no 5793fi 5794rm -f core conftest.err conftest.$ac_objext \ 5795 conftest$ac_exeext conftest.$ac_ext 5796fi 5797 5798 5799 CFLAGS="$xorg_testset_save_CFLAGS" 5800 5801 eval supported=\$$cacheid 5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5803$as_echo "$supported" >&6; } 5804 if test "$supported" = "yes" ; then 5805 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5806 found="yes" 5807 fi 5808 fi 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824xorg_testset_save_CFLAGS="$CFLAGS" 5825 5826if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5827 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5829$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5830if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5831 $as_echo_n "(cached) " >&6 5832else 5833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5834/* end confdefs.h. */ 5835int i; 5836_ACEOF 5837if ac_fn_c_try_compile "$LINENO"; then : 5838 xorg_cv_cc_flag_unknown_warning_option=yes 5839else 5840 xorg_cv_cc_flag_unknown_warning_option=no 5841fi 5842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5843fi 5844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5845$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5846 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5847 CFLAGS="$xorg_testset_save_CFLAGS" 5848fi 5849 5850if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5851 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5852 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5853 fi 5854 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5856$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5857if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5858 $as_echo_n "(cached) " >&6 5859else 5860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5861/* end confdefs.h. */ 5862int i; 5863_ACEOF 5864if ac_fn_c_try_compile "$LINENO"; then : 5865 xorg_cv_cc_flag_unused_command_line_argument=yes 5866else 5867 xorg_cv_cc_flag_unused_command_line_argument=no 5868fi 5869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5870fi 5871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5872$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5873 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5874 CFLAGS="$xorg_testset_save_CFLAGS" 5875fi 5876 5877found="no" 5878 5879 if test $found = "no" ; then 5880 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5881 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5882 fi 5883 5884 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5885 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5886 fi 5887 5888 CFLAGS="$CFLAGS -Wold-style-definition" 5889 5890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5891$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5892 cacheid=xorg_cv_cc_flag__Wold_style_definition 5893 if eval \${$cacheid+:} false; then : 5894 $as_echo_n "(cached) " >&6 5895else 5896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5897/* end confdefs.h. */ 5898int i; 5899int 5900main () 5901{ 5902 5903 ; 5904 return 0; 5905} 5906_ACEOF 5907if ac_fn_c_try_link "$LINENO"; then : 5908 eval $cacheid=yes 5909else 5910 eval $cacheid=no 5911fi 5912rm -f core conftest.err conftest.$ac_objext \ 5913 conftest$ac_exeext conftest.$ac_ext 5914fi 5915 5916 5917 CFLAGS="$xorg_testset_save_CFLAGS" 5918 5919 eval supported=\$$cacheid 5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5921$as_echo "$supported" >&6; } 5922 if test "$supported" = "yes" ; then 5923 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5924 found="yes" 5925 fi 5926 fi 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942xorg_testset_save_CFLAGS="$CFLAGS" 5943 5944if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5945 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5947$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5948if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5949 $as_echo_n "(cached) " >&6 5950else 5951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5952/* end confdefs.h. */ 5953int i; 5954_ACEOF 5955if ac_fn_c_try_compile "$LINENO"; then : 5956 xorg_cv_cc_flag_unknown_warning_option=yes 5957else 5958 xorg_cv_cc_flag_unknown_warning_option=no 5959fi 5960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5961fi 5962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5963$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5964 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5965 CFLAGS="$xorg_testset_save_CFLAGS" 5966fi 5967 5968if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5969 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5970 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5971 fi 5972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5974$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5975if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5976 $as_echo_n "(cached) " >&6 5977else 5978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5979/* end confdefs.h. */ 5980int i; 5981_ACEOF 5982if ac_fn_c_try_compile "$LINENO"; then : 5983 xorg_cv_cc_flag_unused_command_line_argument=yes 5984else 5985 xorg_cv_cc_flag_unused_command_line_argument=no 5986fi 5987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5988fi 5989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5990$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5991 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5992 CFLAGS="$xorg_testset_save_CFLAGS" 5993fi 5994 5995found="no" 5996 5997 if test $found = "no" ; then 5998 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5999 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6000 fi 6001 6002 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6004 fi 6005 6006 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6007 6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6009$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6010 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6011 if eval \${$cacheid+:} false; then : 6012 $as_echo_n "(cached) " >&6 6013else 6014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6015/* end confdefs.h. */ 6016int i; 6017int 6018main () 6019{ 6020 6021 ; 6022 return 0; 6023} 6024_ACEOF 6025if ac_fn_c_try_link "$LINENO"; then : 6026 eval $cacheid=yes 6027else 6028 eval $cacheid=no 6029fi 6030rm -f core conftest.err conftest.$ac_objext \ 6031 conftest$ac_exeext conftest.$ac_ext 6032fi 6033 6034 6035 CFLAGS="$xorg_testset_save_CFLAGS" 6036 6037 eval supported=\$$cacheid 6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6039$as_echo "$supported" >&6; } 6040 if test "$supported" = "yes" ; then 6041 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6042 found="yes" 6043 fi 6044 fi 6045 6046 6047 6048 6049 6050# This chunk adds additional warnings that could catch undesired effects. 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064xorg_testset_save_CFLAGS="$CFLAGS" 6065 6066if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6067 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6069$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6070if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6071 $as_echo_n "(cached) " >&6 6072else 6073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6074/* end confdefs.h. */ 6075int i; 6076_ACEOF 6077if ac_fn_c_try_compile "$LINENO"; then : 6078 xorg_cv_cc_flag_unknown_warning_option=yes 6079else 6080 xorg_cv_cc_flag_unknown_warning_option=no 6081fi 6082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6083fi 6084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6085$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6086 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6087 CFLAGS="$xorg_testset_save_CFLAGS" 6088fi 6089 6090if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6091 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6092 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6093 fi 6094 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6096$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6097if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6098 $as_echo_n "(cached) " >&6 6099else 6100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6101/* end confdefs.h. */ 6102int i; 6103_ACEOF 6104if ac_fn_c_try_compile "$LINENO"; then : 6105 xorg_cv_cc_flag_unused_command_line_argument=yes 6106else 6107 xorg_cv_cc_flag_unused_command_line_argument=no 6108fi 6109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6110fi 6111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6112$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6113 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6114 CFLAGS="$xorg_testset_save_CFLAGS" 6115fi 6116 6117found="no" 6118 6119 if test $found = "no" ; then 6120 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6121 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6122 fi 6123 6124 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6125 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6126 fi 6127 6128 CFLAGS="$CFLAGS -Wunused" 6129 6130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6131$as_echo_n "checking if $CC supports -Wunused... " >&6; } 6132 cacheid=xorg_cv_cc_flag__Wunused 6133 if eval \${$cacheid+:} false; then : 6134 $as_echo_n "(cached) " >&6 6135else 6136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6137/* end confdefs.h. */ 6138int i; 6139int 6140main () 6141{ 6142 6143 ; 6144 return 0; 6145} 6146_ACEOF 6147if ac_fn_c_try_link "$LINENO"; then : 6148 eval $cacheid=yes 6149else 6150 eval $cacheid=no 6151fi 6152rm -f core conftest.err conftest.$ac_objext \ 6153 conftest$ac_exeext conftest.$ac_ext 6154fi 6155 6156 6157 CFLAGS="$xorg_testset_save_CFLAGS" 6158 6159 eval supported=\$$cacheid 6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6161$as_echo "$supported" >&6; } 6162 if test "$supported" = "yes" ; then 6163 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6164 found="yes" 6165 fi 6166 fi 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182xorg_testset_save_CFLAGS="$CFLAGS" 6183 6184if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6185 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6187$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6188if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6189 $as_echo_n "(cached) " >&6 6190else 6191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6192/* end confdefs.h. */ 6193int i; 6194_ACEOF 6195if ac_fn_c_try_compile "$LINENO"; then : 6196 xorg_cv_cc_flag_unknown_warning_option=yes 6197else 6198 xorg_cv_cc_flag_unknown_warning_option=no 6199fi 6200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6201fi 6202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6203$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6204 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6205 CFLAGS="$xorg_testset_save_CFLAGS" 6206fi 6207 6208if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6209 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6210 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6211 fi 6212 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6214$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6215if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6216 $as_echo_n "(cached) " >&6 6217else 6218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6219/* end confdefs.h. */ 6220int i; 6221_ACEOF 6222if ac_fn_c_try_compile "$LINENO"; then : 6223 xorg_cv_cc_flag_unused_command_line_argument=yes 6224else 6225 xorg_cv_cc_flag_unused_command_line_argument=no 6226fi 6227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6228fi 6229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6230$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6231 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6232 CFLAGS="$xorg_testset_save_CFLAGS" 6233fi 6234 6235found="no" 6236 6237 if test $found = "no" ; then 6238 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6239 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6240 fi 6241 6242 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6243 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6244 fi 6245 6246 CFLAGS="$CFLAGS -Wuninitialized" 6247 6248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6249$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6250 cacheid=xorg_cv_cc_flag__Wuninitialized 6251 if eval \${$cacheid+:} false; then : 6252 $as_echo_n "(cached) " >&6 6253else 6254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6255/* end confdefs.h. */ 6256int i; 6257int 6258main () 6259{ 6260 6261 ; 6262 return 0; 6263} 6264_ACEOF 6265if ac_fn_c_try_link "$LINENO"; then : 6266 eval $cacheid=yes 6267else 6268 eval $cacheid=no 6269fi 6270rm -f core conftest.err conftest.$ac_objext \ 6271 conftest$ac_exeext conftest.$ac_ext 6272fi 6273 6274 6275 CFLAGS="$xorg_testset_save_CFLAGS" 6276 6277 eval supported=\$$cacheid 6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6279$as_echo "$supported" >&6; } 6280 if test "$supported" = "yes" ; then 6281 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6282 found="yes" 6283 fi 6284 fi 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300xorg_testset_save_CFLAGS="$CFLAGS" 6301 6302if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6303 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6305$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6306if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6307 $as_echo_n "(cached) " >&6 6308else 6309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6310/* end confdefs.h. */ 6311int i; 6312_ACEOF 6313if ac_fn_c_try_compile "$LINENO"; then : 6314 xorg_cv_cc_flag_unknown_warning_option=yes 6315else 6316 xorg_cv_cc_flag_unknown_warning_option=no 6317fi 6318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6319fi 6320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6321$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6322 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6323 CFLAGS="$xorg_testset_save_CFLAGS" 6324fi 6325 6326if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6327 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6328 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6329 fi 6330 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6332$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6333if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6334 $as_echo_n "(cached) " >&6 6335else 6336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6337/* end confdefs.h. */ 6338int i; 6339_ACEOF 6340if ac_fn_c_try_compile "$LINENO"; then : 6341 xorg_cv_cc_flag_unused_command_line_argument=yes 6342else 6343 xorg_cv_cc_flag_unused_command_line_argument=no 6344fi 6345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6346fi 6347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6348$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6349 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6350 CFLAGS="$xorg_testset_save_CFLAGS" 6351fi 6352 6353found="no" 6354 6355 if test $found = "no" ; then 6356 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6357 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6358 fi 6359 6360 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6361 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6362 fi 6363 6364 CFLAGS="$CFLAGS -Wshadow" 6365 6366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6367$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6368 cacheid=xorg_cv_cc_flag__Wshadow 6369 if eval \${$cacheid+:} false; then : 6370 $as_echo_n "(cached) " >&6 6371else 6372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6373/* end confdefs.h. */ 6374int i; 6375int 6376main () 6377{ 6378 6379 ; 6380 return 0; 6381} 6382_ACEOF 6383if ac_fn_c_try_link "$LINENO"; then : 6384 eval $cacheid=yes 6385else 6386 eval $cacheid=no 6387fi 6388rm -f core conftest.err conftest.$ac_objext \ 6389 conftest$ac_exeext conftest.$ac_ext 6390fi 6391 6392 6393 CFLAGS="$xorg_testset_save_CFLAGS" 6394 6395 eval supported=\$$cacheid 6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6397$as_echo "$supported" >&6; } 6398 if test "$supported" = "yes" ; then 6399 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6400 found="yes" 6401 fi 6402 fi 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418xorg_testset_save_CFLAGS="$CFLAGS" 6419 6420if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6421 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6423$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6424if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6425 $as_echo_n "(cached) " >&6 6426else 6427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6428/* end confdefs.h. */ 6429int i; 6430_ACEOF 6431if ac_fn_c_try_compile "$LINENO"; then : 6432 xorg_cv_cc_flag_unknown_warning_option=yes 6433else 6434 xorg_cv_cc_flag_unknown_warning_option=no 6435fi 6436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6437fi 6438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6439$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6440 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6441 CFLAGS="$xorg_testset_save_CFLAGS" 6442fi 6443 6444if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6445 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6446 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6447 fi 6448 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6450$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6451if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6452 $as_echo_n "(cached) " >&6 6453else 6454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6455/* end confdefs.h. */ 6456int i; 6457_ACEOF 6458if ac_fn_c_try_compile "$LINENO"; then : 6459 xorg_cv_cc_flag_unused_command_line_argument=yes 6460else 6461 xorg_cv_cc_flag_unused_command_line_argument=no 6462fi 6463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6464fi 6465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6466$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6467 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6468 CFLAGS="$xorg_testset_save_CFLAGS" 6469fi 6470 6471found="no" 6472 6473 if test $found = "no" ; then 6474 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6475 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6476 fi 6477 6478 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6479 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6480 fi 6481 6482 CFLAGS="$CFLAGS -Wcast-qual" 6483 6484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5 6485$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; } 6486 cacheid=xorg_cv_cc_flag__Wcast_qual 6487 if eval \${$cacheid+:} false; then : 6488 $as_echo_n "(cached) " >&6 6489else 6490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6491/* end confdefs.h. */ 6492int i; 6493int 6494main () 6495{ 6496 6497 ; 6498 return 0; 6499} 6500_ACEOF 6501if ac_fn_c_try_link "$LINENO"; then : 6502 eval $cacheid=yes 6503else 6504 eval $cacheid=no 6505fi 6506rm -f core conftest.err conftest.$ac_objext \ 6507 conftest$ac_exeext conftest.$ac_ext 6508fi 6509 6510 6511 CFLAGS="$xorg_testset_save_CFLAGS" 6512 6513 eval supported=\$$cacheid 6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6515$as_echo "$supported" >&6; } 6516 if test "$supported" = "yes" ; then 6517 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 6518 found="yes" 6519 fi 6520 fi 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536xorg_testset_save_CFLAGS="$CFLAGS" 6537 6538if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6539 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6541$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6542if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6543 $as_echo_n "(cached) " >&6 6544else 6545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6546/* end confdefs.h. */ 6547int i; 6548_ACEOF 6549if ac_fn_c_try_compile "$LINENO"; then : 6550 xorg_cv_cc_flag_unknown_warning_option=yes 6551else 6552 xorg_cv_cc_flag_unknown_warning_option=no 6553fi 6554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6555fi 6556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6557$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6558 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6559 CFLAGS="$xorg_testset_save_CFLAGS" 6560fi 6561 6562if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6563 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6564 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6565 fi 6566 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6568$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6569if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6570 $as_echo_n "(cached) " >&6 6571else 6572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6573/* end confdefs.h. */ 6574int i; 6575_ACEOF 6576if ac_fn_c_try_compile "$LINENO"; then : 6577 xorg_cv_cc_flag_unused_command_line_argument=yes 6578else 6579 xorg_cv_cc_flag_unused_command_line_argument=no 6580fi 6581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6582fi 6583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6584$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6585 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6586 CFLAGS="$xorg_testset_save_CFLAGS" 6587fi 6588 6589found="no" 6590 6591 if test $found = "no" ; then 6592 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6593 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6594 fi 6595 6596 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6597 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6598 fi 6599 6600 CFLAGS="$CFLAGS -Wmissing-noreturn" 6601 6602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6603$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6604 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6605 if eval \${$cacheid+:} false; then : 6606 $as_echo_n "(cached) " >&6 6607else 6608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6609/* end confdefs.h. */ 6610int i; 6611int 6612main () 6613{ 6614 6615 ; 6616 return 0; 6617} 6618_ACEOF 6619if ac_fn_c_try_link "$LINENO"; then : 6620 eval $cacheid=yes 6621else 6622 eval $cacheid=no 6623fi 6624rm -f core conftest.err conftest.$ac_objext \ 6625 conftest$ac_exeext conftest.$ac_ext 6626fi 6627 6628 6629 CFLAGS="$xorg_testset_save_CFLAGS" 6630 6631 eval supported=\$$cacheid 6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6633$as_echo "$supported" >&6; } 6634 if test "$supported" = "yes" ; then 6635 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6636 found="yes" 6637 fi 6638 fi 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654xorg_testset_save_CFLAGS="$CFLAGS" 6655 6656if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6657 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6659$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6660if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6661 $as_echo_n "(cached) " >&6 6662else 6663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6664/* end confdefs.h. */ 6665int i; 6666_ACEOF 6667if ac_fn_c_try_compile "$LINENO"; then : 6668 xorg_cv_cc_flag_unknown_warning_option=yes 6669else 6670 xorg_cv_cc_flag_unknown_warning_option=no 6671fi 6672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6673fi 6674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6675$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6676 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6677 CFLAGS="$xorg_testset_save_CFLAGS" 6678fi 6679 6680if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6681 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6682 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6683 fi 6684 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6686$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6687if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6688 $as_echo_n "(cached) " >&6 6689else 6690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6691/* end confdefs.h. */ 6692int i; 6693_ACEOF 6694if ac_fn_c_try_compile "$LINENO"; then : 6695 xorg_cv_cc_flag_unused_command_line_argument=yes 6696else 6697 xorg_cv_cc_flag_unused_command_line_argument=no 6698fi 6699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6700fi 6701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6702$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6703 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6704 CFLAGS="$xorg_testset_save_CFLAGS" 6705fi 6706 6707found="no" 6708 6709 if test $found = "no" ; then 6710 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6711 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6712 fi 6713 6714 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6715 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6716 fi 6717 6718 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6719 6720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6721$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6722 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6723 if eval \${$cacheid+:} false; then : 6724 $as_echo_n "(cached) " >&6 6725else 6726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6727/* end confdefs.h. */ 6728int i; 6729int 6730main () 6731{ 6732 6733 ; 6734 return 0; 6735} 6736_ACEOF 6737if ac_fn_c_try_link "$LINENO"; then : 6738 eval $cacheid=yes 6739else 6740 eval $cacheid=no 6741fi 6742rm -f core conftest.err conftest.$ac_objext \ 6743 conftest$ac_exeext conftest.$ac_ext 6744fi 6745 6746 6747 CFLAGS="$xorg_testset_save_CFLAGS" 6748 6749 eval supported=\$$cacheid 6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6751$as_echo "$supported" >&6; } 6752 if test "$supported" = "yes" ; then 6753 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6754 found="yes" 6755 fi 6756 fi 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772xorg_testset_save_CFLAGS="$CFLAGS" 6773 6774if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6775 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6777$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6778if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6779 $as_echo_n "(cached) " >&6 6780else 6781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6782/* end confdefs.h. */ 6783int i; 6784_ACEOF 6785if ac_fn_c_try_compile "$LINENO"; then : 6786 xorg_cv_cc_flag_unknown_warning_option=yes 6787else 6788 xorg_cv_cc_flag_unknown_warning_option=no 6789fi 6790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6791fi 6792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6793$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6794 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6795 CFLAGS="$xorg_testset_save_CFLAGS" 6796fi 6797 6798if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6799 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6800 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6801 fi 6802 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6804$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6805if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6806 $as_echo_n "(cached) " >&6 6807else 6808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6809/* end confdefs.h. */ 6810int i; 6811_ACEOF 6812if ac_fn_c_try_compile "$LINENO"; then : 6813 xorg_cv_cc_flag_unused_command_line_argument=yes 6814else 6815 xorg_cv_cc_flag_unused_command_line_argument=no 6816fi 6817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6818fi 6819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6820$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6821 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6822 CFLAGS="$xorg_testset_save_CFLAGS" 6823fi 6824 6825found="no" 6826 6827 if test $found = "no" ; then 6828 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6829 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6830 fi 6831 6832 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6833 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6834 fi 6835 6836 CFLAGS="$CFLAGS -Wredundant-decls" 6837 6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6839$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6840 cacheid=xorg_cv_cc_flag__Wredundant_decls 6841 if eval \${$cacheid+:} false; then : 6842 $as_echo_n "(cached) " >&6 6843else 6844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6845/* end confdefs.h. */ 6846int i; 6847int 6848main () 6849{ 6850 6851 ; 6852 return 0; 6853} 6854_ACEOF 6855if ac_fn_c_try_link "$LINENO"; then : 6856 eval $cacheid=yes 6857else 6858 eval $cacheid=no 6859fi 6860rm -f core conftest.err conftest.$ac_objext \ 6861 conftest$ac_exeext conftest.$ac_ext 6862fi 6863 6864 6865 CFLAGS="$xorg_testset_save_CFLAGS" 6866 6867 eval supported=\$$cacheid 6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6869$as_echo "$supported" >&6; } 6870 if test "$supported" = "yes" ; then 6871 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6872 found="yes" 6873 fi 6874 fi 6875 6876 6877 6878# These are currently disabled because they are noisy. They will be enabled 6879# in the future once the codebase is sufficiently modernized to silence 6880# them. For now, I don't want them to drown out the other warnings. 6881# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 6882# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6883# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6884 6885# Turn some warnings into errors, so we don't accidently get successful builds 6886# when there are problems that should be fixed. 6887 6888if test "x$SELECTIVE_WERROR" = "xyes" ; then 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902xorg_testset_save_CFLAGS="$CFLAGS" 6903 6904if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6905 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6907$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6908if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6909 $as_echo_n "(cached) " >&6 6910else 6911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6912/* end confdefs.h. */ 6913int i; 6914_ACEOF 6915if ac_fn_c_try_compile "$LINENO"; then : 6916 xorg_cv_cc_flag_unknown_warning_option=yes 6917else 6918 xorg_cv_cc_flag_unknown_warning_option=no 6919fi 6920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6921fi 6922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6923$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6924 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6925 CFLAGS="$xorg_testset_save_CFLAGS" 6926fi 6927 6928if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6929 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6930 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6931 fi 6932 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6934$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6935if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6936 $as_echo_n "(cached) " >&6 6937else 6938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6939/* end confdefs.h. */ 6940int i; 6941_ACEOF 6942if ac_fn_c_try_compile "$LINENO"; then : 6943 xorg_cv_cc_flag_unused_command_line_argument=yes 6944else 6945 xorg_cv_cc_flag_unused_command_line_argument=no 6946fi 6947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6948fi 6949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6950$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6951 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6952 CFLAGS="$xorg_testset_save_CFLAGS" 6953fi 6954 6955found="no" 6956 6957 if test $found = "no" ; then 6958 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6959 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6960 fi 6961 6962 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6964 fi 6965 6966 CFLAGS="$CFLAGS -Werror=implicit" 6967 6968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6969$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 6970 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh` 6971 if eval \${$cacheid+:} false; then : 6972 $as_echo_n "(cached) " >&6 6973else 6974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6975/* end confdefs.h. */ 6976int i; 6977int 6978main () 6979{ 6980 6981 ; 6982 return 0; 6983} 6984_ACEOF 6985if ac_fn_c_try_link "$LINENO"; then : 6986 eval $cacheid=yes 6987else 6988 eval $cacheid=no 6989fi 6990rm -f core conftest.err conftest.$ac_objext \ 6991 conftest$ac_exeext conftest.$ac_ext 6992fi 6993 6994 6995 CFLAGS="$xorg_testset_save_CFLAGS" 6996 6997 eval supported=\$$cacheid 6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6999$as_echo "$supported" >&6; } 7000 if test "$supported" = "yes" ; then 7001 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7002 found="yes" 7003 fi 7004 fi 7005 7006 if test $found = "no" ; then 7007 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7008 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7009 fi 7010 7011 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7012 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7013 fi 7014 7015 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7016 7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 7018$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7019 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh` 7020 if eval \${$cacheid+:} false; then : 7021 $as_echo_n "(cached) " >&6 7022else 7023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7024/* end confdefs.h. */ 7025int i; 7026int 7027main () 7028{ 7029 7030 ; 7031 return 0; 7032} 7033_ACEOF 7034if ac_fn_c_try_link "$LINENO"; then : 7035 eval $cacheid=yes 7036else 7037 eval $cacheid=no 7038fi 7039rm -f core conftest.err conftest.$ac_objext \ 7040 conftest$ac_exeext conftest.$ac_ext 7041fi 7042 7043 7044 CFLAGS="$xorg_testset_save_CFLAGS" 7045 7046 eval supported=\$$cacheid 7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7048$as_echo "$supported" >&6; } 7049 if test "$supported" = "yes" ; then 7050 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7051 found="yes" 7052 fi 7053 fi 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069xorg_testset_save_CFLAGS="$CFLAGS" 7070 7071if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7072 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7074$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7075if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7076 $as_echo_n "(cached) " >&6 7077else 7078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7079/* end confdefs.h. */ 7080int i; 7081_ACEOF 7082if ac_fn_c_try_compile "$LINENO"; then : 7083 xorg_cv_cc_flag_unknown_warning_option=yes 7084else 7085 xorg_cv_cc_flag_unknown_warning_option=no 7086fi 7087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7088fi 7089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7090$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7091 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7092 CFLAGS="$xorg_testset_save_CFLAGS" 7093fi 7094 7095if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7096 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7097 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7098 fi 7099 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7101$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7102if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7103 $as_echo_n "(cached) " >&6 7104else 7105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7106/* end confdefs.h. */ 7107int i; 7108_ACEOF 7109if ac_fn_c_try_compile "$LINENO"; then : 7110 xorg_cv_cc_flag_unused_command_line_argument=yes 7111else 7112 xorg_cv_cc_flag_unused_command_line_argument=no 7113fi 7114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7115fi 7116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7117$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7118 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7119 CFLAGS="$xorg_testset_save_CFLAGS" 7120fi 7121 7122found="no" 7123 7124 if test $found = "no" ; then 7125 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7126 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7127 fi 7128 7129 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7130 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7131 fi 7132 7133 CFLAGS="$CFLAGS -Werror=nonnull" 7134 7135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7136$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7137 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh` 7138 if eval \${$cacheid+:} false; then : 7139 $as_echo_n "(cached) " >&6 7140else 7141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7142/* end confdefs.h. */ 7143int i; 7144int 7145main () 7146{ 7147 7148 ; 7149 return 0; 7150} 7151_ACEOF 7152if ac_fn_c_try_link "$LINENO"; then : 7153 eval $cacheid=yes 7154else 7155 eval $cacheid=no 7156fi 7157rm -f core conftest.err conftest.$ac_objext \ 7158 conftest$ac_exeext conftest.$ac_ext 7159fi 7160 7161 7162 CFLAGS="$xorg_testset_save_CFLAGS" 7163 7164 eval supported=\$$cacheid 7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7166$as_echo "$supported" >&6; } 7167 if test "$supported" = "yes" ; then 7168 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7169 found="yes" 7170 fi 7171 fi 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187xorg_testset_save_CFLAGS="$CFLAGS" 7188 7189if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7190 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7192$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7193if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7194 $as_echo_n "(cached) " >&6 7195else 7196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7197/* end confdefs.h. */ 7198int i; 7199_ACEOF 7200if ac_fn_c_try_compile "$LINENO"; then : 7201 xorg_cv_cc_flag_unknown_warning_option=yes 7202else 7203 xorg_cv_cc_flag_unknown_warning_option=no 7204fi 7205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7206fi 7207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7208$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7209 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7210 CFLAGS="$xorg_testset_save_CFLAGS" 7211fi 7212 7213if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7214 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7215 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7216 fi 7217 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7219$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7220if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7221 $as_echo_n "(cached) " >&6 7222else 7223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7224/* end confdefs.h. */ 7225int i; 7226_ACEOF 7227if ac_fn_c_try_compile "$LINENO"; then : 7228 xorg_cv_cc_flag_unused_command_line_argument=yes 7229else 7230 xorg_cv_cc_flag_unused_command_line_argument=no 7231fi 7232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7233fi 7234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7235$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7236 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7237 CFLAGS="$xorg_testset_save_CFLAGS" 7238fi 7239 7240found="no" 7241 7242 if test $found = "no" ; then 7243 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7244 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7245 fi 7246 7247 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7249 fi 7250 7251 CFLAGS="$CFLAGS -Werror=init-self" 7252 7253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7254$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7255 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh` 7256 if eval \${$cacheid+:} false; then : 7257 $as_echo_n "(cached) " >&6 7258else 7259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7260/* end confdefs.h. */ 7261int i; 7262int 7263main () 7264{ 7265 7266 ; 7267 return 0; 7268} 7269_ACEOF 7270if ac_fn_c_try_link "$LINENO"; then : 7271 eval $cacheid=yes 7272else 7273 eval $cacheid=no 7274fi 7275rm -f core conftest.err conftest.$ac_objext \ 7276 conftest$ac_exeext conftest.$ac_ext 7277fi 7278 7279 7280 CFLAGS="$xorg_testset_save_CFLAGS" 7281 7282 eval supported=\$$cacheid 7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7284$as_echo "$supported" >&6; } 7285 if test "$supported" = "yes" ; then 7286 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7287 found="yes" 7288 fi 7289 fi 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305xorg_testset_save_CFLAGS="$CFLAGS" 7306 7307if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7308 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7310$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7311if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7312 $as_echo_n "(cached) " >&6 7313else 7314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7315/* end confdefs.h. */ 7316int i; 7317_ACEOF 7318if ac_fn_c_try_compile "$LINENO"; then : 7319 xorg_cv_cc_flag_unknown_warning_option=yes 7320else 7321 xorg_cv_cc_flag_unknown_warning_option=no 7322fi 7323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7324fi 7325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7326$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7327 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7328 CFLAGS="$xorg_testset_save_CFLAGS" 7329fi 7330 7331if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7332 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7333 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7334 fi 7335 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7337$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7338if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7339 $as_echo_n "(cached) " >&6 7340else 7341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7342/* end confdefs.h. */ 7343int i; 7344_ACEOF 7345if ac_fn_c_try_compile "$LINENO"; then : 7346 xorg_cv_cc_flag_unused_command_line_argument=yes 7347else 7348 xorg_cv_cc_flag_unused_command_line_argument=no 7349fi 7350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7351fi 7352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7353$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7354 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7355 CFLAGS="$xorg_testset_save_CFLAGS" 7356fi 7357 7358found="no" 7359 7360 if test $found = "no" ; then 7361 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7362 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7363 fi 7364 7365 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7366 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7367 fi 7368 7369 CFLAGS="$CFLAGS -Werror=main" 7370 7371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7372$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7373 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh` 7374 if eval \${$cacheid+:} false; then : 7375 $as_echo_n "(cached) " >&6 7376else 7377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7378/* end confdefs.h. */ 7379int i; 7380int 7381main () 7382{ 7383 7384 ; 7385 return 0; 7386} 7387_ACEOF 7388if ac_fn_c_try_link "$LINENO"; then : 7389 eval $cacheid=yes 7390else 7391 eval $cacheid=no 7392fi 7393rm -f core conftest.err conftest.$ac_objext \ 7394 conftest$ac_exeext conftest.$ac_ext 7395fi 7396 7397 7398 CFLAGS="$xorg_testset_save_CFLAGS" 7399 7400 eval supported=\$$cacheid 7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7402$as_echo "$supported" >&6; } 7403 if test "$supported" = "yes" ; then 7404 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7405 found="yes" 7406 fi 7407 fi 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423xorg_testset_save_CFLAGS="$CFLAGS" 7424 7425if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7426 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7428$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7429if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7430 $as_echo_n "(cached) " >&6 7431else 7432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7433/* end confdefs.h. */ 7434int i; 7435_ACEOF 7436if ac_fn_c_try_compile "$LINENO"; then : 7437 xorg_cv_cc_flag_unknown_warning_option=yes 7438else 7439 xorg_cv_cc_flag_unknown_warning_option=no 7440fi 7441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7442fi 7443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7444$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7445 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7446 CFLAGS="$xorg_testset_save_CFLAGS" 7447fi 7448 7449if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7450 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7451 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7452 fi 7453 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7455$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7456if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7457 $as_echo_n "(cached) " >&6 7458else 7459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7460/* end confdefs.h. */ 7461int i; 7462_ACEOF 7463if ac_fn_c_try_compile "$LINENO"; then : 7464 xorg_cv_cc_flag_unused_command_line_argument=yes 7465else 7466 xorg_cv_cc_flag_unused_command_line_argument=no 7467fi 7468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7469fi 7470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7471$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7472 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7473 CFLAGS="$xorg_testset_save_CFLAGS" 7474fi 7475 7476found="no" 7477 7478 if test $found = "no" ; then 7479 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7480 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7481 fi 7482 7483 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7484 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7485 fi 7486 7487 CFLAGS="$CFLAGS -Werror=missing-braces" 7488 7489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7490$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7491 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh` 7492 if eval \${$cacheid+:} false; then : 7493 $as_echo_n "(cached) " >&6 7494else 7495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7496/* end confdefs.h. */ 7497int i; 7498int 7499main () 7500{ 7501 7502 ; 7503 return 0; 7504} 7505_ACEOF 7506if ac_fn_c_try_link "$LINENO"; then : 7507 eval $cacheid=yes 7508else 7509 eval $cacheid=no 7510fi 7511rm -f core conftest.err conftest.$ac_objext \ 7512 conftest$ac_exeext conftest.$ac_ext 7513fi 7514 7515 7516 CFLAGS="$xorg_testset_save_CFLAGS" 7517 7518 eval supported=\$$cacheid 7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7520$as_echo "$supported" >&6; } 7521 if test "$supported" = "yes" ; then 7522 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7523 found="yes" 7524 fi 7525 fi 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541xorg_testset_save_CFLAGS="$CFLAGS" 7542 7543if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7544 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7546$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7547if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7548 $as_echo_n "(cached) " >&6 7549else 7550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7551/* end confdefs.h. */ 7552int i; 7553_ACEOF 7554if ac_fn_c_try_compile "$LINENO"; then : 7555 xorg_cv_cc_flag_unknown_warning_option=yes 7556else 7557 xorg_cv_cc_flag_unknown_warning_option=no 7558fi 7559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7560fi 7561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7562$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7563 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7564 CFLAGS="$xorg_testset_save_CFLAGS" 7565fi 7566 7567if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7568 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7569 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7570 fi 7571 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7573$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7574if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7575 $as_echo_n "(cached) " >&6 7576else 7577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7578/* end confdefs.h. */ 7579int i; 7580_ACEOF 7581if ac_fn_c_try_compile "$LINENO"; then : 7582 xorg_cv_cc_flag_unused_command_line_argument=yes 7583else 7584 xorg_cv_cc_flag_unused_command_line_argument=no 7585fi 7586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7587fi 7588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7589$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7590 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7591 CFLAGS="$xorg_testset_save_CFLAGS" 7592fi 7593 7594found="no" 7595 7596 if test $found = "no" ; then 7597 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7598 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7599 fi 7600 7601 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7602 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7603 fi 7604 7605 CFLAGS="$CFLAGS -Werror=sequence-point" 7606 7607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7608$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7609 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh` 7610 if eval \${$cacheid+:} false; then : 7611 $as_echo_n "(cached) " >&6 7612else 7613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7614/* end confdefs.h. */ 7615int i; 7616int 7617main () 7618{ 7619 7620 ; 7621 return 0; 7622} 7623_ACEOF 7624if ac_fn_c_try_link "$LINENO"; then : 7625 eval $cacheid=yes 7626else 7627 eval $cacheid=no 7628fi 7629rm -f core conftest.err conftest.$ac_objext \ 7630 conftest$ac_exeext conftest.$ac_ext 7631fi 7632 7633 7634 CFLAGS="$xorg_testset_save_CFLAGS" 7635 7636 eval supported=\$$cacheid 7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7638$as_echo "$supported" >&6; } 7639 if test "$supported" = "yes" ; then 7640 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7641 found="yes" 7642 fi 7643 fi 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659xorg_testset_save_CFLAGS="$CFLAGS" 7660 7661if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7662 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7664$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7665if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7666 $as_echo_n "(cached) " >&6 7667else 7668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7669/* end confdefs.h. */ 7670int i; 7671_ACEOF 7672if ac_fn_c_try_compile "$LINENO"; then : 7673 xorg_cv_cc_flag_unknown_warning_option=yes 7674else 7675 xorg_cv_cc_flag_unknown_warning_option=no 7676fi 7677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7678fi 7679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7680$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7681 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7682 CFLAGS="$xorg_testset_save_CFLAGS" 7683fi 7684 7685if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7686 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7687 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7688 fi 7689 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7691$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7692if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7693 $as_echo_n "(cached) " >&6 7694else 7695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7696/* end confdefs.h. */ 7697int i; 7698_ACEOF 7699if ac_fn_c_try_compile "$LINENO"; then : 7700 xorg_cv_cc_flag_unused_command_line_argument=yes 7701else 7702 xorg_cv_cc_flag_unused_command_line_argument=no 7703fi 7704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7705fi 7706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7707$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7708 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7709 CFLAGS="$xorg_testset_save_CFLAGS" 7710fi 7711 7712found="no" 7713 7714 if test $found = "no" ; then 7715 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7716 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7717 fi 7718 7719 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7720 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7721 fi 7722 7723 CFLAGS="$CFLAGS -Werror=return-type" 7724 7725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7726$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7727 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh` 7728 if eval \${$cacheid+:} false; then : 7729 $as_echo_n "(cached) " >&6 7730else 7731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7732/* end confdefs.h. */ 7733int i; 7734int 7735main () 7736{ 7737 7738 ; 7739 return 0; 7740} 7741_ACEOF 7742if ac_fn_c_try_link "$LINENO"; then : 7743 eval $cacheid=yes 7744else 7745 eval $cacheid=no 7746fi 7747rm -f core conftest.err conftest.$ac_objext \ 7748 conftest$ac_exeext conftest.$ac_ext 7749fi 7750 7751 7752 CFLAGS="$xorg_testset_save_CFLAGS" 7753 7754 eval supported=\$$cacheid 7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7756$as_echo "$supported" >&6; } 7757 if test "$supported" = "yes" ; then 7758 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7759 found="yes" 7760 fi 7761 fi 7762 7763 if test $found = "no" ; then 7764 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7765 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7766 fi 7767 7768 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7769 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7770 fi 7771 7772 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7773 7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7775$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7776 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh` 7777 if eval \${$cacheid+:} false; then : 7778 $as_echo_n "(cached) " >&6 7779else 7780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7781/* end confdefs.h. */ 7782int i; 7783int 7784main () 7785{ 7786 7787 ; 7788 return 0; 7789} 7790_ACEOF 7791if ac_fn_c_try_link "$LINENO"; then : 7792 eval $cacheid=yes 7793else 7794 eval $cacheid=no 7795fi 7796rm -f core conftest.err conftest.$ac_objext \ 7797 conftest$ac_exeext conftest.$ac_ext 7798fi 7799 7800 7801 CFLAGS="$xorg_testset_save_CFLAGS" 7802 7803 eval supported=\$$cacheid 7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7805$as_echo "$supported" >&6; } 7806 if test "$supported" = "yes" ; then 7807 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7808 found="yes" 7809 fi 7810 fi 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826xorg_testset_save_CFLAGS="$CFLAGS" 7827 7828if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7829 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7831$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7832if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7833 $as_echo_n "(cached) " >&6 7834else 7835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7836/* end confdefs.h. */ 7837int i; 7838_ACEOF 7839if ac_fn_c_try_compile "$LINENO"; then : 7840 xorg_cv_cc_flag_unknown_warning_option=yes 7841else 7842 xorg_cv_cc_flag_unknown_warning_option=no 7843fi 7844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7845fi 7846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7847$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7848 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7849 CFLAGS="$xorg_testset_save_CFLAGS" 7850fi 7851 7852if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7853 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7854 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7855 fi 7856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7858$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7859if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7860 $as_echo_n "(cached) " >&6 7861else 7862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7863/* end confdefs.h. */ 7864int i; 7865_ACEOF 7866if ac_fn_c_try_compile "$LINENO"; then : 7867 xorg_cv_cc_flag_unused_command_line_argument=yes 7868else 7869 xorg_cv_cc_flag_unused_command_line_argument=no 7870fi 7871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7872fi 7873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7874$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7875 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7876 CFLAGS="$xorg_testset_save_CFLAGS" 7877fi 7878 7879found="no" 7880 7881 if test $found = "no" ; then 7882 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7883 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7884 fi 7885 7886 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7887 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7888 fi 7889 7890 CFLAGS="$CFLAGS -Werror=trigraphs" 7891 7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7893$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7894 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh` 7895 if eval \${$cacheid+:} false; then : 7896 $as_echo_n "(cached) " >&6 7897else 7898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7899/* end confdefs.h. */ 7900int i; 7901int 7902main () 7903{ 7904 7905 ; 7906 return 0; 7907} 7908_ACEOF 7909if ac_fn_c_try_link "$LINENO"; then : 7910 eval $cacheid=yes 7911else 7912 eval $cacheid=no 7913fi 7914rm -f core conftest.err conftest.$ac_objext \ 7915 conftest$ac_exeext conftest.$ac_ext 7916fi 7917 7918 7919 CFLAGS="$xorg_testset_save_CFLAGS" 7920 7921 eval supported=\$$cacheid 7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7923$as_echo "$supported" >&6; } 7924 if test "$supported" = "yes" ; then 7925 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7926 found="yes" 7927 fi 7928 fi 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944xorg_testset_save_CFLAGS="$CFLAGS" 7945 7946if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7947 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7949$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7950if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7951 $as_echo_n "(cached) " >&6 7952else 7953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7954/* end confdefs.h. */ 7955int i; 7956_ACEOF 7957if ac_fn_c_try_compile "$LINENO"; then : 7958 xorg_cv_cc_flag_unknown_warning_option=yes 7959else 7960 xorg_cv_cc_flag_unknown_warning_option=no 7961fi 7962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7963fi 7964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7965$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7966 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7967 CFLAGS="$xorg_testset_save_CFLAGS" 7968fi 7969 7970if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7971 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7972 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7973 fi 7974 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7976$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7977if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7978 $as_echo_n "(cached) " >&6 7979else 7980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7981/* end confdefs.h. */ 7982int i; 7983_ACEOF 7984if ac_fn_c_try_compile "$LINENO"; then : 7985 xorg_cv_cc_flag_unused_command_line_argument=yes 7986else 7987 xorg_cv_cc_flag_unused_command_line_argument=no 7988fi 7989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7990fi 7991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7992$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7993 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7994 CFLAGS="$xorg_testset_save_CFLAGS" 7995fi 7996 7997found="no" 7998 7999 if test $found = "no" ; then 8000 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8001 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8002 fi 8003 8004 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8005 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8006 fi 8007 8008 CFLAGS="$CFLAGS -Werror=array-bounds" 8009 8010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8011$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 8012 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh` 8013 if eval \${$cacheid+:} false; then : 8014 $as_echo_n "(cached) " >&6 8015else 8016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8017/* end confdefs.h. */ 8018int i; 8019int 8020main () 8021{ 8022 8023 ; 8024 return 0; 8025} 8026_ACEOF 8027if ac_fn_c_try_link "$LINENO"; then : 8028 eval $cacheid=yes 8029else 8030 eval $cacheid=no 8031fi 8032rm -f core conftest.err conftest.$ac_objext \ 8033 conftest$ac_exeext conftest.$ac_ext 8034fi 8035 8036 8037 CFLAGS="$xorg_testset_save_CFLAGS" 8038 8039 eval supported=\$$cacheid 8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8041$as_echo "$supported" >&6; } 8042 if test "$supported" = "yes" ; then 8043 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8044 found="yes" 8045 fi 8046 fi 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062xorg_testset_save_CFLAGS="$CFLAGS" 8063 8064if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8065 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8067$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8068if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8069 $as_echo_n "(cached) " >&6 8070else 8071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8072/* end confdefs.h. */ 8073int i; 8074_ACEOF 8075if ac_fn_c_try_compile "$LINENO"; then : 8076 xorg_cv_cc_flag_unknown_warning_option=yes 8077else 8078 xorg_cv_cc_flag_unknown_warning_option=no 8079fi 8080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8081fi 8082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8083$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8084 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8085 CFLAGS="$xorg_testset_save_CFLAGS" 8086fi 8087 8088if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8089 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8090 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8091 fi 8092 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8094$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8095if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8096 $as_echo_n "(cached) " >&6 8097else 8098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8099/* end confdefs.h. */ 8100int i; 8101_ACEOF 8102if ac_fn_c_try_compile "$LINENO"; then : 8103 xorg_cv_cc_flag_unused_command_line_argument=yes 8104else 8105 xorg_cv_cc_flag_unused_command_line_argument=no 8106fi 8107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8108fi 8109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8110$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8111 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8112 CFLAGS="$xorg_testset_save_CFLAGS" 8113fi 8114 8115found="no" 8116 8117 if test $found = "no" ; then 8118 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8119 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8120 fi 8121 8122 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8123 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8124 fi 8125 8126 CFLAGS="$CFLAGS -Werror=write-strings" 8127 8128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8129$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8130 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh` 8131 if eval \${$cacheid+:} false; then : 8132 $as_echo_n "(cached) " >&6 8133else 8134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8135/* end confdefs.h. */ 8136int i; 8137int 8138main () 8139{ 8140 8141 ; 8142 return 0; 8143} 8144_ACEOF 8145if ac_fn_c_try_link "$LINENO"; then : 8146 eval $cacheid=yes 8147else 8148 eval $cacheid=no 8149fi 8150rm -f core conftest.err conftest.$ac_objext \ 8151 conftest$ac_exeext conftest.$ac_ext 8152fi 8153 8154 8155 CFLAGS="$xorg_testset_save_CFLAGS" 8156 8157 eval supported=\$$cacheid 8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8159$as_echo "$supported" >&6; } 8160 if test "$supported" = "yes" ; then 8161 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8162 found="yes" 8163 fi 8164 fi 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180xorg_testset_save_CFLAGS="$CFLAGS" 8181 8182if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8183 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8185$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8186if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8187 $as_echo_n "(cached) " >&6 8188else 8189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8190/* end confdefs.h. */ 8191int i; 8192_ACEOF 8193if ac_fn_c_try_compile "$LINENO"; then : 8194 xorg_cv_cc_flag_unknown_warning_option=yes 8195else 8196 xorg_cv_cc_flag_unknown_warning_option=no 8197fi 8198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8199fi 8200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8201$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8202 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8203 CFLAGS="$xorg_testset_save_CFLAGS" 8204fi 8205 8206if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8207 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8208 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8209 fi 8210 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8212$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8213if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8214 $as_echo_n "(cached) " >&6 8215else 8216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8217/* end confdefs.h. */ 8218int i; 8219_ACEOF 8220if ac_fn_c_try_compile "$LINENO"; then : 8221 xorg_cv_cc_flag_unused_command_line_argument=yes 8222else 8223 xorg_cv_cc_flag_unused_command_line_argument=no 8224fi 8225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8226fi 8227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8228$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8229 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8230 CFLAGS="$xorg_testset_save_CFLAGS" 8231fi 8232 8233found="no" 8234 8235 if test $found = "no" ; then 8236 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8237 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8238 fi 8239 8240 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8242 fi 8243 8244 CFLAGS="$CFLAGS -Werror=address" 8245 8246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8247$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8248 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh` 8249 if eval \${$cacheid+:} false; then : 8250 $as_echo_n "(cached) " >&6 8251else 8252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8253/* end confdefs.h. */ 8254int i; 8255int 8256main () 8257{ 8258 8259 ; 8260 return 0; 8261} 8262_ACEOF 8263if ac_fn_c_try_link "$LINENO"; then : 8264 eval $cacheid=yes 8265else 8266 eval $cacheid=no 8267fi 8268rm -f core conftest.err conftest.$ac_objext \ 8269 conftest$ac_exeext conftest.$ac_ext 8270fi 8271 8272 8273 CFLAGS="$xorg_testset_save_CFLAGS" 8274 8275 eval supported=\$$cacheid 8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8277$as_echo "$supported" >&6; } 8278 if test "$supported" = "yes" ; then 8279 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8280 found="yes" 8281 fi 8282 fi 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298xorg_testset_save_CFLAGS="$CFLAGS" 8299 8300if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8301 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8303$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8304if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8305 $as_echo_n "(cached) " >&6 8306else 8307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8308/* end confdefs.h. */ 8309int i; 8310_ACEOF 8311if ac_fn_c_try_compile "$LINENO"; then : 8312 xorg_cv_cc_flag_unknown_warning_option=yes 8313else 8314 xorg_cv_cc_flag_unknown_warning_option=no 8315fi 8316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8317fi 8318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8319$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8320 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8321 CFLAGS="$xorg_testset_save_CFLAGS" 8322fi 8323 8324if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8325 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8326 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8327 fi 8328 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8330$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8331if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8332 $as_echo_n "(cached) " >&6 8333else 8334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8335/* end confdefs.h. */ 8336int i; 8337_ACEOF 8338if ac_fn_c_try_compile "$LINENO"; then : 8339 xorg_cv_cc_flag_unused_command_line_argument=yes 8340else 8341 xorg_cv_cc_flag_unused_command_line_argument=no 8342fi 8343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8344fi 8345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8346$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8347 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8348 CFLAGS="$xorg_testset_save_CFLAGS" 8349fi 8350 8351found="no" 8352 8353 if test $found = "no" ; then 8354 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8355 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8356 fi 8357 8358 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8360 fi 8361 8362 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8363 8364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8365$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8366 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh` 8367 if eval \${$cacheid+:} false; then : 8368 $as_echo_n "(cached) " >&6 8369else 8370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8371/* end confdefs.h. */ 8372int i; 8373int 8374main () 8375{ 8376 8377 ; 8378 return 0; 8379} 8380_ACEOF 8381if ac_fn_c_try_link "$LINENO"; then : 8382 eval $cacheid=yes 8383else 8384 eval $cacheid=no 8385fi 8386rm -f core conftest.err conftest.$ac_objext \ 8387 conftest$ac_exeext conftest.$ac_ext 8388fi 8389 8390 8391 CFLAGS="$xorg_testset_save_CFLAGS" 8392 8393 eval supported=\$$cacheid 8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8395$as_echo "$supported" >&6; } 8396 if test "$supported" = "yes" ; then 8397 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8398 found="yes" 8399 fi 8400 fi 8401 8402 if test $found = "no" ; then 8403 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8404 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8405 fi 8406 8407 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8408 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8409 fi 8410 8411 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8412 8413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8414$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8415 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh` 8416 if eval \${$cacheid+:} false; then : 8417 $as_echo_n "(cached) " >&6 8418else 8419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8420/* end confdefs.h. */ 8421int i; 8422int 8423main () 8424{ 8425 8426 ; 8427 return 0; 8428} 8429_ACEOF 8430if ac_fn_c_try_link "$LINENO"; then : 8431 eval $cacheid=yes 8432else 8433 eval $cacheid=no 8434fi 8435rm -f core conftest.err conftest.$ac_objext \ 8436 conftest$ac_exeext conftest.$ac_ext 8437fi 8438 8439 8440 CFLAGS="$xorg_testset_save_CFLAGS" 8441 8442 eval supported=\$$cacheid 8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8444$as_echo "$supported" >&6; } 8445 if test "$supported" = "yes" ; then 8446 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8447 found="yes" 8448 fi 8449 fi 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465xorg_testset_save_CFLAGS="$CFLAGS" 8466 8467if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8468 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8470$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8471if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8472 $as_echo_n "(cached) " >&6 8473else 8474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8475/* end confdefs.h. */ 8476int i; 8477_ACEOF 8478if ac_fn_c_try_compile "$LINENO"; then : 8479 xorg_cv_cc_flag_unknown_warning_option=yes 8480else 8481 xorg_cv_cc_flag_unknown_warning_option=no 8482fi 8483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8484fi 8485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8486$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8487 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8488 CFLAGS="$xorg_testset_save_CFLAGS" 8489fi 8490 8491if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8492 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8493 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8494 fi 8495 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8497$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8498if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8499 $as_echo_n "(cached) " >&6 8500else 8501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8502/* end confdefs.h. */ 8503int i; 8504_ACEOF 8505if ac_fn_c_try_compile "$LINENO"; then : 8506 xorg_cv_cc_flag_unused_command_line_argument=yes 8507else 8508 xorg_cv_cc_flag_unused_command_line_argument=no 8509fi 8510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8511fi 8512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8513$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8514 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8515 CFLAGS="$xorg_testset_save_CFLAGS" 8516fi 8517 8518found="no" 8519 8520 if test $found = "no" ; then 8521 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8522 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8523 fi 8524 8525 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8526 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8527 fi 8528 8529 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8530 8531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8532$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8533 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh` 8534 if eval \${$cacheid+:} false; then : 8535 $as_echo_n "(cached) " >&6 8536else 8537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8538/* end confdefs.h. */ 8539int i; 8540int 8541main () 8542{ 8543 8544 ; 8545 return 0; 8546} 8547_ACEOF 8548if ac_fn_c_try_link "$LINENO"; then : 8549 eval $cacheid=yes 8550else 8551 eval $cacheid=no 8552fi 8553rm -f core conftest.err conftest.$ac_objext \ 8554 conftest$ac_exeext conftest.$ac_ext 8555fi 8556 8557 8558 CFLAGS="$xorg_testset_save_CFLAGS" 8559 8560 eval supported=\$$cacheid 8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8562$as_echo "$supported" >&6; } 8563 if test "$supported" = "yes" ; then 8564 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8565 found="yes" 8566 fi 8567 fi 8568 8569 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8570else 8571{ $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 8572$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;} 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585 8586xorg_testset_save_CFLAGS="$CFLAGS" 8587 8588if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8589 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8591$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8592if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8593 $as_echo_n "(cached) " >&6 8594else 8595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8596/* end confdefs.h. */ 8597int i; 8598_ACEOF 8599if ac_fn_c_try_compile "$LINENO"; then : 8600 xorg_cv_cc_flag_unknown_warning_option=yes 8601else 8602 xorg_cv_cc_flag_unknown_warning_option=no 8603fi 8604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8605fi 8606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8607$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8608 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8609 CFLAGS="$xorg_testset_save_CFLAGS" 8610fi 8611 8612if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8613 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8614 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8615 fi 8616 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8618$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8619if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8620 $as_echo_n "(cached) " >&6 8621else 8622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8623/* end confdefs.h. */ 8624int i; 8625_ACEOF 8626if ac_fn_c_try_compile "$LINENO"; then : 8627 xorg_cv_cc_flag_unused_command_line_argument=yes 8628else 8629 xorg_cv_cc_flag_unused_command_line_argument=no 8630fi 8631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8632fi 8633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8634$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8635 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8636 CFLAGS="$xorg_testset_save_CFLAGS" 8637fi 8638 8639found="no" 8640 8641 if test $found = "no" ; then 8642 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8643 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8644 fi 8645 8646 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8647 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8648 fi 8649 8650 CFLAGS="$CFLAGS -Wimplicit" 8651 8652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8653$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8654 cacheid=xorg_cv_cc_flag__Wimplicit 8655 if eval \${$cacheid+:} false; then : 8656 $as_echo_n "(cached) " >&6 8657else 8658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8659/* end confdefs.h. */ 8660int i; 8661int 8662main () 8663{ 8664 8665 ; 8666 return 0; 8667} 8668_ACEOF 8669if ac_fn_c_try_link "$LINENO"; then : 8670 eval $cacheid=yes 8671else 8672 eval $cacheid=no 8673fi 8674rm -f core conftest.err conftest.$ac_objext \ 8675 conftest$ac_exeext conftest.$ac_ext 8676fi 8677 8678 8679 CFLAGS="$xorg_testset_save_CFLAGS" 8680 8681 eval supported=\$$cacheid 8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8683$as_echo "$supported" >&6; } 8684 if test "$supported" = "yes" ; then 8685 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8686 found="yes" 8687 fi 8688 fi 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704xorg_testset_save_CFLAGS="$CFLAGS" 8705 8706if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8707 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8709$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8710if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8711 $as_echo_n "(cached) " >&6 8712else 8713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8714/* end confdefs.h. */ 8715int i; 8716_ACEOF 8717if ac_fn_c_try_compile "$LINENO"; then : 8718 xorg_cv_cc_flag_unknown_warning_option=yes 8719else 8720 xorg_cv_cc_flag_unknown_warning_option=no 8721fi 8722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8723fi 8724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8725$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8726 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8727 CFLAGS="$xorg_testset_save_CFLAGS" 8728fi 8729 8730if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8731 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8732 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8733 fi 8734 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8736$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8737if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8738 $as_echo_n "(cached) " >&6 8739else 8740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8741/* end confdefs.h. */ 8742int i; 8743_ACEOF 8744if ac_fn_c_try_compile "$LINENO"; then : 8745 xorg_cv_cc_flag_unused_command_line_argument=yes 8746else 8747 xorg_cv_cc_flag_unused_command_line_argument=no 8748fi 8749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8750fi 8751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8752$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8753 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8754 CFLAGS="$xorg_testset_save_CFLAGS" 8755fi 8756 8757found="no" 8758 8759 if test $found = "no" ; then 8760 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8761 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8762 fi 8763 8764 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8765 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8766 fi 8767 8768 CFLAGS="$CFLAGS -Wnonnull" 8769 8770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8771$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8772 cacheid=xorg_cv_cc_flag__Wnonnull 8773 if eval \${$cacheid+:} false; then : 8774 $as_echo_n "(cached) " >&6 8775else 8776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8777/* end confdefs.h. */ 8778int i; 8779int 8780main () 8781{ 8782 8783 ; 8784 return 0; 8785} 8786_ACEOF 8787if ac_fn_c_try_link "$LINENO"; then : 8788 eval $cacheid=yes 8789else 8790 eval $cacheid=no 8791fi 8792rm -f core conftest.err conftest.$ac_objext \ 8793 conftest$ac_exeext conftest.$ac_ext 8794fi 8795 8796 8797 CFLAGS="$xorg_testset_save_CFLAGS" 8798 8799 eval supported=\$$cacheid 8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8801$as_echo "$supported" >&6; } 8802 if test "$supported" = "yes" ; then 8803 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8804 found="yes" 8805 fi 8806 fi 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822xorg_testset_save_CFLAGS="$CFLAGS" 8823 8824if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8825 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8827$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8828if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8829 $as_echo_n "(cached) " >&6 8830else 8831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8832/* end confdefs.h. */ 8833int i; 8834_ACEOF 8835if ac_fn_c_try_compile "$LINENO"; then : 8836 xorg_cv_cc_flag_unknown_warning_option=yes 8837else 8838 xorg_cv_cc_flag_unknown_warning_option=no 8839fi 8840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8841fi 8842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8843$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8844 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8845 CFLAGS="$xorg_testset_save_CFLAGS" 8846fi 8847 8848if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8849 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8850 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8851 fi 8852 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8854$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8855if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8856 $as_echo_n "(cached) " >&6 8857else 8858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8859/* end confdefs.h. */ 8860int i; 8861_ACEOF 8862if ac_fn_c_try_compile "$LINENO"; then : 8863 xorg_cv_cc_flag_unused_command_line_argument=yes 8864else 8865 xorg_cv_cc_flag_unused_command_line_argument=no 8866fi 8867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8868fi 8869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8870$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8871 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8872 CFLAGS="$xorg_testset_save_CFLAGS" 8873fi 8874 8875found="no" 8876 8877 if test $found = "no" ; then 8878 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8879 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8880 fi 8881 8882 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8883 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8884 fi 8885 8886 CFLAGS="$CFLAGS -Winit-self" 8887 8888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8889$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8890 cacheid=xorg_cv_cc_flag__Winit_self 8891 if eval \${$cacheid+:} false; then : 8892 $as_echo_n "(cached) " >&6 8893else 8894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8895/* end confdefs.h. */ 8896int i; 8897int 8898main () 8899{ 8900 8901 ; 8902 return 0; 8903} 8904_ACEOF 8905if ac_fn_c_try_link "$LINENO"; then : 8906 eval $cacheid=yes 8907else 8908 eval $cacheid=no 8909fi 8910rm -f core conftest.err conftest.$ac_objext \ 8911 conftest$ac_exeext conftest.$ac_ext 8912fi 8913 8914 8915 CFLAGS="$xorg_testset_save_CFLAGS" 8916 8917 eval supported=\$$cacheid 8918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8919$as_echo "$supported" >&6; } 8920 if test "$supported" = "yes" ; then 8921 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8922 found="yes" 8923 fi 8924 fi 8925 8926 8927 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938 8939 8940xorg_testset_save_CFLAGS="$CFLAGS" 8941 8942if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8943 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8945$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8946if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8947 $as_echo_n "(cached) " >&6 8948else 8949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8950/* end confdefs.h. */ 8951int i; 8952_ACEOF 8953if ac_fn_c_try_compile "$LINENO"; then : 8954 xorg_cv_cc_flag_unknown_warning_option=yes 8955else 8956 xorg_cv_cc_flag_unknown_warning_option=no 8957fi 8958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8959fi 8960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8961$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8962 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8963 CFLAGS="$xorg_testset_save_CFLAGS" 8964fi 8965 8966if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8967 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8968 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8969 fi 8970 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8972$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8973if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8974 $as_echo_n "(cached) " >&6 8975else 8976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8977/* end confdefs.h. */ 8978int i; 8979_ACEOF 8980if ac_fn_c_try_compile "$LINENO"; then : 8981 xorg_cv_cc_flag_unused_command_line_argument=yes 8982else 8983 xorg_cv_cc_flag_unused_command_line_argument=no 8984fi 8985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8986fi 8987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8988$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8989 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8990 CFLAGS="$xorg_testset_save_CFLAGS" 8991fi 8992 8993found="no" 8994 8995 if test $found = "no" ; then 8996 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8997 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8998 fi 8999 9000 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9001 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9002 fi 9003 9004 CFLAGS="$CFLAGS -Wmain" 9005 9006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9007$as_echo_n "checking if $CC supports -Wmain... " >&6; } 9008 cacheid=xorg_cv_cc_flag__Wmain 9009 if eval \${$cacheid+:} false; then : 9010 $as_echo_n "(cached) " >&6 9011else 9012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9013/* end confdefs.h. */ 9014int i; 9015int 9016main () 9017{ 9018 9019 ; 9020 return 0; 9021} 9022_ACEOF 9023if ac_fn_c_try_link "$LINENO"; then : 9024 eval $cacheid=yes 9025else 9026 eval $cacheid=no 9027fi 9028rm -f core conftest.err conftest.$ac_objext \ 9029 conftest$ac_exeext conftest.$ac_ext 9030fi 9031 9032 9033 CFLAGS="$xorg_testset_save_CFLAGS" 9034 9035 eval supported=\$$cacheid 9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9037$as_echo "$supported" >&6; } 9038 if test "$supported" = "yes" ; then 9039 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9040 found="yes" 9041 fi 9042 fi 9043 9044 9045 9046 9047 9048 9049 9050 9051 9052 9053 9054 9055 9056 9057 9058xorg_testset_save_CFLAGS="$CFLAGS" 9059 9060if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9061 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9063$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9064if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9065 $as_echo_n "(cached) " >&6 9066else 9067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9068/* end confdefs.h. */ 9069int i; 9070_ACEOF 9071if ac_fn_c_try_compile "$LINENO"; then : 9072 xorg_cv_cc_flag_unknown_warning_option=yes 9073else 9074 xorg_cv_cc_flag_unknown_warning_option=no 9075fi 9076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9077fi 9078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9079$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9080 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9081 CFLAGS="$xorg_testset_save_CFLAGS" 9082fi 9083 9084if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9085 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9086 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9087 fi 9088 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9090$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9091if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9092 $as_echo_n "(cached) " >&6 9093else 9094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9095/* end confdefs.h. */ 9096int i; 9097_ACEOF 9098if ac_fn_c_try_compile "$LINENO"; then : 9099 xorg_cv_cc_flag_unused_command_line_argument=yes 9100else 9101 xorg_cv_cc_flag_unused_command_line_argument=no 9102fi 9103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9104fi 9105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9106$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9107 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9108 CFLAGS="$xorg_testset_save_CFLAGS" 9109fi 9110 9111found="no" 9112 9113 if test $found = "no" ; then 9114 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9115 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9116 fi 9117 9118 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9120 fi 9121 9122 CFLAGS="$CFLAGS -Wmissing-braces" 9123 9124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9125$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 9126 cacheid=xorg_cv_cc_flag__Wmissing_braces 9127 if eval \${$cacheid+:} false; then : 9128 $as_echo_n "(cached) " >&6 9129else 9130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9131/* end confdefs.h. */ 9132int i; 9133int 9134main () 9135{ 9136 9137 ; 9138 return 0; 9139} 9140_ACEOF 9141if ac_fn_c_try_link "$LINENO"; then : 9142 eval $cacheid=yes 9143else 9144 eval $cacheid=no 9145fi 9146rm -f core conftest.err conftest.$ac_objext \ 9147 conftest$ac_exeext conftest.$ac_ext 9148fi 9149 9150 9151 CFLAGS="$xorg_testset_save_CFLAGS" 9152 9153 eval supported=\$$cacheid 9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9155$as_echo "$supported" >&6; } 9156 if test "$supported" = "yes" ; then 9157 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9158 found="yes" 9159 fi 9160 fi 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176xorg_testset_save_CFLAGS="$CFLAGS" 9177 9178if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9179 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9181$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9182if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9183 $as_echo_n "(cached) " >&6 9184else 9185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9186/* end confdefs.h. */ 9187int i; 9188_ACEOF 9189if ac_fn_c_try_compile "$LINENO"; then : 9190 xorg_cv_cc_flag_unknown_warning_option=yes 9191else 9192 xorg_cv_cc_flag_unknown_warning_option=no 9193fi 9194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9195fi 9196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9197$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9198 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9199 CFLAGS="$xorg_testset_save_CFLAGS" 9200fi 9201 9202if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9203 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9204 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9205 fi 9206 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9208$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9209if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9210 $as_echo_n "(cached) " >&6 9211else 9212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9213/* end confdefs.h. */ 9214int i; 9215_ACEOF 9216if ac_fn_c_try_compile "$LINENO"; then : 9217 xorg_cv_cc_flag_unused_command_line_argument=yes 9218else 9219 xorg_cv_cc_flag_unused_command_line_argument=no 9220fi 9221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9222fi 9223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9224$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9225 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9226 CFLAGS="$xorg_testset_save_CFLAGS" 9227fi 9228 9229found="no" 9230 9231 if test $found = "no" ; then 9232 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9233 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9234 fi 9235 9236 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9237 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9238 fi 9239 9240 CFLAGS="$CFLAGS -Wsequence-point" 9241 9242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9243$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9244 cacheid=xorg_cv_cc_flag__Wsequence_point 9245 if eval \${$cacheid+:} false; then : 9246 $as_echo_n "(cached) " >&6 9247else 9248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9249/* end confdefs.h. */ 9250int i; 9251int 9252main () 9253{ 9254 9255 ; 9256 return 0; 9257} 9258_ACEOF 9259if ac_fn_c_try_link "$LINENO"; then : 9260 eval $cacheid=yes 9261else 9262 eval $cacheid=no 9263fi 9264rm -f core conftest.err conftest.$ac_objext \ 9265 conftest$ac_exeext conftest.$ac_ext 9266fi 9267 9268 9269 CFLAGS="$xorg_testset_save_CFLAGS" 9270 9271 eval supported=\$$cacheid 9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9273$as_echo "$supported" >&6; } 9274 if test "$supported" = "yes" ; then 9275 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9276 found="yes" 9277 fi 9278 fi 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294xorg_testset_save_CFLAGS="$CFLAGS" 9295 9296if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9297 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9299$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9300if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9301 $as_echo_n "(cached) " >&6 9302else 9303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9304/* end confdefs.h. */ 9305int i; 9306_ACEOF 9307if ac_fn_c_try_compile "$LINENO"; then : 9308 xorg_cv_cc_flag_unknown_warning_option=yes 9309else 9310 xorg_cv_cc_flag_unknown_warning_option=no 9311fi 9312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9313fi 9314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9315$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9316 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9317 CFLAGS="$xorg_testset_save_CFLAGS" 9318fi 9319 9320if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9321 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9322 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9323 fi 9324 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9326$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9327if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9328 $as_echo_n "(cached) " >&6 9329else 9330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9331/* end confdefs.h. */ 9332int i; 9333_ACEOF 9334if ac_fn_c_try_compile "$LINENO"; then : 9335 xorg_cv_cc_flag_unused_command_line_argument=yes 9336else 9337 xorg_cv_cc_flag_unused_command_line_argument=no 9338fi 9339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9340fi 9341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9342$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9343 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9344 CFLAGS="$xorg_testset_save_CFLAGS" 9345fi 9346 9347found="no" 9348 9349 if test $found = "no" ; then 9350 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9351 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9352 fi 9353 9354 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9355 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9356 fi 9357 9358 CFLAGS="$CFLAGS -Wreturn-type" 9359 9360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9361$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9362 cacheid=xorg_cv_cc_flag__Wreturn_type 9363 if eval \${$cacheid+:} false; then : 9364 $as_echo_n "(cached) " >&6 9365else 9366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9367/* end confdefs.h. */ 9368int i; 9369int 9370main () 9371{ 9372 9373 ; 9374 return 0; 9375} 9376_ACEOF 9377if ac_fn_c_try_link "$LINENO"; then : 9378 eval $cacheid=yes 9379else 9380 eval $cacheid=no 9381fi 9382rm -f core conftest.err conftest.$ac_objext \ 9383 conftest$ac_exeext conftest.$ac_ext 9384fi 9385 9386 9387 CFLAGS="$xorg_testset_save_CFLAGS" 9388 9389 eval supported=\$$cacheid 9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9391$as_echo "$supported" >&6; } 9392 if test "$supported" = "yes" ; then 9393 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9394 found="yes" 9395 fi 9396 fi 9397 9398 9399 9400 9401 9402 9403 9404 9405 9406 9407 9408 9409 9410 9411 9412xorg_testset_save_CFLAGS="$CFLAGS" 9413 9414if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9415 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9417$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9418if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9419 $as_echo_n "(cached) " >&6 9420else 9421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9422/* end confdefs.h. */ 9423int i; 9424_ACEOF 9425if ac_fn_c_try_compile "$LINENO"; then : 9426 xorg_cv_cc_flag_unknown_warning_option=yes 9427else 9428 xorg_cv_cc_flag_unknown_warning_option=no 9429fi 9430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9431fi 9432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9433$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9434 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9435 CFLAGS="$xorg_testset_save_CFLAGS" 9436fi 9437 9438if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9439 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9440 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9441 fi 9442 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9444$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9445if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9446 $as_echo_n "(cached) " >&6 9447else 9448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9449/* end confdefs.h. */ 9450int i; 9451_ACEOF 9452if ac_fn_c_try_compile "$LINENO"; then : 9453 xorg_cv_cc_flag_unused_command_line_argument=yes 9454else 9455 xorg_cv_cc_flag_unused_command_line_argument=no 9456fi 9457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9458fi 9459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9460$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9461 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9462 CFLAGS="$xorg_testset_save_CFLAGS" 9463fi 9464 9465found="no" 9466 9467 if test $found = "no" ; then 9468 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9469 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9470 fi 9471 9472 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9473 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9474 fi 9475 9476 CFLAGS="$CFLAGS -Wtrigraphs" 9477 9478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9479$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9480 cacheid=xorg_cv_cc_flag__Wtrigraphs 9481 if eval \${$cacheid+:} false; then : 9482 $as_echo_n "(cached) " >&6 9483else 9484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9485/* end confdefs.h. */ 9486int i; 9487int 9488main () 9489{ 9490 9491 ; 9492 return 0; 9493} 9494_ACEOF 9495if ac_fn_c_try_link "$LINENO"; then : 9496 eval $cacheid=yes 9497else 9498 eval $cacheid=no 9499fi 9500rm -f core conftest.err conftest.$ac_objext \ 9501 conftest$ac_exeext conftest.$ac_ext 9502fi 9503 9504 9505 CFLAGS="$xorg_testset_save_CFLAGS" 9506 9507 eval supported=\$$cacheid 9508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9509$as_echo "$supported" >&6; } 9510 if test "$supported" = "yes" ; then 9511 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9512 found="yes" 9513 fi 9514 fi 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527 9528 9529 9530xorg_testset_save_CFLAGS="$CFLAGS" 9531 9532if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9533 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9535$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9536if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9537 $as_echo_n "(cached) " >&6 9538else 9539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9540/* end confdefs.h. */ 9541int i; 9542_ACEOF 9543if ac_fn_c_try_compile "$LINENO"; then : 9544 xorg_cv_cc_flag_unknown_warning_option=yes 9545else 9546 xorg_cv_cc_flag_unknown_warning_option=no 9547fi 9548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9549fi 9550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9551$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9552 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9553 CFLAGS="$xorg_testset_save_CFLAGS" 9554fi 9555 9556if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9557 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9558 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9559 fi 9560 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9562$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9563if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9564 $as_echo_n "(cached) " >&6 9565else 9566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9567/* end confdefs.h. */ 9568int i; 9569_ACEOF 9570if ac_fn_c_try_compile "$LINENO"; then : 9571 xorg_cv_cc_flag_unused_command_line_argument=yes 9572else 9573 xorg_cv_cc_flag_unused_command_line_argument=no 9574fi 9575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9576fi 9577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9578$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9579 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9580 CFLAGS="$xorg_testset_save_CFLAGS" 9581fi 9582 9583found="no" 9584 9585 if test $found = "no" ; then 9586 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9587 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9588 fi 9589 9590 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9591 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9592 fi 9593 9594 CFLAGS="$CFLAGS -Warray-bounds" 9595 9596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9597$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9598 cacheid=xorg_cv_cc_flag__Warray_bounds 9599 if eval \${$cacheid+:} false; then : 9600 $as_echo_n "(cached) " >&6 9601else 9602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9603/* end confdefs.h. */ 9604int i; 9605int 9606main () 9607{ 9608 9609 ; 9610 return 0; 9611} 9612_ACEOF 9613if ac_fn_c_try_link "$LINENO"; then : 9614 eval $cacheid=yes 9615else 9616 eval $cacheid=no 9617fi 9618rm -f core conftest.err conftest.$ac_objext \ 9619 conftest$ac_exeext conftest.$ac_ext 9620fi 9621 9622 9623 CFLAGS="$xorg_testset_save_CFLAGS" 9624 9625 eval supported=\$$cacheid 9626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9627$as_echo "$supported" >&6; } 9628 if test "$supported" = "yes" ; then 9629 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9630 found="yes" 9631 fi 9632 fi 9633 9634 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646 9647 9648xorg_testset_save_CFLAGS="$CFLAGS" 9649 9650if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9651 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9653$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9654if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9655 $as_echo_n "(cached) " >&6 9656else 9657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9658/* end confdefs.h. */ 9659int i; 9660_ACEOF 9661if ac_fn_c_try_compile "$LINENO"; then : 9662 xorg_cv_cc_flag_unknown_warning_option=yes 9663else 9664 xorg_cv_cc_flag_unknown_warning_option=no 9665fi 9666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9667fi 9668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9669$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9670 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9671 CFLAGS="$xorg_testset_save_CFLAGS" 9672fi 9673 9674if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9675 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9676 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9677 fi 9678 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9680$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9681if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9682 $as_echo_n "(cached) " >&6 9683else 9684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9685/* end confdefs.h. */ 9686int i; 9687_ACEOF 9688if ac_fn_c_try_compile "$LINENO"; then : 9689 xorg_cv_cc_flag_unused_command_line_argument=yes 9690else 9691 xorg_cv_cc_flag_unused_command_line_argument=no 9692fi 9693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9694fi 9695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9696$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9697 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9698 CFLAGS="$xorg_testset_save_CFLAGS" 9699fi 9700 9701found="no" 9702 9703 if test $found = "no" ; then 9704 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9705 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9706 fi 9707 9708 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9709 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9710 fi 9711 9712 CFLAGS="$CFLAGS -Wwrite-strings" 9713 9714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9715$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9716 cacheid=xorg_cv_cc_flag__Wwrite_strings 9717 if eval \${$cacheid+:} false; then : 9718 $as_echo_n "(cached) " >&6 9719else 9720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9721/* end confdefs.h. */ 9722int i; 9723int 9724main () 9725{ 9726 9727 ; 9728 return 0; 9729} 9730_ACEOF 9731if ac_fn_c_try_link "$LINENO"; then : 9732 eval $cacheid=yes 9733else 9734 eval $cacheid=no 9735fi 9736rm -f core conftest.err conftest.$ac_objext \ 9737 conftest$ac_exeext conftest.$ac_ext 9738fi 9739 9740 9741 CFLAGS="$xorg_testset_save_CFLAGS" 9742 9743 eval supported=\$$cacheid 9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9745$as_echo "$supported" >&6; } 9746 if test "$supported" = "yes" ; then 9747 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9748 found="yes" 9749 fi 9750 fi 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766xorg_testset_save_CFLAGS="$CFLAGS" 9767 9768if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9769 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9771$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9772if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9773 $as_echo_n "(cached) " >&6 9774else 9775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9776/* end confdefs.h. */ 9777int i; 9778_ACEOF 9779if ac_fn_c_try_compile "$LINENO"; then : 9780 xorg_cv_cc_flag_unknown_warning_option=yes 9781else 9782 xorg_cv_cc_flag_unknown_warning_option=no 9783fi 9784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9785fi 9786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9787$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9788 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9789 CFLAGS="$xorg_testset_save_CFLAGS" 9790fi 9791 9792if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9793 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9794 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9795 fi 9796 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9798$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9799if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9800 $as_echo_n "(cached) " >&6 9801else 9802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9803/* end confdefs.h. */ 9804int i; 9805_ACEOF 9806if ac_fn_c_try_compile "$LINENO"; then : 9807 xorg_cv_cc_flag_unused_command_line_argument=yes 9808else 9809 xorg_cv_cc_flag_unused_command_line_argument=no 9810fi 9811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9812fi 9813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9814$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9815 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9816 CFLAGS="$xorg_testset_save_CFLAGS" 9817fi 9818 9819found="no" 9820 9821 if test $found = "no" ; then 9822 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9823 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9824 fi 9825 9826 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9827 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9828 fi 9829 9830 CFLAGS="$CFLAGS -Waddress" 9831 9832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9833$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9834 cacheid=xorg_cv_cc_flag__Waddress 9835 if eval \${$cacheid+:} false; then : 9836 $as_echo_n "(cached) " >&6 9837else 9838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9839/* end confdefs.h. */ 9840int i; 9841int 9842main () 9843{ 9844 9845 ; 9846 return 0; 9847} 9848_ACEOF 9849if ac_fn_c_try_link "$LINENO"; then : 9850 eval $cacheid=yes 9851else 9852 eval $cacheid=no 9853fi 9854rm -f core conftest.err conftest.$ac_objext \ 9855 conftest$ac_exeext conftest.$ac_ext 9856fi 9857 9858 9859 CFLAGS="$xorg_testset_save_CFLAGS" 9860 9861 eval supported=\$$cacheid 9862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9863$as_echo "$supported" >&6; } 9864 if test "$supported" = "yes" ; then 9865 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9866 found="yes" 9867 fi 9868 fi 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884xorg_testset_save_CFLAGS="$CFLAGS" 9885 9886if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9887 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9889$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9890if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9891 $as_echo_n "(cached) " >&6 9892else 9893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9894/* end confdefs.h. */ 9895int i; 9896_ACEOF 9897if ac_fn_c_try_compile "$LINENO"; then : 9898 xorg_cv_cc_flag_unknown_warning_option=yes 9899else 9900 xorg_cv_cc_flag_unknown_warning_option=no 9901fi 9902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9903fi 9904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9905$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9906 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9907 CFLAGS="$xorg_testset_save_CFLAGS" 9908fi 9909 9910if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9911 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9912 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9913 fi 9914 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9916$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9917if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9918 $as_echo_n "(cached) " >&6 9919else 9920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9921/* end confdefs.h. */ 9922int i; 9923_ACEOF 9924if ac_fn_c_try_compile "$LINENO"; then : 9925 xorg_cv_cc_flag_unused_command_line_argument=yes 9926else 9927 xorg_cv_cc_flag_unused_command_line_argument=no 9928fi 9929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9930fi 9931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9932$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9933 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9934 CFLAGS="$xorg_testset_save_CFLAGS" 9935fi 9936 9937found="no" 9938 9939 if test $found = "no" ; then 9940 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9941 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9942 fi 9943 9944 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9945 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9946 fi 9947 9948 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9949 9950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 9951$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 9952 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9953 if eval \${$cacheid+:} false; then : 9954 $as_echo_n "(cached) " >&6 9955else 9956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9957/* end confdefs.h. */ 9958int i; 9959int 9960main () 9961{ 9962 9963 ; 9964 return 0; 9965} 9966_ACEOF 9967if ac_fn_c_try_link "$LINENO"; then : 9968 eval $cacheid=yes 9969else 9970 eval $cacheid=no 9971fi 9972rm -f core conftest.err conftest.$ac_objext \ 9973 conftest$ac_exeext conftest.$ac_ext 9974fi 9975 9976 9977 CFLAGS="$xorg_testset_save_CFLAGS" 9978 9979 eval supported=\$$cacheid 9980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9981$as_echo "$supported" >&6; } 9982 if test "$supported" = "yes" ; then 9983 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9984 found="yes" 9985 fi 9986 fi 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002xorg_testset_save_CFLAGS="$CFLAGS" 10003 10004if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10005 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10007$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10008if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10009 $as_echo_n "(cached) " >&6 10010else 10011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10012/* end confdefs.h. */ 10013int i; 10014_ACEOF 10015if ac_fn_c_try_compile "$LINENO"; then : 10016 xorg_cv_cc_flag_unknown_warning_option=yes 10017else 10018 xorg_cv_cc_flag_unknown_warning_option=no 10019fi 10020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10021fi 10022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10023$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10024 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10025 CFLAGS="$xorg_testset_save_CFLAGS" 10026fi 10027 10028if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10029 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10030 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10031 fi 10032 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10034$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10035if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10036 $as_echo_n "(cached) " >&6 10037else 10038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10039/* end confdefs.h. */ 10040int i; 10041_ACEOF 10042if ac_fn_c_try_compile "$LINENO"; then : 10043 xorg_cv_cc_flag_unused_command_line_argument=yes 10044else 10045 xorg_cv_cc_flag_unused_command_line_argument=no 10046fi 10047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10048fi 10049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10050$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10051 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10052 CFLAGS="$xorg_testset_save_CFLAGS" 10053fi 10054 10055found="no" 10056 10057 if test $found = "no" ; then 10058 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10059 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10060 fi 10061 10062 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10063 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10064 fi 10065 10066 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10067 10068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10069$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10070 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10071 if eval \${$cacheid+:} false; then : 10072 $as_echo_n "(cached) " >&6 10073else 10074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10075/* end confdefs.h. */ 10076int i; 10077int 10078main () 10079{ 10080 10081 ; 10082 return 0; 10083} 10084_ACEOF 10085if ac_fn_c_try_link "$LINENO"; then : 10086 eval $cacheid=yes 10087else 10088 eval $cacheid=no 10089fi 10090rm -f core conftest.err conftest.$ac_objext \ 10091 conftest$ac_exeext conftest.$ac_ext 10092fi 10093 10094 10095 CFLAGS="$xorg_testset_save_CFLAGS" 10096 10097 eval supported=\$$cacheid 10098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10099$as_echo "$supported" >&6; } 10100 if test "$supported" = "yes" ; then 10101 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10102 found="yes" 10103 fi 10104 fi 10105 10106 10107fi 10108 10109 10110 10111 10112 10113 10114 10115 CWARNFLAGS="$BASE_CFLAGS" 10116 if test "x$GCC" = xyes ; then 10117 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10118 fi 10119 10120 10121 10122 10123 10124 10125 10126 10127# Check whether --enable-strict-compilation was given. 10128if test "${enable_strict_compilation+set}" = set; then : 10129 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10130else 10131 STRICT_COMPILE=no 10132fi 10133 10134 10135 10136 10137 10138 10139STRICT_CFLAGS="" 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153xorg_testset_save_CFLAGS="$CFLAGS" 10154 10155if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10156 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10158$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10159if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10160 $as_echo_n "(cached) " >&6 10161else 10162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10163/* end confdefs.h. */ 10164int i; 10165_ACEOF 10166if ac_fn_c_try_compile "$LINENO"; then : 10167 xorg_cv_cc_flag_unknown_warning_option=yes 10168else 10169 xorg_cv_cc_flag_unknown_warning_option=no 10170fi 10171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10172fi 10173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10174$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10175 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10176 CFLAGS="$xorg_testset_save_CFLAGS" 10177fi 10178 10179if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10180 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10181 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10182 fi 10183 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10185$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10186if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10187 $as_echo_n "(cached) " >&6 10188else 10189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10190/* end confdefs.h. */ 10191int i; 10192_ACEOF 10193if ac_fn_c_try_compile "$LINENO"; then : 10194 xorg_cv_cc_flag_unused_command_line_argument=yes 10195else 10196 xorg_cv_cc_flag_unused_command_line_argument=no 10197fi 10198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10199fi 10200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10201$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10202 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10203 CFLAGS="$xorg_testset_save_CFLAGS" 10204fi 10205 10206found="no" 10207 10208 if test $found = "no" ; then 10209 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10210 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10211 fi 10212 10213 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10214 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10215 fi 10216 10217 CFLAGS="$CFLAGS -pedantic" 10218 10219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10220$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10221 cacheid=xorg_cv_cc_flag__pedantic 10222 if eval \${$cacheid+:} false; then : 10223 $as_echo_n "(cached) " >&6 10224else 10225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10226/* end confdefs.h. */ 10227int i; 10228int 10229main () 10230{ 10231 10232 ; 10233 return 0; 10234} 10235_ACEOF 10236if ac_fn_c_try_link "$LINENO"; then : 10237 eval $cacheid=yes 10238else 10239 eval $cacheid=no 10240fi 10241rm -f core conftest.err conftest.$ac_objext \ 10242 conftest$ac_exeext conftest.$ac_ext 10243fi 10244 10245 10246 CFLAGS="$xorg_testset_save_CFLAGS" 10247 10248 eval supported=\$$cacheid 10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10250$as_echo "$supported" >&6; } 10251 if test "$supported" = "yes" ; then 10252 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10253 found="yes" 10254 fi 10255 fi 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271xorg_testset_save_CFLAGS="$CFLAGS" 10272 10273if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10274 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10276$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10277if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10278 $as_echo_n "(cached) " >&6 10279else 10280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10281/* end confdefs.h. */ 10282int i; 10283_ACEOF 10284if ac_fn_c_try_compile "$LINENO"; then : 10285 xorg_cv_cc_flag_unknown_warning_option=yes 10286else 10287 xorg_cv_cc_flag_unknown_warning_option=no 10288fi 10289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10290fi 10291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10292$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10293 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10294 CFLAGS="$xorg_testset_save_CFLAGS" 10295fi 10296 10297if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10298 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10299 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10300 fi 10301 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10303$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10304if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10305 $as_echo_n "(cached) " >&6 10306else 10307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10308/* end confdefs.h. */ 10309int i; 10310_ACEOF 10311if ac_fn_c_try_compile "$LINENO"; then : 10312 xorg_cv_cc_flag_unused_command_line_argument=yes 10313else 10314 xorg_cv_cc_flag_unused_command_line_argument=no 10315fi 10316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10317fi 10318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10319$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10320 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10321 CFLAGS="$xorg_testset_save_CFLAGS" 10322fi 10323 10324found="no" 10325 10326 if test $found = "no" ; then 10327 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10328 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10329 fi 10330 10331 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10332 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10333 fi 10334 10335 CFLAGS="$CFLAGS -Werror" 10336 10337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10338$as_echo_n "checking if $CC supports -Werror... " >&6; } 10339 cacheid=xorg_cv_cc_flag__Werror 10340 if eval \${$cacheid+:} false; then : 10341 $as_echo_n "(cached) " >&6 10342else 10343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10344/* end confdefs.h. */ 10345int i; 10346int 10347main () 10348{ 10349 10350 ; 10351 return 0; 10352} 10353_ACEOF 10354if ac_fn_c_try_link "$LINENO"; then : 10355 eval $cacheid=yes 10356else 10357 eval $cacheid=no 10358fi 10359rm -f core conftest.err conftest.$ac_objext \ 10360 conftest$ac_exeext conftest.$ac_ext 10361fi 10362 10363 10364 CFLAGS="$xorg_testset_save_CFLAGS" 10365 10366 eval supported=\$$cacheid 10367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10368$as_echo "$supported" >&6; } 10369 if test "$supported" = "yes" ; then 10370 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10371 found="yes" 10372 fi 10373 fi 10374 10375 if test $found = "no" ; then 10376 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10377 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10378 fi 10379 10380 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10381 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10382 fi 10383 10384 CFLAGS="$CFLAGS -errwarn" 10385 10386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10387$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10388 cacheid=xorg_cv_cc_flag__errwarn 10389 if eval \${$cacheid+:} false; then : 10390 $as_echo_n "(cached) " >&6 10391else 10392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10393/* end confdefs.h. */ 10394int i; 10395int 10396main () 10397{ 10398 10399 ; 10400 return 0; 10401} 10402_ACEOF 10403if ac_fn_c_try_link "$LINENO"; then : 10404 eval $cacheid=yes 10405else 10406 eval $cacheid=no 10407fi 10408rm -f core conftest.err conftest.$ac_objext \ 10409 conftest$ac_exeext conftest.$ac_ext 10410fi 10411 10412 10413 CFLAGS="$xorg_testset_save_CFLAGS" 10414 10415 eval supported=\$$cacheid 10416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10417$as_echo "$supported" >&6; } 10418 if test "$supported" = "yes" ; then 10419 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10420 found="yes" 10421 fi 10422 fi 10423 10424 10425 10426# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10427# activate it with -Werror, so we add it here explicitly. 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441xorg_testset_save_CFLAGS="$CFLAGS" 10442 10443if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10444 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10446$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10447if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10448 $as_echo_n "(cached) " >&6 10449else 10450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10451/* end confdefs.h. */ 10452int i; 10453_ACEOF 10454if ac_fn_c_try_compile "$LINENO"; then : 10455 xorg_cv_cc_flag_unknown_warning_option=yes 10456else 10457 xorg_cv_cc_flag_unknown_warning_option=no 10458fi 10459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10460fi 10461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10462$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10463 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10464 CFLAGS="$xorg_testset_save_CFLAGS" 10465fi 10466 10467if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10469 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10470 fi 10471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10473$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10474if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10475 $as_echo_n "(cached) " >&6 10476else 10477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10478/* end confdefs.h. */ 10479int i; 10480_ACEOF 10481if ac_fn_c_try_compile "$LINENO"; then : 10482 xorg_cv_cc_flag_unused_command_line_argument=yes 10483else 10484 xorg_cv_cc_flag_unused_command_line_argument=no 10485fi 10486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10487fi 10488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10489$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10490 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10491 CFLAGS="$xorg_testset_save_CFLAGS" 10492fi 10493 10494found="no" 10495 10496 if test $found = "no" ; then 10497 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10498 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10499 fi 10500 10501 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10502 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10503 fi 10504 10505 CFLAGS="$CFLAGS -Werror=attributes" 10506 10507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10508$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10509 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh` 10510 if eval \${$cacheid+:} false; then : 10511 $as_echo_n "(cached) " >&6 10512else 10513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10514/* end confdefs.h. */ 10515int i; 10516int 10517main () 10518{ 10519 10520 ; 10521 return 0; 10522} 10523_ACEOF 10524if ac_fn_c_try_link "$LINENO"; then : 10525 eval $cacheid=yes 10526else 10527 eval $cacheid=no 10528fi 10529rm -f core conftest.err conftest.$ac_objext \ 10530 conftest$ac_exeext conftest.$ac_ext 10531fi 10532 10533 10534 CFLAGS="$xorg_testset_save_CFLAGS" 10535 10536 eval supported=\$$cacheid 10537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10538$as_echo "$supported" >&6; } 10539 if test "$supported" = "yes" ; then 10540 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10541 found="yes" 10542 fi 10543 fi 10544 10545 10546 10547if test "x$STRICT_COMPILE" = "xyes"; then 10548 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10549 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10550fi 10551 10552 10553 10554 10555 10556 10557cat >>confdefs.h <<_ACEOF 10558#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10559_ACEOF 10560 10561 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10562 if test "x$PVM" = "x"; then 10563 PVM="0" 10564 fi 10565 10566cat >>confdefs.h <<_ACEOF 10567#define PACKAGE_VERSION_MINOR $PVM 10568_ACEOF 10569 10570 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10571 if test "x$PVP" = "x"; then 10572 PVP="0" 10573 fi 10574 10575cat >>confdefs.h <<_ACEOF 10576#define PACKAGE_VERSION_PATCHLEVEL $PVP 10577_ACEOF 10578 10579 10580 10581CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10582mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10583|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10584echo 'git directory not found: installing possibly empty changelog.' >&2)" 10585 10586 10587 10588 10589macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10590INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10591mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10592|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10593echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10594 10595 10596 10597 10598 10599 10600if test x$APP_MAN_SUFFIX = x ; then 10601 APP_MAN_SUFFIX=1 10602fi 10603if test x$APP_MAN_DIR = x ; then 10604 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10605fi 10606 10607if test x$LIB_MAN_SUFFIX = x ; then 10608 LIB_MAN_SUFFIX=3 10609fi 10610if test x$LIB_MAN_DIR = x ; then 10611 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10612fi 10613 10614if test x$FILE_MAN_SUFFIX = x ; then 10615 case $host_os in 10616 solaris*) FILE_MAN_SUFFIX=4 ;; 10617 *) FILE_MAN_SUFFIX=5 ;; 10618 esac 10619fi 10620if test x$FILE_MAN_DIR = x ; then 10621 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10622fi 10623 10624if test x$MISC_MAN_SUFFIX = x ; then 10625 case $host_os in 10626 solaris*) MISC_MAN_SUFFIX=5 ;; 10627 *) MISC_MAN_SUFFIX=7 ;; 10628 esac 10629fi 10630if test x$MISC_MAN_DIR = x ; then 10631 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10632fi 10633 10634if test x$DRIVER_MAN_SUFFIX = x ; then 10635 case $host_os in 10636 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10637 *) DRIVER_MAN_SUFFIX=4 ;; 10638 esac 10639fi 10640if test x$DRIVER_MAN_DIR = x ; then 10641 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10642fi 10643 10644if test x$ADMIN_MAN_SUFFIX = x ; then 10645 case $host_os in 10646 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10647 *) ADMIN_MAN_SUFFIX=8 ;; 10648 esac 10649fi 10650if test x$ADMIN_MAN_DIR = x ; then 10651 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10652fi 10653 10654 10655 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665 10666 10667 10668XORG_MAN_PAGE="X Version 11" 10669 10670MAN_SUBSTS="\ 10671 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10672 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10673 -e 's|__xservername__|Xorg|g' \ 10674 -e 's|__xconfigfile__|xorg.conf|g' \ 10675 -e 's|__projectroot__|\$(prefix)|g' \ 10676 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10677 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10678 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10679 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10680 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10681 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10682 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10683 10684 10685 10686# Check whether --enable-silent-rules was given. 10687if test "${enable_silent_rules+set}" = set; then : 10688 enableval=$enable_silent_rules; 10689fi 10690 10691case $enable_silent_rules in # ((( 10692 yes) AM_DEFAULT_VERBOSITY=0;; 10693 no) AM_DEFAULT_VERBOSITY=1;; 10694 *) AM_DEFAULT_VERBOSITY=0;; 10695esac 10696am_make=${MAKE-make} 10697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10698$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10699if ${am_cv_make_support_nested_variables+:} false; then : 10700 $as_echo_n "(cached) " >&6 10701else 10702 if $as_echo 'TRUE=$(BAR$(V)) 10703BAR0=false 10704BAR1=true 10705V=1 10706am__doit: 10707 @$(TRUE) 10708.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10709 am_cv_make_support_nested_variables=yes 10710else 10711 am_cv_make_support_nested_variables=no 10712fi 10713fi 10714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10715$as_echo "$am_cv_make_support_nested_variables" >&6; } 10716if test $am_cv_make_support_nested_variables = yes; then 10717 AM_V='$(V)' 10718 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10719else 10720 AM_V=$AM_DEFAULT_VERBOSITY 10721 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10722fi 10723AM_BACKSLASH='\' 10724 10725 10726 10727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5 10728$as_echo_n "checking for gzopen in -lz... " >&6; } 10729if ${ac_cv_lib_z_gzopen+:} false; then : 10730 $as_echo_n "(cached) " >&6 10731else 10732 ac_check_lib_save_LIBS=$LIBS 10733LIBS="-lz $LIBS" 10734cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10735/* end confdefs.h. */ 10736 10737/* Override any GCC internal prototype to avoid an error. 10738 Use char because int might match the return type of a GCC 10739 builtin and then its argument prototype would still apply. */ 10740#ifdef __cplusplus 10741extern "C" 10742#endif 10743char gzopen (); 10744int 10745main () 10746{ 10747return gzopen (); 10748 ; 10749 return 0; 10750} 10751_ACEOF 10752if ac_fn_c_try_link "$LINENO"; then : 10753 ac_cv_lib_z_gzopen=yes 10754else 10755 ac_cv_lib_z_gzopen=no 10756fi 10757rm -f core conftest.err conftest.$ac_objext \ 10758 conftest$ac_exeext conftest.$ac_ext 10759LIBS=$ac_check_lib_save_LIBS 10760fi 10761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5 10762$as_echo "$ac_cv_lib_z_gzopen" >&6; } 10763if test "x$ac_cv_lib_z_gzopen" = xyes; then : 10764 cat >>confdefs.h <<_ACEOF 10765#define HAVE_LIBZ 1 10766_ACEOF 10767 10768 LIBS="-lz $LIBS" 10769 10770else 10771 as_fn_error $? "zlib is required, but was not found." "$LINENO" 5 10772fi 10773 10774 10775 10776# Check whether --with-bzip2 was given. 10777if test "${with_bzip2+set}" = set; then : 10778 withval=$with_bzip2; 10779else 10780 with_bzip2=no 10781fi 10782 10783if test "x$with_bzip2" = xyes; then 10784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzopen in -lbz2" >&5 10785$as_echo_n "checking for BZ2_bzopen in -lbz2... " >&6; } 10786if ${ac_cv_lib_bz2_BZ2_bzopen+:} false; then : 10787 $as_echo_n "(cached) " >&6 10788else 10789 ac_check_lib_save_LIBS=$LIBS 10790LIBS="-lbz2 $LIBS" 10791cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10792/* end confdefs.h. */ 10793 10794/* Override any GCC internal prototype to avoid an error. 10795 Use char because int might match the return type of a GCC 10796 builtin and then its argument prototype would still apply. */ 10797#ifdef __cplusplus 10798extern "C" 10799#endif 10800char BZ2_bzopen (); 10801int 10802main () 10803{ 10804return BZ2_bzopen (); 10805 ; 10806 return 0; 10807} 10808_ACEOF 10809if ac_fn_c_try_link "$LINENO"; then : 10810 ac_cv_lib_bz2_BZ2_bzopen=yes 10811else 10812 ac_cv_lib_bz2_BZ2_bzopen=no 10813fi 10814rm -f core conftest.err conftest.$ac_objext \ 10815 conftest$ac_exeext conftest.$ac_ext 10816LIBS=$ac_check_lib_save_LIBS 10817fi 10818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzopen" >&5 10819$as_echo "$ac_cv_lib_bz2_BZ2_bzopen" >&6; } 10820if test "x$ac_cv_lib_bz2_BZ2_bzopen" = xyes; then : 10821 cat >>confdefs.h <<_ACEOF 10822#define HAVE_LIBBZ2 1 10823_ACEOF 10824 10825 LIBS="-lbz2 $LIBS" 10826 10827else 10828 as_fn_error $? "*** libbz2 is required for bzip2 support" "$LINENO" 5 10829fi 10830 10831 10832$as_echo "#define X_BZIP2_FONT_COMPRESSION 1" >>confdefs.h 10833 10834fi 10835 10836# Checks for pkg-config packages 10837 10838pkg_failed=no 10839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKFONTSCALE" >&5 10840$as_echo_n "checking for MKFONTSCALE... " >&6; } 10841 10842if test -n "$MKFONTSCALE_CFLAGS"; then 10843 pkg_cv_MKFONTSCALE_CFLAGS="$MKFONTSCALE_CFLAGS" 10844 elif test -n "$PKG_CONFIG"; then 10845 if test -n "$PKG_CONFIG" && \ 10846 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontenc freetype2\""; } >&5 10847 ($PKG_CONFIG --exists --print-errors "fontenc freetype2") 2>&5 10848 ac_status=$? 10849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10850 test $ac_status = 0; }; then 10851 pkg_cv_MKFONTSCALE_CFLAGS=`$PKG_CONFIG --cflags "fontenc freetype2" 2>/dev/null` 10852else 10853 pkg_failed=yes 10854fi 10855 else 10856 pkg_failed=untried 10857fi 10858if test -n "$MKFONTSCALE_LIBS"; then 10859 pkg_cv_MKFONTSCALE_LIBS="$MKFONTSCALE_LIBS" 10860 elif test -n "$PKG_CONFIG"; then 10861 if test -n "$PKG_CONFIG" && \ 10862 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontenc freetype2\""; } >&5 10863 ($PKG_CONFIG --exists --print-errors "fontenc freetype2") 2>&5 10864 ac_status=$? 10865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10866 test $ac_status = 0; }; then 10867 pkg_cv_MKFONTSCALE_LIBS=`$PKG_CONFIG --libs "fontenc freetype2" 2>/dev/null` 10868else 10869 pkg_failed=yes 10870fi 10871 else 10872 pkg_failed=untried 10873fi 10874 10875 10876 10877if test $pkg_failed = yes; then 10878 10879if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10880 _pkg_short_errors_supported=yes 10881else 10882 _pkg_short_errors_supported=no 10883fi 10884 if test $_pkg_short_errors_supported = yes; then 10885 MKFONTSCALE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontenc freetype2" 2>&1` 10886 else 10887 MKFONTSCALE_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontenc freetype2" 2>&1` 10888 fi 10889 # Put the nasty error message in config.log where it belongs 10890 echo "$MKFONTSCALE_PKG_ERRORS" >&5 10891 10892 as_fn_error $? "Package requirements (fontenc freetype2) were not met: 10893 10894$MKFONTSCALE_PKG_ERRORS 10895 10896Consider adjusting the PKG_CONFIG_PATH environment variable if you 10897installed software in a non-standard prefix. 10898 10899Alternatively, you may set the environment variables MKFONTSCALE_CFLAGS 10900and MKFONTSCALE_LIBS to avoid the need to call pkg-config. 10901See the pkg-config man page for more details. 10902" "$LINENO" 5 10903elif test $pkg_failed = untried; then 10904 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10905$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10906as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10907is in your PATH or set the PKG_CONFIG environment variable to the full 10908path to pkg-config. 10909 10910Alternatively, you may set the environment variables MKFONTSCALE_CFLAGS 10911and MKFONTSCALE_LIBS to avoid the need to call pkg-config. 10912See the pkg-config man page for more details. 10913 10914To get pkg-config, see <http://pkg-config.freedesktop.org/>. 10915See \`config.log' for more details" "$LINENO" 5; } 10916else 10917 MKFONTSCALE_CFLAGS=$pkg_cv_MKFONTSCALE_CFLAGS 10918 MKFONTSCALE_LIBS=$pkg_cv_MKFONTSCALE_LIBS 10919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10920$as_echo "yes" >&6; } 10921 : 10922fi 10923 10924pkg_failed=no 10925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5 10926$as_echo_n "checking for X11... " >&6; } 10927 10928if test -n "$X11_CFLAGS"; then 10929 pkg_cv_X11_CFLAGS="$X11_CFLAGS" 10930 elif test -n "$PKG_CONFIG"; then 10931 if test -n "$PKG_CONFIG" && \ 10932 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5 10933 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5 10934 ac_status=$? 10935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10936 test $ac_status = 0; }; then 10937 pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null` 10938else 10939 pkg_failed=yes 10940fi 10941 else 10942 pkg_failed=untried 10943fi 10944if test -n "$X11_LIBS"; then 10945 pkg_cv_X11_LIBS="$X11_LIBS" 10946 elif test -n "$PKG_CONFIG"; then 10947 if test -n "$PKG_CONFIG" && \ 10948 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5 10949 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5 10950 ac_status=$? 10951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10952 test $ac_status = 0; }; then 10953 pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null` 10954else 10955 pkg_failed=yes 10956fi 10957 else 10958 pkg_failed=untried 10959fi 10960 10961 10962 10963if test $pkg_failed = yes; then 10964 10965if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10966 _pkg_short_errors_supported=yes 10967else 10968 _pkg_short_errors_supported=no 10969fi 10970 if test $_pkg_short_errors_supported = yes; then 10971 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto" 2>&1` 10972 else 10973 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto" 2>&1` 10974 fi 10975 # Put the nasty error message in config.log where it belongs 10976 echo "$X11_PKG_ERRORS" >&5 10977 10978 as_fn_error $? "Package requirements (xproto) were not met: 10979 10980$X11_PKG_ERRORS 10981 10982Consider adjusting the PKG_CONFIG_PATH environment variable if you 10983installed software in a non-standard prefix. 10984 10985Alternatively, you may set the environment variables X11_CFLAGS 10986and X11_LIBS to avoid the need to call pkg-config. 10987See the pkg-config man page for more details. 10988" "$LINENO" 5 10989elif test $pkg_failed = untried; then 10990 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10991$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10992as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10993is in your PATH or set the PKG_CONFIG environment variable to the full 10994path to pkg-config. 10995 10996Alternatively, you may set the environment variables X11_CFLAGS 10997and X11_LIBS to avoid the need to call pkg-config. 10998See the pkg-config man page for more details. 10999 11000To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11001See \`config.log' for more details" "$LINENO" 5; } 11002else 11003 X11_CFLAGS=$pkg_cv_X11_CFLAGS 11004 X11_LIBS=$pkg_cv_X11_LIBS 11005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11006$as_echo "yes" >&6; } 11007 : 11008fi 11009 11010 11011 11012 11013 11014 11015# Check whether --with-lint was given. 11016if test "${with_lint+set}" = set; then : 11017 withval=$with_lint; use_lint=$withval 11018else 11019 use_lint=no 11020fi 11021 11022 11023# Obtain platform specific info like program name and options 11024# The lint program on FreeBSD and NetBSD is different from the one on Solaris 11025case $host_os in 11026 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 11027 lint_name=splint 11028 lint_options="-badflag" 11029 ;; 11030 *freebsd* | *netbsd*) 11031 lint_name=lint 11032 lint_options="-u -b" 11033 ;; 11034 *solaris*) 11035 lint_name=lint 11036 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 11037 ;; 11038esac 11039 11040# Test for the presence of the program (either guessed by the code or spelled out by the user) 11041if test "x$use_lint" = x"yes" ; then 11042 # Extract the first word of "$lint_name", so it can be a program name with args. 11043set dummy $lint_name; ac_word=$2 11044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11045$as_echo_n "checking for $ac_word... " >&6; } 11046if ${ac_cv_path_LINT+:} false; then : 11047 $as_echo_n "(cached) " >&6 11048else 11049 case $LINT in 11050 [\\/]* | ?:[\\/]*) 11051 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 11052 ;; 11053 *) 11054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11055for as_dir in $PATH 11056do 11057 IFS=$as_save_IFS 11058 test -z "$as_dir" && as_dir=. 11059 for ac_exec_ext in '' $ac_executable_extensions; do 11060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11061 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext" 11062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11063 break 2 11064 fi 11065done 11066 done 11067IFS=$as_save_IFS 11068 11069 ;; 11070esac 11071fi 11072LINT=$ac_cv_path_LINT 11073if test -n "$LINT"; then 11074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 11075$as_echo "$LINT" >&6; } 11076else 11077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11078$as_echo "no" >&6; } 11079fi 11080 11081 11082 if test "x$LINT" = "x"; then 11083 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 11084 fi 11085elif test "x$use_lint" = x"no" ; then 11086 if test "x$LINT" != "x"; then 11087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 11088$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 11089 fi 11090else 11091 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 11092fi 11093 11094# User supplied flags override default flags 11095if test "x$LINT_FLAGS" != "x"; then 11096 lint_options=$LINT_FLAGS 11097fi 11098 11099LINT_FLAGS=$lint_options 11100 11101 if test "x$LINT" != x; then 11102 LINT_TRUE= 11103 LINT_FALSE='#' 11104else 11105 LINT_TRUE='#' 11106 LINT_FALSE= 11107fi 11108 11109 11110 11111 11112ac_config_files="$ac_config_files Makefile man/Makefile" 11113 11114cat >confcache <<\_ACEOF 11115# This file is a shell script that caches the results of configure 11116# tests run on this system so they can be shared between configure 11117# scripts and configure runs, see configure's option --config-cache. 11118# It is not useful on other systems. If it contains results you don't 11119# want to keep, you may remove or edit it. 11120# 11121# config.status only pays attention to the cache file if you give it 11122# the --recheck option to rerun configure. 11123# 11124# `ac_cv_env_foo' variables (set or unset) will be overridden when 11125# loading this file, other *unset* `ac_cv_foo' will be assigned the 11126# following values. 11127 11128_ACEOF 11129 11130# The following way of writing the cache mishandles newlines in values, 11131# but we know of no workaround that is simple, portable, and efficient. 11132# So, we kill variables containing newlines. 11133# Ultrix sh set writes to stderr and can't be redirected directly, 11134# and sets the high bit in the cache file unless we assign to the vars. 11135( 11136 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11137 eval ac_val=\$$ac_var 11138 case $ac_val in #( 11139 *${as_nl}*) 11140 case $ac_var in #( 11141 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11142$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11143 esac 11144 case $ac_var in #( 11145 _ | IFS | as_nl) ;; #( 11146 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11147 *) { eval $ac_var=; unset $ac_var;} ;; 11148 esac ;; 11149 esac 11150 done 11151 11152 (set) 2>&1 | 11153 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11154 *${as_nl}ac_space=\ *) 11155 # `set' does not quote correctly, so add quotes: double-quote 11156 # substitution turns \\\\ into \\, and sed turns \\ into \. 11157 sed -n \ 11158 "s/'/'\\\\''/g; 11159 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11160 ;; #( 11161 *) 11162 # `set' quotes correctly as required by POSIX, so do not add quotes. 11163 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11164 ;; 11165 esac | 11166 sort 11167) | 11168 sed ' 11169 /^ac_cv_env_/b end 11170 t clear 11171 :clear 11172 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11173 t end 11174 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11175 :end' >>confcache 11176if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11177 if test -w "$cache_file"; then 11178 if test "x$cache_file" != "x/dev/null"; then 11179 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11180$as_echo "$as_me: updating cache $cache_file" >&6;} 11181 if test ! -f "$cache_file" || test -h "$cache_file"; then 11182 cat confcache >"$cache_file" 11183 else 11184 case $cache_file in #( 11185 */* | ?:*) 11186 mv -f confcache "$cache_file"$$ && 11187 mv -f "$cache_file"$$ "$cache_file" ;; #( 11188 *) 11189 mv -f confcache "$cache_file" ;; 11190 esac 11191 fi 11192 fi 11193 else 11194 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11195$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11196 fi 11197fi 11198rm -f confcache 11199 11200test "x$prefix" = xNONE && prefix=$ac_default_prefix 11201# Let make expand exec_prefix. 11202test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11203 11204DEFS=-DHAVE_CONFIG_H 11205 11206ac_libobjs= 11207ac_ltlibobjs= 11208U= 11209for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11210 # 1. Remove the extension, and $U if already installed. 11211 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11212 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11213 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11214 # will be set to the directory where LIBOBJS objects are built. 11215 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11216 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11217done 11218LIBOBJS=$ac_libobjs 11219 11220LTLIBOBJS=$ac_ltlibobjs 11221 11222 11223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11224$as_echo_n "checking that generated files are newer than configure... " >&6; } 11225 if test -n "$am_sleep_pid"; then 11226 # Hide warnings about reused PIDs. 11227 wait $am_sleep_pid 2>/dev/null 11228 fi 11229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 11230$as_echo "done" >&6; } 11231if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11232 as_fn_error $? "conditional \"AMDEP\" was never defined. 11233Usually this means the macro was only invoked conditionally." "$LINENO" 5 11234fi 11235if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11236 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11237Usually this means the macro was only invoked conditionally." "$LINENO" 5 11238fi 11239 if test -n "$EXEEXT"; then 11240 am__EXEEXT_TRUE= 11241 am__EXEEXT_FALSE='#' 11242else 11243 am__EXEEXT_TRUE='#' 11244 am__EXEEXT_FALSE= 11245fi 11246 11247if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 11248 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 11249Usually this means the macro was only invoked conditionally." "$LINENO" 5 11250fi 11251if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 11252 as_fn_error $? "conditional \"LINT\" was never defined. 11253Usually this means the macro was only invoked conditionally." "$LINENO" 5 11254fi 11255 11256: "${CONFIG_STATUS=./config.status}" 11257ac_write_fail=0 11258ac_clean_files_save=$ac_clean_files 11259ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11260{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11261$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11262as_write_fail=0 11263cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11264#! $SHELL 11265# Generated by $as_me. 11266# Run this file to recreate the current configuration. 11267# Compiler output produced by configure, useful for debugging 11268# configure, is in config.log if it exists. 11269 11270debug=false 11271ac_cs_recheck=false 11272ac_cs_silent=false 11273 11274SHELL=\${CONFIG_SHELL-$SHELL} 11275export SHELL 11276_ASEOF 11277cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11278## -------------------- ## 11279## M4sh Initialization. ## 11280## -------------------- ## 11281 11282# Be more Bourne compatible 11283DUALCASE=1; export DUALCASE # for MKS sh 11284if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 11285 emulate sh 11286 NULLCMD=: 11287 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11288 # is contrary to our usage. Disable this feature. 11289 alias -g '${1+"$@"}'='"$@"' 11290 setopt NO_GLOB_SUBST 11291else 11292 case `(set -o) 2>/dev/null` in #( 11293 *posix*) : 11294 set -o posix ;; #( 11295 *) : 11296 ;; 11297esac 11298fi 11299 11300 11301as_nl=' 11302' 11303export as_nl 11304# Printing a long string crashes Solaris 7 /usr/bin/printf. 11305as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11306as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11307as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11308# Prefer a ksh shell builtin over an external printf program on Solaris, 11309# but without wasting forks for bash or zsh. 11310if test -z "$BASH_VERSION$ZSH_VERSION" \ 11311 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 11312 as_echo='print -r --' 11313 as_echo_n='print -rn --' 11314elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11315 as_echo='printf %s\n' 11316 as_echo_n='printf %s' 11317else 11318 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11319 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11320 as_echo_n='/usr/ucb/echo -n' 11321 else 11322 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11323 as_echo_n_body='eval 11324 arg=$1; 11325 case $arg in #( 11326 *"$as_nl"*) 11327 expr "X$arg" : "X\\(.*\\)$as_nl"; 11328 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11329 esac; 11330 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11331 ' 11332 export as_echo_n_body 11333 as_echo_n='sh -c $as_echo_n_body as_echo' 11334 fi 11335 export as_echo_body 11336 as_echo='sh -c $as_echo_body as_echo' 11337fi 11338 11339# The user is always right. 11340if test "${PATH_SEPARATOR+set}" != set; then 11341 PATH_SEPARATOR=: 11342 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11343 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11344 PATH_SEPARATOR=';' 11345 } 11346fi 11347 11348 11349# IFS 11350# We need space, tab and new line, in precisely that order. Quoting is 11351# there to prevent editors from complaining about space-tab. 11352# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11353# splitting by setting IFS to empty value.) 11354IFS=" "" $as_nl" 11355 11356# Find who we are. Look in the path if we contain no directory separator. 11357as_myself= 11358case $0 in #(( 11359 *[\\/]* ) as_myself=$0 ;; 11360 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11361for as_dir in $PATH 11362do 11363 IFS=$as_save_IFS 11364 test -z "$as_dir" && as_dir=. 11365 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11366 done 11367IFS=$as_save_IFS 11368 11369 ;; 11370esac 11371# We did not find ourselves, most probably we were run as `sh COMMAND' 11372# in which case we are not to be found in the path. 11373if test "x$as_myself" = x; then 11374 as_myself=$0 11375fi 11376if test ! -f "$as_myself"; then 11377 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11378 exit 1 11379fi 11380 11381# Unset variables that we do not need and which cause bugs (e.g. in 11382# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 11383# suppresses any "Segmentation fault" message there. '((' could 11384# trigger a bug in pdksh 5.2.14. 11385for as_var in BASH_ENV ENV MAIL MAILPATH 11386do eval test x\${$as_var+set} = xset \ 11387 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11388done 11389PS1='$ ' 11390PS2='> ' 11391PS4='+ ' 11392 11393# NLS nuisances. 11394LC_ALL=C 11395export LC_ALL 11396LANGUAGE=C 11397export LANGUAGE 11398 11399# CDPATH. 11400(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11401 11402 11403# as_fn_error STATUS ERROR [LINENO LOG_FD] 11404# ---------------------------------------- 11405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11407# script with STATUS, using 1 if that was 0. 11408as_fn_error () 11409{ 11410 as_status=$1; test $as_status -eq 0 && as_status=1 11411 if test "$4"; then 11412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11414 fi 11415 $as_echo "$as_me: error: $2" >&2 11416 as_fn_exit $as_status 11417} # as_fn_error 11418 11419 11420# as_fn_set_status STATUS 11421# ----------------------- 11422# Set $? to STATUS, without forking. 11423as_fn_set_status () 11424{ 11425 return $1 11426} # as_fn_set_status 11427 11428# as_fn_exit STATUS 11429# ----------------- 11430# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11431as_fn_exit () 11432{ 11433 set +e 11434 as_fn_set_status $1 11435 exit $1 11436} # as_fn_exit 11437 11438# as_fn_unset VAR 11439# --------------- 11440# Portably unset VAR. 11441as_fn_unset () 11442{ 11443 { eval $1=; unset $1;} 11444} 11445as_unset=as_fn_unset 11446# as_fn_append VAR VALUE 11447# ---------------------- 11448# Append the text in VALUE to the end of the definition contained in VAR. Take 11449# advantage of any shell optimizations that allow amortized linear growth over 11450# repeated appends, instead of the typical quadratic growth present in naive 11451# implementations. 11452if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11453 eval 'as_fn_append () 11454 { 11455 eval $1+=\$2 11456 }' 11457else 11458 as_fn_append () 11459 { 11460 eval $1=\$$1\$2 11461 } 11462fi # as_fn_append 11463 11464# as_fn_arith ARG... 11465# ------------------ 11466# Perform arithmetic evaluation on the ARGs, and store the result in the 11467# global $as_val. Take advantage of shells that can avoid forks. The arguments 11468# must be portable across $(()) and expr. 11469if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11470 eval 'as_fn_arith () 11471 { 11472 as_val=$(( $* )) 11473 }' 11474else 11475 as_fn_arith () 11476 { 11477 as_val=`expr "$@" || test $? -eq 1` 11478 } 11479fi # as_fn_arith 11480 11481 11482if expr a : '\(a\)' >/dev/null 2>&1 && 11483 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11484 as_expr=expr 11485else 11486 as_expr=false 11487fi 11488 11489if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11490 as_basename=basename 11491else 11492 as_basename=false 11493fi 11494 11495if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11496 as_dirname=dirname 11497else 11498 as_dirname=false 11499fi 11500 11501as_me=`$as_basename -- "$0" || 11502$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11503 X"$0" : 'X\(//\)$' \| \ 11504 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11505$as_echo X/"$0" | 11506 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11507 s//\1/ 11508 q 11509 } 11510 /^X\/\(\/\/\)$/{ 11511 s//\1/ 11512 q 11513 } 11514 /^X\/\(\/\).*/{ 11515 s//\1/ 11516 q 11517 } 11518 s/.*/./; q'` 11519 11520# Avoid depending upon Character Ranges. 11521as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11522as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11523as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11524as_cr_digits='0123456789' 11525as_cr_alnum=$as_cr_Letters$as_cr_digits 11526 11527ECHO_C= ECHO_N= ECHO_T= 11528case `echo -n x` in #((((( 11529-n*) 11530 case `echo 'xy\c'` in 11531 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11532 xy) ECHO_C='\c';; 11533 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11534 ECHO_T=' ';; 11535 esac;; 11536*) 11537 ECHO_N='-n';; 11538esac 11539 11540rm -f conf$$ conf$$.exe conf$$.file 11541if test -d conf$$.dir; then 11542 rm -f conf$$.dir/conf$$.file 11543else 11544 rm -f conf$$.dir 11545 mkdir conf$$.dir 2>/dev/null 11546fi 11547if (echo >conf$$.file) 2>/dev/null; then 11548 if ln -s conf$$.file conf$$ 2>/dev/null; then 11549 as_ln_s='ln -s' 11550 # ... but there are two gotchas: 11551 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11552 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11553 # In both cases, we have to default to `cp -p'. 11554 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11555 as_ln_s='cp -p' 11556 elif ln conf$$.file conf$$ 2>/dev/null; then 11557 as_ln_s=ln 11558 else 11559 as_ln_s='cp -p' 11560 fi 11561else 11562 as_ln_s='cp -p' 11563fi 11564rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11565rmdir conf$$.dir 2>/dev/null 11566 11567 11568# as_fn_mkdir_p 11569# ------------- 11570# Create "$as_dir" as a directory, including parents if necessary. 11571as_fn_mkdir_p () 11572{ 11573 11574 case $as_dir in #( 11575 -*) as_dir=./$as_dir;; 11576 esac 11577 test -d "$as_dir" || eval $as_mkdir_p || { 11578 as_dirs= 11579 while :; do 11580 case $as_dir in #( 11581 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11582 *) as_qdir=$as_dir;; 11583 esac 11584 as_dirs="'$as_qdir' $as_dirs" 11585 as_dir=`$as_dirname -- "$as_dir" || 11586$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11587 X"$as_dir" : 'X\(//\)[^/]' \| \ 11588 X"$as_dir" : 'X\(//\)$' \| \ 11589 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11590$as_echo X"$as_dir" | 11591 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11592 s//\1/ 11593 q 11594 } 11595 /^X\(\/\/\)[^/].*/{ 11596 s//\1/ 11597 q 11598 } 11599 /^X\(\/\/\)$/{ 11600 s//\1/ 11601 q 11602 } 11603 /^X\(\/\).*/{ 11604 s//\1/ 11605 q 11606 } 11607 s/.*/./; q'` 11608 test -d "$as_dir" && break 11609 done 11610 test -z "$as_dirs" || eval "mkdir $as_dirs" 11611 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11612 11613 11614} # as_fn_mkdir_p 11615if mkdir -p . 2>/dev/null; then 11616 as_mkdir_p='mkdir -p "$as_dir"' 11617else 11618 test -d ./-p && rmdir ./-p 11619 as_mkdir_p=false 11620fi 11621 11622if test -x / >/dev/null 2>&1; then 11623 as_test_x='test -x' 11624else 11625 if ls -dL / >/dev/null 2>&1; then 11626 as_ls_L_option=L 11627 else 11628 as_ls_L_option= 11629 fi 11630 as_test_x=' 11631 eval sh -c '\'' 11632 if test -d "$1"; then 11633 test -d "$1/."; 11634 else 11635 case $1 in #( 11636 -*)set "./$1";; 11637 esac; 11638 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 11639 ???[sx]*):;;*)false;;esac;fi 11640 '\'' sh 11641 ' 11642fi 11643as_executable_p=$as_test_x 11644 11645# Sed expression to map a string onto a valid CPP name. 11646as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11647 11648# Sed expression to map a string onto a valid variable name. 11649as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11650 11651 11652exec 6>&1 11653## ----------------------------------- ## 11654## Main body of $CONFIG_STATUS script. ## 11655## ----------------------------------- ## 11656_ASEOF 11657test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11658 11659cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11660# Save the log message, to keep $0 and so on meaningful, and to 11661# report actual input values of CONFIG_FILES etc. instead of their 11662# values after options handling. 11663ac_log=" 11664This file was extended by mkfontscale $as_me 1.1.1, which was 11665generated by GNU Autoconf 2.68. Invocation command line was 11666 11667 CONFIG_FILES = $CONFIG_FILES 11668 CONFIG_HEADERS = $CONFIG_HEADERS 11669 CONFIG_LINKS = $CONFIG_LINKS 11670 CONFIG_COMMANDS = $CONFIG_COMMANDS 11671 $ $0 $@ 11672 11673on `(hostname || uname -n) 2>/dev/null | sed 1q` 11674" 11675 11676_ACEOF 11677 11678case $ac_config_files in *" 11679"*) set x $ac_config_files; shift; ac_config_files=$*;; 11680esac 11681 11682case $ac_config_headers in *" 11683"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11684esac 11685 11686 11687cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11688# Files that config.status was made for. 11689config_files="$ac_config_files" 11690config_headers="$ac_config_headers" 11691config_commands="$ac_config_commands" 11692 11693_ACEOF 11694 11695cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11696ac_cs_usage="\ 11697\`$as_me' instantiates files and other configuration actions 11698from templates according to the current configuration. Unless the files 11699and actions are specified as TAGs, all are instantiated by default. 11700 11701Usage: $0 [OPTION]... [TAG]... 11702 11703 -h, --help print this help, then exit 11704 -V, --version print version number and configuration settings, then exit 11705 --config print configuration, then exit 11706 -q, --quiet, --silent 11707 do not print progress messages 11708 -d, --debug don't remove temporary files 11709 --recheck update $as_me by reconfiguring in the same conditions 11710 --file=FILE[:TEMPLATE] 11711 instantiate the configuration file FILE 11712 --header=FILE[:TEMPLATE] 11713 instantiate the configuration header FILE 11714 11715Configuration files: 11716$config_files 11717 11718Configuration headers: 11719$config_headers 11720 11721Configuration commands: 11722$config_commands 11723 11724Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 11725 11726_ACEOF 11727cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11728ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11729ac_cs_version="\\ 11730mkfontscale config.status 1.1.1 11731configured by $0, generated by GNU Autoconf 2.68, 11732 with options \\"\$ac_cs_config\\" 11733 11734Copyright (C) 2010 Free Software Foundation, Inc. 11735This config.status script is free software; the Free Software Foundation 11736gives unlimited permission to copy, distribute and modify it." 11737 11738ac_pwd='$ac_pwd' 11739srcdir='$srcdir' 11740INSTALL='$INSTALL' 11741MKDIR_P='$MKDIR_P' 11742AWK='$AWK' 11743test -n "\$AWK" || AWK=awk 11744_ACEOF 11745 11746cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11747# The default lists apply if the user does not specify any file. 11748ac_need_defaults=: 11749while test $# != 0 11750do 11751 case $1 in 11752 --*=?*) 11753 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11754 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11755 ac_shift=: 11756 ;; 11757 --*=) 11758 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11759 ac_optarg= 11760 ac_shift=: 11761 ;; 11762 *) 11763 ac_option=$1 11764 ac_optarg=$2 11765 ac_shift=shift 11766 ;; 11767 esac 11768 11769 case $ac_option in 11770 # Handling of the options. 11771 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11772 ac_cs_recheck=: ;; 11773 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11774 $as_echo "$ac_cs_version"; exit ;; 11775 --config | --confi | --conf | --con | --co | --c ) 11776 $as_echo "$ac_cs_config"; exit ;; 11777 --debug | --debu | --deb | --de | --d | -d ) 11778 debug=: ;; 11779 --file | --fil | --fi | --f ) 11780 $ac_shift 11781 case $ac_optarg in 11782 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11783 '') as_fn_error $? "missing file argument" ;; 11784 esac 11785 as_fn_append CONFIG_FILES " '$ac_optarg'" 11786 ac_need_defaults=false;; 11787 --header | --heade | --head | --hea ) 11788 $ac_shift 11789 case $ac_optarg in 11790 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11791 esac 11792 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11793 ac_need_defaults=false;; 11794 --he | --h) 11795 # Conflict between --help and --header 11796 as_fn_error $? "ambiguous option: \`$1' 11797Try \`$0 --help' for more information.";; 11798 --help | --hel | -h ) 11799 $as_echo "$ac_cs_usage"; exit ;; 11800 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11801 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11802 ac_cs_silent=: ;; 11803 11804 # This is an error. 11805 -*) as_fn_error $? "unrecognized option: \`$1' 11806Try \`$0 --help' for more information." ;; 11807 11808 *) as_fn_append ac_config_targets " $1" 11809 ac_need_defaults=false ;; 11810 11811 esac 11812 shift 11813done 11814 11815ac_configure_extra_args= 11816 11817if $ac_cs_silent; then 11818 exec 6>/dev/null 11819 ac_configure_extra_args="$ac_configure_extra_args --silent" 11820fi 11821 11822_ACEOF 11823cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11824if \$ac_cs_recheck; then 11825 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11826 shift 11827 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11828 CONFIG_SHELL='$SHELL' 11829 export CONFIG_SHELL 11830 exec "\$@" 11831fi 11832 11833_ACEOF 11834cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11835exec 5>>config.log 11836{ 11837 echo 11838 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11839## Running $as_me. ## 11840_ASBOX 11841 $as_echo "$ac_log" 11842} >&5 11843 11844_ACEOF 11845cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11846# 11847# INIT-COMMANDS 11848# 11849AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 11850 11851_ACEOF 11852 11853cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11854 11855# Handling of arguments. 11856for ac_config_target in $ac_config_targets 11857do 11858 case $ac_config_target in 11859 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11860 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11861 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11862 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 11863 11864 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11865 esac 11866done 11867 11868 11869# If the user did not use the arguments to specify the items to instantiate, 11870# then the envvar interface is used. Set only those that are not. 11871# We use the long form for the default assignment because of an extremely 11872# bizarre bug on SunOS 4.1.3. 11873if $ac_need_defaults; then 11874 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11875 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11876 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11877fi 11878 11879# Have a temporary directory for convenience. Make it in the build tree 11880# simply because there is no reason against having it here, and in addition, 11881# creating and moving files from /tmp can sometimes cause problems. 11882# Hook for its removal unless debugging. 11883# Note that there is a small window in which the directory will not be cleaned: 11884# after its creation but before its name has been assigned to `$tmp'. 11885$debug || 11886{ 11887 tmp= ac_tmp= 11888 trap 'exit_status=$? 11889 : "${ac_tmp:=$tmp}" 11890 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11891' 0 11892 trap 'as_fn_exit 1' 1 2 13 15 11893} 11894# Create a (secure) tmp directory for tmp files. 11895 11896{ 11897 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11898 test -d "$tmp" 11899} || 11900{ 11901 tmp=./conf$$-$RANDOM 11902 (umask 077 && mkdir "$tmp") 11903} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11904ac_tmp=$tmp 11905 11906# Set up the scripts for CONFIG_FILES section. 11907# No need to generate them if there are no CONFIG_FILES. 11908# This happens for instance with `./config.status config.h'. 11909if test -n "$CONFIG_FILES"; then 11910 11911 11912ac_cr=`echo X | tr X '\015'` 11913# On cygwin, bash can eat \r inside `` if the user requested igncr. 11914# But we know of no other shell where ac_cr would be empty at this 11915# point, so we can use a bashism as a fallback. 11916if test "x$ac_cr" = x; then 11917 eval ac_cr=\$\'\\r\' 11918fi 11919ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11920if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11921 ac_cs_awk_cr='\\r' 11922else 11923 ac_cs_awk_cr=$ac_cr 11924fi 11925 11926echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 11927_ACEOF 11928 11929 11930{ 11931 echo "cat >conf$$subs.awk <<_ACEOF" && 11932 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11933 echo "_ACEOF" 11934} >conf$$subs.sh || 11935 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11936ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11937ac_delim='%!_!# ' 11938for ac_last_try in false false false false false :; do 11939 . ./conf$$subs.sh || 11940 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11941 11942 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 11943 if test $ac_delim_n = $ac_delim_num; then 11944 break 11945 elif $ac_last_try; then 11946 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11947 else 11948 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11949 fi 11950done 11951rm -f conf$$subs.sh 11952 11953cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11954cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 11955_ACEOF 11956sed -n ' 11957h 11958s/^/S["/; s/!.*/"]=/ 11959p 11960g 11961s/^[^!]*!// 11962:repl 11963t repl 11964s/'"$ac_delim"'$// 11965t delim 11966:nl 11967h 11968s/\(.\{148\}\)..*/\1/ 11969t more1 11970s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 11971p 11972n 11973b repl 11974:more1 11975s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11976p 11977g 11978s/.\{148\}// 11979t nl 11980:delim 11981h 11982s/\(.\{148\}\)..*/\1/ 11983t more2 11984s/["\\]/\\&/g; s/^/"/; s/$/"/ 11985p 11986b 11987:more2 11988s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11989p 11990g 11991s/.\{148\}// 11992t delim 11993' <conf$$subs.awk | sed ' 11994/^[^""]/{ 11995 N 11996 s/\n// 11997} 11998' >>$CONFIG_STATUS || ac_write_fail=1 11999rm -f conf$$subs.awk 12000cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12001_ACAWK 12002cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12003 for (key in S) S_is_set[key] = 1 12004 FS = "" 12005 12006} 12007{ 12008 line = $ 0 12009 nfields = split(line, field, "@") 12010 substed = 0 12011 len = length(field[1]) 12012 for (i = 2; i < nfields; i++) { 12013 key = field[i] 12014 keylen = length(key) 12015 if (S_is_set[key]) { 12016 value = S[key] 12017 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12018 len += length(value) + length(field[++i]) 12019 substed = 1 12020 } else 12021 len += 1 + keylen 12022 } 12023 12024 print line 12025} 12026 12027_ACAWK 12028_ACEOF 12029cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12030if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12031 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12032else 12033 cat 12034fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12035 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12036_ACEOF 12037 12038# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12039# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12040# trailing colons and then remove the whole line if VPATH becomes empty 12041# (actually we leave an empty line to preserve line numbers). 12042if test "x$srcdir" = x.; then 12043 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12044h 12045s/// 12046s/^/:/ 12047s/[ ]*$/:/ 12048s/:\$(srcdir):/:/g 12049s/:\${srcdir}:/:/g 12050s/:@srcdir@:/:/g 12051s/^:*// 12052s/:*$// 12053x 12054s/\(=[ ]*\).*/\1/ 12055G 12056s/\n// 12057s/^[^=]*=[ ]*$// 12058}' 12059fi 12060 12061cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12062fi # test -n "$CONFIG_FILES" 12063 12064# Set up the scripts for CONFIG_HEADERS section. 12065# No need to generate them if there are no CONFIG_HEADERS. 12066# This happens for instance with `./config.status Makefile'. 12067if test -n "$CONFIG_HEADERS"; then 12068cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12069BEGIN { 12070_ACEOF 12071 12072# Transform confdefs.h into an awk script `defines.awk', embedded as 12073# here-document in config.status, that substitutes the proper values into 12074# config.h.in to produce config.h. 12075 12076# Create a delimiter string that does not exist in confdefs.h, to ease 12077# handling of long lines. 12078ac_delim='%!_!# ' 12079for ac_last_try in false false :; do 12080 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12081 if test -z "$ac_tt"; then 12082 break 12083 elif $ac_last_try; then 12084 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12085 else 12086 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12087 fi 12088done 12089 12090# For the awk script, D is an array of macro values keyed by name, 12091# likewise P contains macro parameters if any. Preserve backslash 12092# newline sequences. 12093 12094ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12095sed -n ' 12096s/.\{148\}/&'"$ac_delim"'/g 12097t rset 12098:rset 12099s/^[ ]*#[ ]*define[ ][ ]*/ / 12100t def 12101d 12102:def 12103s/\\$// 12104t bsnl 12105s/["\\]/\\&/g 12106s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12107D["\1"]=" \3"/p 12108s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12109d 12110:bsnl 12111s/["\\]/\\&/g 12112s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12113D["\1"]=" \3\\\\\\n"\\/p 12114t cont 12115s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12116t cont 12117d 12118:cont 12119n 12120s/.\{148\}/&'"$ac_delim"'/g 12121t clear 12122:clear 12123s/\\$// 12124t bsnlc 12125s/["\\]/\\&/g; s/^/"/; s/$/"/p 12126d 12127:bsnlc 12128s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12129b cont 12130' <confdefs.h | sed ' 12131s/'"$ac_delim"'/"\\\ 12132"/g' >>$CONFIG_STATUS || ac_write_fail=1 12133 12134cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12135 for (key in D) D_is_set[key] = 1 12136 FS = "" 12137} 12138/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12139 line = \$ 0 12140 split(line, arg, " ") 12141 if (arg[1] == "#") { 12142 defundef = arg[2] 12143 mac1 = arg[3] 12144 } else { 12145 defundef = substr(arg[1], 2) 12146 mac1 = arg[2] 12147 } 12148 split(mac1, mac2, "(") #) 12149 macro = mac2[1] 12150 prefix = substr(line, 1, index(line, defundef) - 1) 12151 if (D_is_set[macro]) { 12152 # Preserve the white space surrounding the "#". 12153 print prefix "define", macro P[macro] D[macro] 12154 next 12155 } else { 12156 # Replace #undef with comments. This is necessary, for example, 12157 # in the case of _POSIX_SOURCE, which is predefined and required 12158 # on some systems where configure will not decide to define it. 12159 if (defundef == "undef") { 12160 print "/*", prefix defundef, macro, "*/" 12161 next 12162 } 12163 } 12164} 12165{ print } 12166_ACAWK 12167_ACEOF 12168cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12169 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12170fi # test -n "$CONFIG_HEADERS" 12171 12172 12173eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12174shift 12175for ac_tag 12176do 12177 case $ac_tag in 12178 :[FHLC]) ac_mode=$ac_tag; continue;; 12179 esac 12180 case $ac_mode$ac_tag in 12181 :[FHL]*:*);; 12182 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12183 :[FH]-) ac_tag=-:-;; 12184 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12185 esac 12186 ac_save_IFS=$IFS 12187 IFS=: 12188 set x $ac_tag 12189 IFS=$ac_save_IFS 12190 shift 12191 ac_file=$1 12192 shift 12193 12194 case $ac_mode in 12195 :L) ac_source=$1;; 12196 :[FH]) 12197 ac_file_inputs= 12198 for ac_f 12199 do 12200 case $ac_f in 12201 -) ac_f="$ac_tmp/stdin";; 12202 *) # Look for the file first in the build tree, then in the source tree 12203 # (if the path is not absolute). The absolute path cannot be DOS-style, 12204 # because $ac_f cannot contain `:'. 12205 test -f "$ac_f" || 12206 case $ac_f in 12207 [\\/$]*) false;; 12208 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12209 esac || 12210 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12211 esac 12212 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12213 as_fn_append ac_file_inputs " '$ac_f'" 12214 done 12215 12216 # Let's still pretend it is `configure' which instantiates (i.e., don't 12217 # use $as_me), people would be surprised to read: 12218 # /* config.h. Generated by config.status. */ 12219 configure_input='Generated from '` 12220 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12221 `' by configure.' 12222 if test x"$ac_file" != x-; then 12223 configure_input="$ac_file. $configure_input" 12224 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12225$as_echo "$as_me: creating $ac_file" >&6;} 12226 fi 12227 # Neutralize special characters interpreted by sed in replacement strings. 12228 case $configure_input in #( 12229 *\&* | *\|* | *\\* ) 12230 ac_sed_conf_input=`$as_echo "$configure_input" | 12231 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12232 *) ac_sed_conf_input=$configure_input;; 12233 esac 12234 12235 case $ac_tag in 12236 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12237 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12238 esac 12239 ;; 12240 esac 12241 12242 ac_dir=`$as_dirname -- "$ac_file" || 12243$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12244 X"$ac_file" : 'X\(//\)[^/]' \| \ 12245 X"$ac_file" : 'X\(//\)$' \| \ 12246 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12247$as_echo X"$ac_file" | 12248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12249 s//\1/ 12250 q 12251 } 12252 /^X\(\/\/\)[^/].*/{ 12253 s//\1/ 12254 q 12255 } 12256 /^X\(\/\/\)$/{ 12257 s//\1/ 12258 q 12259 } 12260 /^X\(\/\).*/{ 12261 s//\1/ 12262 q 12263 } 12264 s/.*/./; q'` 12265 as_dir="$ac_dir"; as_fn_mkdir_p 12266 ac_builddir=. 12267 12268case "$ac_dir" in 12269.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12270*) 12271 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 12272 # A ".." for each directory in $ac_dir_suffix. 12273 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12274 case $ac_top_builddir_sub in 12275 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12276 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12277 esac ;; 12278esac 12279ac_abs_top_builddir=$ac_pwd 12280ac_abs_builddir=$ac_pwd$ac_dir_suffix 12281# for backward compatibility: 12282ac_top_builddir=$ac_top_build_prefix 12283 12284case $srcdir in 12285 .) # We are building in place. 12286 ac_srcdir=. 12287 ac_top_srcdir=$ac_top_builddir_sub 12288 ac_abs_top_srcdir=$ac_pwd ;; 12289 [\\/]* | ?:[\\/]* ) # Absolute name. 12290 ac_srcdir=$srcdir$ac_dir_suffix; 12291 ac_top_srcdir=$srcdir 12292 ac_abs_top_srcdir=$srcdir ;; 12293 *) # Relative name. 12294 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12295 ac_top_srcdir=$ac_top_build_prefix$srcdir 12296 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12297esac 12298ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12299 12300 12301 case $ac_mode in 12302 :F) 12303 # 12304 # CONFIG_FILE 12305 # 12306 12307 case $INSTALL in 12308 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12309 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12310 esac 12311 ac_MKDIR_P=$MKDIR_P 12312 case $MKDIR_P in 12313 [\\/$]* | ?:[\\/]* ) ;; 12314 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12315 esac 12316_ACEOF 12317 12318cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12319# If the template does not know about datarootdir, expand it. 12320# FIXME: This hack should be removed a few years after 2.60. 12321ac_datarootdir_hack=; ac_datarootdir_seen= 12322ac_sed_dataroot=' 12323/datarootdir/ { 12324 p 12325 q 12326} 12327/@datadir@/p 12328/@docdir@/p 12329/@infodir@/p 12330/@localedir@/p 12331/@mandir@/p' 12332case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12333*datarootdir*) ac_datarootdir_seen=yes;; 12334*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12336$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12337_ACEOF 12338cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12339 ac_datarootdir_hack=' 12340 s&@datadir@&$datadir&g 12341 s&@docdir@&$docdir&g 12342 s&@infodir@&$infodir&g 12343 s&@localedir@&$localedir&g 12344 s&@mandir@&$mandir&g 12345 s&\\\${datarootdir}&$datarootdir&g' ;; 12346esac 12347_ACEOF 12348 12349# Neutralize VPATH when `$srcdir' = `.'. 12350# Shell code in configure.ac might set extrasub. 12351# FIXME: do we really want to maintain this feature? 12352cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12353ac_sed_extra="$ac_vpsub 12354$extrasub 12355_ACEOF 12356cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12357:t 12358/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12359s|@configure_input@|$ac_sed_conf_input|;t t 12360s&@top_builddir@&$ac_top_builddir_sub&;t t 12361s&@top_build_prefix@&$ac_top_build_prefix&;t t 12362s&@srcdir@&$ac_srcdir&;t t 12363s&@abs_srcdir@&$ac_abs_srcdir&;t t 12364s&@top_srcdir@&$ac_top_srcdir&;t t 12365s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12366s&@builddir@&$ac_builddir&;t t 12367s&@abs_builddir@&$ac_abs_builddir&;t t 12368s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12369s&@INSTALL@&$ac_INSTALL&;t t 12370s&@MKDIR_P@&$ac_MKDIR_P&;t t 12371$ac_datarootdir_hack 12372" 12373eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12374 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12375 12376test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12377 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12378 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12379 "$ac_tmp/out"`; test -z "$ac_out"; } && 12380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12381which seems to be undefined. Please make sure it is defined" >&5 12382$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12383which seems to be undefined. Please make sure it is defined" >&2;} 12384 12385 rm -f "$ac_tmp/stdin" 12386 case $ac_file in 12387 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12388 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12389 esac \ 12390 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12391 ;; 12392 :H) 12393 # 12394 # CONFIG_HEADER 12395 # 12396 if test x"$ac_file" != x-; then 12397 { 12398 $as_echo "/* $configure_input */" \ 12399 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12400 } >"$ac_tmp/config.h" \ 12401 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12402 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12403 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12404$as_echo "$as_me: $ac_file is unchanged" >&6;} 12405 else 12406 rm -f "$ac_file" 12407 mv "$ac_tmp/config.h" "$ac_file" \ 12408 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12409 fi 12410 else 12411 $as_echo "/* $configure_input */" \ 12412 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12413 || as_fn_error $? "could not create -" "$LINENO" 5 12414 fi 12415# Compute "$ac_file"'s index in $config_headers. 12416_am_arg="$ac_file" 12417_am_stamp_count=1 12418for _am_header in $config_headers :; do 12419 case $_am_header in 12420 $_am_arg | $_am_arg:* ) 12421 break ;; 12422 * ) 12423 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12424 esac 12425done 12426echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12427$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12428 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12429 X"$_am_arg" : 'X\(//\)$' \| \ 12430 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12431$as_echo X"$_am_arg" | 12432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12433 s//\1/ 12434 q 12435 } 12436 /^X\(\/\/\)[^/].*/{ 12437 s//\1/ 12438 q 12439 } 12440 /^X\(\/\/\)$/{ 12441 s//\1/ 12442 q 12443 } 12444 /^X\(\/\).*/{ 12445 s//\1/ 12446 q 12447 } 12448 s/.*/./; q'`/stamp-h$_am_stamp_count 12449 ;; 12450 12451 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12452$as_echo "$as_me: executing $ac_file commands" >&6;} 12453 ;; 12454 esac 12455 12456 12457 case $ac_file$ac_mode in 12458 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12459 # Older Autoconf quotes --file arguments for eval, but not when files 12460 # are listed without --file. Let's play safe and only enable the eval 12461 # if we detect the quoting. 12462 case $CONFIG_FILES in 12463 *\'*) eval set x "$CONFIG_FILES" ;; 12464 *) set x $CONFIG_FILES ;; 12465 esac 12466 shift 12467 for mf 12468 do 12469 # Strip MF so we end up with the name of the file. 12470 mf=`echo "$mf" | sed -e 's/:.*$//'` 12471 # Check whether this is an Automake generated Makefile or not. 12472 # We used to match only the files named 'Makefile.in', but 12473 # some people rename them; so instead we look at the file content. 12474 # Grep'ing the first line is not enough: some people post-process 12475 # each Makefile.in and add a new line on top of each file to say so. 12476 # Grep'ing the whole file is not good either: AIX grep has a line 12477 # limit of 2048, but all sed's we know have understand at least 4000. 12478 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 12479 dirpart=`$as_dirname -- "$mf" || 12480$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12481 X"$mf" : 'X\(//\)[^/]' \| \ 12482 X"$mf" : 'X\(//\)$' \| \ 12483 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 12484$as_echo X"$mf" | 12485 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12486 s//\1/ 12487 q 12488 } 12489 /^X\(\/\/\)[^/].*/{ 12490 s//\1/ 12491 q 12492 } 12493 /^X\(\/\/\)$/{ 12494 s//\1/ 12495 q 12496 } 12497 /^X\(\/\).*/{ 12498 s//\1/ 12499 q 12500 } 12501 s/.*/./; q'` 12502 else 12503 continue 12504 fi 12505 # Extract the definition of DEPDIR, am__include, and am__quote 12506 # from the Makefile without running 'make'. 12507 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 12508 test -z "$DEPDIR" && continue 12509 am__include=`sed -n 's/^am__include = //p' < "$mf"` 12510 test -z "$am__include" && continue 12511 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 12512 # Find all dependency output files, they are included files with 12513 # $(DEPDIR) in their names. We invoke sed twice because it is the 12514 # simplest approach to changing $(DEPDIR) to its actual value in the 12515 # expansion. 12516 for file in `sed -n " 12517 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 12518 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 12519 # Make sure the directory exists. 12520 test -f "$dirpart/$file" && continue 12521 fdir=`$as_dirname -- "$file" || 12522$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12523 X"$file" : 'X\(//\)[^/]' \| \ 12524 X"$file" : 'X\(//\)$' \| \ 12525 X"$file" : 'X\(/\)' \| . 2>/dev/null || 12526$as_echo X"$file" | 12527 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12528 s//\1/ 12529 q 12530 } 12531 /^X\(\/\/\)[^/].*/{ 12532 s//\1/ 12533 q 12534 } 12535 /^X\(\/\/\)$/{ 12536 s//\1/ 12537 q 12538 } 12539 /^X\(\/\).*/{ 12540 s//\1/ 12541 q 12542 } 12543 s/.*/./; q'` 12544 as_dir=$dirpart/$fdir; as_fn_mkdir_p 12545 # echo "creating $dirpart/$file" 12546 echo '# dummy' > "$dirpart/$file" 12547 done 12548 done 12549} 12550 ;; 12551 12552 esac 12553done # for ac_tag 12554 12555 12556as_fn_exit 0 12557_ACEOF 12558ac_clean_files=$ac_clean_files_save 12559 12560test $ac_write_fail = 0 || 12561 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12562 12563 12564# configure is writing to config.log, and then calls config.status. 12565# config.status does its own redirection, appending to config.log. 12566# Unfortunately, on DOS this fails, as config.log is still kept open 12567# by configure, so config.status won't be able to write to it; its 12568# output is simply discarded. So we exec the FD to /dev/null, 12569# effectively closing config.log, so it can be properly (re)opened and 12570# appended to by config.status. When coming back to configure, we 12571# need to make the FD available again. 12572if test "$no_create" != yes; then 12573 ac_cs_success=: 12574 ac_config_status_args= 12575 test "$silent" = yes && 12576 ac_config_status_args="$ac_config_status_args --quiet" 12577 exec 5>/dev/null 12578 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12579 exec 5>>config.log 12580 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12581 # would make configure fail if this is the last instruction. 12582 $ac_cs_success || as_fn_exit 1 12583fi 12584if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12586$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12587fi 12588 12589