1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.72 for xkbcomp 1.4.7. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xkbcomp/-/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation, 9# Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14## -------------------- ## 15## M4sh Initialization. ## 16## -------------------- ## 17 18# Be more Bourne compatible 19DUALCASE=1; export DUALCASE # for MKS sh 20if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 21then : 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 case e in #( 29 e) case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac ;; 35esac 36fi 37 38 39 40# Reset variables that may have inherited troublesome values from 41# the environment. 42 43# IFS needs to be set, to space, tab, and newline, in precisely that order. 44# (If _AS_PATH_WALK were called with IFS unset, it would have the 45# side effect of setting IFS to empty, thus disabling word splitting.) 46# Quoting is to prevent editors from complaining about space-tab. 47as_nl=' 48' 49export as_nl 50IFS=" "" $as_nl" 51 52PS1='$ ' 53PS2='> ' 54PS4='+ ' 55 56# Ensure predictable behavior from utilities with locale-dependent output. 57LC_ALL=C 58export LC_ALL 59LANGUAGE=C 60export LANGUAGE 61 62# We cannot yet rely on "unset" to work, but we need these variables 63# to be unset--not just set to an empty or harmless value--now, to 64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65# also avoids known problems related to "unset" and subshell syntax 66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70done 71 72# Ensure that fds 0, 1, and 2 are open. 73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77# The user is always right. 78if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84fi 85 86 87# Find who we are. Look in the path if we contain no directory separator. 88as_myself= 89case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92for as_dir in $PATH 93do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as 'sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116 117# Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122# neutralization value for shells without unset; and this also 123# works around shells that cannot unset nonexistent variables. 124# Preserve -v and -x to the replacement shell. 125BASH_ENV=/dev/null 126ENV=/dev/null 127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133esac 134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135# Admittedly, this is quite paranoid, since all the known shells bail 136# out after a failed 'exec'. 137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 144then : 145 emulate sh 146 NULLCMD=: 147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 148 # is contrary to our usage. Disable this feature. 149 alias -g '\${1+\"\$@\"}'='\"\$@\"' 150 setopt NO_GLOB_SUBST 151else case e in #( 152 e) case \`(set -o) 2>/dev/null\` in #( 153 *posix*) : 154 set -o posix ;; #( 155 *) : 156 ;; 157esac ;; 158esac 159fi 160" 161 as_required="as_fn_return () { (exit \$1); } 162as_fn_success () { as_fn_return 0; } 163as_fn_failure () { as_fn_return 1; } 164as_fn_ret_success () { return 0; } 165as_fn_ret_failure () { return 1; } 166 167exitcode=0 168as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173then : 174 175else case e in #( 176 e) exitcode=1; echo positional parameters were not saved. ;; 177esac 178fi 179test x\$exitcode = x0 || exit 1 180blah=\$(echo \$(echo blah)) 181test x\"\$blah\" = xblah || exit 1 182test -x / || exit 1" 183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 187test \$(( 1 + 1 )) = 2 || exit 1" 188 if (eval "$as_required") 2>/dev/null 189then : 190 as_have_required=yes 191else case e in #( 192 e) as_have_required=no ;; 193esac 194fi 195 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 196then : 197 198else case e in #( 199 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 200as_found=false 201for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 202do 203 IFS=$as_save_IFS 204 case $as_dir in #((( 205 '') as_dir=./ ;; 206 */) ;; 207 *) as_dir=$as_dir/ ;; 208 esac 209 as_found=: 210 case $as_dir in #( 211 /*) 212 for as_base in sh bash ksh sh5; do 213 # Try only shells that exist, to save several forks. 214 as_shell=$as_dir$as_base 215 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 216 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 217then : 218 CONFIG_SHELL=$as_shell as_have_required=yes 219 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 220then : 221 break 2 222fi 223fi 224 done;; 225 esac 226 as_found=false 227done 228IFS=$as_save_IFS 229if $as_found 230then : 231 232else case e in #( 233 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 235then : 236 CONFIG_SHELL=$SHELL as_have_required=yes 237fi ;; 238esac 239fi 240 241 242 if test "x$CONFIG_SHELL" != x 243then : 244 export CONFIG_SHELL 245 # We cannot yet assume a decent shell, so we have to provide a 246# neutralization value for shells without unset; and this also 247# works around shells that cannot unset nonexistent variables. 248# Preserve -v and -x to the replacement shell. 249BASH_ENV=/dev/null 250ENV=/dev/null 251(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 252case $- in # (((( 253 *v*x* | *x*v* ) as_opts=-vx ;; 254 *v* ) as_opts=-v ;; 255 *x* ) as_opts=-x ;; 256 * ) as_opts= ;; 257esac 258exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 259# Admittedly, this is quite paranoid, since all the known shells bail 260# out after a failed 'exec'. 261printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 262exit 255 263fi 264 265 if test x$as_have_required = xno 266then : 267 printf "%s\n" "$0: This script requires a shell more modern than all" 268 printf "%s\n" "$0: the shells that I found on your system." 269 if test ${ZSH_VERSION+y} ; then 270 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 271 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 272 else 273 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 274$0: https://gitlab.freedesktop.org/xorg/app/xkbcomp/-/issues 275$0: about your system, including any error possibly output 276$0: before this message. Then install a modern shell, or 277$0: manually run the script under such a shell if you do 278$0: have one." 279 fi 280 exit 1 281fi ;; 282esac 283fi 284fi 285SHELL=${CONFIG_SHELL-/bin/sh} 286export SHELL 287# Unset more variables known to interfere with behavior of common tools. 288CLICOLOR_FORCE= GREP_OPTIONS= 289unset CLICOLOR_FORCE GREP_OPTIONS 290 291## --------------------- ## 292## M4sh Shell Functions. ## 293## --------------------- ## 294# as_fn_unset VAR 295# --------------- 296# Portably unset VAR. 297as_fn_unset () 298{ 299 { eval $1=; unset $1;} 300} 301as_unset=as_fn_unset 302 303 304# as_fn_set_status STATUS 305# ----------------------- 306# Set $? to STATUS, without forking. 307as_fn_set_status () 308{ 309 return $1 310} # as_fn_set_status 311 312# as_fn_exit STATUS 313# ----------------- 314# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 315as_fn_exit () 316{ 317 set +e 318 as_fn_set_status $1 319 exit $1 320} # as_fn_exit 321 322# as_fn_mkdir_p 323# ------------- 324# Create "$as_dir" as a directory, including parents if necessary. 325as_fn_mkdir_p () 326{ 327 328 case $as_dir in #( 329 -*) as_dir=./$as_dir;; 330 esac 331 test -d "$as_dir" || eval $as_mkdir_p || { 332 as_dirs= 333 while :; do 334 case $as_dir in #( 335 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 336 *) as_qdir=$as_dir;; 337 esac 338 as_dirs="'$as_qdir' $as_dirs" 339 as_dir=`$as_dirname -- "$as_dir" || 340$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 341 X"$as_dir" : 'X\(//\)[^/]' \| \ 342 X"$as_dir" : 'X\(//\)$' \| \ 343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 344printf "%s\n" X"$as_dir" | 345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 346 s//\1/ 347 q 348 } 349 /^X\(\/\/\)[^/].*/{ 350 s//\1/ 351 q 352 } 353 /^X\(\/\/\)$/{ 354 s//\1/ 355 q 356 } 357 /^X\(\/\).*/{ 358 s//\1/ 359 q 360 } 361 s/.*/./; q'` 362 test -d "$as_dir" && break 363 done 364 test -z "$as_dirs" || eval "mkdir $as_dirs" 365 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 366 367 368} # as_fn_mkdir_p 369 370# as_fn_executable_p FILE 371# ----------------------- 372# Test if FILE is an executable regular file. 373as_fn_executable_p () 374{ 375 test -f "$1" && test -x "$1" 376} # as_fn_executable_p 377# as_fn_append VAR VALUE 378# ---------------------- 379# Append the text in VALUE to the end of the definition contained in VAR. Take 380# advantage of any shell optimizations that allow amortized linear growth over 381# repeated appends, instead of the typical quadratic growth present in naive 382# implementations. 383if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 384then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else case e in #( 390 e) as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } ;; 394esac 395fi # as_fn_append 396 397# as_fn_arith ARG... 398# ------------------ 399# Perform arithmetic evaluation on the ARGs, and store the result in the 400# global $as_val. Take advantage of shells that can avoid forks. The arguments 401# must be portable across $(()) and expr. 402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 403then : 404 eval 'as_fn_arith () 405 { 406 as_val=$(( $* )) 407 }' 408else case e in #( 409 e) as_fn_arith () 410 { 411 as_val=`expr "$@" || test $? -eq 1` 412 } ;; 413esac 414fi # as_fn_arith 415 416 417# as_fn_error STATUS ERROR [LINENO LOG_FD] 418# ---------------------------------------- 419# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 420# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 421# script with STATUS, using 1 if that was 0. 422as_fn_error () 423{ 424 as_status=$1; test $as_status -eq 0 && as_status=1 425 if test "$4"; then 426 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 427 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 428 fi 429 printf "%s\n" "$as_me: error: $2" >&2 430 as_fn_exit $as_status 431} # as_fn_error 432 433if expr a : '\(a\)' >/dev/null 2>&1 && 434 test "X`expr 00001 : '.*\(...\)'`" = X001; then 435 as_expr=expr 436else 437 as_expr=false 438fi 439 440if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 441 as_basename=basename 442else 443 as_basename=false 444fi 445 446if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 447 as_dirname=dirname 448else 449 as_dirname=false 450fi 451 452as_me=`$as_basename -- "$0" || 453$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 454 X"$0" : 'X\(//\)$' \| \ 455 X"$0" : 'X\(/\)' \| . 2>/dev/null || 456printf "%s\n" X/"$0" | 457 sed '/^.*\/\([^/][^/]*\)\/*$/{ 458 s//\1/ 459 q 460 } 461 /^X\/\(\/\/\)$/{ 462 s//\1/ 463 q 464 } 465 /^X\/\(\/\).*/{ 466 s//\1/ 467 q 468 } 469 s/.*/./; q'` 470 471# Avoid depending upon Character Ranges. 472as_cr_letters='abcdefghijklmnopqrstuvwxyz' 473as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 474as_cr_Letters=$as_cr_letters$as_cr_LETTERS 475as_cr_digits='0123456789' 476as_cr_alnum=$as_cr_Letters$as_cr_digits 477 478 479 as_lineno_1=$LINENO as_lineno_1a=$LINENO 480 as_lineno_2=$LINENO as_lineno_2a=$LINENO 481 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 482 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 483 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 484 sed -n ' 485 p 486 /[$]LINENO/= 487 ' <$as_myself | 488 sed ' 489 t clear 490 :clear 491 s/[$]LINENO.*/&-/ 492 t lineno 493 b 494 :lineno 495 N 496 :loop 497 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 498 t loop 499 s/-\n.*// 500 ' >$as_me.lineno && 501 chmod +x "$as_me.lineno" || 502 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 503 504 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 505 # already done that, so ensure we don't try to do so again and fall 506 # in an infinite loop. This has already happened in practice. 507 _as_can_reexec=no; export _as_can_reexec 508 # Don't try to exec as it changes $[0], causing all sort of problems 509 # (the dirname of $[0] is not the place where we might find the 510 # original and so on. Autoconf is especially sensitive to this). 511 . "./$as_me.lineno" 512 # Exit status is that of the last command. 513 exit 514} 515 516 517# Determine whether it's possible to make 'echo' print without a newline. 518# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 519# for compatibility with existing Makefiles. 520ECHO_C= ECHO_N= ECHO_T= 521case `echo -n x` in #((((( 522-n*) 523 case `echo 'xy\c'` in 524 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 525 xy) ECHO_C='\c';; 526 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 527 ECHO_T=' ';; 528 esac;; 529*) 530 ECHO_N='-n';; 531esac 532 533# For backward compatibility with old third-party macros, we provide 534# the shell variables $as_echo and $as_echo_n. New code should use 535# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 536as_echo='printf %s\n' 537as_echo_n='printf %s' 538 539rm -f conf$$ conf$$.exe conf$$.file 540if test -d conf$$.dir; then 541 rm -f conf$$.dir/conf$$.file 542else 543 rm -f conf$$.dir 544 mkdir conf$$.dir 2>/dev/null 545fi 546if (echo >conf$$.file) 2>/dev/null; then 547 if ln -s conf$$.file conf$$ 2>/dev/null; then 548 as_ln_s='ln -s' 549 # ... but there are two gotchas: 550 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 551 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 552 # In both cases, we have to default to 'cp -pR'. 553 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 554 as_ln_s='cp -pR' 555 elif ln conf$$.file conf$$ 2>/dev/null; then 556 as_ln_s=ln 557 else 558 as_ln_s='cp -pR' 559 fi 560else 561 as_ln_s='cp -pR' 562fi 563rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 564rmdir conf$$.dir 2>/dev/null 565 566if mkdir -p . 2>/dev/null; then 567 as_mkdir_p='mkdir -p "$as_dir"' 568else 569 test -d ./-p && rmdir ./-p 570 as_mkdir_p=false 571fi 572 573as_test_x='test -x' 574as_executable_p=as_fn_executable_p 575 576# Sed expression to map a string onto a valid CPP name. 577as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 578as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 579 580# Sed expression to map a string onto a valid variable name. 581as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 582as_tr_sh="eval sed '$as_sed_sh'" # deprecated 583 584 585test -n "$DJDIR" || exec 7<&0 </dev/null 586exec 6>&1 587 588# Name of the host. 589# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 590# so uname gets run too. 591ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 592 593# 594# Initializations. 595# 596ac_default_prefix=/usr/local 597ac_clean_files= 598ac_config_libobj_dir=. 599LIBOBJS= 600cross_compiling=no 601subdirs= 602MFLAGS= 603MAKEFLAGS= 604 605# Identity of this package. 606PACKAGE_NAME='xkbcomp' 607PACKAGE_TARNAME='xkbcomp' 608PACKAGE_VERSION='1.4.7' 609PACKAGE_STRING='xkbcomp 1.4.7' 610PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xkbcomp/-/issues' 611PACKAGE_URL='' 612 613ac_unique_file="Makefile.am" 614# Factoring default headers for most tests. 615ac_includes_default="\ 616#include <stddef.h> 617#ifdef HAVE_STDIO_H 618# include <stdio.h> 619#endif 620#ifdef HAVE_STDLIB_H 621# include <stdlib.h> 622#endif 623#ifdef HAVE_STRING_H 624# include <string.h> 625#endif 626#ifdef HAVE_INTTYPES_H 627# include <inttypes.h> 628#endif 629#ifdef HAVE_STDINT_H 630# include <stdint.h> 631#endif 632#ifdef HAVE_STRINGS_H 633# include <strings.h> 634#endif 635#ifdef HAVE_SYS_TYPES_H 636# include <sys/types.h> 637#endif 638#ifdef HAVE_SYS_STAT_H 639# include <sys/stat.h> 640#endif 641#ifdef HAVE_UNISTD_H 642# include <unistd.h> 643#endif" 644 645ac_header_c_list= 646enable_year2038=no 647ac_subst_vars='am__EXEEXT_FALSE 648am__EXEEXT_TRUE 649LTLIBOBJS 650LIBOBJS 651XKBCONFIGROOT 652XKBCOMP_LIBS 653XKBCOMP_CFLAGS 654YACC_INST 655YFLAGS 656YACC 657MAN_SUBSTS 658XORG_MAN_PAGE 659ADMIN_MAN_DIR 660DRIVER_MAN_DIR 661MISC_MAN_DIR 662FILE_MAN_DIR 663LIB_MAN_DIR 664APP_MAN_DIR 665ADMIN_MAN_SUFFIX 666DRIVER_MAN_SUFFIX 667MISC_MAN_SUFFIX 668FILE_MAN_SUFFIX 669LIB_MAN_SUFFIX 670APP_MAN_SUFFIX 671SED 672host_os 673host_vendor 674host_cpu 675host 676build_os 677build_vendor 678build_cpu 679build 680INSTALL_CMD 681PKG_CONFIG_LIBDIR 682PKG_CONFIG_PATH 683PKG_CONFIG 684CHANGELOG_CMD 685STRICT_CFLAGS 686CWARNFLAGS 687BASE_CFLAGS 688AM_BACKSLASH 689AM_DEFAULT_VERBOSITY 690AM_DEFAULT_V 691AM_V 692CSCOPE 693ETAGS 694CTAGS 695am__fastdepCC_FALSE 696am__fastdepCC_TRUE 697CCDEPMODE 698am__nodep 699AMDEPBACKSLASH 700AMDEP_FALSE 701AMDEP_TRUE 702am__include 703DEPDIR 704am__untar 705am__tar 706AMTAR 707am__leading_dot 708SET_MAKE 709AWK 710mkdir_p 711MKDIR_P 712INSTALL_STRIP_PROGRAM 713STRIP 714install_sh 715MAKEINFO 716AUTOHEADER 717AUTOMAKE 718AUTOCONF 719ACLOCAL 720VERSION 721PACKAGE 722CYGPATH_W 723am__isrc 724INSTALL_DATA 725INSTALL_SCRIPT 726INSTALL_PROGRAM 727OBJEXT 728EXEEXT 729ac_ct_CC 730CPPFLAGS 731LDFLAGS 732CFLAGS 733CC 734target_alias 735host_alias 736build_alias 737LIBS 738ECHO_T 739ECHO_N 740ECHO_C 741DEFS 742mandir 743localedir 744libdir 745psdir 746pdfdir 747dvidir 748htmldir 749infodir 750docdir 751oldincludedir 752includedir 753runstatedir 754localstatedir 755sharedstatedir 756sysconfdir 757datadir 758datarootdir 759libexecdir 760sbindir 761bindir 762program_transform_name 763prefix 764exec_prefix 765PACKAGE_URL 766PACKAGE_BUGREPORT 767PACKAGE_STRING 768PACKAGE_VERSION 769PACKAGE_TARNAME 770PACKAGE_NAME 771PATH_SEPARATOR 772SHELL 773am__quote' 774ac_subst_files='' 775ac_user_opts=' 776enable_option_checking 777enable_dependency_tracking 778enable_silent_rules 779enable_selective_werror 780enable_strict_compilation 781enable_largefile 782with_xkb_config_root 783enable_year2038 784' 785 ac_precious_vars='build_alias 786host_alias 787target_alias 788CC 789CFLAGS 790LDFLAGS 791LIBS 792CPPFLAGS 793PKG_CONFIG 794PKG_CONFIG_PATH 795PKG_CONFIG_LIBDIR 796YACC 797YFLAGS 798XKBCOMP_CFLAGS 799XKBCOMP_LIBS' 800 801 802# Initialize some variables set by options. 803ac_init_help= 804ac_init_version=false 805ac_unrecognized_opts= 806ac_unrecognized_sep= 807# The variables have the same names as the options, with 808# dashes changed to underlines. 809cache_file=/dev/null 810exec_prefix=NONE 811no_create= 812no_recursion= 813prefix=NONE 814program_prefix=NONE 815program_suffix=NONE 816program_transform_name=s,x,x, 817silent= 818site= 819srcdir= 820verbose= 821x_includes=NONE 822x_libraries=NONE 823 824# Installation directory options. 825# These are left unexpanded so users can "make install exec_prefix=/foo" 826# and all the variables that are supposed to be based on exec_prefix 827# by default will actually change. 828# Use braces instead of parens because sh, perl, etc. also accept them. 829# (The list follows the same order as the GNU Coding Standards.) 830bindir='${exec_prefix}/bin' 831sbindir='${exec_prefix}/sbin' 832libexecdir='${exec_prefix}/libexec' 833datarootdir='${prefix}/share' 834datadir='${datarootdir}' 835sysconfdir='${prefix}/etc' 836sharedstatedir='${prefix}/com' 837localstatedir='${prefix}/var' 838runstatedir='${localstatedir}/run' 839includedir='${prefix}/include' 840oldincludedir='/usr/include' 841docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 842infodir='${datarootdir}/info' 843htmldir='${docdir}' 844dvidir='${docdir}' 845pdfdir='${docdir}' 846psdir='${docdir}' 847libdir='${exec_prefix}/lib' 848localedir='${datarootdir}/locale' 849mandir='${datarootdir}/man' 850 851ac_prev= 852ac_dashdash= 853for ac_option 854do 855 # If the previous option needs an argument, assign it. 856 if test -n "$ac_prev"; then 857 eval $ac_prev=\$ac_option 858 ac_prev= 859 continue 860 fi 861 862 case $ac_option in 863 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 864 *=) ac_optarg= ;; 865 *) ac_optarg=yes ;; 866 esac 867 868 case $ac_dashdash$ac_option in 869 --) 870 ac_dashdash=yes ;; 871 872 -bindir | --bindir | --bindi | --bind | --bin | --bi) 873 ac_prev=bindir ;; 874 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 875 bindir=$ac_optarg ;; 876 877 -build | --build | --buil | --bui | --bu) 878 ac_prev=build_alias ;; 879 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 880 build_alias=$ac_optarg ;; 881 882 -cache-file | --cache-file | --cache-fil | --cache-fi \ 883 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 884 ac_prev=cache_file ;; 885 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 886 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 887 cache_file=$ac_optarg ;; 888 889 --config-cache | -C) 890 cache_file=config.cache ;; 891 892 -datadir | --datadir | --datadi | --datad) 893 ac_prev=datadir ;; 894 -datadir=* | --datadir=* | --datadi=* | --datad=*) 895 datadir=$ac_optarg ;; 896 897 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 898 | --dataroo | --dataro | --datar) 899 ac_prev=datarootdir ;; 900 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 901 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 902 datarootdir=$ac_optarg ;; 903 904 -disable-* | --disable-*) 905 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 906 # Reject names that are not valid shell variable names. 907 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 908 as_fn_error $? "invalid feature name: '$ac_useropt'" 909 ac_useropt_orig=$ac_useropt 910 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 911 case $ac_user_opts in 912 *" 913"enable_$ac_useropt" 914"*) ;; 915 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 916 ac_unrecognized_sep=', ';; 917 esac 918 eval enable_$ac_useropt=no ;; 919 920 -docdir | --docdir | --docdi | --doc | --do) 921 ac_prev=docdir ;; 922 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 923 docdir=$ac_optarg ;; 924 925 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 926 ac_prev=dvidir ;; 927 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 928 dvidir=$ac_optarg ;; 929 930 -enable-* | --enable-*) 931 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 932 # Reject names that are not valid shell variable names. 933 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 934 as_fn_error $? "invalid feature name: '$ac_useropt'" 935 ac_useropt_orig=$ac_useropt 936 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 937 case $ac_user_opts in 938 *" 939"enable_$ac_useropt" 940"*) ;; 941 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 942 ac_unrecognized_sep=', ';; 943 esac 944 eval enable_$ac_useropt=\$ac_optarg ;; 945 946 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 947 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 948 | --exec | --exe | --ex) 949 ac_prev=exec_prefix ;; 950 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 951 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 952 | --exec=* | --exe=* | --ex=*) 953 exec_prefix=$ac_optarg ;; 954 955 -gas | --gas | --ga | --g) 956 # Obsolete; use --with-gas. 957 with_gas=yes ;; 958 959 -help | --help | --hel | --he | -h) 960 ac_init_help=long ;; 961 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 962 ac_init_help=recursive ;; 963 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 964 ac_init_help=short ;; 965 966 -host | --host | --hos | --ho) 967 ac_prev=host_alias ;; 968 -host=* | --host=* | --hos=* | --ho=*) 969 host_alias=$ac_optarg ;; 970 971 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 972 ac_prev=htmldir ;; 973 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 974 | --ht=*) 975 htmldir=$ac_optarg ;; 976 977 -includedir | --includedir | --includedi | --included | --include \ 978 | --includ | --inclu | --incl | --inc) 979 ac_prev=includedir ;; 980 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 981 | --includ=* | --inclu=* | --incl=* | --inc=*) 982 includedir=$ac_optarg ;; 983 984 -infodir | --infodir | --infodi | --infod | --info | --inf) 985 ac_prev=infodir ;; 986 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 987 infodir=$ac_optarg ;; 988 989 -libdir | --libdir | --libdi | --libd) 990 ac_prev=libdir ;; 991 -libdir=* | --libdir=* | --libdi=* | --libd=*) 992 libdir=$ac_optarg ;; 993 994 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 995 | --libexe | --libex | --libe) 996 ac_prev=libexecdir ;; 997 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 998 | --libexe=* | --libex=* | --libe=*) 999 libexecdir=$ac_optarg ;; 1000 1001 -localedir | --localedir | --localedi | --localed | --locale) 1002 ac_prev=localedir ;; 1003 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1004 localedir=$ac_optarg ;; 1005 1006 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1007 | --localstate | --localstat | --localsta | --localst | --locals) 1008 ac_prev=localstatedir ;; 1009 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1010 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1011 localstatedir=$ac_optarg ;; 1012 1013 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1014 ac_prev=mandir ;; 1015 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1016 mandir=$ac_optarg ;; 1017 1018 -nfp | --nfp | --nf) 1019 # Obsolete; use --without-fp. 1020 with_fp=no ;; 1021 1022 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1023 | --no-cr | --no-c | -n) 1024 no_create=yes ;; 1025 1026 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1027 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1028 no_recursion=yes ;; 1029 1030 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1031 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1032 | --oldin | --oldi | --old | --ol | --o) 1033 ac_prev=oldincludedir ;; 1034 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1035 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1036 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1037 oldincludedir=$ac_optarg ;; 1038 1039 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1040 ac_prev=prefix ;; 1041 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1042 prefix=$ac_optarg ;; 1043 1044 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1045 | --program-pre | --program-pr | --program-p) 1046 ac_prev=program_prefix ;; 1047 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1048 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1049 program_prefix=$ac_optarg ;; 1050 1051 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1052 | --program-suf | --program-su | --program-s) 1053 ac_prev=program_suffix ;; 1054 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1055 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1056 program_suffix=$ac_optarg ;; 1057 1058 -program-transform-name | --program-transform-name \ 1059 | --program-transform-nam | --program-transform-na \ 1060 | --program-transform-n | --program-transform- \ 1061 | --program-transform | --program-transfor \ 1062 | --program-transfo | --program-transf \ 1063 | --program-trans | --program-tran \ 1064 | --progr-tra | --program-tr | --program-t) 1065 ac_prev=program_transform_name ;; 1066 -program-transform-name=* | --program-transform-name=* \ 1067 | --program-transform-nam=* | --program-transform-na=* \ 1068 | --program-transform-n=* | --program-transform-=* \ 1069 | --program-transform=* | --program-transfor=* \ 1070 | --program-transfo=* | --program-transf=* \ 1071 | --program-trans=* | --program-tran=* \ 1072 | --progr-tra=* | --program-tr=* | --program-t=*) 1073 program_transform_name=$ac_optarg ;; 1074 1075 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1076 ac_prev=pdfdir ;; 1077 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1078 pdfdir=$ac_optarg ;; 1079 1080 -psdir | --psdir | --psdi | --psd | --ps) 1081 ac_prev=psdir ;; 1082 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1083 psdir=$ac_optarg ;; 1084 1085 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1086 | -silent | --silent | --silen | --sile | --sil) 1087 silent=yes ;; 1088 1089 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1090 | --runstate | --runstat | --runsta | --runst | --runs \ 1091 | --run | --ru | --r) 1092 ac_prev=runstatedir ;; 1093 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1094 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1095 | --run=* | --ru=* | --r=*) 1096 runstatedir=$ac_optarg ;; 1097 1098 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1099 ac_prev=sbindir ;; 1100 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1101 | --sbi=* | --sb=*) 1102 sbindir=$ac_optarg ;; 1103 1104 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1105 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1106 | --sharedst | --shareds | --shared | --share | --shar \ 1107 | --sha | --sh) 1108 ac_prev=sharedstatedir ;; 1109 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1110 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1111 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1112 | --sha=* | --sh=*) 1113 sharedstatedir=$ac_optarg ;; 1114 1115 -site | --site | --sit) 1116 ac_prev=site ;; 1117 -site=* | --site=* | --sit=*) 1118 site=$ac_optarg ;; 1119 1120 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1121 ac_prev=srcdir ;; 1122 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1123 srcdir=$ac_optarg ;; 1124 1125 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1126 | --syscon | --sysco | --sysc | --sys | --sy) 1127 ac_prev=sysconfdir ;; 1128 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1129 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1130 sysconfdir=$ac_optarg ;; 1131 1132 -target | --target | --targe | --targ | --tar | --ta | --t) 1133 ac_prev=target_alias ;; 1134 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1135 target_alias=$ac_optarg ;; 1136 1137 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1138 verbose=yes ;; 1139 1140 -version | --version | --versio | --versi | --vers | -V) 1141 ac_init_version=: ;; 1142 1143 -with-* | --with-*) 1144 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1145 # Reject names that are not valid shell variable names. 1146 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1147 as_fn_error $? "invalid package name: '$ac_useropt'" 1148 ac_useropt_orig=$ac_useropt 1149 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1150 case $ac_user_opts in 1151 *" 1152"with_$ac_useropt" 1153"*) ;; 1154 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1155 ac_unrecognized_sep=', ';; 1156 esac 1157 eval with_$ac_useropt=\$ac_optarg ;; 1158 1159 -without-* | --without-*) 1160 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1161 # Reject names that are not valid shell variable names. 1162 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1163 as_fn_error $? "invalid package name: '$ac_useropt'" 1164 ac_useropt_orig=$ac_useropt 1165 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1166 case $ac_user_opts in 1167 *" 1168"with_$ac_useropt" 1169"*) ;; 1170 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1171 ac_unrecognized_sep=', ';; 1172 esac 1173 eval with_$ac_useropt=no ;; 1174 1175 --x) 1176 # Obsolete; use --with-x. 1177 with_x=yes ;; 1178 1179 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1180 | --x-incl | --x-inc | --x-in | --x-i) 1181 ac_prev=x_includes ;; 1182 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1183 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1184 x_includes=$ac_optarg ;; 1185 1186 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1187 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1188 ac_prev=x_libraries ;; 1189 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1190 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1191 x_libraries=$ac_optarg ;; 1192 1193 -*) as_fn_error $? "unrecognized option: '$ac_option' 1194Try '$0 --help' for more information" 1195 ;; 1196 1197 *=*) 1198 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1199 # Reject names that are not valid shell variable names. 1200 case $ac_envvar in #( 1201 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1202 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1203 esac 1204 eval $ac_envvar=\$ac_optarg 1205 export $ac_envvar ;; 1206 1207 *) 1208 # FIXME: should be removed in autoconf 3.0. 1209 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1210 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1211 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1212 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1213 ;; 1214 1215 esac 1216done 1217 1218if test -n "$ac_prev"; then 1219 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1220 as_fn_error $? "missing argument to $ac_option" 1221fi 1222 1223if test -n "$ac_unrecognized_opts"; then 1224 case $enable_option_checking in 1225 no) ;; 1226 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1227 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1228 esac 1229fi 1230 1231# Check all directory arguments for consistency. 1232for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1233 datadir sysconfdir sharedstatedir localstatedir includedir \ 1234 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1235 libdir localedir mandir runstatedir 1236do 1237 eval ac_val=\$$ac_var 1238 # Remove trailing slashes. 1239 case $ac_val in 1240 */ ) 1241 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1242 eval $ac_var=\$ac_val;; 1243 esac 1244 # Be sure to have absolute directory names. 1245 case $ac_val in 1246 [\\/$]* | ?:[\\/]* ) continue;; 1247 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1248 esac 1249 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1250done 1251 1252# There might be people who depend on the old broken behavior: '$host' 1253# used to hold the argument of --host etc. 1254# FIXME: To remove some day. 1255build=$build_alias 1256host=$host_alias 1257target=$target_alias 1258 1259# FIXME: To remove some day. 1260if test "x$host_alias" != x; then 1261 if test "x$build_alias" = x; then 1262 cross_compiling=maybe 1263 elif test "x$build_alias" != "x$host_alias"; then 1264 cross_compiling=yes 1265 fi 1266fi 1267 1268ac_tool_prefix= 1269test -n "$host_alias" && ac_tool_prefix=$host_alias- 1270 1271test "$silent" = yes && exec 6>/dev/null 1272 1273 1274ac_pwd=`pwd` && test -n "$ac_pwd" && 1275ac_ls_di=`ls -di .` && 1276ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1277 as_fn_error $? "working directory cannot be determined" 1278test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1279 as_fn_error $? "pwd does not report name of working directory" 1280 1281 1282# Find the source files, if location was not specified. 1283if test -z "$srcdir"; then 1284 ac_srcdir_defaulted=yes 1285 # Try the directory containing this script, then the parent directory. 1286 ac_confdir=`$as_dirname -- "$as_myself" || 1287$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1288 X"$as_myself" : 'X\(//\)[^/]' \| \ 1289 X"$as_myself" : 'X\(//\)$' \| \ 1290 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1291printf "%s\n" X"$as_myself" | 1292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1293 s//\1/ 1294 q 1295 } 1296 /^X\(\/\/\)[^/].*/{ 1297 s//\1/ 1298 q 1299 } 1300 /^X\(\/\/\)$/{ 1301 s//\1/ 1302 q 1303 } 1304 /^X\(\/\).*/{ 1305 s//\1/ 1306 q 1307 } 1308 s/.*/./; q'` 1309 srcdir=$ac_confdir 1310 if test ! -r "$srcdir/$ac_unique_file"; then 1311 srcdir=.. 1312 fi 1313else 1314 ac_srcdir_defaulted=no 1315fi 1316if test ! -r "$srcdir/$ac_unique_file"; then 1317 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1318 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1319fi 1320ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1321ac_abs_confdir=`( 1322 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1323 pwd)` 1324# When building in place, set srcdir=. 1325if test "$ac_abs_confdir" = "$ac_pwd"; then 1326 srcdir=. 1327fi 1328# Remove unnecessary trailing slashes from srcdir. 1329# Double slashes in file names in object file debugging info 1330# mess up M-x gdb in Emacs. 1331case $srcdir in 1332*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1333esac 1334for ac_var in $ac_precious_vars; do 1335 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1336 eval ac_env_${ac_var}_value=\$${ac_var} 1337 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1338 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1339done 1340 1341# 1342# Report the --help message. 1343# 1344if test "$ac_init_help" = "long"; then 1345 # Omit some internal or obsolete options to make the list less imposing. 1346 # This message is too long to be a string in the A/UX 3.1 sh. 1347 cat <<_ACEOF 1348'configure' configures xkbcomp 1.4.7 to adapt to many kinds of systems. 1349 1350Usage: $0 [OPTION]... [VAR=VALUE]... 1351 1352To assign environment variables (e.g., CC, CFLAGS...), specify them as 1353VAR=VALUE. See below for descriptions of some of the useful variables. 1354 1355Defaults for the options are specified in brackets. 1356 1357Configuration: 1358 -h, --help display this help and exit 1359 --help=short display options specific to this package 1360 --help=recursive display the short help of all the included packages 1361 -V, --version display version information and exit 1362 -q, --quiet, --silent do not print 'checking ...' messages 1363 --cache-file=FILE cache test results in FILE [disabled] 1364 -C, --config-cache alias for '--cache-file=config.cache' 1365 -n, --no-create do not create output files 1366 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1367 1368Installation directories: 1369 --prefix=PREFIX install architecture-independent files in PREFIX 1370 [$ac_default_prefix] 1371 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1372 [PREFIX] 1373 1374By default, 'make install' will install all the files in 1375'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1376an installation prefix other than '$ac_default_prefix' using '--prefix', 1377for instance '--prefix=\$HOME'. 1378 1379For better control, use the options below. 1380 1381Fine tuning of the installation directories: 1382 --bindir=DIR user executables [EPREFIX/bin] 1383 --sbindir=DIR system admin executables [EPREFIX/sbin] 1384 --libexecdir=DIR program executables [EPREFIX/libexec] 1385 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1386 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1387 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1388 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1389 --libdir=DIR object code libraries [EPREFIX/lib] 1390 --includedir=DIR C header files [PREFIX/include] 1391 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1392 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1393 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1394 --infodir=DIR info documentation [DATAROOTDIR/info] 1395 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1396 --mandir=DIR man documentation [DATAROOTDIR/man] 1397 --docdir=DIR documentation root [DATAROOTDIR/doc/xkbcomp] 1398 --htmldir=DIR html documentation [DOCDIR] 1399 --dvidir=DIR dvi documentation [DOCDIR] 1400 --pdfdir=DIR pdf documentation [DOCDIR] 1401 --psdir=DIR ps documentation [DOCDIR] 1402_ACEOF 1403 1404 cat <<\_ACEOF 1405 1406Program names: 1407 --program-prefix=PREFIX prepend PREFIX to installed program names 1408 --program-suffix=SUFFIX append SUFFIX to installed program names 1409 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1410 1411System types: 1412 --build=BUILD configure for building on BUILD [guessed] 1413 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1414_ACEOF 1415fi 1416 1417if test -n "$ac_init_help"; then 1418 case $ac_init_help in 1419 short | recursive ) echo "Configuration of xkbcomp 1.4.7:";; 1420 esac 1421 cat <<\_ACEOF 1422 1423Optional Features: 1424 --disable-option-checking ignore unrecognized --enable/--with options 1425 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1426 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1427 --enable-dependency-tracking 1428 do not reject slow dependency extractors 1429 --disable-dependency-tracking 1430 speeds up one-time build 1431 --enable-silent-rules less verbose build output (undo: "make V=1") 1432 --disable-silent-rules verbose build output (undo: "make V=0") 1433 --disable-selective-werror 1434 Turn off selective compiler errors. (default: 1435 enabled) 1436 --enable-strict-compilation 1437 Enable all warnings from compiler and make them 1438 errors (default: disabled) 1439 --disable-largefile omit support for large files 1440 --enable-year2038 support timestamps after 2038 1441 1442Optional Packages: 1443 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1444 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1445 --with-xkb-config-root=<paths> 1446 Set default XKB config root (default: 1447 ${datadir}/X11/xkb) 1448 1449Some influential environment variables: 1450 CC C compiler command 1451 CFLAGS C compiler flags 1452 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1453 nonstandard directory <lib dir> 1454 LIBS libraries to pass to the linker, e.g. -l<library> 1455 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1456 you have headers in a nonstandard directory <include dir> 1457 PKG_CONFIG path to pkg-config utility 1458 PKG_CONFIG_PATH 1459 directories to add to pkg-config's search path 1460 PKG_CONFIG_LIBDIR 1461 path overriding pkg-config's built-in search path 1462 YACC The 'Yet Another Compiler Compiler' implementation to use. 1463 Defaults to the first program found out of: 'bison -y', 'byacc', 1464 'yacc'. 1465 YFLAGS The list of arguments that will be passed by default to $YACC. 1466 This script will default YFLAGS to the empty string to avoid a 1467 default value of '-d' given by some make applications. 1468 XKBCOMP_CFLAGS 1469 C compiler flags for XKBCOMP, overriding pkg-config 1470 XKBCOMP_LIBS 1471 linker flags for XKBCOMP, overriding pkg-config 1472 1473Use these variables to override the choices made by 'configure' or to help 1474it to find libraries and programs with nonstandard names/locations. 1475 1476Report bugs to <https://gitlab.freedesktop.org/xorg/app/xkbcomp/-/issues>. 1477_ACEOF 1478ac_status=$? 1479fi 1480 1481if test "$ac_init_help" = "recursive"; then 1482 # If there are subdirs, report their specific --help. 1483 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1484 test -d "$ac_dir" || 1485 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1486 continue 1487 ac_builddir=. 1488 1489case "$ac_dir" in 1490.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1491*) 1492 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1493 # A ".." for each directory in $ac_dir_suffix. 1494 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1495 case $ac_top_builddir_sub in 1496 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1497 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1498 esac ;; 1499esac 1500ac_abs_top_builddir=$ac_pwd 1501ac_abs_builddir=$ac_pwd$ac_dir_suffix 1502# for backward compatibility: 1503ac_top_builddir=$ac_top_build_prefix 1504 1505case $srcdir in 1506 .) # We are building in place. 1507 ac_srcdir=. 1508 ac_top_srcdir=$ac_top_builddir_sub 1509 ac_abs_top_srcdir=$ac_pwd ;; 1510 [\\/]* | ?:[\\/]* ) # Absolute name. 1511 ac_srcdir=$srcdir$ac_dir_suffix; 1512 ac_top_srcdir=$srcdir 1513 ac_abs_top_srcdir=$srcdir ;; 1514 *) # Relative name. 1515 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1516 ac_top_srcdir=$ac_top_build_prefix$srcdir 1517 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1518esac 1519ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1520 1521 cd "$ac_dir" || { ac_status=$?; continue; } 1522 # Check for configure.gnu first; this name is used for a wrapper for 1523 # Metaconfig's "Configure" on case-insensitive file systems. 1524 if test -f "$ac_srcdir/configure.gnu"; then 1525 echo && 1526 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1527 elif test -f "$ac_srcdir/configure"; then 1528 echo && 1529 $SHELL "$ac_srcdir/configure" --help=recursive 1530 else 1531 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1532 fi || ac_status=$? 1533 cd "$ac_pwd" || { ac_status=$?; break; } 1534 done 1535fi 1536 1537test -n "$ac_init_help" && exit $ac_status 1538if $ac_init_version; then 1539 cat <<\_ACEOF 1540xkbcomp configure 1.4.7 1541generated by GNU Autoconf 2.72 1542 1543Copyright (C) 2023 Free Software Foundation, Inc. 1544This configure script is free software; the Free Software Foundation 1545gives unlimited permission to copy, distribute and modify it. 1546_ACEOF 1547 exit 1548fi 1549 1550## ------------------------ ## 1551## Autoconf initialization. ## 1552## ------------------------ ## 1553 1554# ac_fn_c_try_compile LINENO 1555# -------------------------- 1556# Try to compile conftest.$ac_ext, and return whether this succeeded. 1557ac_fn_c_try_compile () 1558{ 1559 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1560 rm -f conftest.$ac_objext conftest.beam 1561 if { { ac_try="$ac_compile" 1562case "(($ac_try" in 1563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1564 *) ac_try_echo=$ac_try;; 1565esac 1566eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1567printf "%s\n" "$ac_try_echo"; } >&5 1568 (eval "$ac_compile") 2>conftest.err 1569 ac_status=$? 1570 if test -s conftest.err; then 1571 grep -v '^ *+' conftest.err >conftest.er1 1572 cat conftest.er1 >&5 1573 mv -f conftest.er1 conftest.err 1574 fi 1575 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1576 test $ac_status = 0; } && { 1577 test -z "$ac_c_werror_flag" || 1578 test ! -s conftest.err 1579 } && test -s conftest.$ac_objext 1580then : 1581 ac_retval=0 1582else case e in #( 1583 e) printf "%s\n" "$as_me: failed program was:" >&5 1584sed 's/^/| /' conftest.$ac_ext >&5 1585 1586 ac_retval=1 ;; 1587esac 1588fi 1589 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1590 as_fn_set_status $ac_retval 1591 1592} # ac_fn_c_try_compile 1593 1594# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1595# ------------------------------------------------------- 1596# Tests whether HEADER exists and can be compiled using the include files in 1597# INCLUDES, setting the cache variable VAR accordingly. 1598ac_fn_c_check_header_compile () 1599{ 1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1602printf %s "checking for $2... " >&6; } 1603if eval test \${$3+y} 1604then : 1605 printf %s "(cached) " >&6 1606else case e in #( 1607 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1608/* end confdefs.h. */ 1609$4 1610#include <$2> 1611_ACEOF 1612if ac_fn_c_try_compile "$LINENO" 1613then : 1614 eval "$3=yes" 1615else case e in #( 1616 e) eval "$3=no" ;; 1617esac 1618fi 1619rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1620esac 1621fi 1622eval ac_res=\$$3 1623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1624printf "%s\n" "$ac_res" >&6; } 1625 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1626 1627} # ac_fn_c_check_header_compile 1628 1629# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1630# ------------------------------------------------------------------ 1631# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1632# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1633ac_fn_check_decl () 1634{ 1635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1636 as_decl_name=`echo $2|sed 's/ *(.*//'` 1637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1638printf %s "checking whether $as_decl_name is declared... " >&6; } 1639if eval test \${$3+y} 1640then : 1641 printf %s "(cached) " >&6 1642else case e in #( 1643 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1644 eval ac_save_FLAGS=\$$6 1645 as_fn_append $6 " $5" 1646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1647/* end confdefs.h. */ 1648$4 1649int 1650main (void) 1651{ 1652#ifndef $as_decl_name 1653#ifdef __cplusplus 1654 (void) $as_decl_use; 1655#else 1656 (void) $as_decl_name; 1657#endif 1658#endif 1659 1660 ; 1661 return 0; 1662} 1663_ACEOF 1664if ac_fn_c_try_compile "$LINENO" 1665then : 1666 eval "$3=yes" 1667else case e in #( 1668 e) eval "$3=no" ;; 1669esac 1670fi 1671rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1672 eval $6=\$ac_save_FLAGS 1673 ;; 1674esac 1675fi 1676eval ac_res=\$$3 1677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1678printf "%s\n" "$ac_res" >&6; } 1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1680 1681} # ac_fn_check_decl 1682 1683# ac_fn_c_try_link LINENO 1684# ----------------------- 1685# Try to link conftest.$ac_ext, and return whether this succeeded. 1686ac_fn_c_try_link () 1687{ 1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1689 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1690 if { { ac_try="$ac_link" 1691case "(($ac_try" in 1692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1693 *) ac_try_echo=$ac_try;; 1694esac 1695eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1696printf "%s\n" "$ac_try_echo"; } >&5 1697 (eval "$ac_link") 2>conftest.err 1698 ac_status=$? 1699 if test -s conftest.err; then 1700 grep -v '^ *+' conftest.err >conftest.er1 1701 cat conftest.er1 >&5 1702 mv -f conftest.er1 conftest.err 1703 fi 1704 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1705 test $ac_status = 0; } && { 1706 test -z "$ac_c_werror_flag" || 1707 test ! -s conftest.err 1708 } && test -s conftest$ac_exeext && { 1709 test "$cross_compiling" = yes || 1710 test -x conftest$ac_exeext 1711 } 1712then : 1713 ac_retval=0 1714else case e in #( 1715 e) printf "%s\n" "$as_me: failed program was:" >&5 1716sed 's/^/| /' conftest.$ac_ext >&5 1717 1718 ac_retval=1 ;; 1719esac 1720fi 1721 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1722 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1723 # interfere with the next link command; also delete a directory that is 1724 # left behind by Apple's compiler. We do this before executing the actions. 1725 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1727 as_fn_set_status $ac_retval 1728 1729} # ac_fn_c_try_link 1730 1731# ac_fn_c_check_func LINENO FUNC VAR 1732# ---------------------------------- 1733# Tests whether FUNC exists, setting the cache variable VAR accordingly 1734ac_fn_c_check_func () 1735{ 1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1738printf %s "checking for $2... " >&6; } 1739if eval test \${$3+y} 1740then : 1741 printf %s "(cached) " >&6 1742else case e in #( 1743 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1744/* end confdefs.h. */ 1745/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1746 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1747#define $2 innocuous_$2 1748 1749/* System header to define __stub macros and hopefully few prototypes, 1750 which can conflict with char $2 (void); below. */ 1751 1752#include <limits.h> 1753#undef $2 1754 1755/* Override any GCC internal prototype to avoid an error. 1756 Use char because int might match the return type of a GCC 1757 builtin and then its argument prototype would still apply. */ 1758#ifdef __cplusplus 1759extern "C" 1760#endif 1761char $2 (void); 1762/* The GNU C library defines this for functions which it implements 1763 to always fail with ENOSYS. Some functions are actually named 1764 something starting with __ and the normal name is an alias. */ 1765#if defined __stub_$2 || defined __stub___$2 1766choke me 1767#endif 1768 1769int 1770main (void) 1771{ 1772return $2 (); 1773 ; 1774 return 0; 1775} 1776_ACEOF 1777if ac_fn_c_try_link "$LINENO" 1778then : 1779 eval "$3=yes" 1780else case e in #( 1781 e) eval "$3=no" ;; 1782esac 1783fi 1784rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1785 conftest$ac_exeext conftest.$ac_ext ;; 1786esac 1787fi 1788eval ac_res=\$$3 1789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1790printf "%s\n" "$ac_res" >&6; } 1791 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1792 1793} # ac_fn_c_check_func 1794ac_configure_args_raw= 1795for ac_arg 1796do 1797 case $ac_arg in 1798 *\'*) 1799 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1800 esac 1801 as_fn_append ac_configure_args_raw " '$ac_arg'" 1802done 1803 1804case $ac_configure_args_raw in 1805 *$as_nl*) 1806 ac_safe_unquote= ;; 1807 *) 1808 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1809 ac_unsafe_a="$ac_unsafe_z#~" 1810 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1811 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1812esac 1813 1814cat >config.log <<_ACEOF 1815This file contains any messages produced by compilers while 1816running configure, to aid debugging if configure makes a mistake. 1817 1818It was created by xkbcomp $as_me 1.4.7, which was 1819generated by GNU Autoconf 2.72. Invocation command line was 1820 1821 $ $0$ac_configure_args_raw 1822 1823_ACEOF 1824exec 5>>config.log 1825{ 1826cat <<_ASUNAME 1827## --------- ## 1828## Platform. ## 1829## --------- ## 1830 1831hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1832uname -m = `(uname -m) 2>/dev/null || echo unknown` 1833uname -r = `(uname -r) 2>/dev/null || echo unknown` 1834uname -s = `(uname -s) 2>/dev/null || echo unknown` 1835uname -v = `(uname -v) 2>/dev/null || echo unknown` 1836 1837/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1838/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1839 1840/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1841/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1842/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1843/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1844/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1845/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1846/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1847 1848_ASUNAME 1849 1850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1851for as_dir in $PATH 1852do 1853 IFS=$as_save_IFS 1854 case $as_dir in #((( 1855 '') as_dir=./ ;; 1856 */) ;; 1857 *) as_dir=$as_dir/ ;; 1858 esac 1859 printf "%s\n" "PATH: $as_dir" 1860 done 1861IFS=$as_save_IFS 1862 1863} >&5 1864 1865cat >&5 <<_ACEOF 1866 1867 1868## ----------- ## 1869## Core tests. ## 1870## ----------- ## 1871 1872_ACEOF 1873 1874 1875# Keep a trace of the command line. 1876# Strip out --no-create and --no-recursion so they do not pile up. 1877# Strip out --silent because we don't want to record it for future runs. 1878# Also quote any args containing shell meta-characters. 1879# Make two passes to allow for proper duplicate-argument suppression. 1880ac_configure_args= 1881ac_configure_args0= 1882ac_configure_args1= 1883ac_must_keep_next=false 1884for ac_pass in 1 2 1885do 1886 for ac_arg 1887 do 1888 case $ac_arg in 1889 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1890 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1891 | -silent | --silent | --silen | --sile | --sil) 1892 continue ;; 1893 *\'*) 1894 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1895 esac 1896 case $ac_pass in 1897 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1898 2) 1899 as_fn_append ac_configure_args1 " '$ac_arg'" 1900 if test $ac_must_keep_next = true; then 1901 ac_must_keep_next=false # Got value, back to normal. 1902 else 1903 case $ac_arg in 1904 *=* | --config-cache | -C | -disable-* | --disable-* \ 1905 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1906 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1907 | -with-* | --with-* | -without-* | --without-* | --x) 1908 case "$ac_configure_args0 " in 1909 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1910 esac 1911 ;; 1912 -* ) ac_must_keep_next=true ;; 1913 esac 1914 fi 1915 as_fn_append ac_configure_args " '$ac_arg'" 1916 ;; 1917 esac 1918 done 1919done 1920{ ac_configure_args0=; unset ac_configure_args0;} 1921{ ac_configure_args1=; unset ac_configure_args1;} 1922 1923# When interrupted or exit'd, cleanup temporary files, and complete 1924# config.log. We remove comments because anyway the quotes in there 1925# would cause problems or look ugly. 1926# WARNING: Use '\'' to represent an apostrophe within the trap. 1927# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1928trap 'exit_status=$? 1929 # Sanitize IFS. 1930 IFS=" "" $as_nl" 1931 # Save into config.log some information that might help in debugging. 1932 { 1933 echo 1934 1935 printf "%s\n" "## ---------------- ## 1936## Cache variables. ## 1937## ---------------- ##" 1938 echo 1939 # The following way of writing the cache mishandles newlines in values, 1940( 1941 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1942 eval ac_val=\$$ac_var 1943 case $ac_val in #( 1944 *${as_nl}*) 1945 case $ac_var in #( 1946 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1947printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1948 esac 1949 case $ac_var in #( 1950 _ | IFS | as_nl) ;; #( 1951 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1952 *) { eval $ac_var=; unset $ac_var;} ;; 1953 esac ;; 1954 esac 1955 done 1956 (set) 2>&1 | 1957 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1958 *${as_nl}ac_space=\ *) 1959 sed -n \ 1960 "s/'\''/'\''\\\\'\'''\''/g; 1961 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1962 ;; #( 1963 *) 1964 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1965 ;; 1966 esac | 1967 sort 1968) 1969 echo 1970 1971 printf "%s\n" "## ----------------- ## 1972## Output variables. ## 1973## ----------------- ##" 1974 echo 1975 for ac_var in $ac_subst_vars 1976 do 1977 eval ac_val=\$$ac_var 1978 case $ac_val in 1979 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1980 esac 1981 printf "%s\n" "$ac_var='\''$ac_val'\''" 1982 done | sort 1983 echo 1984 1985 if test -n "$ac_subst_files"; then 1986 printf "%s\n" "## ------------------- ## 1987## File substitutions. ## 1988## ------------------- ##" 1989 echo 1990 for ac_var in $ac_subst_files 1991 do 1992 eval ac_val=\$$ac_var 1993 case $ac_val in 1994 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1995 esac 1996 printf "%s\n" "$ac_var='\''$ac_val'\''" 1997 done | sort 1998 echo 1999 fi 2000 2001 if test -s confdefs.h; then 2002 printf "%s\n" "## ----------- ## 2003## confdefs.h. ## 2004## ----------- ##" 2005 echo 2006 cat confdefs.h 2007 echo 2008 fi 2009 test "$ac_signal" != 0 && 2010 printf "%s\n" "$as_me: caught signal $ac_signal" 2011 printf "%s\n" "$as_me: exit $exit_status" 2012 } >&5 2013 rm -f core *.core core.conftest.* && 2014 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2015 exit $exit_status 2016' 0 2017for ac_signal in 1 2 13 15; do 2018 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2019done 2020ac_signal=0 2021 2022# confdefs.h avoids OS command line length limits that DEFS can exceed. 2023rm -f -r conftest* confdefs.h 2024 2025printf "%s\n" "/* confdefs.h */" > confdefs.h 2026 2027# Predefined preprocessor variables. 2028 2029printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2030 2031printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2032 2033printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2034 2035printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2036 2037printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2038 2039printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2040 2041 2042# Let the site file select an alternate cache file if it wants to. 2043# Prefer an explicitly selected file to automatically selected ones. 2044if test -n "$CONFIG_SITE"; then 2045 ac_site_files="$CONFIG_SITE" 2046elif test "x$prefix" != xNONE; then 2047 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2048else 2049 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2050fi 2051 2052for ac_site_file in $ac_site_files 2053do 2054 case $ac_site_file in #( 2055 */*) : 2056 ;; #( 2057 *) : 2058 ac_site_file=./$ac_site_file ;; 2059esac 2060 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2062printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2063 sed 's/^/| /' "$ac_site_file" >&5 2064 . "$ac_site_file" \ 2065 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2066printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2067as_fn_error $? "failed to load site script $ac_site_file 2068See 'config.log' for more details" "$LINENO" 5; } 2069 fi 2070done 2071 2072if test -r "$cache_file"; then 2073 # Some versions of bash will fail to source /dev/null (special files 2074 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2075 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2077printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2078 case $cache_file in 2079 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2080 *) . "./$cache_file";; 2081 esac 2082 fi 2083else 2084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2085printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2086 >$cache_file 2087fi 2088 2089as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2090# Test code for whether the C compiler supports C89 (global declarations) 2091ac_c_conftest_c89_globals=' 2092/* Does the compiler advertise C89 conformance? 2093 Do not test the value of __STDC__, because some compilers set it to 0 2094 while being otherwise adequately conformant. */ 2095#if !defined __STDC__ 2096# error "Compiler does not advertise C89 conformance" 2097#endif 2098 2099#include <stddef.h> 2100#include <stdarg.h> 2101struct stat; 2102/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2103struct buf { int x; }; 2104struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2105static char *e (char **p, int i) 2106{ 2107 return p[i]; 2108} 2109static char *f (char * (*g) (char **, int), char **p, ...) 2110{ 2111 char *s; 2112 va_list v; 2113 va_start (v,p); 2114 s = g (p, va_arg (v,int)); 2115 va_end (v); 2116 return s; 2117} 2118 2119/* C89 style stringification. */ 2120#define noexpand_stringify(a) #a 2121const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2122 2123/* C89 style token pasting. Exercises some of the corner cases that 2124 e.g. old MSVC gets wrong, but not very hard. */ 2125#define noexpand_concat(a,b) a##b 2126#define expand_concat(a,b) noexpand_concat(a,b) 2127extern int vA; 2128extern int vbee; 2129#define aye A 2130#define bee B 2131int *pvA = &expand_concat(v,aye); 2132int *pvbee = &noexpand_concat(v,bee); 2133 2134/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2135 function prototypes and stuff, but not \xHH hex character constants. 2136 These do not provoke an error unfortunately, instead are silently treated 2137 as an "x". The following induces an error, until -std is added to get 2138 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2139 array size at least. It is necessary to write \x00 == 0 to get something 2140 that is true only with -std. */ 2141int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2142 2143/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2144 inside strings and character constants. */ 2145#define FOO(x) '\''x'\'' 2146int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2147 2148int test (int i, double x); 2149struct s1 {int (*f) (int a);}; 2150struct s2 {int (*f) (double a);}; 2151int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2152 int, int);' 2153 2154# Test code for whether the C compiler supports C89 (body of main). 2155ac_c_conftest_c89_main=' 2156ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2157' 2158 2159# Test code for whether the C compiler supports C99 (global declarations) 2160ac_c_conftest_c99_globals=' 2161/* Does the compiler advertise C99 conformance? */ 2162#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2163# error "Compiler does not advertise C99 conformance" 2164#endif 2165 2166// See if C++-style comments work. 2167 2168#include <stdbool.h> 2169extern int puts (const char *); 2170extern int printf (const char *, ...); 2171extern int dprintf (int, const char *, ...); 2172extern void *malloc (size_t); 2173extern void free (void *); 2174 2175// Check varargs macros. These examples are taken from C99 6.10.3.5. 2176// dprintf is used instead of fprintf to avoid needing to declare 2177// FILE and stderr. 2178#define debug(...) dprintf (2, __VA_ARGS__) 2179#define showlist(...) puts (#__VA_ARGS__) 2180#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2181static void 2182test_varargs_macros (void) 2183{ 2184 int x = 1234; 2185 int y = 5678; 2186 debug ("Flag"); 2187 debug ("X = %d\n", x); 2188 showlist (The first, second, and third items.); 2189 report (x>y, "x is %d but y is %d", x, y); 2190} 2191 2192// Check long long types. 2193#define BIG64 18446744073709551615ull 2194#define BIG32 4294967295ul 2195#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2196#if !BIG_OK 2197 #error "your preprocessor is broken" 2198#endif 2199#if BIG_OK 2200#else 2201 #error "your preprocessor is broken" 2202#endif 2203static long long int bignum = -9223372036854775807LL; 2204static unsigned long long int ubignum = BIG64; 2205 2206struct incomplete_array 2207{ 2208 int datasize; 2209 double data[]; 2210}; 2211 2212struct named_init { 2213 int number; 2214 const wchar_t *name; 2215 double average; 2216}; 2217 2218typedef const char *ccp; 2219 2220static inline int 2221test_restrict (ccp restrict text) 2222{ 2223 // Iterate through items via the restricted pointer. 2224 // Also check for declarations in for loops. 2225 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2226 continue; 2227 return 0; 2228} 2229 2230// Check varargs and va_copy. 2231static bool 2232test_varargs (const char *format, ...) 2233{ 2234 va_list args; 2235 va_start (args, format); 2236 va_list args_copy; 2237 va_copy (args_copy, args); 2238 2239 const char *str = ""; 2240 int number = 0; 2241 float fnumber = 0; 2242 2243 while (*format) 2244 { 2245 switch (*format++) 2246 { 2247 case '\''s'\'': // string 2248 str = va_arg (args_copy, const char *); 2249 break; 2250 case '\''d'\'': // int 2251 number = va_arg (args_copy, int); 2252 break; 2253 case '\''f'\'': // float 2254 fnumber = va_arg (args_copy, double); 2255 break; 2256 default: 2257 break; 2258 } 2259 } 2260 va_end (args_copy); 2261 va_end (args); 2262 2263 return *str && number && fnumber; 2264} 2265' 2266 2267# Test code for whether the C compiler supports C99 (body of main). 2268ac_c_conftest_c99_main=' 2269 // Check bool. 2270 _Bool success = false; 2271 success |= (argc != 0); 2272 2273 // Check restrict. 2274 if (test_restrict ("String literal") == 0) 2275 success = true; 2276 char *restrict newvar = "Another string"; 2277 2278 // Check varargs. 2279 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2280 test_varargs_macros (); 2281 2282 // Check flexible array members. 2283 struct incomplete_array *ia = 2284 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2285 ia->datasize = 10; 2286 for (int i = 0; i < ia->datasize; ++i) 2287 ia->data[i] = i * 1.234; 2288 // Work around memory leak warnings. 2289 free (ia); 2290 2291 // Check named initializers. 2292 struct named_init ni = { 2293 .number = 34, 2294 .name = L"Test wide string", 2295 .average = 543.34343, 2296 }; 2297 2298 ni.number = 58; 2299 2300 int dynamic_array[ni.number]; 2301 dynamic_array[0] = argv[0][0]; 2302 dynamic_array[ni.number - 1] = 543; 2303 2304 // work around unused variable warnings 2305 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2306 || dynamic_array[ni.number - 1] != 543); 2307' 2308 2309# Test code for whether the C compiler supports C11 (global declarations) 2310ac_c_conftest_c11_globals=' 2311/* Does the compiler advertise C11 conformance? */ 2312#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2313# error "Compiler does not advertise C11 conformance" 2314#endif 2315 2316// Check _Alignas. 2317char _Alignas (double) aligned_as_double; 2318char _Alignas (0) no_special_alignment; 2319extern char aligned_as_int; 2320char _Alignas (0) _Alignas (int) aligned_as_int; 2321 2322// Check _Alignof. 2323enum 2324{ 2325 int_alignment = _Alignof (int), 2326 int_array_alignment = _Alignof (int[100]), 2327 char_alignment = _Alignof (char) 2328}; 2329_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2330 2331// Check _Noreturn. 2332int _Noreturn does_not_return (void) { for (;;) continue; } 2333 2334// Check _Static_assert. 2335struct test_static_assert 2336{ 2337 int x; 2338 _Static_assert (sizeof (int) <= sizeof (long int), 2339 "_Static_assert does not work in struct"); 2340 long int y; 2341}; 2342 2343// Check UTF-8 literals. 2344#define u8 syntax error! 2345char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2346 2347// Check duplicate typedefs. 2348typedef long *long_ptr; 2349typedef long int *long_ptr; 2350typedef long_ptr long_ptr; 2351 2352// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2353struct anonymous 2354{ 2355 union { 2356 struct { int i; int j; }; 2357 struct { int k; long int l; } w; 2358 }; 2359 int m; 2360} v1; 2361' 2362 2363# Test code for whether the C compiler supports C11 (body of main). 2364ac_c_conftest_c11_main=' 2365 _Static_assert ((offsetof (struct anonymous, i) 2366 == offsetof (struct anonymous, w.k)), 2367 "Anonymous union alignment botch"); 2368 v1.i = 2; 2369 v1.w.k = 5; 2370 ok |= v1.i != 5; 2371' 2372 2373# Test code for whether the C compiler supports C11 (complete). 2374ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2375${ac_c_conftest_c99_globals} 2376${ac_c_conftest_c11_globals} 2377 2378int 2379main (int argc, char **argv) 2380{ 2381 int ok = 0; 2382 ${ac_c_conftest_c89_main} 2383 ${ac_c_conftest_c99_main} 2384 ${ac_c_conftest_c11_main} 2385 return ok; 2386} 2387" 2388 2389# Test code for whether the C compiler supports C99 (complete). 2390ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2391${ac_c_conftest_c99_globals} 2392 2393int 2394main (int argc, char **argv) 2395{ 2396 int ok = 0; 2397 ${ac_c_conftest_c89_main} 2398 ${ac_c_conftest_c99_main} 2399 return ok; 2400} 2401" 2402 2403# Test code for whether the C compiler supports C89 (complete). 2404ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2405 2406int 2407main (int argc, char **argv) 2408{ 2409 int ok = 0; 2410 ${ac_c_conftest_c89_main} 2411 return ok; 2412} 2413" 2414 2415as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2416as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2417as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2418as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2419as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2420as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2421as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2422as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2423as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2424as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2425 2426# Auxiliary files required by this configure script. 2427ac_aux_files="config.guess config.sub missing install-sh compile" 2428 2429# Locations in which to look for auxiliary files. 2430ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2431 2432# Search for a directory containing all of the required auxiliary files, 2433# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2434# If we don't find one directory that contains all the files we need, 2435# we report the set of missing files from the *first* directory in 2436# $ac_aux_dir_candidates and give up. 2437ac_missing_aux_files="" 2438ac_first_candidate=: 2439printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2441as_found=false 2442for as_dir in $ac_aux_dir_candidates 2443do 2444 IFS=$as_save_IFS 2445 case $as_dir in #((( 2446 '') as_dir=./ ;; 2447 */) ;; 2448 *) as_dir=$as_dir/ ;; 2449 esac 2450 as_found=: 2451 2452 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2453 ac_aux_dir_found=yes 2454 ac_install_sh= 2455 for ac_aux in $ac_aux_files 2456 do 2457 # As a special case, if "install-sh" is required, that requirement 2458 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2459 # and $ac_install_sh is set appropriately for whichever one is found. 2460 if test x"$ac_aux" = x"install-sh" 2461 then 2462 if test -f "${as_dir}install-sh"; then 2463 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2464 ac_install_sh="${as_dir}install-sh -c" 2465 elif test -f "${as_dir}install.sh"; then 2466 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2467 ac_install_sh="${as_dir}install.sh -c" 2468 elif test -f "${as_dir}shtool"; then 2469 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2470 ac_install_sh="${as_dir}shtool install -c" 2471 else 2472 ac_aux_dir_found=no 2473 if $ac_first_candidate; then 2474 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2475 else 2476 break 2477 fi 2478 fi 2479 else 2480 if test -f "${as_dir}${ac_aux}"; then 2481 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2482 else 2483 ac_aux_dir_found=no 2484 if $ac_first_candidate; then 2485 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2486 else 2487 break 2488 fi 2489 fi 2490 fi 2491 done 2492 if test "$ac_aux_dir_found" = yes; then 2493 ac_aux_dir="$as_dir" 2494 break 2495 fi 2496 ac_first_candidate=false 2497 2498 as_found=false 2499done 2500IFS=$as_save_IFS 2501if $as_found 2502then : 2503 2504else case e in #( 2505 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2506esac 2507fi 2508 2509 2510# These three variables are undocumented and unsupported, 2511# and are intended to be withdrawn in a future Autoconf release. 2512# They can cause serious problems if a builder's source tree is in a directory 2513# whose full name contains unusual characters. 2514if test -f "${ac_aux_dir}config.guess"; then 2515 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2516fi 2517if test -f "${ac_aux_dir}config.sub"; then 2518 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2519fi 2520if test -f "$ac_aux_dir/configure"; then 2521 ac_configure="$SHELL ${ac_aux_dir}configure" 2522fi 2523 2524# Check that the precious variables saved in the cache have kept the same 2525# value. 2526ac_cache_corrupted=false 2527for ac_var in $ac_precious_vars; do 2528 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2529 eval ac_new_set=\$ac_env_${ac_var}_set 2530 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2531 eval ac_new_val=\$ac_env_${ac_var}_value 2532 case $ac_old_set,$ac_new_set in 2533 set,) 2534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2535printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2536 ac_cache_corrupted=: ;; 2537 ,set) 2538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2539printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2540 ac_cache_corrupted=: ;; 2541 ,);; 2542 *) 2543 if test "x$ac_old_val" != "x$ac_new_val"; then 2544 # differences in whitespace do not lead to failure. 2545 ac_old_val_w=`echo x $ac_old_val` 2546 ac_new_val_w=`echo x $ac_new_val` 2547 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2549printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2550 ac_cache_corrupted=: 2551 else 2552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2553printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2554 eval $ac_var=\$ac_old_val 2555 fi 2556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2557printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2559printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2560 fi;; 2561 esac 2562 # Pass precious variables to config.status. 2563 if test "$ac_new_set" = set; then 2564 case $ac_new_val in 2565 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2566 *) ac_arg=$ac_var=$ac_new_val ;; 2567 esac 2568 case " $ac_configure_args " in 2569 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2570 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2571 esac 2572 fi 2573done 2574if $ac_cache_corrupted; then 2575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2576printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2578printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2579 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2580 and start over" "$LINENO" 5 2581fi 2582## -------------------- ## 2583## Main body of script. ## 2584## -------------------- ## 2585 2586ac_ext=c 2587ac_cpp='$CPP $CPPFLAGS' 2588ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2589ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2590ac_compiler_gnu=$ac_cv_c_compiler_gnu 2591 2592 2593 2594ac_config_headers="$ac_config_headers config.h" 2595 2596 2597# Set common system defines for POSIX extensions, such as _GNU_SOURCE 2598# Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL) 2599# to avoid autoconf errors. 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611# Expand $ac_aux_dir to an absolute path. 2612am_aux_dir=`cd "$ac_aux_dir" && pwd` 2613 2614ac_ext=c 2615ac_cpp='$CPP $CPPFLAGS' 2616ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2617ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2618ac_compiler_gnu=$ac_cv_c_compiler_gnu 2619if test -n "$ac_tool_prefix"; then 2620 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2621set dummy ${ac_tool_prefix}gcc; ac_word=$2 2622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2623printf %s "checking for $ac_word... " >&6; } 2624if test ${ac_cv_prog_CC+y} 2625then : 2626 printf %s "(cached) " >&6 2627else case e in #( 2628 e) if test -n "$CC"; then 2629 ac_cv_prog_CC="$CC" # Let the user override the test. 2630else 2631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2632for as_dir in $PATH 2633do 2634 IFS=$as_save_IFS 2635 case $as_dir in #((( 2636 '') as_dir=./ ;; 2637 */) ;; 2638 *) as_dir=$as_dir/ ;; 2639 esac 2640 for ac_exec_ext in '' $ac_executable_extensions; do 2641 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2642 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2643 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2644 break 2 2645 fi 2646done 2647 done 2648IFS=$as_save_IFS 2649 2650fi ;; 2651esac 2652fi 2653CC=$ac_cv_prog_CC 2654if test -n "$CC"; then 2655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2656printf "%s\n" "$CC" >&6; } 2657else 2658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2659printf "%s\n" "no" >&6; } 2660fi 2661 2662 2663fi 2664if test -z "$ac_cv_prog_CC"; then 2665 ac_ct_CC=$CC 2666 # Extract the first word of "gcc", so it can be a program name with args. 2667set dummy gcc; ac_word=$2 2668{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2669printf %s "checking for $ac_word... " >&6; } 2670if test ${ac_cv_prog_ac_ct_CC+y} 2671then : 2672 printf %s "(cached) " >&6 2673else case e in #( 2674 e) if test -n "$ac_ct_CC"; then 2675 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2676else 2677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2678for as_dir in $PATH 2679do 2680 IFS=$as_save_IFS 2681 case $as_dir in #((( 2682 '') as_dir=./ ;; 2683 */) ;; 2684 *) as_dir=$as_dir/ ;; 2685 esac 2686 for ac_exec_ext in '' $ac_executable_extensions; do 2687 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2688 ac_cv_prog_ac_ct_CC="gcc" 2689 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2690 break 2 2691 fi 2692done 2693 done 2694IFS=$as_save_IFS 2695 2696fi ;; 2697esac 2698fi 2699ac_ct_CC=$ac_cv_prog_ac_ct_CC 2700if test -n "$ac_ct_CC"; then 2701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2702printf "%s\n" "$ac_ct_CC" >&6; } 2703else 2704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2705printf "%s\n" "no" >&6; } 2706fi 2707 2708 if test "x$ac_ct_CC" = x; then 2709 CC="" 2710 else 2711 case $cross_compiling:$ac_tool_warned in 2712yes:) 2713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2714printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2715ac_tool_warned=yes ;; 2716esac 2717 CC=$ac_ct_CC 2718 fi 2719else 2720 CC="$ac_cv_prog_CC" 2721fi 2722 2723if test -z "$CC"; then 2724 if test -n "$ac_tool_prefix"; then 2725 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2726set dummy ${ac_tool_prefix}cc; ac_word=$2 2727{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2728printf %s "checking for $ac_word... " >&6; } 2729if test ${ac_cv_prog_CC+y} 2730then : 2731 printf %s "(cached) " >&6 2732else case e in #( 2733 e) if test -n "$CC"; then 2734 ac_cv_prog_CC="$CC" # Let the user override the test. 2735else 2736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2737for as_dir in $PATH 2738do 2739 IFS=$as_save_IFS 2740 case $as_dir in #((( 2741 '') as_dir=./ ;; 2742 */) ;; 2743 *) as_dir=$as_dir/ ;; 2744 esac 2745 for ac_exec_ext in '' $ac_executable_extensions; do 2746 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2747 ac_cv_prog_CC="${ac_tool_prefix}cc" 2748 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2749 break 2 2750 fi 2751done 2752 done 2753IFS=$as_save_IFS 2754 2755fi ;; 2756esac 2757fi 2758CC=$ac_cv_prog_CC 2759if test -n "$CC"; then 2760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2761printf "%s\n" "$CC" >&6; } 2762else 2763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2764printf "%s\n" "no" >&6; } 2765fi 2766 2767 2768 fi 2769fi 2770if test -z "$CC"; then 2771 # Extract the first word of "cc", so it can be a program name with args. 2772set dummy cc; ac_word=$2 2773{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2774printf %s "checking for $ac_word... " >&6; } 2775if test ${ac_cv_prog_CC+y} 2776then : 2777 printf %s "(cached) " >&6 2778else case e in #( 2779 e) if test -n "$CC"; then 2780 ac_cv_prog_CC="$CC" # Let the user override the test. 2781else 2782 ac_prog_rejected=no 2783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2784for as_dir in $PATH 2785do 2786 IFS=$as_save_IFS 2787 case $as_dir in #((( 2788 '') as_dir=./ ;; 2789 */) ;; 2790 *) as_dir=$as_dir/ ;; 2791 esac 2792 for ac_exec_ext in '' $ac_executable_extensions; do 2793 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2794 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2795 ac_prog_rejected=yes 2796 continue 2797 fi 2798 ac_cv_prog_CC="cc" 2799 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2800 break 2 2801 fi 2802done 2803 done 2804IFS=$as_save_IFS 2805 2806if test $ac_prog_rejected = yes; then 2807 # We found a bogon in the path, so make sure we never use it. 2808 set dummy $ac_cv_prog_CC 2809 shift 2810 if test $# != 0; then 2811 # We chose a different compiler from the bogus one. 2812 # However, it has the same basename, so the bogon will be chosen 2813 # first if we set CC to just the basename; use the full file name. 2814 shift 2815 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 2816 fi 2817fi 2818fi ;; 2819esac 2820fi 2821CC=$ac_cv_prog_CC 2822if test -n "$CC"; then 2823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2824printf "%s\n" "$CC" >&6; } 2825else 2826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2827printf "%s\n" "no" >&6; } 2828fi 2829 2830 2831fi 2832if test -z "$CC"; then 2833 if test -n "$ac_tool_prefix"; then 2834 for ac_prog in cl.exe 2835 do 2836 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2837set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2838{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2839printf %s "checking for $ac_word... " >&6; } 2840if test ${ac_cv_prog_CC+y} 2841then : 2842 printf %s "(cached) " >&6 2843else case e in #( 2844 e) if test -n "$CC"; then 2845 ac_cv_prog_CC="$CC" # Let the user override the test. 2846else 2847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2848for as_dir in $PATH 2849do 2850 IFS=$as_save_IFS 2851 case $as_dir in #((( 2852 '') as_dir=./ ;; 2853 */) ;; 2854 *) as_dir=$as_dir/ ;; 2855 esac 2856 for ac_exec_ext in '' $ac_executable_extensions; do 2857 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2858 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2859 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2860 break 2 2861 fi 2862done 2863 done 2864IFS=$as_save_IFS 2865 2866fi ;; 2867esac 2868fi 2869CC=$ac_cv_prog_CC 2870if test -n "$CC"; then 2871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2872printf "%s\n" "$CC" >&6; } 2873else 2874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2875printf "%s\n" "no" >&6; } 2876fi 2877 2878 2879 test -n "$CC" && break 2880 done 2881fi 2882if test -z "$CC"; then 2883 ac_ct_CC=$CC 2884 for ac_prog in cl.exe 2885do 2886 # Extract the first word of "$ac_prog", so it can be a program name with args. 2887set dummy $ac_prog; ac_word=$2 2888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2889printf %s "checking for $ac_word... " >&6; } 2890if test ${ac_cv_prog_ac_ct_CC+y} 2891then : 2892 printf %s "(cached) " >&6 2893else case e in #( 2894 e) if test -n "$ac_ct_CC"; then 2895 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2896else 2897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2898for as_dir in $PATH 2899do 2900 IFS=$as_save_IFS 2901 case $as_dir in #((( 2902 '') as_dir=./ ;; 2903 */) ;; 2904 *) as_dir=$as_dir/ ;; 2905 esac 2906 for ac_exec_ext in '' $ac_executable_extensions; do 2907 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2908 ac_cv_prog_ac_ct_CC="$ac_prog" 2909 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2910 break 2 2911 fi 2912done 2913 done 2914IFS=$as_save_IFS 2915 2916fi ;; 2917esac 2918fi 2919ac_ct_CC=$ac_cv_prog_ac_ct_CC 2920if test -n "$ac_ct_CC"; then 2921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2922printf "%s\n" "$ac_ct_CC" >&6; } 2923else 2924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2925printf "%s\n" "no" >&6; } 2926fi 2927 2928 2929 test -n "$ac_ct_CC" && break 2930done 2931 2932 if test "x$ac_ct_CC" = x; then 2933 CC="" 2934 else 2935 case $cross_compiling:$ac_tool_warned in 2936yes:) 2937{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2938printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2939ac_tool_warned=yes ;; 2940esac 2941 CC=$ac_ct_CC 2942 fi 2943fi 2944 2945fi 2946if test -z "$CC"; then 2947 if test -n "$ac_tool_prefix"; then 2948 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 2949set dummy ${ac_tool_prefix}clang; ac_word=$2 2950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2951printf %s "checking for $ac_word... " >&6; } 2952if test ${ac_cv_prog_CC+y} 2953then : 2954 printf %s "(cached) " >&6 2955else case e in #( 2956 e) if test -n "$CC"; then 2957 ac_cv_prog_CC="$CC" # Let the user override the test. 2958else 2959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2960for as_dir in $PATH 2961do 2962 IFS=$as_save_IFS 2963 case $as_dir in #((( 2964 '') as_dir=./ ;; 2965 */) ;; 2966 *) as_dir=$as_dir/ ;; 2967 esac 2968 for ac_exec_ext in '' $ac_executable_extensions; do 2969 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2970 ac_cv_prog_CC="${ac_tool_prefix}clang" 2971 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2972 break 2 2973 fi 2974done 2975 done 2976IFS=$as_save_IFS 2977 2978fi ;; 2979esac 2980fi 2981CC=$ac_cv_prog_CC 2982if test -n "$CC"; then 2983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2984printf "%s\n" "$CC" >&6; } 2985else 2986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2987printf "%s\n" "no" >&6; } 2988fi 2989 2990 2991fi 2992if test -z "$ac_cv_prog_CC"; then 2993 ac_ct_CC=$CC 2994 # Extract the first word of "clang", so it can be a program name with args. 2995set dummy clang; ac_word=$2 2996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2997printf %s "checking for $ac_word... " >&6; } 2998if test ${ac_cv_prog_ac_ct_CC+y} 2999then : 3000 printf %s "(cached) " >&6 3001else case e in #( 3002 e) if test -n "$ac_ct_CC"; then 3003 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3004else 3005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3006for as_dir in $PATH 3007do 3008 IFS=$as_save_IFS 3009 case $as_dir in #((( 3010 '') as_dir=./ ;; 3011 */) ;; 3012 *) as_dir=$as_dir/ ;; 3013 esac 3014 for ac_exec_ext in '' $ac_executable_extensions; do 3015 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3016 ac_cv_prog_ac_ct_CC="clang" 3017 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3018 break 2 3019 fi 3020done 3021 done 3022IFS=$as_save_IFS 3023 3024fi ;; 3025esac 3026fi 3027ac_ct_CC=$ac_cv_prog_ac_ct_CC 3028if test -n "$ac_ct_CC"; then 3029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3030printf "%s\n" "$ac_ct_CC" >&6; } 3031else 3032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3033printf "%s\n" "no" >&6; } 3034fi 3035 3036 if test "x$ac_ct_CC" = x; then 3037 CC="" 3038 else 3039 case $cross_compiling:$ac_tool_warned in 3040yes:) 3041{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3042printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3043ac_tool_warned=yes ;; 3044esac 3045 CC=$ac_ct_CC 3046 fi 3047else 3048 CC="$ac_cv_prog_CC" 3049fi 3050 3051fi 3052 3053 3054test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3055printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3056as_fn_error $? "no acceptable C compiler found in \$PATH 3057See 'config.log' for more details" "$LINENO" 5; } 3058 3059# Provide some information about the compiler. 3060printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3061set X $ac_compile 3062ac_compiler=$2 3063for ac_option in --version -v -V -qversion -version; do 3064 { { ac_try="$ac_compiler $ac_option >&5" 3065case "(($ac_try" in 3066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3067 *) ac_try_echo=$ac_try;; 3068esac 3069eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3070printf "%s\n" "$ac_try_echo"; } >&5 3071 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3072 ac_status=$? 3073 if test -s conftest.err; then 3074 sed '10a\ 3075... rest of stderr output deleted ... 3076 10q' conftest.err >conftest.er1 3077 cat conftest.er1 >&5 3078 fi 3079 rm -f conftest.er1 conftest.err 3080 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3081 test $ac_status = 0; } 3082done 3083 3084cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3085/* end confdefs.h. */ 3086 3087int 3088main (void) 3089{ 3090 3091 ; 3092 return 0; 3093} 3094_ACEOF 3095ac_clean_files_save=$ac_clean_files 3096ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3097# Try to create an executable without -o first, disregard a.out. 3098# It will help us diagnose broken compilers, and finding out an intuition 3099# of exeext. 3100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3101printf %s "checking whether the C compiler works... " >&6; } 3102ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3103 3104# The possible output files: 3105ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3106 3107ac_rmfiles= 3108for ac_file in $ac_files 3109do 3110 case $ac_file in 3111 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3112 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3113 esac 3114done 3115rm -f $ac_rmfiles 3116 3117if { { ac_try="$ac_link_default" 3118case "(($ac_try" in 3119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3120 *) ac_try_echo=$ac_try;; 3121esac 3122eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3123printf "%s\n" "$ac_try_echo"; } >&5 3124 (eval "$ac_link_default") 2>&5 3125 ac_status=$? 3126 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3127 test $ac_status = 0; } 3128then : 3129 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 3130# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 3131# in a Makefile. We should not override ac_cv_exeext if it was cached, 3132# so that the user can short-circuit this test for compilers unknown to 3133# Autoconf. 3134for ac_file in $ac_files '' 3135do 3136 test -f "$ac_file" || continue 3137 case $ac_file in 3138 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3139 ;; 3140 [ab].out ) 3141 # We found the default executable, but exeext='' is most 3142 # certainly right. 3143 break;; 3144 *.* ) 3145 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3146 then :; else 3147 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3148 fi 3149 # We set ac_cv_exeext here because the later test for it is not 3150 # safe: cross compilers may not add the suffix if given an '-o' 3151 # argument, so we may need to know it at that point already. 3152 # Even if this section looks crufty: it has the advantage of 3153 # actually working. 3154 break;; 3155 * ) 3156 break;; 3157 esac 3158done 3159test "$ac_cv_exeext" = no && ac_cv_exeext= 3160 3161else case e in #( 3162 e) ac_file='' ;; 3163esac 3164fi 3165if test -z "$ac_file" 3166then : 3167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3168printf "%s\n" "no" >&6; } 3169printf "%s\n" "$as_me: failed program was:" >&5 3170sed 's/^/| /' conftest.$ac_ext >&5 3171 3172{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3173printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3174as_fn_error 77 "C compiler cannot create executables 3175See 'config.log' for more details" "$LINENO" 5; } 3176else case e in #( 3177 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3178printf "%s\n" "yes" >&6; } ;; 3179esac 3180fi 3181{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3182printf %s "checking for C compiler default output file name... " >&6; } 3183{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3184printf "%s\n" "$ac_file" >&6; } 3185ac_exeext=$ac_cv_exeext 3186 3187rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3188ac_clean_files=$ac_clean_files_save 3189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3190printf %s "checking for suffix of executables... " >&6; } 3191if { { ac_try="$ac_link" 3192case "(($ac_try" in 3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3194 *) ac_try_echo=$ac_try;; 3195esac 3196eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3197printf "%s\n" "$ac_try_echo"; } >&5 3198 (eval "$ac_link") 2>&5 3199 ac_status=$? 3200 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3201 test $ac_status = 0; } 3202then : 3203 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 3204# catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 3205# work properly (i.e., refer to 'conftest.exe'), while it won't with 3206# 'rm'. 3207for ac_file in conftest.exe conftest conftest.*; do 3208 test -f "$ac_file" || continue 3209 case $ac_file in 3210 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3211 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3212 break;; 3213 * ) break;; 3214 esac 3215done 3216else case e in #( 3217 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3218printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3219as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3220See 'config.log' for more details" "$LINENO" 5; } ;; 3221esac 3222fi 3223rm -f conftest conftest$ac_cv_exeext 3224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3225printf "%s\n" "$ac_cv_exeext" >&6; } 3226 3227rm -f conftest.$ac_ext 3228EXEEXT=$ac_cv_exeext 3229ac_exeext=$EXEEXT 3230cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3231/* end confdefs.h. */ 3232#include <stdio.h> 3233int 3234main (void) 3235{ 3236FILE *f = fopen ("conftest.out", "w"); 3237 if (!f) 3238 return 1; 3239 return ferror (f) || fclose (f) != 0; 3240 3241 ; 3242 return 0; 3243} 3244_ACEOF 3245ac_clean_files="$ac_clean_files conftest.out" 3246# Check that the compiler produces executables we can run. If not, either 3247# the compiler is broken, or we cross compile. 3248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3249printf %s "checking whether we are cross compiling... " >&6; } 3250if test "$cross_compiling" != yes; then 3251 { { ac_try="$ac_link" 3252case "(($ac_try" in 3253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3254 *) ac_try_echo=$ac_try;; 3255esac 3256eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3257printf "%s\n" "$ac_try_echo"; } >&5 3258 (eval "$ac_link") 2>&5 3259 ac_status=$? 3260 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3261 test $ac_status = 0; } 3262 if { ac_try='./conftest$ac_cv_exeext' 3263 { { case "(($ac_try" in 3264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3265 *) ac_try_echo=$ac_try;; 3266esac 3267eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3268printf "%s\n" "$ac_try_echo"; } >&5 3269 (eval "$ac_try") 2>&5 3270 ac_status=$? 3271 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3272 test $ac_status = 0; }; }; then 3273 cross_compiling=no 3274 else 3275 if test "$cross_compiling" = maybe; then 3276 cross_compiling=yes 3277 else 3278 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3279printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3280as_fn_error 77 "cannot run C compiled programs. 3281If you meant to cross compile, use '--host'. 3282See 'config.log' for more details" "$LINENO" 5; } 3283 fi 3284 fi 3285fi 3286{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3287printf "%s\n" "$cross_compiling" >&6; } 3288 3289rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 3290 conftest.o conftest.obj conftest.out 3291ac_clean_files=$ac_clean_files_save 3292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3293printf %s "checking for suffix of object files... " >&6; } 3294if test ${ac_cv_objext+y} 3295then : 3296 printf %s "(cached) " >&6 3297else case e in #( 3298 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3299/* end confdefs.h. */ 3300 3301int 3302main (void) 3303{ 3304 3305 ; 3306 return 0; 3307} 3308_ACEOF 3309rm -f conftest.o conftest.obj 3310if { { ac_try="$ac_compile" 3311case "(($ac_try" in 3312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3313 *) ac_try_echo=$ac_try;; 3314esac 3315eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3316printf "%s\n" "$ac_try_echo"; } >&5 3317 (eval "$ac_compile") 2>&5 3318 ac_status=$? 3319 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3320 test $ac_status = 0; } 3321then : 3322 for ac_file in conftest.o conftest.obj conftest.*; do 3323 test -f "$ac_file" || continue; 3324 case $ac_file in 3325 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3326 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3327 break;; 3328 esac 3329done 3330else case e in #( 3331 e) printf "%s\n" "$as_me: failed program was:" >&5 3332sed 's/^/| /' conftest.$ac_ext >&5 3333 3334{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3335printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3336as_fn_error $? "cannot compute suffix of object files: cannot compile 3337See 'config.log' for more details" "$LINENO" 5; } ;; 3338esac 3339fi 3340rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 3341esac 3342fi 3343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3344printf "%s\n" "$ac_cv_objext" >&6; } 3345OBJEXT=$ac_cv_objext 3346ac_objext=$OBJEXT 3347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3348printf %s "checking whether the compiler supports GNU C... " >&6; } 3349if test ${ac_cv_c_compiler_gnu+y} 3350then : 3351 printf %s "(cached) " >&6 3352else case e in #( 3353 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3354/* end confdefs.h. */ 3355 3356int 3357main (void) 3358{ 3359#ifndef __GNUC__ 3360 choke me 3361#endif 3362 3363 ; 3364 return 0; 3365} 3366_ACEOF 3367if ac_fn_c_try_compile "$LINENO" 3368then : 3369 ac_compiler_gnu=yes 3370else case e in #( 3371 e) ac_compiler_gnu=no ;; 3372esac 3373fi 3374rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3375ac_cv_c_compiler_gnu=$ac_compiler_gnu 3376 ;; 3377esac 3378fi 3379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3380printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3381ac_compiler_gnu=$ac_cv_c_compiler_gnu 3382 3383if test $ac_compiler_gnu = yes; then 3384 GCC=yes 3385else 3386 GCC= 3387fi 3388ac_test_CFLAGS=${CFLAGS+y} 3389ac_save_CFLAGS=$CFLAGS 3390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3391printf %s "checking whether $CC accepts -g... " >&6; } 3392if test ${ac_cv_prog_cc_g+y} 3393then : 3394 printf %s "(cached) " >&6 3395else case e in #( 3396 e) ac_save_c_werror_flag=$ac_c_werror_flag 3397 ac_c_werror_flag=yes 3398 ac_cv_prog_cc_g=no 3399 CFLAGS="-g" 3400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3401/* end confdefs.h. */ 3402 3403int 3404main (void) 3405{ 3406 3407 ; 3408 return 0; 3409} 3410_ACEOF 3411if ac_fn_c_try_compile "$LINENO" 3412then : 3413 ac_cv_prog_cc_g=yes 3414else case e in #( 3415 e) CFLAGS="" 3416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3417/* end confdefs.h. */ 3418 3419int 3420main (void) 3421{ 3422 3423 ; 3424 return 0; 3425} 3426_ACEOF 3427if ac_fn_c_try_compile "$LINENO" 3428then : 3429 3430else case e in #( 3431 e) ac_c_werror_flag=$ac_save_c_werror_flag 3432 CFLAGS="-g" 3433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3434/* end confdefs.h. */ 3435 3436int 3437main (void) 3438{ 3439 3440 ; 3441 return 0; 3442} 3443_ACEOF 3444if ac_fn_c_try_compile "$LINENO" 3445then : 3446 ac_cv_prog_cc_g=yes 3447fi 3448rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3449esac 3450fi 3451rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3452esac 3453fi 3454rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3455 ac_c_werror_flag=$ac_save_c_werror_flag ;; 3456esac 3457fi 3458{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3459printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 3460if test $ac_test_CFLAGS; then 3461 CFLAGS=$ac_save_CFLAGS 3462elif test $ac_cv_prog_cc_g = yes; then 3463 if test "$GCC" = yes; then 3464 CFLAGS="-g -O2" 3465 else 3466 CFLAGS="-g" 3467 fi 3468else 3469 if test "$GCC" = yes; then 3470 CFLAGS="-O2" 3471 else 3472 CFLAGS= 3473 fi 3474fi 3475ac_prog_cc_stdc=no 3476if test x$ac_prog_cc_stdc = xno 3477then : 3478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 3479printf %s "checking for $CC option to enable C11 features... " >&6; } 3480if test ${ac_cv_prog_cc_c11+y} 3481then : 3482 printf %s "(cached) " >&6 3483else case e in #( 3484 e) ac_cv_prog_cc_c11=no 3485ac_save_CC=$CC 3486cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3487/* end confdefs.h. */ 3488$ac_c_conftest_c11_program 3489_ACEOF 3490for ac_arg in '' -std=gnu11 3491do 3492 CC="$ac_save_CC $ac_arg" 3493 if ac_fn_c_try_compile "$LINENO" 3494then : 3495 ac_cv_prog_cc_c11=$ac_arg 3496fi 3497rm -f core conftest.err conftest.$ac_objext conftest.beam 3498 test "x$ac_cv_prog_cc_c11" != "xno" && break 3499done 3500rm -f conftest.$ac_ext 3501CC=$ac_save_CC ;; 3502esac 3503fi 3504 3505if test "x$ac_cv_prog_cc_c11" = xno 3506then : 3507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3508printf "%s\n" "unsupported" >&6; } 3509else case e in #( 3510 e) if test "x$ac_cv_prog_cc_c11" = x 3511then : 3512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3513printf "%s\n" "none needed" >&6; } 3514else case e in #( 3515 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 3516printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 3517 CC="$CC $ac_cv_prog_cc_c11" ;; 3518esac 3519fi 3520 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 3521 ac_prog_cc_stdc=c11 ;; 3522esac 3523fi 3524fi 3525if test x$ac_prog_cc_stdc = xno 3526then : 3527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 3528printf %s "checking for $CC option to enable C99 features... " >&6; } 3529if test ${ac_cv_prog_cc_c99+y} 3530then : 3531 printf %s "(cached) " >&6 3532else case e in #( 3533 e) ac_cv_prog_cc_c99=no 3534ac_save_CC=$CC 3535cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3536/* end confdefs.h. */ 3537$ac_c_conftest_c99_program 3538_ACEOF 3539for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 3540do 3541 CC="$ac_save_CC $ac_arg" 3542 if ac_fn_c_try_compile "$LINENO" 3543then : 3544 ac_cv_prog_cc_c99=$ac_arg 3545fi 3546rm -f core conftest.err conftest.$ac_objext conftest.beam 3547 test "x$ac_cv_prog_cc_c99" != "xno" && break 3548done 3549rm -f conftest.$ac_ext 3550CC=$ac_save_CC ;; 3551esac 3552fi 3553 3554if test "x$ac_cv_prog_cc_c99" = xno 3555then : 3556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3557printf "%s\n" "unsupported" >&6; } 3558else case e in #( 3559 e) if test "x$ac_cv_prog_cc_c99" = x 3560then : 3561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3562printf "%s\n" "none needed" >&6; } 3563else case e in #( 3564 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3565printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 3566 CC="$CC $ac_cv_prog_cc_c99" ;; 3567esac 3568fi 3569 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 3570 ac_prog_cc_stdc=c99 ;; 3571esac 3572fi 3573fi 3574if test x$ac_prog_cc_stdc = xno 3575then : 3576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 3577printf %s "checking for $CC option to enable C89 features... " >&6; } 3578if test ${ac_cv_prog_cc_c89+y} 3579then : 3580 printf %s "(cached) " >&6 3581else case e in #( 3582 e) ac_cv_prog_cc_c89=no 3583ac_save_CC=$CC 3584cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3585/* end confdefs.h. */ 3586$ac_c_conftest_c89_program 3587_ACEOF 3588for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3589do 3590 CC="$ac_save_CC $ac_arg" 3591 if ac_fn_c_try_compile "$LINENO" 3592then : 3593 ac_cv_prog_cc_c89=$ac_arg 3594fi 3595rm -f core conftest.err conftest.$ac_objext conftest.beam 3596 test "x$ac_cv_prog_cc_c89" != "xno" && break 3597done 3598rm -f conftest.$ac_ext 3599CC=$ac_save_CC ;; 3600esac 3601fi 3602 3603if test "x$ac_cv_prog_cc_c89" = xno 3604then : 3605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3606printf "%s\n" "unsupported" >&6; } 3607else case e in #( 3608 e) if test "x$ac_cv_prog_cc_c89" = x 3609then : 3610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3611printf "%s\n" "none needed" >&6; } 3612else case e in #( 3613 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3614printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 3615 CC="$CC $ac_cv_prog_cc_c89" ;; 3616esac 3617fi 3618 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 3619 ac_prog_cc_stdc=c89 ;; 3620esac 3621fi 3622fi 3623 3624ac_ext=c 3625ac_cpp='$CPP $CPPFLAGS' 3626ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3627ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3628ac_compiler_gnu=$ac_cv_c_compiler_gnu 3629 3630 3631 ac_ext=c 3632ac_cpp='$CPP $CPPFLAGS' 3633ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3634ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3635ac_compiler_gnu=$ac_cv_c_compiler_gnu 3636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3637printf %s "checking whether $CC understands -c and -o together... " >&6; } 3638if test ${am_cv_prog_cc_c_o+y} 3639then : 3640 printf %s "(cached) " >&6 3641else case e in #( 3642 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3643/* end confdefs.h. */ 3644 3645int 3646main (void) 3647{ 3648 3649 ; 3650 return 0; 3651} 3652_ACEOF 3653 # Make sure it works both with $CC and with simple cc. 3654 # Following AC_PROG_CC_C_O, we do the test twice because some 3655 # compilers refuse to overwrite an existing .o file with -o, 3656 # though they will create one. 3657 am_cv_prog_cc_c_o=yes 3658 for am_i in 1 2; do 3659 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3660 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3661 ac_status=$? 3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3663 (exit $ac_status); } \ 3664 && test -f conftest2.$ac_objext; then 3665 : OK 3666 else 3667 am_cv_prog_cc_c_o=no 3668 break 3669 fi 3670 done 3671 rm -f core conftest* 3672 unset am_i ;; 3673esac 3674fi 3675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3676printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 3677if test "$am_cv_prog_cc_c_o" != yes; then 3678 # Losing compiler, so override with the script. 3679 # FIXME: It is wrong to rewrite CC. 3680 # But if we don't then we get into trouble of one sort or another. 3681 # A longer-term fix would be to have automake use am__CC in this case, 3682 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3683 CC="$am_aux_dir/compile $CC" 3684fi 3685ac_ext=c 3686ac_cpp='$CPP $CPPFLAGS' 3687ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3688ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3689ac_compiler_gnu=$ac_cv_c_compiler_gnu 3690 3691 3692 3693ac_header= ac_cache= 3694for ac_item in $ac_header_c_list 3695do 3696 if test $ac_cache; then 3697 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 3698 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 3699 printf "%s\n" "#define $ac_item 1" >> confdefs.h 3700 fi 3701 ac_header= ac_cache= 3702 elif test $ac_header; then 3703 ac_cache=$ac_item 3704 else 3705 ac_header=$ac_item 3706 fi 3707done 3708 3709 3710 3711 3712 3713 3714 3715 3716if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 3717then : 3718 3719printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 3720 3721fi 3722 3723 3724 3725 3726 3727 3728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3729printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3730if test ${ac_cv_safe_to_define___extensions__+y} 3731then : 3732 printf %s "(cached) " >&6 3733else case e in #( 3734 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3735/* end confdefs.h. */ 3736 3737# define __EXTENSIONS__ 1 3738 $ac_includes_default 3739int 3740main (void) 3741{ 3742 3743 ; 3744 return 0; 3745} 3746_ACEOF 3747if ac_fn_c_try_compile "$LINENO" 3748then : 3749 ac_cv_safe_to_define___extensions__=yes 3750else case e in #( 3751 e) ac_cv_safe_to_define___extensions__=no ;; 3752esac 3753fi 3754rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3755esac 3756fi 3757{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3758printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 3759 3760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 3761printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 3762if test ${ac_cv_should_define__xopen_source+y} 3763then : 3764 printf %s "(cached) " >&6 3765else case e in #( 3766 e) ac_cv_should_define__xopen_source=no 3767 if test $ac_cv_header_wchar_h = yes 3768then : 3769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3770/* end confdefs.h. */ 3771 3772 #include <wchar.h> 3773 mbstate_t x; 3774int 3775main (void) 3776{ 3777 3778 ; 3779 return 0; 3780} 3781_ACEOF 3782if ac_fn_c_try_compile "$LINENO" 3783then : 3784 3785else case e in #( 3786 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3787/* end confdefs.h. */ 3788 3789 #define _XOPEN_SOURCE 500 3790 #include <wchar.h> 3791 mbstate_t x; 3792int 3793main (void) 3794{ 3795 3796 ; 3797 return 0; 3798} 3799_ACEOF 3800if ac_fn_c_try_compile "$LINENO" 3801then : 3802 ac_cv_should_define__xopen_source=yes 3803fi 3804rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3805esac 3806fi 3807rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3808fi ;; 3809esac 3810fi 3811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 3812printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 3813 3814 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 3815 3816 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 3817 3818 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 3819 3820 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 3821 3822 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 3823 3824 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 3825 3826 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3827 3828 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 3829 3830 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 3831 3832 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 3833 3834 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h 3835 3836 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 3837 3838 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 3839 3840 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 3841 3842 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 3843 3844 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 3845 3846 if test $ac_cv_header_minix_config_h = yes 3847then : 3848 MINIX=yes 3849 printf "%s\n" "#define _MINIX 1" >>confdefs.h 3850 3851 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 3852 3853 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 3854 3855else case e in #( 3856 e) MINIX= ;; 3857esac 3858fi 3859 if test $ac_cv_safe_to_define___extensions__ = yes 3860then : 3861 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 3862 3863fi 3864 if test $ac_cv_should_define__xopen_source = yes 3865then : 3866 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 3867 3868fi 3869 3870 3871# Initialize Automake 3872am__api_version='1.16' 3873 3874 3875 # Find a good install program. We prefer a C program (faster), 3876# so one script is as good as another. But avoid the broken or 3877# incompatible versions: 3878# SysV /etc/install, /usr/sbin/install 3879# SunOS /usr/etc/install 3880# IRIX /sbin/install 3881# AIX /bin/install 3882# AmigaOS /C/install, which installs bootblocks on floppy discs 3883# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3884# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3885# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3886# OS/2's system install, which has a completely different semantic 3887# ./install, which can be erroneously created by make from ./install.sh. 3888# Reject install programs that cannot install multiple files. 3889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3890printf %s "checking for a BSD-compatible install... " >&6; } 3891if test -z "$INSTALL"; then 3892if test ${ac_cv_path_install+y} 3893then : 3894 printf %s "(cached) " >&6 3895else case e in #( 3896 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3897for as_dir in $PATH 3898do 3899 IFS=$as_save_IFS 3900 case $as_dir in #((( 3901 '') as_dir=./ ;; 3902 */) ;; 3903 *) as_dir=$as_dir/ ;; 3904 esac 3905 # Account for fact that we put trailing slashes in our PATH walk. 3906case $as_dir in #(( 3907 ./ | /[cC]/* | \ 3908 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3909 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3910 /usr/ucb/* ) ;; 3911 *) 3912 # OSF1 and SCO ODT 3.0 have their own names for install. 3913 # Don't use installbsd from OSF since it installs stuff as root 3914 # by default. 3915 for ac_prog in ginstall scoinst install; do 3916 for ac_exec_ext in '' $ac_executable_extensions; do 3917 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 3918 if test $ac_prog = install && 3919 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3920 # AIX install. It has an incompatible calling convention. 3921 : 3922 elif test $ac_prog = install && 3923 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3924 # program-specific install script used by HP pwplus--don't use. 3925 : 3926 else 3927 rm -rf conftest.one conftest.two conftest.dir 3928 echo one > conftest.one 3929 echo two > conftest.two 3930 mkdir conftest.dir 3931 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 3932 test -s conftest.one && test -s conftest.two && 3933 test -s conftest.dir/conftest.one && 3934 test -s conftest.dir/conftest.two 3935 then 3936 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 3937 break 3 3938 fi 3939 fi 3940 fi 3941 done 3942 done 3943 ;; 3944esac 3945 3946 done 3947IFS=$as_save_IFS 3948 3949rm -rf conftest.one conftest.two conftest.dir 3950 ;; 3951esac 3952fi 3953 if test ${ac_cv_path_install+y}; then 3954 INSTALL=$ac_cv_path_install 3955 else 3956 # As a last resort, use the slow shell script. Don't cache a 3957 # value for INSTALL within a source directory, because that will 3958 # break other packages using the cache if that directory is 3959 # removed, or if the value is a relative name. 3960 INSTALL=$ac_install_sh 3961 fi 3962fi 3963{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3964printf "%s\n" "$INSTALL" >&6; } 3965 3966# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3967# It thinks the first close brace ends the variable substitution. 3968test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3969 3970test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3971 3972test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3973 3974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3975printf %s "checking whether build environment is sane... " >&6; } 3976# Reject unsafe characters in $srcdir or the absolute working directory 3977# name. Accept space and tab only in the latter. 3978am_lf=' 3979' 3980case `pwd` in 3981 *[\\\"\#\$\&\'\`$am_lf]*) 3982 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3983esac 3984case $srcdir in 3985 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3986 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3987esac 3988 3989# Do 'set' in a subshell so we don't clobber the current shell's 3990# arguments. Must try -L first in case configure is actually a 3991# symlink; some systems play weird games with the mod time of symlinks 3992# (eg FreeBSD returns the mod time of the symlink's containing 3993# directory). 3994if ( 3995 am_has_slept=no 3996 for am_try in 1 2; do 3997 echo "timestamp, slept: $am_has_slept" > conftest.file 3998 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3999 if test "$*" = "X"; then 4000 # -L didn't work. 4001 set X `ls -t "$srcdir/configure" conftest.file` 4002 fi 4003 if test "$*" != "X $srcdir/configure conftest.file" \ 4004 && test "$*" != "X conftest.file $srcdir/configure"; then 4005 4006 # If neither matched, then we have a broken ls. This can happen 4007 # if, for instance, CONFIG_SHELL is bash and it inherits a 4008 # broken ls alias from the environment. This has actually 4009 # happened. Such a system could not be considered "sane". 4010 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 4011 alias in your environment" "$LINENO" 5 4012 fi 4013 if test "$2" = conftest.file || test $am_try -eq 2; then 4014 break 4015 fi 4016 # Just in case. 4017 sleep 1 4018 am_has_slept=yes 4019 done 4020 test "$2" = conftest.file 4021 ) 4022then 4023 # Ok. 4024 : 4025else 4026 as_fn_error $? "newly created file is older than distributed files! 4027Check your system clock" "$LINENO" 5 4028fi 4029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4030printf "%s\n" "yes" >&6; } 4031# If we didn't sleep, we still need to ensure time stamps of config.status and 4032# generated files are strictly newer. 4033am_sleep_pid= 4034if grep 'slept: no' conftest.file >/dev/null 2>&1; then 4035 ( sleep 1 ) & 4036 am_sleep_pid=$! 4037fi 4038 4039rm -f conftest.file 4040 4041test "$program_prefix" != NONE && 4042 program_transform_name="s&^&$program_prefix&;$program_transform_name" 4043# Use a double $ so make ignores it. 4044test "$program_suffix" != NONE && 4045 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 4046# Double any \ or $. 4047# By default was 's,x,x', remove it if useless. 4048ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 4049program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 4050 4051 4052 if test x"${MISSING+set}" != xset; then 4053 MISSING="\${SHELL} '$am_aux_dir/missing'" 4054fi 4055# Use eval to expand $SHELL 4056if eval "$MISSING --is-lightweight"; then 4057 am_missing_run="$MISSING " 4058else 4059 am_missing_run= 4060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 4061printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 4062fi 4063 4064if test x"${install_sh+set}" != xset; then 4065 case $am_aux_dir in 4066 *\ * | *\ *) 4067 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4068 *) 4069 install_sh="\${SHELL} $am_aux_dir/install-sh" 4070 esac 4071fi 4072 4073# Installed binaries are usually stripped using 'strip' when the user 4074# run "make install-strip". However 'strip' might not be the right 4075# tool to use in cross-compilation environments, therefore Automake 4076# will honor the 'STRIP' environment variable to overrule this program. 4077if test "$cross_compiling" != no; then 4078 if test -n "$ac_tool_prefix"; then 4079 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4080set dummy ${ac_tool_prefix}strip; ac_word=$2 4081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4082printf %s "checking for $ac_word... " >&6; } 4083if test ${ac_cv_prog_STRIP+y} 4084then : 4085 printf %s "(cached) " >&6 4086else case e in #( 4087 e) if test -n "$STRIP"; then 4088 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4089else 4090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4091for as_dir in $PATH 4092do 4093 IFS=$as_save_IFS 4094 case $as_dir in #((( 4095 '') as_dir=./ ;; 4096 */) ;; 4097 *) as_dir=$as_dir/ ;; 4098 esac 4099 for ac_exec_ext in '' $ac_executable_extensions; do 4100 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4101 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4102 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4103 break 2 4104 fi 4105done 4106 done 4107IFS=$as_save_IFS 4108 4109fi ;; 4110esac 4111fi 4112STRIP=$ac_cv_prog_STRIP 4113if test -n "$STRIP"; then 4114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4115printf "%s\n" "$STRIP" >&6; } 4116else 4117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4118printf "%s\n" "no" >&6; } 4119fi 4120 4121 4122fi 4123if test -z "$ac_cv_prog_STRIP"; then 4124 ac_ct_STRIP=$STRIP 4125 # Extract the first word of "strip", so it can be a program name with args. 4126set dummy strip; ac_word=$2 4127{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4128printf %s "checking for $ac_word... " >&6; } 4129if test ${ac_cv_prog_ac_ct_STRIP+y} 4130then : 4131 printf %s "(cached) " >&6 4132else case e in #( 4133 e) if test -n "$ac_ct_STRIP"; then 4134 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4135else 4136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4137for as_dir in $PATH 4138do 4139 IFS=$as_save_IFS 4140 case $as_dir in #((( 4141 '') as_dir=./ ;; 4142 */) ;; 4143 *) as_dir=$as_dir/ ;; 4144 esac 4145 for ac_exec_ext in '' $ac_executable_extensions; do 4146 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4147 ac_cv_prog_ac_ct_STRIP="strip" 4148 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4149 break 2 4150 fi 4151done 4152 done 4153IFS=$as_save_IFS 4154 4155fi ;; 4156esac 4157fi 4158ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4159if test -n "$ac_ct_STRIP"; then 4160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4161printf "%s\n" "$ac_ct_STRIP" >&6; } 4162else 4163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4164printf "%s\n" "no" >&6; } 4165fi 4166 4167 if test "x$ac_ct_STRIP" = x; then 4168 STRIP=":" 4169 else 4170 case $cross_compiling:$ac_tool_warned in 4171yes:) 4172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4173printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4174ac_tool_warned=yes ;; 4175esac 4176 STRIP=$ac_ct_STRIP 4177 fi 4178else 4179 STRIP="$ac_cv_prog_STRIP" 4180fi 4181 4182fi 4183INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4184 4185 4186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 4187printf %s "checking for a race-free mkdir -p... " >&6; } 4188if test -z "$MKDIR_P"; then 4189 if test ${ac_cv_path_mkdir+y} 4190then : 4191 printf %s "(cached) " >&6 4192else case e in #( 4193 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4194for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4195do 4196 IFS=$as_save_IFS 4197 case $as_dir in #((( 4198 '') as_dir=./ ;; 4199 */) ;; 4200 *) as_dir=$as_dir/ ;; 4201 esac 4202 for ac_prog in mkdir gmkdir; do 4203 for ac_exec_ext in '' $ac_executable_extensions; do 4204 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 4205 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 4206 'mkdir ('*'coreutils) '* | \ 4207 *'BusyBox '* | \ 4208 'mkdir (fileutils) '4.1*) 4209 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 4210 break 3;; 4211 esac 4212 done 4213 done 4214 done 4215IFS=$as_save_IFS 4216 ;; 4217esac 4218fi 4219 4220 test -d ./--version && rmdir ./--version 4221 if test ${ac_cv_path_mkdir+y}; then 4222 MKDIR_P="$ac_cv_path_mkdir -p" 4223 else 4224 # As a last resort, use plain mkdir -p, 4225 # in the hope it doesn't have the bugs of ancient mkdir. 4226 MKDIR_P='mkdir -p' 4227 fi 4228fi 4229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4230printf "%s\n" "$MKDIR_P" >&6; } 4231 4232for ac_prog in gawk mawk nawk awk 4233do 4234 # Extract the first word of "$ac_prog", so it can be a program name with args. 4235set dummy $ac_prog; ac_word=$2 4236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4237printf %s "checking for $ac_word... " >&6; } 4238if test ${ac_cv_prog_AWK+y} 4239then : 4240 printf %s "(cached) " >&6 4241else case e in #( 4242 e) if test -n "$AWK"; then 4243 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4244else 4245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4246for as_dir in $PATH 4247do 4248 IFS=$as_save_IFS 4249 case $as_dir in #((( 4250 '') as_dir=./ ;; 4251 */) ;; 4252 *) as_dir=$as_dir/ ;; 4253 esac 4254 for ac_exec_ext in '' $ac_executable_extensions; do 4255 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4256 ac_cv_prog_AWK="$ac_prog" 4257 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4258 break 2 4259 fi 4260done 4261 done 4262IFS=$as_save_IFS 4263 4264fi ;; 4265esac 4266fi 4267AWK=$ac_cv_prog_AWK 4268if test -n "$AWK"; then 4269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4270printf "%s\n" "$AWK" >&6; } 4271else 4272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4273printf "%s\n" "no" >&6; } 4274fi 4275 4276 4277 test -n "$AWK" && break 4278done 4279 4280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4281printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4282set x ${MAKE-make} 4283ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4284if eval test \${ac_cv_prog_make_${ac_make}_set+y} 4285then : 4286 printf %s "(cached) " >&6 4287else case e in #( 4288 e) cat >conftest.make <<\_ACEOF 4289SHELL = /bin/sh 4290all: 4291 @echo '@@@%%%=$(MAKE)=@@@%%%' 4292_ACEOF 4293# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4294case `${MAKE-make} -f conftest.make 2>/dev/null` in 4295 *@@@%%%=?*=@@@%%%*) 4296 eval ac_cv_prog_make_${ac_make}_set=yes;; 4297 *) 4298 eval ac_cv_prog_make_${ac_make}_set=no;; 4299esac 4300rm -f conftest.make ;; 4301esac 4302fi 4303if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4305printf "%s\n" "yes" >&6; } 4306 SET_MAKE= 4307else 4308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4309printf "%s\n" "no" >&6; } 4310 SET_MAKE="MAKE=${MAKE-make}" 4311fi 4312 4313rm -rf .tst 2>/dev/null 4314mkdir .tst 2>/dev/null 4315if test -d .tst; then 4316 am__leading_dot=. 4317else 4318 am__leading_dot=_ 4319fi 4320rmdir .tst 2>/dev/null 4321 4322DEPDIR="${am__leading_dot}deps" 4323 4324ac_config_commands="$ac_config_commands depfiles" 4325 4326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4327printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 4328cat > confinc.mk << 'END' 4329am__doit: 4330 @echo this is the am__doit target >confinc.out 4331.PHONY: am__doit 4332END 4333am__include="#" 4334am__quote= 4335# BSD make does it like this. 4336echo '.include "confinc.mk" # ignored' > confmf.BSD 4337# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4338echo 'include confinc.mk # ignored' > confmf.GNU 4339_am_result=no 4340for s in GNU BSD; do 4341 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4342 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4343 ac_status=$? 4344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4345 (exit $ac_status); } 4346 case $?:`cat confinc.out 2>/dev/null` in #( 4347 '0:this is the am__doit target') : 4348 case $s in #( 4349 BSD) : 4350 am__include='.include' am__quote='"' ;; #( 4351 *) : 4352 am__include='include' am__quote='' ;; 4353esac ;; #( 4354 *) : 4355 ;; 4356esac 4357 if test "$am__include" != "#"; then 4358 _am_result="yes ($s style)" 4359 break 4360 fi 4361done 4362rm -f confinc.* confmf.* 4363{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4364printf "%s\n" "${_am_result}" >&6; } 4365 4366# Check whether --enable-dependency-tracking was given. 4367if test ${enable_dependency_tracking+y} 4368then : 4369 enableval=$enable_dependency_tracking; 4370fi 4371 4372if test "x$enable_dependency_tracking" != xno; then 4373 am_depcomp="$ac_aux_dir/depcomp" 4374 AMDEPBACKSLASH='\' 4375 am__nodep='_no' 4376fi 4377 if test "x$enable_dependency_tracking" != xno; then 4378 AMDEP_TRUE= 4379 AMDEP_FALSE='#' 4380else 4381 AMDEP_TRUE='#' 4382 AMDEP_FALSE= 4383fi 4384 4385 4386# Check whether --enable-silent-rules was given. 4387if test ${enable_silent_rules+y} 4388then : 4389 enableval=$enable_silent_rules; 4390fi 4391 4392case $enable_silent_rules in # ((( 4393 yes) AM_DEFAULT_VERBOSITY=0;; 4394 no) AM_DEFAULT_VERBOSITY=1;; 4395 *) AM_DEFAULT_VERBOSITY=1;; 4396esac 4397am_make=${MAKE-make} 4398{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4399printf %s "checking whether $am_make supports nested variables... " >&6; } 4400if test ${am_cv_make_support_nested_variables+y} 4401then : 4402 printf %s "(cached) " >&6 4403else case e in #( 4404 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 4405BAR0=false 4406BAR1=true 4407V=1 4408am__doit: 4409 @$(TRUE) 4410.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4411 am_cv_make_support_nested_variables=yes 4412else 4413 am_cv_make_support_nested_variables=no 4414fi ;; 4415esac 4416fi 4417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4418printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 4419if test $am_cv_make_support_nested_variables = yes; then 4420 AM_V='$(V)' 4421 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4422else 4423 AM_V=$AM_DEFAULT_VERBOSITY 4424 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4425fi 4426AM_BACKSLASH='\' 4427 4428if test "`cd $srcdir && pwd`" != "`pwd`"; then 4429 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4430 # is not polluted with repeated "-I." 4431 am__isrc=' -I$(srcdir)' 4432 # test to see if srcdir already configured 4433 if test -f $srcdir/config.status; then 4434 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4435 fi 4436fi 4437 4438# test whether we have cygpath 4439if test -z "$CYGPATH_W"; then 4440 if (cygpath --version) >/dev/null 2>/dev/null; then 4441 CYGPATH_W='cygpath -w' 4442 else 4443 CYGPATH_W=echo 4444 fi 4445fi 4446 4447 4448# Define the identity of the package. 4449 PACKAGE='xkbcomp' 4450 VERSION='1.4.7' 4451 4452 4453printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 4454 4455 4456printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 4457 4458# Some tools Automake needs. 4459 4460ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4461 4462 4463AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4464 4465 4466AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4467 4468 4469AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4470 4471 4472MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4473 4474# For better backward compatibility. To be removed once Automake 1.9.x 4475# dies out for good. For more background, see: 4476# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4477# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4478mkdir_p='$(MKDIR_P)' 4479 4480# We need awk for the "check" target (and possibly the TAP driver). The 4481# system "awk" is bad on some platforms. 4482# Always define AMTAR for backward compatibility. Yes, it's still used 4483# in the wild :-( We should find a proper way to deprecate it ... 4484AMTAR='$${TAR-tar}' 4485 4486 4487# We'll loop over all known methods to create a tar archive until one works. 4488_am_tools='gnutar pax cpio none' 4489 4490am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4491 4492 4493 4494 4495 4496depcc="$CC" am_compiler_list= 4497 4498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4499printf %s "checking dependency style of $depcc... " >&6; } 4500if test ${am_cv_CC_dependencies_compiler_type+y} 4501then : 4502 printf %s "(cached) " >&6 4503else case e in #( 4504 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4505 # We make a subdir and do the tests there. Otherwise we can end up 4506 # making bogus files that we don't know about and never remove. For 4507 # instance it was reported that on HP-UX the gcc test will end up 4508 # making a dummy file named 'D' -- because '-MD' means "put the output 4509 # in D". 4510 rm -rf conftest.dir 4511 mkdir conftest.dir 4512 # Copy depcomp to subdir because otherwise we won't find it if we're 4513 # using a relative directory. 4514 cp "$am_depcomp" conftest.dir 4515 cd conftest.dir 4516 # We will build objects and dependencies in a subdirectory because 4517 # it helps to detect inapplicable dependency modes. For instance 4518 # both Tru64's cc and ICC support -MD to output dependencies as a 4519 # side effect of compilation, but ICC will put the dependencies in 4520 # the current directory while Tru64 will put them in the object 4521 # directory. 4522 mkdir sub 4523 4524 am_cv_CC_dependencies_compiler_type=none 4525 if test "$am_compiler_list" = ""; then 4526 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4527 fi 4528 am__universal=false 4529 case " $depcc " in #( 4530 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4531 esac 4532 4533 for depmode in $am_compiler_list; do 4534 # Setup a source with many dependencies, because some compilers 4535 # like to wrap large dependency lists on column 80 (with \), and 4536 # we should not choose a depcomp mode which is confused by this. 4537 # 4538 # We need to recreate these files for each test, as the compiler may 4539 # overwrite some of them when testing with obscure command lines. 4540 # This happens at least with the AIX C compiler. 4541 : > sub/conftest.c 4542 for i in 1 2 3 4 5 6; do 4543 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4544 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4545 # Solaris 10 /bin/sh. 4546 echo '/* dummy */' > sub/conftst$i.h 4547 done 4548 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4549 4550 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4551 # mode. It turns out that the SunPro C++ compiler does not properly 4552 # handle '-M -o', and we need to detect this. Also, some Intel 4553 # versions had trouble with output in subdirs. 4554 am__obj=sub/conftest.${OBJEXT-o} 4555 am__minus_obj="-o $am__obj" 4556 case $depmode in 4557 gcc) 4558 # This depmode causes a compiler race in universal mode. 4559 test "$am__universal" = false || continue 4560 ;; 4561 nosideeffect) 4562 # After this tag, mechanisms are not by side-effect, so they'll 4563 # only be used when explicitly requested. 4564 if test "x$enable_dependency_tracking" = xyes; then 4565 continue 4566 else 4567 break 4568 fi 4569 ;; 4570 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4571 # This compiler won't grok '-c -o', but also, the minuso test has 4572 # not run yet. These depmodes are late enough in the game, and 4573 # so weak that their functioning should not be impacted. 4574 am__obj=conftest.${OBJEXT-o} 4575 am__minus_obj= 4576 ;; 4577 none) break ;; 4578 esac 4579 if depmode=$depmode \ 4580 source=sub/conftest.c object=$am__obj \ 4581 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4582 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4583 >/dev/null 2>conftest.err && 4584 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4585 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4586 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4587 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4588 # icc doesn't choke on unknown options, it will just issue warnings 4589 # or remarks (even with -Werror). So we grep stderr for any message 4590 # that says an option was ignored or not supported. 4591 # When given -MP, icc 7.0 and 7.1 complain thusly: 4592 # icc: Command line warning: ignoring option '-M'; no argument required 4593 # The diagnosis changed in icc 8.0: 4594 # icc: Command line remark: option '-MP' not supported 4595 if (grep 'ignoring option' conftest.err || 4596 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4597 am_cv_CC_dependencies_compiler_type=$depmode 4598 break 4599 fi 4600 fi 4601 done 4602 4603 cd .. 4604 rm -rf conftest.dir 4605else 4606 am_cv_CC_dependencies_compiler_type=none 4607fi 4608 ;; 4609esac 4610fi 4611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4612printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4613CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4614 4615 if 4616 test "x$enable_dependency_tracking" != xno \ 4617 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4618 am__fastdepCC_TRUE= 4619 am__fastdepCC_FALSE='#' 4620else 4621 am__fastdepCC_TRUE='#' 4622 am__fastdepCC_FALSE= 4623fi 4624 4625 4626# Variables for tags utilities; see am/tags.am 4627if test -z "$CTAGS"; then 4628 CTAGS=ctags 4629fi 4630 4631if test -z "$ETAGS"; then 4632 ETAGS=etags 4633fi 4634 4635if test -z "$CSCOPE"; then 4636 CSCOPE=cscope 4637fi 4638 4639 4640 4641# POSIX will say in a future version that running "rm -f" with no argument 4642# is OK; and we want to be able to make that assumption in our Makefile 4643# recipes. So use an aggressive probe to check that the usage we want is 4644# actually supported "in the wild" to an acceptable degree. 4645# See automake bug#10828. 4646# To make any issue more visible, cause the running configure to be aborted 4647# by default if the 'rm' program in use doesn't match our expectations; the 4648# user can still override this though. 4649if rm -f && rm -fr && rm -rf; then : OK; else 4650 cat >&2 <<'END' 4651Oops! 4652 4653Your 'rm' program seems unable to run without file operands specified 4654on the command line, even when the '-f' option is present. This is contrary 4655to the behaviour of most rm programs out there, and not conforming with 4656the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4657 4658Please tell bug-automake@gnu.org about your system, including the value 4659of your $PATH and any error possibly output before this message. This 4660can help us improve future automake versions. 4661 4662END 4663 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4664 echo 'Configuration will proceed anyway, since you have set the' >&2 4665 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4666 echo >&2 4667 else 4668 cat >&2 <<'END' 4669Aborting the configuration process, to ensure you take notice of the issue. 4670 4671You can download and install GNU coreutils to get an 'rm' implementation 4672that behaves properly: <https://www.gnu.org/software/coreutils/>. 4673 4674If you want to complete the configuration process using your problematic 4675'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4676to "yes", and re-run configure. 4677 4678END 4679 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4680 fi 4681fi 4682 4683 4684# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4697printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4698if test ${ac_cv_c_undeclared_builtin_options+y} 4699then : 4700 printf %s "(cached) " >&6 4701else case e in #( 4702 e) ac_save_CFLAGS=$CFLAGS 4703 ac_cv_c_undeclared_builtin_options='cannot detect' 4704 for ac_arg in '' -fno-builtin; do 4705 CFLAGS="$ac_save_CFLAGS $ac_arg" 4706 # This test program should *not* compile successfully. 4707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4708/* end confdefs.h. */ 4709 4710int 4711main (void) 4712{ 4713(void) strchr; 4714 ; 4715 return 0; 4716} 4717_ACEOF 4718if ac_fn_c_try_compile "$LINENO" 4719then : 4720 4721else case e in #( 4722 e) # This test program should compile successfully. 4723 # No library function is consistently available on 4724 # freestanding implementations, so test against a dummy 4725 # declaration. Include always-available headers on the 4726 # off chance that they somehow elicit warnings. 4727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4728/* end confdefs.h. */ 4729#include <float.h> 4730#include <limits.h> 4731#include <stdarg.h> 4732#include <stddef.h> 4733extern void ac_decl (int, char *); 4734 4735int 4736main (void) 4737{ 4738(void) ac_decl (0, (char *) 0); 4739 (void) ac_decl; 4740 4741 ; 4742 return 0; 4743} 4744_ACEOF 4745if ac_fn_c_try_compile "$LINENO" 4746then : 4747 if test x"$ac_arg" = x 4748then : 4749 ac_cv_c_undeclared_builtin_options='none needed' 4750else case e in #( 4751 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 4752esac 4753fi 4754 break 4755fi 4756rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4757esac 4758fi 4759rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4760 done 4761 CFLAGS=$ac_save_CFLAGS 4762 ;; 4763esac 4764fi 4765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4766printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4767 case $ac_cv_c_undeclared_builtin_options in #( 4768 'cannot detect') : 4769 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4770printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4771as_fn_error $? "cannot make $CC report undeclared builtins 4772See 'config.log' for more details" "$LINENO" 5; } ;; #( 4773 'none needed') : 4774 ac_c_undeclared_builtin_options='' ;; #( 4775 *) : 4776 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4777esac 4778 4779 4780 4781 4782 4783ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4784if test "x$ac_cv_have_decl___clang__" = xyes 4785then : 4786 CLANGCC="yes" 4787else case e in #( 4788 e) CLANGCC="no" ;; 4789esac 4790fi 4791ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4792if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4793then : 4794 INTELCC="yes" 4795else case e in #( 4796 e) INTELCC="no" ;; 4797esac 4798fi 4799ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4800if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4801then : 4802 SUNCC="yes" 4803else case e in #( 4804 e) SUNCC="no" ;; 4805esac 4806fi 4807 4808 4809 4810 4811 4812 4813 4814 4815if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4816 if test -n "$ac_tool_prefix"; then 4817 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4818set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4820printf %s "checking for $ac_word... " >&6; } 4821if test ${ac_cv_path_PKG_CONFIG+y} 4822then : 4823 printf %s "(cached) " >&6 4824else case e in #( 4825 e) case $PKG_CONFIG in 4826 [\\/]* | ?:[\\/]*) 4827 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4828 ;; 4829 *) 4830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4831for as_dir in $PATH 4832do 4833 IFS=$as_save_IFS 4834 case $as_dir in #((( 4835 '') as_dir=./ ;; 4836 */) ;; 4837 *) as_dir=$as_dir/ ;; 4838 esac 4839 for ac_exec_ext in '' $ac_executable_extensions; do 4840 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4841 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4842 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4843 break 2 4844 fi 4845done 4846 done 4847IFS=$as_save_IFS 4848 4849 ;; 4850esac ;; 4851esac 4852fi 4853PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4854if test -n "$PKG_CONFIG"; then 4855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4856printf "%s\n" "$PKG_CONFIG" >&6; } 4857else 4858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4859printf "%s\n" "no" >&6; } 4860fi 4861 4862 4863fi 4864if test -z "$ac_cv_path_PKG_CONFIG"; then 4865 ac_pt_PKG_CONFIG=$PKG_CONFIG 4866 # Extract the first word of "pkg-config", so it can be a program name with args. 4867set dummy pkg-config; ac_word=$2 4868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4869printf %s "checking for $ac_word... " >&6; } 4870if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4871then : 4872 printf %s "(cached) " >&6 4873else case e in #( 4874 e) case $ac_pt_PKG_CONFIG in 4875 [\\/]* | ?:[\\/]*) 4876 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4877 ;; 4878 *) 4879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4880for as_dir in $PATH 4881do 4882 IFS=$as_save_IFS 4883 case $as_dir in #((( 4884 '') as_dir=./ ;; 4885 */) ;; 4886 *) as_dir=$as_dir/ ;; 4887 esac 4888 for ac_exec_ext in '' $ac_executable_extensions; do 4889 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4890 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4891 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4892 break 2 4893 fi 4894done 4895 done 4896IFS=$as_save_IFS 4897 4898 ;; 4899esac ;; 4900esac 4901fi 4902ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4903if test -n "$ac_pt_PKG_CONFIG"; then 4904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4905printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4906else 4907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4908printf "%s\n" "no" >&6; } 4909fi 4910 4911 if test "x$ac_pt_PKG_CONFIG" = x; then 4912 PKG_CONFIG="" 4913 else 4914 case $cross_compiling:$ac_tool_warned in 4915yes:) 4916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4917printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4918ac_tool_warned=yes ;; 4919esac 4920 PKG_CONFIG=$ac_pt_PKG_CONFIG 4921 fi 4922else 4923 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4924fi 4925 4926fi 4927if test -n "$PKG_CONFIG"; then 4928 _pkg_min_version=0.9.0 4929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4930printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4931 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4933printf "%s\n" "yes" >&6; } 4934 else 4935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4936printf "%s\n" "no" >&6; } 4937 PKG_CONFIG="" 4938 fi 4939fi 4940 4941 4942 # Make sure we can run config.sub. 4943$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4944 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4945 4946{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4947printf %s "checking build system type... " >&6; } 4948if test ${ac_cv_build+y} 4949then : 4950 printf %s "(cached) " >&6 4951else case e in #( 4952 e) ac_build_alias=$build_alias 4953test "x$ac_build_alias" = x && 4954 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4955test "x$ac_build_alias" = x && 4956 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4957ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4958 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4959 ;; 4960esac 4961fi 4962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4963printf "%s\n" "$ac_cv_build" >&6; } 4964case $ac_cv_build in 4965*-*-*) ;; 4966*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4967esac 4968build=$ac_cv_build 4969ac_save_IFS=$IFS; IFS='-' 4970set x $ac_cv_build 4971shift 4972build_cpu=$1 4973build_vendor=$2 4974shift; shift 4975# Remember, the first character of IFS is used to create $*, 4976# except with old shells: 4977build_os=$* 4978IFS=$ac_save_IFS 4979case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4980 4981 4982{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4983printf %s "checking host system type... " >&6; } 4984if test ${ac_cv_host+y} 4985then : 4986 printf %s "(cached) " >&6 4987else case e in #( 4988 e) if test "x$host_alias" = x; then 4989 ac_cv_host=$ac_cv_build 4990else 4991 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4992 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4993fi 4994 ;; 4995esac 4996fi 4997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4998printf "%s\n" "$ac_cv_host" >&6; } 4999case $ac_cv_host in 5000*-*-*) ;; 5001*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5002esac 5003host=$ac_cv_host 5004ac_save_IFS=$IFS; IFS='-' 5005set x $ac_cv_host 5006shift 5007host_cpu=$1 5008host_vendor=$2 5009shift; shift 5010# Remember, the first character of IFS is used to create $*, 5011# except with old shells: 5012host_os=$* 5013IFS=$ac_save_IFS 5014case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5015 5016 5017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5018printf %s "checking for a sed that does not truncate output... " >&6; } 5019if test ${ac_cv_path_SED+y} 5020then : 5021 printf %s "(cached) " >&6 5022else case e in #( 5023 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5024 for ac_i in 1 2 3 4 5 6 7; do 5025 ac_script="$ac_script$as_nl$ac_script" 5026 done 5027 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5028 { ac_script=; unset ac_script;} 5029 if test -z "$SED"; then 5030 ac_path_SED_found=false 5031 # Loop through the user's path and test for each of PROGNAME-LIST 5032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5033for as_dir in $PATH 5034do 5035 IFS=$as_save_IFS 5036 case $as_dir in #((( 5037 '') as_dir=./ ;; 5038 */) ;; 5039 *) as_dir=$as_dir/ ;; 5040 esac 5041 for ac_prog in sed gsed 5042 do 5043 for ac_exec_ext in '' $ac_executable_extensions; do 5044 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5045 as_fn_executable_p "$ac_path_SED" || continue 5046# Check for GNU ac_path_SED and select it if it is found. 5047 # Check for GNU $ac_path_SED 5048case `"$ac_path_SED" --version 2>&1` in #( 5049*GNU*) 5050 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5051#( 5052*) 5053 ac_count=0 5054 printf %s 0123456789 >"conftest.in" 5055 while : 5056 do 5057 cat "conftest.in" "conftest.in" >"conftest.tmp" 5058 mv "conftest.tmp" "conftest.in" 5059 cp "conftest.in" "conftest.nl" 5060 printf "%s\n" '' >> "conftest.nl" 5061 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5062 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5063 as_fn_arith $ac_count + 1 && ac_count=$as_val 5064 if test $ac_count -gt ${ac_path_SED_max-0}; then 5065 # Best one so far, save it but keep looking for a better one 5066 ac_cv_path_SED="$ac_path_SED" 5067 ac_path_SED_max=$ac_count 5068 fi 5069 # 10*(2^10) chars as input seems more than enough 5070 test $ac_count -gt 10 && break 5071 done 5072 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5073esac 5074 5075 $ac_path_SED_found && break 3 5076 done 5077 done 5078 done 5079IFS=$as_save_IFS 5080 if test -z "$ac_cv_path_SED"; then 5081 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5082 fi 5083else 5084 ac_cv_path_SED=$SED 5085fi 5086 ;; 5087esac 5088fi 5089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5090printf "%s\n" "$ac_cv_path_SED" >&6; } 5091 SED="$ac_cv_path_SED" 5092 rm -f conftest.sed 5093 5094 5095 5096 5097 5098 5099# Check whether --enable-selective-werror was given. 5100if test ${enable_selective_werror+y} 5101then : 5102 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5103else case e in #( 5104 e) SELECTIVE_WERROR=yes ;; 5105esac 5106fi 5107 5108 5109 5110 5111 5112# -v is too short to test reliably with XORG_TESTSET_CFLAG 5113if test "x$SUNCC" = "xyes"; then 5114 BASE_CFLAGS="-v" 5115else 5116 BASE_CFLAGS="" 5117fi 5118 5119# This chunk of warnings were those that existed in the legacy CWARNFLAGS 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133xorg_testset_save_CFLAGS="$CFLAGS" 5134 5135if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5136 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5138printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5139if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5140then : 5141 printf %s "(cached) " >&6 5142else case e in #( 5143 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5144/* end confdefs.h. */ 5145int i; 5146_ACEOF 5147if ac_fn_c_try_compile "$LINENO" 5148then : 5149 xorg_cv_cc_flag_unknown_warning_option=yes 5150else case e in #( 5151 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5152esac 5153fi 5154rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5155esac 5156fi 5157{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5158printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5159 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5160 CFLAGS="$xorg_testset_save_CFLAGS" 5161fi 5162 5163if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5164 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5165 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5166 fi 5167 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5169printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5170if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5171then : 5172 printf %s "(cached) " >&6 5173else case e in #( 5174 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5175/* end confdefs.h. */ 5176int i; 5177_ACEOF 5178if ac_fn_c_try_compile "$LINENO" 5179then : 5180 xorg_cv_cc_flag_unused_command_line_argument=yes 5181else case e in #( 5182 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5183esac 5184fi 5185rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5186esac 5187fi 5188{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5189printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5190 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5191 CFLAGS="$xorg_testset_save_CFLAGS" 5192fi 5193 5194found="no" 5195 5196 if test $found = "no" ; then 5197 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5198 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5199 fi 5200 5201 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5202 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5203 fi 5204 5205 CFLAGS="$CFLAGS -Wall" 5206 5207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5208printf %s "checking if $CC supports -Wall... " >&6; } 5209 cacheid=xorg_cv_cc_flag__Wall 5210 if eval test \${$cacheid+y} 5211then : 5212 printf %s "(cached) " >&6 5213else case e in #( 5214 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5215/* end confdefs.h. */ 5216int i; 5217int 5218main (void) 5219{ 5220 5221 ; 5222 return 0; 5223} 5224_ACEOF 5225if ac_fn_c_try_link "$LINENO" 5226then : 5227 eval $cacheid=yes 5228else case e in #( 5229 e) eval $cacheid=no ;; 5230esac 5231fi 5232rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5233 conftest$ac_exeext conftest.$ac_ext ;; 5234esac 5235fi 5236 5237 5238 CFLAGS="$xorg_testset_save_CFLAGS" 5239 5240 eval supported=\$$cacheid 5241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5242printf "%s\n" "$supported" >&6; } 5243 if test "$supported" = "yes" ; then 5244 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5245 found="yes" 5246 fi 5247 fi 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263xorg_testset_save_CFLAGS="$CFLAGS" 5264 5265if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5266 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5268printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5269if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5270then : 5271 printf %s "(cached) " >&6 5272else case e in #( 5273 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5274/* end confdefs.h. */ 5275int i; 5276_ACEOF 5277if ac_fn_c_try_compile "$LINENO" 5278then : 5279 xorg_cv_cc_flag_unknown_warning_option=yes 5280else case e in #( 5281 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5282esac 5283fi 5284rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5285esac 5286fi 5287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5288printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5289 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5290 CFLAGS="$xorg_testset_save_CFLAGS" 5291fi 5292 5293if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5294 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5295 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5296 fi 5297 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5299printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5300if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5301then : 5302 printf %s "(cached) " >&6 5303else case e in #( 5304 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5305/* end confdefs.h. */ 5306int i; 5307_ACEOF 5308if ac_fn_c_try_compile "$LINENO" 5309then : 5310 xorg_cv_cc_flag_unused_command_line_argument=yes 5311else case e in #( 5312 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5313esac 5314fi 5315rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5316esac 5317fi 5318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5319printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5320 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5321 CFLAGS="$xorg_testset_save_CFLAGS" 5322fi 5323 5324found="no" 5325 5326 if test $found = "no" ; then 5327 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5328 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5329 fi 5330 5331 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5332 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5333 fi 5334 5335 CFLAGS="$CFLAGS -Wpointer-arith" 5336 5337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5338printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5339 cacheid=xorg_cv_cc_flag__Wpointer_arith 5340 if eval test \${$cacheid+y} 5341then : 5342 printf %s "(cached) " >&6 5343else case e in #( 5344 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5345/* end confdefs.h. */ 5346int i; 5347int 5348main (void) 5349{ 5350 5351 ; 5352 return 0; 5353} 5354_ACEOF 5355if ac_fn_c_try_link "$LINENO" 5356then : 5357 eval $cacheid=yes 5358else case e in #( 5359 e) eval $cacheid=no ;; 5360esac 5361fi 5362rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5363 conftest$ac_exeext conftest.$ac_ext ;; 5364esac 5365fi 5366 5367 5368 CFLAGS="$xorg_testset_save_CFLAGS" 5369 5370 eval supported=\$$cacheid 5371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5372printf "%s\n" "$supported" >&6; } 5373 if test "$supported" = "yes" ; then 5374 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5375 found="yes" 5376 fi 5377 fi 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393xorg_testset_save_CFLAGS="$CFLAGS" 5394 5395if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5396 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5398printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5399if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5400then : 5401 printf %s "(cached) " >&6 5402else case e in #( 5403 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5404/* end confdefs.h. */ 5405int i; 5406_ACEOF 5407if ac_fn_c_try_compile "$LINENO" 5408then : 5409 xorg_cv_cc_flag_unknown_warning_option=yes 5410else case e in #( 5411 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5412esac 5413fi 5414rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5415esac 5416fi 5417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5418printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5419 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5420 CFLAGS="$xorg_testset_save_CFLAGS" 5421fi 5422 5423if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5424 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5425 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5426 fi 5427 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5429printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5430if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5431then : 5432 printf %s "(cached) " >&6 5433else case e in #( 5434 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5435/* end confdefs.h. */ 5436int i; 5437_ACEOF 5438if ac_fn_c_try_compile "$LINENO" 5439then : 5440 xorg_cv_cc_flag_unused_command_line_argument=yes 5441else case e in #( 5442 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5443esac 5444fi 5445rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5446esac 5447fi 5448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5449printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5450 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5451 CFLAGS="$xorg_testset_save_CFLAGS" 5452fi 5453 5454found="no" 5455 5456 if test $found = "no" ; then 5457 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5458 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5459 fi 5460 5461 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5462 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5463 fi 5464 5465 CFLAGS="$CFLAGS -Wmissing-declarations" 5466 5467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5468printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5469 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5470 if eval test \${$cacheid+y} 5471then : 5472 printf %s "(cached) " >&6 5473else case e in #( 5474 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5475/* end confdefs.h. */ 5476int i; 5477int 5478main (void) 5479{ 5480 5481 ; 5482 return 0; 5483} 5484_ACEOF 5485if ac_fn_c_try_link "$LINENO" 5486then : 5487 eval $cacheid=yes 5488else case e in #( 5489 e) eval $cacheid=no ;; 5490esac 5491fi 5492rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5493 conftest$ac_exeext conftest.$ac_ext ;; 5494esac 5495fi 5496 5497 5498 CFLAGS="$xorg_testset_save_CFLAGS" 5499 5500 eval supported=\$$cacheid 5501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5502printf "%s\n" "$supported" >&6; } 5503 if test "$supported" = "yes" ; then 5504 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5505 found="yes" 5506 fi 5507 fi 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523xorg_testset_save_CFLAGS="$CFLAGS" 5524 5525if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5526 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5528printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5529if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5530then : 5531 printf %s "(cached) " >&6 5532else case e in #( 5533 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5534/* end confdefs.h. */ 5535int i; 5536_ACEOF 5537if ac_fn_c_try_compile "$LINENO" 5538then : 5539 xorg_cv_cc_flag_unknown_warning_option=yes 5540else case e in #( 5541 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5542esac 5543fi 5544rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5545esac 5546fi 5547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5548printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5549 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5550 CFLAGS="$xorg_testset_save_CFLAGS" 5551fi 5552 5553if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5554 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5555 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5556 fi 5557 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5559printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5560if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5561then : 5562 printf %s "(cached) " >&6 5563else case e in #( 5564 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5565/* end confdefs.h. */ 5566int i; 5567_ACEOF 5568if ac_fn_c_try_compile "$LINENO" 5569then : 5570 xorg_cv_cc_flag_unused_command_line_argument=yes 5571else case e in #( 5572 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5573esac 5574fi 5575rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5576esac 5577fi 5578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5579printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5580 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5581 CFLAGS="$xorg_testset_save_CFLAGS" 5582fi 5583 5584found="no" 5585 5586 if test $found = "no" ; then 5587 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5588 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5589 fi 5590 5591 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5592 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5593 fi 5594 5595 CFLAGS="$CFLAGS -Wformat=2" 5596 5597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5598printf %s "checking if $CC supports -Wformat=2... " >&6; } 5599 cacheid=xorg_cv_cc_flag__Wformat_2 5600 if eval test \${$cacheid+y} 5601then : 5602 printf %s "(cached) " >&6 5603else case e in #( 5604 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5605/* end confdefs.h. */ 5606int i; 5607int 5608main (void) 5609{ 5610 5611 ; 5612 return 0; 5613} 5614_ACEOF 5615if ac_fn_c_try_link "$LINENO" 5616then : 5617 eval $cacheid=yes 5618else case e in #( 5619 e) eval $cacheid=no ;; 5620esac 5621fi 5622rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5623 conftest$ac_exeext conftest.$ac_ext ;; 5624esac 5625fi 5626 5627 5628 CFLAGS="$xorg_testset_save_CFLAGS" 5629 5630 eval supported=\$$cacheid 5631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5632printf "%s\n" "$supported" >&6; } 5633 if test "$supported" = "yes" ; then 5634 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5635 found="yes" 5636 fi 5637 fi 5638 5639 if test $found = "no" ; then 5640 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5641 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5642 fi 5643 5644 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5646 fi 5647 5648 CFLAGS="$CFLAGS -Wformat" 5649 5650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5651printf %s "checking if $CC supports -Wformat... " >&6; } 5652 cacheid=xorg_cv_cc_flag__Wformat 5653 if eval test \${$cacheid+y} 5654then : 5655 printf %s "(cached) " >&6 5656else case e in #( 5657 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5658/* end confdefs.h. */ 5659int i; 5660int 5661main (void) 5662{ 5663 5664 ; 5665 return 0; 5666} 5667_ACEOF 5668if ac_fn_c_try_link "$LINENO" 5669then : 5670 eval $cacheid=yes 5671else case e in #( 5672 e) eval $cacheid=no ;; 5673esac 5674fi 5675rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5676 conftest$ac_exeext conftest.$ac_ext ;; 5677esac 5678fi 5679 5680 5681 CFLAGS="$xorg_testset_save_CFLAGS" 5682 5683 eval supported=\$$cacheid 5684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5685printf "%s\n" "$supported" >&6; } 5686 if test "$supported" = "yes" ; then 5687 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5688 found="yes" 5689 fi 5690 fi 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708xorg_testset_save_CFLAGS="$CFLAGS" 5709 5710if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5711 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5713printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5714if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5715then : 5716 printf %s "(cached) " >&6 5717else case e in #( 5718 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5719/* end confdefs.h. */ 5720int i; 5721_ACEOF 5722if ac_fn_c_try_compile "$LINENO" 5723then : 5724 xorg_cv_cc_flag_unknown_warning_option=yes 5725else case e in #( 5726 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5727esac 5728fi 5729rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5730esac 5731fi 5732{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5733printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5734 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5735 CFLAGS="$xorg_testset_save_CFLAGS" 5736fi 5737 5738if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5739 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5740 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5741 fi 5742 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5744printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5745if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5746then : 5747 printf %s "(cached) " >&6 5748else case e in #( 5749 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5750/* end confdefs.h. */ 5751int i; 5752_ACEOF 5753if ac_fn_c_try_compile "$LINENO" 5754then : 5755 xorg_cv_cc_flag_unused_command_line_argument=yes 5756else case e in #( 5757 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5758esac 5759fi 5760rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5761esac 5762fi 5763{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5764printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5765 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5766 CFLAGS="$xorg_testset_save_CFLAGS" 5767fi 5768 5769found="no" 5770 5771 if test $found = "no" ; then 5772 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5773 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5774 fi 5775 5776 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5777 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5778 fi 5779 5780 CFLAGS="$CFLAGS -Wstrict-prototypes" 5781 5782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5783printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5784 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5785 if eval test \${$cacheid+y} 5786then : 5787 printf %s "(cached) " >&6 5788else case e in #( 5789 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5790/* end confdefs.h. */ 5791int i; 5792int 5793main (void) 5794{ 5795 5796 ; 5797 return 0; 5798} 5799_ACEOF 5800if ac_fn_c_try_link "$LINENO" 5801then : 5802 eval $cacheid=yes 5803else case e in #( 5804 e) eval $cacheid=no ;; 5805esac 5806fi 5807rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5808 conftest$ac_exeext conftest.$ac_ext ;; 5809esac 5810fi 5811 5812 5813 CFLAGS="$xorg_testset_save_CFLAGS" 5814 5815 eval supported=\$$cacheid 5816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5817printf "%s\n" "$supported" >&6; } 5818 if test "$supported" = "yes" ; then 5819 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5820 found="yes" 5821 fi 5822 fi 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838xorg_testset_save_CFLAGS="$CFLAGS" 5839 5840if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5841 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5843printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5844if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5845then : 5846 printf %s "(cached) " >&6 5847else case e in #( 5848 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5849/* end confdefs.h. */ 5850int i; 5851_ACEOF 5852if ac_fn_c_try_compile "$LINENO" 5853then : 5854 xorg_cv_cc_flag_unknown_warning_option=yes 5855else case e in #( 5856 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5857esac 5858fi 5859rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5860esac 5861fi 5862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5863printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5864 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5865 CFLAGS="$xorg_testset_save_CFLAGS" 5866fi 5867 5868if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5870 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5871 fi 5872 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5874printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5875if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5876then : 5877 printf %s "(cached) " >&6 5878else case e in #( 5879 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5880/* end confdefs.h. */ 5881int i; 5882_ACEOF 5883if ac_fn_c_try_compile "$LINENO" 5884then : 5885 xorg_cv_cc_flag_unused_command_line_argument=yes 5886else case e in #( 5887 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5888esac 5889fi 5890rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5891esac 5892fi 5893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5894printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5895 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5896 CFLAGS="$xorg_testset_save_CFLAGS" 5897fi 5898 5899found="no" 5900 5901 if test $found = "no" ; then 5902 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5903 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5904 fi 5905 5906 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5908 fi 5909 5910 CFLAGS="$CFLAGS -Wmissing-prototypes" 5911 5912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5913printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5914 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5915 if eval test \${$cacheid+y} 5916then : 5917 printf %s "(cached) " >&6 5918else case e in #( 5919 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5920/* end confdefs.h. */ 5921int i; 5922int 5923main (void) 5924{ 5925 5926 ; 5927 return 0; 5928} 5929_ACEOF 5930if ac_fn_c_try_link "$LINENO" 5931then : 5932 eval $cacheid=yes 5933else case e in #( 5934 e) eval $cacheid=no ;; 5935esac 5936fi 5937rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5938 conftest$ac_exeext conftest.$ac_ext ;; 5939esac 5940fi 5941 5942 5943 CFLAGS="$xorg_testset_save_CFLAGS" 5944 5945 eval supported=\$$cacheid 5946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5947printf "%s\n" "$supported" >&6; } 5948 if test "$supported" = "yes" ; then 5949 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5950 found="yes" 5951 fi 5952 fi 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968xorg_testset_save_CFLAGS="$CFLAGS" 5969 5970if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5971 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5973printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5974if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5975then : 5976 printf %s "(cached) " >&6 5977else case e in #( 5978 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5979/* end confdefs.h. */ 5980int i; 5981_ACEOF 5982if ac_fn_c_try_compile "$LINENO" 5983then : 5984 xorg_cv_cc_flag_unknown_warning_option=yes 5985else case e in #( 5986 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5987esac 5988fi 5989rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5990esac 5991fi 5992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5993printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5994 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5995 CFLAGS="$xorg_testset_save_CFLAGS" 5996fi 5997 5998if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5999 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6000 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6001 fi 6002 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6004printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6005if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6006then : 6007 printf %s "(cached) " >&6 6008else case e in #( 6009 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6010/* end confdefs.h. */ 6011int i; 6012_ACEOF 6013if ac_fn_c_try_compile "$LINENO" 6014then : 6015 xorg_cv_cc_flag_unused_command_line_argument=yes 6016else case e in #( 6017 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6018esac 6019fi 6020rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6021esac 6022fi 6023{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6024printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6025 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6026 CFLAGS="$xorg_testset_save_CFLAGS" 6027fi 6028 6029found="no" 6030 6031 if test $found = "no" ; then 6032 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6033 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6034 fi 6035 6036 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6038 fi 6039 6040 CFLAGS="$CFLAGS -Wnested-externs" 6041 6042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 6043printf %s "checking if $CC supports -Wnested-externs... " >&6; } 6044 cacheid=xorg_cv_cc_flag__Wnested_externs 6045 if eval test \${$cacheid+y} 6046then : 6047 printf %s "(cached) " >&6 6048else case e in #( 6049 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6050/* end confdefs.h. */ 6051int i; 6052int 6053main (void) 6054{ 6055 6056 ; 6057 return 0; 6058} 6059_ACEOF 6060if ac_fn_c_try_link "$LINENO" 6061then : 6062 eval $cacheid=yes 6063else case e in #( 6064 e) eval $cacheid=no ;; 6065esac 6066fi 6067rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6068 conftest$ac_exeext conftest.$ac_ext ;; 6069esac 6070fi 6071 6072 6073 CFLAGS="$xorg_testset_save_CFLAGS" 6074 6075 eval supported=\$$cacheid 6076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6077printf "%s\n" "$supported" >&6; } 6078 if test "$supported" = "yes" ; then 6079 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 6080 found="yes" 6081 fi 6082 fi 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098xorg_testset_save_CFLAGS="$CFLAGS" 6099 6100if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6101 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6103printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6104if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6105then : 6106 printf %s "(cached) " >&6 6107else case e in #( 6108 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6109/* end confdefs.h. */ 6110int i; 6111_ACEOF 6112if ac_fn_c_try_compile "$LINENO" 6113then : 6114 xorg_cv_cc_flag_unknown_warning_option=yes 6115else case e in #( 6116 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6117esac 6118fi 6119rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6120esac 6121fi 6122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6123printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6124 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6125 CFLAGS="$xorg_testset_save_CFLAGS" 6126fi 6127 6128if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6129 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6130 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6131 fi 6132 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6134printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6135if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6136then : 6137 printf %s "(cached) " >&6 6138else case e in #( 6139 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6140/* end confdefs.h. */ 6141int i; 6142_ACEOF 6143if ac_fn_c_try_compile "$LINENO" 6144then : 6145 xorg_cv_cc_flag_unused_command_line_argument=yes 6146else case e in #( 6147 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6148esac 6149fi 6150rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6151esac 6152fi 6153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6154printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6155 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6156 CFLAGS="$xorg_testset_save_CFLAGS" 6157fi 6158 6159found="no" 6160 6161 if test $found = "no" ; then 6162 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6163 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6164 fi 6165 6166 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6167 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6168 fi 6169 6170 CFLAGS="$CFLAGS -Wbad-function-cast" 6171 6172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6173printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 6174 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6175 if eval test \${$cacheid+y} 6176then : 6177 printf %s "(cached) " >&6 6178else case e in #( 6179 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6180/* end confdefs.h. */ 6181int i; 6182int 6183main (void) 6184{ 6185 6186 ; 6187 return 0; 6188} 6189_ACEOF 6190if ac_fn_c_try_link "$LINENO" 6191then : 6192 eval $cacheid=yes 6193else case e in #( 6194 e) eval $cacheid=no ;; 6195esac 6196fi 6197rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6198 conftest$ac_exeext conftest.$ac_ext ;; 6199esac 6200fi 6201 6202 6203 CFLAGS="$xorg_testset_save_CFLAGS" 6204 6205 eval supported=\$$cacheid 6206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6207printf "%s\n" "$supported" >&6; } 6208 if test "$supported" = "yes" ; then 6209 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6210 found="yes" 6211 fi 6212 fi 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228xorg_testset_save_CFLAGS="$CFLAGS" 6229 6230if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6231 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6233printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6234if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6235then : 6236 printf %s "(cached) " >&6 6237else case e in #( 6238 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6239/* end confdefs.h. */ 6240int i; 6241_ACEOF 6242if ac_fn_c_try_compile "$LINENO" 6243then : 6244 xorg_cv_cc_flag_unknown_warning_option=yes 6245else case e in #( 6246 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6247esac 6248fi 6249rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6250esac 6251fi 6252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6253printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6254 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6255 CFLAGS="$xorg_testset_save_CFLAGS" 6256fi 6257 6258if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6259 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6260 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6261 fi 6262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6264printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6265if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6266then : 6267 printf %s "(cached) " >&6 6268else case e in #( 6269 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6270/* end confdefs.h. */ 6271int i; 6272_ACEOF 6273if ac_fn_c_try_compile "$LINENO" 6274then : 6275 xorg_cv_cc_flag_unused_command_line_argument=yes 6276else case e in #( 6277 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6278esac 6279fi 6280rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6281esac 6282fi 6283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6284printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6285 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6286 CFLAGS="$xorg_testset_save_CFLAGS" 6287fi 6288 6289found="no" 6290 6291 if test $found = "no" ; then 6292 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6293 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6294 fi 6295 6296 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6297 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6298 fi 6299 6300 CFLAGS="$CFLAGS -Wold-style-definition" 6301 6302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6303printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6304 cacheid=xorg_cv_cc_flag__Wold_style_definition 6305 if eval test \${$cacheid+y} 6306then : 6307 printf %s "(cached) " >&6 6308else case e in #( 6309 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6310/* end confdefs.h. */ 6311int i; 6312int 6313main (void) 6314{ 6315 6316 ; 6317 return 0; 6318} 6319_ACEOF 6320if ac_fn_c_try_link "$LINENO" 6321then : 6322 eval $cacheid=yes 6323else case e in #( 6324 e) eval $cacheid=no ;; 6325esac 6326fi 6327rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6328 conftest$ac_exeext conftest.$ac_ext ;; 6329esac 6330fi 6331 6332 6333 CFLAGS="$xorg_testset_save_CFLAGS" 6334 6335 eval supported=\$$cacheid 6336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6337printf "%s\n" "$supported" >&6; } 6338 if test "$supported" = "yes" ; then 6339 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6340 found="yes" 6341 fi 6342 fi 6343 6344 if test $found = "no" ; then 6345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6346 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6347 fi 6348 6349 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6350 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6351 fi 6352 6353 CFLAGS="$CFLAGS -fd" 6354 6355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6356printf %s "checking if $CC supports -fd... " >&6; } 6357 cacheid=xorg_cv_cc_flag__fd 6358 if eval test \${$cacheid+y} 6359then : 6360 printf %s "(cached) " >&6 6361else case e in #( 6362 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6363/* end confdefs.h. */ 6364int i; 6365int 6366main (void) 6367{ 6368 6369 ; 6370 return 0; 6371} 6372_ACEOF 6373if ac_fn_c_try_link "$LINENO" 6374then : 6375 eval $cacheid=yes 6376else case e in #( 6377 e) eval $cacheid=no ;; 6378esac 6379fi 6380rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6381 conftest$ac_exeext conftest.$ac_ext ;; 6382esac 6383fi 6384 6385 6386 CFLAGS="$xorg_testset_save_CFLAGS" 6387 6388 eval supported=\$$cacheid 6389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6390printf "%s\n" "$supported" >&6; } 6391 if test "$supported" = "yes" ; then 6392 BASE_CFLAGS="$BASE_CFLAGS -fd" 6393 found="yes" 6394 fi 6395 fi 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411xorg_testset_save_CFLAGS="$CFLAGS" 6412 6413if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6414 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6416printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6417if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6418then : 6419 printf %s "(cached) " >&6 6420else case e in #( 6421 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6422/* end confdefs.h. */ 6423int i; 6424_ACEOF 6425if ac_fn_c_try_compile "$LINENO" 6426then : 6427 xorg_cv_cc_flag_unknown_warning_option=yes 6428else case e in #( 6429 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6430esac 6431fi 6432rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6433esac 6434fi 6435{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6436printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6437 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6438 CFLAGS="$xorg_testset_save_CFLAGS" 6439fi 6440 6441if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6442 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6443 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6444 fi 6445 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6447printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6448if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6449then : 6450 printf %s "(cached) " >&6 6451else case e in #( 6452 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6453/* end confdefs.h. */ 6454int i; 6455_ACEOF 6456if ac_fn_c_try_compile "$LINENO" 6457then : 6458 xorg_cv_cc_flag_unused_command_line_argument=yes 6459else case e in #( 6460 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6461esac 6462fi 6463rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6464esac 6465fi 6466{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6467printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6468 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6469 CFLAGS="$xorg_testset_save_CFLAGS" 6470fi 6471 6472found="no" 6473 6474 if test $found = "no" ; then 6475 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6476 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6477 fi 6478 6479 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6480 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6481 fi 6482 6483 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6484 6485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6486printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6487 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6488 if eval test \${$cacheid+y} 6489then : 6490 printf %s "(cached) " >&6 6491else case e in #( 6492 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6493/* end confdefs.h. */ 6494int i; 6495int 6496main (void) 6497{ 6498 6499 ; 6500 return 0; 6501} 6502_ACEOF 6503if ac_fn_c_try_link "$LINENO" 6504then : 6505 eval $cacheid=yes 6506else case e in #( 6507 e) eval $cacheid=no ;; 6508esac 6509fi 6510rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6511 conftest$ac_exeext conftest.$ac_ext ;; 6512esac 6513fi 6514 6515 6516 CFLAGS="$xorg_testset_save_CFLAGS" 6517 6518 eval supported=\$$cacheid 6519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6520printf "%s\n" "$supported" >&6; } 6521 if test "$supported" = "yes" ; then 6522 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6523 found="yes" 6524 fi 6525 fi 6526 6527 6528 6529 6530 6531# This chunk adds additional warnings that could catch undesired effects. 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545xorg_testset_save_CFLAGS="$CFLAGS" 6546 6547if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6548 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6550printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6551if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6552then : 6553 printf %s "(cached) " >&6 6554else case e in #( 6555 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6556/* end confdefs.h. */ 6557int i; 6558_ACEOF 6559if ac_fn_c_try_compile "$LINENO" 6560then : 6561 xorg_cv_cc_flag_unknown_warning_option=yes 6562else case e in #( 6563 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6564esac 6565fi 6566rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6567esac 6568fi 6569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6570printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6571 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6572 CFLAGS="$xorg_testset_save_CFLAGS" 6573fi 6574 6575if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6576 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6577 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6578 fi 6579 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6581printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6582if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6583then : 6584 printf %s "(cached) " >&6 6585else case e in #( 6586 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6587/* end confdefs.h. */ 6588int i; 6589_ACEOF 6590if ac_fn_c_try_compile "$LINENO" 6591then : 6592 xorg_cv_cc_flag_unused_command_line_argument=yes 6593else case e in #( 6594 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6595esac 6596fi 6597rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6598esac 6599fi 6600{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6601printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6602 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6603 CFLAGS="$xorg_testset_save_CFLAGS" 6604fi 6605 6606found="no" 6607 6608 if test $found = "no" ; then 6609 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6610 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6611 fi 6612 6613 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6614 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6615 fi 6616 6617 CFLAGS="$CFLAGS -Wunused" 6618 6619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6620printf %s "checking if $CC supports -Wunused... " >&6; } 6621 cacheid=xorg_cv_cc_flag__Wunused 6622 if eval test \${$cacheid+y} 6623then : 6624 printf %s "(cached) " >&6 6625else case e in #( 6626 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6627/* end confdefs.h. */ 6628int i; 6629int 6630main (void) 6631{ 6632 6633 ; 6634 return 0; 6635} 6636_ACEOF 6637if ac_fn_c_try_link "$LINENO" 6638then : 6639 eval $cacheid=yes 6640else case e in #( 6641 e) eval $cacheid=no ;; 6642esac 6643fi 6644rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6645 conftest$ac_exeext conftest.$ac_ext ;; 6646esac 6647fi 6648 6649 6650 CFLAGS="$xorg_testset_save_CFLAGS" 6651 6652 eval supported=\$$cacheid 6653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6654printf "%s\n" "$supported" >&6; } 6655 if test "$supported" = "yes" ; then 6656 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6657 found="yes" 6658 fi 6659 fi 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675xorg_testset_save_CFLAGS="$CFLAGS" 6676 6677if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6678 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6680printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6681if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6682then : 6683 printf %s "(cached) " >&6 6684else case e in #( 6685 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6686/* end confdefs.h. */ 6687int i; 6688_ACEOF 6689if ac_fn_c_try_compile "$LINENO" 6690then : 6691 xorg_cv_cc_flag_unknown_warning_option=yes 6692else case e in #( 6693 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6694esac 6695fi 6696rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6697esac 6698fi 6699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6700printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6701 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6702 CFLAGS="$xorg_testset_save_CFLAGS" 6703fi 6704 6705if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6706 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6707 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6708 fi 6709 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6711printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6712if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6713then : 6714 printf %s "(cached) " >&6 6715else case e in #( 6716 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6717/* end confdefs.h. */ 6718int i; 6719_ACEOF 6720if ac_fn_c_try_compile "$LINENO" 6721then : 6722 xorg_cv_cc_flag_unused_command_line_argument=yes 6723else case e in #( 6724 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6725esac 6726fi 6727rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6728esac 6729fi 6730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6731printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6732 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6733 CFLAGS="$xorg_testset_save_CFLAGS" 6734fi 6735 6736found="no" 6737 6738 if test $found = "no" ; then 6739 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6740 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6741 fi 6742 6743 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6744 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6745 fi 6746 6747 CFLAGS="$CFLAGS -Wuninitialized" 6748 6749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6750printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6751 cacheid=xorg_cv_cc_flag__Wuninitialized 6752 if eval test \${$cacheid+y} 6753then : 6754 printf %s "(cached) " >&6 6755else case e in #( 6756 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6757/* end confdefs.h. */ 6758int i; 6759int 6760main (void) 6761{ 6762 6763 ; 6764 return 0; 6765} 6766_ACEOF 6767if ac_fn_c_try_link "$LINENO" 6768then : 6769 eval $cacheid=yes 6770else case e in #( 6771 e) eval $cacheid=no ;; 6772esac 6773fi 6774rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6775 conftest$ac_exeext conftest.$ac_ext ;; 6776esac 6777fi 6778 6779 6780 CFLAGS="$xorg_testset_save_CFLAGS" 6781 6782 eval supported=\$$cacheid 6783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6784printf "%s\n" "$supported" >&6; } 6785 if test "$supported" = "yes" ; then 6786 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6787 found="yes" 6788 fi 6789 fi 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805xorg_testset_save_CFLAGS="$CFLAGS" 6806 6807if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6808 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6810printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6811if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6812then : 6813 printf %s "(cached) " >&6 6814else case e in #( 6815 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6816/* end confdefs.h. */ 6817int i; 6818_ACEOF 6819if ac_fn_c_try_compile "$LINENO" 6820then : 6821 xorg_cv_cc_flag_unknown_warning_option=yes 6822else case e in #( 6823 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6824esac 6825fi 6826rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6827esac 6828fi 6829{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6830printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6831 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6832 CFLAGS="$xorg_testset_save_CFLAGS" 6833fi 6834 6835if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6836 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6837 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6838 fi 6839 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6841printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6842if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6843then : 6844 printf %s "(cached) " >&6 6845else case e in #( 6846 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6847/* end confdefs.h. */ 6848int i; 6849_ACEOF 6850if ac_fn_c_try_compile "$LINENO" 6851then : 6852 xorg_cv_cc_flag_unused_command_line_argument=yes 6853else case e in #( 6854 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6855esac 6856fi 6857rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6858esac 6859fi 6860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6861printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6862 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6863 CFLAGS="$xorg_testset_save_CFLAGS" 6864fi 6865 6866found="no" 6867 6868 if test $found = "no" ; then 6869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6870 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6871 fi 6872 6873 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6874 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6875 fi 6876 6877 CFLAGS="$CFLAGS -Wshadow" 6878 6879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6880printf %s "checking if $CC supports -Wshadow... " >&6; } 6881 cacheid=xorg_cv_cc_flag__Wshadow 6882 if eval test \${$cacheid+y} 6883then : 6884 printf %s "(cached) " >&6 6885else case e in #( 6886 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6887/* end confdefs.h. */ 6888int i; 6889int 6890main (void) 6891{ 6892 6893 ; 6894 return 0; 6895} 6896_ACEOF 6897if ac_fn_c_try_link "$LINENO" 6898then : 6899 eval $cacheid=yes 6900else case e in #( 6901 e) eval $cacheid=no ;; 6902esac 6903fi 6904rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6905 conftest$ac_exeext conftest.$ac_ext ;; 6906esac 6907fi 6908 6909 6910 CFLAGS="$xorg_testset_save_CFLAGS" 6911 6912 eval supported=\$$cacheid 6913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6914printf "%s\n" "$supported" >&6; } 6915 if test "$supported" = "yes" ; then 6916 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6917 found="yes" 6918 fi 6919 fi 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935xorg_testset_save_CFLAGS="$CFLAGS" 6936 6937if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6938 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6940printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6941if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6942then : 6943 printf %s "(cached) " >&6 6944else case e in #( 6945 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6946/* end confdefs.h. */ 6947int i; 6948_ACEOF 6949if ac_fn_c_try_compile "$LINENO" 6950then : 6951 xorg_cv_cc_flag_unknown_warning_option=yes 6952else case e in #( 6953 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6954esac 6955fi 6956rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6957esac 6958fi 6959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6960printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6961 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6962 CFLAGS="$xorg_testset_save_CFLAGS" 6963fi 6964 6965if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6966 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6967 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6968 fi 6969 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6971printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6972if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6973then : 6974 printf %s "(cached) " >&6 6975else case e in #( 6976 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6977/* end confdefs.h. */ 6978int i; 6979_ACEOF 6980if ac_fn_c_try_compile "$LINENO" 6981then : 6982 xorg_cv_cc_flag_unused_command_line_argument=yes 6983else case e in #( 6984 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6985esac 6986fi 6987rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6988esac 6989fi 6990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6991printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6992 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6993 CFLAGS="$xorg_testset_save_CFLAGS" 6994fi 6995 6996found="no" 6997 6998 if test $found = "no" ; then 6999 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7000 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7001 fi 7002 7003 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7004 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7005 fi 7006 7007 CFLAGS="$CFLAGS -Wmissing-noreturn" 7008 7009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 7010printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 7011 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 7012 if eval test \${$cacheid+y} 7013then : 7014 printf %s "(cached) " >&6 7015else case e in #( 7016 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7017/* end confdefs.h. */ 7018int i; 7019int 7020main (void) 7021{ 7022 7023 ; 7024 return 0; 7025} 7026_ACEOF 7027if ac_fn_c_try_link "$LINENO" 7028then : 7029 eval $cacheid=yes 7030else case e in #( 7031 e) eval $cacheid=no ;; 7032esac 7033fi 7034rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7035 conftest$ac_exeext conftest.$ac_ext ;; 7036esac 7037fi 7038 7039 7040 CFLAGS="$xorg_testset_save_CFLAGS" 7041 7042 eval supported=\$$cacheid 7043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7044printf "%s\n" "$supported" >&6; } 7045 if test "$supported" = "yes" ; then 7046 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 7047 found="yes" 7048 fi 7049 fi 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065xorg_testset_save_CFLAGS="$CFLAGS" 7066 7067if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7068 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7070printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7071if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7072then : 7073 printf %s "(cached) " >&6 7074else case e in #( 7075 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7076/* end confdefs.h. */ 7077int i; 7078_ACEOF 7079if ac_fn_c_try_compile "$LINENO" 7080then : 7081 xorg_cv_cc_flag_unknown_warning_option=yes 7082else case e in #( 7083 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7084esac 7085fi 7086rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7087esac 7088fi 7089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7090printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7101printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7102if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7103then : 7104 printf %s "(cached) " >&6 7105else case e in #( 7106 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7107/* end confdefs.h. */ 7108int i; 7109_ACEOF 7110if ac_fn_c_try_compile "$LINENO" 7111then : 7112 xorg_cv_cc_flag_unused_command_line_argument=yes 7113else case e in #( 7114 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7115esac 7116fi 7117rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7118esac 7119fi 7120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7121printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7122 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7123 CFLAGS="$xorg_testset_save_CFLAGS" 7124fi 7125 7126found="no" 7127 7128 if test $found = "no" ; then 7129 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7130 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7131 fi 7132 7133 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7134 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7135 fi 7136 7137 CFLAGS="$CFLAGS -Wmissing-format-attribute" 7138 7139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 7140printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 7141 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 7142 if eval test \${$cacheid+y} 7143then : 7144 printf %s "(cached) " >&6 7145else case e in #( 7146 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7147/* end confdefs.h. */ 7148int i; 7149int 7150main (void) 7151{ 7152 7153 ; 7154 return 0; 7155} 7156_ACEOF 7157if ac_fn_c_try_link "$LINENO" 7158then : 7159 eval $cacheid=yes 7160else case e in #( 7161 e) eval $cacheid=no ;; 7162esac 7163fi 7164rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7165 conftest$ac_exeext conftest.$ac_ext ;; 7166esac 7167fi 7168 7169 7170 CFLAGS="$xorg_testset_save_CFLAGS" 7171 7172 eval supported=\$$cacheid 7173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7174printf "%s\n" "$supported" >&6; } 7175 if test "$supported" = "yes" ; then 7176 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 7177 found="yes" 7178 fi 7179 fi 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195xorg_testset_save_CFLAGS="$CFLAGS" 7196 7197if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7198 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7200printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7201if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7202then : 7203 printf %s "(cached) " >&6 7204else case e in #( 7205 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7206/* end confdefs.h. */ 7207int i; 7208_ACEOF 7209if ac_fn_c_try_compile "$LINENO" 7210then : 7211 xorg_cv_cc_flag_unknown_warning_option=yes 7212else case e in #( 7213 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7214esac 7215fi 7216rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7217esac 7218fi 7219{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7220printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7221 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7222 CFLAGS="$xorg_testset_save_CFLAGS" 7223fi 7224 7225if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7226 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7227 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7228 fi 7229 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7231printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7232if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7233then : 7234 printf %s "(cached) " >&6 7235else case e in #( 7236 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7237/* end confdefs.h. */ 7238int i; 7239_ACEOF 7240if ac_fn_c_try_compile "$LINENO" 7241then : 7242 xorg_cv_cc_flag_unused_command_line_argument=yes 7243else case e in #( 7244 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7245esac 7246fi 7247rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7248esac 7249fi 7250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7251printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7252 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7253 CFLAGS="$xorg_testset_save_CFLAGS" 7254fi 7255 7256found="no" 7257 7258 if test $found = "no" ; then 7259 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7260 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7261 fi 7262 7263 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7264 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7265 fi 7266 7267 CFLAGS="$CFLAGS -Wredundant-decls" 7268 7269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7270printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7271 cacheid=xorg_cv_cc_flag__Wredundant_decls 7272 if eval test \${$cacheid+y} 7273then : 7274 printf %s "(cached) " >&6 7275else case e in #( 7276 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7277/* end confdefs.h. */ 7278int i; 7279int 7280main (void) 7281{ 7282 7283 ; 7284 return 0; 7285} 7286_ACEOF 7287if ac_fn_c_try_link "$LINENO" 7288then : 7289 eval $cacheid=yes 7290else case e in #( 7291 e) eval $cacheid=no ;; 7292esac 7293fi 7294rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7295 conftest$ac_exeext conftest.$ac_ext ;; 7296esac 7297fi 7298 7299 7300 CFLAGS="$xorg_testset_save_CFLAGS" 7301 7302 eval supported=\$$cacheid 7303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7304printf "%s\n" "$supported" >&6; } 7305 if test "$supported" = "yes" ; then 7306 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7307 found="yes" 7308 fi 7309 fi 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325xorg_testset_save_CFLAGS="$CFLAGS" 7326 7327if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7328 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7330printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7331if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7332then : 7333 printf %s "(cached) " >&6 7334else case e in #( 7335 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7336/* end confdefs.h. */ 7337int i; 7338_ACEOF 7339if ac_fn_c_try_compile "$LINENO" 7340then : 7341 xorg_cv_cc_flag_unknown_warning_option=yes 7342else case e in #( 7343 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7344esac 7345fi 7346rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7347esac 7348fi 7349{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7350printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7351 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7352 CFLAGS="$xorg_testset_save_CFLAGS" 7353fi 7354 7355if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7356 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7357 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7358 fi 7359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7361printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7362if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7363then : 7364 printf %s "(cached) " >&6 7365else case e in #( 7366 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7367/* end confdefs.h. */ 7368int i; 7369_ACEOF 7370if ac_fn_c_try_compile "$LINENO" 7371then : 7372 xorg_cv_cc_flag_unused_command_line_argument=yes 7373else case e in #( 7374 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7375esac 7376fi 7377rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7378esac 7379fi 7380{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7381printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7382 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7383 CFLAGS="$xorg_testset_save_CFLAGS" 7384fi 7385 7386found="no" 7387 7388 if test $found = "no" ; then 7389 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7390 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7391 fi 7392 7393 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7394 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7395 fi 7396 7397 CFLAGS="$CFLAGS -Wlogical-op" 7398 7399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7400printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7401 cacheid=xorg_cv_cc_flag__Wlogical_op 7402 if eval test \${$cacheid+y} 7403then : 7404 printf %s "(cached) " >&6 7405else case e in #( 7406 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7407/* end confdefs.h. */ 7408int i; 7409int 7410main (void) 7411{ 7412 7413 ; 7414 return 0; 7415} 7416_ACEOF 7417if ac_fn_c_try_link "$LINENO" 7418then : 7419 eval $cacheid=yes 7420else case e in #( 7421 e) eval $cacheid=no ;; 7422esac 7423fi 7424rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7425 conftest$ac_exeext conftest.$ac_ext ;; 7426esac 7427fi 7428 7429 7430 CFLAGS="$xorg_testset_save_CFLAGS" 7431 7432 eval supported=\$$cacheid 7433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7434printf "%s\n" "$supported" >&6; } 7435 if test "$supported" = "yes" ; then 7436 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7437 found="yes" 7438 fi 7439 fi 7440 7441 7442 7443# These are currently disabled because they are noisy. They will be enabled 7444# in the future once the codebase is sufficiently modernized to silence 7445# them. For now, I don't want them to drown out the other warnings. 7446# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7447# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7448# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7449 7450# Turn some warnings into errors, so we don't accidentally get successful builds 7451# when there are problems that should be fixed. 7452 7453if test "x$SELECTIVE_WERROR" = "xyes" ; then 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467xorg_testset_save_CFLAGS="$CFLAGS" 7468 7469if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7470 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7472printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7473if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7474then : 7475 printf %s "(cached) " >&6 7476else case e in #( 7477 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7478/* end confdefs.h. */ 7479int i; 7480_ACEOF 7481if ac_fn_c_try_compile "$LINENO" 7482then : 7483 xorg_cv_cc_flag_unknown_warning_option=yes 7484else case e in #( 7485 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7486esac 7487fi 7488rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7489esac 7490fi 7491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7492printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7493 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7494 CFLAGS="$xorg_testset_save_CFLAGS" 7495fi 7496 7497if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7498 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7499 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7500 fi 7501 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7503printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7504if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7505then : 7506 printf %s "(cached) " >&6 7507else case e in #( 7508 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7509/* end confdefs.h. */ 7510int i; 7511_ACEOF 7512if ac_fn_c_try_compile "$LINENO" 7513then : 7514 xorg_cv_cc_flag_unused_command_line_argument=yes 7515else case e in #( 7516 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7517esac 7518fi 7519rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7520esac 7521fi 7522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7523printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7524 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7525 CFLAGS="$xorg_testset_save_CFLAGS" 7526fi 7527 7528found="no" 7529 7530 if test $found = "no" ; then 7531 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7532 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7533 fi 7534 7535 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7536 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7537 fi 7538 7539 CFLAGS="$CFLAGS -Werror=implicit" 7540 7541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7542printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7543 cacheid=xorg_cv_cc_flag__Werror_implicit 7544 if eval test \${$cacheid+y} 7545then : 7546 printf %s "(cached) " >&6 7547else case e in #( 7548 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7549/* end confdefs.h. */ 7550int i; 7551int 7552main (void) 7553{ 7554 7555 ; 7556 return 0; 7557} 7558_ACEOF 7559if ac_fn_c_try_link "$LINENO" 7560then : 7561 eval $cacheid=yes 7562else case e in #( 7563 e) eval $cacheid=no ;; 7564esac 7565fi 7566rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7567 conftest$ac_exeext conftest.$ac_ext ;; 7568esac 7569fi 7570 7571 7572 CFLAGS="$xorg_testset_save_CFLAGS" 7573 7574 eval supported=\$$cacheid 7575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7576printf "%s\n" "$supported" >&6; } 7577 if test "$supported" = "yes" ; then 7578 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7579 found="yes" 7580 fi 7581 fi 7582 7583 if test $found = "no" ; then 7584 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7585 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7586 fi 7587 7588 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7589 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7590 fi 7591 7592 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7593 7594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 7595printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7596 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7597 if eval test \${$cacheid+y} 7598then : 7599 printf %s "(cached) " >&6 7600else case e in #( 7601 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7602/* end confdefs.h. */ 7603int i; 7604int 7605main (void) 7606{ 7607 7608 ; 7609 return 0; 7610} 7611_ACEOF 7612if ac_fn_c_try_link "$LINENO" 7613then : 7614 eval $cacheid=yes 7615else case e in #( 7616 e) eval $cacheid=no ;; 7617esac 7618fi 7619rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7620 conftest$ac_exeext conftest.$ac_ext ;; 7621esac 7622fi 7623 7624 7625 CFLAGS="$xorg_testset_save_CFLAGS" 7626 7627 eval supported=\$$cacheid 7628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7629printf "%s\n" "$supported" >&6; } 7630 if test "$supported" = "yes" ; then 7631 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7632 found="yes" 7633 fi 7634 fi 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650xorg_testset_save_CFLAGS="$CFLAGS" 7651 7652if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7653 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7655printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7656if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7657then : 7658 printf %s "(cached) " >&6 7659else case e in #( 7660 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7661/* end confdefs.h. */ 7662int i; 7663_ACEOF 7664if ac_fn_c_try_compile "$LINENO" 7665then : 7666 xorg_cv_cc_flag_unknown_warning_option=yes 7667else case e in #( 7668 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7669esac 7670fi 7671rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7672esac 7673fi 7674{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7675printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7676 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7677 CFLAGS="$xorg_testset_save_CFLAGS" 7678fi 7679 7680if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7681 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7682 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7683 fi 7684 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7686printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7687if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7688then : 7689 printf %s "(cached) " >&6 7690else case e in #( 7691 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7692/* end confdefs.h. */ 7693int i; 7694_ACEOF 7695if ac_fn_c_try_compile "$LINENO" 7696then : 7697 xorg_cv_cc_flag_unused_command_line_argument=yes 7698else case e in #( 7699 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7700esac 7701fi 7702rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7703esac 7704fi 7705{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7706printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7707 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7708 CFLAGS="$xorg_testset_save_CFLAGS" 7709fi 7710 7711found="no" 7712 7713 if test $found = "no" ; then 7714 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7715 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7716 fi 7717 7718 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7719 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7720 fi 7721 7722 CFLAGS="$CFLAGS -Werror=nonnull" 7723 7724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7725printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7726 cacheid=xorg_cv_cc_flag__Werror_nonnull 7727 if eval test \${$cacheid+y} 7728then : 7729 printf %s "(cached) " >&6 7730else case e in #( 7731 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7732/* end confdefs.h. */ 7733int i; 7734int 7735main (void) 7736{ 7737 7738 ; 7739 return 0; 7740} 7741_ACEOF 7742if ac_fn_c_try_link "$LINENO" 7743then : 7744 eval $cacheid=yes 7745else case e in #( 7746 e) eval $cacheid=no ;; 7747esac 7748fi 7749rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7750 conftest$ac_exeext conftest.$ac_ext ;; 7751esac 7752fi 7753 7754 7755 CFLAGS="$xorg_testset_save_CFLAGS" 7756 7757 eval supported=\$$cacheid 7758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7759printf "%s\n" "$supported" >&6; } 7760 if test "$supported" = "yes" ; then 7761 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7762 found="yes" 7763 fi 7764 fi 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780xorg_testset_save_CFLAGS="$CFLAGS" 7781 7782if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7783 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7785printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7786if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7787then : 7788 printf %s "(cached) " >&6 7789else case e in #( 7790 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7791/* end confdefs.h. */ 7792int i; 7793_ACEOF 7794if ac_fn_c_try_compile "$LINENO" 7795then : 7796 xorg_cv_cc_flag_unknown_warning_option=yes 7797else case e in #( 7798 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7799esac 7800fi 7801rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7802esac 7803fi 7804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7805printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7806 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7807 CFLAGS="$xorg_testset_save_CFLAGS" 7808fi 7809 7810if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7811 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7812 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7813 fi 7814 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7816printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7817if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7818then : 7819 printf %s "(cached) " >&6 7820else case e in #( 7821 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7822/* end confdefs.h. */ 7823int i; 7824_ACEOF 7825if ac_fn_c_try_compile "$LINENO" 7826then : 7827 xorg_cv_cc_flag_unused_command_line_argument=yes 7828else case e in #( 7829 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7830esac 7831fi 7832rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7833esac 7834fi 7835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7836printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7837 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7838 CFLAGS="$xorg_testset_save_CFLAGS" 7839fi 7840 7841found="no" 7842 7843 if test $found = "no" ; then 7844 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7845 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7846 fi 7847 7848 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7849 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7850 fi 7851 7852 CFLAGS="$CFLAGS -Werror=init-self" 7853 7854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7855printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7856 cacheid=xorg_cv_cc_flag__Werror_init_self 7857 if eval test \${$cacheid+y} 7858then : 7859 printf %s "(cached) " >&6 7860else case e in #( 7861 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7862/* end confdefs.h. */ 7863int i; 7864int 7865main (void) 7866{ 7867 7868 ; 7869 return 0; 7870} 7871_ACEOF 7872if ac_fn_c_try_link "$LINENO" 7873then : 7874 eval $cacheid=yes 7875else case e in #( 7876 e) eval $cacheid=no ;; 7877esac 7878fi 7879rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7880 conftest$ac_exeext conftest.$ac_ext ;; 7881esac 7882fi 7883 7884 7885 CFLAGS="$xorg_testset_save_CFLAGS" 7886 7887 eval supported=\$$cacheid 7888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7889printf "%s\n" "$supported" >&6; } 7890 if test "$supported" = "yes" ; then 7891 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7892 found="yes" 7893 fi 7894 fi 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910xorg_testset_save_CFLAGS="$CFLAGS" 7911 7912if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7913 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7915printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7916if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7917then : 7918 printf %s "(cached) " >&6 7919else case e in #( 7920 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7921/* end confdefs.h. */ 7922int i; 7923_ACEOF 7924if ac_fn_c_try_compile "$LINENO" 7925then : 7926 xorg_cv_cc_flag_unknown_warning_option=yes 7927else case e in #( 7928 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7929esac 7930fi 7931rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7932esac 7933fi 7934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7935printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7936 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7937 CFLAGS="$xorg_testset_save_CFLAGS" 7938fi 7939 7940if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7941 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7942 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7943 fi 7944 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7946printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7947if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7948then : 7949 printf %s "(cached) " >&6 7950else case e in #( 7951 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7952/* end confdefs.h. */ 7953int i; 7954_ACEOF 7955if ac_fn_c_try_compile "$LINENO" 7956then : 7957 xorg_cv_cc_flag_unused_command_line_argument=yes 7958else case e in #( 7959 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7960esac 7961fi 7962rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7963esac 7964fi 7965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7966printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7967 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7968 CFLAGS="$xorg_testset_save_CFLAGS" 7969fi 7970 7971found="no" 7972 7973 if test $found = "no" ; then 7974 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7975 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7976 fi 7977 7978 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7979 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7980 fi 7981 7982 CFLAGS="$CFLAGS -Werror=main" 7983 7984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7985printf %s "checking if $CC supports -Werror=main... " >&6; } 7986 cacheid=xorg_cv_cc_flag__Werror_main 7987 if eval test \${$cacheid+y} 7988then : 7989 printf %s "(cached) " >&6 7990else case e in #( 7991 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7992/* end confdefs.h. */ 7993int i; 7994int 7995main (void) 7996{ 7997 7998 ; 7999 return 0; 8000} 8001_ACEOF 8002if ac_fn_c_try_link "$LINENO" 8003then : 8004 eval $cacheid=yes 8005else case e in #( 8006 e) eval $cacheid=no ;; 8007esac 8008fi 8009rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8010 conftest$ac_exeext conftest.$ac_ext ;; 8011esac 8012fi 8013 8014 8015 CFLAGS="$xorg_testset_save_CFLAGS" 8016 8017 eval supported=\$$cacheid 8018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8019printf "%s\n" "$supported" >&6; } 8020 if test "$supported" = "yes" ; then 8021 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 8022 found="yes" 8023 fi 8024 fi 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040xorg_testset_save_CFLAGS="$CFLAGS" 8041 8042if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8043 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8045printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8046if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8047then : 8048 printf %s "(cached) " >&6 8049else case e in #( 8050 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8051/* end confdefs.h. */ 8052int i; 8053_ACEOF 8054if ac_fn_c_try_compile "$LINENO" 8055then : 8056 xorg_cv_cc_flag_unknown_warning_option=yes 8057else case e in #( 8058 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8059esac 8060fi 8061rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8062esac 8063fi 8064{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8065printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8066 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8067 CFLAGS="$xorg_testset_save_CFLAGS" 8068fi 8069 8070if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8071 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8072 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8073 fi 8074 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8076printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8077if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8078then : 8079 printf %s "(cached) " >&6 8080else case e in #( 8081 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8082/* end confdefs.h. */ 8083int i; 8084_ACEOF 8085if ac_fn_c_try_compile "$LINENO" 8086then : 8087 xorg_cv_cc_flag_unused_command_line_argument=yes 8088else case e in #( 8089 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8090esac 8091fi 8092rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8093esac 8094fi 8095{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8096printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8097 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8098 CFLAGS="$xorg_testset_save_CFLAGS" 8099fi 8100 8101found="no" 8102 8103 if test $found = "no" ; then 8104 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8105 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8106 fi 8107 8108 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8109 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8110 fi 8111 8112 CFLAGS="$CFLAGS -Werror=missing-braces" 8113 8114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 8115printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 8116 cacheid=xorg_cv_cc_flag__Werror_missing_braces 8117 if eval test \${$cacheid+y} 8118then : 8119 printf %s "(cached) " >&6 8120else case e in #( 8121 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8122/* end confdefs.h. */ 8123int i; 8124int 8125main (void) 8126{ 8127 8128 ; 8129 return 0; 8130} 8131_ACEOF 8132if ac_fn_c_try_link "$LINENO" 8133then : 8134 eval $cacheid=yes 8135else case e in #( 8136 e) eval $cacheid=no ;; 8137esac 8138fi 8139rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8140 conftest$ac_exeext conftest.$ac_ext ;; 8141esac 8142fi 8143 8144 8145 CFLAGS="$xorg_testset_save_CFLAGS" 8146 8147 eval supported=\$$cacheid 8148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8149printf "%s\n" "$supported" >&6; } 8150 if test "$supported" = "yes" ; then 8151 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 8152 found="yes" 8153 fi 8154 fi 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170xorg_testset_save_CFLAGS="$CFLAGS" 8171 8172if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8173 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8175printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8176if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8177then : 8178 printf %s "(cached) " >&6 8179else case e in #( 8180 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8181/* end confdefs.h. */ 8182int i; 8183_ACEOF 8184if ac_fn_c_try_compile "$LINENO" 8185then : 8186 xorg_cv_cc_flag_unknown_warning_option=yes 8187else case e in #( 8188 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8189esac 8190fi 8191rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8192esac 8193fi 8194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8195printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8196 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8197 CFLAGS="$xorg_testset_save_CFLAGS" 8198fi 8199 8200if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8201 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8202 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8203 fi 8204 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8206printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8207if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8208then : 8209 printf %s "(cached) " >&6 8210else case e in #( 8211 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8212/* end confdefs.h. */ 8213int i; 8214_ACEOF 8215if ac_fn_c_try_compile "$LINENO" 8216then : 8217 xorg_cv_cc_flag_unused_command_line_argument=yes 8218else case e in #( 8219 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8220esac 8221fi 8222rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8223esac 8224fi 8225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8226printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8227 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8228 CFLAGS="$xorg_testset_save_CFLAGS" 8229fi 8230 8231found="no" 8232 8233 if test $found = "no" ; then 8234 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8235 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8236 fi 8237 8238 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8239 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8240 fi 8241 8242 CFLAGS="$CFLAGS -Werror=sequence-point" 8243 8244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8245printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 8246 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8247 if eval test \${$cacheid+y} 8248then : 8249 printf %s "(cached) " >&6 8250else case e in #( 8251 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8252/* end confdefs.h. */ 8253int i; 8254int 8255main (void) 8256{ 8257 8258 ; 8259 return 0; 8260} 8261_ACEOF 8262if ac_fn_c_try_link "$LINENO" 8263then : 8264 eval $cacheid=yes 8265else case e in #( 8266 e) eval $cacheid=no ;; 8267esac 8268fi 8269rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8270 conftest$ac_exeext conftest.$ac_ext ;; 8271esac 8272fi 8273 8274 8275 CFLAGS="$xorg_testset_save_CFLAGS" 8276 8277 eval supported=\$$cacheid 8278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8279printf "%s\n" "$supported" >&6; } 8280 if test "$supported" = "yes" ; then 8281 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8282 found="yes" 8283 fi 8284 fi 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300xorg_testset_save_CFLAGS="$CFLAGS" 8301 8302if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8303 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8305printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8306if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8307then : 8308 printf %s "(cached) " >&6 8309else case e in #( 8310 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8311/* end confdefs.h. */ 8312int i; 8313_ACEOF 8314if ac_fn_c_try_compile "$LINENO" 8315then : 8316 xorg_cv_cc_flag_unknown_warning_option=yes 8317else case e in #( 8318 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8319esac 8320fi 8321rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8322esac 8323fi 8324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8325printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8326 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8327 CFLAGS="$xorg_testset_save_CFLAGS" 8328fi 8329 8330if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8331 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8332 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8333 fi 8334 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8336printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8337if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8338then : 8339 printf %s "(cached) " >&6 8340else case e in #( 8341 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8342/* end confdefs.h. */ 8343int i; 8344_ACEOF 8345if ac_fn_c_try_compile "$LINENO" 8346then : 8347 xorg_cv_cc_flag_unused_command_line_argument=yes 8348else case e in #( 8349 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8350esac 8351fi 8352rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8353esac 8354fi 8355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8356printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8357 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8358 CFLAGS="$xorg_testset_save_CFLAGS" 8359fi 8360 8361found="no" 8362 8363 if test $found = "no" ; then 8364 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8365 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8366 fi 8367 8368 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8369 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8370 fi 8371 8372 CFLAGS="$CFLAGS -Werror=return-type" 8373 8374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8375printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8376 cacheid=xorg_cv_cc_flag__Werror_return_type 8377 if eval test \${$cacheid+y} 8378then : 8379 printf %s "(cached) " >&6 8380else case e in #( 8381 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8382/* end confdefs.h. */ 8383int i; 8384int 8385main (void) 8386{ 8387 8388 ; 8389 return 0; 8390} 8391_ACEOF 8392if ac_fn_c_try_link "$LINENO" 8393then : 8394 eval $cacheid=yes 8395else case e in #( 8396 e) eval $cacheid=no ;; 8397esac 8398fi 8399rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8400 conftest$ac_exeext conftest.$ac_ext ;; 8401esac 8402fi 8403 8404 8405 CFLAGS="$xorg_testset_save_CFLAGS" 8406 8407 eval supported=\$$cacheid 8408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8409printf "%s\n" "$supported" >&6; } 8410 if test "$supported" = "yes" ; then 8411 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8412 found="yes" 8413 fi 8414 fi 8415 8416 if test $found = "no" ; then 8417 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8418 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8419 fi 8420 8421 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8423 fi 8424 8425 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8426 8427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8428printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8429 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8430 if eval test \${$cacheid+y} 8431then : 8432 printf %s "(cached) " >&6 8433else case e in #( 8434 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8435/* end confdefs.h. */ 8436int i; 8437int 8438main (void) 8439{ 8440 8441 ; 8442 return 0; 8443} 8444_ACEOF 8445if ac_fn_c_try_link "$LINENO" 8446then : 8447 eval $cacheid=yes 8448else case e in #( 8449 e) eval $cacheid=no ;; 8450esac 8451fi 8452rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8453 conftest$ac_exeext conftest.$ac_ext ;; 8454esac 8455fi 8456 8457 8458 CFLAGS="$xorg_testset_save_CFLAGS" 8459 8460 eval supported=\$$cacheid 8461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8462printf "%s\n" "$supported" >&6; } 8463 if test "$supported" = "yes" ; then 8464 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8465 found="yes" 8466 fi 8467 fi 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483xorg_testset_save_CFLAGS="$CFLAGS" 8484 8485if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8486 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8488printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8489if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8490then : 8491 printf %s "(cached) " >&6 8492else case e in #( 8493 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8494/* end confdefs.h. */ 8495int i; 8496_ACEOF 8497if ac_fn_c_try_compile "$LINENO" 8498then : 8499 xorg_cv_cc_flag_unknown_warning_option=yes 8500else case e in #( 8501 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8502esac 8503fi 8504rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8505esac 8506fi 8507{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8508printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8509 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8510 CFLAGS="$xorg_testset_save_CFLAGS" 8511fi 8512 8513if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8514 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8515 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8516 fi 8517 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8519printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8520if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8521then : 8522 printf %s "(cached) " >&6 8523else case e in #( 8524 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8525/* end confdefs.h. */ 8526int i; 8527_ACEOF 8528if ac_fn_c_try_compile "$LINENO" 8529then : 8530 xorg_cv_cc_flag_unused_command_line_argument=yes 8531else case e in #( 8532 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8533esac 8534fi 8535rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8536esac 8537fi 8538{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8539printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8540 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8541 CFLAGS="$xorg_testset_save_CFLAGS" 8542fi 8543 8544found="no" 8545 8546 if test $found = "no" ; then 8547 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8548 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8549 fi 8550 8551 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8552 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8553 fi 8554 8555 CFLAGS="$CFLAGS -Werror=trigraphs" 8556 8557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8558printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8559 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8560 if eval test \${$cacheid+y} 8561then : 8562 printf %s "(cached) " >&6 8563else case e in #( 8564 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8565/* end confdefs.h. */ 8566int i; 8567int 8568main (void) 8569{ 8570 8571 ; 8572 return 0; 8573} 8574_ACEOF 8575if ac_fn_c_try_link "$LINENO" 8576then : 8577 eval $cacheid=yes 8578else case e in #( 8579 e) eval $cacheid=no ;; 8580esac 8581fi 8582rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8583 conftest$ac_exeext conftest.$ac_ext ;; 8584esac 8585fi 8586 8587 8588 CFLAGS="$xorg_testset_save_CFLAGS" 8589 8590 eval supported=\$$cacheid 8591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8592printf "%s\n" "$supported" >&6; } 8593 if test "$supported" = "yes" ; then 8594 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8595 found="yes" 8596 fi 8597 fi 8598 8599 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613xorg_testset_save_CFLAGS="$CFLAGS" 8614 8615if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8616 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8618printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8619if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8620then : 8621 printf %s "(cached) " >&6 8622else case e in #( 8623 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8624/* end confdefs.h. */ 8625int i; 8626_ACEOF 8627if ac_fn_c_try_compile "$LINENO" 8628then : 8629 xorg_cv_cc_flag_unknown_warning_option=yes 8630else case e in #( 8631 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8632esac 8633fi 8634rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8635esac 8636fi 8637{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8638printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8639 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8640 CFLAGS="$xorg_testset_save_CFLAGS" 8641fi 8642 8643if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8644 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8645 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8646 fi 8647 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8649printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8650if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8651then : 8652 printf %s "(cached) " >&6 8653else case e in #( 8654 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8655/* end confdefs.h. */ 8656int i; 8657_ACEOF 8658if ac_fn_c_try_compile "$LINENO" 8659then : 8660 xorg_cv_cc_flag_unused_command_line_argument=yes 8661else case e in #( 8662 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8663esac 8664fi 8665rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8666esac 8667fi 8668{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8669printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8670 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8671 CFLAGS="$xorg_testset_save_CFLAGS" 8672fi 8673 8674found="no" 8675 8676 if test $found = "no" ; then 8677 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8678 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8679 fi 8680 8681 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8682 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8683 fi 8684 8685 CFLAGS="$CFLAGS -Werror=array-bounds" 8686 8687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8688printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8689 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8690 if eval test \${$cacheid+y} 8691then : 8692 printf %s "(cached) " >&6 8693else case e in #( 8694 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8695/* end confdefs.h. */ 8696int i; 8697int 8698main (void) 8699{ 8700 8701 ; 8702 return 0; 8703} 8704_ACEOF 8705if ac_fn_c_try_link "$LINENO" 8706then : 8707 eval $cacheid=yes 8708else case e in #( 8709 e) eval $cacheid=no ;; 8710esac 8711fi 8712rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8713 conftest$ac_exeext conftest.$ac_ext ;; 8714esac 8715fi 8716 8717 8718 CFLAGS="$xorg_testset_save_CFLAGS" 8719 8720 eval supported=\$$cacheid 8721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8722printf "%s\n" "$supported" >&6; } 8723 if test "$supported" = "yes" ; then 8724 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8725 found="yes" 8726 fi 8727 fi 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738 8739 8740 8741 8742 8743xorg_testset_save_CFLAGS="$CFLAGS" 8744 8745if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8746 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8748printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8749if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8750then : 8751 printf %s "(cached) " >&6 8752else case e in #( 8753 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8754/* end confdefs.h. */ 8755int i; 8756_ACEOF 8757if ac_fn_c_try_compile "$LINENO" 8758then : 8759 xorg_cv_cc_flag_unknown_warning_option=yes 8760else case e in #( 8761 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8762esac 8763fi 8764rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8765esac 8766fi 8767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8768printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8769 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8770 CFLAGS="$xorg_testset_save_CFLAGS" 8771fi 8772 8773if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8774 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8775 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8776 fi 8777 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8779printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8780if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8781then : 8782 printf %s "(cached) " >&6 8783else case e in #( 8784 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8785/* end confdefs.h. */ 8786int i; 8787_ACEOF 8788if ac_fn_c_try_compile "$LINENO" 8789then : 8790 xorg_cv_cc_flag_unused_command_line_argument=yes 8791else case e in #( 8792 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8793esac 8794fi 8795rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8796esac 8797fi 8798{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8799printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8800 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8801 CFLAGS="$xorg_testset_save_CFLAGS" 8802fi 8803 8804found="no" 8805 8806 if test $found = "no" ; then 8807 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8808 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8809 fi 8810 8811 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8812 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8813 fi 8814 8815 CFLAGS="$CFLAGS -Werror=write-strings" 8816 8817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8818printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8819 cacheid=xorg_cv_cc_flag__Werror_write_strings 8820 if eval test \${$cacheid+y} 8821then : 8822 printf %s "(cached) " >&6 8823else case e in #( 8824 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8825/* end confdefs.h. */ 8826int i; 8827int 8828main (void) 8829{ 8830 8831 ; 8832 return 0; 8833} 8834_ACEOF 8835if ac_fn_c_try_link "$LINENO" 8836then : 8837 eval $cacheid=yes 8838else case e in #( 8839 e) eval $cacheid=no ;; 8840esac 8841fi 8842rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8843 conftest$ac_exeext conftest.$ac_ext ;; 8844esac 8845fi 8846 8847 8848 CFLAGS="$xorg_testset_save_CFLAGS" 8849 8850 eval supported=\$$cacheid 8851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8852printf "%s\n" "$supported" >&6; } 8853 if test "$supported" = "yes" ; then 8854 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8855 found="yes" 8856 fi 8857 fi 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870 8871 8872 8873xorg_testset_save_CFLAGS="$CFLAGS" 8874 8875if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8876 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8878printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8879if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8880then : 8881 printf %s "(cached) " >&6 8882else case e in #( 8883 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8884/* end confdefs.h. */ 8885int i; 8886_ACEOF 8887if ac_fn_c_try_compile "$LINENO" 8888then : 8889 xorg_cv_cc_flag_unknown_warning_option=yes 8890else case e in #( 8891 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8892esac 8893fi 8894rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8895esac 8896fi 8897{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8898printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8899 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8900 CFLAGS="$xorg_testset_save_CFLAGS" 8901fi 8902 8903if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8904 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8905 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8906 fi 8907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8909printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8910if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8911then : 8912 printf %s "(cached) " >&6 8913else case e in #( 8914 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8915/* end confdefs.h. */ 8916int i; 8917_ACEOF 8918if ac_fn_c_try_compile "$LINENO" 8919then : 8920 xorg_cv_cc_flag_unused_command_line_argument=yes 8921else case e in #( 8922 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8923esac 8924fi 8925rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8926esac 8927fi 8928{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8929printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8930 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8931 CFLAGS="$xorg_testset_save_CFLAGS" 8932fi 8933 8934found="no" 8935 8936 if test $found = "no" ; then 8937 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8938 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8939 fi 8940 8941 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8942 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8943 fi 8944 8945 CFLAGS="$CFLAGS -Werror=address" 8946 8947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8948printf %s "checking if $CC supports -Werror=address... " >&6; } 8949 cacheid=xorg_cv_cc_flag__Werror_address 8950 if eval test \${$cacheid+y} 8951then : 8952 printf %s "(cached) " >&6 8953else case e in #( 8954 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8955/* end confdefs.h. */ 8956int i; 8957int 8958main (void) 8959{ 8960 8961 ; 8962 return 0; 8963} 8964_ACEOF 8965if ac_fn_c_try_link "$LINENO" 8966then : 8967 eval $cacheid=yes 8968else case e in #( 8969 e) eval $cacheid=no ;; 8970esac 8971fi 8972rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8973 conftest$ac_exeext conftest.$ac_ext ;; 8974esac 8975fi 8976 8977 8978 CFLAGS="$xorg_testset_save_CFLAGS" 8979 8980 eval supported=\$$cacheid 8981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8982printf "%s\n" "$supported" >&6; } 8983 if test "$supported" = "yes" ; then 8984 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8985 found="yes" 8986 fi 8987 fi 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003xorg_testset_save_CFLAGS="$CFLAGS" 9004 9005if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9006 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9008printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9009if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9010then : 9011 printf %s "(cached) " >&6 9012else case e in #( 9013 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9014/* end confdefs.h. */ 9015int i; 9016_ACEOF 9017if ac_fn_c_try_compile "$LINENO" 9018then : 9019 xorg_cv_cc_flag_unknown_warning_option=yes 9020else case e in #( 9021 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9022esac 9023fi 9024rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9025esac 9026fi 9027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9028printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9029 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9030 CFLAGS="$xorg_testset_save_CFLAGS" 9031fi 9032 9033if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9035 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9036 fi 9037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9039printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9040if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9041then : 9042 printf %s "(cached) " >&6 9043else case e in #( 9044 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9045/* end confdefs.h. */ 9046int i; 9047_ACEOF 9048if ac_fn_c_try_compile "$LINENO" 9049then : 9050 xorg_cv_cc_flag_unused_command_line_argument=yes 9051else case e in #( 9052 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9053esac 9054fi 9055rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9056esac 9057fi 9058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9059printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9060 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9061 CFLAGS="$xorg_testset_save_CFLAGS" 9062fi 9063 9064found="no" 9065 9066 if test $found = "no" ; then 9067 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9068 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9069 fi 9070 9071 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9072 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9073 fi 9074 9075 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 9076 9077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 9078printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 9079 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 9080 if eval test \${$cacheid+y} 9081then : 9082 printf %s "(cached) " >&6 9083else case e in #( 9084 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9085/* end confdefs.h. */ 9086int i; 9087int 9088main (void) 9089{ 9090 9091 ; 9092 return 0; 9093} 9094_ACEOF 9095if ac_fn_c_try_link "$LINENO" 9096then : 9097 eval $cacheid=yes 9098else case e in #( 9099 e) eval $cacheid=no ;; 9100esac 9101fi 9102rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9103 conftest$ac_exeext conftest.$ac_ext ;; 9104esac 9105fi 9106 9107 9108 CFLAGS="$xorg_testset_save_CFLAGS" 9109 9110 eval supported=\$$cacheid 9111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9112printf "%s\n" "$supported" >&6; } 9113 if test "$supported" = "yes" ; then 9114 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 9115 found="yes" 9116 fi 9117 fi 9118 9119 if test $found = "no" ; then 9120 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9121 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9122 fi 9123 9124 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9125 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9126 fi 9127 9128 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9129 9130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 9131printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 9132 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 9133 if eval test \${$cacheid+y} 9134then : 9135 printf %s "(cached) " >&6 9136else case e in #( 9137 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9138/* end confdefs.h. */ 9139int i; 9140int 9141main (void) 9142{ 9143 9144 ; 9145 return 0; 9146} 9147_ACEOF 9148if ac_fn_c_try_link "$LINENO" 9149then : 9150 eval $cacheid=yes 9151else case e in #( 9152 e) eval $cacheid=no ;; 9153esac 9154fi 9155rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9156 conftest$ac_exeext conftest.$ac_ext ;; 9157esac 9158fi 9159 9160 9161 CFLAGS="$xorg_testset_save_CFLAGS" 9162 9163 eval supported=\$$cacheid 9164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9165printf "%s\n" "$supported" >&6; } 9166 if test "$supported" = "yes" ; then 9167 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9168 found="yes" 9169 fi 9170 fi 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186xorg_testset_save_CFLAGS="$CFLAGS" 9187 9188if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9189 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9191printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9192if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9193then : 9194 printf %s "(cached) " >&6 9195else case e in #( 9196 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9197/* end confdefs.h. */ 9198int i; 9199_ACEOF 9200if ac_fn_c_try_compile "$LINENO" 9201then : 9202 xorg_cv_cc_flag_unknown_warning_option=yes 9203else case e in #( 9204 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9205esac 9206fi 9207rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9208esac 9209fi 9210{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9211printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9212 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9213 CFLAGS="$xorg_testset_save_CFLAGS" 9214fi 9215 9216if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9217 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9218 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9219 fi 9220 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9222printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9223if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9224then : 9225 printf %s "(cached) " >&6 9226else case e in #( 9227 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9228/* end confdefs.h. */ 9229int i; 9230_ACEOF 9231if ac_fn_c_try_compile "$LINENO" 9232then : 9233 xorg_cv_cc_flag_unused_command_line_argument=yes 9234else case e in #( 9235 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9236esac 9237fi 9238rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9239esac 9240fi 9241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9242printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9243 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9244 CFLAGS="$xorg_testset_save_CFLAGS" 9245fi 9246 9247found="no" 9248 9249 if test $found = "no" ; then 9250 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9251 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9252 fi 9253 9254 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9255 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9256 fi 9257 9258 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 9259 9260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 9261printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 9262 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 9263 if eval test \${$cacheid+y} 9264then : 9265 printf %s "(cached) " >&6 9266else case e in #( 9267 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9268/* end confdefs.h. */ 9269int i; 9270int 9271main (void) 9272{ 9273 9274 ; 9275 return 0; 9276} 9277_ACEOF 9278if ac_fn_c_try_link "$LINENO" 9279then : 9280 eval $cacheid=yes 9281else case e in #( 9282 e) eval $cacheid=no ;; 9283esac 9284fi 9285rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9286 conftest$ac_exeext conftest.$ac_ext ;; 9287esac 9288fi 9289 9290 9291 CFLAGS="$xorg_testset_save_CFLAGS" 9292 9293 eval supported=\$$cacheid 9294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9295printf "%s\n" "$supported" >&6; } 9296 if test "$supported" = "yes" ; then 9297 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 9298 found="yes" 9299 fi 9300 fi 9301 9302 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 9303else 9304{ printf "%s\n" "$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 9305printf "%s\n" "$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;} 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319xorg_testset_save_CFLAGS="$CFLAGS" 9320 9321if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9322 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9324printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9325if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9326then : 9327 printf %s "(cached) " >&6 9328else case e in #( 9329 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9330/* end confdefs.h. */ 9331int i; 9332_ACEOF 9333if ac_fn_c_try_compile "$LINENO" 9334then : 9335 xorg_cv_cc_flag_unknown_warning_option=yes 9336else case e in #( 9337 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9338esac 9339fi 9340rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9341esac 9342fi 9343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9344printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9345 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9346 CFLAGS="$xorg_testset_save_CFLAGS" 9347fi 9348 9349if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9350 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9351 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9352 fi 9353 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9355printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9356if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9357then : 9358 printf %s "(cached) " >&6 9359else case e in #( 9360 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9361/* end confdefs.h. */ 9362int i; 9363_ACEOF 9364if ac_fn_c_try_compile "$LINENO" 9365then : 9366 xorg_cv_cc_flag_unused_command_line_argument=yes 9367else case e in #( 9368 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9369esac 9370fi 9371rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9372esac 9373fi 9374{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9375printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9376 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9377 CFLAGS="$xorg_testset_save_CFLAGS" 9378fi 9379 9380found="no" 9381 9382 if test $found = "no" ; then 9383 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9384 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9385 fi 9386 9387 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9388 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9389 fi 9390 9391 CFLAGS="$CFLAGS -Wimplicit" 9392 9393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9394printf %s "checking if $CC supports -Wimplicit... " >&6; } 9395 cacheid=xorg_cv_cc_flag__Wimplicit 9396 if eval test \${$cacheid+y} 9397then : 9398 printf %s "(cached) " >&6 9399else case e in #( 9400 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9401/* end confdefs.h. */ 9402int i; 9403int 9404main (void) 9405{ 9406 9407 ; 9408 return 0; 9409} 9410_ACEOF 9411if ac_fn_c_try_link "$LINENO" 9412then : 9413 eval $cacheid=yes 9414else case e in #( 9415 e) eval $cacheid=no ;; 9416esac 9417fi 9418rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9419 conftest$ac_exeext conftest.$ac_ext ;; 9420esac 9421fi 9422 9423 9424 CFLAGS="$xorg_testset_save_CFLAGS" 9425 9426 eval supported=\$$cacheid 9427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9428printf "%s\n" "$supported" >&6; } 9429 if test "$supported" = "yes" ; then 9430 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9431 found="yes" 9432 fi 9433 fi 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449xorg_testset_save_CFLAGS="$CFLAGS" 9450 9451if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9452 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9454printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9455if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9456then : 9457 printf %s "(cached) " >&6 9458else case e in #( 9459 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9460/* end confdefs.h. */ 9461int i; 9462_ACEOF 9463if ac_fn_c_try_compile "$LINENO" 9464then : 9465 xorg_cv_cc_flag_unknown_warning_option=yes 9466else case e in #( 9467 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9468esac 9469fi 9470rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9471esac 9472fi 9473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9474printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9475 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9476 CFLAGS="$xorg_testset_save_CFLAGS" 9477fi 9478 9479if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9480 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9481 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9482 fi 9483 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9485printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9486if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9487then : 9488 printf %s "(cached) " >&6 9489else case e in #( 9490 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9491/* end confdefs.h. */ 9492int i; 9493_ACEOF 9494if ac_fn_c_try_compile "$LINENO" 9495then : 9496 xorg_cv_cc_flag_unused_command_line_argument=yes 9497else case e in #( 9498 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9499esac 9500fi 9501rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9502esac 9503fi 9504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9505printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9506 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9507 CFLAGS="$xorg_testset_save_CFLAGS" 9508fi 9509 9510found="no" 9511 9512 if test $found = "no" ; then 9513 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9514 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9515 fi 9516 9517 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9518 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9519 fi 9520 9521 CFLAGS="$CFLAGS -Wnonnull" 9522 9523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9524printf %s "checking if $CC supports -Wnonnull... " >&6; } 9525 cacheid=xorg_cv_cc_flag__Wnonnull 9526 if eval test \${$cacheid+y} 9527then : 9528 printf %s "(cached) " >&6 9529else case e in #( 9530 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9531/* end confdefs.h. */ 9532int i; 9533int 9534main (void) 9535{ 9536 9537 ; 9538 return 0; 9539} 9540_ACEOF 9541if ac_fn_c_try_link "$LINENO" 9542then : 9543 eval $cacheid=yes 9544else case e in #( 9545 e) eval $cacheid=no ;; 9546esac 9547fi 9548rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9549 conftest$ac_exeext conftest.$ac_ext ;; 9550esac 9551fi 9552 9553 9554 CFLAGS="$xorg_testset_save_CFLAGS" 9555 9556 eval supported=\$$cacheid 9557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9558printf "%s\n" "$supported" >&6; } 9559 if test "$supported" = "yes" ; then 9560 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9561 found="yes" 9562 fi 9563 fi 9564 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579xorg_testset_save_CFLAGS="$CFLAGS" 9580 9581if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9582 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9584printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9585if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9586then : 9587 printf %s "(cached) " >&6 9588else case e in #( 9589 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9590/* end confdefs.h. */ 9591int i; 9592_ACEOF 9593if ac_fn_c_try_compile "$LINENO" 9594then : 9595 xorg_cv_cc_flag_unknown_warning_option=yes 9596else case e in #( 9597 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9598esac 9599fi 9600rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9601esac 9602fi 9603{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9604printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9605 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9606 CFLAGS="$xorg_testset_save_CFLAGS" 9607fi 9608 9609if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9610 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9611 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9612 fi 9613 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9615printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9616if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9617then : 9618 printf %s "(cached) " >&6 9619else case e in #( 9620 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9621/* end confdefs.h. */ 9622int i; 9623_ACEOF 9624if ac_fn_c_try_compile "$LINENO" 9625then : 9626 xorg_cv_cc_flag_unused_command_line_argument=yes 9627else case e in #( 9628 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9629esac 9630fi 9631rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9632esac 9633fi 9634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9635printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9636 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9637 CFLAGS="$xorg_testset_save_CFLAGS" 9638fi 9639 9640found="no" 9641 9642 if test $found = "no" ; then 9643 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9644 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9645 fi 9646 9647 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9648 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9649 fi 9650 9651 CFLAGS="$CFLAGS -Winit-self" 9652 9653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9654printf %s "checking if $CC supports -Winit-self... " >&6; } 9655 cacheid=xorg_cv_cc_flag__Winit_self 9656 if eval test \${$cacheid+y} 9657then : 9658 printf %s "(cached) " >&6 9659else case e in #( 9660 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9661/* end confdefs.h. */ 9662int i; 9663int 9664main (void) 9665{ 9666 9667 ; 9668 return 0; 9669} 9670_ACEOF 9671if ac_fn_c_try_link "$LINENO" 9672then : 9673 eval $cacheid=yes 9674else case e in #( 9675 e) eval $cacheid=no ;; 9676esac 9677fi 9678rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9679 conftest$ac_exeext conftest.$ac_ext ;; 9680esac 9681fi 9682 9683 9684 CFLAGS="$xorg_testset_save_CFLAGS" 9685 9686 eval supported=\$$cacheid 9687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9688printf "%s\n" "$supported" >&6; } 9689 if test "$supported" = "yes" ; then 9690 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9691 found="yes" 9692 fi 9693 fi 9694 9695 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709xorg_testset_save_CFLAGS="$CFLAGS" 9710 9711if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9712 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9714printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9715if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9716then : 9717 printf %s "(cached) " >&6 9718else case e in #( 9719 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9720/* end confdefs.h. */ 9721int i; 9722_ACEOF 9723if ac_fn_c_try_compile "$LINENO" 9724then : 9725 xorg_cv_cc_flag_unknown_warning_option=yes 9726else case e in #( 9727 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9728esac 9729fi 9730rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9731esac 9732fi 9733{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9734printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9735 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9736 CFLAGS="$xorg_testset_save_CFLAGS" 9737fi 9738 9739if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9740 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9741 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9742 fi 9743 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9745printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9746if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9747then : 9748 printf %s "(cached) " >&6 9749else case e in #( 9750 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9751/* end confdefs.h. */ 9752int i; 9753_ACEOF 9754if ac_fn_c_try_compile "$LINENO" 9755then : 9756 xorg_cv_cc_flag_unused_command_line_argument=yes 9757else case e in #( 9758 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9759esac 9760fi 9761rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9762esac 9763fi 9764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9765printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9766 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9767 CFLAGS="$xorg_testset_save_CFLAGS" 9768fi 9769 9770found="no" 9771 9772 if test $found = "no" ; then 9773 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9774 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9775 fi 9776 9777 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9778 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9779 fi 9780 9781 CFLAGS="$CFLAGS -Wmain" 9782 9783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9784printf %s "checking if $CC supports -Wmain... " >&6; } 9785 cacheid=xorg_cv_cc_flag__Wmain 9786 if eval test \${$cacheid+y} 9787then : 9788 printf %s "(cached) " >&6 9789else case e in #( 9790 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9791/* end confdefs.h. */ 9792int i; 9793int 9794main (void) 9795{ 9796 9797 ; 9798 return 0; 9799} 9800_ACEOF 9801if ac_fn_c_try_link "$LINENO" 9802then : 9803 eval $cacheid=yes 9804else case e in #( 9805 e) eval $cacheid=no ;; 9806esac 9807fi 9808rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9809 conftest$ac_exeext conftest.$ac_ext ;; 9810esac 9811fi 9812 9813 9814 CFLAGS="$xorg_testset_save_CFLAGS" 9815 9816 eval supported=\$$cacheid 9817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9818printf "%s\n" "$supported" >&6; } 9819 if test "$supported" = "yes" ; then 9820 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9821 found="yes" 9822 fi 9823 fi 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839xorg_testset_save_CFLAGS="$CFLAGS" 9840 9841if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9842 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9844printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9845if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9846then : 9847 printf %s "(cached) " >&6 9848else case e in #( 9849 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9850/* end confdefs.h. */ 9851int i; 9852_ACEOF 9853if ac_fn_c_try_compile "$LINENO" 9854then : 9855 xorg_cv_cc_flag_unknown_warning_option=yes 9856else case e in #( 9857 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9858esac 9859fi 9860rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9861esac 9862fi 9863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9864printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9865 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9866 CFLAGS="$xorg_testset_save_CFLAGS" 9867fi 9868 9869if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9870 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9871 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9872 fi 9873 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9875printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9876if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9877then : 9878 printf %s "(cached) " >&6 9879else case e in #( 9880 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9881/* end confdefs.h. */ 9882int i; 9883_ACEOF 9884if ac_fn_c_try_compile "$LINENO" 9885then : 9886 xorg_cv_cc_flag_unused_command_line_argument=yes 9887else case e in #( 9888 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9889esac 9890fi 9891rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9892esac 9893fi 9894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9895printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9896 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9897 CFLAGS="$xorg_testset_save_CFLAGS" 9898fi 9899 9900found="no" 9901 9902 if test $found = "no" ; then 9903 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9904 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9905 fi 9906 9907 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9908 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9909 fi 9910 9911 CFLAGS="$CFLAGS -Wmissing-braces" 9912 9913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9914printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9915 cacheid=xorg_cv_cc_flag__Wmissing_braces 9916 if eval test \${$cacheid+y} 9917then : 9918 printf %s "(cached) " >&6 9919else case e in #( 9920 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9921/* end confdefs.h. */ 9922int i; 9923int 9924main (void) 9925{ 9926 9927 ; 9928 return 0; 9929} 9930_ACEOF 9931if ac_fn_c_try_link "$LINENO" 9932then : 9933 eval $cacheid=yes 9934else case e in #( 9935 e) eval $cacheid=no ;; 9936esac 9937fi 9938rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9939 conftest$ac_exeext conftest.$ac_ext ;; 9940esac 9941fi 9942 9943 9944 CFLAGS="$xorg_testset_save_CFLAGS" 9945 9946 eval supported=\$$cacheid 9947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9948printf "%s\n" "$supported" >&6; } 9949 if test "$supported" = "yes" ; then 9950 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9951 found="yes" 9952 fi 9953 fi 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969xorg_testset_save_CFLAGS="$CFLAGS" 9970 9971if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9972 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9974printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9975if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9976then : 9977 printf %s "(cached) " >&6 9978else case e in #( 9979 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9980/* end confdefs.h. */ 9981int i; 9982_ACEOF 9983if ac_fn_c_try_compile "$LINENO" 9984then : 9985 xorg_cv_cc_flag_unknown_warning_option=yes 9986else case e in #( 9987 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9988esac 9989fi 9990rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9991esac 9992fi 9993{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9994printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9995 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9996 CFLAGS="$xorg_testset_save_CFLAGS" 9997fi 9998 9999if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10000 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10001 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10002 fi 10003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10005printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10006if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10007then : 10008 printf %s "(cached) " >&6 10009else case e in #( 10010 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10011/* end confdefs.h. */ 10012int i; 10013_ACEOF 10014if ac_fn_c_try_compile "$LINENO" 10015then : 10016 xorg_cv_cc_flag_unused_command_line_argument=yes 10017else case e in #( 10018 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10019esac 10020fi 10021rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10022esac 10023fi 10024{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10025printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10026 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10027 CFLAGS="$xorg_testset_save_CFLAGS" 10028fi 10029 10030found="no" 10031 10032 if test $found = "no" ; then 10033 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10034 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10035 fi 10036 10037 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10038 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10039 fi 10040 10041 CFLAGS="$CFLAGS -Wsequence-point" 10042 10043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 10044printf %s "checking if $CC supports -Wsequence-point... " >&6; } 10045 cacheid=xorg_cv_cc_flag__Wsequence_point 10046 if eval test \${$cacheid+y} 10047then : 10048 printf %s "(cached) " >&6 10049else case e in #( 10050 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10051/* end confdefs.h. */ 10052int i; 10053int 10054main (void) 10055{ 10056 10057 ; 10058 return 0; 10059} 10060_ACEOF 10061if ac_fn_c_try_link "$LINENO" 10062then : 10063 eval $cacheid=yes 10064else case e in #( 10065 e) eval $cacheid=no ;; 10066esac 10067fi 10068rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10069 conftest$ac_exeext conftest.$ac_ext ;; 10070esac 10071fi 10072 10073 10074 CFLAGS="$xorg_testset_save_CFLAGS" 10075 10076 eval supported=\$$cacheid 10077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10078printf "%s\n" "$supported" >&6; } 10079 if test "$supported" = "yes" ; then 10080 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 10081 found="yes" 10082 fi 10083 fi 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099xorg_testset_save_CFLAGS="$CFLAGS" 10100 10101if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10102 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10104printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10105if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10106then : 10107 printf %s "(cached) " >&6 10108else case e in #( 10109 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10110/* end confdefs.h. */ 10111int i; 10112_ACEOF 10113if ac_fn_c_try_compile "$LINENO" 10114then : 10115 xorg_cv_cc_flag_unknown_warning_option=yes 10116else case e in #( 10117 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10118esac 10119fi 10120rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10121esac 10122fi 10123{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10124printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10125 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10126 CFLAGS="$xorg_testset_save_CFLAGS" 10127fi 10128 10129if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10130 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10131 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10132 fi 10133 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10135printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10136if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10137then : 10138 printf %s "(cached) " >&6 10139else case e in #( 10140 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10141/* end confdefs.h. */ 10142int i; 10143_ACEOF 10144if ac_fn_c_try_compile "$LINENO" 10145then : 10146 xorg_cv_cc_flag_unused_command_line_argument=yes 10147else case e in #( 10148 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10149esac 10150fi 10151rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10152esac 10153fi 10154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10155printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10156 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10157 CFLAGS="$xorg_testset_save_CFLAGS" 10158fi 10159 10160found="no" 10161 10162 if test $found = "no" ; then 10163 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10164 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10165 fi 10166 10167 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10168 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10169 fi 10170 10171 CFLAGS="$CFLAGS -Wreturn-type" 10172 10173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 10174printf %s "checking if $CC supports -Wreturn-type... " >&6; } 10175 cacheid=xorg_cv_cc_flag__Wreturn_type 10176 if eval test \${$cacheid+y} 10177then : 10178 printf %s "(cached) " >&6 10179else case e in #( 10180 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10181/* end confdefs.h. */ 10182int i; 10183int 10184main (void) 10185{ 10186 10187 ; 10188 return 0; 10189} 10190_ACEOF 10191if ac_fn_c_try_link "$LINENO" 10192then : 10193 eval $cacheid=yes 10194else case e in #( 10195 e) eval $cacheid=no ;; 10196esac 10197fi 10198rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10199 conftest$ac_exeext conftest.$ac_ext ;; 10200esac 10201fi 10202 10203 10204 CFLAGS="$xorg_testset_save_CFLAGS" 10205 10206 eval supported=\$$cacheid 10207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10208printf "%s\n" "$supported" >&6; } 10209 if test "$supported" = "yes" ; then 10210 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 10211 found="yes" 10212 fi 10213 fi 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229xorg_testset_save_CFLAGS="$CFLAGS" 10230 10231if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10232 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10234printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10235if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10236then : 10237 printf %s "(cached) " >&6 10238else case e in #( 10239 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10240/* end confdefs.h. */ 10241int i; 10242_ACEOF 10243if ac_fn_c_try_compile "$LINENO" 10244then : 10245 xorg_cv_cc_flag_unknown_warning_option=yes 10246else case e in #( 10247 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10248esac 10249fi 10250rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10251esac 10252fi 10253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10254printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10255 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10256 CFLAGS="$xorg_testset_save_CFLAGS" 10257fi 10258 10259if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10260 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10261 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10262 fi 10263 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10265printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10266if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10267then : 10268 printf %s "(cached) " >&6 10269else case e in #( 10270 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10271/* end confdefs.h. */ 10272int i; 10273_ACEOF 10274if ac_fn_c_try_compile "$LINENO" 10275then : 10276 xorg_cv_cc_flag_unused_command_line_argument=yes 10277else case e in #( 10278 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10279esac 10280fi 10281rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10282esac 10283fi 10284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10285printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10286 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10287 CFLAGS="$xorg_testset_save_CFLAGS" 10288fi 10289 10290found="no" 10291 10292 if test $found = "no" ; then 10293 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10294 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10295 fi 10296 10297 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10298 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10299 fi 10300 10301 CFLAGS="$CFLAGS -Wtrigraphs" 10302 10303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 10304printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 10305 cacheid=xorg_cv_cc_flag__Wtrigraphs 10306 if eval test \${$cacheid+y} 10307then : 10308 printf %s "(cached) " >&6 10309else case e in #( 10310 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10311/* end confdefs.h. */ 10312int i; 10313int 10314main (void) 10315{ 10316 10317 ; 10318 return 0; 10319} 10320_ACEOF 10321if ac_fn_c_try_link "$LINENO" 10322then : 10323 eval $cacheid=yes 10324else case e in #( 10325 e) eval $cacheid=no ;; 10326esac 10327fi 10328rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10329 conftest$ac_exeext conftest.$ac_ext ;; 10330esac 10331fi 10332 10333 10334 CFLAGS="$xorg_testset_save_CFLAGS" 10335 10336 eval supported=\$$cacheid 10337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10338printf "%s\n" "$supported" >&6; } 10339 if test "$supported" = "yes" ; then 10340 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10341 found="yes" 10342 fi 10343 fi 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359xorg_testset_save_CFLAGS="$CFLAGS" 10360 10361if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10362 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10364printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10365if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10366then : 10367 printf %s "(cached) " >&6 10368else case e in #( 10369 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10370/* end confdefs.h. */ 10371int i; 10372_ACEOF 10373if ac_fn_c_try_compile "$LINENO" 10374then : 10375 xorg_cv_cc_flag_unknown_warning_option=yes 10376else case e in #( 10377 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10378esac 10379fi 10380rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10381esac 10382fi 10383{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10384printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10385 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10386 CFLAGS="$xorg_testset_save_CFLAGS" 10387fi 10388 10389if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10390 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10391 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10392 fi 10393 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10395printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10396if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10397then : 10398 printf %s "(cached) " >&6 10399else case e in #( 10400 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10401/* end confdefs.h. */ 10402int i; 10403_ACEOF 10404if ac_fn_c_try_compile "$LINENO" 10405then : 10406 xorg_cv_cc_flag_unused_command_line_argument=yes 10407else case e in #( 10408 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10409esac 10410fi 10411rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10412esac 10413fi 10414{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10415printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10416 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10417 CFLAGS="$xorg_testset_save_CFLAGS" 10418fi 10419 10420found="no" 10421 10422 if test $found = "no" ; then 10423 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10424 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10425 fi 10426 10427 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10428 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10429 fi 10430 10431 CFLAGS="$CFLAGS -Warray-bounds" 10432 10433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10434printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10435 cacheid=xorg_cv_cc_flag__Warray_bounds 10436 if eval test \${$cacheid+y} 10437then : 10438 printf %s "(cached) " >&6 10439else case e in #( 10440 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10441/* end confdefs.h. */ 10442int i; 10443int 10444main (void) 10445{ 10446 10447 ; 10448 return 0; 10449} 10450_ACEOF 10451if ac_fn_c_try_link "$LINENO" 10452then : 10453 eval $cacheid=yes 10454else case e in #( 10455 e) eval $cacheid=no ;; 10456esac 10457fi 10458rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10459 conftest$ac_exeext conftest.$ac_ext ;; 10460esac 10461fi 10462 10463 10464 CFLAGS="$xorg_testset_save_CFLAGS" 10465 10466 eval supported=\$$cacheid 10467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10468printf "%s\n" "$supported" >&6; } 10469 if test "$supported" = "yes" ; then 10470 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10471 found="yes" 10472 fi 10473 fi 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489xorg_testset_save_CFLAGS="$CFLAGS" 10490 10491if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10492 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10494printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10495if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10496then : 10497 printf %s "(cached) " >&6 10498else case e in #( 10499 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10500/* end confdefs.h. */ 10501int i; 10502_ACEOF 10503if ac_fn_c_try_compile "$LINENO" 10504then : 10505 xorg_cv_cc_flag_unknown_warning_option=yes 10506else case e in #( 10507 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10508esac 10509fi 10510rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10511esac 10512fi 10513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10514printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10515 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10516 CFLAGS="$xorg_testset_save_CFLAGS" 10517fi 10518 10519if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10520 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10521 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10522 fi 10523 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10525printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10526if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10527then : 10528 printf %s "(cached) " >&6 10529else case e in #( 10530 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10531/* end confdefs.h. */ 10532int i; 10533_ACEOF 10534if ac_fn_c_try_compile "$LINENO" 10535then : 10536 xorg_cv_cc_flag_unused_command_line_argument=yes 10537else case e in #( 10538 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10539esac 10540fi 10541rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10542esac 10543fi 10544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10545printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10546 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10547 CFLAGS="$xorg_testset_save_CFLAGS" 10548fi 10549 10550found="no" 10551 10552 if test $found = "no" ; then 10553 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10554 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10555 fi 10556 10557 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10558 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10559 fi 10560 10561 CFLAGS="$CFLAGS -Wwrite-strings" 10562 10563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10564printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10565 cacheid=xorg_cv_cc_flag__Wwrite_strings 10566 if eval test \${$cacheid+y} 10567then : 10568 printf %s "(cached) " >&6 10569else case e in #( 10570 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10571/* end confdefs.h. */ 10572int i; 10573int 10574main (void) 10575{ 10576 10577 ; 10578 return 0; 10579} 10580_ACEOF 10581if ac_fn_c_try_link "$LINENO" 10582then : 10583 eval $cacheid=yes 10584else case e in #( 10585 e) eval $cacheid=no ;; 10586esac 10587fi 10588rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10589 conftest$ac_exeext conftest.$ac_ext ;; 10590esac 10591fi 10592 10593 10594 CFLAGS="$xorg_testset_save_CFLAGS" 10595 10596 eval supported=\$$cacheid 10597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10598printf "%s\n" "$supported" >&6; } 10599 if test "$supported" = "yes" ; then 10600 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10601 found="yes" 10602 fi 10603 fi 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619xorg_testset_save_CFLAGS="$CFLAGS" 10620 10621if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10622 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10624printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10625if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10626then : 10627 printf %s "(cached) " >&6 10628else case e in #( 10629 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10630/* end confdefs.h. */ 10631int i; 10632_ACEOF 10633if ac_fn_c_try_compile "$LINENO" 10634then : 10635 xorg_cv_cc_flag_unknown_warning_option=yes 10636else case e in #( 10637 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10638esac 10639fi 10640rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10641esac 10642fi 10643{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10644printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10645 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10646 CFLAGS="$xorg_testset_save_CFLAGS" 10647fi 10648 10649if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10650 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10651 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10652 fi 10653 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10655printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10656if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10657then : 10658 printf %s "(cached) " >&6 10659else case e in #( 10660 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10661/* end confdefs.h. */ 10662int i; 10663_ACEOF 10664if ac_fn_c_try_compile "$LINENO" 10665then : 10666 xorg_cv_cc_flag_unused_command_line_argument=yes 10667else case e in #( 10668 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10669esac 10670fi 10671rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10672esac 10673fi 10674{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10675printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10676 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10677 CFLAGS="$xorg_testset_save_CFLAGS" 10678fi 10679 10680found="no" 10681 10682 if test $found = "no" ; then 10683 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10684 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10685 fi 10686 10687 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10688 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10689 fi 10690 10691 CFLAGS="$CFLAGS -Waddress" 10692 10693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10694printf %s "checking if $CC supports -Waddress... " >&6; } 10695 cacheid=xorg_cv_cc_flag__Waddress 10696 if eval test \${$cacheid+y} 10697then : 10698 printf %s "(cached) " >&6 10699else case e in #( 10700 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10701/* end confdefs.h. */ 10702int i; 10703int 10704main (void) 10705{ 10706 10707 ; 10708 return 0; 10709} 10710_ACEOF 10711if ac_fn_c_try_link "$LINENO" 10712then : 10713 eval $cacheid=yes 10714else case e in #( 10715 e) eval $cacheid=no ;; 10716esac 10717fi 10718rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10719 conftest$ac_exeext conftest.$ac_ext ;; 10720esac 10721fi 10722 10723 10724 CFLAGS="$xorg_testset_save_CFLAGS" 10725 10726 eval supported=\$$cacheid 10727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10728printf "%s\n" "$supported" >&6; } 10729 if test "$supported" = "yes" ; then 10730 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10731 found="yes" 10732 fi 10733 fi 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749xorg_testset_save_CFLAGS="$CFLAGS" 10750 10751if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10752 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10754printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10755if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10756then : 10757 printf %s "(cached) " >&6 10758else case e in #( 10759 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10760/* end confdefs.h. */ 10761int i; 10762_ACEOF 10763if ac_fn_c_try_compile "$LINENO" 10764then : 10765 xorg_cv_cc_flag_unknown_warning_option=yes 10766else case e in #( 10767 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10768esac 10769fi 10770rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10771esac 10772fi 10773{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10774printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10775 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10776 CFLAGS="$xorg_testset_save_CFLAGS" 10777fi 10778 10779if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10780 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10781 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10782 fi 10783 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10785printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10786if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10787then : 10788 printf %s "(cached) " >&6 10789else case e in #( 10790 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10791/* end confdefs.h. */ 10792int i; 10793_ACEOF 10794if ac_fn_c_try_compile "$LINENO" 10795then : 10796 xorg_cv_cc_flag_unused_command_line_argument=yes 10797else case e in #( 10798 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10799esac 10800fi 10801rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10802esac 10803fi 10804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10805printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10806 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10807 CFLAGS="$xorg_testset_save_CFLAGS" 10808fi 10809 10810found="no" 10811 10812 if test $found = "no" ; then 10813 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10814 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10815 fi 10816 10817 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10818 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10819 fi 10820 10821 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10822 10823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10824printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10825 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10826 if eval test \${$cacheid+y} 10827then : 10828 printf %s "(cached) " >&6 10829else case e in #( 10830 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10831/* end confdefs.h. */ 10832int i; 10833int 10834main (void) 10835{ 10836 10837 ; 10838 return 0; 10839} 10840_ACEOF 10841if ac_fn_c_try_link "$LINENO" 10842then : 10843 eval $cacheid=yes 10844else case e in #( 10845 e) eval $cacheid=no ;; 10846esac 10847fi 10848rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10849 conftest$ac_exeext conftest.$ac_ext ;; 10850esac 10851fi 10852 10853 10854 CFLAGS="$xorg_testset_save_CFLAGS" 10855 10856 eval supported=\$$cacheid 10857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10858printf "%s\n" "$supported" >&6; } 10859 if test "$supported" = "yes" ; then 10860 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10861 found="yes" 10862 fi 10863 fi 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879xorg_testset_save_CFLAGS="$CFLAGS" 10880 10881if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10882 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10884printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10885if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10886then : 10887 printf %s "(cached) " >&6 10888else case e in #( 10889 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10890/* end confdefs.h. */ 10891int i; 10892_ACEOF 10893if ac_fn_c_try_compile "$LINENO" 10894then : 10895 xorg_cv_cc_flag_unknown_warning_option=yes 10896else case e in #( 10897 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10898esac 10899fi 10900rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10901esac 10902fi 10903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10904printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10905 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10906 CFLAGS="$xorg_testset_save_CFLAGS" 10907fi 10908 10909if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10910 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10911 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10912 fi 10913 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10915printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10916if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10917then : 10918 printf %s "(cached) " >&6 10919else case e in #( 10920 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10921/* end confdefs.h. */ 10922int i; 10923_ACEOF 10924if ac_fn_c_try_compile "$LINENO" 10925then : 10926 xorg_cv_cc_flag_unused_command_line_argument=yes 10927else case e in #( 10928 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10929esac 10930fi 10931rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10932esac 10933fi 10934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10935printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10936 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10937 CFLAGS="$xorg_testset_save_CFLAGS" 10938fi 10939 10940found="no" 10941 10942 if test $found = "no" ; then 10943 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10944 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10945 fi 10946 10947 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10948 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10949 fi 10950 10951 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10952 10953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10954printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10955 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10956 if eval test \${$cacheid+y} 10957then : 10958 printf %s "(cached) " >&6 10959else case e in #( 10960 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10961/* end confdefs.h. */ 10962int i; 10963int 10964main (void) 10965{ 10966 10967 ; 10968 return 0; 10969} 10970_ACEOF 10971if ac_fn_c_try_link "$LINENO" 10972then : 10973 eval $cacheid=yes 10974else case e in #( 10975 e) eval $cacheid=no ;; 10976esac 10977fi 10978rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10979 conftest$ac_exeext conftest.$ac_ext ;; 10980esac 10981fi 10982 10983 10984 CFLAGS="$xorg_testset_save_CFLAGS" 10985 10986 eval supported=\$$cacheid 10987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10988printf "%s\n" "$supported" >&6; } 10989 if test "$supported" = "yes" ; then 10990 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10991 found="yes" 10992 fi 10993 fi 10994 10995 10996fi 10997 10998 10999 11000 11001 11002 11003 11004 CWARNFLAGS="$BASE_CFLAGS" 11005 if test "x$GCC" = xyes ; then 11006 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 11007 fi 11008 11009 11010 11011 11012 11013 11014 11015 11016# Check whether --enable-strict-compilation was given. 11017if test ${enable_strict_compilation+y} 11018then : 11019 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 11020else case e in #( 11021 e) STRICT_COMPILE=no ;; 11022esac 11023fi 11024 11025 11026 11027 11028 11029 11030STRICT_CFLAGS="" 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044xorg_testset_save_CFLAGS="$CFLAGS" 11045 11046if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11047 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11049printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11050if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11051then : 11052 printf %s "(cached) " >&6 11053else case e in #( 11054 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11055/* end confdefs.h. */ 11056int i; 11057_ACEOF 11058if ac_fn_c_try_compile "$LINENO" 11059then : 11060 xorg_cv_cc_flag_unknown_warning_option=yes 11061else case e in #( 11062 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11063esac 11064fi 11065rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11066esac 11067fi 11068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11069printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11070 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11071 CFLAGS="$xorg_testset_save_CFLAGS" 11072fi 11073 11074if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11075 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11076 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11077 fi 11078 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11080printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11081if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11082then : 11083 printf %s "(cached) " >&6 11084else case e in #( 11085 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11086/* end confdefs.h. */ 11087int i; 11088_ACEOF 11089if ac_fn_c_try_compile "$LINENO" 11090then : 11091 xorg_cv_cc_flag_unused_command_line_argument=yes 11092else case e in #( 11093 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11094esac 11095fi 11096rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11097esac 11098fi 11099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11100printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11101 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11102 CFLAGS="$xorg_testset_save_CFLAGS" 11103fi 11104 11105found="no" 11106 11107 if test $found = "no" ; then 11108 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11109 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11110 fi 11111 11112 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11113 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11114 fi 11115 11116 CFLAGS="$CFLAGS -pedantic" 11117 11118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 11119printf %s "checking if $CC supports -pedantic... " >&6; } 11120 cacheid=xorg_cv_cc_flag__pedantic 11121 if eval test \${$cacheid+y} 11122then : 11123 printf %s "(cached) " >&6 11124else case e in #( 11125 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11126/* end confdefs.h. */ 11127int i; 11128int 11129main (void) 11130{ 11131 11132 ; 11133 return 0; 11134} 11135_ACEOF 11136if ac_fn_c_try_link "$LINENO" 11137then : 11138 eval $cacheid=yes 11139else case e in #( 11140 e) eval $cacheid=no ;; 11141esac 11142fi 11143rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11144 conftest$ac_exeext conftest.$ac_ext ;; 11145esac 11146fi 11147 11148 11149 CFLAGS="$xorg_testset_save_CFLAGS" 11150 11151 eval supported=\$$cacheid 11152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11153printf "%s\n" "$supported" >&6; } 11154 if test "$supported" = "yes" ; then 11155 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 11156 found="yes" 11157 fi 11158 fi 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174xorg_testset_save_CFLAGS="$CFLAGS" 11175 11176if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11177 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11179printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11180if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11181then : 11182 printf %s "(cached) " >&6 11183else case e in #( 11184 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11185/* end confdefs.h. */ 11186int i; 11187_ACEOF 11188if ac_fn_c_try_compile "$LINENO" 11189then : 11190 xorg_cv_cc_flag_unknown_warning_option=yes 11191else case e in #( 11192 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11193esac 11194fi 11195rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11196esac 11197fi 11198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11199printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11200 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11201 CFLAGS="$xorg_testset_save_CFLAGS" 11202fi 11203 11204if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11205 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11206 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11207 fi 11208 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11210printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11211if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11212then : 11213 printf %s "(cached) " >&6 11214else case e in #( 11215 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11216/* end confdefs.h. */ 11217int i; 11218_ACEOF 11219if ac_fn_c_try_compile "$LINENO" 11220then : 11221 xorg_cv_cc_flag_unused_command_line_argument=yes 11222else case e in #( 11223 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11224esac 11225fi 11226rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11227esac 11228fi 11229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11230printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11231 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11232 CFLAGS="$xorg_testset_save_CFLAGS" 11233fi 11234 11235found="no" 11236 11237 if test $found = "no" ; then 11238 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11239 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11240 fi 11241 11242 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11243 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11244 fi 11245 11246 CFLAGS="$CFLAGS -Werror" 11247 11248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 11249printf %s "checking if $CC supports -Werror... " >&6; } 11250 cacheid=xorg_cv_cc_flag__Werror 11251 if eval test \${$cacheid+y} 11252then : 11253 printf %s "(cached) " >&6 11254else case e in #( 11255 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11256/* end confdefs.h. */ 11257int i; 11258int 11259main (void) 11260{ 11261 11262 ; 11263 return 0; 11264} 11265_ACEOF 11266if ac_fn_c_try_link "$LINENO" 11267then : 11268 eval $cacheid=yes 11269else case e in #( 11270 e) eval $cacheid=no ;; 11271esac 11272fi 11273rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11274 conftest$ac_exeext conftest.$ac_ext ;; 11275esac 11276fi 11277 11278 11279 CFLAGS="$xorg_testset_save_CFLAGS" 11280 11281 eval supported=\$$cacheid 11282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11283printf "%s\n" "$supported" >&6; } 11284 if test "$supported" = "yes" ; then 11285 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 11286 found="yes" 11287 fi 11288 fi 11289 11290 if test $found = "no" ; then 11291 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11292 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11293 fi 11294 11295 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11296 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11297 fi 11298 11299 CFLAGS="$CFLAGS -errwarn" 11300 11301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 11302printf %s "checking if $CC supports -errwarn... " >&6; } 11303 cacheid=xorg_cv_cc_flag__errwarn 11304 if eval test \${$cacheid+y} 11305then : 11306 printf %s "(cached) " >&6 11307else case e in #( 11308 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11309/* end confdefs.h. */ 11310int i; 11311int 11312main (void) 11313{ 11314 11315 ; 11316 return 0; 11317} 11318_ACEOF 11319if ac_fn_c_try_link "$LINENO" 11320then : 11321 eval $cacheid=yes 11322else case e in #( 11323 e) eval $cacheid=no ;; 11324esac 11325fi 11326rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11327 conftest$ac_exeext conftest.$ac_ext ;; 11328esac 11329fi 11330 11331 11332 CFLAGS="$xorg_testset_save_CFLAGS" 11333 11334 eval supported=\$$cacheid 11335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11336printf "%s\n" "$supported" >&6; } 11337 if test "$supported" = "yes" ; then 11338 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 11339 found="yes" 11340 fi 11341 fi 11342 11343 11344 11345# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 11346# activate it with -Werror, so we add it here explicitly. 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360xorg_testset_save_CFLAGS="$CFLAGS" 11361 11362if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11363 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11365printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11366if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11367then : 11368 printf %s "(cached) " >&6 11369else case e in #( 11370 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11371/* end confdefs.h. */ 11372int i; 11373_ACEOF 11374if ac_fn_c_try_compile "$LINENO" 11375then : 11376 xorg_cv_cc_flag_unknown_warning_option=yes 11377else case e in #( 11378 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11379esac 11380fi 11381rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11382esac 11383fi 11384{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11385printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11386 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11387 CFLAGS="$xorg_testset_save_CFLAGS" 11388fi 11389 11390if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11391 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11392 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11393 fi 11394 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11396printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11397if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11398then : 11399 printf %s "(cached) " >&6 11400else case e in #( 11401 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11402/* end confdefs.h. */ 11403int i; 11404_ACEOF 11405if ac_fn_c_try_compile "$LINENO" 11406then : 11407 xorg_cv_cc_flag_unused_command_line_argument=yes 11408else case e in #( 11409 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11410esac 11411fi 11412rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11413esac 11414fi 11415{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11416printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11417 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11418 CFLAGS="$xorg_testset_save_CFLAGS" 11419fi 11420 11421found="no" 11422 11423 if test $found = "no" ; then 11424 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11425 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11426 fi 11427 11428 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11429 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11430 fi 11431 11432 CFLAGS="$CFLAGS -Werror=attributes" 11433 11434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11435printf %s "checking if $CC supports -Werror=attributes... " >&6; } 11436 cacheid=xorg_cv_cc_flag__Werror_attributes 11437 if eval test \${$cacheid+y} 11438then : 11439 printf %s "(cached) " >&6 11440else case e in #( 11441 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11442/* end confdefs.h. */ 11443int i; 11444int 11445main (void) 11446{ 11447 11448 ; 11449 return 0; 11450} 11451_ACEOF 11452if ac_fn_c_try_link "$LINENO" 11453then : 11454 eval $cacheid=yes 11455else case e in #( 11456 e) eval $cacheid=no ;; 11457esac 11458fi 11459rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11460 conftest$ac_exeext conftest.$ac_ext ;; 11461esac 11462fi 11463 11464 11465 CFLAGS="$xorg_testset_save_CFLAGS" 11466 11467 eval supported=\$$cacheid 11468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11469printf "%s\n" "$supported" >&6; } 11470 if test "$supported" = "yes" ; then 11471 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11472 found="yes" 11473 fi 11474 fi 11475 11476 11477 11478if test "x$STRICT_COMPILE" = "xyes"; then 11479 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11480 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11481fi 11482 11483 11484 11485 11486 11487 11488 11489 11490cat >>confdefs.h <<_ACEOF 11491#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11492_ACEOF 11493 11494 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11495 if test "x$PVM" = "x"; then 11496 PVM="0" 11497 fi 11498 11499printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11500 11501 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11502 if test "x$PVP" = "x"; then 11503 PVP="0" 11504 fi 11505 11506printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11507 11508 11509 11510CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11511mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11512|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11513touch \$(top_srcdir)/ChangeLog; \ 11514echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11515 11516 11517 11518 11519macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11520INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11521mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11522|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11523touch \$(top_srcdir)/INSTALL; \ 11524echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11525 11526 11527 11528 11529 11530 11531case $host_os in 11532 solaris*) 11533 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11534 # check for a man page file found in later versions that use 11535 # traditional section numbers instead 11536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11537printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11538if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11539then : 11540 printf %s "(cached) " >&6 11541else case e in #( 11542 e) test "$cross_compiling" = yes && 11543 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11544if test -r "/usr/share/man/man7/attributes.7"; then 11545 ac_cv_file__usr_share_man_man7_attributes_7=yes 11546else 11547 ac_cv_file__usr_share_man_man7_attributes_7=no 11548fi ;; 11549esac 11550fi 11551{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11552printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11553if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11554then : 11555 SYSV_MAN_SECTIONS=false 11556else case e in #( 11557 e) SYSV_MAN_SECTIONS=true ;; 11558esac 11559fi 11560 11561 ;; 11562 *) SYSV_MAN_SECTIONS=false ;; 11563esac 11564 11565if test x$APP_MAN_SUFFIX = x ; then 11566 APP_MAN_SUFFIX=1 11567fi 11568if test x$APP_MAN_DIR = x ; then 11569 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11570fi 11571 11572if test x$LIB_MAN_SUFFIX = x ; then 11573 LIB_MAN_SUFFIX=3 11574fi 11575if test x$LIB_MAN_DIR = x ; then 11576 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11577fi 11578 11579if test x$FILE_MAN_SUFFIX = x ; then 11580 case $SYSV_MAN_SECTIONS in 11581 true) FILE_MAN_SUFFIX=4 ;; 11582 *) FILE_MAN_SUFFIX=5 ;; 11583 esac 11584fi 11585if test x$FILE_MAN_DIR = x ; then 11586 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11587fi 11588 11589if test x$MISC_MAN_SUFFIX = x ; then 11590 case $SYSV_MAN_SECTIONS in 11591 true) MISC_MAN_SUFFIX=5 ;; 11592 *) MISC_MAN_SUFFIX=7 ;; 11593 esac 11594fi 11595if test x$MISC_MAN_DIR = x ; then 11596 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11597fi 11598 11599if test x$DRIVER_MAN_SUFFIX = x ; then 11600 case $SYSV_MAN_SECTIONS in 11601 true) DRIVER_MAN_SUFFIX=7 ;; 11602 *) DRIVER_MAN_SUFFIX=4 ;; 11603 esac 11604fi 11605if test x$DRIVER_MAN_DIR = x ; then 11606 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11607fi 11608 11609if test x$ADMIN_MAN_SUFFIX = x ; then 11610 case $SYSV_MAN_SECTIONS in 11611 true) ADMIN_MAN_SUFFIX=1m ;; 11612 *) ADMIN_MAN_SUFFIX=8 ;; 11613 esac 11614fi 11615if test x$ADMIN_MAN_DIR = x ; then 11616 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11617fi 11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632 11633XORG_MAN_PAGE="X Version 11" 11634 11635MAN_SUBSTS="\ 11636 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11637 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11638 -e 's|__xservername__|Xorg|g' \ 11639 -e 's|__xconfigfile__|xorg.conf|g' \ 11640 -e 's|__projectroot__|\$(prefix)|g' \ 11641 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11642 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11643 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11644 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11645 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11646 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11647 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11648 11649 11650 11651# Check whether --enable-silent-rules was given. 11652if test ${enable_silent_rules+y} 11653then : 11654 enableval=$enable_silent_rules; 11655fi 11656 11657case $enable_silent_rules in # ((( 11658 yes) AM_DEFAULT_VERBOSITY=0;; 11659 no) AM_DEFAULT_VERBOSITY=1;; 11660 *) AM_DEFAULT_VERBOSITY=0;; 11661esac 11662am_make=${MAKE-make} 11663{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11664printf %s "checking whether $am_make supports nested variables... " >&6; } 11665if test ${am_cv_make_support_nested_variables+y} 11666then : 11667 printf %s "(cached) " >&6 11668else case e in #( 11669 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 11670BAR0=false 11671BAR1=true 11672V=1 11673am__doit: 11674 @$(TRUE) 11675.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11676 am_cv_make_support_nested_variables=yes 11677else 11678 am_cv_make_support_nested_variables=no 11679fi ;; 11680esac 11681fi 11682{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11683printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 11684if test $am_cv_make_support_nested_variables = yes; then 11685 AM_V='$(V)' 11686 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11687else 11688 AM_V=$AM_DEFAULT_VERBOSITY 11689 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11690fi 11691AM_BACKSLASH='\' 11692 11693 11694 11695 11696# If both the C file and YACC are missing, the package cannot be build. 11697for ac_prog in 'bison -y' byacc 11698do 11699 # Extract the first word of "$ac_prog", so it can be a program name with args. 11700set dummy $ac_prog; ac_word=$2 11701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11702printf %s "checking for $ac_word... " >&6; } 11703if test ${ac_cv_prog_YACC+y} 11704then : 11705 printf %s "(cached) " >&6 11706else case e in #( 11707 e) if test -n "$YACC"; then 11708 ac_cv_prog_YACC="$YACC" # Let the user override the test. 11709else 11710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11711for as_dir in $PATH 11712do 11713 IFS=$as_save_IFS 11714 case $as_dir in #((( 11715 '') as_dir=./ ;; 11716 */) ;; 11717 *) as_dir=$as_dir/ ;; 11718 esac 11719 for ac_exec_ext in '' $ac_executable_extensions; do 11720 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11721 ac_cv_prog_YACC="$ac_prog" 11722 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11723 break 2 11724 fi 11725done 11726 done 11727IFS=$as_save_IFS 11728 11729fi ;; 11730esac 11731fi 11732YACC=$ac_cv_prog_YACC 11733if test -n "$YACC"; then 11734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 11735printf "%s\n" "$YACC" >&6; } 11736else 11737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11738printf "%s\n" "no" >&6; } 11739fi 11740 11741 11742 test -n "$YACC" && break 11743done 11744test -n "$YACC" || YACC="yacc" 11745 11746# Extract the first word of "$YACC", so it can be a program name with args. 11747set dummy $YACC; ac_word=$2 11748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11749printf %s "checking for $ac_word... " >&6; } 11750if test ${ac_cv_path_YACC_INST+y} 11751then : 11752 printf %s "(cached) " >&6 11753else case e in #( 11754 e) case $YACC_INST in 11755 [\\/]* | ?:[\\/]*) 11756 ac_cv_path_YACC_INST="$YACC_INST" # Let the user override the test with a path. 11757 ;; 11758 *) 11759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11760for as_dir in $PATH 11761do 11762 IFS=$as_save_IFS 11763 case $as_dir in #((( 11764 '') as_dir=./ ;; 11765 */) ;; 11766 *) as_dir=$as_dir/ ;; 11767 esac 11768 for ac_exec_ext in '' $ac_executable_extensions; do 11769 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11770 ac_cv_path_YACC_INST="$as_dir$ac_word$ac_exec_ext" 11771 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11772 break 2 11773 fi 11774done 11775 done 11776IFS=$as_save_IFS 11777 11778 ;; 11779esac ;; 11780esac 11781fi 11782YACC_INST=$ac_cv_path_YACC_INST 11783if test -n "$YACC_INST"; then 11784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC_INST" >&5 11785printf "%s\n" "$YACC_INST" >&6; } 11786else 11787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11788printf "%s\n" "no" >&6; } 11789fi 11790 11791 11792if test ! -f "$srcdir/xkbparse.c"; then 11793 if test -z "$YACC_INST"; then 11794 as_fn_error $? "yacc not found - unable to compile xkbparse.y" "$LINENO" 5 11795 fi 11796fi 11797 11798ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf" 11799if test "x$ac_cv_func_asprintf" = xyes 11800then : 11801 printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h 11802 11803fi 11804ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray" 11805if test "x$ac_cv_func_reallocarray" = xyes 11806then : 11807 printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h 11808 11809fi 11810ac_fn_c_check_func "$LINENO" "recallocarray" "ac_cv_func_recallocarray" 11811if test "x$ac_cv_func_recallocarray" = xyes 11812then : 11813 printf "%s\n" "#define HAVE_RECALLOCARRAY 1" >>confdefs.h 11814 11815fi 11816ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" 11817if test "x$ac_cv_func_strdup" = xyes 11818then : 11819 printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h 11820 11821fi 11822ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 11823if test "x$ac_cv_func_strcasecmp" = xyes 11824then : 11825 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h 11826 11827fi 11828 11829 11830# Checks for pkg-config packages 11831 11832pkg_failed=no 11833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XKBCOMP" >&5 11834printf %s "checking for XKBCOMP... " >&6; } 11835 11836if test -n "$XKBCOMP_CFLAGS"; then 11837 pkg_cv_XKBCOMP_CFLAGS="$XKBCOMP_CFLAGS" 11838 elif test -n "$PKG_CONFIG"; then 11839 if test -n "$PKG_CONFIG" && \ 11840 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xkbfile xproto >= 7.0.17\""; } >&5 11841 ($PKG_CONFIG --exists --print-errors "x11 xkbfile xproto >= 7.0.17") 2>&5 11842 ac_status=$? 11843 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11844 test $ac_status = 0; }; then 11845 pkg_cv_XKBCOMP_CFLAGS=`$PKG_CONFIG --cflags "x11 xkbfile xproto >= 7.0.17" 2>/dev/null` 11846 test "x$?" != "x0" && pkg_failed=yes 11847else 11848 pkg_failed=yes 11849fi 11850 else 11851 pkg_failed=untried 11852fi 11853if test -n "$XKBCOMP_LIBS"; then 11854 pkg_cv_XKBCOMP_LIBS="$XKBCOMP_LIBS" 11855 elif test -n "$PKG_CONFIG"; then 11856 if test -n "$PKG_CONFIG" && \ 11857 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xkbfile xproto >= 7.0.17\""; } >&5 11858 ($PKG_CONFIG --exists --print-errors "x11 xkbfile xproto >= 7.0.17") 2>&5 11859 ac_status=$? 11860 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11861 test $ac_status = 0; }; then 11862 pkg_cv_XKBCOMP_LIBS=`$PKG_CONFIG --libs "x11 xkbfile xproto >= 7.0.17" 2>/dev/null` 11863 test "x$?" != "x0" && pkg_failed=yes 11864else 11865 pkg_failed=yes 11866fi 11867 else 11868 pkg_failed=untried 11869fi 11870 11871 11872 11873if test $pkg_failed = yes; then 11874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11875printf "%s\n" "no" >&6; } 11876 11877if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11878 _pkg_short_errors_supported=yes 11879else 11880 _pkg_short_errors_supported=no 11881fi 11882 if test $_pkg_short_errors_supported = yes; then 11883 XKBCOMP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xkbfile xproto >= 7.0.17" 2>&1` 11884 else 11885 XKBCOMP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xkbfile xproto >= 7.0.17" 2>&1` 11886 fi 11887 # Put the nasty error message in config.log where it belongs 11888 echo "$XKBCOMP_PKG_ERRORS" >&5 11889 11890 as_fn_error $? "Package requirements (x11 xkbfile xproto >= 7.0.17) were not met: 11891 11892$XKBCOMP_PKG_ERRORS 11893 11894Consider adjusting the PKG_CONFIG_PATH environment variable if you 11895installed software in a non-standard prefix. 11896 11897Alternatively, you may set the environment variables XKBCOMP_CFLAGS 11898and XKBCOMP_LIBS to avoid the need to call pkg-config. 11899See the pkg-config man page for more details." "$LINENO" 5 11900elif test $pkg_failed = untried; then 11901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11902printf "%s\n" "no" >&6; } 11903 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 11904printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 11905as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11906is in your PATH or set the PKG_CONFIG environment variable to the full 11907path to pkg-config. 11908 11909Alternatively, you may set the environment variables XKBCOMP_CFLAGS 11910and XKBCOMP_LIBS to avoid the need to call pkg-config. 11911See the pkg-config man page for more details. 11912 11913To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11914See 'config.log' for more details" "$LINENO" 5; } 11915else 11916 XKBCOMP_CFLAGS=$pkg_cv_XKBCOMP_CFLAGS 11917 XKBCOMP_LIBS=$pkg_cv_XKBCOMP_LIBS 11918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11919printf "%s\n" "yes" >&6; } 11920 11921fi 11922 11923# Checks for typedefs, structures, and compiler characteristics. 11924# Check whether --enable-largefile was given. 11925if test ${enable_largefile+y} 11926then : 11927 enableval=$enable_largefile; 11928fi 11929if test "$enable_largefile,$enable_year2038" != no,no 11930then : 11931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5 11932printf %s "checking for $CC option to enable large file support... " >&6; } 11933if test ${ac_cv_sys_largefile_opts+y} 11934then : 11935 printf %s "(cached) " >&6 11936else case e in #( 11937 e) ac_save_CC="$CC" 11938 ac_opt_found=no 11939 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do 11940 if test x"$ac_opt" != x"none needed" 11941then : 11942 CC="$ac_save_CC $ac_opt" 11943fi 11944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11945/* end confdefs.h. */ 11946#include <sys/types.h> 11947#ifndef FTYPE 11948# define FTYPE off_t 11949#endif 11950 /* Check that FTYPE can represent 2**63 - 1 correctly. 11951 We can't simply define LARGE_FTYPE to be 9223372036854775807, 11952 since some C++ compilers masquerading as C compilers 11953 incorrectly reject 9223372036854775807. */ 11954#define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31)) 11955 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721 11956 && LARGE_FTYPE % 2147483647 == 1) 11957 ? 1 : -1]; 11958int 11959main (void) 11960{ 11961 11962 ; 11963 return 0; 11964} 11965_ACEOF 11966if ac_fn_c_try_compile "$LINENO" 11967then : 11968 if test x"$ac_opt" = x"none needed" 11969then : 11970 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t. 11971 CC="$CC -DFTYPE=ino_t" 11972 if ac_fn_c_try_compile "$LINENO" 11973then : 11974 11975else case e in #( 11976 e) CC="$CC -D_FILE_OFFSET_BITS=64" 11977 if ac_fn_c_try_compile "$LINENO" 11978then : 11979 ac_opt='-D_FILE_OFFSET_BITS=64' 11980fi 11981rm -f core conftest.err conftest.$ac_objext conftest.beam ;; 11982esac 11983fi 11984rm -f core conftest.err conftest.$ac_objext conftest.beam 11985fi 11986 ac_cv_sys_largefile_opts=$ac_opt 11987 ac_opt_found=yes 11988fi 11989rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11990 test $ac_opt_found = no || break 11991 done 11992 CC="$ac_save_CC" 11993 11994 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;; 11995esac 11996fi 11997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5 11998printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; } 11999 12000ac_have_largefile=yes 12001case $ac_cv_sys_largefile_opts in #( 12002 "none needed") : 12003 ;; #( 12004 "supported through gnulib") : 12005 ;; #( 12006 "support not detected") : 12007 ac_have_largefile=no ;; #( 12008 "-D_FILE_OFFSET_BITS=64") : 12009 12010printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h 12011 ;; #( 12012 "-D_LARGE_FILES=1") : 12013 12014printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h 12015 ;; #( 12016 "-n32") : 12017 CC="$CC -n32" ;; #( 12018 *) : 12019 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;; 12020esac 12021 12022if test "$enable_year2038" != no 12023then : 12024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5 12025printf %s "checking for $CC option for timestamps after 2038... " >&6; } 12026if test ${ac_cv_sys_year2038_opts+y} 12027then : 12028 printf %s "(cached) " >&6 12029else case e in #( 12030 e) ac_save_CPPFLAGS="$CPPFLAGS" 12031 ac_opt_found=no 12032 for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do 12033 if test x"$ac_opt" != x"none needed" 12034then : 12035 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt" 12036fi 12037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12038/* end confdefs.h. */ 12039 12040 #include <time.h> 12041 /* Check that time_t can represent 2**32 - 1 correctly. */ 12042 #define LARGE_TIME_T \\ 12043 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30))) 12044 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535 12045 && LARGE_TIME_T % 65537 == 0) 12046 ? 1 : -1]; 12047 12048int 12049main (void) 12050{ 12051 12052 ; 12053 return 0; 12054} 12055_ACEOF 12056if ac_fn_c_try_compile "$LINENO" 12057then : 12058 ac_cv_sys_year2038_opts="$ac_opt" 12059 ac_opt_found=yes 12060fi 12061rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12062 test $ac_opt_found = no || break 12063 done 12064 CPPFLAGS="$ac_save_CPPFLAGS" 12065 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;; 12066esac 12067fi 12068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5 12069printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; } 12070 12071ac_have_year2038=yes 12072case $ac_cv_sys_year2038_opts in #( 12073 "none needed") : 12074 ;; #( 12075 "support not detected") : 12076 ac_have_year2038=no ;; #( 12077 "-D_TIME_BITS=64") : 12078 12079printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h 12080 ;; #( 12081 "-D__MINGW_USE_VC2005_COMPAT") : 12082 12083printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h 12084 ;; #( 12085 "-U_USE_32_BIT_TIME_T"*) : 12086 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 12087printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 12088as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It 12089will stop working after mid-January 2038. Remove 12090_USE_32BIT_TIME_T from the compiler flags. 12091See 'config.log' for more details" "$LINENO" 5; } ;; #( 12092 *) : 12093 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;; 12094esac 12095 12096fi 12097 12098fi 12099 12100 12101# Check whether --with-xkb_config_root was given. 12102if test ${with_xkb_config_root+y} 12103then : 12104 withval=$with_xkb_config_root; XKBCONFIGROOT="$withval" 12105else case e in #( 12106 e) XKBCONFIGROOT='${datadir}/X11/xkb' ;; 12107esac 12108fi 12109 12110 12111 12112 12113ac_config_files="$ac_config_files Makefile man/Makefile xkbcomp.pc" 12114 12115cat >confcache <<\_ACEOF 12116# This file is a shell script that caches the results of configure 12117# tests run on this system so they can be shared between configure 12118# scripts and configure runs, see configure's option --config-cache. 12119# It is not useful on other systems. If it contains results you don't 12120# want to keep, you may remove or edit it. 12121# 12122# config.status only pays attention to the cache file if you give it 12123# the --recheck option to rerun configure. 12124# 12125# 'ac_cv_env_foo' variables (set or unset) will be overridden when 12126# loading this file, other *unset* 'ac_cv_foo' will be assigned the 12127# following values. 12128 12129_ACEOF 12130 12131# The following way of writing the cache mishandles newlines in values, 12132# but we know of no workaround that is simple, portable, and efficient. 12133# So, we kill variables containing newlines. 12134# Ultrix sh set writes to stderr and can't be redirected directly, 12135# and sets the high bit in the cache file unless we assign to the vars. 12136( 12137 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12138 eval ac_val=\$$ac_var 12139 case $ac_val in #( 12140 *${as_nl}*) 12141 case $ac_var in #( 12142 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 12143printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12144 esac 12145 case $ac_var in #( 12146 _ | IFS | as_nl) ;; #( 12147 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12148 *) { eval $ac_var=; unset $ac_var;} ;; 12149 esac ;; 12150 esac 12151 done 12152 12153 (set) 2>&1 | 12154 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12155 *${as_nl}ac_space=\ *) 12156 # 'set' does not quote correctly, so add quotes: double-quote 12157 # substitution turns \\\\ into \\, and sed turns \\ into \. 12158 sed -n \ 12159 "s/'/'\\\\''/g; 12160 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12161 ;; #( 12162 *) 12163 # 'set' quotes correctly as required by POSIX, so do not add quotes. 12164 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12165 ;; 12166 esac | 12167 sort 12168) | 12169 sed ' 12170 /^ac_cv_env_/b end 12171 t clear 12172 :clear 12173 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 12174 t end 12175 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12176 :end' >>confcache 12177if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12178 if test -w "$cache_file"; then 12179 if test "x$cache_file" != "x/dev/null"; then 12180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12181printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 12182 if test ! -f "$cache_file" || test -h "$cache_file"; then 12183 cat confcache >"$cache_file" 12184 else 12185 case $cache_file in #( 12186 */* | ?:*) 12187 mv -f confcache "$cache_file"$$ && 12188 mv -f "$cache_file"$$ "$cache_file" ;; #( 12189 *) 12190 mv -f confcache "$cache_file" ;; 12191 esac 12192 fi 12193 fi 12194 else 12195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12196printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 12197 fi 12198fi 12199rm -f confcache 12200 12201test "x$prefix" = xNONE && prefix=$ac_default_prefix 12202# Let make expand exec_prefix. 12203test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12204 12205DEFS=-DHAVE_CONFIG_H 12206 12207ac_libobjs= 12208ac_ltlibobjs= 12209U= 12210for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12211 # 1. Remove the extension, and $U if already installed. 12212 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12213 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 12214 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12215 # will be set to the directory where LIBOBJS objects are built. 12216 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12217 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12218done 12219LIBOBJS=$ac_libobjs 12220 12221LTLIBOBJS=$ac_ltlibobjs 12222 12223 12224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 12225printf %s "checking that generated files are newer than configure... " >&6; } 12226 if test -n "$am_sleep_pid"; then 12227 # Hide warnings about reused PIDs. 12228 wait $am_sleep_pid 2>/dev/null 12229 fi 12230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 12231printf "%s\n" "done" >&6; } 12232if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 12233 as_fn_error $? "conditional \"AMDEP\" was never defined. 12234Usually this means the macro was only invoked conditionally." "$LINENO" 5 12235fi 12236if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12237 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 12238Usually this means the macro was only invoked conditionally." "$LINENO" 5 12239fi 12240 if test -n "$EXEEXT"; then 12241 am__EXEEXT_TRUE= 12242 am__EXEEXT_FALSE='#' 12243else 12244 am__EXEEXT_TRUE='#' 12245 am__EXEEXT_FALSE= 12246fi 12247 12248# Check whether --enable-year2038 was given. 12249if test ${enable_year2038+y} 12250then : 12251 enableval=$enable_year2038; 12252fi 12253 12254 12255: "${CONFIG_STATUS=./config.status}" 12256ac_write_fail=0 12257ac_clean_files_save=$ac_clean_files 12258ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12259{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12260printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 12261as_write_fail=0 12262cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12263#! $SHELL 12264# Generated by $as_me. 12265# Run this file to recreate the current configuration. 12266# Compiler output produced by configure, useful for debugging 12267# configure, is in config.log if it exists. 12268 12269debug=false 12270ac_cs_recheck=false 12271ac_cs_silent=false 12272 12273SHELL=\${CONFIG_SHELL-$SHELL} 12274export SHELL 12275_ASEOF 12276cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 12277## -------------------- ## 12278## M4sh Initialization. ## 12279## -------------------- ## 12280 12281# Be more Bourne compatible 12282DUALCASE=1; export DUALCASE # for MKS sh 12283if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 12284then : 12285 emulate sh 12286 NULLCMD=: 12287 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12288 # is contrary to our usage. Disable this feature. 12289 alias -g '${1+"$@"}'='"$@"' 12290 setopt NO_GLOB_SUBST 12291else case e in #( 12292 e) case `(set -o) 2>/dev/null` in #( 12293 *posix*) : 12294 set -o posix ;; #( 12295 *) : 12296 ;; 12297esac ;; 12298esac 12299fi 12300 12301 12302 12303# Reset variables that may have inherited troublesome values from 12304# the environment. 12305 12306# IFS needs to be set, to space, tab, and newline, in precisely that order. 12307# (If _AS_PATH_WALK were called with IFS unset, it would have the 12308# side effect of setting IFS to empty, thus disabling word splitting.) 12309# Quoting is to prevent editors from complaining about space-tab. 12310as_nl=' 12311' 12312export as_nl 12313IFS=" "" $as_nl" 12314 12315PS1='$ ' 12316PS2='> ' 12317PS4='+ ' 12318 12319# Ensure predictable behavior from utilities with locale-dependent output. 12320LC_ALL=C 12321export LC_ALL 12322LANGUAGE=C 12323export LANGUAGE 12324 12325# We cannot yet rely on "unset" to work, but we need these variables 12326# to be unset--not just set to an empty or harmless value--now, to 12327# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 12328# also avoids known problems related to "unset" and subshell syntax 12329# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 12330for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 12331do eval test \${$as_var+y} \ 12332 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12333done 12334 12335# Ensure that fds 0, 1, and 2 are open. 12336if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 12337if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 12338if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 12339 12340# The user is always right. 12341if ${PATH_SEPARATOR+false} :; then 12342 PATH_SEPARATOR=: 12343 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12344 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12345 PATH_SEPARATOR=';' 12346 } 12347fi 12348 12349 12350# Find who we are. Look in the path if we contain no directory separator. 12351as_myself= 12352case $0 in #(( 12353 *[\\/]* ) as_myself=$0 ;; 12354 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12355for as_dir in $PATH 12356do 12357 IFS=$as_save_IFS 12358 case $as_dir in #((( 12359 '') as_dir=./ ;; 12360 */) ;; 12361 *) as_dir=$as_dir/ ;; 12362 esac 12363 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 12364 done 12365IFS=$as_save_IFS 12366 12367 ;; 12368esac 12369# We did not find ourselves, most probably we were run as 'sh COMMAND' 12370# in which case we are not to be found in the path. 12371if test "x$as_myself" = x; then 12372 as_myself=$0 12373fi 12374if test ! -f "$as_myself"; then 12375 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12376 exit 1 12377fi 12378 12379 12380 12381# as_fn_error STATUS ERROR [LINENO LOG_FD] 12382# ---------------------------------------- 12383# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12384# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12385# script with STATUS, using 1 if that was 0. 12386as_fn_error () 12387{ 12388 as_status=$1; test $as_status -eq 0 && as_status=1 12389 if test "$4"; then 12390 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12391 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12392 fi 12393 printf "%s\n" "$as_me: error: $2" >&2 12394 as_fn_exit $as_status 12395} # as_fn_error 12396 12397 12398# as_fn_set_status STATUS 12399# ----------------------- 12400# Set $? to STATUS, without forking. 12401as_fn_set_status () 12402{ 12403 return $1 12404} # as_fn_set_status 12405 12406# as_fn_exit STATUS 12407# ----------------- 12408# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12409as_fn_exit () 12410{ 12411 set +e 12412 as_fn_set_status $1 12413 exit $1 12414} # as_fn_exit 12415 12416# as_fn_unset VAR 12417# --------------- 12418# Portably unset VAR. 12419as_fn_unset () 12420{ 12421 { eval $1=; unset $1;} 12422} 12423as_unset=as_fn_unset 12424 12425# as_fn_append VAR VALUE 12426# ---------------------- 12427# Append the text in VALUE to the end of the definition contained in VAR. Take 12428# advantage of any shell optimizations that allow amortized linear growth over 12429# repeated appends, instead of the typical quadratic growth present in naive 12430# implementations. 12431if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 12432then : 12433 eval 'as_fn_append () 12434 { 12435 eval $1+=\$2 12436 }' 12437else case e in #( 12438 e) as_fn_append () 12439 { 12440 eval $1=\$$1\$2 12441 } ;; 12442esac 12443fi # as_fn_append 12444 12445# as_fn_arith ARG... 12446# ------------------ 12447# Perform arithmetic evaluation on the ARGs, and store the result in the 12448# global $as_val. Take advantage of shells that can avoid forks. The arguments 12449# must be portable across $(()) and expr. 12450if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 12451then : 12452 eval 'as_fn_arith () 12453 { 12454 as_val=$(( $* )) 12455 }' 12456else case e in #( 12457 e) as_fn_arith () 12458 { 12459 as_val=`expr "$@" || test $? -eq 1` 12460 } ;; 12461esac 12462fi # as_fn_arith 12463 12464 12465if expr a : '\(a\)' >/dev/null 2>&1 && 12466 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12467 as_expr=expr 12468else 12469 as_expr=false 12470fi 12471 12472if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12473 as_basename=basename 12474else 12475 as_basename=false 12476fi 12477 12478if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12479 as_dirname=dirname 12480else 12481 as_dirname=false 12482fi 12483 12484as_me=`$as_basename -- "$0" || 12485$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12486 X"$0" : 'X\(//\)$' \| \ 12487 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12488printf "%s\n" X/"$0" | 12489 sed '/^.*\/\([^/][^/]*\)\/*$/{ 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 12503# Avoid depending upon Character Ranges. 12504as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12505as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12506as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12507as_cr_digits='0123456789' 12508as_cr_alnum=$as_cr_Letters$as_cr_digits 12509 12510 12511# Determine whether it's possible to make 'echo' print without a newline. 12512# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 12513# for compatibility with existing Makefiles. 12514ECHO_C= ECHO_N= ECHO_T= 12515case `echo -n x` in #((((( 12516-n*) 12517 case `echo 'xy\c'` in 12518 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12519 xy) ECHO_C='\c';; 12520 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12521 ECHO_T=' ';; 12522 esac;; 12523*) 12524 ECHO_N='-n';; 12525esac 12526 12527# For backward compatibility with old third-party macros, we provide 12528# the shell variables $as_echo and $as_echo_n. New code should use 12529# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 12530as_echo='printf %s\n' 12531as_echo_n='printf %s' 12532 12533rm -f conf$$ conf$$.exe conf$$.file 12534if test -d conf$$.dir; then 12535 rm -f conf$$.dir/conf$$.file 12536else 12537 rm -f conf$$.dir 12538 mkdir conf$$.dir 2>/dev/null 12539fi 12540if (echo >conf$$.file) 2>/dev/null; then 12541 if ln -s conf$$.file conf$$ 2>/dev/null; then 12542 as_ln_s='ln -s' 12543 # ... but there are two gotchas: 12544 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 12545 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 12546 # In both cases, we have to default to 'cp -pR'. 12547 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12548 as_ln_s='cp -pR' 12549 elif ln conf$$.file conf$$ 2>/dev/null; then 12550 as_ln_s=ln 12551 else 12552 as_ln_s='cp -pR' 12553 fi 12554else 12555 as_ln_s='cp -pR' 12556fi 12557rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12558rmdir conf$$.dir 2>/dev/null 12559 12560 12561# as_fn_mkdir_p 12562# ------------- 12563# Create "$as_dir" as a directory, including parents if necessary. 12564as_fn_mkdir_p () 12565{ 12566 12567 case $as_dir in #( 12568 -*) as_dir=./$as_dir;; 12569 esac 12570 test -d "$as_dir" || eval $as_mkdir_p || { 12571 as_dirs= 12572 while :; do 12573 case $as_dir in #( 12574 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12575 *) as_qdir=$as_dir;; 12576 esac 12577 as_dirs="'$as_qdir' $as_dirs" 12578 as_dir=`$as_dirname -- "$as_dir" || 12579$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12580 X"$as_dir" : 'X\(//\)[^/]' \| \ 12581 X"$as_dir" : 'X\(//\)$' \| \ 12582 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12583printf "%s\n" X"$as_dir" | 12584 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12585 s//\1/ 12586 q 12587 } 12588 /^X\(\/\/\)[^/].*/{ 12589 s//\1/ 12590 q 12591 } 12592 /^X\(\/\/\)$/{ 12593 s//\1/ 12594 q 12595 } 12596 /^X\(\/\).*/{ 12597 s//\1/ 12598 q 12599 } 12600 s/.*/./; q'` 12601 test -d "$as_dir" && break 12602 done 12603 test -z "$as_dirs" || eval "mkdir $as_dirs" 12604 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12605 12606 12607} # as_fn_mkdir_p 12608if mkdir -p . 2>/dev/null; then 12609 as_mkdir_p='mkdir -p "$as_dir"' 12610else 12611 test -d ./-p && rmdir ./-p 12612 as_mkdir_p=false 12613fi 12614 12615 12616# as_fn_executable_p FILE 12617# ----------------------- 12618# Test if FILE is an executable regular file. 12619as_fn_executable_p () 12620{ 12621 test -f "$1" && test -x "$1" 12622} # as_fn_executable_p 12623as_test_x='test -x' 12624as_executable_p=as_fn_executable_p 12625 12626# Sed expression to map a string onto a valid CPP name. 12627as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 12628as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 12629 12630# Sed expression to map a string onto a valid variable name. 12631as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 12632as_tr_sh="eval sed '$as_sed_sh'" # deprecated 12633 12634 12635exec 6>&1 12636## ----------------------------------- ## 12637## Main body of $CONFIG_STATUS script. ## 12638## ----------------------------------- ## 12639_ASEOF 12640test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12641 12642cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12643# Save the log message, to keep $0 and so on meaningful, and to 12644# report actual input values of CONFIG_FILES etc. instead of their 12645# values after options handling. 12646ac_log=" 12647This file was extended by xkbcomp $as_me 1.4.7, which was 12648generated by GNU Autoconf 2.72. Invocation command line was 12649 12650 CONFIG_FILES = $CONFIG_FILES 12651 CONFIG_HEADERS = $CONFIG_HEADERS 12652 CONFIG_LINKS = $CONFIG_LINKS 12653 CONFIG_COMMANDS = $CONFIG_COMMANDS 12654 $ $0 $@ 12655 12656on `(hostname || uname -n) 2>/dev/null | sed 1q` 12657" 12658 12659_ACEOF 12660 12661case $ac_config_files in *" 12662"*) set x $ac_config_files; shift; ac_config_files=$*;; 12663esac 12664 12665case $ac_config_headers in *" 12666"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12667esac 12668 12669 12670cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12671# Files that config.status was made for. 12672config_files="$ac_config_files" 12673config_headers="$ac_config_headers" 12674config_commands="$ac_config_commands" 12675 12676_ACEOF 12677 12678cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12679ac_cs_usage="\ 12680'$as_me' instantiates files and other configuration actions 12681from templates according to the current configuration. Unless the files 12682and actions are specified as TAGs, all are instantiated by default. 12683 12684Usage: $0 [OPTION]... [TAG]... 12685 12686 -h, --help print this help, then exit 12687 -V, --version print version number and configuration settings, then exit 12688 --config print configuration, then exit 12689 -q, --quiet, --silent 12690 do not print progress messages 12691 -d, --debug don't remove temporary files 12692 --recheck update $as_me by reconfiguring in the same conditions 12693 --file=FILE[:TEMPLATE] 12694 instantiate the configuration file FILE 12695 --header=FILE[:TEMPLATE] 12696 instantiate the configuration header FILE 12697 12698Configuration files: 12699$config_files 12700 12701Configuration headers: 12702$config_headers 12703 12704Configuration commands: 12705$config_commands 12706 12707Report bugs to <https://gitlab.freedesktop.org/xorg/app/xkbcomp/-/issues>." 12708 12709_ACEOF 12710ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 12711ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 12712cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12713ac_cs_config='$ac_cs_config_escaped' 12714ac_cs_version="\\ 12715xkbcomp config.status 1.4.7 12716configured by $0, generated by GNU Autoconf 2.72, 12717 with options \\"\$ac_cs_config\\" 12718 12719Copyright (C) 2023 Free Software Foundation, Inc. 12720This config.status script is free software; the Free Software Foundation 12721gives unlimited permission to copy, distribute and modify it." 12722 12723ac_pwd='$ac_pwd' 12724srcdir='$srcdir' 12725INSTALL='$INSTALL' 12726MKDIR_P='$MKDIR_P' 12727AWK='$AWK' 12728test -n "\$AWK" || AWK=awk 12729_ACEOF 12730 12731cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12732# The default lists apply if the user does not specify any file. 12733ac_need_defaults=: 12734while test $# != 0 12735do 12736 case $1 in 12737 --*=?*) 12738 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12739 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12740 ac_shift=: 12741 ;; 12742 --*=) 12743 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12744 ac_optarg= 12745 ac_shift=: 12746 ;; 12747 *) 12748 ac_option=$1 12749 ac_optarg=$2 12750 ac_shift=shift 12751 ;; 12752 esac 12753 12754 case $ac_option in 12755 # Handling of the options. 12756 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12757 ac_cs_recheck=: ;; 12758 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12759 printf "%s\n" "$ac_cs_version"; exit ;; 12760 --config | --confi | --conf | --con | --co | --c ) 12761 printf "%s\n" "$ac_cs_config"; exit ;; 12762 --debug | --debu | --deb | --de | --d | -d ) 12763 debug=: ;; 12764 --file | --fil | --fi | --f ) 12765 $ac_shift 12766 case $ac_optarg in 12767 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12768 '') as_fn_error $? "missing file argument" ;; 12769 esac 12770 as_fn_append CONFIG_FILES " '$ac_optarg'" 12771 ac_need_defaults=false;; 12772 --header | --heade | --head | --hea ) 12773 $ac_shift 12774 case $ac_optarg in 12775 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12776 esac 12777 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12778 ac_need_defaults=false;; 12779 --he | --h) 12780 # Conflict between --help and --header 12781 as_fn_error $? "ambiguous option: '$1' 12782Try '$0 --help' for more information.";; 12783 --help | --hel | -h ) 12784 printf "%s\n" "$ac_cs_usage"; exit ;; 12785 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12786 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12787 ac_cs_silent=: ;; 12788 12789 # This is an error. 12790 -*) as_fn_error $? "unrecognized option: '$1' 12791Try '$0 --help' for more information." ;; 12792 12793 *) as_fn_append ac_config_targets " $1" 12794 ac_need_defaults=false ;; 12795 12796 esac 12797 shift 12798done 12799 12800ac_configure_extra_args= 12801 12802if $ac_cs_silent; then 12803 exec 6>/dev/null 12804 ac_configure_extra_args="$ac_configure_extra_args --silent" 12805fi 12806 12807_ACEOF 12808cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12809if \$ac_cs_recheck; then 12810 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12811 shift 12812 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 12813 CONFIG_SHELL='$SHELL' 12814 export CONFIG_SHELL 12815 exec "\$@" 12816fi 12817 12818_ACEOF 12819cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12820exec 5>>config.log 12821{ 12822 echo 12823 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12824## Running $as_me. ## 12825_ASBOX 12826 printf "%s\n" "$ac_log" 12827} >&5 12828 12829_ACEOF 12830cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12831# 12832# INIT-COMMANDS 12833# 12834AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 12835 12836_ACEOF 12837 12838cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12839 12840# Handling of arguments. 12841for ac_config_target in $ac_config_targets 12842do 12843 case $ac_config_target in 12844 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12845 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12846 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12847 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12848 "xkbcomp.pc") CONFIG_FILES="$CONFIG_FILES xkbcomp.pc" ;; 12849 12850 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 12851 esac 12852done 12853 12854 12855# If the user did not use the arguments to specify the items to instantiate, 12856# then the envvar interface is used. Set only those that are not. 12857# We use the long form for the default assignment because of an extremely 12858# bizarre bug on SunOS 4.1.3. 12859if $ac_need_defaults; then 12860 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 12861 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 12862 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 12863fi 12864 12865# Have a temporary directory for convenience. Make it in the build tree 12866# simply because there is no reason against having it here, and in addition, 12867# creating and moving files from /tmp can sometimes cause problems. 12868# Hook for its removal unless debugging. 12869# Note that there is a small window in which the directory will not be cleaned: 12870# after its creation but before its name has been assigned to '$tmp'. 12871$debug || 12872{ 12873 tmp= ac_tmp= 12874 trap 'exit_status=$? 12875 : "${ac_tmp:=$tmp}" 12876 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12877' 0 12878 trap 'as_fn_exit 1' 1 2 13 15 12879} 12880# Create a (secure) tmp directory for tmp files. 12881 12882{ 12883 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12884 test -d "$tmp" 12885} || 12886{ 12887 tmp=./conf$$-$RANDOM 12888 (umask 077 && mkdir "$tmp") 12889} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12890ac_tmp=$tmp 12891 12892# Set up the scripts for CONFIG_FILES section. 12893# No need to generate them if there are no CONFIG_FILES. 12894# This happens for instance with './config.status config.h'. 12895if test -n "$CONFIG_FILES"; then 12896 12897 12898ac_cr=`echo X | tr X '\015'` 12899# On cygwin, bash can eat \r inside `` if the user requested igncr. 12900# But we know of no other shell where ac_cr would be empty at this 12901# point, so we can use a bashism as a fallback. 12902if test "x$ac_cr" = x; then 12903 eval ac_cr=\$\'\\r\' 12904fi 12905ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12906if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12907 ac_cs_awk_cr='\\r' 12908else 12909 ac_cs_awk_cr=$ac_cr 12910fi 12911 12912echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12913_ACEOF 12914 12915 12916{ 12917 echo "cat >conf$$subs.awk <<_ACEOF" && 12918 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12919 echo "_ACEOF" 12920} >conf$$subs.sh || 12921 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12922ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12923ac_delim='%!_!# ' 12924for ac_last_try in false false false false false :; do 12925 . ./conf$$subs.sh || 12926 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12927 12928 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12929 if test $ac_delim_n = $ac_delim_num; then 12930 break 12931 elif $ac_last_try; then 12932 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12933 else 12934 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12935 fi 12936done 12937rm -f conf$$subs.sh 12938 12939cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12940cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12941_ACEOF 12942sed -n ' 12943h 12944s/^/S["/; s/!.*/"]=/ 12945p 12946g 12947s/^[^!]*!// 12948:repl 12949t repl 12950s/'"$ac_delim"'$// 12951t delim 12952:nl 12953h 12954s/\(.\{148\}\)..*/\1/ 12955t more1 12956s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12957p 12958n 12959b repl 12960:more1 12961s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12962p 12963g 12964s/.\{148\}// 12965t nl 12966:delim 12967h 12968s/\(.\{148\}\)..*/\1/ 12969t more2 12970s/["\\]/\\&/g; s/^/"/; s/$/"/ 12971p 12972b 12973:more2 12974s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12975p 12976g 12977s/.\{148\}// 12978t delim 12979' <conf$$subs.awk | sed ' 12980/^[^""]/{ 12981 N 12982 s/\n// 12983} 12984' >>$CONFIG_STATUS || ac_write_fail=1 12985rm -f conf$$subs.awk 12986cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12987_ACAWK 12988cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12989 for (key in S) S_is_set[key] = 1 12990 FS = "" 12991 12992} 12993{ 12994 line = $ 0 12995 nfields = split(line, field, "@") 12996 substed = 0 12997 len = length(field[1]) 12998 for (i = 2; i < nfields; i++) { 12999 key = field[i] 13000 keylen = length(key) 13001 if (S_is_set[key]) { 13002 value = S[key] 13003 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 13004 len += length(value) + length(field[++i]) 13005 substed = 1 13006 } else 13007 len += 1 + keylen 13008 } 13009 13010 print line 13011} 13012 13013_ACAWK 13014_ACEOF 13015cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13016if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 13017 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 13018else 13019 cat 13020fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 13021 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 13022_ACEOF 13023 13024# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 13025# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 13026# trailing colons and then remove the whole line if VPATH becomes empty 13027# (actually we leave an empty line to preserve line numbers). 13028if test "x$srcdir" = x.; then 13029 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 13030h 13031s/// 13032s/^/:/ 13033s/[ ]*$/:/ 13034s/:\$(srcdir):/:/g 13035s/:\${srcdir}:/:/g 13036s/:@srcdir@:/:/g 13037s/^:*// 13038s/:*$// 13039x 13040s/\(=[ ]*\).*/\1/ 13041G 13042s/\n// 13043s/^[^=]*=[ ]*$// 13044}' 13045fi 13046 13047cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13048fi # test -n "$CONFIG_FILES" 13049 13050# Set up the scripts for CONFIG_HEADERS section. 13051# No need to generate them if there are no CONFIG_HEADERS. 13052# This happens for instance with './config.status Makefile'. 13053if test -n "$CONFIG_HEADERS"; then 13054cat >"$ac_tmp/defines.awk" <<\_ACAWK || 13055BEGIN { 13056_ACEOF 13057 13058# Transform confdefs.h into an awk script 'defines.awk', embedded as 13059# here-document in config.status, that substitutes the proper values into 13060# config.h.in to produce config.h. 13061 13062# Create a delimiter string that does not exist in confdefs.h, to ease 13063# handling of long lines. 13064ac_delim='%!_!# ' 13065for ac_last_try in false false :; do 13066 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 13067 if test -z "$ac_tt"; then 13068 break 13069 elif $ac_last_try; then 13070 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 13071 else 13072 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13073 fi 13074done 13075 13076# For the awk script, D is an array of macro values keyed by name, 13077# likewise P contains macro parameters if any. Preserve backslash 13078# newline sequences. 13079 13080ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 13081sed -n ' 13082s/.\{148\}/&'"$ac_delim"'/g 13083t rset 13084:rset 13085s/^[ ]*#[ ]*define[ ][ ]*/ / 13086t def 13087d 13088:def 13089s/\\$// 13090t bsnl 13091s/["\\]/\\&/g 13092s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13093D["\1"]=" \3"/p 13094s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 13095d 13096:bsnl 13097s/["\\]/\\&/g 13098s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13099D["\1"]=" \3\\\\\\n"\\/p 13100t cont 13101s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 13102t cont 13103d 13104:cont 13105n 13106s/.\{148\}/&'"$ac_delim"'/g 13107t clear 13108:clear 13109s/\\$// 13110t bsnlc 13111s/["\\]/\\&/g; s/^/"/; s/$/"/p 13112d 13113:bsnlc 13114s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 13115b cont 13116' <confdefs.h | sed ' 13117s/'"$ac_delim"'/"\\\ 13118"/g' >>$CONFIG_STATUS || ac_write_fail=1 13119 13120cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13121 for (key in D) D_is_set[key] = 1 13122 FS = "" 13123} 13124/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 13125 line = \$ 0 13126 split(line, arg, " ") 13127 if (arg[1] == "#") { 13128 defundef = arg[2] 13129 mac1 = arg[3] 13130 } else { 13131 defundef = substr(arg[1], 2) 13132 mac1 = arg[2] 13133 } 13134 split(mac1, mac2, "(") #) 13135 macro = mac2[1] 13136 prefix = substr(line, 1, index(line, defundef) - 1) 13137 if (D_is_set[macro]) { 13138 # Preserve the white space surrounding the "#". 13139 print prefix "define", macro P[macro] D[macro] 13140 next 13141 } else { 13142 # Replace #undef with comments. This is necessary, for example, 13143 # in the case of _POSIX_SOURCE, which is predefined and required 13144 # on some systems where configure will not decide to define it. 13145 if (defundef == "undef") { 13146 print "/*", prefix defundef, macro, "*/" 13147 next 13148 } 13149 } 13150} 13151{ print } 13152_ACAWK 13153_ACEOF 13154cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13155 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 13156fi # test -n "$CONFIG_HEADERS" 13157 13158 13159eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 13160shift 13161for ac_tag 13162do 13163 case $ac_tag in 13164 :[FHLC]) ac_mode=$ac_tag; continue;; 13165 esac 13166 case $ac_mode$ac_tag in 13167 :[FHL]*:*);; 13168 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 13169 :[FH]-) ac_tag=-:-;; 13170 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13171 esac 13172 ac_save_IFS=$IFS 13173 IFS=: 13174 set x $ac_tag 13175 IFS=$ac_save_IFS 13176 shift 13177 ac_file=$1 13178 shift 13179 13180 case $ac_mode in 13181 :L) ac_source=$1;; 13182 :[FH]) 13183 ac_file_inputs= 13184 for ac_f 13185 do 13186 case $ac_f in 13187 -) ac_f="$ac_tmp/stdin";; 13188 *) # Look for the file first in the build tree, then in the source tree 13189 # (if the path is not absolute). The absolute path cannot be DOS-style, 13190 # because $ac_f cannot contain ':'. 13191 test -f "$ac_f" || 13192 case $ac_f in 13193 [\\/$]*) false;; 13194 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13195 esac || 13196 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 13197 esac 13198 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13199 as_fn_append ac_file_inputs " '$ac_f'" 13200 done 13201 13202 # Let's still pretend it is 'configure' which instantiates (i.e., don't 13203 # use $as_me), people would be surprised to read: 13204 # /* config.h. Generated by config.status. */ 13205 configure_input='Generated from '` 13206 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13207 `' by configure.' 13208 if test x"$ac_file" != x-; then 13209 configure_input="$ac_file. $configure_input" 13210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13211printf "%s\n" "$as_me: creating $ac_file" >&6;} 13212 fi 13213 # Neutralize special characters interpreted by sed in replacement strings. 13214 case $configure_input in #( 13215 *\&* | *\|* | *\\* ) 13216 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 13217 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13218 *) ac_sed_conf_input=$configure_input;; 13219 esac 13220 13221 case $ac_tag in 13222 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 13223 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 13224 esac 13225 ;; 13226 esac 13227 13228 ac_dir=`$as_dirname -- "$ac_file" || 13229$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13230 X"$ac_file" : 'X\(//\)[^/]' \| \ 13231 X"$ac_file" : 'X\(//\)$' \| \ 13232 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13233printf "%s\n" X"$ac_file" | 13234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13235 s//\1/ 13236 q 13237 } 13238 /^X\(\/\/\)[^/].*/{ 13239 s//\1/ 13240 q 13241 } 13242 /^X\(\/\/\)$/{ 13243 s//\1/ 13244 q 13245 } 13246 /^X\(\/\).*/{ 13247 s//\1/ 13248 q 13249 } 13250 s/.*/./; q'` 13251 as_dir="$ac_dir"; as_fn_mkdir_p 13252 ac_builddir=. 13253 13254case "$ac_dir" in 13255.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13256*) 13257 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 13258 # A ".." for each directory in $ac_dir_suffix. 13259 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13260 case $ac_top_builddir_sub in 13261 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13262 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13263 esac ;; 13264esac 13265ac_abs_top_builddir=$ac_pwd 13266ac_abs_builddir=$ac_pwd$ac_dir_suffix 13267# for backward compatibility: 13268ac_top_builddir=$ac_top_build_prefix 13269 13270case $srcdir in 13271 .) # We are building in place. 13272 ac_srcdir=. 13273 ac_top_srcdir=$ac_top_builddir_sub 13274 ac_abs_top_srcdir=$ac_pwd ;; 13275 [\\/]* | ?:[\\/]* ) # Absolute name. 13276 ac_srcdir=$srcdir$ac_dir_suffix; 13277 ac_top_srcdir=$srcdir 13278 ac_abs_top_srcdir=$srcdir ;; 13279 *) # Relative name. 13280 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13281 ac_top_srcdir=$ac_top_build_prefix$srcdir 13282 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13283esac 13284ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13285 13286 13287 case $ac_mode in 13288 :F) 13289 # 13290 # CONFIG_FILE 13291 # 13292 13293 case $INSTALL in 13294 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13295 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13296 esac 13297 ac_MKDIR_P=$MKDIR_P 13298 case $MKDIR_P in 13299 [\\/$]* | ?:[\\/]* ) ;; 13300 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 13301 esac 13302_ACEOF 13303 13304cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13305# If the template does not know about datarootdir, expand it. 13306# FIXME: This hack should be removed a few years after 2.60. 13307ac_datarootdir_hack=; ac_datarootdir_seen= 13308ac_sed_dataroot=' 13309/datarootdir/ { 13310 p 13311 q 13312} 13313/@datadir@/p 13314/@docdir@/p 13315/@infodir@/p 13316/@localedir@/p 13317/@mandir@/p' 13318case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13319*datarootdir*) ac_datarootdir_seen=yes;; 13320*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13322printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13323_ACEOF 13324cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13325 ac_datarootdir_hack=' 13326 s&@datadir@&$datadir&g 13327 s&@docdir@&$docdir&g 13328 s&@infodir@&$infodir&g 13329 s&@localedir@&$localedir&g 13330 s&@mandir@&$mandir&g 13331 s&\\\${datarootdir}&$datarootdir&g' ;; 13332esac 13333_ACEOF 13334 13335# Neutralize VPATH when '$srcdir' = '.'. 13336# Shell code in configure.ac might set extrasub. 13337# FIXME: do we really want to maintain this feature? 13338cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13339ac_sed_extra="$ac_vpsub 13340$extrasub 13341_ACEOF 13342cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13343:t 13344/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13345s|@configure_input@|$ac_sed_conf_input|;t t 13346s&@top_builddir@&$ac_top_builddir_sub&;t t 13347s&@top_build_prefix@&$ac_top_build_prefix&;t t 13348s&@srcdir@&$ac_srcdir&;t t 13349s&@abs_srcdir@&$ac_abs_srcdir&;t t 13350s&@top_srcdir@&$ac_top_srcdir&;t t 13351s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13352s&@builddir@&$ac_builddir&;t t 13353s&@abs_builddir@&$ac_abs_builddir&;t t 13354s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13355s&@INSTALL@&$ac_INSTALL&;t t 13356s&@MKDIR_P@&$ac_MKDIR_P&;t t 13357$ac_datarootdir_hack 13358" 13359eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 13360 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13361 13362test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13363 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 13364 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 13365 "$ac_tmp/out"`; test -z "$ac_out"; } && 13366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 13367which seems to be undefined. Please make sure it is defined" >&5 13368printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 13369which seems to be undefined. Please make sure it is defined" >&2;} 13370 13371 rm -f "$ac_tmp/stdin" 13372 case $ac_file in 13373 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 13374 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 13375 esac \ 13376 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13377 ;; 13378 :H) 13379 # 13380 # CONFIG_HEADER 13381 # 13382 if test x"$ac_file" != x-; then 13383 { 13384 printf "%s\n" "/* $configure_input */" >&1 \ 13385 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 13386 } >"$ac_tmp/config.h" \ 13387 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13388 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 13389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13390printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 13391 else 13392 rm -f "$ac_file" 13393 mv "$ac_tmp/config.h" "$ac_file" \ 13394 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13395 fi 13396 else 13397 printf "%s\n" "/* $configure_input */" >&1 \ 13398 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 13399 || as_fn_error $? "could not create -" "$LINENO" 5 13400 fi 13401# Compute "$ac_file"'s index in $config_headers. 13402_am_arg="$ac_file" 13403_am_stamp_count=1 13404for _am_header in $config_headers :; do 13405 case $_am_header in 13406 $_am_arg | $_am_arg:* ) 13407 break ;; 13408 * ) 13409 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13410 esac 13411done 13412echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 13413$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13414 X"$_am_arg" : 'X\(//\)[^/]' \| \ 13415 X"$_am_arg" : 'X\(//\)$' \| \ 13416 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 13417printf "%s\n" X"$_am_arg" | 13418 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13419 s//\1/ 13420 q 13421 } 13422 /^X\(\/\/\)[^/].*/{ 13423 s//\1/ 13424 q 13425 } 13426 /^X\(\/\/\)$/{ 13427 s//\1/ 13428 q 13429 } 13430 /^X\(\/\).*/{ 13431 s//\1/ 13432 q 13433 } 13434 s/.*/./; q'`/stamp-h$_am_stamp_count 13435 ;; 13436 13437 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13438printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 13439 ;; 13440 esac 13441 13442 13443 case $ac_file$ac_mode in 13444 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13445 # Older Autoconf quotes --file arguments for eval, but not when files 13446 # are listed without --file. Let's play safe and only enable the eval 13447 # if we detect the quoting. 13448 # TODO: see whether this extra hack can be removed once we start 13449 # requiring Autoconf 2.70 or later. 13450 case $CONFIG_FILES in #( 13451 *\'*) : 13452 eval set x "$CONFIG_FILES" ;; #( 13453 *) : 13454 set x $CONFIG_FILES ;; #( 13455 *) : 13456 ;; 13457esac 13458 shift 13459 # Used to flag and report bootstrapping failures. 13460 am_rc=0 13461 for am_mf 13462 do 13463 # Strip MF so we end up with the name of the file. 13464 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 13465 # Check whether this is an Automake generated Makefile which includes 13466 # dependency-tracking related rules and includes. 13467 # Grep'ing the whole file directly is not great: AIX grep has a line 13468 # limit of 2048, but all sed's we know have understand at least 4000. 13469 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 13470 || continue 13471 am_dirpart=`$as_dirname -- "$am_mf" || 13472$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13473 X"$am_mf" : 'X\(//\)[^/]' \| \ 13474 X"$am_mf" : 'X\(//\)$' \| \ 13475 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13476printf "%s\n" X"$am_mf" | 13477 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13478 s//\1/ 13479 q 13480 } 13481 /^X\(\/\/\)[^/].*/{ 13482 s//\1/ 13483 q 13484 } 13485 /^X\(\/\/\)$/{ 13486 s//\1/ 13487 q 13488 } 13489 /^X\(\/\).*/{ 13490 s//\1/ 13491 q 13492 } 13493 s/.*/./; q'` 13494 am_filepart=`$as_basename -- "$am_mf" || 13495$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 13496 X"$am_mf" : 'X\(//\)$' \| \ 13497 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13498printf "%s\n" X/"$am_mf" | 13499 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13500 s//\1/ 13501 q 13502 } 13503 /^X\/\(\/\/\)$/{ 13504 s//\1/ 13505 q 13506 } 13507 /^X\/\(\/\).*/{ 13508 s//\1/ 13509 q 13510 } 13511 s/.*/./; q'` 13512 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 13513 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13514 | $MAKE -f - am--depfiles" >&5 13515 (cd "$am_dirpart" \ 13516 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13517 | $MAKE -f - am--depfiles) >&5 2>&5 13518 ac_status=$? 13519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13520 (exit $ac_status); } || am_rc=$? 13521 done 13522 if test $am_rc -ne 0; then 13523 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 13524printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 13525as_fn_error $? "Something went wrong bootstrapping makefile fragments 13526 for automatic dependency tracking. If GNU make was not used, consider 13527 re-running the configure script with MAKE=\"gmake\" (or whatever is 13528 necessary). You can also try re-running configure with the 13529 '--disable-dependency-tracking' option to at least be able to build 13530 the package (albeit without support for automatic dependency tracking). 13531See 'config.log' for more details" "$LINENO" 5; } 13532 fi 13533 { am_dirpart=; unset am_dirpart;} 13534 { am_filepart=; unset am_filepart;} 13535 { am_mf=; unset am_mf;} 13536 { am_rc=; unset am_rc;} 13537 rm -f conftest-deps.mk 13538} 13539 ;; 13540 13541 esac 13542done # for ac_tag 13543 13544 13545as_fn_exit 0 13546_ACEOF 13547ac_clean_files=$ac_clean_files_save 13548 13549test $ac_write_fail = 0 || 13550 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 13551 13552 13553# configure is writing to config.log, and then calls config.status. 13554# config.status does its own redirection, appending to config.log. 13555# Unfortunately, on DOS this fails, as config.log is still kept open 13556# by configure, so config.status won't be able to write to it; its 13557# output is simply discarded. So we exec the FD to /dev/null, 13558# effectively closing config.log, so it can be properly (re)opened and 13559# appended to by config.status. When coming back to configure, we 13560# need to make the FD available again. 13561if test "$no_create" != yes; then 13562 ac_cs_success=: 13563 ac_config_status_args= 13564 test "$silent" = yes && 13565 ac_config_status_args="$ac_config_status_args --quiet" 13566 exec 5>/dev/null 13567 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13568 exec 5>>config.log 13569 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13570 # would make configure fail if this is the last instruction. 13571 $ac_cs_success || as_fn_exit 1 13572fi 13573if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13575printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13576fi 13577 13578 13579