1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.72 for sessreg 1.1.4. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/sessreg/-/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/sessreg/-/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='sessreg' 607PACKAGE_TARNAME='sessreg' 608PACKAGE_VERSION='1.1.4' 609PACKAGE_STRING='sessreg 1.1.4' 610PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/sessreg/-/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 651SESSREG_LIBS 652SESSREG_CFLAGS 653LINT_FALSE 654LINT_TRUE 655LINT_FLAGS 656LINT 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__xargs_n 689am__rm_f_notfound 690AM_BACKSLASH 691AM_DEFAULT_VERBOSITY 692AM_DEFAULT_V 693AM_V 694CSCOPE 695ETAGS 696CTAGS 697am__fastdepCC_FALSE 698am__fastdepCC_TRUE 699CCDEPMODE 700am__nodep 701AMDEPBACKSLASH 702AMDEP_FALSE 703AMDEP_TRUE 704am__include 705DEPDIR 706am__untar 707am__tar 708AMTAR 709am__leading_dot 710SET_MAKE 711AWK 712mkdir_p 713MKDIR_P 714INSTALL_STRIP_PROGRAM 715STRIP 716install_sh 717MAKEINFO 718AUTOHEADER 719AUTOMAKE 720AUTOCONF 721ACLOCAL 722VERSION 723PACKAGE 724CYGPATH_W 725am__isrc 726INSTALL_DATA 727INSTALL_SCRIPT 728INSTALL_PROGRAM 729OBJEXT 730EXEEXT 731ac_ct_CC 732CPPFLAGS 733LDFLAGS 734CFLAGS 735CC 736target_alias 737host_alias 738build_alias 739LIBS 740ECHO_T 741ECHO_N 742ECHO_C 743DEFS 744mandir 745localedir 746libdir 747psdir 748pdfdir 749dvidir 750htmldir 751infodir 752docdir 753oldincludedir 754includedir 755runstatedir 756localstatedir 757sharedstatedir 758sysconfdir 759datadir 760datarootdir 761libexecdir 762sbindir 763bindir 764program_transform_name 765prefix 766exec_prefix 767PACKAGE_URL 768PACKAGE_BUGREPORT 769PACKAGE_STRING 770PACKAGE_VERSION 771PACKAGE_TARNAME 772PACKAGE_NAME 773PATH_SEPARATOR 774SHELL 775am__quote' 776ac_subst_files='' 777ac_user_opts=' 778enable_option_checking 779enable_largefile 780enable_dependency_tracking 781enable_silent_rules 782enable_selective_werror 783enable_strict_compilation 784with_lint 785enable_year2038 786' 787 ac_precious_vars='build_alias 788host_alias 789target_alias 790CC 791CFLAGS 792LDFLAGS 793LIBS 794CPPFLAGS 795PKG_CONFIG 796PKG_CONFIG_PATH 797PKG_CONFIG_LIBDIR 798LINT 799LINT_FLAGS 800SESSREG_CFLAGS 801SESSREG_LIBS' 802 803 804# Initialize some variables set by options. 805ac_init_help= 806ac_init_version=false 807ac_unrecognized_opts= 808ac_unrecognized_sep= 809# The variables have the same names as the options, with 810# dashes changed to underlines. 811cache_file=/dev/null 812exec_prefix=NONE 813no_create= 814no_recursion= 815prefix=NONE 816program_prefix=NONE 817program_suffix=NONE 818program_transform_name=s,x,x, 819silent= 820site= 821srcdir= 822verbose= 823x_includes=NONE 824x_libraries=NONE 825 826# Installation directory options. 827# These are left unexpanded so users can "make install exec_prefix=/foo" 828# and all the variables that are supposed to be based on exec_prefix 829# by default will actually change. 830# Use braces instead of parens because sh, perl, etc. also accept them. 831# (The list follows the same order as the GNU Coding Standards.) 832bindir='${exec_prefix}/bin' 833sbindir='${exec_prefix}/sbin' 834libexecdir='${exec_prefix}/libexec' 835datarootdir='${prefix}/share' 836datadir='${datarootdir}' 837sysconfdir='${prefix}/etc' 838sharedstatedir='${prefix}/com' 839localstatedir='${prefix}/var' 840runstatedir='${localstatedir}/run' 841includedir='${prefix}/include' 842oldincludedir='/usr/include' 843docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 844infodir='${datarootdir}/info' 845htmldir='${docdir}' 846dvidir='${docdir}' 847pdfdir='${docdir}' 848psdir='${docdir}' 849libdir='${exec_prefix}/lib' 850localedir='${datarootdir}/locale' 851mandir='${datarootdir}/man' 852 853ac_prev= 854ac_dashdash= 855for ac_option 856do 857 # If the previous option needs an argument, assign it. 858 if test -n "$ac_prev"; then 859 eval $ac_prev=\$ac_option 860 ac_prev= 861 continue 862 fi 863 864 case $ac_option in 865 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 866 *=) ac_optarg= ;; 867 *) ac_optarg=yes ;; 868 esac 869 870 case $ac_dashdash$ac_option in 871 --) 872 ac_dashdash=yes ;; 873 874 -bindir | --bindir | --bindi | --bind | --bin | --bi) 875 ac_prev=bindir ;; 876 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 877 bindir=$ac_optarg ;; 878 879 -build | --build | --buil | --bui | --bu) 880 ac_prev=build_alias ;; 881 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 882 build_alias=$ac_optarg ;; 883 884 -cache-file | --cache-file | --cache-fil | --cache-fi \ 885 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 886 ac_prev=cache_file ;; 887 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 888 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 889 cache_file=$ac_optarg ;; 890 891 --config-cache | -C) 892 cache_file=config.cache ;; 893 894 -datadir | --datadir | --datadi | --datad) 895 ac_prev=datadir ;; 896 -datadir=* | --datadir=* | --datadi=* | --datad=*) 897 datadir=$ac_optarg ;; 898 899 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 900 | --dataroo | --dataro | --datar) 901 ac_prev=datarootdir ;; 902 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 903 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 904 datarootdir=$ac_optarg ;; 905 906 -disable-* | --disable-*) 907 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 908 # Reject names that are not valid shell variable names. 909 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 910 as_fn_error $? "invalid feature name: '$ac_useropt'" 911 ac_useropt_orig=$ac_useropt 912 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 913 case $ac_user_opts in 914 *" 915"enable_$ac_useropt" 916"*) ;; 917 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 918 ac_unrecognized_sep=', ';; 919 esac 920 eval enable_$ac_useropt=no ;; 921 922 -docdir | --docdir | --docdi | --doc | --do) 923 ac_prev=docdir ;; 924 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 925 docdir=$ac_optarg ;; 926 927 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 928 ac_prev=dvidir ;; 929 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 930 dvidir=$ac_optarg ;; 931 932 -enable-* | --enable-*) 933 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 934 # Reject names that are not valid shell variable names. 935 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 936 as_fn_error $? "invalid feature name: '$ac_useropt'" 937 ac_useropt_orig=$ac_useropt 938 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 939 case $ac_user_opts in 940 *" 941"enable_$ac_useropt" 942"*) ;; 943 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 944 ac_unrecognized_sep=', ';; 945 esac 946 eval enable_$ac_useropt=\$ac_optarg ;; 947 948 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 949 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 950 | --exec | --exe | --ex) 951 ac_prev=exec_prefix ;; 952 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 953 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 954 | --exec=* | --exe=* | --ex=*) 955 exec_prefix=$ac_optarg ;; 956 957 -gas | --gas | --ga | --g) 958 # Obsolete; use --with-gas. 959 with_gas=yes ;; 960 961 -help | --help | --hel | --he | -h) 962 ac_init_help=long ;; 963 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 964 ac_init_help=recursive ;; 965 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 966 ac_init_help=short ;; 967 968 -host | --host | --hos | --ho) 969 ac_prev=host_alias ;; 970 -host=* | --host=* | --hos=* | --ho=*) 971 host_alias=$ac_optarg ;; 972 973 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 974 ac_prev=htmldir ;; 975 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 976 | --ht=*) 977 htmldir=$ac_optarg ;; 978 979 -includedir | --includedir | --includedi | --included | --include \ 980 | --includ | --inclu | --incl | --inc) 981 ac_prev=includedir ;; 982 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 983 | --includ=* | --inclu=* | --incl=* | --inc=*) 984 includedir=$ac_optarg ;; 985 986 -infodir | --infodir | --infodi | --infod | --info | --inf) 987 ac_prev=infodir ;; 988 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 989 infodir=$ac_optarg ;; 990 991 -libdir | --libdir | --libdi | --libd) 992 ac_prev=libdir ;; 993 -libdir=* | --libdir=* | --libdi=* | --libd=*) 994 libdir=$ac_optarg ;; 995 996 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 997 | --libexe | --libex | --libe) 998 ac_prev=libexecdir ;; 999 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1000 | --libexe=* | --libex=* | --libe=*) 1001 libexecdir=$ac_optarg ;; 1002 1003 -localedir | --localedir | --localedi | --localed | --locale) 1004 ac_prev=localedir ;; 1005 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1006 localedir=$ac_optarg ;; 1007 1008 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1009 | --localstate | --localstat | --localsta | --localst | --locals) 1010 ac_prev=localstatedir ;; 1011 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1012 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1013 localstatedir=$ac_optarg ;; 1014 1015 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1016 ac_prev=mandir ;; 1017 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1018 mandir=$ac_optarg ;; 1019 1020 -nfp | --nfp | --nf) 1021 # Obsolete; use --without-fp. 1022 with_fp=no ;; 1023 1024 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1025 | --no-cr | --no-c | -n) 1026 no_create=yes ;; 1027 1028 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1029 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1030 no_recursion=yes ;; 1031 1032 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1033 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1034 | --oldin | --oldi | --old | --ol | --o) 1035 ac_prev=oldincludedir ;; 1036 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1037 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1038 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1039 oldincludedir=$ac_optarg ;; 1040 1041 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1042 ac_prev=prefix ;; 1043 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1044 prefix=$ac_optarg ;; 1045 1046 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1047 | --program-pre | --program-pr | --program-p) 1048 ac_prev=program_prefix ;; 1049 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1050 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1051 program_prefix=$ac_optarg ;; 1052 1053 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1054 | --program-suf | --program-su | --program-s) 1055 ac_prev=program_suffix ;; 1056 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1057 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1058 program_suffix=$ac_optarg ;; 1059 1060 -program-transform-name | --program-transform-name \ 1061 | --program-transform-nam | --program-transform-na \ 1062 | --program-transform-n | --program-transform- \ 1063 | --program-transform | --program-transfor \ 1064 | --program-transfo | --program-transf \ 1065 | --program-trans | --program-tran \ 1066 | --progr-tra | --program-tr | --program-t) 1067 ac_prev=program_transform_name ;; 1068 -program-transform-name=* | --program-transform-name=* \ 1069 | --program-transform-nam=* | --program-transform-na=* \ 1070 | --program-transform-n=* | --program-transform-=* \ 1071 | --program-transform=* | --program-transfor=* \ 1072 | --program-transfo=* | --program-transf=* \ 1073 | --program-trans=* | --program-tran=* \ 1074 | --progr-tra=* | --program-tr=* | --program-t=*) 1075 program_transform_name=$ac_optarg ;; 1076 1077 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1078 ac_prev=pdfdir ;; 1079 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1080 pdfdir=$ac_optarg ;; 1081 1082 -psdir | --psdir | --psdi | --psd | --ps) 1083 ac_prev=psdir ;; 1084 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1085 psdir=$ac_optarg ;; 1086 1087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1088 | -silent | --silent | --silen | --sile | --sil) 1089 silent=yes ;; 1090 1091 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1092 | --runstate | --runstat | --runsta | --runst | --runs \ 1093 | --run | --ru | --r) 1094 ac_prev=runstatedir ;; 1095 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1096 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1097 | --run=* | --ru=* | --r=*) 1098 runstatedir=$ac_optarg ;; 1099 1100 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1101 ac_prev=sbindir ;; 1102 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1103 | --sbi=* | --sb=*) 1104 sbindir=$ac_optarg ;; 1105 1106 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1107 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1108 | --sharedst | --shareds | --shared | --share | --shar \ 1109 | --sha | --sh) 1110 ac_prev=sharedstatedir ;; 1111 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1112 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1113 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1114 | --sha=* | --sh=*) 1115 sharedstatedir=$ac_optarg ;; 1116 1117 -site | --site | --sit) 1118 ac_prev=site ;; 1119 -site=* | --site=* | --sit=*) 1120 site=$ac_optarg ;; 1121 1122 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1123 ac_prev=srcdir ;; 1124 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1125 srcdir=$ac_optarg ;; 1126 1127 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1128 | --syscon | --sysco | --sysc | --sys | --sy) 1129 ac_prev=sysconfdir ;; 1130 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1131 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1132 sysconfdir=$ac_optarg ;; 1133 1134 -target | --target | --targe | --targ | --tar | --ta | --t) 1135 ac_prev=target_alias ;; 1136 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1137 target_alias=$ac_optarg ;; 1138 1139 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1140 verbose=yes ;; 1141 1142 -version | --version | --versio | --versi | --vers | -V) 1143 ac_init_version=: ;; 1144 1145 -with-* | --with-*) 1146 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1147 # Reject names that are not valid shell variable names. 1148 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1149 as_fn_error $? "invalid package name: '$ac_useropt'" 1150 ac_useropt_orig=$ac_useropt 1151 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1152 case $ac_user_opts in 1153 *" 1154"with_$ac_useropt" 1155"*) ;; 1156 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1157 ac_unrecognized_sep=', ';; 1158 esac 1159 eval with_$ac_useropt=\$ac_optarg ;; 1160 1161 -without-* | --without-*) 1162 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1163 # Reject names that are not valid shell variable names. 1164 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1165 as_fn_error $? "invalid package name: '$ac_useropt'" 1166 ac_useropt_orig=$ac_useropt 1167 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1168 case $ac_user_opts in 1169 *" 1170"with_$ac_useropt" 1171"*) ;; 1172 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1173 ac_unrecognized_sep=', ';; 1174 esac 1175 eval with_$ac_useropt=no ;; 1176 1177 --x) 1178 # Obsolete; use --with-x. 1179 with_x=yes ;; 1180 1181 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1182 | --x-incl | --x-inc | --x-in | --x-i) 1183 ac_prev=x_includes ;; 1184 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1185 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1186 x_includes=$ac_optarg ;; 1187 1188 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1189 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1190 ac_prev=x_libraries ;; 1191 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1192 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1193 x_libraries=$ac_optarg ;; 1194 1195 -*) as_fn_error $? "unrecognized option: '$ac_option' 1196Try '$0 --help' for more information" 1197 ;; 1198 1199 *=*) 1200 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1201 # Reject names that are not valid shell variable names. 1202 case $ac_envvar in #( 1203 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1204 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1205 esac 1206 eval $ac_envvar=\$ac_optarg 1207 export $ac_envvar ;; 1208 1209 *) 1210 # FIXME: should be removed in autoconf 3.0. 1211 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1212 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1213 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1214 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1215 ;; 1216 1217 esac 1218done 1219 1220if test -n "$ac_prev"; then 1221 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1222 as_fn_error $? "missing argument to $ac_option" 1223fi 1224 1225if test -n "$ac_unrecognized_opts"; then 1226 case $enable_option_checking in 1227 no) ;; 1228 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1229 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1230 esac 1231fi 1232 1233# Check all directory arguments for consistency. 1234for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1235 datadir sysconfdir sharedstatedir localstatedir includedir \ 1236 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1237 libdir localedir mandir runstatedir 1238do 1239 eval ac_val=\$$ac_var 1240 # Remove trailing slashes. 1241 case $ac_val in 1242 */ ) 1243 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1244 eval $ac_var=\$ac_val;; 1245 esac 1246 # Be sure to have absolute directory names. 1247 case $ac_val in 1248 [\\/$]* | ?:[\\/]* ) continue;; 1249 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1250 esac 1251 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1252done 1253 1254# There might be people who depend on the old broken behavior: '$host' 1255# used to hold the argument of --host etc. 1256# FIXME: To remove some day. 1257build=$build_alias 1258host=$host_alias 1259target=$target_alias 1260 1261# FIXME: To remove some day. 1262if test "x$host_alias" != x; then 1263 if test "x$build_alias" = x; then 1264 cross_compiling=maybe 1265 elif test "x$build_alias" != "x$host_alias"; then 1266 cross_compiling=yes 1267 fi 1268fi 1269 1270ac_tool_prefix= 1271test -n "$host_alias" && ac_tool_prefix=$host_alias- 1272 1273test "$silent" = yes && exec 6>/dev/null 1274 1275 1276ac_pwd=`pwd` && test -n "$ac_pwd" && 1277ac_ls_di=`ls -di .` && 1278ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1279 as_fn_error $? "working directory cannot be determined" 1280test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1281 as_fn_error $? "pwd does not report name of working directory" 1282 1283 1284# Find the source files, if location was not specified. 1285if test -z "$srcdir"; then 1286 ac_srcdir_defaulted=yes 1287 # Try the directory containing this script, then the parent directory. 1288 ac_confdir=`$as_dirname -- "$as_myself" || 1289$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1290 X"$as_myself" : 'X\(//\)[^/]' \| \ 1291 X"$as_myself" : 'X\(//\)$' \| \ 1292 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1293printf "%s\n" X"$as_myself" | 1294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1295 s//\1/ 1296 q 1297 } 1298 /^X\(\/\/\)[^/].*/{ 1299 s//\1/ 1300 q 1301 } 1302 /^X\(\/\/\)$/{ 1303 s//\1/ 1304 q 1305 } 1306 /^X\(\/\).*/{ 1307 s//\1/ 1308 q 1309 } 1310 s/.*/./; q'` 1311 srcdir=$ac_confdir 1312 if test ! -r "$srcdir/$ac_unique_file"; then 1313 srcdir=.. 1314 fi 1315else 1316 ac_srcdir_defaulted=no 1317fi 1318if test ! -r "$srcdir/$ac_unique_file"; then 1319 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1320 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1321fi 1322ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1323ac_abs_confdir=`( 1324 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1325 pwd)` 1326# When building in place, set srcdir=. 1327if test "$ac_abs_confdir" = "$ac_pwd"; then 1328 srcdir=. 1329fi 1330# Remove unnecessary trailing slashes from srcdir. 1331# Double slashes in file names in object file debugging info 1332# mess up M-x gdb in Emacs. 1333case $srcdir in 1334*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1335esac 1336for ac_var in $ac_precious_vars; do 1337 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1338 eval ac_env_${ac_var}_value=\$${ac_var} 1339 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1340 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1341done 1342 1343# 1344# Report the --help message. 1345# 1346if test "$ac_init_help" = "long"; then 1347 # Omit some internal or obsolete options to make the list less imposing. 1348 # This message is too long to be a string in the A/UX 3.1 sh. 1349 cat <<_ACEOF 1350'configure' configures sessreg 1.1.4 to adapt to many kinds of systems. 1351 1352Usage: $0 [OPTION]... [VAR=VALUE]... 1353 1354To assign environment variables (e.g., CC, CFLAGS...), specify them as 1355VAR=VALUE. See below for descriptions of some of the useful variables. 1356 1357Defaults for the options are specified in brackets. 1358 1359Configuration: 1360 -h, --help display this help and exit 1361 --help=short display options specific to this package 1362 --help=recursive display the short help of all the included packages 1363 -V, --version display version information and exit 1364 -q, --quiet, --silent do not print 'checking ...' messages 1365 --cache-file=FILE cache test results in FILE [disabled] 1366 -C, --config-cache alias for '--cache-file=config.cache' 1367 -n, --no-create do not create output files 1368 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1369 1370Installation directories: 1371 --prefix=PREFIX install architecture-independent files in PREFIX 1372 [$ac_default_prefix] 1373 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1374 [PREFIX] 1375 1376By default, 'make install' will install all the files in 1377'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1378an installation prefix other than '$ac_default_prefix' using '--prefix', 1379for instance '--prefix=\$HOME'. 1380 1381For better control, use the options below. 1382 1383Fine tuning of the installation directories: 1384 --bindir=DIR user executables [EPREFIX/bin] 1385 --sbindir=DIR system admin executables [EPREFIX/sbin] 1386 --libexecdir=DIR program executables [EPREFIX/libexec] 1387 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1388 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1389 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1390 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1391 --libdir=DIR object code libraries [EPREFIX/lib] 1392 --includedir=DIR C header files [PREFIX/include] 1393 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1394 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1395 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1396 --infodir=DIR info documentation [DATAROOTDIR/info] 1397 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1398 --mandir=DIR man documentation [DATAROOTDIR/man] 1399 --docdir=DIR documentation root [DATAROOTDIR/doc/sessreg] 1400 --htmldir=DIR html documentation [DOCDIR] 1401 --dvidir=DIR dvi documentation [DOCDIR] 1402 --pdfdir=DIR pdf documentation [DOCDIR] 1403 --psdir=DIR ps documentation [DOCDIR] 1404_ACEOF 1405 1406 cat <<\_ACEOF 1407 1408Program names: 1409 --program-prefix=PREFIX prepend PREFIX to installed program names 1410 --program-suffix=SUFFIX append SUFFIX to installed program names 1411 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1412 1413System types: 1414 --build=BUILD configure for building on BUILD [guessed] 1415 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1416_ACEOF 1417fi 1418 1419if test -n "$ac_init_help"; then 1420 case $ac_init_help in 1421 short | recursive ) echo "Configuration of sessreg 1.1.4:";; 1422 esac 1423 cat <<\_ACEOF 1424 1425Optional Features: 1426 --disable-option-checking ignore unrecognized --enable/--with options 1427 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1428 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1429 --disable-largefile omit support for large files 1430 --enable-dependency-tracking 1431 do not reject slow dependency extractors 1432 --disable-dependency-tracking 1433 speeds up one-time build 1434 --enable-silent-rules less verbose build output (undo: "make V=1") 1435 --disable-silent-rules verbose build output (undo: "make V=0") 1436 --disable-selective-werror 1437 Turn off selective compiler errors. (default: 1438 enabled) 1439 --enable-strict-compilation 1440 Enable all warnings from compiler and make them 1441 errors (default: disabled) 1442 --enable-year2038 support timestamps after 2038 1443 1444Optional Packages: 1445 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1446 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1447 --with-lint Use a lint-style source code checker (default: 1448 disabled) 1449 1450Some influential environment variables: 1451 CC C compiler command 1452 CFLAGS C compiler flags 1453 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1454 nonstandard directory <lib dir> 1455 LIBS libraries to pass to the linker, e.g. -l<library> 1456 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1457 you have headers in a nonstandard directory <include dir> 1458 PKG_CONFIG path to pkg-config utility 1459 PKG_CONFIG_PATH 1460 directories to add to pkg-config's search path 1461 PKG_CONFIG_LIBDIR 1462 path overriding pkg-config's built-in search path 1463 LINT Path to a lint-style command 1464 LINT_FLAGS Flags for the lint-style command 1465 SESSREG_CFLAGS 1466 C compiler flags for SESSREG, overriding pkg-config 1467 SESSREG_LIBS 1468 linker flags for SESSREG, overriding pkg-config 1469 1470Use these variables to override the choices made by 'configure' or to help 1471it to find libraries and programs with nonstandard names/locations. 1472 1473Report bugs to <https://gitlab.freedesktop.org/xorg/app/sessreg/-/issues>. 1474_ACEOF 1475ac_status=$? 1476fi 1477 1478if test "$ac_init_help" = "recursive"; then 1479 # If there are subdirs, report their specific --help. 1480 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1481 test -d "$ac_dir" || 1482 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1483 continue 1484 ac_builddir=. 1485 1486case "$ac_dir" in 1487.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1488*) 1489 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1490 # A ".." for each directory in $ac_dir_suffix. 1491 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1492 case $ac_top_builddir_sub in 1493 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1494 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1495 esac ;; 1496esac 1497ac_abs_top_builddir=$ac_pwd 1498ac_abs_builddir=$ac_pwd$ac_dir_suffix 1499# for backward compatibility: 1500ac_top_builddir=$ac_top_build_prefix 1501 1502case $srcdir in 1503 .) # We are building in place. 1504 ac_srcdir=. 1505 ac_top_srcdir=$ac_top_builddir_sub 1506 ac_abs_top_srcdir=$ac_pwd ;; 1507 [\\/]* | ?:[\\/]* ) # Absolute name. 1508 ac_srcdir=$srcdir$ac_dir_suffix; 1509 ac_top_srcdir=$srcdir 1510 ac_abs_top_srcdir=$srcdir ;; 1511 *) # Relative name. 1512 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1513 ac_top_srcdir=$ac_top_build_prefix$srcdir 1514 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1515esac 1516ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1517 1518 cd "$ac_dir" || { ac_status=$?; continue; } 1519 # Check for configure.gnu first; this name is used for a wrapper for 1520 # Metaconfig's "Configure" on case-insensitive file systems. 1521 if test -f "$ac_srcdir/configure.gnu"; then 1522 echo && 1523 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1524 elif test -f "$ac_srcdir/configure"; then 1525 echo && 1526 $SHELL "$ac_srcdir/configure" --help=recursive 1527 else 1528 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1529 fi || ac_status=$? 1530 cd "$ac_pwd" || { ac_status=$?; break; } 1531 done 1532fi 1533 1534test -n "$ac_init_help" && exit $ac_status 1535if $ac_init_version; then 1536 cat <<\_ACEOF 1537sessreg configure 1.1.4 1538generated by GNU Autoconf 2.72 1539 1540Copyright (C) 2023 Free Software Foundation, Inc. 1541This configure script is free software; the Free Software Foundation 1542gives unlimited permission to copy, distribute and modify it. 1543_ACEOF 1544 exit 1545fi 1546 1547## ------------------------ ## 1548## Autoconf initialization. ## 1549## ------------------------ ## 1550 1551# ac_fn_c_try_compile LINENO 1552# -------------------------- 1553# Try to compile conftest.$ac_ext, and return whether this succeeded. 1554ac_fn_c_try_compile () 1555{ 1556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1557 rm -f conftest.$ac_objext conftest.beam 1558 if { { ac_try="$ac_compile" 1559case "(($ac_try" in 1560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1561 *) ac_try_echo=$ac_try;; 1562esac 1563eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1564printf "%s\n" "$ac_try_echo"; } >&5 1565 (eval "$ac_compile") 2>conftest.err 1566 ac_status=$? 1567 if test -s conftest.err; then 1568 grep -v '^ *+' conftest.err >conftest.er1 1569 cat conftest.er1 >&5 1570 mv -f conftest.er1 conftest.err 1571 fi 1572 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1573 test $ac_status = 0; } && { 1574 test -z "$ac_c_werror_flag" || 1575 test ! -s conftest.err 1576 } && test -s conftest.$ac_objext 1577then : 1578 ac_retval=0 1579else case e in #( 1580 e) printf "%s\n" "$as_me: failed program was:" >&5 1581sed 's/^/| /' conftest.$ac_ext >&5 1582 1583 ac_retval=1 ;; 1584esac 1585fi 1586 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1587 as_fn_set_status $ac_retval 1588 1589} # ac_fn_c_try_compile 1590 1591# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1592# ------------------------------------------------------- 1593# Tests whether HEADER exists and can be compiled using the include files in 1594# INCLUDES, setting the cache variable VAR accordingly. 1595ac_fn_c_check_header_compile () 1596{ 1597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1599printf %s "checking for $2... " >&6; } 1600if eval test \${$3+y} 1601then : 1602 printf %s "(cached) " >&6 1603else case e in #( 1604 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1605/* end confdefs.h. */ 1606$4 1607#include <$2> 1608_ACEOF 1609if ac_fn_c_try_compile "$LINENO" 1610then : 1611 eval "$3=yes" 1612else case e in #( 1613 e) eval "$3=no" ;; 1614esac 1615fi 1616rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1617esac 1618fi 1619eval ac_res=\$$3 1620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1621printf "%s\n" "$ac_res" >&6; } 1622 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1623 1624} # ac_fn_c_check_header_compile 1625 1626# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1627# ------------------------------------------------------------------ 1628# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1629# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1630ac_fn_check_decl () 1631{ 1632 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1633 as_decl_name=`echo $2|sed 's/ *(.*//'` 1634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1635printf %s "checking whether $as_decl_name is declared... " >&6; } 1636if eval test \${$3+y} 1637then : 1638 printf %s "(cached) " >&6 1639else case e in #( 1640 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1641 eval ac_save_FLAGS=\$$6 1642 as_fn_append $6 " $5" 1643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1644/* end confdefs.h. */ 1645$4 1646int 1647main (void) 1648{ 1649#ifndef $as_decl_name 1650#ifdef __cplusplus 1651 (void) $as_decl_use; 1652#else 1653 (void) $as_decl_name; 1654#endif 1655#endif 1656 1657 ; 1658 return 0; 1659} 1660_ACEOF 1661if ac_fn_c_try_compile "$LINENO" 1662then : 1663 eval "$3=yes" 1664else case e in #( 1665 e) eval "$3=no" ;; 1666esac 1667fi 1668rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1669 eval $6=\$ac_save_FLAGS 1670 ;; 1671esac 1672fi 1673eval ac_res=\$$3 1674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1675printf "%s\n" "$ac_res" >&6; } 1676 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1677 1678} # ac_fn_check_decl 1679 1680# ac_fn_c_try_link LINENO 1681# ----------------------- 1682# Try to link conftest.$ac_ext, and return whether this succeeded. 1683ac_fn_c_try_link () 1684{ 1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1686 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1687 if { { ac_try="$ac_link" 1688case "(($ac_try" in 1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1690 *) ac_try_echo=$ac_try;; 1691esac 1692eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1693printf "%s\n" "$ac_try_echo"; } >&5 1694 (eval "$ac_link") 2>conftest.err 1695 ac_status=$? 1696 if test -s conftest.err; then 1697 grep -v '^ *+' conftest.err >conftest.er1 1698 cat conftest.er1 >&5 1699 mv -f conftest.er1 conftest.err 1700 fi 1701 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1702 test $ac_status = 0; } && { 1703 test -z "$ac_c_werror_flag" || 1704 test ! -s conftest.err 1705 } && test -s conftest$ac_exeext && { 1706 test "$cross_compiling" = yes || 1707 test -x conftest$ac_exeext 1708 } 1709then : 1710 ac_retval=0 1711else case e in #( 1712 e) printf "%s\n" "$as_me: failed program was:" >&5 1713sed 's/^/| /' conftest.$ac_ext >&5 1714 1715 ac_retval=1 ;; 1716esac 1717fi 1718 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1719 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1720 # interfere with the next link command; also delete a directory that is 1721 # left behind by Apple's compiler. We do this before executing the actions. 1722 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1723 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1724 as_fn_set_status $ac_retval 1725 1726} # ac_fn_c_try_link 1727 1728# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 1729# ---------------------------------------------------- 1730# Tries to find if the field MEMBER exists in type AGGR, after including 1731# INCLUDES, setting cache variable VAR accordingly. 1732ac_fn_c_check_member () 1733{ 1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 1736printf %s "checking for $2.$3... " >&6; } 1737if eval test \${$4+y} 1738then : 1739 printf %s "(cached) " >&6 1740else case e in #( 1741 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1742/* end confdefs.h. */ 1743$5 1744int 1745main (void) 1746{ 1747static $2 ac_aggr; 1748if (ac_aggr.$3) 1749return 0; 1750 ; 1751 return 0; 1752} 1753_ACEOF 1754if ac_fn_c_try_compile "$LINENO" 1755then : 1756 eval "$4=yes" 1757else case e in #( 1758 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1759/* end confdefs.h. */ 1760$5 1761int 1762main (void) 1763{ 1764static $2 ac_aggr; 1765if (sizeof ac_aggr.$3) 1766return 0; 1767 ; 1768 return 0; 1769} 1770_ACEOF 1771if ac_fn_c_try_compile "$LINENO" 1772then : 1773 eval "$4=yes" 1774else case e in #( 1775 e) eval "$4=no" ;; 1776esac 1777fi 1778rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1779esac 1780fi 1781rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1782esac 1783fi 1784eval ac_res=\$$4 1785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1786printf "%s\n" "$ac_res" >&6; } 1787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1788 1789} # ac_fn_c_check_member 1790 1791# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1792# ------------------------------------------- 1793# Tests whether TYPE exists after having included INCLUDES, setting cache 1794# variable VAR accordingly. 1795ac_fn_c_check_type () 1796{ 1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1799printf %s "checking for $2... " >&6; } 1800if eval test \${$3+y} 1801then : 1802 printf %s "(cached) " >&6 1803else case e in #( 1804 e) eval "$3=no" 1805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1806/* end confdefs.h. */ 1807$4 1808int 1809main (void) 1810{ 1811if (sizeof ($2)) 1812 return 0; 1813 ; 1814 return 0; 1815} 1816_ACEOF 1817if ac_fn_c_try_compile "$LINENO" 1818then : 1819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1820/* end confdefs.h. */ 1821$4 1822int 1823main (void) 1824{ 1825if (sizeof (($2))) 1826 return 0; 1827 ; 1828 return 0; 1829} 1830_ACEOF 1831if ac_fn_c_try_compile "$LINENO" 1832then : 1833 1834else case e in #( 1835 e) eval "$3=yes" ;; 1836esac 1837fi 1838rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1839fi 1840rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1841esac 1842fi 1843eval ac_res=\$$3 1844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1845printf "%s\n" "$ac_res" >&6; } 1846 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1847 1848} # ac_fn_c_check_type 1849 1850# ac_fn_c_check_func LINENO FUNC VAR 1851# ---------------------------------- 1852# Tests whether FUNC exists, setting the cache variable VAR accordingly 1853ac_fn_c_check_func () 1854{ 1855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1857printf %s "checking for $2... " >&6; } 1858if eval test \${$3+y} 1859then : 1860 printf %s "(cached) " >&6 1861else case e in #( 1862 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1863/* end confdefs.h. */ 1864/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1865 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1866#define $2 innocuous_$2 1867 1868/* System header to define __stub macros and hopefully few prototypes, 1869 which can conflict with char $2 (void); below. */ 1870 1871#include <limits.h> 1872#undef $2 1873 1874/* Override any GCC internal prototype to avoid an error. 1875 Use char because int might match the return type of a GCC 1876 builtin and then its argument prototype would still apply. */ 1877#ifdef __cplusplus 1878extern "C" 1879#endif 1880char $2 (void); 1881/* The GNU C library defines this for functions which it implements 1882 to always fail with ENOSYS. Some functions are actually named 1883 something starting with __ and the normal name is an alias. */ 1884#if defined __stub_$2 || defined __stub___$2 1885choke me 1886#endif 1887 1888int 1889main (void) 1890{ 1891return $2 (); 1892 ; 1893 return 0; 1894} 1895_ACEOF 1896if ac_fn_c_try_link "$LINENO" 1897then : 1898 eval "$3=yes" 1899else case e in #( 1900 e) eval "$3=no" ;; 1901esac 1902fi 1903rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1904 conftest$ac_exeext conftest.$ac_ext ;; 1905esac 1906fi 1907eval ac_res=\$$3 1908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1909printf "%s\n" "$ac_res" >&6; } 1910 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1911 1912} # ac_fn_c_check_func 1913ac_configure_args_raw= 1914for ac_arg 1915do 1916 case $ac_arg in 1917 *\'*) 1918 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1919 esac 1920 as_fn_append ac_configure_args_raw " '$ac_arg'" 1921done 1922 1923case $ac_configure_args_raw in 1924 *$as_nl*) 1925 ac_safe_unquote= ;; 1926 *) 1927 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1928 ac_unsafe_a="$ac_unsafe_z#~" 1929 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1930 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1931esac 1932 1933cat >config.log <<_ACEOF 1934This file contains any messages produced by compilers while 1935running configure, to aid debugging if configure makes a mistake. 1936 1937It was created by sessreg $as_me 1.1.4, which was 1938generated by GNU Autoconf 2.72. Invocation command line was 1939 1940 $ $0$ac_configure_args_raw 1941 1942_ACEOF 1943exec 5>>config.log 1944{ 1945cat <<_ASUNAME 1946## --------- ## 1947## Platform. ## 1948## --------- ## 1949 1950hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1951uname -m = `(uname -m) 2>/dev/null || echo unknown` 1952uname -r = `(uname -r) 2>/dev/null || echo unknown` 1953uname -s = `(uname -s) 2>/dev/null || echo unknown` 1954uname -v = `(uname -v) 2>/dev/null || echo unknown` 1955 1956/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1957/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1958 1959/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1960/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1961/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1962/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1963/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1964/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1965/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1966 1967_ASUNAME 1968 1969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1970for as_dir in $PATH 1971do 1972 IFS=$as_save_IFS 1973 case $as_dir in #((( 1974 '') as_dir=./ ;; 1975 */) ;; 1976 *) as_dir=$as_dir/ ;; 1977 esac 1978 printf "%s\n" "PATH: $as_dir" 1979 done 1980IFS=$as_save_IFS 1981 1982} >&5 1983 1984cat >&5 <<_ACEOF 1985 1986 1987## ----------- ## 1988## Core tests. ## 1989## ----------- ## 1990 1991_ACEOF 1992 1993 1994# Keep a trace of the command line. 1995# Strip out --no-create and --no-recursion so they do not pile up. 1996# Strip out --silent because we don't want to record it for future runs. 1997# Also quote any args containing shell meta-characters. 1998# Make two passes to allow for proper duplicate-argument suppression. 1999ac_configure_args= 2000ac_configure_args0= 2001ac_configure_args1= 2002ac_must_keep_next=false 2003for ac_pass in 1 2 2004do 2005 for ac_arg 2006 do 2007 case $ac_arg in 2008 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2009 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2010 | -silent | --silent | --silen | --sile | --sil) 2011 continue ;; 2012 *\'*) 2013 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2014 esac 2015 case $ac_pass in 2016 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2017 2) 2018 as_fn_append ac_configure_args1 " '$ac_arg'" 2019 if test $ac_must_keep_next = true; then 2020 ac_must_keep_next=false # Got value, back to normal. 2021 else 2022 case $ac_arg in 2023 *=* | --config-cache | -C | -disable-* | --disable-* \ 2024 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2025 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2026 | -with-* | --with-* | -without-* | --without-* | --x) 2027 case "$ac_configure_args0 " in 2028 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2029 esac 2030 ;; 2031 -* ) ac_must_keep_next=true ;; 2032 esac 2033 fi 2034 as_fn_append ac_configure_args " '$ac_arg'" 2035 ;; 2036 esac 2037 done 2038done 2039{ ac_configure_args0=; unset ac_configure_args0;} 2040{ ac_configure_args1=; unset ac_configure_args1;} 2041 2042# When interrupted or exit'd, cleanup temporary files, and complete 2043# config.log. We remove comments because anyway the quotes in there 2044# would cause problems or look ugly. 2045# WARNING: Use '\'' to represent an apostrophe within the trap. 2046# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2047trap 'exit_status=$? 2048 # Sanitize IFS. 2049 IFS=" "" $as_nl" 2050 # Save into config.log some information that might help in debugging. 2051 { 2052 echo 2053 2054 printf "%s\n" "## ---------------- ## 2055## Cache variables. ## 2056## ---------------- ##" 2057 echo 2058 # The following way of writing the cache mishandles newlines in values, 2059( 2060 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2061 eval ac_val=\$$ac_var 2062 case $ac_val in #( 2063 *${as_nl}*) 2064 case $ac_var in #( 2065 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2066printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2067 esac 2068 case $ac_var in #( 2069 _ | IFS | as_nl) ;; #( 2070 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2071 *) { eval $ac_var=; unset $ac_var;} ;; 2072 esac ;; 2073 esac 2074 done 2075 (set) 2>&1 | 2076 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2077 *${as_nl}ac_space=\ *) 2078 sed -n \ 2079 "s/'\''/'\''\\\\'\'''\''/g; 2080 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2081 ;; #( 2082 *) 2083 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2084 ;; 2085 esac | 2086 sort 2087) 2088 echo 2089 2090 printf "%s\n" "## ----------------- ## 2091## Output variables. ## 2092## ----------------- ##" 2093 echo 2094 for ac_var in $ac_subst_vars 2095 do 2096 eval ac_val=\$$ac_var 2097 case $ac_val in 2098 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2099 esac 2100 printf "%s\n" "$ac_var='\''$ac_val'\''" 2101 done | sort 2102 echo 2103 2104 if test -n "$ac_subst_files"; then 2105 printf "%s\n" "## ------------------- ## 2106## File substitutions. ## 2107## ------------------- ##" 2108 echo 2109 for ac_var in $ac_subst_files 2110 do 2111 eval ac_val=\$$ac_var 2112 case $ac_val in 2113 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2114 esac 2115 printf "%s\n" "$ac_var='\''$ac_val'\''" 2116 done | sort 2117 echo 2118 fi 2119 2120 if test -s confdefs.h; then 2121 printf "%s\n" "## ----------- ## 2122## confdefs.h. ## 2123## ----------- ##" 2124 echo 2125 cat confdefs.h 2126 echo 2127 fi 2128 test "$ac_signal" != 0 && 2129 printf "%s\n" "$as_me: caught signal $ac_signal" 2130 printf "%s\n" "$as_me: exit $exit_status" 2131 } >&5 2132 rm -f core *.core core.conftest.* && 2133 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2134 exit $exit_status 2135' 0 2136for ac_signal in 1 2 13 15; do 2137 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2138done 2139ac_signal=0 2140 2141# confdefs.h avoids OS command line length limits that DEFS can exceed. 2142rm -f -r conftest* confdefs.h 2143 2144printf "%s\n" "/* confdefs.h */" > confdefs.h 2145 2146# Predefined preprocessor variables. 2147 2148printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2149 2150printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2151 2152printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2153 2154printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2155 2156printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2157 2158printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2159 2160 2161# Let the site file select an alternate cache file if it wants to. 2162# Prefer an explicitly selected file to automatically selected ones. 2163if test -n "$CONFIG_SITE"; then 2164 ac_site_files="$CONFIG_SITE" 2165elif test "x$prefix" != xNONE; then 2166 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2167else 2168 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2169fi 2170 2171for ac_site_file in $ac_site_files 2172do 2173 case $ac_site_file in #( 2174 */*) : 2175 ;; #( 2176 *) : 2177 ac_site_file=./$ac_site_file ;; 2178esac 2179 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2181printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2182 sed 's/^/| /' "$ac_site_file" >&5 2183 . "$ac_site_file" \ 2184 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2185printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2186as_fn_error $? "failed to load site script $ac_site_file 2187See 'config.log' for more details" "$LINENO" 5; } 2188 fi 2189done 2190 2191if test -r "$cache_file"; then 2192 # Some versions of bash will fail to source /dev/null (special files 2193 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2194 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2196printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2197 case $cache_file in 2198 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2199 *) . "./$cache_file";; 2200 esac 2201 fi 2202else 2203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2204printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2205 >$cache_file 2206fi 2207 2208as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2209# Test code for whether the C compiler supports C89 (global declarations) 2210ac_c_conftest_c89_globals=' 2211/* Does the compiler advertise C89 conformance? 2212 Do not test the value of __STDC__, because some compilers set it to 0 2213 while being otherwise adequately conformant. */ 2214#if !defined __STDC__ 2215# error "Compiler does not advertise C89 conformance" 2216#endif 2217 2218#include <stddef.h> 2219#include <stdarg.h> 2220struct stat; 2221/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2222struct buf { int x; }; 2223struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2224static char *e (char **p, int i) 2225{ 2226 return p[i]; 2227} 2228static char *f (char * (*g) (char **, int), char **p, ...) 2229{ 2230 char *s; 2231 va_list v; 2232 va_start (v,p); 2233 s = g (p, va_arg (v,int)); 2234 va_end (v); 2235 return s; 2236} 2237 2238/* C89 style stringification. */ 2239#define noexpand_stringify(a) #a 2240const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2241 2242/* C89 style token pasting. Exercises some of the corner cases that 2243 e.g. old MSVC gets wrong, but not very hard. */ 2244#define noexpand_concat(a,b) a##b 2245#define expand_concat(a,b) noexpand_concat(a,b) 2246extern int vA; 2247extern int vbee; 2248#define aye A 2249#define bee B 2250int *pvA = &expand_concat(v,aye); 2251int *pvbee = &noexpand_concat(v,bee); 2252 2253/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2254 function prototypes and stuff, but not \xHH hex character constants. 2255 These do not provoke an error unfortunately, instead are silently treated 2256 as an "x". The following induces an error, until -std is added to get 2257 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2258 array size at least. It is necessary to write \x00 == 0 to get something 2259 that is true only with -std. */ 2260int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2261 2262/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2263 inside strings and character constants. */ 2264#define FOO(x) '\''x'\'' 2265int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2266 2267int test (int i, double x); 2268struct s1 {int (*f) (int a);}; 2269struct s2 {int (*f) (double a);}; 2270int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2271 int, int);' 2272 2273# Test code for whether the C compiler supports C89 (body of main). 2274ac_c_conftest_c89_main=' 2275ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2276' 2277 2278# Test code for whether the C compiler supports C99 (global declarations) 2279ac_c_conftest_c99_globals=' 2280/* Does the compiler advertise C99 conformance? */ 2281#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2282# error "Compiler does not advertise C99 conformance" 2283#endif 2284 2285// See if C++-style comments work. 2286 2287#include <stdbool.h> 2288extern int puts (const char *); 2289extern int printf (const char *, ...); 2290extern int dprintf (int, const char *, ...); 2291extern void *malloc (size_t); 2292extern void free (void *); 2293 2294// Check varargs macros. These examples are taken from C99 6.10.3.5. 2295// dprintf is used instead of fprintf to avoid needing to declare 2296// FILE and stderr. 2297#define debug(...) dprintf (2, __VA_ARGS__) 2298#define showlist(...) puts (#__VA_ARGS__) 2299#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2300static void 2301test_varargs_macros (void) 2302{ 2303 int x = 1234; 2304 int y = 5678; 2305 debug ("Flag"); 2306 debug ("X = %d\n", x); 2307 showlist (The first, second, and third items.); 2308 report (x>y, "x is %d but y is %d", x, y); 2309} 2310 2311// Check long long types. 2312#define BIG64 18446744073709551615ull 2313#define BIG32 4294967295ul 2314#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2315#if !BIG_OK 2316 #error "your preprocessor is broken" 2317#endif 2318#if BIG_OK 2319#else 2320 #error "your preprocessor is broken" 2321#endif 2322static long long int bignum = -9223372036854775807LL; 2323static unsigned long long int ubignum = BIG64; 2324 2325struct incomplete_array 2326{ 2327 int datasize; 2328 double data[]; 2329}; 2330 2331struct named_init { 2332 int number; 2333 const wchar_t *name; 2334 double average; 2335}; 2336 2337typedef const char *ccp; 2338 2339static inline int 2340test_restrict (ccp restrict text) 2341{ 2342 // Iterate through items via the restricted pointer. 2343 // Also check for declarations in for loops. 2344 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2345 continue; 2346 return 0; 2347} 2348 2349// Check varargs and va_copy. 2350static bool 2351test_varargs (const char *format, ...) 2352{ 2353 va_list args; 2354 va_start (args, format); 2355 va_list args_copy; 2356 va_copy (args_copy, args); 2357 2358 const char *str = ""; 2359 int number = 0; 2360 float fnumber = 0; 2361 2362 while (*format) 2363 { 2364 switch (*format++) 2365 { 2366 case '\''s'\'': // string 2367 str = va_arg (args_copy, const char *); 2368 break; 2369 case '\''d'\'': // int 2370 number = va_arg (args_copy, int); 2371 break; 2372 case '\''f'\'': // float 2373 fnumber = va_arg (args_copy, double); 2374 break; 2375 default: 2376 break; 2377 } 2378 } 2379 va_end (args_copy); 2380 va_end (args); 2381 2382 return *str && number && fnumber; 2383} 2384' 2385 2386# Test code for whether the C compiler supports C99 (body of main). 2387ac_c_conftest_c99_main=' 2388 // Check bool. 2389 _Bool success = false; 2390 success |= (argc != 0); 2391 2392 // Check restrict. 2393 if (test_restrict ("String literal") == 0) 2394 success = true; 2395 char *restrict newvar = "Another string"; 2396 2397 // Check varargs. 2398 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2399 test_varargs_macros (); 2400 2401 // Check flexible array members. 2402 struct incomplete_array *ia = 2403 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2404 ia->datasize = 10; 2405 for (int i = 0; i < ia->datasize; ++i) 2406 ia->data[i] = i * 1.234; 2407 // Work around memory leak warnings. 2408 free (ia); 2409 2410 // Check named initializers. 2411 struct named_init ni = { 2412 .number = 34, 2413 .name = L"Test wide string", 2414 .average = 543.34343, 2415 }; 2416 2417 ni.number = 58; 2418 2419 int dynamic_array[ni.number]; 2420 dynamic_array[0] = argv[0][0]; 2421 dynamic_array[ni.number - 1] = 543; 2422 2423 // work around unused variable warnings 2424 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2425 || dynamic_array[ni.number - 1] != 543); 2426' 2427 2428# Test code for whether the C compiler supports C11 (global declarations) 2429ac_c_conftest_c11_globals=' 2430/* Does the compiler advertise C11 conformance? */ 2431#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2432# error "Compiler does not advertise C11 conformance" 2433#endif 2434 2435// Check _Alignas. 2436char _Alignas (double) aligned_as_double; 2437char _Alignas (0) no_special_alignment; 2438extern char aligned_as_int; 2439char _Alignas (0) _Alignas (int) aligned_as_int; 2440 2441// Check _Alignof. 2442enum 2443{ 2444 int_alignment = _Alignof (int), 2445 int_array_alignment = _Alignof (int[100]), 2446 char_alignment = _Alignof (char) 2447}; 2448_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2449 2450// Check _Noreturn. 2451int _Noreturn does_not_return (void) { for (;;) continue; } 2452 2453// Check _Static_assert. 2454struct test_static_assert 2455{ 2456 int x; 2457 _Static_assert (sizeof (int) <= sizeof (long int), 2458 "_Static_assert does not work in struct"); 2459 long int y; 2460}; 2461 2462// Check UTF-8 literals. 2463#define u8 syntax error! 2464char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2465 2466// Check duplicate typedefs. 2467typedef long *long_ptr; 2468typedef long int *long_ptr; 2469typedef long_ptr long_ptr; 2470 2471// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2472struct anonymous 2473{ 2474 union { 2475 struct { int i; int j; }; 2476 struct { int k; long int l; } w; 2477 }; 2478 int m; 2479} v1; 2480' 2481 2482# Test code for whether the C compiler supports C11 (body of main). 2483ac_c_conftest_c11_main=' 2484 _Static_assert ((offsetof (struct anonymous, i) 2485 == offsetof (struct anonymous, w.k)), 2486 "Anonymous union alignment botch"); 2487 v1.i = 2; 2488 v1.w.k = 5; 2489 ok |= v1.i != 5; 2490' 2491 2492# Test code for whether the C compiler supports C11 (complete). 2493ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2494${ac_c_conftest_c99_globals} 2495${ac_c_conftest_c11_globals} 2496 2497int 2498main (int argc, char **argv) 2499{ 2500 int ok = 0; 2501 ${ac_c_conftest_c89_main} 2502 ${ac_c_conftest_c99_main} 2503 ${ac_c_conftest_c11_main} 2504 return ok; 2505} 2506" 2507 2508# Test code for whether the C compiler supports C99 (complete). 2509ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2510${ac_c_conftest_c99_globals} 2511 2512int 2513main (int argc, char **argv) 2514{ 2515 int ok = 0; 2516 ${ac_c_conftest_c89_main} 2517 ${ac_c_conftest_c99_main} 2518 return ok; 2519} 2520" 2521 2522# Test code for whether the C compiler supports C89 (complete). 2523ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2524 2525int 2526main (int argc, char **argv) 2527{ 2528 int ok = 0; 2529 ${ac_c_conftest_c89_main} 2530 return ok; 2531} 2532" 2533 2534as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2535as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2536as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2537as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2538as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2539as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2540as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2541as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2542as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2543as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2544 2545# Auxiliary files required by this configure script. 2546ac_aux_files="config.guess config.sub missing install-sh compile" 2547 2548# Locations in which to look for auxiliary files. 2549ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2550 2551# Search for a directory containing all of the required auxiliary files, 2552# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2553# If we don't find one directory that contains all the files we need, 2554# we report the set of missing files from the *first* directory in 2555# $ac_aux_dir_candidates and give up. 2556ac_missing_aux_files="" 2557ac_first_candidate=: 2558printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2560as_found=false 2561for as_dir in $ac_aux_dir_candidates 2562do 2563 IFS=$as_save_IFS 2564 case $as_dir in #((( 2565 '') as_dir=./ ;; 2566 */) ;; 2567 *) as_dir=$as_dir/ ;; 2568 esac 2569 as_found=: 2570 2571 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2572 ac_aux_dir_found=yes 2573 ac_install_sh= 2574 for ac_aux in $ac_aux_files 2575 do 2576 # As a special case, if "install-sh" is required, that requirement 2577 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2578 # and $ac_install_sh is set appropriately for whichever one is found. 2579 if test x"$ac_aux" = x"install-sh" 2580 then 2581 if test -f "${as_dir}install-sh"; then 2582 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2583 ac_install_sh="${as_dir}install-sh -c" 2584 elif test -f "${as_dir}install.sh"; then 2585 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2586 ac_install_sh="${as_dir}install.sh -c" 2587 elif test -f "${as_dir}shtool"; then 2588 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2589 ac_install_sh="${as_dir}shtool install -c" 2590 else 2591 ac_aux_dir_found=no 2592 if $ac_first_candidate; then 2593 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2594 else 2595 break 2596 fi 2597 fi 2598 else 2599 if test -f "${as_dir}${ac_aux}"; then 2600 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2601 else 2602 ac_aux_dir_found=no 2603 if $ac_first_candidate; then 2604 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2605 else 2606 break 2607 fi 2608 fi 2609 fi 2610 done 2611 if test "$ac_aux_dir_found" = yes; then 2612 ac_aux_dir="$as_dir" 2613 break 2614 fi 2615 ac_first_candidate=false 2616 2617 as_found=false 2618done 2619IFS=$as_save_IFS 2620if $as_found 2621then : 2622 2623else case e in #( 2624 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2625esac 2626fi 2627 2628 2629# These three variables are undocumented and unsupported, 2630# and are intended to be withdrawn in a future Autoconf release. 2631# They can cause serious problems if a builder's source tree is in a directory 2632# whose full name contains unusual characters. 2633if test -f "${ac_aux_dir}config.guess"; then 2634 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2635fi 2636if test -f "${ac_aux_dir}config.sub"; then 2637 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2638fi 2639if test -f "$ac_aux_dir/configure"; then 2640 ac_configure="$SHELL ${ac_aux_dir}configure" 2641fi 2642 2643# Check that the precious variables saved in the cache have kept the same 2644# value. 2645ac_cache_corrupted=false 2646for ac_var in $ac_precious_vars; do 2647 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2648 eval ac_new_set=\$ac_env_${ac_var}_set 2649 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2650 eval ac_new_val=\$ac_env_${ac_var}_value 2651 case $ac_old_set,$ac_new_set in 2652 set,) 2653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2654printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2655 ac_cache_corrupted=: ;; 2656 ,set) 2657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2658printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2659 ac_cache_corrupted=: ;; 2660 ,);; 2661 *) 2662 if test "x$ac_old_val" != "x$ac_new_val"; then 2663 # differences in whitespace do not lead to failure. 2664 ac_old_val_w=`echo x $ac_old_val` 2665 ac_new_val_w=`echo x $ac_new_val` 2666 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2668printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2669 ac_cache_corrupted=: 2670 else 2671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2672printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2673 eval $ac_var=\$ac_old_val 2674 fi 2675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2676printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2678printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2679 fi;; 2680 esac 2681 # Pass precious variables to config.status. 2682 if test "$ac_new_set" = set; then 2683 case $ac_new_val in 2684 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2685 *) ac_arg=$ac_var=$ac_new_val ;; 2686 esac 2687 case " $ac_configure_args " in 2688 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2689 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2690 esac 2691 fi 2692done 2693if $ac_cache_corrupted; then 2694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2695printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2697printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2698 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2699 and start over" "$LINENO" 5 2700fi 2701## -------------------- ## 2702## Main body of script. ## 2703## -------------------- ## 2704 2705ac_ext=c 2706ac_cpp='$CPP $CPPFLAGS' 2707ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2708ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2709ac_compiler_gnu=$ac_cv_c_compiler_gnu 2710 2711 2712 2713ac_config_headers="$ac_config_headers config.h" 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726# Expand $ac_aux_dir to an absolute path. 2727am_aux_dir=`cd "$ac_aux_dir" && pwd` 2728 2729ac_ext=c 2730ac_cpp='$CPP $CPPFLAGS' 2731ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2732ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2733ac_compiler_gnu=$ac_cv_c_compiler_gnu 2734if test -n "$ac_tool_prefix"; then 2735 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2736set dummy ${ac_tool_prefix}gcc; ac_word=$2 2737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2738printf %s "checking for $ac_word... " >&6; } 2739if test ${ac_cv_prog_CC+y} 2740then : 2741 printf %s "(cached) " >&6 2742else case e in #( 2743 e) if test -n "$CC"; then 2744 ac_cv_prog_CC="$CC" # Let the user override the test. 2745else 2746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2747for as_dir in $PATH 2748do 2749 IFS=$as_save_IFS 2750 case $as_dir in #((( 2751 '') as_dir=./ ;; 2752 */) ;; 2753 *) as_dir=$as_dir/ ;; 2754 esac 2755 for ac_exec_ext in '' $ac_executable_extensions; do 2756 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2757 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2758 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2759 break 2 2760 fi 2761done 2762 done 2763IFS=$as_save_IFS 2764 2765fi ;; 2766esac 2767fi 2768CC=$ac_cv_prog_CC 2769if test -n "$CC"; then 2770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2771printf "%s\n" "$CC" >&6; } 2772else 2773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2774printf "%s\n" "no" >&6; } 2775fi 2776 2777 2778fi 2779if test -z "$ac_cv_prog_CC"; then 2780 ac_ct_CC=$CC 2781 # Extract the first word of "gcc", so it can be a program name with args. 2782set dummy gcc; ac_word=$2 2783{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2784printf %s "checking for $ac_word... " >&6; } 2785if test ${ac_cv_prog_ac_ct_CC+y} 2786then : 2787 printf %s "(cached) " >&6 2788else case e in #( 2789 e) if test -n "$ac_ct_CC"; then 2790 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2791else 2792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2793for as_dir in $PATH 2794do 2795 IFS=$as_save_IFS 2796 case $as_dir in #((( 2797 '') as_dir=./ ;; 2798 */) ;; 2799 *) as_dir=$as_dir/ ;; 2800 esac 2801 for ac_exec_ext in '' $ac_executable_extensions; do 2802 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2803 ac_cv_prog_ac_ct_CC="gcc" 2804 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2805 break 2 2806 fi 2807done 2808 done 2809IFS=$as_save_IFS 2810 2811fi ;; 2812esac 2813fi 2814ac_ct_CC=$ac_cv_prog_ac_ct_CC 2815if test -n "$ac_ct_CC"; then 2816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2817printf "%s\n" "$ac_ct_CC" >&6; } 2818else 2819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2820printf "%s\n" "no" >&6; } 2821fi 2822 2823 if test "x$ac_ct_CC" = x; then 2824 CC="" 2825 else 2826 case $cross_compiling:$ac_tool_warned in 2827yes:) 2828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2829printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2830ac_tool_warned=yes ;; 2831esac 2832 CC=$ac_ct_CC 2833 fi 2834else 2835 CC="$ac_cv_prog_CC" 2836fi 2837 2838if test -z "$CC"; then 2839 if test -n "$ac_tool_prefix"; then 2840 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2841set dummy ${ac_tool_prefix}cc; ac_word=$2 2842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2843printf %s "checking for $ac_word... " >&6; } 2844if test ${ac_cv_prog_CC+y} 2845then : 2846 printf %s "(cached) " >&6 2847else case e in #( 2848 e) if test -n "$CC"; then 2849 ac_cv_prog_CC="$CC" # Let the user override the test. 2850else 2851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2852for as_dir in $PATH 2853do 2854 IFS=$as_save_IFS 2855 case $as_dir in #((( 2856 '') as_dir=./ ;; 2857 */) ;; 2858 *) as_dir=$as_dir/ ;; 2859 esac 2860 for ac_exec_ext in '' $ac_executable_extensions; do 2861 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2862 ac_cv_prog_CC="${ac_tool_prefix}cc" 2863 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2864 break 2 2865 fi 2866done 2867 done 2868IFS=$as_save_IFS 2869 2870fi ;; 2871esac 2872fi 2873CC=$ac_cv_prog_CC 2874if test -n "$CC"; then 2875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2876printf "%s\n" "$CC" >&6; } 2877else 2878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2879printf "%s\n" "no" >&6; } 2880fi 2881 2882 2883 fi 2884fi 2885if test -z "$CC"; then 2886 # Extract the first word of "cc", so it can be a program name with args. 2887set dummy cc; 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_CC+y} 2891then : 2892 printf %s "(cached) " >&6 2893else case e in #( 2894 e) if test -n "$CC"; then 2895 ac_cv_prog_CC="$CC" # Let the user override the test. 2896else 2897 ac_prog_rejected=no 2898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2899for as_dir in $PATH 2900do 2901 IFS=$as_save_IFS 2902 case $as_dir in #((( 2903 '') as_dir=./ ;; 2904 */) ;; 2905 *) as_dir=$as_dir/ ;; 2906 esac 2907 for ac_exec_ext in '' $ac_executable_extensions; do 2908 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2909 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2910 ac_prog_rejected=yes 2911 continue 2912 fi 2913 ac_cv_prog_CC="cc" 2914 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2915 break 2 2916 fi 2917done 2918 done 2919IFS=$as_save_IFS 2920 2921if test $ac_prog_rejected = yes; then 2922 # We found a bogon in the path, so make sure we never use it. 2923 set dummy $ac_cv_prog_CC 2924 shift 2925 if test $# != 0; then 2926 # We chose a different compiler from the bogus one. 2927 # However, it has the same basename, so the bogon will be chosen 2928 # first if we set CC to just the basename; use the full file name. 2929 shift 2930 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 2931 fi 2932fi 2933fi ;; 2934esac 2935fi 2936CC=$ac_cv_prog_CC 2937if test -n "$CC"; then 2938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2939printf "%s\n" "$CC" >&6; } 2940else 2941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2942printf "%s\n" "no" >&6; } 2943fi 2944 2945 2946fi 2947if test -z "$CC"; then 2948 if test -n "$ac_tool_prefix"; then 2949 for ac_prog in cl.exe 2950 do 2951 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2952set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2954printf %s "checking for $ac_word... " >&6; } 2955if test ${ac_cv_prog_CC+y} 2956then : 2957 printf %s "(cached) " >&6 2958else case e in #( 2959 e) if test -n "$CC"; then 2960 ac_cv_prog_CC="$CC" # Let the user override the test. 2961else 2962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2963for as_dir in $PATH 2964do 2965 IFS=$as_save_IFS 2966 case $as_dir in #((( 2967 '') as_dir=./ ;; 2968 */) ;; 2969 *) as_dir=$as_dir/ ;; 2970 esac 2971 for ac_exec_ext in '' $ac_executable_extensions; do 2972 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2973 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2974 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2975 break 2 2976 fi 2977done 2978 done 2979IFS=$as_save_IFS 2980 2981fi ;; 2982esac 2983fi 2984CC=$ac_cv_prog_CC 2985if test -n "$CC"; then 2986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2987printf "%s\n" "$CC" >&6; } 2988else 2989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2990printf "%s\n" "no" >&6; } 2991fi 2992 2993 2994 test -n "$CC" && break 2995 done 2996fi 2997if test -z "$CC"; then 2998 ac_ct_CC=$CC 2999 for ac_prog in cl.exe 3000do 3001 # Extract the first word of "$ac_prog", so it can be a program name with args. 3002set dummy $ac_prog; ac_word=$2 3003{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3004printf %s "checking for $ac_word... " >&6; } 3005if test ${ac_cv_prog_ac_ct_CC+y} 3006then : 3007 printf %s "(cached) " >&6 3008else case e in #( 3009 e) if test -n "$ac_ct_CC"; then 3010 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3011else 3012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3013for as_dir in $PATH 3014do 3015 IFS=$as_save_IFS 3016 case $as_dir in #((( 3017 '') as_dir=./ ;; 3018 */) ;; 3019 *) as_dir=$as_dir/ ;; 3020 esac 3021 for ac_exec_ext in '' $ac_executable_extensions; do 3022 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3023 ac_cv_prog_ac_ct_CC="$ac_prog" 3024 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3025 break 2 3026 fi 3027done 3028 done 3029IFS=$as_save_IFS 3030 3031fi ;; 3032esac 3033fi 3034ac_ct_CC=$ac_cv_prog_ac_ct_CC 3035if test -n "$ac_ct_CC"; then 3036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3037printf "%s\n" "$ac_ct_CC" >&6; } 3038else 3039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3040printf "%s\n" "no" >&6; } 3041fi 3042 3043 3044 test -n "$ac_ct_CC" && break 3045done 3046 3047 if test "x$ac_ct_CC" = x; then 3048 CC="" 3049 else 3050 case $cross_compiling:$ac_tool_warned in 3051yes:) 3052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3053printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3054ac_tool_warned=yes ;; 3055esac 3056 CC=$ac_ct_CC 3057 fi 3058fi 3059 3060fi 3061if test -z "$CC"; then 3062 if test -n "$ac_tool_prefix"; then 3063 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3064set dummy ${ac_tool_prefix}clang; ac_word=$2 3065{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3066printf %s "checking for $ac_word... " >&6; } 3067if test ${ac_cv_prog_CC+y} 3068then : 3069 printf %s "(cached) " >&6 3070else case e in #( 3071 e) if test -n "$CC"; then 3072 ac_cv_prog_CC="$CC" # Let the user override the test. 3073else 3074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3075for as_dir in $PATH 3076do 3077 IFS=$as_save_IFS 3078 case $as_dir in #((( 3079 '') as_dir=./ ;; 3080 */) ;; 3081 *) as_dir=$as_dir/ ;; 3082 esac 3083 for ac_exec_ext in '' $ac_executable_extensions; do 3084 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3085 ac_cv_prog_CC="${ac_tool_prefix}clang" 3086 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3087 break 2 3088 fi 3089done 3090 done 3091IFS=$as_save_IFS 3092 3093fi ;; 3094esac 3095fi 3096CC=$ac_cv_prog_CC 3097if test -n "$CC"; then 3098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3099printf "%s\n" "$CC" >&6; } 3100else 3101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3102printf "%s\n" "no" >&6; } 3103fi 3104 3105 3106fi 3107if test -z "$ac_cv_prog_CC"; then 3108 ac_ct_CC=$CC 3109 # Extract the first word of "clang", so it can be a program name with args. 3110set dummy clang; ac_word=$2 3111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3112printf %s "checking for $ac_word... " >&6; } 3113if test ${ac_cv_prog_ac_ct_CC+y} 3114then : 3115 printf %s "(cached) " >&6 3116else case e in #( 3117 e) if test -n "$ac_ct_CC"; then 3118 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3119else 3120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3121for as_dir in $PATH 3122do 3123 IFS=$as_save_IFS 3124 case $as_dir in #((( 3125 '') as_dir=./ ;; 3126 */) ;; 3127 *) as_dir=$as_dir/ ;; 3128 esac 3129 for ac_exec_ext in '' $ac_executable_extensions; do 3130 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3131 ac_cv_prog_ac_ct_CC="clang" 3132 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3133 break 2 3134 fi 3135done 3136 done 3137IFS=$as_save_IFS 3138 3139fi ;; 3140esac 3141fi 3142ac_ct_CC=$ac_cv_prog_ac_ct_CC 3143if test -n "$ac_ct_CC"; then 3144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3145printf "%s\n" "$ac_ct_CC" >&6; } 3146else 3147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3148printf "%s\n" "no" >&6; } 3149fi 3150 3151 if test "x$ac_ct_CC" = x; then 3152 CC="" 3153 else 3154 case $cross_compiling:$ac_tool_warned in 3155yes:) 3156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3157printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3158ac_tool_warned=yes ;; 3159esac 3160 CC=$ac_ct_CC 3161 fi 3162else 3163 CC="$ac_cv_prog_CC" 3164fi 3165 3166fi 3167 3168 3169test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3170printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3171as_fn_error $? "no acceptable C compiler found in \$PATH 3172See 'config.log' for more details" "$LINENO" 5; } 3173 3174# Provide some information about the compiler. 3175printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3176set X $ac_compile 3177ac_compiler=$2 3178for ac_option in --version -v -V -qversion -version; do 3179 { { ac_try="$ac_compiler $ac_option >&5" 3180case "(($ac_try" in 3181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3182 *) ac_try_echo=$ac_try;; 3183esac 3184eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3185printf "%s\n" "$ac_try_echo"; } >&5 3186 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3187 ac_status=$? 3188 if test -s conftest.err; then 3189 sed '10a\ 3190... rest of stderr output deleted ... 3191 10q' conftest.err >conftest.er1 3192 cat conftest.er1 >&5 3193 fi 3194 rm -f conftest.er1 conftest.err 3195 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3196 test $ac_status = 0; } 3197done 3198 3199cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3200/* end confdefs.h. */ 3201 3202int 3203main (void) 3204{ 3205 3206 ; 3207 return 0; 3208} 3209_ACEOF 3210ac_clean_files_save=$ac_clean_files 3211ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3212# Try to create an executable without -o first, disregard a.out. 3213# It will help us diagnose broken compilers, and finding out an intuition 3214# of exeext. 3215{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3216printf %s "checking whether the C compiler works... " >&6; } 3217ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3218 3219# The possible output files: 3220ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3221 3222ac_rmfiles= 3223for ac_file in $ac_files 3224do 3225 case $ac_file in 3226 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3227 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3228 esac 3229done 3230rm -f $ac_rmfiles 3231 3232if { { ac_try="$ac_link_default" 3233case "(($ac_try" in 3234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3235 *) ac_try_echo=$ac_try;; 3236esac 3237eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3238printf "%s\n" "$ac_try_echo"; } >&5 3239 (eval "$ac_link_default") 2>&5 3240 ac_status=$? 3241 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3242 test $ac_status = 0; } 3243then : 3244 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 3245# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 3246# in a Makefile. We should not override ac_cv_exeext if it was cached, 3247# so that the user can short-circuit this test for compilers unknown to 3248# Autoconf. 3249for ac_file in $ac_files '' 3250do 3251 test -f "$ac_file" || continue 3252 case $ac_file in 3253 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3254 ;; 3255 [ab].out ) 3256 # We found the default executable, but exeext='' is most 3257 # certainly right. 3258 break;; 3259 *.* ) 3260 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3261 then :; else 3262 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3263 fi 3264 # We set ac_cv_exeext here because the later test for it is not 3265 # safe: cross compilers may not add the suffix if given an '-o' 3266 # argument, so we may need to know it at that point already. 3267 # Even if this section looks crufty: it has the advantage of 3268 # actually working. 3269 break;; 3270 * ) 3271 break;; 3272 esac 3273done 3274test "$ac_cv_exeext" = no && ac_cv_exeext= 3275 3276else case e in #( 3277 e) ac_file='' ;; 3278esac 3279fi 3280if test -z "$ac_file" 3281then : 3282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3283printf "%s\n" "no" >&6; } 3284printf "%s\n" "$as_me: failed program was:" >&5 3285sed 's/^/| /' conftest.$ac_ext >&5 3286 3287{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3288printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3289as_fn_error 77 "C compiler cannot create executables 3290See 'config.log' for more details" "$LINENO" 5; } 3291else case e in #( 3292 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3293printf "%s\n" "yes" >&6; } ;; 3294esac 3295fi 3296{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3297printf %s "checking for C compiler default output file name... " >&6; } 3298{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3299printf "%s\n" "$ac_file" >&6; } 3300ac_exeext=$ac_cv_exeext 3301 3302rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3303ac_clean_files=$ac_clean_files_save 3304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3305printf %s "checking for suffix of executables... " >&6; } 3306if { { ac_try="$ac_link" 3307case "(($ac_try" in 3308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3309 *) ac_try_echo=$ac_try;; 3310esac 3311eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3312printf "%s\n" "$ac_try_echo"; } >&5 3313 (eval "$ac_link") 2>&5 3314 ac_status=$? 3315 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3316 test $ac_status = 0; } 3317then : 3318 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 3319# catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 3320# work properly (i.e., refer to 'conftest.exe'), while it won't with 3321# 'rm'. 3322for ac_file in conftest.exe conftest 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 | *.o | *.obj ) ;; 3326 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3327 break;; 3328 * ) break;; 3329 esac 3330done 3331else case e in #( 3332 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3333printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3334as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3335See 'config.log' for more details" "$LINENO" 5; } ;; 3336esac 3337fi 3338rm -f conftest conftest$ac_cv_exeext 3339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3340printf "%s\n" "$ac_cv_exeext" >&6; } 3341 3342rm -f conftest.$ac_ext 3343EXEEXT=$ac_cv_exeext 3344ac_exeext=$EXEEXT 3345cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3346/* end confdefs.h. */ 3347#include <stdio.h> 3348int 3349main (void) 3350{ 3351FILE *f = fopen ("conftest.out", "w"); 3352 if (!f) 3353 return 1; 3354 return ferror (f) || fclose (f) != 0; 3355 3356 ; 3357 return 0; 3358} 3359_ACEOF 3360ac_clean_files="$ac_clean_files conftest.out" 3361# Check that the compiler produces executables we can run. If not, either 3362# the compiler is broken, or we cross compile. 3363{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3364printf %s "checking whether we are cross compiling... " >&6; } 3365if test "$cross_compiling" != yes; then 3366 { { ac_try="$ac_link" 3367case "(($ac_try" in 3368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3369 *) ac_try_echo=$ac_try;; 3370esac 3371eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3372printf "%s\n" "$ac_try_echo"; } >&5 3373 (eval "$ac_link") 2>&5 3374 ac_status=$? 3375 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3376 test $ac_status = 0; } 3377 if { ac_try='./conftest$ac_cv_exeext' 3378 { { case "(($ac_try" in 3379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3380 *) ac_try_echo=$ac_try;; 3381esac 3382eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3383printf "%s\n" "$ac_try_echo"; } >&5 3384 (eval "$ac_try") 2>&5 3385 ac_status=$? 3386 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3387 test $ac_status = 0; }; }; then 3388 cross_compiling=no 3389 else 3390 if test "$cross_compiling" = maybe; then 3391 cross_compiling=yes 3392 else 3393 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3394printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3395as_fn_error 77 "cannot run C compiled programs. 3396If you meant to cross compile, use '--host'. 3397See 'config.log' for more details" "$LINENO" 5; } 3398 fi 3399 fi 3400fi 3401{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3402printf "%s\n" "$cross_compiling" >&6; } 3403 3404rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 3405 conftest.o conftest.obj conftest.out 3406ac_clean_files=$ac_clean_files_save 3407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3408printf %s "checking for suffix of object files... " >&6; } 3409if test ${ac_cv_objext+y} 3410then : 3411 printf %s "(cached) " >&6 3412else case e in #( 3413 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3414/* end confdefs.h. */ 3415 3416int 3417main (void) 3418{ 3419 3420 ; 3421 return 0; 3422} 3423_ACEOF 3424rm -f conftest.o conftest.obj 3425if { { ac_try="$ac_compile" 3426case "(($ac_try" in 3427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3428 *) ac_try_echo=$ac_try;; 3429esac 3430eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3431printf "%s\n" "$ac_try_echo"; } >&5 3432 (eval "$ac_compile") 2>&5 3433 ac_status=$? 3434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3435 test $ac_status = 0; } 3436then : 3437 for ac_file in conftest.o conftest.obj conftest.*; do 3438 test -f "$ac_file" || continue; 3439 case $ac_file in 3440 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3441 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3442 break;; 3443 esac 3444done 3445else case e in #( 3446 e) printf "%s\n" "$as_me: failed program was:" >&5 3447sed 's/^/| /' conftest.$ac_ext >&5 3448 3449{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3450printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3451as_fn_error $? "cannot compute suffix of object files: cannot compile 3452See 'config.log' for more details" "$LINENO" 5; } ;; 3453esac 3454fi 3455rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 3456esac 3457fi 3458{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3459printf "%s\n" "$ac_cv_objext" >&6; } 3460OBJEXT=$ac_cv_objext 3461ac_objext=$OBJEXT 3462{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3463printf %s "checking whether the compiler supports GNU C... " >&6; } 3464if test ${ac_cv_c_compiler_gnu+y} 3465then : 3466 printf %s "(cached) " >&6 3467else case e in #( 3468 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3469/* end confdefs.h. */ 3470 3471int 3472main (void) 3473{ 3474#ifndef __GNUC__ 3475 choke me 3476#endif 3477 3478 ; 3479 return 0; 3480} 3481_ACEOF 3482if ac_fn_c_try_compile "$LINENO" 3483then : 3484 ac_compiler_gnu=yes 3485else case e in #( 3486 e) ac_compiler_gnu=no ;; 3487esac 3488fi 3489rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3490ac_cv_c_compiler_gnu=$ac_compiler_gnu 3491 ;; 3492esac 3493fi 3494{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3495printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3496ac_compiler_gnu=$ac_cv_c_compiler_gnu 3497 3498if test $ac_compiler_gnu = yes; then 3499 GCC=yes 3500else 3501 GCC= 3502fi 3503ac_test_CFLAGS=${CFLAGS+y} 3504ac_save_CFLAGS=$CFLAGS 3505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3506printf %s "checking whether $CC accepts -g... " >&6; } 3507if test ${ac_cv_prog_cc_g+y} 3508then : 3509 printf %s "(cached) " >&6 3510else case e in #( 3511 e) ac_save_c_werror_flag=$ac_c_werror_flag 3512 ac_c_werror_flag=yes 3513 ac_cv_prog_cc_g=no 3514 CFLAGS="-g" 3515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3516/* end confdefs.h. */ 3517 3518int 3519main (void) 3520{ 3521 3522 ; 3523 return 0; 3524} 3525_ACEOF 3526if ac_fn_c_try_compile "$LINENO" 3527then : 3528 ac_cv_prog_cc_g=yes 3529else case e in #( 3530 e) CFLAGS="" 3531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3532/* end confdefs.h. */ 3533 3534int 3535main (void) 3536{ 3537 3538 ; 3539 return 0; 3540} 3541_ACEOF 3542if ac_fn_c_try_compile "$LINENO" 3543then : 3544 3545else case e in #( 3546 e) ac_c_werror_flag=$ac_save_c_werror_flag 3547 CFLAGS="-g" 3548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3549/* end confdefs.h. */ 3550 3551int 3552main (void) 3553{ 3554 3555 ; 3556 return 0; 3557} 3558_ACEOF 3559if ac_fn_c_try_compile "$LINENO" 3560then : 3561 ac_cv_prog_cc_g=yes 3562fi 3563rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3564esac 3565fi 3566rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3567esac 3568fi 3569rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3570 ac_c_werror_flag=$ac_save_c_werror_flag ;; 3571esac 3572fi 3573{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3574printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 3575if test $ac_test_CFLAGS; then 3576 CFLAGS=$ac_save_CFLAGS 3577elif test $ac_cv_prog_cc_g = yes; then 3578 if test "$GCC" = yes; then 3579 CFLAGS="-g -O2" 3580 else 3581 CFLAGS="-g" 3582 fi 3583else 3584 if test "$GCC" = yes; then 3585 CFLAGS="-O2" 3586 else 3587 CFLAGS= 3588 fi 3589fi 3590ac_prog_cc_stdc=no 3591if test x$ac_prog_cc_stdc = xno 3592then : 3593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 3594printf %s "checking for $CC option to enable C11 features... " >&6; } 3595if test ${ac_cv_prog_cc_c11+y} 3596then : 3597 printf %s "(cached) " >&6 3598else case e in #( 3599 e) ac_cv_prog_cc_c11=no 3600ac_save_CC=$CC 3601cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3602/* end confdefs.h. */ 3603$ac_c_conftest_c11_program 3604_ACEOF 3605for ac_arg in '' -std=gnu11 3606do 3607 CC="$ac_save_CC $ac_arg" 3608 if ac_fn_c_try_compile "$LINENO" 3609then : 3610 ac_cv_prog_cc_c11=$ac_arg 3611fi 3612rm -f core conftest.err conftest.$ac_objext conftest.beam 3613 test "x$ac_cv_prog_cc_c11" != "xno" && break 3614done 3615rm -f conftest.$ac_ext 3616CC=$ac_save_CC ;; 3617esac 3618fi 3619 3620if test "x$ac_cv_prog_cc_c11" = xno 3621then : 3622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3623printf "%s\n" "unsupported" >&6; } 3624else case e in #( 3625 e) if test "x$ac_cv_prog_cc_c11" = x 3626then : 3627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3628printf "%s\n" "none needed" >&6; } 3629else case e in #( 3630 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 3631printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 3632 CC="$CC $ac_cv_prog_cc_c11" ;; 3633esac 3634fi 3635 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 3636 ac_prog_cc_stdc=c11 ;; 3637esac 3638fi 3639fi 3640if test x$ac_prog_cc_stdc = xno 3641then : 3642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 3643printf %s "checking for $CC option to enable C99 features... " >&6; } 3644if test ${ac_cv_prog_cc_c99+y} 3645then : 3646 printf %s "(cached) " >&6 3647else case e in #( 3648 e) ac_cv_prog_cc_c99=no 3649ac_save_CC=$CC 3650cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3651/* end confdefs.h. */ 3652$ac_c_conftest_c99_program 3653_ACEOF 3654for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 3655do 3656 CC="$ac_save_CC $ac_arg" 3657 if ac_fn_c_try_compile "$LINENO" 3658then : 3659 ac_cv_prog_cc_c99=$ac_arg 3660fi 3661rm -f core conftest.err conftest.$ac_objext conftest.beam 3662 test "x$ac_cv_prog_cc_c99" != "xno" && break 3663done 3664rm -f conftest.$ac_ext 3665CC=$ac_save_CC ;; 3666esac 3667fi 3668 3669if test "x$ac_cv_prog_cc_c99" = xno 3670then : 3671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3672printf "%s\n" "unsupported" >&6; } 3673else case e in #( 3674 e) if test "x$ac_cv_prog_cc_c99" = x 3675then : 3676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3677printf "%s\n" "none needed" >&6; } 3678else case e in #( 3679 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3680printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 3681 CC="$CC $ac_cv_prog_cc_c99" ;; 3682esac 3683fi 3684 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 3685 ac_prog_cc_stdc=c99 ;; 3686esac 3687fi 3688fi 3689if test x$ac_prog_cc_stdc = xno 3690then : 3691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 3692printf %s "checking for $CC option to enable C89 features... " >&6; } 3693if test ${ac_cv_prog_cc_c89+y} 3694then : 3695 printf %s "(cached) " >&6 3696else case e in #( 3697 e) ac_cv_prog_cc_c89=no 3698ac_save_CC=$CC 3699cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3700/* end confdefs.h. */ 3701$ac_c_conftest_c89_program 3702_ACEOF 3703for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3704do 3705 CC="$ac_save_CC $ac_arg" 3706 if ac_fn_c_try_compile "$LINENO" 3707then : 3708 ac_cv_prog_cc_c89=$ac_arg 3709fi 3710rm -f core conftest.err conftest.$ac_objext conftest.beam 3711 test "x$ac_cv_prog_cc_c89" != "xno" && break 3712done 3713rm -f conftest.$ac_ext 3714CC=$ac_save_CC ;; 3715esac 3716fi 3717 3718if test "x$ac_cv_prog_cc_c89" = xno 3719then : 3720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3721printf "%s\n" "unsupported" >&6; } 3722else case e in #( 3723 e) if test "x$ac_cv_prog_cc_c89" = x 3724then : 3725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3726printf "%s\n" "none needed" >&6; } 3727else case e in #( 3728 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3729printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 3730 CC="$CC $ac_cv_prog_cc_c89" ;; 3731esac 3732fi 3733 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 3734 ac_prog_cc_stdc=c89 ;; 3735esac 3736fi 3737fi 3738 3739ac_ext=c 3740ac_cpp='$CPP $CPPFLAGS' 3741ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3742ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3743ac_compiler_gnu=$ac_cv_c_compiler_gnu 3744 3745 3746 ac_ext=c 3747ac_cpp='$CPP $CPPFLAGS' 3748ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3749ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3750ac_compiler_gnu=$ac_cv_c_compiler_gnu 3751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3752printf %s "checking whether $CC understands -c and -o together... " >&6; } 3753if test ${am_cv_prog_cc_c_o+y} 3754then : 3755 printf %s "(cached) " >&6 3756else case e in #( 3757 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3758/* end confdefs.h. */ 3759 3760int 3761main (void) 3762{ 3763 3764 ; 3765 return 0; 3766} 3767_ACEOF 3768 # Make sure it works both with $CC and with simple cc. 3769 # Following AC_PROG_CC_C_O, we do the test twice because some 3770 # compilers refuse to overwrite an existing .o file with -o, 3771 # though they will create one. 3772 am_cv_prog_cc_c_o=yes 3773 for am_i in 1 2; do 3774 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3775 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3776 ac_status=$? 3777 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3778 (exit $ac_status); } \ 3779 && test -f conftest2.$ac_objext; then 3780 : OK 3781 else 3782 am_cv_prog_cc_c_o=no 3783 break 3784 fi 3785 done 3786 rm -f core conftest* 3787 unset am_i ;; 3788esac 3789fi 3790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3791printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 3792if test "$am_cv_prog_cc_c_o" != yes; then 3793 # Losing compiler, so override with the script. 3794 # FIXME: It is wrong to rewrite CC. 3795 # But if we don't then we get into trouble of one sort or another. 3796 # A longer-term fix would be to have automake use am__CC in this case, 3797 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3798 CC="$am_aux_dir/compile $CC" 3799fi 3800ac_ext=c 3801ac_cpp='$CPP $CPPFLAGS' 3802ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3803ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3804ac_compiler_gnu=$ac_cv_c_compiler_gnu 3805 3806 3807 3808ac_header= ac_cache= 3809for ac_item in $ac_header_c_list 3810do 3811 if test $ac_cache; then 3812 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 3813 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 3814 printf "%s\n" "#define $ac_item 1" >> confdefs.h 3815 fi 3816 ac_header= ac_cache= 3817 elif test $ac_header; then 3818 ac_cache=$ac_item 3819 else 3820 ac_header=$ac_item 3821 fi 3822done 3823 3824 3825 3826 3827 3828 3829 3830 3831if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 3832then : 3833 3834printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 3835 3836fi 3837 3838 3839 3840 3841 3842 3843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3844printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3845if test ${ac_cv_safe_to_define___extensions__+y} 3846then : 3847 printf %s "(cached) " >&6 3848else case e in #( 3849 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3850/* end confdefs.h. */ 3851 3852# define __EXTENSIONS__ 1 3853 $ac_includes_default 3854int 3855main (void) 3856{ 3857 3858 ; 3859 return 0; 3860} 3861_ACEOF 3862if ac_fn_c_try_compile "$LINENO" 3863then : 3864 ac_cv_safe_to_define___extensions__=yes 3865else case e in #( 3866 e) ac_cv_safe_to_define___extensions__=no ;; 3867esac 3868fi 3869rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3870esac 3871fi 3872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3873printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 3874 3875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 3876printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 3877if test ${ac_cv_should_define__xopen_source+y} 3878then : 3879 printf %s "(cached) " >&6 3880else case e in #( 3881 e) ac_cv_should_define__xopen_source=no 3882 if test $ac_cv_header_wchar_h = yes 3883then : 3884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3885/* end confdefs.h. */ 3886 3887 #include <wchar.h> 3888 mbstate_t x; 3889int 3890main (void) 3891{ 3892 3893 ; 3894 return 0; 3895} 3896_ACEOF 3897if ac_fn_c_try_compile "$LINENO" 3898then : 3899 3900else case e in #( 3901 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3902/* end confdefs.h. */ 3903 3904 #define _XOPEN_SOURCE 500 3905 #include <wchar.h> 3906 mbstate_t x; 3907int 3908main (void) 3909{ 3910 3911 ; 3912 return 0; 3913} 3914_ACEOF 3915if ac_fn_c_try_compile "$LINENO" 3916then : 3917 ac_cv_should_define__xopen_source=yes 3918fi 3919rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3920esac 3921fi 3922rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3923fi ;; 3924esac 3925fi 3926{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 3927printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 3928 3929 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 3930 3931 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 3932 3933 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 3934 3935 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 3936 3937 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 3938 3939 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 3940 3941 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3942 3943 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 3944 3945 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 3946 3947 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 3948 3949 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h 3950 3951 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 3952 3953 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 3954 3955 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 3956 3957 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 3958 3959 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 3960 3961 if test $ac_cv_header_minix_config_h = yes 3962then : 3963 MINIX=yes 3964 printf "%s\n" "#define _MINIX 1" >>confdefs.h 3965 3966 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 3967 3968 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 3969 3970else case e in #( 3971 e) MINIX= ;; 3972esac 3973fi 3974 if test $ac_cv_safe_to_define___extensions__ = yes 3975then : 3976 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 3977 3978fi 3979 if test $ac_cv_should_define__xopen_source = yes 3980then : 3981 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 3982 3983fi 3984 3985# Check whether --enable-largefile was given. 3986if test ${enable_largefile+y} 3987then : 3988 enableval=$enable_largefile; 3989fi 3990if test "$enable_largefile,$enable_year2038" != no,no 3991then : 3992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5 3993printf %s "checking for $CC option to enable large file support... " >&6; } 3994if test ${ac_cv_sys_largefile_opts+y} 3995then : 3996 printf %s "(cached) " >&6 3997else case e in #( 3998 e) ac_save_CC="$CC" 3999 ac_opt_found=no 4000 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do 4001 if test x"$ac_opt" != x"none needed" 4002then : 4003 CC="$ac_save_CC $ac_opt" 4004fi 4005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4006/* end confdefs.h. */ 4007#include <sys/types.h> 4008#ifndef FTYPE 4009# define FTYPE off_t 4010#endif 4011 /* Check that FTYPE can represent 2**63 - 1 correctly. 4012 We can't simply define LARGE_FTYPE to be 9223372036854775807, 4013 since some C++ compilers masquerading as C compilers 4014 incorrectly reject 9223372036854775807. */ 4015#define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31)) 4016 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721 4017 && LARGE_FTYPE % 2147483647 == 1) 4018 ? 1 : -1]; 4019int 4020main (void) 4021{ 4022 4023 ; 4024 return 0; 4025} 4026_ACEOF 4027if ac_fn_c_try_compile "$LINENO" 4028then : 4029 if test x"$ac_opt" = x"none needed" 4030then : 4031 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t. 4032 CC="$CC -DFTYPE=ino_t" 4033 if ac_fn_c_try_compile "$LINENO" 4034then : 4035 4036else case e in #( 4037 e) CC="$CC -D_FILE_OFFSET_BITS=64" 4038 if ac_fn_c_try_compile "$LINENO" 4039then : 4040 ac_opt='-D_FILE_OFFSET_BITS=64' 4041fi 4042rm -f core conftest.err conftest.$ac_objext conftest.beam ;; 4043esac 4044fi 4045rm -f core conftest.err conftest.$ac_objext conftest.beam 4046fi 4047 ac_cv_sys_largefile_opts=$ac_opt 4048 ac_opt_found=yes 4049fi 4050rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4051 test $ac_opt_found = no || break 4052 done 4053 CC="$ac_save_CC" 4054 4055 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;; 4056esac 4057fi 4058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5 4059printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; } 4060 4061ac_have_largefile=yes 4062case $ac_cv_sys_largefile_opts in #( 4063 "none needed") : 4064 ;; #( 4065 "supported through gnulib") : 4066 ;; #( 4067 "support not detected") : 4068 ac_have_largefile=no ;; #( 4069 "-D_FILE_OFFSET_BITS=64") : 4070 4071printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h 4072 ;; #( 4073 "-D_LARGE_FILES=1") : 4074 4075printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h 4076 ;; #( 4077 "-n32") : 4078 CC="$CC -n32" ;; #( 4079 *) : 4080 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;; 4081esac 4082 4083if test "$enable_year2038" != no 4084then : 4085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5 4086printf %s "checking for $CC option for timestamps after 2038... " >&6; } 4087if test ${ac_cv_sys_year2038_opts+y} 4088then : 4089 printf %s "(cached) " >&6 4090else case e in #( 4091 e) ac_save_CPPFLAGS="$CPPFLAGS" 4092 ac_opt_found=no 4093 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 4094 if test x"$ac_opt" != x"none needed" 4095then : 4096 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt" 4097fi 4098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4099/* end confdefs.h. */ 4100 4101 #include <time.h> 4102 /* Check that time_t can represent 2**32 - 1 correctly. */ 4103 #define LARGE_TIME_T \\ 4104 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30))) 4105 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535 4106 && LARGE_TIME_T % 65537 == 0) 4107 ? 1 : -1]; 4108 4109int 4110main (void) 4111{ 4112 4113 ; 4114 return 0; 4115} 4116_ACEOF 4117if ac_fn_c_try_compile "$LINENO" 4118then : 4119 ac_cv_sys_year2038_opts="$ac_opt" 4120 ac_opt_found=yes 4121fi 4122rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4123 test $ac_opt_found = no || break 4124 done 4125 CPPFLAGS="$ac_save_CPPFLAGS" 4126 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;; 4127esac 4128fi 4129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5 4130printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; } 4131 4132ac_have_year2038=yes 4133case $ac_cv_sys_year2038_opts in #( 4134 "none needed") : 4135 ;; #( 4136 "support not detected") : 4137 ac_have_year2038=no ;; #( 4138 "-D_TIME_BITS=64") : 4139 4140printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h 4141 ;; #( 4142 "-D__MINGW_USE_VC2005_COMPAT") : 4143 4144printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h 4145 ;; #( 4146 "-U_USE_32_BIT_TIME_T"*) : 4147 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4148printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4149as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It 4150will stop working after mid-January 2038. Remove 4151_USE_32BIT_TIME_T from the compiler flags. 4152See 'config.log' for more details" "$LINENO" 5; } ;; #( 4153 *) : 4154 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;; 4155esac 4156 4157fi 4158 4159fi 4160 4161# Initialize Automake 4162am__api_version='1.17' 4163 4164 4165 # Find a good install program. We prefer a C program (faster), 4166# so one script is as good as another. But avoid the broken or 4167# incompatible versions: 4168# SysV /etc/install, /usr/sbin/install 4169# SunOS /usr/etc/install 4170# IRIX /sbin/install 4171# AIX /bin/install 4172# AmigaOS /C/install, which installs bootblocks on floppy discs 4173# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4174# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4175# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4176# OS/2's system install, which has a completely different semantic 4177# ./install, which can be erroneously created by make from ./install.sh. 4178# Reject install programs that cannot install multiple files. 4179{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 4180printf %s "checking for a BSD-compatible install... " >&6; } 4181if test -z "$INSTALL"; then 4182if test ${ac_cv_path_install+y} 4183then : 4184 printf %s "(cached) " >&6 4185else case e in #( 4186 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4187for as_dir in $PATH 4188do 4189 IFS=$as_save_IFS 4190 case $as_dir in #((( 4191 '') as_dir=./ ;; 4192 */) ;; 4193 *) as_dir=$as_dir/ ;; 4194 esac 4195 # Account for fact that we put trailing slashes in our PATH walk. 4196case $as_dir in #(( 4197 ./ | /[cC]/* | \ 4198 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4199 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 4200 /usr/ucb/* ) ;; 4201 *) 4202 # OSF1 and SCO ODT 3.0 have their own names for install. 4203 # Don't use installbsd from OSF since it installs stuff as root 4204 # by default. 4205 for ac_prog in ginstall scoinst install; do 4206 for ac_exec_ext in '' $ac_executable_extensions; do 4207 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 4208 if test $ac_prog = install && 4209 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4210 # AIX install. It has an incompatible calling convention. 4211 : 4212 elif test $ac_prog = install && 4213 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4214 # program-specific install script used by HP pwplus--don't use. 4215 : 4216 else 4217 rm -rf conftest.one conftest.two conftest.dir 4218 echo one > conftest.one 4219 echo two > conftest.two 4220 mkdir conftest.dir 4221 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 4222 test -s conftest.one && test -s conftest.two && 4223 test -s conftest.dir/conftest.one && 4224 test -s conftest.dir/conftest.two 4225 then 4226 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 4227 break 3 4228 fi 4229 fi 4230 fi 4231 done 4232 done 4233 ;; 4234esac 4235 4236 done 4237IFS=$as_save_IFS 4238 4239rm -rf conftest.one conftest.two conftest.dir 4240 ;; 4241esac 4242fi 4243 if test ${ac_cv_path_install+y}; then 4244 INSTALL=$ac_cv_path_install 4245 else 4246 # As a last resort, use the slow shell script. Don't cache a 4247 # value for INSTALL within a source directory, because that will 4248 # break other packages using the cache if that directory is 4249 # removed, or if the value is a relative name. 4250 INSTALL=$ac_install_sh 4251 fi 4252fi 4253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 4254printf "%s\n" "$INSTALL" >&6; } 4255 4256# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4257# It thinks the first close brace ends the variable substitution. 4258test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4259 4260test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4261 4262test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4263 4264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5 4265printf %s "checking whether sleep supports fractional seconds... " >&6; } 4266if test ${am_cv_sleep_fractional_seconds+y} 4267then : 4268 printf %s "(cached) " >&6 4269else case e in #( 4270 e) if sleep 0.001 2>/dev/null 4271then : 4272 am_cv_sleep_fractional_seconds=yes 4273else case e in #( 4274 e) am_cv_sleep_fractional_seconds=no ;; 4275esac 4276fi 4277 ;; 4278esac 4279fi 4280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5 4281printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; } 4282 4283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5 4284printf %s "checking filesystem timestamp resolution... " >&6; } 4285if test ${am_cv_filesystem_timestamp_resolution+y} 4286then : 4287 printf %s "(cached) " >&6 4288else case e in #( 4289 e) # Default to the worst case. 4290am_cv_filesystem_timestamp_resolution=2 4291 4292# Only try to go finer than 1 sec if sleep can do it. 4293# Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work, 4294# - 1 sec is not much of a win compared to 2 sec, and 4295# - it takes 2 seconds to perform the test whether 1 sec works. 4296# 4297# Instead, just use the default 2s on platforms that have 1s resolution, 4298# accept the extra 1s delay when using $sleep in the Automake tests, in 4299# exchange for not incurring the 2s delay for running the test for all 4300# packages. 4301# 4302am_try_resolutions= 4303if test "$am_cv_sleep_fractional_seconds" = yes; then 4304 # Even a millisecond often causes a bunch of false positives, 4305 # so just try a hundredth of a second. The time saved between .001 and 4306 # .01 is not terribly consequential. 4307 am_try_resolutions="0.01 0.1 $am_try_resolutions" 4308fi 4309 4310# In order to catch current-generation FAT out, we must *modify* files 4311# that already exist; the *creation* timestamp is finer. Use names 4312# that make ls -t sort them differently when they have equal 4313# timestamps than when they have distinct timestamps, keeping 4314# in mind that ls -t prints the *newest* file first. 4315rm -f conftest.ts? 4316: > conftest.ts1 4317: > conftest.ts2 4318: > conftest.ts3 4319 4320# Make sure ls -t actually works. Do 'set' in a subshell so we don't 4321# clobber the current shell's arguments. (Outer-level square brackets 4322# are removed by m4; they're present so that m4 does not expand 4323# <dollar><star>; be careful, easy to get confused.) 4324if ( 4325 set X `ls -t conftest.ts[12]` && 4326 { 4327 test "$*" != "X conftest.ts1 conftest.ts2" || 4328 test "$*" != "X conftest.ts2 conftest.ts1"; 4329 } 4330); then :; else 4331 # If neither matched, then we have a broken ls. This can happen 4332 # if, for instance, CONFIG_SHELL is bash and it inherits a 4333 # broken ls alias from the environment. This has actually 4334 # happened. Such a system could not be considered "sane". 4335 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5 4336 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4337printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4338as_fn_error $? "ls -t produces unexpected output. 4339Make sure there is not a broken ls alias in your environment. 4340See 'config.log' for more details" "$LINENO" 5; } 4341fi 4342 4343for am_try_res in $am_try_resolutions; do 4344 # Any one fine-grained sleep might happen to cross the boundary 4345 # between two values of a coarser actual resolution, but if we do 4346 # two fine-grained sleeps in a row, at least one of them will fall 4347 # entirely within a coarse interval. 4348 echo alpha > conftest.ts1 4349 sleep $am_try_res 4350 echo beta > conftest.ts2 4351 sleep $am_try_res 4352 echo gamma > conftest.ts3 4353 4354 # We assume that 'ls -t' will make use of high-resolution 4355 # timestamps if the operating system supports them at all. 4356 if (set X `ls -t conftest.ts?` && 4357 test "$2" = conftest.ts3 && 4358 test "$3" = conftest.ts2 && 4359 test "$4" = conftest.ts1); then 4360 # 4361 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done, 4362 # because we don't need to test make. 4363 make_ok=true 4364 if test $am_try_res != 1; then 4365 # But if we've succeeded so far with a subsecond resolution, we 4366 # have one more thing to check: make. It can happen that 4367 # everything else supports the subsecond mtimes, but make doesn't; 4368 # notably on macOS, which ships make 3.81 from 2006 (the last one 4369 # released under GPLv2). https://bugs.gnu.org/68808 4370 # 4371 # We test $MAKE if it is defined in the environment, else "make". 4372 # It might get overridden later, but our hope is that in practice 4373 # it does not matter: it is the system "make" which is (by far) 4374 # the most likely to be broken, whereas if the user overrides it, 4375 # probably they did so with a better, or at least not worse, make. 4376 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html 4377 # 4378 # Create a Makefile (real tab character here): 4379 rm -f conftest.mk 4380 echo 'conftest.ts1: conftest.ts2' >conftest.mk 4381 echo ' touch conftest.ts2' >>conftest.mk 4382 # 4383 # Now, running 4384 # touch conftest.ts1; touch conftest.ts2; make 4385 # should touch ts1 because ts2 is newer. This could happen by luck, 4386 # but most often, it will fail if make's support is insufficient. So 4387 # test for several consecutive successes. 4388 # 4389 # (We reuse conftest.ts[12] because we still want to modify existing 4390 # files, not create new ones, per above.) 4391 n=0 4392 make=${MAKE-make} 4393 until test $n -eq 3; do 4394 echo one > conftest.ts1 4395 sleep $am_try_res 4396 echo two > conftest.ts2 # ts2 should now be newer than ts1 4397 if $make -f conftest.mk | grep 'up to date' >/dev/null; then 4398 make_ok=false 4399 break # out of $n loop 4400 fi 4401 n=`expr $n + 1` 4402 done 4403 fi 4404 # 4405 if $make_ok; then 4406 # Everything we know to check worked out, so call this resolution good. 4407 am_cv_filesystem_timestamp_resolution=$am_try_res 4408 break # out of $am_try_res loop 4409 fi 4410 # Otherwise, we'll go on to check the next resolution. 4411 fi 4412done 4413rm -f conftest.ts? 4414# (end _am_filesystem_timestamp_resolution) 4415 ;; 4416esac 4417fi 4418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5 4419printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; } 4420 4421# This check should not be cached, as it may vary across builds of 4422# different projects. 4423{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 4424printf %s "checking whether build environment is sane... " >&6; } 4425# Reject unsafe characters in $srcdir or the absolute working directory 4426# name. Accept space and tab only in the latter. 4427am_lf=' 4428' 4429case `pwd` in 4430 *[\\\"\#\$\&\'\`$am_lf]*) 4431 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 4432esac 4433case $srcdir in 4434 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 4435 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 4436esac 4437 4438# Do 'set' in a subshell so we don't clobber the current shell's 4439# arguments. Must try -L first in case configure is actually a 4440# symlink; some systems play weird games with the mod time of symlinks 4441# (eg FreeBSD returns the mod time of the symlink's containing 4442# directory). 4443am_build_env_is_sane=no 4444am_has_slept=no 4445rm -f conftest.file 4446for am_try in 1 2; do 4447 echo "timestamp, slept: $am_has_slept" > conftest.file 4448 if ( 4449 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 4450 if test "$*" = "X"; then 4451 # -L didn't work. 4452 set X `ls -t "$srcdir/configure" conftest.file` 4453 fi 4454 test "$2" = conftest.file 4455 ); then 4456 am_build_env_is_sane=yes 4457 break 4458 fi 4459 # Just in case. 4460 sleep "$am_cv_filesystem_timestamp_resolution" 4461 am_has_slept=yes 4462done 4463 4464{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5 4465printf "%s\n" "$am_build_env_is_sane" >&6; } 4466if test "$am_build_env_is_sane" = no; then 4467 as_fn_error $? "newly created file is older than distributed files! 4468Check your system clock" "$LINENO" 5 4469fi 4470 4471# If we didn't sleep, we still need to ensure time stamps of config.status and 4472# generated files are strictly newer. 4473am_sleep_pid= 4474if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1 4475then : 4476 4477else case e in #( 4478 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) & 4479 am_sleep_pid=$! 4480 ;; 4481esac 4482fi 4483 4484rm -f conftest.file 4485 4486test "$program_prefix" != NONE && 4487 program_transform_name="s&^&$program_prefix&;$program_transform_name" 4488# Use a double $ so make ignores it. 4489test "$program_suffix" != NONE && 4490 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 4491# Double any \ or $. 4492# By default was 's,x,x', remove it if useless. 4493ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 4494program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 4495 4496 4497 if test x"${MISSING+set}" != xset; then 4498 MISSING="\${SHELL} '$am_aux_dir/missing'" 4499fi 4500# Use eval to expand $SHELL 4501if eval "$MISSING --is-lightweight"; then 4502 am_missing_run="$MISSING " 4503else 4504 am_missing_run= 4505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 4506printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 4507fi 4508 4509if test x"${install_sh+set}" != xset; then 4510 case $am_aux_dir in 4511 *\ * | *\ *) 4512 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4513 *) 4514 install_sh="\${SHELL} $am_aux_dir/install-sh" 4515 esac 4516fi 4517 4518# Installed binaries are usually stripped using 'strip' when the user 4519# run "make install-strip". However 'strip' might not be the right 4520# tool to use in cross-compilation environments, therefore Automake 4521# will honor the 'STRIP' environment variable to overrule this program. 4522if test "$cross_compiling" != no; then 4523 if test -n "$ac_tool_prefix"; then 4524 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4525set dummy ${ac_tool_prefix}strip; ac_word=$2 4526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4527printf %s "checking for $ac_word... " >&6; } 4528if test ${ac_cv_prog_STRIP+y} 4529then : 4530 printf %s "(cached) " >&6 4531else case e in #( 4532 e) if test -n "$STRIP"; then 4533 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4534else 4535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4536for as_dir in $PATH 4537do 4538 IFS=$as_save_IFS 4539 case $as_dir in #((( 4540 '') as_dir=./ ;; 4541 */) ;; 4542 *) as_dir=$as_dir/ ;; 4543 esac 4544 for ac_exec_ext in '' $ac_executable_extensions; do 4545 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4546 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4547 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4548 break 2 4549 fi 4550done 4551 done 4552IFS=$as_save_IFS 4553 4554fi ;; 4555esac 4556fi 4557STRIP=$ac_cv_prog_STRIP 4558if test -n "$STRIP"; then 4559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4560printf "%s\n" "$STRIP" >&6; } 4561else 4562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4563printf "%s\n" "no" >&6; } 4564fi 4565 4566 4567fi 4568if test -z "$ac_cv_prog_STRIP"; then 4569 ac_ct_STRIP=$STRIP 4570 # Extract the first word of "strip", so it can be a program name with args. 4571set dummy strip; ac_word=$2 4572{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4573printf %s "checking for $ac_word... " >&6; } 4574if test ${ac_cv_prog_ac_ct_STRIP+y} 4575then : 4576 printf %s "(cached) " >&6 4577else case e in #( 4578 e) if test -n "$ac_ct_STRIP"; then 4579 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4580else 4581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4582for as_dir in $PATH 4583do 4584 IFS=$as_save_IFS 4585 case $as_dir in #((( 4586 '') as_dir=./ ;; 4587 */) ;; 4588 *) as_dir=$as_dir/ ;; 4589 esac 4590 for ac_exec_ext in '' $ac_executable_extensions; do 4591 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4592 ac_cv_prog_ac_ct_STRIP="strip" 4593 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4594 break 2 4595 fi 4596done 4597 done 4598IFS=$as_save_IFS 4599 4600fi ;; 4601esac 4602fi 4603ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4604if test -n "$ac_ct_STRIP"; then 4605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4606printf "%s\n" "$ac_ct_STRIP" >&6; } 4607else 4608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4609printf "%s\n" "no" >&6; } 4610fi 4611 4612 if test "x$ac_ct_STRIP" = x; then 4613 STRIP=":" 4614 else 4615 case $cross_compiling:$ac_tool_warned in 4616yes:) 4617{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4618printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4619ac_tool_warned=yes ;; 4620esac 4621 STRIP=$ac_ct_STRIP 4622 fi 4623else 4624 STRIP="$ac_cv_prog_STRIP" 4625fi 4626 4627fi 4628INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4629 4630 4631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 4632printf %s "checking for a race-free mkdir -p... " >&6; } 4633if test -z "$MKDIR_P"; then 4634 if test ${ac_cv_path_mkdir+y} 4635then : 4636 printf %s "(cached) " >&6 4637else case e in #( 4638 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4639for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4640do 4641 IFS=$as_save_IFS 4642 case $as_dir in #((( 4643 '') as_dir=./ ;; 4644 */) ;; 4645 *) as_dir=$as_dir/ ;; 4646 esac 4647 for ac_prog in mkdir gmkdir; do 4648 for ac_exec_ext in '' $ac_executable_extensions; do 4649 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 4650 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 4651 'mkdir ('*'coreutils) '* | \ 4652 *'BusyBox '* | \ 4653 'mkdir (fileutils) '4.1*) 4654 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 4655 break 3;; 4656 esac 4657 done 4658 done 4659 done 4660IFS=$as_save_IFS 4661 ;; 4662esac 4663fi 4664 4665 test -d ./--version && rmdir ./--version 4666 if test ${ac_cv_path_mkdir+y}; then 4667 MKDIR_P="$ac_cv_path_mkdir -p" 4668 else 4669 # As a last resort, use plain mkdir -p, 4670 # in the hope it doesn't have the bugs of ancient mkdir. 4671 MKDIR_P='mkdir -p' 4672 fi 4673fi 4674{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4675printf "%s\n" "$MKDIR_P" >&6; } 4676 4677for ac_prog in gawk mawk nawk awk 4678do 4679 # Extract the first word of "$ac_prog", so it can be a program name with args. 4680set dummy $ac_prog; ac_word=$2 4681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4682printf %s "checking for $ac_word... " >&6; } 4683if test ${ac_cv_prog_AWK+y} 4684then : 4685 printf %s "(cached) " >&6 4686else case e in #( 4687 e) if test -n "$AWK"; then 4688 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4689else 4690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4691for as_dir in $PATH 4692do 4693 IFS=$as_save_IFS 4694 case $as_dir in #((( 4695 '') as_dir=./ ;; 4696 */) ;; 4697 *) as_dir=$as_dir/ ;; 4698 esac 4699 for ac_exec_ext in '' $ac_executable_extensions; do 4700 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4701 ac_cv_prog_AWK="$ac_prog" 4702 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4703 break 2 4704 fi 4705done 4706 done 4707IFS=$as_save_IFS 4708 4709fi ;; 4710esac 4711fi 4712AWK=$ac_cv_prog_AWK 4713if test -n "$AWK"; then 4714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4715printf "%s\n" "$AWK" >&6; } 4716else 4717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4718printf "%s\n" "no" >&6; } 4719fi 4720 4721 4722 test -n "$AWK" && break 4723done 4724 4725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4726printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4727set x ${MAKE-make} 4728ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4729if eval test \${ac_cv_prog_make_${ac_make}_set+y} 4730then : 4731 printf %s "(cached) " >&6 4732else case e in #( 4733 e) cat >conftest.make <<\_ACEOF 4734SHELL = /bin/sh 4735all: 4736 @echo '@@@%%%=$(MAKE)=@@@%%%' 4737_ACEOF 4738# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4739case `${MAKE-make} -f conftest.make 2>/dev/null` in 4740 *@@@%%%=?*=@@@%%%*) 4741 eval ac_cv_prog_make_${ac_make}_set=yes;; 4742 *) 4743 eval ac_cv_prog_make_${ac_make}_set=no;; 4744esac 4745rm -f conftest.make ;; 4746esac 4747fi 4748if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4750printf "%s\n" "yes" >&6; } 4751 SET_MAKE= 4752else 4753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4754printf "%s\n" "no" >&6; } 4755 SET_MAKE="MAKE=${MAKE-make}" 4756fi 4757 4758rm -rf .tst 2>/dev/null 4759mkdir .tst 2>/dev/null 4760if test -d .tst; then 4761 am__leading_dot=. 4762else 4763 am__leading_dot=_ 4764fi 4765rmdir .tst 2>/dev/null 4766 4767DEPDIR="${am__leading_dot}deps" 4768 4769ac_config_commands="$ac_config_commands depfiles" 4770 4771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4772printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 4773cat > confinc.mk << 'END' 4774am__doit: 4775 @echo this is the am__doit target >confinc.out 4776.PHONY: am__doit 4777END 4778am__include="#" 4779am__quote= 4780# BSD make does it like this. 4781echo '.include "confinc.mk" # ignored' > confmf.BSD 4782# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4783echo 'include confinc.mk # ignored' > confmf.GNU 4784_am_result=no 4785for s in GNU BSD; do 4786 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4787 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4788 ac_status=$? 4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4790 (exit $ac_status); } 4791 case $?:`cat confinc.out 2>/dev/null` in #( 4792 '0:this is the am__doit target') : 4793 case $s in #( 4794 BSD) : 4795 am__include='.include' am__quote='"' ;; #( 4796 *) : 4797 am__include='include' am__quote='' ;; 4798esac ;; #( 4799 *) : 4800 ;; 4801esac 4802 if test "$am__include" != "#"; then 4803 _am_result="yes ($s style)" 4804 break 4805 fi 4806done 4807rm -f confinc.* confmf.* 4808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4809printf "%s\n" "${_am_result}" >&6; } 4810 4811# Check whether --enable-dependency-tracking was given. 4812if test ${enable_dependency_tracking+y} 4813then : 4814 enableval=$enable_dependency_tracking; 4815fi 4816 4817if test "x$enable_dependency_tracking" != xno; then 4818 am_depcomp="$ac_aux_dir/depcomp" 4819 AMDEPBACKSLASH='\' 4820 am__nodep='_no' 4821fi 4822 if test "x$enable_dependency_tracking" != xno; then 4823 AMDEP_TRUE= 4824 AMDEP_FALSE='#' 4825else 4826 AMDEP_TRUE='#' 4827 AMDEP_FALSE= 4828fi 4829 4830 4831AM_DEFAULT_VERBOSITY=1 4832# Check whether --enable-silent-rules was given. 4833if test ${enable_silent_rules+y} 4834then : 4835 enableval=$enable_silent_rules; 4836fi 4837 4838am_make=${MAKE-make} 4839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4840printf %s "checking whether $am_make supports nested variables... " >&6; } 4841if test ${am_cv_make_support_nested_variables+y} 4842then : 4843 printf %s "(cached) " >&6 4844else case e in #( 4845 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 4846BAR0=false 4847BAR1=true 4848V=1 4849am__doit: 4850 @$(TRUE) 4851.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4852 am_cv_make_support_nested_variables=yes 4853else 4854 am_cv_make_support_nested_variables=no 4855fi ;; 4856esac 4857fi 4858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4859printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 4860AM_BACKSLASH='\' 4861 4862am__rm_f_notfound= 4863if (rm -f && rm -fr && rm -rf) 2>/dev/null 4864then : 4865 4866else case e in #( 4867 e) am__rm_f_notfound='""' ;; 4868esac 4869fi 4870 4871 4872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5 4873printf %s "checking xargs -n works... " >&6; } 4874if test ${am_cv_xargs_n_works+y} 4875then : 4876 printf %s "(cached) " >&6 4877else case e in #( 4878 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2 48793" 4880then : 4881 am_cv_xargs_n_works=yes 4882else case e in #( 4883 e) am_cv_xargs_n_works=no ;; 4884esac 4885fi ;; 4886esac 4887fi 4888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5 4889printf "%s\n" "$am_cv_xargs_n_works" >&6; } 4890if test "$am_cv_xargs_n_works" = yes 4891then : 4892 am__xargs_n='xargs -n' 4893else case e in #( 4894 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }' 4895 ;; 4896esac 4897fi 4898 4899if test "`cd $srcdir && pwd`" != "`pwd`"; then 4900 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4901 # is not polluted with repeated "-I." 4902 am__isrc=' -I$(srcdir)' 4903 # test to see if srcdir already configured 4904 if test -f $srcdir/config.status; then 4905 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4906 fi 4907fi 4908 4909# test whether we have cygpath 4910if test -z "$CYGPATH_W"; then 4911 if (cygpath --version) >/dev/null 2>/dev/null; then 4912 CYGPATH_W='cygpath -w' 4913 else 4914 CYGPATH_W=echo 4915 fi 4916fi 4917 4918 4919# Define the identity of the package. 4920 PACKAGE='sessreg' 4921 VERSION='1.1.4' 4922 4923 4924printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 4925 4926 4927printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 4928 4929# Some tools Automake needs. 4930 4931ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4932 4933 4934AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4935 4936 4937AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4938 4939 4940AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4941 4942 4943MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4944 4945# For better backward compatibility. To be removed once Automake 1.9.x 4946# dies out for good. For more background, see: 4947# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4948# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4949mkdir_p='$(MKDIR_P)' 4950 4951# We need awk for the "check" target (and possibly the TAP driver). The 4952# system "awk" is bad on some platforms. 4953# Always define AMTAR for backward compatibility. Yes, it's still used 4954# in the wild :-( We should find a proper way to deprecate it ... 4955AMTAR='$${TAR-tar}' 4956 4957 4958# We'll loop over all known methods to create a tar archive until one works. 4959_am_tools='gnutar pax cpio none' 4960 4961am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4962 4963 4964 4965 4966 4967depcc="$CC" am_compiler_list= 4968 4969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4970printf %s "checking dependency style of $depcc... " >&6; } 4971if test ${am_cv_CC_dependencies_compiler_type+y} 4972then : 4973 printf %s "(cached) " >&6 4974else case e in #( 4975 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4976 # We make a subdir and do the tests there. Otherwise we can end up 4977 # making bogus files that we don't know about and never remove. For 4978 # instance it was reported that on HP-UX the gcc test will end up 4979 # making a dummy file named 'D' -- because '-MD' means "put the output 4980 # in D". 4981 rm -rf conftest.dir 4982 mkdir conftest.dir 4983 # Copy depcomp to subdir because otherwise we won't find it if we're 4984 # using a relative directory. 4985 cp "$am_depcomp" conftest.dir 4986 cd conftest.dir 4987 # We will build objects and dependencies in a subdirectory because 4988 # it helps to detect inapplicable dependency modes. For instance 4989 # both Tru64's cc and ICC support -MD to output dependencies as a 4990 # side effect of compilation, but ICC will put the dependencies in 4991 # the current directory while Tru64 will put them in the object 4992 # directory. 4993 mkdir sub 4994 4995 am_cv_CC_dependencies_compiler_type=none 4996 if test "$am_compiler_list" = ""; then 4997 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4998 fi 4999 am__universal=false 5000 case " $depcc " in #( 5001 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5002 esac 5003 5004 for depmode in $am_compiler_list; do 5005 # Setup a source with many dependencies, because some compilers 5006 # like to wrap large dependency lists on column 80 (with \), and 5007 # we should not choose a depcomp mode which is confused by this. 5008 # 5009 # We need to recreate these files for each test, as the compiler may 5010 # overwrite some of them when testing with obscure command lines. 5011 # This happens at least with the AIX C compiler. 5012 : > sub/conftest.c 5013 for i in 1 2 3 4 5 6; do 5014 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5015 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5016 # Solaris 10 /bin/sh. 5017 echo '/* dummy */' > sub/conftst$i.h 5018 done 5019 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5020 5021 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5022 # mode. It turns out that the SunPro C++ compiler does not properly 5023 # handle '-M -o', and we need to detect this. Also, some Intel 5024 # versions had trouble with output in subdirs. 5025 am__obj=sub/conftest.${OBJEXT-o} 5026 am__minus_obj="-o $am__obj" 5027 case $depmode in 5028 gcc) 5029 # This depmode causes a compiler race in universal mode. 5030 test "$am__universal" = false || continue 5031 ;; 5032 nosideeffect) 5033 # After this tag, mechanisms are not by side-effect, so they'll 5034 # only be used when explicitly requested. 5035 if test "x$enable_dependency_tracking" = xyes; then 5036 continue 5037 else 5038 break 5039 fi 5040 ;; 5041 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5042 # This compiler won't grok '-c -o', but also, the minuso test has 5043 # not run yet. These depmodes are late enough in the game, and 5044 # so weak that their functioning should not be impacted. 5045 am__obj=conftest.${OBJEXT-o} 5046 am__minus_obj= 5047 ;; 5048 none) break ;; 5049 esac 5050 if depmode=$depmode \ 5051 source=sub/conftest.c object=$am__obj \ 5052 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5053 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5054 >/dev/null 2>conftest.err && 5055 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5056 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5057 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5058 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5059 # icc doesn't choke on unknown options, it will just issue warnings 5060 # or remarks (even with -Werror). So we grep stderr for any message 5061 # that says an option was ignored or not supported. 5062 # When given -MP, icc 7.0 and 7.1 complain thus: 5063 # icc: Command line warning: ignoring option '-M'; no argument required 5064 # The diagnosis changed in icc 8.0: 5065 # icc: Command line remark: option '-MP' not supported 5066 if (grep 'ignoring option' conftest.err || 5067 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5068 am_cv_CC_dependencies_compiler_type=$depmode 5069 break 5070 fi 5071 fi 5072 done 5073 5074 cd .. 5075 rm -rf conftest.dir 5076else 5077 am_cv_CC_dependencies_compiler_type=none 5078fi 5079 ;; 5080esac 5081fi 5082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5083printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 5084CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5085 5086 if 5087 test "x$enable_dependency_tracking" != xno \ 5088 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5089 am__fastdepCC_TRUE= 5090 am__fastdepCC_FALSE='#' 5091else 5092 am__fastdepCC_TRUE='#' 5093 am__fastdepCC_FALSE= 5094fi 5095 5096 5097# Variables for tags utilities; see am/tags.am 5098if test -z "$CTAGS"; then 5099 CTAGS=ctags 5100fi 5101 5102if test -z "$ETAGS"; then 5103 ETAGS=etags 5104fi 5105 5106if test -z "$CSCOPE"; then 5107 CSCOPE=cscope 5108fi 5109 5110 5111 5112 5113 5114 5115 5116 5117# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 5130printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 5131if test ${ac_cv_c_undeclared_builtin_options+y} 5132then : 5133 printf %s "(cached) " >&6 5134else case e in #( 5135 e) ac_save_CFLAGS=$CFLAGS 5136 ac_cv_c_undeclared_builtin_options='cannot detect' 5137 for ac_arg in '' -fno-builtin; do 5138 CFLAGS="$ac_save_CFLAGS $ac_arg" 5139 # This test program should *not* compile successfully. 5140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5141/* end confdefs.h. */ 5142 5143int 5144main (void) 5145{ 5146(void) strchr; 5147 ; 5148 return 0; 5149} 5150_ACEOF 5151if ac_fn_c_try_compile "$LINENO" 5152then : 5153 5154else case e in #( 5155 e) # This test program should compile successfully. 5156 # No library function is consistently available on 5157 # freestanding implementations, so test against a dummy 5158 # declaration. Include always-available headers on the 5159 # off chance that they somehow elicit warnings. 5160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5161/* end confdefs.h. */ 5162#include <float.h> 5163#include <limits.h> 5164#include <stdarg.h> 5165#include <stddef.h> 5166extern void ac_decl (int, char *); 5167 5168int 5169main (void) 5170{ 5171(void) ac_decl (0, (char *) 0); 5172 (void) ac_decl; 5173 5174 ; 5175 return 0; 5176} 5177_ACEOF 5178if ac_fn_c_try_compile "$LINENO" 5179then : 5180 if test x"$ac_arg" = x 5181then : 5182 ac_cv_c_undeclared_builtin_options='none needed' 5183else case e in #( 5184 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 5185esac 5186fi 5187 break 5188fi 5189rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5190esac 5191fi 5192rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5193 done 5194 CFLAGS=$ac_save_CFLAGS 5195 ;; 5196esac 5197fi 5198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 5199printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 5200 case $ac_cv_c_undeclared_builtin_options in #( 5201 'cannot detect') : 5202 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 5203printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 5204as_fn_error $? "cannot make $CC report undeclared builtins 5205See 'config.log' for more details" "$LINENO" 5; } ;; #( 5206 'none needed') : 5207 ac_c_undeclared_builtin_options='' ;; #( 5208 *) : 5209 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 5210esac 5211 5212 5213 5214 5215 5216ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 5217if test "x$ac_cv_have_decl___clang__" = xyes 5218then : 5219 CLANGCC="yes" 5220else case e in #( 5221 e) CLANGCC="no" ;; 5222esac 5223fi 5224ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 5225if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 5226then : 5227 INTELCC="yes" 5228else case e in #( 5229 e) INTELCC="no" ;; 5230esac 5231fi 5232ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 5233if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 5234then : 5235 SUNCC="yes" 5236else case e in #( 5237 e) SUNCC="no" ;; 5238esac 5239fi 5240 5241 5242 5243 5244 5245 5246 5247 5248if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 5249 if test -n "$ac_tool_prefix"; then 5250 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 5251set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 5252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5253printf %s "checking for $ac_word... " >&6; } 5254if test ${ac_cv_path_PKG_CONFIG+y} 5255then : 5256 printf %s "(cached) " >&6 5257else case e in #( 5258 e) case $PKG_CONFIG in 5259 [\\/]* | ?:[\\/]*) 5260 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 5261 ;; 5262 *) 5263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5264for as_dir in $PATH 5265do 5266 IFS=$as_save_IFS 5267 case $as_dir in #((( 5268 '') as_dir=./ ;; 5269 */) ;; 5270 *) as_dir=$as_dir/ ;; 5271 esac 5272 for ac_exec_ext in '' $ac_executable_extensions; do 5273 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5274 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 5275 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5276 break 2 5277 fi 5278done 5279 done 5280IFS=$as_save_IFS 5281 5282 ;; 5283esac ;; 5284esac 5285fi 5286PKG_CONFIG=$ac_cv_path_PKG_CONFIG 5287if test -n "$PKG_CONFIG"; then 5288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 5289printf "%s\n" "$PKG_CONFIG" >&6; } 5290else 5291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5292printf "%s\n" "no" >&6; } 5293fi 5294 5295 5296fi 5297if test -z "$ac_cv_path_PKG_CONFIG"; then 5298 ac_pt_PKG_CONFIG=$PKG_CONFIG 5299 # Extract the first word of "pkg-config", so it can be a program name with args. 5300set dummy pkg-config; ac_word=$2 5301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5302printf %s "checking for $ac_word... " >&6; } 5303if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 5304then : 5305 printf %s "(cached) " >&6 5306else case e in #( 5307 e) case $ac_pt_PKG_CONFIG in 5308 [\\/]* | ?:[\\/]*) 5309 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 5310 ;; 5311 *) 5312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5313for as_dir in $PATH 5314do 5315 IFS=$as_save_IFS 5316 case $as_dir in #((( 5317 '') as_dir=./ ;; 5318 */) ;; 5319 *) as_dir=$as_dir/ ;; 5320 esac 5321 for ac_exec_ext in '' $ac_executable_extensions; do 5322 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5323 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 5324 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5325 break 2 5326 fi 5327done 5328 done 5329IFS=$as_save_IFS 5330 5331 ;; 5332esac ;; 5333esac 5334fi 5335ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 5336if test -n "$ac_pt_PKG_CONFIG"; then 5337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 5338printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 5339else 5340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5341printf "%s\n" "no" >&6; } 5342fi 5343 5344 if test "x$ac_pt_PKG_CONFIG" = x; then 5345 PKG_CONFIG="" 5346 else 5347 case $cross_compiling:$ac_tool_warned in 5348yes:) 5349{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5350printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5351ac_tool_warned=yes ;; 5352esac 5353 PKG_CONFIG=$ac_pt_PKG_CONFIG 5354 fi 5355else 5356 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 5357fi 5358 5359fi 5360if test -n "$PKG_CONFIG"; then 5361 _pkg_min_version=0.9.0 5362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 5363printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 5364 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 5365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5366printf "%s\n" "yes" >&6; } 5367 else 5368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5369printf "%s\n" "no" >&6; } 5370 PKG_CONFIG="" 5371 fi 5372fi 5373 5374 5375 # Make sure we can run config.sub. 5376$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 5377 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 5378 5379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5380printf %s "checking build system type... " >&6; } 5381if test ${ac_cv_build+y} 5382then : 5383 printf %s "(cached) " >&6 5384else case e in #( 5385 e) ac_build_alias=$build_alias 5386test "x$ac_build_alias" = x && 5387 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 5388test "x$ac_build_alias" = x && 5389 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5390ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 5391 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 5392 ;; 5393esac 5394fi 5395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5396printf "%s\n" "$ac_cv_build" >&6; } 5397case $ac_cv_build in 5398*-*-*) ;; 5399*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5400esac 5401build=$ac_cv_build 5402ac_save_IFS=$IFS; IFS='-' 5403set x $ac_cv_build 5404shift 5405build_cpu=$1 5406build_vendor=$2 5407shift; shift 5408# Remember, the first character of IFS is used to create $*, 5409# except with old shells: 5410build_os=$* 5411IFS=$ac_save_IFS 5412case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5413 5414 5415{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5416printf %s "checking host system type... " >&6; } 5417if test ${ac_cv_host+y} 5418then : 5419 printf %s "(cached) " >&6 5420else case e in #( 5421 e) if test "x$host_alias" = x; then 5422 ac_cv_host=$ac_cv_build 5423else 5424 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 5425 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 5426fi 5427 ;; 5428esac 5429fi 5430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5431printf "%s\n" "$ac_cv_host" >&6; } 5432case $ac_cv_host in 5433*-*-*) ;; 5434*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5435esac 5436host=$ac_cv_host 5437ac_save_IFS=$IFS; IFS='-' 5438set x $ac_cv_host 5439shift 5440host_cpu=$1 5441host_vendor=$2 5442shift; shift 5443# Remember, the first character of IFS is used to create $*, 5444# except with old shells: 5445host_os=$* 5446IFS=$ac_save_IFS 5447case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5448 5449 5450{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5451printf %s "checking for a sed that does not truncate output... " >&6; } 5452if test ${ac_cv_path_SED+y} 5453then : 5454 printf %s "(cached) " >&6 5455else case e in #( 5456 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5457 for ac_i in 1 2 3 4 5 6 7; do 5458 ac_script="$ac_script$as_nl$ac_script" 5459 done 5460 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5461 { ac_script=; unset ac_script;} 5462 if test -z "$SED"; then 5463 ac_path_SED_found=false 5464 # Loop through the user's path and test for each of PROGNAME-LIST 5465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5466for as_dir in $PATH 5467do 5468 IFS=$as_save_IFS 5469 case $as_dir in #((( 5470 '') as_dir=./ ;; 5471 */) ;; 5472 *) as_dir=$as_dir/ ;; 5473 esac 5474 for ac_prog in sed gsed 5475 do 5476 for ac_exec_ext in '' $ac_executable_extensions; do 5477 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5478 as_fn_executable_p "$ac_path_SED" || continue 5479# Check for GNU ac_path_SED and select it if it is found. 5480 # Check for GNU $ac_path_SED 5481case `"$ac_path_SED" --version 2>&1` in #( 5482*GNU*) 5483 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5484#( 5485*) 5486 ac_count=0 5487 printf %s 0123456789 >"conftest.in" 5488 while : 5489 do 5490 cat "conftest.in" "conftest.in" >"conftest.tmp" 5491 mv "conftest.tmp" "conftest.in" 5492 cp "conftest.in" "conftest.nl" 5493 printf "%s\n" '' >> "conftest.nl" 5494 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5495 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5496 as_fn_arith $ac_count + 1 && ac_count=$as_val 5497 if test $ac_count -gt ${ac_path_SED_max-0}; then 5498 # Best one so far, save it but keep looking for a better one 5499 ac_cv_path_SED="$ac_path_SED" 5500 ac_path_SED_max=$ac_count 5501 fi 5502 # 10*(2^10) chars as input seems more than enough 5503 test $ac_count -gt 10 && break 5504 done 5505 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5506esac 5507 5508 $ac_path_SED_found && break 3 5509 done 5510 done 5511 done 5512IFS=$as_save_IFS 5513 if test -z "$ac_cv_path_SED"; then 5514 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5515 fi 5516else 5517 ac_cv_path_SED=$SED 5518fi 5519 ;; 5520esac 5521fi 5522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5523printf "%s\n" "$ac_cv_path_SED" >&6; } 5524 SED="$ac_cv_path_SED" 5525 rm -f conftest.sed 5526 5527 5528 5529 5530 5531 5532# Check whether --enable-selective-werror was given. 5533if test ${enable_selective_werror+y} 5534then : 5535 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5536else case e in #( 5537 e) SELECTIVE_WERROR=yes ;; 5538esac 5539fi 5540 5541 5542 5543 5544 5545# -v is too short to test reliably with XORG_TESTSET_CFLAG 5546if test "x$SUNCC" = "xyes"; then 5547 BASE_CFLAGS="-v" 5548else 5549 BASE_CFLAGS="" 5550fi 5551 5552# This chunk of warnings were those that existed in the legacy CWARNFLAGS 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566xorg_testset_save_CFLAGS="$CFLAGS" 5567 5568if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5569 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5571printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5572if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5573then : 5574 printf %s "(cached) " >&6 5575else case e in #( 5576 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5577/* end confdefs.h. */ 5578int i; 5579_ACEOF 5580if ac_fn_c_try_compile "$LINENO" 5581then : 5582 xorg_cv_cc_flag_unknown_warning_option=yes 5583else case e in #( 5584 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5585esac 5586fi 5587rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5588esac 5589fi 5590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5591printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5592 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5593 CFLAGS="$xorg_testset_save_CFLAGS" 5594fi 5595 5596if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5597 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5598 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5599 fi 5600 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5602printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5603if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5604then : 5605 printf %s "(cached) " >&6 5606else case e in #( 5607 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5608/* end confdefs.h. */ 5609int i; 5610_ACEOF 5611if ac_fn_c_try_compile "$LINENO" 5612then : 5613 xorg_cv_cc_flag_unused_command_line_argument=yes 5614else case e in #( 5615 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5616esac 5617fi 5618rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5619esac 5620fi 5621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5622printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5623 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5624 CFLAGS="$xorg_testset_save_CFLAGS" 5625fi 5626 5627found="no" 5628 5629 if test $found = "no" ; then 5630 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5631 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5632 fi 5633 5634 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5636 fi 5637 5638 CFLAGS="$CFLAGS -Wall" 5639 5640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5641printf %s "checking if $CC supports -Wall... " >&6; } 5642 cacheid=xorg_cv_cc_flag__Wall 5643 if eval test \${$cacheid+y} 5644then : 5645 printf %s "(cached) " >&6 5646else case e in #( 5647 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5648/* end confdefs.h. */ 5649int i; 5650int 5651main (void) 5652{ 5653 5654 ; 5655 return 0; 5656} 5657_ACEOF 5658if ac_fn_c_try_link "$LINENO" 5659then : 5660 eval $cacheid=yes 5661else case e in #( 5662 e) eval $cacheid=no ;; 5663esac 5664fi 5665rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5666 conftest$ac_exeext conftest.$ac_ext ;; 5667esac 5668fi 5669 5670 5671 CFLAGS="$xorg_testset_save_CFLAGS" 5672 5673 eval supported=\$$cacheid 5674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5675printf "%s\n" "$supported" >&6; } 5676 if test "$supported" = "yes" ; then 5677 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5678 found="yes" 5679 fi 5680 fi 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696xorg_testset_save_CFLAGS="$CFLAGS" 5697 5698if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5699 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5701printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5702if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5703then : 5704 printf %s "(cached) " >&6 5705else case e in #( 5706 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5707/* end confdefs.h. */ 5708int i; 5709_ACEOF 5710if ac_fn_c_try_compile "$LINENO" 5711then : 5712 xorg_cv_cc_flag_unknown_warning_option=yes 5713else case e in #( 5714 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5715esac 5716fi 5717rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5718esac 5719fi 5720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5721printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5722 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5723 CFLAGS="$xorg_testset_save_CFLAGS" 5724fi 5725 5726if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5727 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5728 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5729 fi 5730 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5732printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5733if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5734then : 5735 printf %s "(cached) " >&6 5736else case e in #( 5737 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5738/* end confdefs.h. */ 5739int i; 5740_ACEOF 5741if ac_fn_c_try_compile "$LINENO" 5742then : 5743 xorg_cv_cc_flag_unused_command_line_argument=yes 5744else case e in #( 5745 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5746esac 5747fi 5748rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5749esac 5750fi 5751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5752printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5753 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5754 CFLAGS="$xorg_testset_save_CFLAGS" 5755fi 5756 5757found="no" 5758 5759 if test $found = "no" ; then 5760 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5761 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5762 fi 5763 5764 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5765 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5766 fi 5767 5768 CFLAGS="$CFLAGS -Wpointer-arith" 5769 5770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5771printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5772 cacheid=xorg_cv_cc_flag__Wpointer_arith 5773 if eval test \${$cacheid+y} 5774then : 5775 printf %s "(cached) " >&6 5776else case e in #( 5777 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5778/* end confdefs.h. */ 5779int i; 5780int 5781main (void) 5782{ 5783 5784 ; 5785 return 0; 5786} 5787_ACEOF 5788if ac_fn_c_try_link "$LINENO" 5789then : 5790 eval $cacheid=yes 5791else case e in #( 5792 e) eval $cacheid=no ;; 5793esac 5794fi 5795rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5796 conftest$ac_exeext conftest.$ac_ext ;; 5797esac 5798fi 5799 5800 5801 CFLAGS="$xorg_testset_save_CFLAGS" 5802 5803 eval supported=\$$cacheid 5804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5805printf "%s\n" "$supported" >&6; } 5806 if test "$supported" = "yes" ; then 5807 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5808 found="yes" 5809 fi 5810 fi 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826xorg_testset_save_CFLAGS="$CFLAGS" 5827 5828if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5829 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5831printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5832if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5833then : 5834 printf %s "(cached) " >&6 5835else case e in #( 5836 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5837/* end confdefs.h. */ 5838int i; 5839_ACEOF 5840if ac_fn_c_try_compile "$LINENO" 5841then : 5842 xorg_cv_cc_flag_unknown_warning_option=yes 5843else case e in #( 5844 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5845esac 5846fi 5847rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5848esac 5849fi 5850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5851printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5852 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5853 CFLAGS="$xorg_testset_save_CFLAGS" 5854fi 5855 5856if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5857 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5858 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5859 fi 5860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5862printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5863if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5864then : 5865 printf %s "(cached) " >&6 5866else case e in #( 5867 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5868/* end confdefs.h. */ 5869int i; 5870_ACEOF 5871if ac_fn_c_try_compile "$LINENO" 5872then : 5873 xorg_cv_cc_flag_unused_command_line_argument=yes 5874else case e in #( 5875 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5876esac 5877fi 5878rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5879esac 5880fi 5881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5882printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5883 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5884 CFLAGS="$xorg_testset_save_CFLAGS" 5885fi 5886 5887found="no" 5888 5889 if test $found = "no" ; then 5890 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5891 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5892 fi 5893 5894 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5895 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5896 fi 5897 5898 CFLAGS="$CFLAGS -Wmissing-declarations" 5899 5900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5901printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5902 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5903 if eval test \${$cacheid+y} 5904then : 5905 printf %s "(cached) " >&6 5906else case e in #( 5907 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5908/* end confdefs.h. */ 5909int i; 5910int 5911main (void) 5912{ 5913 5914 ; 5915 return 0; 5916} 5917_ACEOF 5918if ac_fn_c_try_link "$LINENO" 5919then : 5920 eval $cacheid=yes 5921else case e in #( 5922 e) eval $cacheid=no ;; 5923esac 5924fi 5925rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5926 conftest$ac_exeext conftest.$ac_ext ;; 5927esac 5928fi 5929 5930 5931 CFLAGS="$xorg_testset_save_CFLAGS" 5932 5933 eval supported=\$$cacheid 5934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5935printf "%s\n" "$supported" >&6; } 5936 if test "$supported" = "yes" ; then 5937 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5938 found="yes" 5939 fi 5940 fi 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956xorg_testset_save_CFLAGS="$CFLAGS" 5957 5958if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5959 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5961printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5962if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5963then : 5964 printf %s "(cached) " >&6 5965else case e in #( 5966 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5967/* end confdefs.h. */ 5968int i; 5969_ACEOF 5970if ac_fn_c_try_compile "$LINENO" 5971then : 5972 xorg_cv_cc_flag_unknown_warning_option=yes 5973else case e in #( 5974 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5975esac 5976fi 5977rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5978esac 5979fi 5980{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5981printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5982 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5983 CFLAGS="$xorg_testset_save_CFLAGS" 5984fi 5985 5986if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5987 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5988 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5989 fi 5990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5992printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5993if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5994then : 5995 printf %s "(cached) " >&6 5996else case e in #( 5997 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5998/* end confdefs.h. */ 5999int i; 6000_ACEOF 6001if ac_fn_c_try_compile "$LINENO" 6002then : 6003 xorg_cv_cc_flag_unused_command_line_argument=yes 6004else case e in #( 6005 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6006esac 6007fi 6008rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6009esac 6010fi 6011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6012printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6013 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6014 CFLAGS="$xorg_testset_save_CFLAGS" 6015fi 6016 6017found="no" 6018 6019 if test $found = "no" ; then 6020 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6021 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6022 fi 6023 6024 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6026 fi 6027 6028 CFLAGS="$CFLAGS -Wformat=2" 6029 6030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 6031printf %s "checking if $CC supports -Wformat=2... " >&6; } 6032 cacheid=xorg_cv_cc_flag__Wformat_2 6033 if eval test \${$cacheid+y} 6034then : 6035 printf %s "(cached) " >&6 6036else case e in #( 6037 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6038/* end confdefs.h. */ 6039int i; 6040int 6041main (void) 6042{ 6043 6044 ; 6045 return 0; 6046} 6047_ACEOF 6048if ac_fn_c_try_link "$LINENO" 6049then : 6050 eval $cacheid=yes 6051else case e in #( 6052 e) eval $cacheid=no ;; 6053esac 6054fi 6055rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6056 conftest$ac_exeext conftest.$ac_ext ;; 6057esac 6058fi 6059 6060 6061 CFLAGS="$xorg_testset_save_CFLAGS" 6062 6063 eval supported=\$$cacheid 6064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6065printf "%s\n" "$supported" >&6; } 6066 if test "$supported" = "yes" ; then 6067 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 6068 found="yes" 6069 fi 6070 fi 6071 6072 if test $found = "no" ; then 6073 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6074 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6075 fi 6076 6077 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6078 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6079 fi 6080 6081 CFLAGS="$CFLAGS -Wformat" 6082 6083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 6084printf %s "checking if $CC supports -Wformat... " >&6; } 6085 cacheid=xorg_cv_cc_flag__Wformat 6086 if eval test \${$cacheid+y} 6087then : 6088 printf %s "(cached) " >&6 6089else case e in #( 6090 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6091/* end confdefs.h. */ 6092int i; 6093int 6094main (void) 6095{ 6096 6097 ; 6098 return 0; 6099} 6100_ACEOF 6101if ac_fn_c_try_link "$LINENO" 6102then : 6103 eval $cacheid=yes 6104else case e in #( 6105 e) eval $cacheid=no ;; 6106esac 6107fi 6108rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6109 conftest$ac_exeext conftest.$ac_ext ;; 6110esac 6111fi 6112 6113 6114 CFLAGS="$xorg_testset_save_CFLAGS" 6115 6116 eval supported=\$$cacheid 6117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6118printf "%s\n" "$supported" >&6; } 6119 if test "$supported" = "yes" ; then 6120 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 6121 found="yes" 6122 fi 6123 fi 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141xorg_testset_save_CFLAGS="$CFLAGS" 6142 6143if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6144 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6146printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6147if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6148then : 6149 printf %s "(cached) " >&6 6150else case e in #( 6151 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6152/* end confdefs.h. */ 6153int i; 6154_ACEOF 6155if ac_fn_c_try_compile "$LINENO" 6156then : 6157 xorg_cv_cc_flag_unknown_warning_option=yes 6158else case e in #( 6159 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6160esac 6161fi 6162rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6163esac 6164fi 6165{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6166printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6167 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6168 CFLAGS="$xorg_testset_save_CFLAGS" 6169fi 6170 6171if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6172 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6173 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6174 fi 6175 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6177printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6178if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6179then : 6180 printf %s "(cached) " >&6 6181else case e in #( 6182 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6183/* end confdefs.h. */ 6184int i; 6185_ACEOF 6186if ac_fn_c_try_compile "$LINENO" 6187then : 6188 xorg_cv_cc_flag_unused_command_line_argument=yes 6189else case e in #( 6190 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6191esac 6192fi 6193rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6194esac 6195fi 6196{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6197printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6198 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6199 CFLAGS="$xorg_testset_save_CFLAGS" 6200fi 6201 6202found="no" 6203 6204 if test $found = "no" ; then 6205 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6206 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6207 fi 6208 6209 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6210 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6211 fi 6212 6213 CFLAGS="$CFLAGS -Wstrict-prototypes" 6214 6215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 6216printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 6217 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 6218 if eval test \${$cacheid+y} 6219then : 6220 printf %s "(cached) " >&6 6221else case e in #( 6222 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6223/* end confdefs.h. */ 6224int i; 6225int 6226main (void) 6227{ 6228 6229 ; 6230 return 0; 6231} 6232_ACEOF 6233if ac_fn_c_try_link "$LINENO" 6234then : 6235 eval $cacheid=yes 6236else case e in #( 6237 e) eval $cacheid=no ;; 6238esac 6239fi 6240rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6241 conftest$ac_exeext conftest.$ac_ext ;; 6242esac 6243fi 6244 6245 6246 CFLAGS="$xorg_testset_save_CFLAGS" 6247 6248 eval supported=\$$cacheid 6249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6250printf "%s\n" "$supported" >&6; } 6251 if test "$supported" = "yes" ; then 6252 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 6253 found="yes" 6254 fi 6255 fi 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271xorg_testset_save_CFLAGS="$CFLAGS" 6272 6273if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6274 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6276printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6277if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6278then : 6279 printf %s "(cached) " >&6 6280else case e in #( 6281 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6282/* end confdefs.h. */ 6283int i; 6284_ACEOF 6285if ac_fn_c_try_compile "$LINENO" 6286then : 6287 xorg_cv_cc_flag_unknown_warning_option=yes 6288else case e in #( 6289 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6290esac 6291fi 6292rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6293esac 6294fi 6295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6296printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6297 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6298 CFLAGS="$xorg_testset_save_CFLAGS" 6299fi 6300 6301if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6302 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6303 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6304 fi 6305 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6307printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6308if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6309then : 6310 printf %s "(cached) " >&6 6311else case e in #( 6312 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6313/* end confdefs.h. */ 6314int i; 6315_ACEOF 6316if ac_fn_c_try_compile "$LINENO" 6317then : 6318 xorg_cv_cc_flag_unused_command_line_argument=yes 6319else case e in #( 6320 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6321esac 6322fi 6323rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6324esac 6325fi 6326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6327printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6328 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6329 CFLAGS="$xorg_testset_save_CFLAGS" 6330fi 6331 6332found="no" 6333 6334 if test $found = "no" ; then 6335 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6336 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6337 fi 6338 6339 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6340 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6341 fi 6342 6343 CFLAGS="$CFLAGS -Wmissing-prototypes" 6344 6345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 6346printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 6347 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 6348 if eval test \${$cacheid+y} 6349then : 6350 printf %s "(cached) " >&6 6351else case e in #( 6352 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6353/* end confdefs.h. */ 6354int i; 6355int 6356main (void) 6357{ 6358 6359 ; 6360 return 0; 6361} 6362_ACEOF 6363if ac_fn_c_try_link "$LINENO" 6364then : 6365 eval $cacheid=yes 6366else case e in #( 6367 e) eval $cacheid=no ;; 6368esac 6369fi 6370rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6371 conftest$ac_exeext conftest.$ac_ext ;; 6372esac 6373fi 6374 6375 6376 CFLAGS="$xorg_testset_save_CFLAGS" 6377 6378 eval supported=\$$cacheid 6379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6380printf "%s\n" "$supported" >&6; } 6381 if test "$supported" = "yes" ; then 6382 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 6383 found="yes" 6384 fi 6385 fi 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401xorg_testset_save_CFLAGS="$CFLAGS" 6402 6403if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6404 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6406printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6407if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6408then : 6409 printf %s "(cached) " >&6 6410else case e in #( 6411 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6412/* end confdefs.h. */ 6413int i; 6414_ACEOF 6415if ac_fn_c_try_compile "$LINENO" 6416then : 6417 xorg_cv_cc_flag_unknown_warning_option=yes 6418else case e in #( 6419 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6420esac 6421fi 6422rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6423esac 6424fi 6425{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6426printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6427 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6428 CFLAGS="$xorg_testset_save_CFLAGS" 6429fi 6430 6431if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6432 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6433 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6434 fi 6435 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6437printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6438if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6439then : 6440 printf %s "(cached) " >&6 6441else case e in #( 6442 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6443/* end confdefs.h. */ 6444int i; 6445_ACEOF 6446if ac_fn_c_try_compile "$LINENO" 6447then : 6448 xorg_cv_cc_flag_unused_command_line_argument=yes 6449else case e in #( 6450 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6451esac 6452fi 6453rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6454esac 6455fi 6456{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6457printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6458 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6459 CFLAGS="$xorg_testset_save_CFLAGS" 6460fi 6461 6462found="no" 6463 6464 if test $found = "no" ; then 6465 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6466 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6467 fi 6468 6469 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6470 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6471 fi 6472 6473 CFLAGS="$CFLAGS -Wnested-externs" 6474 6475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 6476printf %s "checking if $CC supports -Wnested-externs... " >&6; } 6477 cacheid=xorg_cv_cc_flag__Wnested_externs 6478 if eval test \${$cacheid+y} 6479then : 6480 printf %s "(cached) " >&6 6481else case e in #( 6482 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6483/* end confdefs.h. */ 6484int i; 6485int 6486main (void) 6487{ 6488 6489 ; 6490 return 0; 6491} 6492_ACEOF 6493if ac_fn_c_try_link "$LINENO" 6494then : 6495 eval $cacheid=yes 6496else case e in #( 6497 e) eval $cacheid=no ;; 6498esac 6499fi 6500rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6501 conftest$ac_exeext conftest.$ac_ext ;; 6502esac 6503fi 6504 6505 6506 CFLAGS="$xorg_testset_save_CFLAGS" 6507 6508 eval supported=\$$cacheid 6509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6510printf "%s\n" "$supported" >&6; } 6511 if test "$supported" = "yes" ; then 6512 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 6513 found="yes" 6514 fi 6515 fi 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531xorg_testset_save_CFLAGS="$CFLAGS" 6532 6533if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6534 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6536printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6537if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6538then : 6539 printf %s "(cached) " >&6 6540else case e in #( 6541 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6542/* end confdefs.h. */ 6543int i; 6544_ACEOF 6545if ac_fn_c_try_compile "$LINENO" 6546then : 6547 xorg_cv_cc_flag_unknown_warning_option=yes 6548else case e in #( 6549 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6550esac 6551fi 6552rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6553esac 6554fi 6555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6556printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6557 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6558 CFLAGS="$xorg_testset_save_CFLAGS" 6559fi 6560 6561if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6562 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6563 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6564 fi 6565 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6567printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6568if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6569then : 6570 printf %s "(cached) " >&6 6571else case e in #( 6572 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6573/* end confdefs.h. */ 6574int i; 6575_ACEOF 6576if ac_fn_c_try_compile "$LINENO" 6577then : 6578 xorg_cv_cc_flag_unused_command_line_argument=yes 6579else case e in #( 6580 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6581esac 6582fi 6583rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6584esac 6585fi 6586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6587printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6588 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6589 CFLAGS="$xorg_testset_save_CFLAGS" 6590fi 6591 6592found="no" 6593 6594 if test $found = "no" ; then 6595 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6596 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6597 fi 6598 6599 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6600 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6601 fi 6602 6603 CFLAGS="$CFLAGS -Wbad-function-cast" 6604 6605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6606printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 6607 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6608 if eval test \${$cacheid+y} 6609then : 6610 printf %s "(cached) " >&6 6611else case e in #( 6612 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6613/* end confdefs.h. */ 6614int i; 6615int 6616main (void) 6617{ 6618 6619 ; 6620 return 0; 6621} 6622_ACEOF 6623if ac_fn_c_try_link "$LINENO" 6624then : 6625 eval $cacheid=yes 6626else case e in #( 6627 e) eval $cacheid=no ;; 6628esac 6629fi 6630rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6631 conftest$ac_exeext conftest.$ac_ext ;; 6632esac 6633fi 6634 6635 6636 CFLAGS="$xorg_testset_save_CFLAGS" 6637 6638 eval supported=\$$cacheid 6639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6640printf "%s\n" "$supported" >&6; } 6641 if test "$supported" = "yes" ; then 6642 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6643 found="yes" 6644 fi 6645 fi 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661xorg_testset_save_CFLAGS="$CFLAGS" 6662 6663if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6664 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6666printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6667if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6668then : 6669 printf %s "(cached) " >&6 6670else case e in #( 6671 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6672/* end confdefs.h. */ 6673int i; 6674_ACEOF 6675if ac_fn_c_try_compile "$LINENO" 6676then : 6677 xorg_cv_cc_flag_unknown_warning_option=yes 6678else case e in #( 6679 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6680esac 6681fi 6682rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6683esac 6684fi 6685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6686printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6687 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6688 CFLAGS="$xorg_testset_save_CFLAGS" 6689fi 6690 6691if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6692 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6693 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6694 fi 6695 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6697printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6698if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6699then : 6700 printf %s "(cached) " >&6 6701else case e in #( 6702 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6703/* end confdefs.h. */ 6704int i; 6705_ACEOF 6706if ac_fn_c_try_compile "$LINENO" 6707then : 6708 xorg_cv_cc_flag_unused_command_line_argument=yes 6709else case e in #( 6710 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6711esac 6712fi 6713rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6714esac 6715fi 6716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6717printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6718 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6719 CFLAGS="$xorg_testset_save_CFLAGS" 6720fi 6721 6722found="no" 6723 6724 if test $found = "no" ; then 6725 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6726 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6727 fi 6728 6729 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6730 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6731 fi 6732 6733 CFLAGS="$CFLAGS -Wold-style-definition" 6734 6735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6736printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6737 cacheid=xorg_cv_cc_flag__Wold_style_definition 6738 if eval test \${$cacheid+y} 6739then : 6740 printf %s "(cached) " >&6 6741else case e in #( 6742 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6743/* end confdefs.h. */ 6744int i; 6745int 6746main (void) 6747{ 6748 6749 ; 6750 return 0; 6751} 6752_ACEOF 6753if ac_fn_c_try_link "$LINENO" 6754then : 6755 eval $cacheid=yes 6756else case e in #( 6757 e) eval $cacheid=no ;; 6758esac 6759fi 6760rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6761 conftest$ac_exeext conftest.$ac_ext ;; 6762esac 6763fi 6764 6765 6766 CFLAGS="$xorg_testset_save_CFLAGS" 6767 6768 eval supported=\$$cacheid 6769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6770printf "%s\n" "$supported" >&6; } 6771 if test "$supported" = "yes" ; then 6772 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6773 found="yes" 6774 fi 6775 fi 6776 6777 if test $found = "no" ; then 6778 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6779 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6780 fi 6781 6782 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6783 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6784 fi 6785 6786 CFLAGS="$CFLAGS -fd" 6787 6788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6789printf %s "checking if $CC supports -fd... " >&6; } 6790 cacheid=xorg_cv_cc_flag__fd 6791 if eval test \${$cacheid+y} 6792then : 6793 printf %s "(cached) " >&6 6794else case e in #( 6795 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6796/* end confdefs.h. */ 6797int i; 6798int 6799main (void) 6800{ 6801 6802 ; 6803 return 0; 6804} 6805_ACEOF 6806if ac_fn_c_try_link "$LINENO" 6807then : 6808 eval $cacheid=yes 6809else case e in #( 6810 e) eval $cacheid=no ;; 6811esac 6812fi 6813rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6814 conftest$ac_exeext conftest.$ac_ext ;; 6815esac 6816fi 6817 6818 6819 CFLAGS="$xorg_testset_save_CFLAGS" 6820 6821 eval supported=\$$cacheid 6822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6823printf "%s\n" "$supported" >&6; } 6824 if test "$supported" = "yes" ; then 6825 BASE_CFLAGS="$BASE_CFLAGS -fd" 6826 found="yes" 6827 fi 6828 fi 6829 6830 6831 6832 6833 6834# This chunk adds additional warnings that could catch undesired effects. 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848xorg_testset_save_CFLAGS="$CFLAGS" 6849 6850if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6851 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6853printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6854if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6855then : 6856 printf %s "(cached) " >&6 6857else case e in #( 6858 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6859/* end confdefs.h. */ 6860int i; 6861_ACEOF 6862if ac_fn_c_try_compile "$LINENO" 6863then : 6864 xorg_cv_cc_flag_unknown_warning_option=yes 6865else case e in #( 6866 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6867esac 6868fi 6869rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6870esac 6871fi 6872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6873printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6874 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6875 CFLAGS="$xorg_testset_save_CFLAGS" 6876fi 6877 6878if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6879 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6880 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6881 fi 6882 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6884printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6885if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6886then : 6887 printf %s "(cached) " >&6 6888else case e in #( 6889 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6890/* end confdefs.h. */ 6891int i; 6892_ACEOF 6893if ac_fn_c_try_compile "$LINENO" 6894then : 6895 xorg_cv_cc_flag_unused_command_line_argument=yes 6896else case e in #( 6897 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6898esac 6899fi 6900rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6901esac 6902fi 6903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6904printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6905 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6906 CFLAGS="$xorg_testset_save_CFLAGS" 6907fi 6908 6909found="no" 6910 6911 if test $found = "no" ; then 6912 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6913 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6914 fi 6915 6916 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6917 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6918 fi 6919 6920 CFLAGS="$CFLAGS -Wunused" 6921 6922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6923printf %s "checking if $CC supports -Wunused... " >&6; } 6924 cacheid=xorg_cv_cc_flag__Wunused 6925 if eval test \${$cacheid+y} 6926then : 6927 printf %s "(cached) " >&6 6928else case e in #( 6929 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6930/* end confdefs.h. */ 6931int i; 6932int 6933main (void) 6934{ 6935 6936 ; 6937 return 0; 6938} 6939_ACEOF 6940if ac_fn_c_try_link "$LINENO" 6941then : 6942 eval $cacheid=yes 6943else case e in #( 6944 e) eval $cacheid=no ;; 6945esac 6946fi 6947rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6948 conftest$ac_exeext conftest.$ac_ext ;; 6949esac 6950fi 6951 6952 6953 CFLAGS="$xorg_testset_save_CFLAGS" 6954 6955 eval supported=\$$cacheid 6956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6957printf "%s\n" "$supported" >&6; } 6958 if test "$supported" = "yes" ; then 6959 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6960 found="yes" 6961 fi 6962 fi 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978xorg_testset_save_CFLAGS="$CFLAGS" 6979 6980if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6981 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6983printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6984if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6985then : 6986 printf %s "(cached) " >&6 6987else case e in #( 6988 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6989/* end confdefs.h. */ 6990int i; 6991_ACEOF 6992if ac_fn_c_try_compile "$LINENO" 6993then : 6994 xorg_cv_cc_flag_unknown_warning_option=yes 6995else case e in #( 6996 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6997esac 6998fi 6999rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7000esac 7001fi 7002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7003printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7004 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7005 CFLAGS="$xorg_testset_save_CFLAGS" 7006fi 7007 7008if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7009 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7010 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7011 fi 7012 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7014printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7015if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7016then : 7017 printf %s "(cached) " >&6 7018else case e in #( 7019 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7020/* end confdefs.h. */ 7021int i; 7022_ACEOF 7023if ac_fn_c_try_compile "$LINENO" 7024then : 7025 xorg_cv_cc_flag_unused_command_line_argument=yes 7026else case e in #( 7027 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7028esac 7029fi 7030rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7031esac 7032fi 7033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7034printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7035 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7036 CFLAGS="$xorg_testset_save_CFLAGS" 7037fi 7038 7039found="no" 7040 7041 if test $found = "no" ; then 7042 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7043 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7044 fi 7045 7046 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7047 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7048 fi 7049 7050 CFLAGS="$CFLAGS -Wuninitialized" 7051 7052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 7053printf %s "checking if $CC supports -Wuninitialized... " >&6; } 7054 cacheid=xorg_cv_cc_flag__Wuninitialized 7055 if eval test \${$cacheid+y} 7056then : 7057 printf %s "(cached) " >&6 7058else case e in #( 7059 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7060/* end confdefs.h. */ 7061int i; 7062int 7063main (void) 7064{ 7065 7066 ; 7067 return 0; 7068} 7069_ACEOF 7070if ac_fn_c_try_link "$LINENO" 7071then : 7072 eval $cacheid=yes 7073else case e in #( 7074 e) eval $cacheid=no ;; 7075esac 7076fi 7077rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7078 conftest$ac_exeext conftest.$ac_ext ;; 7079esac 7080fi 7081 7082 7083 CFLAGS="$xorg_testset_save_CFLAGS" 7084 7085 eval supported=\$$cacheid 7086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7087printf "%s\n" "$supported" >&6; } 7088 if test "$supported" = "yes" ; then 7089 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 7090 found="yes" 7091 fi 7092 fi 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108xorg_testset_save_CFLAGS="$CFLAGS" 7109 7110if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7111 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7113printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7114if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7115then : 7116 printf %s "(cached) " >&6 7117else case e in #( 7118 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7119/* end confdefs.h. */ 7120int i; 7121_ACEOF 7122if ac_fn_c_try_compile "$LINENO" 7123then : 7124 xorg_cv_cc_flag_unknown_warning_option=yes 7125else case e in #( 7126 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7127esac 7128fi 7129rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7130esac 7131fi 7132{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7133printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7134 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7135 CFLAGS="$xorg_testset_save_CFLAGS" 7136fi 7137 7138if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7139 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7140 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7141 fi 7142 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7144printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7145if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7146then : 7147 printf %s "(cached) " >&6 7148else case e in #( 7149 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7150/* end confdefs.h. */ 7151int i; 7152_ACEOF 7153if ac_fn_c_try_compile "$LINENO" 7154then : 7155 xorg_cv_cc_flag_unused_command_line_argument=yes 7156else case e in #( 7157 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7158esac 7159fi 7160rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7161esac 7162fi 7163{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7164printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7165 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7166 CFLAGS="$xorg_testset_save_CFLAGS" 7167fi 7168 7169found="no" 7170 7171 if test $found = "no" ; then 7172 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7173 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7174 fi 7175 7176 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7177 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7178 fi 7179 7180 CFLAGS="$CFLAGS -Wshadow" 7181 7182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 7183printf %s "checking if $CC supports -Wshadow... " >&6; } 7184 cacheid=xorg_cv_cc_flag__Wshadow 7185 if eval test \${$cacheid+y} 7186then : 7187 printf %s "(cached) " >&6 7188else case e in #( 7189 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7190/* end confdefs.h. */ 7191int i; 7192int 7193main (void) 7194{ 7195 7196 ; 7197 return 0; 7198} 7199_ACEOF 7200if ac_fn_c_try_link "$LINENO" 7201then : 7202 eval $cacheid=yes 7203else case e in #( 7204 e) eval $cacheid=no ;; 7205esac 7206fi 7207rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7208 conftest$ac_exeext conftest.$ac_ext ;; 7209esac 7210fi 7211 7212 7213 CFLAGS="$xorg_testset_save_CFLAGS" 7214 7215 eval supported=\$$cacheid 7216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7217printf "%s\n" "$supported" >&6; } 7218 if test "$supported" = "yes" ; then 7219 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 7220 found="yes" 7221 fi 7222 fi 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238xorg_testset_save_CFLAGS="$CFLAGS" 7239 7240if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7241 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7243printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7244if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7245then : 7246 printf %s "(cached) " >&6 7247else case e in #( 7248 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7249/* end confdefs.h. */ 7250int i; 7251_ACEOF 7252if ac_fn_c_try_compile "$LINENO" 7253then : 7254 xorg_cv_cc_flag_unknown_warning_option=yes 7255else case e in #( 7256 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7257esac 7258fi 7259rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7260esac 7261fi 7262{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7263printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7264 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7265 CFLAGS="$xorg_testset_save_CFLAGS" 7266fi 7267 7268if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7269 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7270 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7271 fi 7272 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7274printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7275if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7276then : 7277 printf %s "(cached) " >&6 7278else case e in #( 7279 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7280/* end confdefs.h. */ 7281int i; 7282_ACEOF 7283if ac_fn_c_try_compile "$LINENO" 7284then : 7285 xorg_cv_cc_flag_unused_command_line_argument=yes 7286else case e in #( 7287 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7288esac 7289fi 7290rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7291esac 7292fi 7293{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7294printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7295 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7296 CFLAGS="$xorg_testset_save_CFLAGS" 7297fi 7298 7299found="no" 7300 7301 if test $found = "no" ; then 7302 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7303 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7304 fi 7305 7306 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7307 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7308 fi 7309 7310 CFLAGS="$CFLAGS -Wmissing-noreturn" 7311 7312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 7313printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 7314 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 7315 if eval test \${$cacheid+y} 7316then : 7317 printf %s "(cached) " >&6 7318else case e in #( 7319 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7320/* end confdefs.h. */ 7321int i; 7322int 7323main (void) 7324{ 7325 7326 ; 7327 return 0; 7328} 7329_ACEOF 7330if ac_fn_c_try_link "$LINENO" 7331then : 7332 eval $cacheid=yes 7333else case e in #( 7334 e) eval $cacheid=no ;; 7335esac 7336fi 7337rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7338 conftest$ac_exeext conftest.$ac_ext ;; 7339esac 7340fi 7341 7342 7343 CFLAGS="$xorg_testset_save_CFLAGS" 7344 7345 eval supported=\$$cacheid 7346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7347printf "%s\n" "$supported" >&6; } 7348 if test "$supported" = "yes" ; then 7349 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 7350 found="yes" 7351 fi 7352 fi 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368xorg_testset_save_CFLAGS="$CFLAGS" 7369 7370if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7371 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7373printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7374if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7375then : 7376 printf %s "(cached) " >&6 7377else case e in #( 7378 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7379/* end confdefs.h. */ 7380int i; 7381_ACEOF 7382if ac_fn_c_try_compile "$LINENO" 7383then : 7384 xorg_cv_cc_flag_unknown_warning_option=yes 7385else case e in #( 7386 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7387esac 7388fi 7389rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7390esac 7391fi 7392{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7393printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7394 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7395 CFLAGS="$xorg_testset_save_CFLAGS" 7396fi 7397 7398if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7399 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7400 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7401 fi 7402 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7404printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7405if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7406then : 7407 printf %s "(cached) " >&6 7408else case e in #( 7409 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7410/* end confdefs.h. */ 7411int i; 7412_ACEOF 7413if ac_fn_c_try_compile "$LINENO" 7414then : 7415 xorg_cv_cc_flag_unused_command_line_argument=yes 7416else case e in #( 7417 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7418esac 7419fi 7420rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7421esac 7422fi 7423{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7424printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7425 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7426 CFLAGS="$xorg_testset_save_CFLAGS" 7427fi 7428 7429found="no" 7430 7431 if test $found = "no" ; then 7432 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7433 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7434 fi 7435 7436 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7437 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7438 fi 7439 7440 CFLAGS="$CFLAGS -Wmissing-format-attribute" 7441 7442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 7443printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 7444 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 7445 if eval test \${$cacheid+y} 7446then : 7447 printf %s "(cached) " >&6 7448else case e in #( 7449 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7450/* end confdefs.h. */ 7451int i; 7452int 7453main (void) 7454{ 7455 7456 ; 7457 return 0; 7458} 7459_ACEOF 7460if ac_fn_c_try_link "$LINENO" 7461then : 7462 eval $cacheid=yes 7463else case e in #( 7464 e) eval $cacheid=no ;; 7465esac 7466fi 7467rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7468 conftest$ac_exeext conftest.$ac_ext ;; 7469esac 7470fi 7471 7472 7473 CFLAGS="$xorg_testset_save_CFLAGS" 7474 7475 eval supported=\$$cacheid 7476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7477printf "%s\n" "$supported" >&6; } 7478 if test "$supported" = "yes" ; then 7479 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 7480 found="yes" 7481 fi 7482 fi 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498xorg_testset_save_CFLAGS="$CFLAGS" 7499 7500if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7501 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7503printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7504if test ${xorg_cv_cc_flag_unknown_warning_option+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_unknown_warning_option=yes 7515else case e in #( 7516 e) xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5 7523printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7524 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7525 CFLAGS="$xorg_testset_save_CFLAGS" 7526fi 7527 7528if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7529 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7530 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7531 fi 7532 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7534printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7535if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7536then : 7537 printf %s "(cached) " >&6 7538else case e in #( 7539 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7540/* end confdefs.h. */ 7541int i; 7542_ACEOF 7543if ac_fn_c_try_compile "$LINENO" 7544then : 7545 xorg_cv_cc_flag_unused_command_line_argument=yes 7546else case e in #( 7547 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7548esac 7549fi 7550rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7551esac 7552fi 7553{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7554printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7555 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7556 CFLAGS="$xorg_testset_save_CFLAGS" 7557fi 7558 7559found="no" 7560 7561 if test $found = "no" ; then 7562 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7563 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7564 fi 7565 7566 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7567 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7568 fi 7569 7570 CFLAGS="$CFLAGS -Wredundant-decls" 7571 7572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7573printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7574 cacheid=xorg_cv_cc_flag__Wredundant_decls 7575 if eval test \${$cacheid+y} 7576then : 7577 printf %s "(cached) " >&6 7578else case e in #( 7579 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7580/* end confdefs.h. */ 7581int i; 7582int 7583main (void) 7584{ 7585 7586 ; 7587 return 0; 7588} 7589_ACEOF 7590if ac_fn_c_try_link "$LINENO" 7591then : 7592 eval $cacheid=yes 7593else case e in #( 7594 e) eval $cacheid=no ;; 7595esac 7596fi 7597rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7598 conftest$ac_exeext conftest.$ac_ext ;; 7599esac 7600fi 7601 7602 7603 CFLAGS="$xorg_testset_save_CFLAGS" 7604 7605 eval supported=\$$cacheid 7606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7607printf "%s\n" "$supported" >&6; } 7608 if test "$supported" = "yes" ; then 7609 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7610 found="yes" 7611 fi 7612 fi 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628xorg_testset_save_CFLAGS="$CFLAGS" 7629 7630if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7631 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7633printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7634if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7635then : 7636 printf %s "(cached) " >&6 7637else case e in #( 7638 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7639/* end confdefs.h. */ 7640int i; 7641_ACEOF 7642if ac_fn_c_try_compile "$LINENO" 7643then : 7644 xorg_cv_cc_flag_unknown_warning_option=yes 7645else case e in #( 7646 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7647esac 7648fi 7649rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7650esac 7651fi 7652{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7653printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7654 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7655 CFLAGS="$xorg_testset_save_CFLAGS" 7656fi 7657 7658if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7659 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7660 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7661 fi 7662 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7664printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7665if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7666then : 7667 printf %s "(cached) " >&6 7668else case e in #( 7669 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7670/* end confdefs.h. */ 7671int i; 7672_ACEOF 7673if ac_fn_c_try_compile "$LINENO" 7674then : 7675 xorg_cv_cc_flag_unused_command_line_argument=yes 7676else case e in #( 7677 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7678esac 7679fi 7680rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7681esac 7682fi 7683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7684printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7685 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7686 CFLAGS="$xorg_testset_save_CFLAGS" 7687fi 7688 7689found="no" 7690 7691 if test $found = "no" ; then 7692 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7693 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7694 fi 7695 7696 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7697 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7698 fi 7699 7700 CFLAGS="$CFLAGS -Wlogical-op" 7701 7702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7703printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7704 cacheid=xorg_cv_cc_flag__Wlogical_op 7705 if eval test \${$cacheid+y} 7706then : 7707 printf %s "(cached) " >&6 7708else case e in #( 7709 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7710/* end confdefs.h. */ 7711int i; 7712int 7713main (void) 7714{ 7715 7716 ; 7717 return 0; 7718} 7719_ACEOF 7720if ac_fn_c_try_link "$LINENO" 7721then : 7722 eval $cacheid=yes 7723else case e in #( 7724 e) eval $cacheid=no ;; 7725esac 7726fi 7727rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7728 conftest$ac_exeext conftest.$ac_ext ;; 7729esac 7730fi 7731 7732 7733 CFLAGS="$xorg_testset_save_CFLAGS" 7734 7735 eval supported=\$$cacheid 7736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7737printf "%s\n" "$supported" >&6; } 7738 if test "$supported" = "yes" ; then 7739 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7740 found="yes" 7741 fi 7742 fi 7743 7744 7745 7746# These are currently disabled because they are noisy. They will be enabled 7747# in the future once the codebase is sufficiently modernized to silence 7748# them. For now, I don't want them to drown out the other warnings. 7749# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7750# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7751# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7752 7753# Turn some warnings into errors, so we don't accidentally get successful builds 7754# when there are problems that should be fixed. 7755 7756if test "x$SELECTIVE_WERROR" = "xyes" ; then 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770xorg_testset_save_CFLAGS="$CFLAGS" 7771 7772if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7773 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7775printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7776if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7777then : 7778 printf %s "(cached) " >&6 7779else case e in #( 7780 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7781/* end confdefs.h. */ 7782int i; 7783_ACEOF 7784if ac_fn_c_try_compile "$LINENO" 7785then : 7786 xorg_cv_cc_flag_unknown_warning_option=yes 7787else case e in #( 7788 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7789esac 7790fi 7791rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7792esac 7793fi 7794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7795printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7796 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7797 CFLAGS="$xorg_testset_save_CFLAGS" 7798fi 7799 7800if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7801 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7802 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7803 fi 7804 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7806printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7807if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7808then : 7809 printf %s "(cached) " >&6 7810else case e in #( 7811 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7812/* end confdefs.h. */ 7813int i; 7814_ACEOF 7815if ac_fn_c_try_compile "$LINENO" 7816then : 7817 xorg_cv_cc_flag_unused_command_line_argument=yes 7818else case e in #( 7819 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7820esac 7821fi 7822rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7823esac 7824fi 7825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7826printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7827 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7828 CFLAGS="$xorg_testset_save_CFLAGS" 7829fi 7830 7831found="no" 7832 7833 if test $found = "no" ; then 7834 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7835 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7836 fi 7837 7838 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7839 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7840 fi 7841 7842 CFLAGS="$CFLAGS -Werror=implicit" 7843 7844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7845printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7846 cacheid=xorg_cv_cc_flag__Werror_implicit 7847 if eval test \${$cacheid+y} 7848then : 7849 printf %s "(cached) " >&6 7850else case e in #( 7851 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7852/* end confdefs.h. */ 7853int i; 7854int 7855main (void) 7856{ 7857 7858 ; 7859 return 0; 7860} 7861_ACEOF 7862if ac_fn_c_try_link "$LINENO" 7863then : 7864 eval $cacheid=yes 7865else case e in #( 7866 e) eval $cacheid=no ;; 7867esac 7868fi 7869rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7870 conftest$ac_exeext conftest.$ac_ext ;; 7871esac 7872fi 7873 7874 7875 CFLAGS="$xorg_testset_save_CFLAGS" 7876 7877 eval supported=\$$cacheid 7878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7879printf "%s\n" "$supported" >&6; } 7880 if test "$supported" = "yes" ; then 7881 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7882 found="yes" 7883 fi 7884 fi 7885 7886 if test $found = "no" ; then 7887 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7888 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7889 fi 7890 7891 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7892 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7893 fi 7894 7895 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7896 7897 { 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 7898printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7899 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7900 if eval test \${$cacheid+y} 7901then : 7902 printf %s "(cached) " >&6 7903else case e in #( 7904 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7905/* end confdefs.h. */ 7906int i; 7907int 7908main (void) 7909{ 7910 7911 ; 7912 return 0; 7913} 7914_ACEOF 7915if ac_fn_c_try_link "$LINENO" 7916then : 7917 eval $cacheid=yes 7918else case e in #( 7919 e) eval $cacheid=no ;; 7920esac 7921fi 7922rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7923 conftest$ac_exeext conftest.$ac_ext ;; 7924esac 7925fi 7926 7927 7928 CFLAGS="$xorg_testset_save_CFLAGS" 7929 7930 eval supported=\$$cacheid 7931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7932printf "%s\n" "$supported" >&6; } 7933 if test "$supported" = "yes" ; then 7934 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7935 found="yes" 7936 fi 7937 fi 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953xorg_testset_save_CFLAGS="$CFLAGS" 7954 7955if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7956 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7958printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7959if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7960then : 7961 printf %s "(cached) " >&6 7962else case e in #( 7963 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7964/* end confdefs.h. */ 7965int i; 7966_ACEOF 7967if ac_fn_c_try_compile "$LINENO" 7968then : 7969 xorg_cv_cc_flag_unknown_warning_option=yes 7970else case e in #( 7971 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7972esac 7973fi 7974rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7975esac 7976fi 7977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7978printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7979 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7980 CFLAGS="$xorg_testset_save_CFLAGS" 7981fi 7982 7983if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7984 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7985 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7986 fi 7987 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7989printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7990if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7991then : 7992 printf %s "(cached) " >&6 7993else case e in #( 7994 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7995/* end confdefs.h. */ 7996int i; 7997_ACEOF 7998if ac_fn_c_try_compile "$LINENO" 7999then : 8000 xorg_cv_cc_flag_unused_command_line_argument=yes 8001else case e in #( 8002 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8003esac 8004fi 8005rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8006esac 8007fi 8008{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8009printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8010 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8011 CFLAGS="$xorg_testset_save_CFLAGS" 8012fi 8013 8014found="no" 8015 8016 if test $found = "no" ; then 8017 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8018 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8019 fi 8020 8021 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8023 fi 8024 8025 CFLAGS="$CFLAGS -Werror=nonnull" 8026 8027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 8028printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 8029 cacheid=xorg_cv_cc_flag__Werror_nonnull 8030 if eval test \${$cacheid+y} 8031then : 8032 printf %s "(cached) " >&6 8033else case e in #( 8034 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8035/* end confdefs.h. */ 8036int i; 8037int 8038main (void) 8039{ 8040 8041 ; 8042 return 0; 8043} 8044_ACEOF 8045if ac_fn_c_try_link "$LINENO" 8046then : 8047 eval $cacheid=yes 8048else case e in #( 8049 e) eval $cacheid=no ;; 8050esac 8051fi 8052rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8053 conftest$ac_exeext conftest.$ac_ext ;; 8054esac 8055fi 8056 8057 8058 CFLAGS="$xorg_testset_save_CFLAGS" 8059 8060 eval supported=\$$cacheid 8061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8062printf "%s\n" "$supported" >&6; } 8063 if test "$supported" = "yes" ; then 8064 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 8065 found="yes" 8066 fi 8067 fi 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083xorg_testset_save_CFLAGS="$CFLAGS" 8084 8085if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8086 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8088printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8089if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8090then : 8091 printf %s "(cached) " >&6 8092else case e in #( 8093 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8094/* end confdefs.h. */ 8095int i; 8096_ACEOF 8097if ac_fn_c_try_compile "$LINENO" 8098then : 8099 xorg_cv_cc_flag_unknown_warning_option=yes 8100else case e in #( 8101 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8102esac 8103fi 8104rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8105esac 8106fi 8107{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8108printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8109 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8110 CFLAGS="$xorg_testset_save_CFLAGS" 8111fi 8112 8113if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8114 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8115 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8116 fi 8117 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8119printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8120if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8121then : 8122 printf %s "(cached) " >&6 8123else case e in #( 8124 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8125/* end confdefs.h. */ 8126int i; 8127_ACEOF 8128if ac_fn_c_try_compile "$LINENO" 8129then : 8130 xorg_cv_cc_flag_unused_command_line_argument=yes 8131else case e in #( 8132 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8133esac 8134fi 8135rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8136esac 8137fi 8138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8139printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8140 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8141 CFLAGS="$xorg_testset_save_CFLAGS" 8142fi 8143 8144found="no" 8145 8146 if test $found = "no" ; then 8147 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8148 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8149 fi 8150 8151 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8152 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8153 fi 8154 8155 CFLAGS="$CFLAGS -Werror=init-self" 8156 8157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 8158printf %s "checking if $CC supports -Werror=init-self... " >&6; } 8159 cacheid=xorg_cv_cc_flag__Werror_init_self 8160 if eval test \${$cacheid+y} 8161then : 8162 printf %s "(cached) " >&6 8163else case e in #( 8164 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8165/* end confdefs.h. */ 8166int i; 8167int 8168main (void) 8169{ 8170 8171 ; 8172 return 0; 8173} 8174_ACEOF 8175if ac_fn_c_try_link "$LINENO" 8176then : 8177 eval $cacheid=yes 8178else case e in #( 8179 e) eval $cacheid=no ;; 8180esac 8181fi 8182rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8183 conftest$ac_exeext conftest.$ac_ext ;; 8184esac 8185fi 8186 8187 8188 CFLAGS="$xorg_testset_save_CFLAGS" 8189 8190 eval supported=\$$cacheid 8191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8192printf "%s\n" "$supported" >&6; } 8193 if test "$supported" = "yes" ; then 8194 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 8195 found="yes" 8196 fi 8197 fi 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213xorg_testset_save_CFLAGS="$CFLAGS" 8214 8215if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8216 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8218printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8219if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8220then : 8221 printf %s "(cached) " >&6 8222else case e in #( 8223 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8224/* end confdefs.h. */ 8225int i; 8226_ACEOF 8227if ac_fn_c_try_compile "$LINENO" 8228then : 8229 xorg_cv_cc_flag_unknown_warning_option=yes 8230else case e in #( 8231 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8232esac 8233fi 8234rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8235esac 8236fi 8237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8238printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8239 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8240 CFLAGS="$xorg_testset_save_CFLAGS" 8241fi 8242 8243if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8244 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8245 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8246 fi 8247 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8249printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8250if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8251then : 8252 printf %s "(cached) " >&6 8253else case e in #( 8254 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8255/* end confdefs.h. */ 8256int i; 8257_ACEOF 8258if ac_fn_c_try_compile "$LINENO" 8259then : 8260 xorg_cv_cc_flag_unused_command_line_argument=yes 8261else case e in #( 8262 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8263esac 8264fi 8265rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8266esac 8267fi 8268{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8269printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8270 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8271 CFLAGS="$xorg_testset_save_CFLAGS" 8272fi 8273 8274found="no" 8275 8276 if test $found = "no" ; then 8277 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8278 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8279 fi 8280 8281 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8282 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8283 fi 8284 8285 CFLAGS="$CFLAGS -Werror=main" 8286 8287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 8288printf %s "checking if $CC supports -Werror=main... " >&6; } 8289 cacheid=xorg_cv_cc_flag__Werror_main 8290 if eval test \${$cacheid+y} 8291then : 8292 printf %s "(cached) " >&6 8293else case e in #( 8294 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8295/* end confdefs.h. */ 8296int i; 8297int 8298main (void) 8299{ 8300 8301 ; 8302 return 0; 8303} 8304_ACEOF 8305if ac_fn_c_try_link "$LINENO" 8306then : 8307 eval $cacheid=yes 8308else case e in #( 8309 e) eval $cacheid=no ;; 8310esac 8311fi 8312rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8313 conftest$ac_exeext conftest.$ac_ext ;; 8314esac 8315fi 8316 8317 8318 CFLAGS="$xorg_testset_save_CFLAGS" 8319 8320 eval supported=\$$cacheid 8321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8322printf "%s\n" "$supported" >&6; } 8323 if test "$supported" = "yes" ; then 8324 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 8325 found="yes" 8326 fi 8327 fi 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343xorg_testset_save_CFLAGS="$CFLAGS" 8344 8345if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8346 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8348printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8349if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8350then : 8351 printf %s "(cached) " >&6 8352else case e in #( 8353 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8354/* end confdefs.h. */ 8355int i; 8356_ACEOF 8357if ac_fn_c_try_compile "$LINENO" 8358then : 8359 xorg_cv_cc_flag_unknown_warning_option=yes 8360else case e in #( 8361 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8362esac 8363fi 8364rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8365esac 8366fi 8367{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8368printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8369 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8370 CFLAGS="$xorg_testset_save_CFLAGS" 8371fi 8372 8373if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8374 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8375 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8376 fi 8377 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8379printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8380if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8381then : 8382 printf %s "(cached) " >&6 8383else case e in #( 8384 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8385/* end confdefs.h. */ 8386int i; 8387_ACEOF 8388if ac_fn_c_try_compile "$LINENO" 8389then : 8390 xorg_cv_cc_flag_unused_command_line_argument=yes 8391else case e in #( 8392 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8393esac 8394fi 8395rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8396esac 8397fi 8398{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8399printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8400 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8401 CFLAGS="$xorg_testset_save_CFLAGS" 8402fi 8403 8404found="no" 8405 8406 if test $found = "no" ; then 8407 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8408 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8409 fi 8410 8411 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8412 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8413 fi 8414 8415 CFLAGS="$CFLAGS -Werror=missing-braces" 8416 8417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 8418printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 8419 cacheid=xorg_cv_cc_flag__Werror_missing_braces 8420 if eval test \${$cacheid+y} 8421then : 8422 printf %s "(cached) " >&6 8423else case e in #( 8424 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8425/* end confdefs.h. */ 8426int i; 8427int 8428main (void) 8429{ 8430 8431 ; 8432 return 0; 8433} 8434_ACEOF 8435if ac_fn_c_try_link "$LINENO" 8436then : 8437 eval $cacheid=yes 8438else case e in #( 8439 e) eval $cacheid=no ;; 8440esac 8441fi 8442rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8443 conftest$ac_exeext conftest.$ac_ext ;; 8444esac 8445fi 8446 8447 8448 CFLAGS="$xorg_testset_save_CFLAGS" 8449 8450 eval supported=\$$cacheid 8451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8452printf "%s\n" "$supported" >&6; } 8453 if test "$supported" = "yes" ; then 8454 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 8455 found="yes" 8456 fi 8457 fi 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473xorg_testset_save_CFLAGS="$CFLAGS" 8474 8475if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8476 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8478printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8479if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8480then : 8481 printf %s "(cached) " >&6 8482else case e in #( 8483 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8484/* end confdefs.h. */ 8485int i; 8486_ACEOF 8487if ac_fn_c_try_compile "$LINENO" 8488then : 8489 xorg_cv_cc_flag_unknown_warning_option=yes 8490else case e in #( 8491 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8492esac 8493fi 8494rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8495esac 8496fi 8497{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8498printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8499 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8500 CFLAGS="$xorg_testset_save_CFLAGS" 8501fi 8502 8503if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8505 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8506 fi 8507 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8509printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8510if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8511then : 8512 printf %s "(cached) " >&6 8513else case e in #( 8514 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8515/* end confdefs.h. */ 8516int i; 8517_ACEOF 8518if ac_fn_c_try_compile "$LINENO" 8519then : 8520 xorg_cv_cc_flag_unused_command_line_argument=yes 8521else case e in #( 8522 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8523esac 8524fi 8525rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8526esac 8527fi 8528{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8529printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8530 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8531 CFLAGS="$xorg_testset_save_CFLAGS" 8532fi 8533 8534found="no" 8535 8536 if test $found = "no" ; then 8537 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8538 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8539 fi 8540 8541 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8542 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8543 fi 8544 8545 CFLAGS="$CFLAGS -Werror=sequence-point" 8546 8547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8548printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 8549 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8550 if eval test \${$cacheid+y} 8551then : 8552 printf %s "(cached) " >&6 8553else case e in #( 8554 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8555/* end confdefs.h. */ 8556int i; 8557int 8558main (void) 8559{ 8560 8561 ; 8562 return 0; 8563} 8564_ACEOF 8565if ac_fn_c_try_link "$LINENO" 8566then : 8567 eval $cacheid=yes 8568else case e in #( 8569 e) eval $cacheid=no ;; 8570esac 8571fi 8572rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8573 conftest$ac_exeext conftest.$ac_ext ;; 8574esac 8575fi 8576 8577 8578 CFLAGS="$xorg_testset_save_CFLAGS" 8579 8580 eval supported=\$$cacheid 8581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8582printf "%s\n" "$supported" >&6; } 8583 if test "$supported" = "yes" ; then 8584 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8585 found="yes" 8586 fi 8587 fi 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603xorg_testset_save_CFLAGS="$CFLAGS" 8604 8605if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8606 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8608printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8609if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8610then : 8611 printf %s "(cached) " >&6 8612else case e in #( 8613 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8614/* end confdefs.h. */ 8615int i; 8616_ACEOF 8617if ac_fn_c_try_compile "$LINENO" 8618then : 8619 xorg_cv_cc_flag_unknown_warning_option=yes 8620else case e in #( 8621 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8622esac 8623fi 8624rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8625esac 8626fi 8627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8628printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8629 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8630 CFLAGS="$xorg_testset_save_CFLAGS" 8631fi 8632 8633if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8634 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8635 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8636 fi 8637 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8639printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8640if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8641then : 8642 printf %s "(cached) " >&6 8643else case e in #( 8644 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8645/* end confdefs.h. */ 8646int i; 8647_ACEOF 8648if ac_fn_c_try_compile "$LINENO" 8649then : 8650 xorg_cv_cc_flag_unused_command_line_argument=yes 8651else case e in #( 8652 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8653esac 8654fi 8655rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8656esac 8657fi 8658{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8659printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8660 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8661 CFLAGS="$xorg_testset_save_CFLAGS" 8662fi 8663 8664found="no" 8665 8666 if test $found = "no" ; then 8667 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8668 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8669 fi 8670 8671 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8672 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8673 fi 8674 8675 CFLAGS="$CFLAGS -Werror=return-type" 8676 8677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8678printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8679 cacheid=xorg_cv_cc_flag__Werror_return_type 8680 if eval test \${$cacheid+y} 8681then : 8682 printf %s "(cached) " >&6 8683else case e in #( 8684 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8685/* end confdefs.h. */ 8686int i; 8687int 8688main (void) 8689{ 8690 8691 ; 8692 return 0; 8693} 8694_ACEOF 8695if ac_fn_c_try_link "$LINENO" 8696then : 8697 eval $cacheid=yes 8698else case e in #( 8699 e) eval $cacheid=no ;; 8700esac 8701fi 8702rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8703 conftest$ac_exeext conftest.$ac_ext ;; 8704esac 8705fi 8706 8707 8708 CFLAGS="$xorg_testset_save_CFLAGS" 8709 8710 eval supported=\$$cacheid 8711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8712printf "%s\n" "$supported" >&6; } 8713 if test "$supported" = "yes" ; then 8714 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8715 found="yes" 8716 fi 8717 fi 8718 8719 if test $found = "no" ; then 8720 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8721 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8722 fi 8723 8724 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8725 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8726 fi 8727 8728 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8729 8730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8731printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8732 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8733 if eval test \${$cacheid+y} 8734then : 8735 printf %s "(cached) " >&6 8736else case e in #( 8737 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8738/* end confdefs.h. */ 8739int i; 8740int 8741main (void) 8742{ 8743 8744 ; 8745 return 0; 8746} 8747_ACEOF 8748if ac_fn_c_try_link "$LINENO" 8749then : 8750 eval $cacheid=yes 8751else case e in #( 8752 e) eval $cacheid=no ;; 8753esac 8754fi 8755rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8756 conftest$ac_exeext conftest.$ac_ext ;; 8757esac 8758fi 8759 8760 8761 CFLAGS="$xorg_testset_save_CFLAGS" 8762 8763 eval supported=\$$cacheid 8764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8765printf "%s\n" "$supported" >&6; } 8766 if test "$supported" = "yes" ; then 8767 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8768 found="yes" 8769 fi 8770 fi 8771 8772 8773 8774 8775 8776 8777 8778 8779 8780 8781 8782 8783 8784 8785 8786xorg_testset_save_CFLAGS="$CFLAGS" 8787 8788if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8789 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8791printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8792if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8793then : 8794 printf %s "(cached) " >&6 8795else case e in #( 8796 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8797/* end confdefs.h. */ 8798int i; 8799_ACEOF 8800if ac_fn_c_try_compile "$LINENO" 8801then : 8802 xorg_cv_cc_flag_unknown_warning_option=yes 8803else case e in #( 8804 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8805esac 8806fi 8807rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8808esac 8809fi 8810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8811printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8812 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8813 CFLAGS="$xorg_testset_save_CFLAGS" 8814fi 8815 8816if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8817 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8818 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8819 fi 8820 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8822printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8823if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8824then : 8825 printf %s "(cached) " >&6 8826else case e in #( 8827 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8828/* end confdefs.h. */ 8829int i; 8830_ACEOF 8831if ac_fn_c_try_compile "$LINENO" 8832then : 8833 xorg_cv_cc_flag_unused_command_line_argument=yes 8834else case e in #( 8835 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8836esac 8837fi 8838rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8839esac 8840fi 8841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8842printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8843 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8844 CFLAGS="$xorg_testset_save_CFLAGS" 8845fi 8846 8847found="no" 8848 8849 if test $found = "no" ; then 8850 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8851 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8852 fi 8853 8854 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8855 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8856 fi 8857 8858 CFLAGS="$CFLAGS -Werror=trigraphs" 8859 8860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8861printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8862 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8863 if eval test \${$cacheid+y} 8864then : 8865 printf %s "(cached) " >&6 8866else case e in #( 8867 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8868/* end confdefs.h. */ 8869int i; 8870int 8871main (void) 8872{ 8873 8874 ; 8875 return 0; 8876} 8877_ACEOF 8878if ac_fn_c_try_link "$LINENO" 8879then : 8880 eval $cacheid=yes 8881else case e in #( 8882 e) eval $cacheid=no ;; 8883esac 8884fi 8885rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8886 conftest$ac_exeext conftest.$ac_ext ;; 8887esac 8888fi 8889 8890 8891 CFLAGS="$xorg_testset_save_CFLAGS" 8892 8893 eval supported=\$$cacheid 8894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8895printf "%s\n" "$supported" >&6; } 8896 if test "$supported" = "yes" ; then 8897 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8898 found="yes" 8899 fi 8900 fi 8901 8902 8903 8904 8905 8906 8907 8908 8909 8910 8911 8912 8913 8914 8915 8916xorg_testset_save_CFLAGS="$CFLAGS" 8917 8918if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8919 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8921printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8922if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8923then : 8924 printf %s "(cached) " >&6 8925else case e in #( 8926 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8927/* end confdefs.h. */ 8928int i; 8929_ACEOF 8930if ac_fn_c_try_compile "$LINENO" 8931then : 8932 xorg_cv_cc_flag_unknown_warning_option=yes 8933else case e in #( 8934 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8935esac 8936fi 8937rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8938esac 8939fi 8940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8941printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8942 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8943 CFLAGS="$xorg_testset_save_CFLAGS" 8944fi 8945 8946if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8947 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8948 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8949 fi 8950 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8952printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8953if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8954then : 8955 printf %s "(cached) " >&6 8956else case e in #( 8957 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8958/* end confdefs.h. */ 8959int i; 8960_ACEOF 8961if ac_fn_c_try_compile "$LINENO" 8962then : 8963 xorg_cv_cc_flag_unused_command_line_argument=yes 8964else case e in #( 8965 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8966esac 8967fi 8968rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8969esac 8970fi 8971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8972printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8973 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8974 CFLAGS="$xorg_testset_save_CFLAGS" 8975fi 8976 8977found="no" 8978 8979 if test $found = "no" ; then 8980 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8981 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8982 fi 8983 8984 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8985 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8986 fi 8987 8988 CFLAGS="$CFLAGS -Werror=array-bounds" 8989 8990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8991printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8992 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8993 if eval test \${$cacheid+y} 8994then : 8995 printf %s "(cached) " >&6 8996else case e in #( 8997 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8998/* end confdefs.h. */ 8999int i; 9000int 9001main (void) 9002{ 9003 9004 ; 9005 return 0; 9006} 9007_ACEOF 9008if ac_fn_c_try_link "$LINENO" 9009then : 9010 eval $cacheid=yes 9011else case e in #( 9012 e) eval $cacheid=no ;; 9013esac 9014fi 9015rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9016 conftest$ac_exeext conftest.$ac_ext ;; 9017esac 9018fi 9019 9020 9021 CFLAGS="$xorg_testset_save_CFLAGS" 9022 9023 eval supported=\$$cacheid 9024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9025printf "%s\n" "$supported" >&6; } 9026 if test "$supported" = "yes" ; then 9027 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 9028 found="yes" 9029 fi 9030 fi 9031 9032 9033 9034 9035 9036 9037 9038 9039 9040 9041 9042 9043 9044 9045 9046xorg_testset_save_CFLAGS="$CFLAGS" 9047 9048if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9049 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9051printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9052if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9053then : 9054 printf %s "(cached) " >&6 9055else case e in #( 9056 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9057/* end confdefs.h. */ 9058int i; 9059_ACEOF 9060if ac_fn_c_try_compile "$LINENO" 9061then : 9062 xorg_cv_cc_flag_unknown_warning_option=yes 9063else case e in #( 9064 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9065esac 9066fi 9067rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9068esac 9069fi 9070{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9071printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9072 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9073 CFLAGS="$xorg_testset_save_CFLAGS" 9074fi 9075 9076if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9077 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9078 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9079 fi 9080 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9082printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9083if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9084then : 9085 printf %s "(cached) " >&6 9086else case e in #( 9087 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9088/* end confdefs.h. */ 9089int i; 9090_ACEOF 9091if ac_fn_c_try_compile "$LINENO" 9092then : 9093 xorg_cv_cc_flag_unused_command_line_argument=yes 9094else case e in #( 9095 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9096esac 9097fi 9098rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9099esac 9100fi 9101{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9102printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9103 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9104 CFLAGS="$xorg_testset_save_CFLAGS" 9105fi 9106 9107found="no" 9108 9109 if test $found = "no" ; then 9110 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9111 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9112 fi 9113 9114 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9115 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9116 fi 9117 9118 CFLAGS="$CFLAGS -Werror=write-strings" 9119 9120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 9121printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 9122 cacheid=xorg_cv_cc_flag__Werror_write_strings 9123 if eval test \${$cacheid+y} 9124then : 9125 printf %s "(cached) " >&6 9126else case e in #( 9127 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9128/* end confdefs.h. */ 9129int i; 9130int 9131main (void) 9132{ 9133 9134 ; 9135 return 0; 9136} 9137_ACEOF 9138if ac_fn_c_try_link "$LINENO" 9139then : 9140 eval $cacheid=yes 9141else case e in #( 9142 e) eval $cacheid=no ;; 9143esac 9144fi 9145rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9146 conftest$ac_exeext conftest.$ac_ext ;; 9147esac 9148fi 9149 9150 9151 CFLAGS="$xorg_testset_save_CFLAGS" 9152 9153 eval supported=\$$cacheid 9154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9155printf "%s\n" "$supported" >&6; } 9156 if test "$supported" = "yes" ; then 9157 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 9158 found="yes" 9159 fi 9160 fi 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176xorg_testset_save_CFLAGS="$CFLAGS" 9177 9178if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9179 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9181printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9182if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9183then : 9184 printf %s "(cached) " >&6 9185else case e in #( 9186 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9187/* end confdefs.h. */ 9188int i; 9189_ACEOF 9190if ac_fn_c_try_compile "$LINENO" 9191then : 9192 xorg_cv_cc_flag_unknown_warning_option=yes 9193else case e in #( 9194 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9195esac 9196fi 9197rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9198esac 9199fi 9200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9201printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9202 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9203 CFLAGS="$xorg_testset_save_CFLAGS" 9204fi 9205 9206if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9207 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9208 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9209 fi 9210 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9212printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9213if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9214then : 9215 printf %s "(cached) " >&6 9216else case e in #( 9217 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9218/* end confdefs.h. */ 9219int i; 9220_ACEOF 9221if ac_fn_c_try_compile "$LINENO" 9222then : 9223 xorg_cv_cc_flag_unused_command_line_argument=yes 9224else case e in #( 9225 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9226esac 9227fi 9228rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9229esac 9230fi 9231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9232printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9233 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9234 CFLAGS="$xorg_testset_save_CFLAGS" 9235fi 9236 9237found="no" 9238 9239 if test $found = "no" ; then 9240 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9241 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9242 fi 9243 9244 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9245 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9246 fi 9247 9248 CFLAGS="$CFLAGS -Werror=address" 9249 9250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 9251printf %s "checking if $CC supports -Werror=address... " >&6; } 9252 cacheid=xorg_cv_cc_flag__Werror_address 9253 if eval test \${$cacheid+y} 9254then : 9255 printf %s "(cached) " >&6 9256else case e in #( 9257 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9258/* end confdefs.h. */ 9259int i; 9260int 9261main (void) 9262{ 9263 9264 ; 9265 return 0; 9266} 9267_ACEOF 9268if ac_fn_c_try_link "$LINENO" 9269then : 9270 eval $cacheid=yes 9271else case e in #( 9272 e) eval $cacheid=no ;; 9273esac 9274fi 9275rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9276 conftest$ac_exeext conftest.$ac_ext ;; 9277esac 9278fi 9279 9280 9281 CFLAGS="$xorg_testset_save_CFLAGS" 9282 9283 eval supported=\$$cacheid 9284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9285printf "%s\n" "$supported" >&6; } 9286 if test "$supported" = "yes" ; then 9287 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 9288 found="yes" 9289 fi 9290 fi 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306xorg_testset_save_CFLAGS="$CFLAGS" 9307 9308if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9309 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9311printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9312if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9313then : 9314 printf %s "(cached) " >&6 9315else case e in #( 9316 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9317/* end confdefs.h. */ 9318int i; 9319_ACEOF 9320if ac_fn_c_try_compile "$LINENO" 9321then : 9322 xorg_cv_cc_flag_unknown_warning_option=yes 9323else case e in #( 9324 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9325esac 9326fi 9327rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9328esac 9329fi 9330{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9331printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9332 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9333 CFLAGS="$xorg_testset_save_CFLAGS" 9334fi 9335 9336if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9337 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9338 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9339 fi 9340 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9342printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9343if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9344then : 9345 printf %s "(cached) " >&6 9346else case e in #( 9347 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9348/* end confdefs.h. */ 9349int i; 9350_ACEOF 9351if ac_fn_c_try_compile "$LINENO" 9352then : 9353 xorg_cv_cc_flag_unused_command_line_argument=yes 9354else case e in #( 9355 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9356esac 9357fi 9358rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9359esac 9360fi 9361{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9362printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9363 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9364 CFLAGS="$xorg_testset_save_CFLAGS" 9365fi 9366 9367found="no" 9368 9369 if test $found = "no" ; then 9370 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9371 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9372 fi 9373 9374 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9375 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9376 fi 9377 9378 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 9379 9380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 9381printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 9382 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 9383 if eval test \${$cacheid+y} 9384then : 9385 printf %s "(cached) " >&6 9386else case e in #( 9387 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9388/* end confdefs.h. */ 9389int i; 9390int 9391main (void) 9392{ 9393 9394 ; 9395 return 0; 9396} 9397_ACEOF 9398if ac_fn_c_try_link "$LINENO" 9399then : 9400 eval $cacheid=yes 9401else case e in #( 9402 e) eval $cacheid=no ;; 9403esac 9404fi 9405rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9406 conftest$ac_exeext conftest.$ac_ext ;; 9407esac 9408fi 9409 9410 9411 CFLAGS="$xorg_testset_save_CFLAGS" 9412 9413 eval supported=\$$cacheid 9414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9415printf "%s\n" "$supported" >&6; } 9416 if test "$supported" = "yes" ; then 9417 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 9418 found="yes" 9419 fi 9420 fi 9421 9422 if test $found = "no" ; then 9423 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9424 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9425 fi 9426 9427 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9428 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9429 fi 9430 9431 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9432 9433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 9434printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 9435 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 9436 if eval test \${$cacheid+y} 9437then : 9438 printf %s "(cached) " >&6 9439else case e in #( 9440 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9441/* end confdefs.h. */ 9442int i; 9443int 9444main (void) 9445{ 9446 9447 ; 9448 return 0; 9449} 9450_ACEOF 9451if ac_fn_c_try_link "$LINENO" 9452then : 9453 eval $cacheid=yes 9454else case e in #( 9455 e) eval $cacheid=no ;; 9456esac 9457fi 9458rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9459 conftest$ac_exeext conftest.$ac_ext ;; 9460esac 9461fi 9462 9463 9464 CFLAGS="$xorg_testset_save_CFLAGS" 9465 9466 eval supported=\$$cacheid 9467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9468printf "%s\n" "$supported" >&6; } 9469 if test "$supported" = "yes" ; then 9470 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9471 found="yes" 9472 fi 9473 fi 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489xorg_testset_save_CFLAGS="$CFLAGS" 9490 9491if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9492 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9494printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9495if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9496then : 9497 printf %s "(cached) " >&6 9498else case e in #( 9499 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9500/* end confdefs.h. */ 9501int i; 9502_ACEOF 9503if ac_fn_c_try_compile "$LINENO" 9504then : 9505 xorg_cv_cc_flag_unknown_warning_option=yes 9506else case e in #( 9507 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9508esac 9509fi 9510rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9511esac 9512fi 9513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9514printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9515 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9516 CFLAGS="$xorg_testset_save_CFLAGS" 9517fi 9518 9519if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9520 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9521 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9522 fi 9523 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9525printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9526if test ${xorg_cv_cc_flag_unused_command_line_argument+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; 9533_ACEOF 9534if ac_fn_c_try_compile "$LINENO" 9535then : 9536 xorg_cv_cc_flag_unused_command_line_argument=yes 9537else case e in #( 9538 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9539esac 9540fi 9541rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9542esac 9543fi 9544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9545printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9546 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9547 CFLAGS="$xorg_testset_save_CFLAGS" 9548fi 9549 9550found="no" 9551 9552 if test $found = "no" ; then 9553 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9554 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9555 fi 9556 9557 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9558 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9559 fi 9560 9561 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 9562 9563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 9564printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 9565 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 9566 if eval test \${$cacheid+y} 9567then : 9568 printf %s "(cached) " >&6 9569else case e in #( 9570 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9571/* end confdefs.h. */ 9572int i; 9573int 9574main (void) 9575{ 9576 9577 ; 9578 return 0; 9579} 9580_ACEOF 9581if ac_fn_c_try_link "$LINENO" 9582then : 9583 eval $cacheid=yes 9584else case e in #( 9585 e) eval $cacheid=no ;; 9586esac 9587fi 9588rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9589 conftest$ac_exeext conftest.$ac_ext ;; 9590esac 9591fi 9592 9593 9594 CFLAGS="$xorg_testset_save_CFLAGS" 9595 9596 eval supported=\$$cacheid 9597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9598printf "%s\n" "$supported" >&6; } 9599 if test "$supported" = "yes" ; then 9600 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 9601 found="yes" 9602 fi 9603 fi 9604 9605 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 9606else 9607{ 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 9608printf "%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;} 9609 9610 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621 9622xorg_testset_save_CFLAGS="$CFLAGS" 9623 9624if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9625 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9627printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9628if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9629then : 9630 printf %s "(cached) " >&6 9631else case e in #( 9632 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9633/* end confdefs.h. */ 9634int i; 9635_ACEOF 9636if ac_fn_c_try_compile "$LINENO" 9637then : 9638 xorg_cv_cc_flag_unknown_warning_option=yes 9639else case e in #( 9640 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9641esac 9642fi 9643rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9644esac 9645fi 9646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9647printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9648 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9649 CFLAGS="$xorg_testset_save_CFLAGS" 9650fi 9651 9652if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9653 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9654 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9655 fi 9656 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9658printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9659if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9660then : 9661 printf %s "(cached) " >&6 9662else case e in #( 9663 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9664/* end confdefs.h. */ 9665int i; 9666_ACEOF 9667if ac_fn_c_try_compile "$LINENO" 9668then : 9669 xorg_cv_cc_flag_unused_command_line_argument=yes 9670else case e in #( 9671 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9672esac 9673fi 9674rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9675esac 9676fi 9677{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9678printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9679 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9680 CFLAGS="$xorg_testset_save_CFLAGS" 9681fi 9682 9683found="no" 9684 9685 if test $found = "no" ; then 9686 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9687 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9688 fi 9689 9690 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9691 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9692 fi 9693 9694 CFLAGS="$CFLAGS -Wimplicit" 9695 9696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9697printf %s "checking if $CC supports -Wimplicit... " >&6; } 9698 cacheid=xorg_cv_cc_flag__Wimplicit 9699 if eval test \${$cacheid+y} 9700then : 9701 printf %s "(cached) " >&6 9702else case e in #( 9703 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9704/* end confdefs.h. */ 9705int i; 9706int 9707main (void) 9708{ 9709 9710 ; 9711 return 0; 9712} 9713_ACEOF 9714if ac_fn_c_try_link "$LINENO" 9715then : 9716 eval $cacheid=yes 9717else case e in #( 9718 e) eval $cacheid=no ;; 9719esac 9720fi 9721rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9722 conftest$ac_exeext conftest.$ac_ext ;; 9723esac 9724fi 9725 9726 9727 CFLAGS="$xorg_testset_save_CFLAGS" 9728 9729 eval supported=\$$cacheid 9730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9731printf "%s\n" "$supported" >&6; } 9732 if test "$supported" = "yes" ; then 9733 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9734 found="yes" 9735 fi 9736 fi 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752xorg_testset_save_CFLAGS="$CFLAGS" 9753 9754if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9755 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9757printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9758if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9759then : 9760 printf %s "(cached) " >&6 9761else case e in #( 9762 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9763/* end confdefs.h. */ 9764int i; 9765_ACEOF 9766if ac_fn_c_try_compile "$LINENO" 9767then : 9768 xorg_cv_cc_flag_unknown_warning_option=yes 9769else case e in #( 9770 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9771esac 9772fi 9773rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9774esac 9775fi 9776{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9777printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9778 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9779 CFLAGS="$xorg_testset_save_CFLAGS" 9780fi 9781 9782if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9783 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9784 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9785 fi 9786 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9788printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9789if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9790then : 9791 printf %s "(cached) " >&6 9792else case e in #( 9793 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9794/* end confdefs.h. */ 9795int i; 9796_ACEOF 9797if ac_fn_c_try_compile "$LINENO" 9798then : 9799 xorg_cv_cc_flag_unused_command_line_argument=yes 9800else case e in #( 9801 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9802esac 9803fi 9804rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9805esac 9806fi 9807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9808printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9809 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9810 CFLAGS="$xorg_testset_save_CFLAGS" 9811fi 9812 9813found="no" 9814 9815 if test $found = "no" ; then 9816 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9817 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9818 fi 9819 9820 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9821 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9822 fi 9823 9824 CFLAGS="$CFLAGS -Wnonnull" 9825 9826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9827printf %s "checking if $CC supports -Wnonnull... " >&6; } 9828 cacheid=xorg_cv_cc_flag__Wnonnull 9829 if eval test \${$cacheid+y} 9830then : 9831 printf %s "(cached) " >&6 9832else case e in #( 9833 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9834/* end confdefs.h. */ 9835int i; 9836int 9837main (void) 9838{ 9839 9840 ; 9841 return 0; 9842} 9843_ACEOF 9844if ac_fn_c_try_link "$LINENO" 9845then : 9846 eval $cacheid=yes 9847else case e in #( 9848 e) eval $cacheid=no ;; 9849esac 9850fi 9851rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9852 conftest$ac_exeext conftest.$ac_ext ;; 9853esac 9854fi 9855 9856 9857 CFLAGS="$xorg_testset_save_CFLAGS" 9858 9859 eval supported=\$$cacheid 9860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9861printf "%s\n" "$supported" >&6; } 9862 if test "$supported" = "yes" ; then 9863 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9864 found="yes" 9865 fi 9866 fi 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882xorg_testset_save_CFLAGS="$CFLAGS" 9883 9884if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9885 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9887printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9888if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9889then : 9890 printf %s "(cached) " >&6 9891else case e in #( 9892 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9893/* end confdefs.h. */ 9894int i; 9895_ACEOF 9896if ac_fn_c_try_compile "$LINENO" 9897then : 9898 xorg_cv_cc_flag_unknown_warning_option=yes 9899else case e in #( 9900 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9901esac 9902fi 9903rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9904esac 9905fi 9906{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9907printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9908 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9909 CFLAGS="$xorg_testset_save_CFLAGS" 9910fi 9911 9912if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9913 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9914 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9915 fi 9916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9918printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9919if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9920then : 9921 printf %s "(cached) " >&6 9922else case e in #( 9923 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9924/* end confdefs.h. */ 9925int i; 9926_ACEOF 9927if ac_fn_c_try_compile "$LINENO" 9928then : 9929 xorg_cv_cc_flag_unused_command_line_argument=yes 9930else case e in #( 9931 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9932esac 9933fi 9934rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9935esac 9936fi 9937{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9938printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9939 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9940 CFLAGS="$xorg_testset_save_CFLAGS" 9941fi 9942 9943found="no" 9944 9945 if test $found = "no" ; then 9946 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9947 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9948 fi 9949 9950 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9951 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9952 fi 9953 9954 CFLAGS="$CFLAGS -Winit-self" 9955 9956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9957printf %s "checking if $CC supports -Winit-self... " >&6; } 9958 cacheid=xorg_cv_cc_flag__Winit_self 9959 if eval test \${$cacheid+y} 9960then : 9961 printf %s "(cached) " >&6 9962else case e in #( 9963 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9964/* end confdefs.h. */ 9965int i; 9966int 9967main (void) 9968{ 9969 9970 ; 9971 return 0; 9972} 9973_ACEOF 9974if ac_fn_c_try_link "$LINENO" 9975then : 9976 eval $cacheid=yes 9977else case e in #( 9978 e) eval $cacheid=no ;; 9979esac 9980fi 9981rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9982 conftest$ac_exeext conftest.$ac_ext ;; 9983esac 9984fi 9985 9986 9987 CFLAGS="$xorg_testset_save_CFLAGS" 9988 9989 eval supported=\$$cacheid 9990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9991printf "%s\n" "$supported" >&6; } 9992 if test "$supported" = "yes" ; then 9993 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9994 found="yes" 9995 fi 9996 fi 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012xorg_testset_save_CFLAGS="$CFLAGS" 10013 10014if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10015 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10017printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10018if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10019then : 10020 printf %s "(cached) " >&6 10021else case e in #( 10022 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10023/* end confdefs.h. */ 10024int i; 10025_ACEOF 10026if ac_fn_c_try_compile "$LINENO" 10027then : 10028 xorg_cv_cc_flag_unknown_warning_option=yes 10029else case e in #( 10030 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10031esac 10032fi 10033rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10034esac 10035fi 10036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10037printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10038 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10039 CFLAGS="$xorg_testset_save_CFLAGS" 10040fi 10041 10042if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10043 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10044 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10045 fi 10046 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10048printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10049if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10050then : 10051 printf %s "(cached) " >&6 10052else case e in #( 10053 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10054/* end confdefs.h. */ 10055int i; 10056_ACEOF 10057if ac_fn_c_try_compile "$LINENO" 10058then : 10059 xorg_cv_cc_flag_unused_command_line_argument=yes 10060else case e in #( 10061 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10062esac 10063fi 10064rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10065esac 10066fi 10067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10068printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10069 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10070 CFLAGS="$xorg_testset_save_CFLAGS" 10071fi 10072 10073found="no" 10074 10075 if test $found = "no" ; then 10076 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10077 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10078 fi 10079 10080 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10082 fi 10083 10084 CFLAGS="$CFLAGS -Wmain" 10085 10086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 10087printf %s "checking if $CC supports -Wmain... " >&6; } 10088 cacheid=xorg_cv_cc_flag__Wmain 10089 if eval test \${$cacheid+y} 10090then : 10091 printf %s "(cached) " >&6 10092else case e in #( 10093 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10094/* end confdefs.h. */ 10095int i; 10096int 10097main (void) 10098{ 10099 10100 ; 10101 return 0; 10102} 10103_ACEOF 10104if ac_fn_c_try_link "$LINENO" 10105then : 10106 eval $cacheid=yes 10107else case e in #( 10108 e) eval $cacheid=no ;; 10109esac 10110fi 10111rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10112 conftest$ac_exeext conftest.$ac_ext ;; 10113esac 10114fi 10115 10116 10117 CFLAGS="$xorg_testset_save_CFLAGS" 10118 10119 eval supported=\$$cacheid 10120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10121printf "%s\n" "$supported" >&6; } 10122 if test "$supported" = "yes" ; then 10123 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 10124 found="yes" 10125 fi 10126 fi 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142xorg_testset_save_CFLAGS="$CFLAGS" 10143 10144if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10145 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10147printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10148if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10149then : 10150 printf %s "(cached) " >&6 10151else case e in #( 10152 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10153/* end confdefs.h. */ 10154int i; 10155_ACEOF 10156if ac_fn_c_try_compile "$LINENO" 10157then : 10158 xorg_cv_cc_flag_unknown_warning_option=yes 10159else case e in #( 10160 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10161esac 10162fi 10163rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10164esac 10165fi 10166{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10167printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10168 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10169 CFLAGS="$xorg_testset_save_CFLAGS" 10170fi 10171 10172if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10173 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10174 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10175 fi 10176 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10178printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10179if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10180then : 10181 printf %s "(cached) " >&6 10182else case e in #( 10183 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10184/* end confdefs.h. */ 10185int i; 10186_ACEOF 10187if ac_fn_c_try_compile "$LINENO" 10188then : 10189 xorg_cv_cc_flag_unused_command_line_argument=yes 10190else case e in #( 10191 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10192esac 10193fi 10194rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10195esac 10196fi 10197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10198printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10199 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10200 CFLAGS="$xorg_testset_save_CFLAGS" 10201fi 10202 10203found="no" 10204 10205 if test $found = "no" ; then 10206 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10207 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10208 fi 10209 10210 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10211 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10212 fi 10213 10214 CFLAGS="$CFLAGS -Wmissing-braces" 10215 10216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 10217printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 10218 cacheid=xorg_cv_cc_flag__Wmissing_braces 10219 if eval test \${$cacheid+y} 10220then : 10221 printf %s "(cached) " >&6 10222else case e in #( 10223 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10224/* end confdefs.h. */ 10225int i; 10226int 10227main (void) 10228{ 10229 10230 ; 10231 return 0; 10232} 10233_ACEOF 10234if ac_fn_c_try_link "$LINENO" 10235then : 10236 eval $cacheid=yes 10237else case e in #( 10238 e) eval $cacheid=no ;; 10239esac 10240fi 10241rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10242 conftest$ac_exeext conftest.$ac_ext ;; 10243esac 10244fi 10245 10246 10247 CFLAGS="$xorg_testset_save_CFLAGS" 10248 10249 eval supported=\$$cacheid 10250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10251printf "%s\n" "$supported" >&6; } 10252 if test "$supported" = "yes" ; then 10253 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 10254 found="yes" 10255 fi 10256 fi 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272xorg_testset_save_CFLAGS="$CFLAGS" 10273 10274if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10275 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10277printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10278if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10279then : 10280 printf %s "(cached) " >&6 10281else case e in #( 10282 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10283/* end confdefs.h. */ 10284int i; 10285_ACEOF 10286if ac_fn_c_try_compile "$LINENO" 10287then : 10288 xorg_cv_cc_flag_unknown_warning_option=yes 10289else case e in #( 10290 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10291esac 10292fi 10293rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10294esac 10295fi 10296{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10297printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10298 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10299 CFLAGS="$xorg_testset_save_CFLAGS" 10300fi 10301 10302if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10303 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10304 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10305 fi 10306 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10308printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10309if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10310then : 10311 printf %s "(cached) " >&6 10312else case e in #( 10313 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10314/* end confdefs.h. */ 10315int i; 10316_ACEOF 10317if ac_fn_c_try_compile "$LINENO" 10318then : 10319 xorg_cv_cc_flag_unused_command_line_argument=yes 10320else case e in #( 10321 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10322esac 10323fi 10324rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10325esac 10326fi 10327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10328printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10329 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10330 CFLAGS="$xorg_testset_save_CFLAGS" 10331fi 10332 10333found="no" 10334 10335 if test $found = "no" ; then 10336 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10337 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10338 fi 10339 10340 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10341 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10342 fi 10343 10344 CFLAGS="$CFLAGS -Wsequence-point" 10345 10346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 10347printf %s "checking if $CC supports -Wsequence-point... " >&6; } 10348 cacheid=xorg_cv_cc_flag__Wsequence_point 10349 if eval test \${$cacheid+y} 10350then : 10351 printf %s "(cached) " >&6 10352else case e in #( 10353 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10354/* end confdefs.h. */ 10355int i; 10356int 10357main (void) 10358{ 10359 10360 ; 10361 return 0; 10362} 10363_ACEOF 10364if ac_fn_c_try_link "$LINENO" 10365then : 10366 eval $cacheid=yes 10367else case e in #( 10368 e) eval $cacheid=no ;; 10369esac 10370fi 10371rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10372 conftest$ac_exeext conftest.$ac_ext ;; 10373esac 10374fi 10375 10376 10377 CFLAGS="$xorg_testset_save_CFLAGS" 10378 10379 eval supported=\$$cacheid 10380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10381printf "%s\n" "$supported" >&6; } 10382 if test "$supported" = "yes" ; then 10383 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 10384 found="yes" 10385 fi 10386 fi 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402xorg_testset_save_CFLAGS="$CFLAGS" 10403 10404if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10405 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10407printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10408if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10409then : 10410 printf %s "(cached) " >&6 10411else case e in #( 10412 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10413/* end confdefs.h. */ 10414int i; 10415_ACEOF 10416if ac_fn_c_try_compile "$LINENO" 10417then : 10418 xorg_cv_cc_flag_unknown_warning_option=yes 10419else case e in #( 10420 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10421esac 10422fi 10423rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10424esac 10425fi 10426{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10427printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10428 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10429 CFLAGS="$xorg_testset_save_CFLAGS" 10430fi 10431 10432if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10433 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10434 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10435 fi 10436 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10438printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10439if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10440then : 10441 printf %s "(cached) " >&6 10442else case e in #( 10443 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10444/* end confdefs.h. */ 10445int i; 10446_ACEOF 10447if ac_fn_c_try_compile "$LINENO" 10448then : 10449 xorg_cv_cc_flag_unused_command_line_argument=yes 10450else case e in #( 10451 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10452esac 10453fi 10454rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10455esac 10456fi 10457{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10458printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10459 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10460 CFLAGS="$xorg_testset_save_CFLAGS" 10461fi 10462 10463found="no" 10464 10465 if test $found = "no" ; then 10466 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10467 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10468 fi 10469 10470 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10472 fi 10473 10474 CFLAGS="$CFLAGS -Wreturn-type" 10475 10476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 10477printf %s "checking if $CC supports -Wreturn-type... " >&6; } 10478 cacheid=xorg_cv_cc_flag__Wreturn_type 10479 if eval test \${$cacheid+y} 10480then : 10481 printf %s "(cached) " >&6 10482else case e in #( 10483 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10484/* end confdefs.h. */ 10485int i; 10486int 10487main (void) 10488{ 10489 10490 ; 10491 return 0; 10492} 10493_ACEOF 10494if ac_fn_c_try_link "$LINENO" 10495then : 10496 eval $cacheid=yes 10497else case e in #( 10498 e) eval $cacheid=no ;; 10499esac 10500fi 10501rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10502 conftest$ac_exeext conftest.$ac_ext ;; 10503esac 10504fi 10505 10506 10507 CFLAGS="$xorg_testset_save_CFLAGS" 10508 10509 eval supported=\$$cacheid 10510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10511printf "%s\n" "$supported" >&6; } 10512 if test "$supported" = "yes" ; then 10513 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 10514 found="yes" 10515 fi 10516 fi 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532xorg_testset_save_CFLAGS="$CFLAGS" 10533 10534if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10535 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10537printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10538if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10539then : 10540 printf %s "(cached) " >&6 10541else case e in #( 10542 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10543/* end confdefs.h. */ 10544int i; 10545_ACEOF 10546if ac_fn_c_try_compile "$LINENO" 10547then : 10548 xorg_cv_cc_flag_unknown_warning_option=yes 10549else case e in #( 10550 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10551esac 10552fi 10553rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10554esac 10555fi 10556{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10557printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10558 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10559 CFLAGS="$xorg_testset_save_CFLAGS" 10560fi 10561 10562if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10563 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10564 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10565 fi 10566 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10568printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10569if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10570then : 10571 printf %s "(cached) " >&6 10572else case e in #( 10573 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10574/* end confdefs.h. */ 10575int i; 10576_ACEOF 10577if ac_fn_c_try_compile "$LINENO" 10578then : 10579 xorg_cv_cc_flag_unused_command_line_argument=yes 10580else case e in #( 10581 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10582esac 10583fi 10584rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10585esac 10586fi 10587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10588printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10589 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10590 CFLAGS="$xorg_testset_save_CFLAGS" 10591fi 10592 10593found="no" 10594 10595 if test $found = "no" ; then 10596 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10597 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10598 fi 10599 10600 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10601 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10602 fi 10603 10604 CFLAGS="$CFLAGS -Wtrigraphs" 10605 10606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 10607printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 10608 cacheid=xorg_cv_cc_flag__Wtrigraphs 10609 if eval test \${$cacheid+y} 10610then : 10611 printf %s "(cached) " >&6 10612else case e in #( 10613 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10614/* end confdefs.h. */ 10615int i; 10616int 10617main (void) 10618{ 10619 10620 ; 10621 return 0; 10622} 10623_ACEOF 10624if ac_fn_c_try_link "$LINENO" 10625then : 10626 eval $cacheid=yes 10627else case e in #( 10628 e) eval $cacheid=no ;; 10629esac 10630fi 10631rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10632 conftest$ac_exeext conftest.$ac_ext ;; 10633esac 10634fi 10635 10636 10637 CFLAGS="$xorg_testset_save_CFLAGS" 10638 10639 eval supported=\$$cacheid 10640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10641printf "%s\n" "$supported" >&6; } 10642 if test "$supported" = "yes" ; then 10643 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10644 found="yes" 10645 fi 10646 fi 10647 10648 10649 10650 10651 10652 10653 10654 10655 10656 10657 10658 10659 10660 10661 10662xorg_testset_save_CFLAGS="$CFLAGS" 10663 10664if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10665 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10667printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10668if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10669then : 10670 printf %s "(cached) " >&6 10671else case e in #( 10672 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10673/* end confdefs.h. */ 10674int i; 10675_ACEOF 10676if ac_fn_c_try_compile "$LINENO" 10677then : 10678 xorg_cv_cc_flag_unknown_warning_option=yes 10679else case e in #( 10680 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10681esac 10682fi 10683rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10684esac 10685fi 10686{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10687printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10688 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10689 CFLAGS="$xorg_testset_save_CFLAGS" 10690fi 10691 10692if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10693 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10694 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10695 fi 10696 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10698printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10699if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10700then : 10701 printf %s "(cached) " >&6 10702else case e in #( 10703 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10704/* end confdefs.h. */ 10705int i; 10706_ACEOF 10707if ac_fn_c_try_compile "$LINENO" 10708then : 10709 xorg_cv_cc_flag_unused_command_line_argument=yes 10710else case e in #( 10711 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10712esac 10713fi 10714rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10715esac 10716fi 10717{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10718printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10719 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10720 CFLAGS="$xorg_testset_save_CFLAGS" 10721fi 10722 10723found="no" 10724 10725 if test $found = "no" ; then 10726 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10727 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10728 fi 10729 10730 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10731 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10732 fi 10733 10734 CFLAGS="$CFLAGS -Warray-bounds" 10735 10736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10737printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10738 cacheid=xorg_cv_cc_flag__Warray_bounds 10739 if eval test \${$cacheid+y} 10740then : 10741 printf %s "(cached) " >&6 10742else case e in #( 10743 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10744/* end confdefs.h. */ 10745int i; 10746int 10747main (void) 10748{ 10749 10750 ; 10751 return 0; 10752} 10753_ACEOF 10754if ac_fn_c_try_link "$LINENO" 10755then : 10756 eval $cacheid=yes 10757else case e in #( 10758 e) eval $cacheid=no ;; 10759esac 10760fi 10761rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10762 conftest$ac_exeext conftest.$ac_ext ;; 10763esac 10764fi 10765 10766 10767 CFLAGS="$xorg_testset_save_CFLAGS" 10768 10769 eval supported=\$$cacheid 10770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10771printf "%s\n" "$supported" >&6; } 10772 if test "$supported" = "yes" ; then 10773 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10774 found="yes" 10775 fi 10776 fi 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792xorg_testset_save_CFLAGS="$CFLAGS" 10793 10794if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10795 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10797printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10798if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10799then : 10800 printf %s "(cached) " >&6 10801else case e in #( 10802 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10803/* end confdefs.h. */ 10804int i; 10805_ACEOF 10806if ac_fn_c_try_compile "$LINENO" 10807then : 10808 xorg_cv_cc_flag_unknown_warning_option=yes 10809else case e in #( 10810 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10811esac 10812fi 10813rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10814esac 10815fi 10816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10817printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10818 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10819 CFLAGS="$xorg_testset_save_CFLAGS" 10820fi 10821 10822if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10823 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10824 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10825 fi 10826 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10828printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10829if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10830then : 10831 printf %s "(cached) " >&6 10832else case e in #( 10833 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10834/* end confdefs.h. */ 10835int i; 10836_ACEOF 10837if ac_fn_c_try_compile "$LINENO" 10838then : 10839 xorg_cv_cc_flag_unused_command_line_argument=yes 10840else case e in #( 10841 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10842esac 10843fi 10844rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10845esac 10846fi 10847{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10848printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10849 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10850 CFLAGS="$xorg_testset_save_CFLAGS" 10851fi 10852 10853found="no" 10854 10855 if test $found = "no" ; then 10856 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10857 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10858 fi 10859 10860 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10861 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10862 fi 10863 10864 CFLAGS="$CFLAGS -Wwrite-strings" 10865 10866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10867printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10868 cacheid=xorg_cv_cc_flag__Wwrite_strings 10869 if eval test \${$cacheid+y} 10870then : 10871 printf %s "(cached) " >&6 10872else case e in #( 10873 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10874/* end confdefs.h. */ 10875int i; 10876int 10877main (void) 10878{ 10879 10880 ; 10881 return 0; 10882} 10883_ACEOF 10884if ac_fn_c_try_link "$LINENO" 10885then : 10886 eval $cacheid=yes 10887else case e in #( 10888 e) eval $cacheid=no ;; 10889esac 10890fi 10891rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10892 conftest$ac_exeext conftest.$ac_ext ;; 10893esac 10894fi 10895 10896 10897 CFLAGS="$xorg_testset_save_CFLAGS" 10898 10899 eval supported=\$$cacheid 10900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10901printf "%s\n" "$supported" >&6; } 10902 if test "$supported" = "yes" ; then 10903 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10904 found="yes" 10905 fi 10906 fi 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922xorg_testset_save_CFLAGS="$CFLAGS" 10923 10924if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10925 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10927printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10928if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10929then : 10930 printf %s "(cached) " >&6 10931else case e in #( 10932 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10933/* end confdefs.h. */ 10934int i; 10935_ACEOF 10936if ac_fn_c_try_compile "$LINENO" 10937then : 10938 xorg_cv_cc_flag_unknown_warning_option=yes 10939else case e in #( 10940 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10941esac 10942fi 10943rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10944esac 10945fi 10946{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10947printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10948 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10949 CFLAGS="$xorg_testset_save_CFLAGS" 10950fi 10951 10952if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10953 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10954 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10955 fi 10956 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10958printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10959if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10960then : 10961 printf %s "(cached) " >&6 10962else case e in #( 10963 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10964/* end confdefs.h. */ 10965int i; 10966_ACEOF 10967if ac_fn_c_try_compile "$LINENO" 10968then : 10969 xorg_cv_cc_flag_unused_command_line_argument=yes 10970else case e in #( 10971 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10972esac 10973fi 10974rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10975esac 10976fi 10977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10978printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10979 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10980 CFLAGS="$xorg_testset_save_CFLAGS" 10981fi 10982 10983found="no" 10984 10985 if test $found = "no" ; then 10986 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10987 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10988 fi 10989 10990 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10992 fi 10993 10994 CFLAGS="$CFLAGS -Waddress" 10995 10996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10997printf %s "checking if $CC supports -Waddress... " >&6; } 10998 cacheid=xorg_cv_cc_flag__Waddress 10999 if eval test \${$cacheid+y} 11000then : 11001 printf %s "(cached) " >&6 11002else case e in #( 11003 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11004/* end confdefs.h. */ 11005int i; 11006int 11007main (void) 11008{ 11009 11010 ; 11011 return 0; 11012} 11013_ACEOF 11014if ac_fn_c_try_link "$LINENO" 11015then : 11016 eval $cacheid=yes 11017else case e in #( 11018 e) eval $cacheid=no ;; 11019esac 11020fi 11021rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11022 conftest$ac_exeext conftest.$ac_ext ;; 11023esac 11024fi 11025 11026 11027 CFLAGS="$xorg_testset_save_CFLAGS" 11028 11029 eval supported=\$$cacheid 11030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11031printf "%s\n" "$supported" >&6; } 11032 if test "$supported" = "yes" ; then 11033 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 11034 found="yes" 11035 fi 11036 fi 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052xorg_testset_save_CFLAGS="$CFLAGS" 11053 11054if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11055 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11057printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11058if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11059then : 11060 printf %s "(cached) " >&6 11061else case e in #( 11062 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11063/* end confdefs.h. */ 11064int i; 11065_ACEOF 11066if ac_fn_c_try_compile "$LINENO" 11067then : 11068 xorg_cv_cc_flag_unknown_warning_option=yes 11069else case e in #( 11070 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11071esac 11072fi 11073rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11074esac 11075fi 11076{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11077printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11078 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11079 CFLAGS="$xorg_testset_save_CFLAGS" 11080fi 11081 11082if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11083 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11084 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11085 fi 11086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11088printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11089if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11090then : 11091 printf %s "(cached) " >&6 11092else case e in #( 11093 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11094/* end confdefs.h. */ 11095int i; 11096_ACEOF 11097if ac_fn_c_try_compile "$LINENO" 11098then : 11099 xorg_cv_cc_flag_unused_command_line_argument=yes 11100else case e in #( 11101 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11102esac 11103fi 11104rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11105esac 11106fi 11107{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11108printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11109 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11110 CFLAGS="$xorg_testset_save_CFLAGS" 11111fi 11112 11113found="no" 11114 11115 if test $found = "no" ; then 11116 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11117 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11118 fi 11119 11120 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11122 fi 11123 11124 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 11125 11126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 11127printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 11128 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 11129 if eval test \${$cacheid+y} 11130then : 11131 printf %s "(cached) " >&6 11132else case e in #( 11133 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11134/* end confdefs.h. */ 11135int i; 11136int 11137main (void) 11138{ 11139 11140 ; 11141 return 0; 11142} 11143_ACEOF 11144if ac_fn_c_try_link "$LINENO" 11145then : 11146 eval $cacheid=yes 11147else case e in #( 11148 e) eval $cacheid=no ;; 11149esac 11150fi 11151rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11152 conftest$ac_exeext conftest.$ac_ext ;; 11153esac 11154fi 11155 11156 11157 CFLAGS="$xorg_testset_save_CFLAGS" 11158 11159 eval supported=\$$cacheid 11160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11161printf "%s\n" "$supported" >&6; } 11162 if test "$supported" = "yes" ; then 11163 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 11164 found="yes" 11165 fi 11166 fi 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182xorg_testset_save_CFLAGS="$CFLAGS" 11183 11184if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11185 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11187printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11188if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11189then : 11190 printf %s "(cached) " >&6 11191else case e in #( 11192 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11193/* end confdefs.h. */ 11194int i; 11195_ACEOF 11196if ac_fn_c_try_compile "$LINENO" 11197then : 11198 xorg_cv_cc_flag_unknown_warning_option=yes 11199else case e in #( 11200 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11201esac 11202fi 11203rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11204esac 11205fi 11206{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11207printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11208 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11209 CFLAGS="$xorg_testset_save_CFLAGS" 11210fi 11211 11212if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11213 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11214 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11215 fi 11216 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11218printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11219if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11220then : 11221 printf %s "(cached) " >&6 11222else case e in #( 11223 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11224/* end confdefs.h. */ 11225int i; 11226_ACEOF 11227if ac_fn_c_try_compile "$LINENO" 11228then : 11229 xorg_cv_cc_flag_unused_command_line_argument=yes 11230else case e in #( 11231 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11232esac 11233fi 11234rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11235esac 11236fi 11237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11238printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11239 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11240 CFLAGS="$xorg_testset_save_CFLAGS" 11241fi 11242 11243found="no" 11244 11245 if test $found = "no" ; then 11246 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11247 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11248 fi 11249 11250 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11251 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11252 fi 11253 11254 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 11255 11256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 11257printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 11258 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 11259 if eval test \${$cacheid+y} 11260then : 11261 printf %s "(cached) " >&6 11262else case e in #( 11263 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11264/* end confdefs.h. */ 11265int i; 11266int 11267main (void) 11268{ 11269 11270 ; 11271 return 0; 11272} 11273_ACEOF 11274if ac_fn_c_try_link "$LINENO" 11275then : 11276 eval $cacheid=yes 11277else case e in #( 11278 e) eval $cacheid=no ;; 11279esac 11280fi 11281rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11282 conftest$ac_exeext conftest.$ac_ext ;; 11283esac 11284fi 11285 11286 11287 CFLAGS="$xorg_testset_save_CFLAGS" 11288 11289 eval supported=\$$cacheid 11290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11291printf "%s\n" "$supported" >&6; } 11292 if test "$supported" = "yes" ; then 11293 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 11294 found="yes" 11295 fi 11296 fi 11297 11298 11299fi 11300 11301 11302 11303 11304 11305 11306 11307 CWARNFLAGS="$BASE_CFLAGS" 11308 if test "x$GCC" = xyes ; then 11309 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 11310 fi 11311 11312 11313 11314 11315 11316 11317 11318 11319# Check whether --enable-strict-compilation was given. 11320if test ${enable_strict_compilation+y} 11321then : 11322 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 11323else case e in #( 11324 e) STRICT_COMPILE=no ;; 11325esac 11326fi 11327 11328 11329 11330 11331 11332 11333STRICT_CFLAGS="" 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347xorg_testset_save_CFLAGS="$CFLAGS" 11348 11349if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11350 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11352printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11353if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11354then : 11355 printf %s "(cached) " >&6 11356else case e in #( 11357 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11358/* end confdefs.h. */ 11359int i; 11360_ACEOF 11361if ac_fn_c_try_compile "$LINENO" 11362then : 11363 xorg_cv_cc_flag_unknown_warning_option=yes 11364else case e in #( 11365 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11366esac 11367fi 11368rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11369esac 11370fi 11371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11372printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11373 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11374 CFLAGS="$xorg_testset_save_CFLAGS" 11375fi 11376 11377if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11378 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11379 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11380 fi 11381 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11383printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11384if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11385then : 11386 printf %s "(cached) " >&6 11387else case e in #( 11388 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11389/* end confdefs.h. */ 11390int i; 11391_ACEOF 11392if ac_fn_c_try_compile "$LINENO" 11393then : 11394 xorg_cv_cc_flag_unused_command_line_argument=yes 11395else case e in #( 11396 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11397esac 11398fi 11399rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11400esac 11401fi 11402{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11403printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11404 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11405 CFLAGS="$xorg_testset_save_CFLAGS" 11406fi 11407 11408found="no" 11409 11410 if test $found = "no" ; then 11411 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11412 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11413 fi 11414 11415 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11416 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11417 fi 11418 11419 CFLAGS="$CFLAGS -pedantic" 11420 11421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 11422printf %s "checking if $CC supports -pedantic... " >&6; } 11423 cacheid=xorg_cv_cc_flag__pedantic 11424 if eval test \${$cacheid+y} 11425then : 11426 printf %s "(cached) " >&6 11427else case e in #( 11428 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11429/* end confdefs.h. */ 11430int i; 11431int 11432main (void) 11433{ 11434 11435 ; 11436 return 0; 11437} 11438_ACEOF 11439if ac_fn_c_try_link "$LINENO" 11440then : 11441 eval $cacheid=yes 11442else case e in #( 11443 e) eval $cacheid=no ;; 11444esac 11445fi 11446rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11447 conftest$ac_exeext conftest.$ac_ext ;; 11448esac 11449fi 11450 11451 11452 CFLAGS="$xorg_testset_save_CFLAGS" 11453 11454 eval supported=\$$cacheid 11455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11456printf "%s\n" "$supported" >&6; } 11457 if test "$supported" = "yes" ; then 11458 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 11459 found="yes" 11460 fi 11461 fi 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477xorg_testset_save_CFLAGS="$CFLAGS" 11478 11479if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11480 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11482printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11483if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11484then : 11485 printf %s "(cached) " >&6 11486else case e in #( 11487 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11488/* end confdefs.h. */ 11489int i; 11490_ACEOF 11491if ac_fn_c_try_compile "$LINENO" 11492then : 11493 xorg_cv_cc_flag_unknown_warning_option=yes 11494else case e in #( 11495 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11496esac 11497fi 11498rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11499esac 11500fi 11501{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11502printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11503 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11504 CFLAGS="$xorg_testset_save_CFLAGS" 11505fi 11506 11507if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11508 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11509 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11510 fi 11511 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11513printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11514if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11515then : 11516 printf %s "(cached) " >&6 11517else case e in #( 11518 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11519/* end confdefs.h. */ 11520int i; 11521_ACEOF 11522if ac_fn_c_try_compile "$LINENO" 11523then : 11524 xorg_cv_cc_flag_unused_command_line_argument=yes 11525else case e in #( 11526 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11527esac 11528fi 11529rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11530esac 11531fi 11532{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11533printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11534 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11535 CFLAGS="$xorg_testset_save_CFLAGS" 11536fi 11537 11538found="no" 11539 11540 if test $found = "no" ; then 11541 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11542 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11543 fi 11544 11545 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11546 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11547 fi 11548 11549 CFLAGS="$CFLAGS -Werror" 11550 11551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 11552printf %s "checking if $CC supports -Werror... " >&6; } 11553 cacheid=xorg_cv_cc_flag__Werror 11554 if eval test \${$cacheid+y} 11555then : 11556 printf %s "(cached) " >&6 11557else case e in #( 11558 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11559/* end confdefs.h. */ 11560int i; 11561int 11562main (void) 11563{ 11564 11565 ; 11566 return 0; 11567} 11568_ACEOF 11569if ac_fn_c_try_link "$LINENO" 11570then : 11571 eval $cacheid=yes 11572else case e in #( 11573 e) eval $cacheid=no ;; 11574esac 11575fi 11576rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11577 conftest$ac_exeext conftest.$ac_ext ;; 11578esac 11579fi 11580 11581 11582 CFLAGS="$xorg_testset_save_CFLAGS" 11583 11584 eval supported=\$$cacheid 11585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11586printf "%s\n" "$supported" >&6; } 11587 if test "$supported" = "yes" ; then 11588 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 11589 found="yes" 11590 fi 11591 fi 11592 11593 if test $found = "no" ; then 11594 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11595 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11596 fi 11597 11598 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11599 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11600 fi 11601 11602 CFLAGS="$CFLAGS -errwarn" 11603 11604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 11605printf %s "checking if $CC supports -errwarn... " >&6; } 11606 cacheid=xorg_cv_cc_flag__errwarn 11607 if eval test \${$cacheid+y} 11608then : 11609 printf %s "(cached) " >&6 11610else case e in #( 11611 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11612/* end confdefs.h. */ 11613int i; 11614int 11615main (void) 11616{ 11617 11618 ; 11619 return 0; 11620} 11621_ACEOF 11622if ac_fn_c_try_link "$LINENO" 11623then : 11624 eval $cacheid=yes 11625else case e in #( 11626 e) eval $cacheid=no ;; 11627esac 11628fi 11629rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11630 conftest$ac_exeext conftest.$ac_ext ;; 11631esac 11632fi 11633 11634 11635 CFLAGS="$xorg_testset_save_CFLAGS" 11636 11637 eval supported=\$$cacheid 11638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11639printf "%s\n" "$supported" >&6; } 11640 if test "$supported" = "yes" ; then 11641 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 11642 found="yes" 11643 fi 11644 fi 11645 11646 11647 11648# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 11649# activate it with -Werror, so we add it here explicitly. 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663xorg_testset_save_CFLAGS="$CFLAGS" 11664 11665if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11666 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11668printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11669if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11670then : 11671 printf %s "(cached) " >&6 11672else case e in #( 11673 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11674/* end confdefs.h. */ 11675int i; 11676_ACEOF 11677if ac_fn_c_try_compile "$LINENO" 11678then : 11679 xorg_cv_cc_flag_unknown_warning_option=yes 11680else case e in #( 11681 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11682esac 11683fi 11684rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11685esac 11686fi 11687{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11688printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11689 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11690 CFLAGS="$xorg_testset_save_CFLAGS" 11691fi 11692 11693if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11694 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11695 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11696 fi 11697 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11699printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11700if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11701then : 11702 printf %s "(cached) " >&6 11703else case e in #( 11704 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11705/* end confdefs.h. */ 11706int i; 11707_ACEOF 11708if ac_fn_c_try_compile "$LINENO" 11709then : 11710 xorg_cv_cc_flag_unused_command_line_argument=yes 11711else case e in #( 11712 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11713esac 11714fi 11715rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11716esac 11717fi 11718{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11719printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11720 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11721 CFLAGS="$xorg_testset_save_CFLAGS" 11722fi 11723 11724found="no" 11725 11726 if test $found = "no" ; then 11727 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11728 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11729 fi 11730 11731 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11733 fi 11734 11735 CFLAGS="$CFLAGS -Werror=attributes" 11736 11737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11738printf %s "checking if $CC supports -Werror=attributes... " >&6; } 11739 cacheid=xorg_cv_cc_flag__Werror_attributes 11740 if eval test \${$cacheid+y} 11741then : 11742 printf %s "(cached) " >&6 11743else case e in #( 11744 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11745/* end confdefs.h. */ 11746int i; 11747int 11748main (void) 11749{ 11750 11751 ; 11752 return 0; 11753} 11754_ACEOF 11755if ac_fn_c_try_link "$LINENO" 11756then : 11757 eval $cacheid=yes 11758else case e in #( 11759 e) eval $cacheid=no ;; 11760esac 11761fi 11762rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11763 conftest$ac_exeext conftest.$ac_ext ;; 11764esac 11765fi 11766 11767 11768 CFLAGS="$xorg_testset_save_CFLAGS" 11769 11770 eval supported=\$$cacheid 11771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11772printf "%s\n" "$supported" >&6; } 11773 if test "$supported" = "yes" ; then 11774 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11775 found="yes" 11776 fi 11777 fi 11778 11779 11780 11781if test "x$STRICT_COMPILE" = "xyes"; then 11782 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11783 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11784fi 11785 11786 11787 11788 11789 11790 11791 11792 11793cat >>confdefs.h <<_ACEOF 11794#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11795_ACEOF 11796 11797 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11798 if test "x$PVM" = "x"; then 11799 PVM="0" 11800 fi 11801 11802printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11803 11804 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11805 if test "x$PVP" = "x"; then 11806 PVP="0" 11807 fi 11808 11809printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11810 11811 11812 11813CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11814mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11815|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11816touch \$(top_srcdir)/ChangeLog; \ 11817echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11818 11819 11820 11821 11822macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11823INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11824mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11825|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11826touch \$(top_srcdir)/INSTALL; \ 11827echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11828 11829 11830 11831 11832 11833 11834case $host_os in 11835 solaris*) 11836 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11837 # check for a man page file found in later versions that use 11838 # traditional section numbers instead 11839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11840printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11841if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11842then : 11843 printf %s "(cached) " >&6 11844else case e in #( 11845 e) test "$cross_compiling" = yes && 11846 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11847if test -r "/usr/share/man/man7/attributes.7"; then 11848 ac_cv_file__usr_share_man_man7_attributes_7=yes 11849else 11850 ac_cv_file__usr_share_man_man7_attributes_7=no 11851fi ;; 11852esac 11853fi 11854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11855printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11856if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11857then : 11858 SYSV_MAN_SECTIONS=false 11859else case e in #( 11860 e) SYSV_MAN_SECTIONS=true ;; 11861esac 11862fi 11863 11864 ;; 11865 *) SYSV_MAN_SECTIONS=false ;; 11866esac 11867 11868if test x$APP_MAN_SUFFIX = x ; then 11869 APP_MAN_SUFFIX=1 11870fi 11871if test x$APP_MAN_DIR = x ; then 11872 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11873fi 11874 11875if test x$LIB_MAN_SUFFIX = x ; then 11876 LIB_MAN_SUFFIX=3 11877fi 11878if test x$LIB_MAN_DIR = x ; then 11879 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11880fi 11881 11882if test x$FILE_MAN_SUFFIX = x ; then 11883 case $SYSV_MAN_SECTIONS in 11884 true) FILE_MAN_SUFFIX=4 ;; 11885 *) FILE_MAN_SUFFIX=5 ;; 11886 esac 11887fi 11888if test x$FILE_MAN_DIR = x ; then 11889 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11890fi 11891 11892if test x$MISC_MAN_SUFFIX = x ; then 11893 case $SYSV_MAN_SECTIONS in 11894 true) MISC_MAN_SUFFIX=5 ;; 11895 *) MISC_MAN_SUFFIX=7 ;; 11896 esac 11897fi 11898if test x$MISC_MAN_DIR = x ; then 11899 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11900fi 11901 11902if test x$DRIVER_MAN_SUFFIX = x ; then 11903 case $SYSV_MAN_SECTIONS in 11904 true) DRIVER_MAN_SUFFIX=7 ;; 11905 *) DRIVER_MAN_SUFFIX=4 ;; 11906 esac 11907fi 11908if test x$DRIVER_MAN_DIR = x ; then 11909 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11910fi 11911 11912if test x$ADMIN_MAN_SUFFIX = x ; then 11913 case $SYSV_MAN_SECTIONS in 11914 true) ADMIN_MAN_SUFFIX=1m ;; 11915 *) ADMIN_MAN_SUFFIX=8 ;; 11916 esac 11917fi 11918if test x$ADMIN_MAN_DIR = x ; then 11919 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11920fi 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936XORG_MAN_PAGE="X Version 11" 11937 11938MAN_SUBSTS="\ 11939 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11940 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11941 -e 's|__xservername__|Xorg|g' \ 11942 -e 's|__xconfigfile__|xorg.conf|g' \ 11943 -e 's|__projectroot__|\$(prefix)|g' \ 11944 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11945 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11946 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11947 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11948 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11949 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11950 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11951 11952 11953 11954 11955AM_DEFAULT_VERBOSITY=0 11956 11957 11958 11959 11960 11961 11962 11963# Check whether --with-lint was given. 11964if test ${with_lint+y} 11965then : 11966 withval=$with_lint; use_lint=$withval 11967else case e in #( 11968 e) use_lint=no ;; 11969esac 11970fi 11971 11972 11973# Obtain platform specific info like program name and options 11974# The lint program on FreeBSD and NetBSD is different from the one on Solaris 11975case $host_os in 11976 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 11977 lint_name=splint 11978 lint_options="-badflag" 11979 ;; 11980 *freebsd* | *netbsd*) 11981 lint_name=lint 11982 lint_options="-u -b" 11983 ;; 11984 *solaris*) 11985 lint_name=lint 11986 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 11987 ;; 11988esac 11989 11990# Test for the presence of the program (either guessed by the code or spelled out by the user) 11991if test "x$use_lint" = x"yes" ; then 11992 # Extract the first word of "$lint_name", so it can be a program name with args. 11993set dummy $lint_name; ac_word=$2 11994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11995printf %s "checking for $ac_word... " >&6; } 11996if test ${ac_cv_path_LINT+y} 11997then : 11998 printf %s "(cached) " >&6 11999else case e in #( 12000 e) case $LINT in 12001 [\\/]* | ?:[\\/]*) 12002 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 12003 ;; 12004 *) 12005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12006for as_dir in $PATH 12007do 12008 IFS=$as_save_IFS 12009 case $as_dir in #((( 12010 '') as_dir=./ ;; 12011 */) ;; 12012 *) as_dir=$as_dir/ ;; 12013 esac 12014 for ac_exec_ext in '' $ac_executable_extensions; do 12015 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12016 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext" 12017 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12018 break 2 12019 fi 12020done 12021 done 12022IFS=$as_save_IFS 12023 12024 ;; 12025esac ;; 12026esac 12027fi 12028LINT=$ac_cv_path_LINT 12029if test -n "$LINT"; then 12030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 12031printf "%s\n" "$LINT" >&6; } 12032else 12033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12034printf "%s\n" "no" >&6; } 12035fi 12036 12037 12038 if test "x$LINT" = "x"; then 12039 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 12040 fi 12041elif test "x$use_lint" = x"no" ; then 12042 if test "x$LINT" != "x"; then 12043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 12044printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 12045 fi 12046else 12047 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 12048fi 12049 12050# User supplied flags override default flags 12051if test "x$LINT_FLAGS" != "x"; then 12052 lint_options=$LINT_FLAGS 12053fi 12054 12055LINT_FLAGS=$lint_options 12056 12057 if test "x$LINT" != x; then 12058 LINT_TRUE= 12059 LINT_FALSE='#' 12060else 12061 LINT_TRUE='#' 12062 LINT_FALSE= 12063fi 12064 12065 12066 12067 12068# Checks for header files. 12069ac_fn_c_check_header_compile "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" "$ac_includes_default" 12070if test "x$ac_cv_header_lastlog_h" = xyes 12071then : 12072 printf "%s\n" "#define HAVE_LASTLOG_H 1" >>confdefs.h 12073 12074fi 12075ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default" 12076if test "x$ac_cv_header_pwd_h" = xyes 12077then : 12078 printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h 12079 12080fi 12081ac_fn_c_check_header_compile "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default" 12082if test "x$ac_cv_header_utmp_h" = xyes 12083then : 12084 printf "%s\n" "#define HAVE_UTMP_H 1" >>confdefs.h 12085 12086fi 12087ac_fn_c_check_header_compile "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default" 12088if test "x$ac_cv_header_utmpx_h" = xyes 12089then : 12090 printf "%s\n" "#define HAVE_UTMPX_H 1" >>confdefs.h 12091 12092fi 12093ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default" 12094if test "x$ac_cv_header_sys_param_h" = xyes 12095then : 12096 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h 12097 12098fi 12099 12100 12101# Checks for typedefs, structures, and compiler characteristics. 12102ac_fn_c_check_member "$LINENO" "struct utmp" "ut_host" "ac_cv_member_struct_utmp_ut_host" " 12103 #include <sys/types.h> 12104 #include <utmp.h> 12105 12106" 12107if test "x$ac_cv_member_struct_utmp_ut_host" = xyes 12108then : 12109 12110printf "%s\n" "#define HAVE_STRUCT_UTMP_UT_HOST 1" >>confdefs.h 12111 12112 12113fi 12114ac_fn_c_check_member "$LINENO" "struct utmp" "ut_id" "ac_cv_member_struct_utmp_ut_id" " 12115 #include <sys/types.h> 12116 #include <utmp.h> 12117 12118" 12119if test "x$ac_cv_member_struct_utmp_ut_id" = xyes 12120then : 12121 12122printf "%s\n" "#define HAVE_STRUCT_UTMP_UT_ID 1" >>confdefs.h 12123 12124 12125fi 12126ac_fn_c_check_member "$LINENO" "struct utmp" "ut_pid" "ac_cv_member_struct_utmp_ut_pid" " 12127 #include <sys/types.h> 12128 #include <utmp.h> 12129 12130" 12131if test "x$ac_cv_member_struct_utmp_ut_pid" = xyes 12132then : 12133 12134printf "%s\n" "#define HAVE_STRUCT_UTMP_UT_PID 1" >>confdefs.h 12135 12136 12137fi 12138ac_fn_c_check_member "$LINENO" "struct utmp" "ut_type" "ac_cv_member_struct_utmp_ut_type" " 12139 #include <sys/types.h> 12140 #include <utmp.h> 12141 12142" 12143if test "x$ac_cv_member_struct_utmp_ut_type" = xyes 12144then : 12145 12146printf "%s\n" "#define HAVE_STRUCT_UTMP_UT_TYPE 1" >>confdefs.h 12147 12148 12149fi 12150 12151ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_syslen" "ac_cv_member_struct_utmpx_ut_syslen" "#include <utmpx.h> 12152" 12153if test "x$ac_cv_member_struct_utmpx_ut_syslen" = xyes 12154then : 12155 12156printf "%s\n" "#define HAVE_STRUCT_UTMPX_UT_SYSLEN 1" >>confdefs.h 12157 12158 12159fi 12160 12161ac_fn_c_check_type "$LINENO" "struct lastlog" "ac_cv_type_struct_lastlog" " 12162 #include <sys/types.h> 12163 #ifdef HAVE_UTMP_H 12164 #include <utmp.h> 12165 #endif 12166 #ifdef HAVE_LASTLOG_H 12167 #include <lastlog.h> 12168 #endif 12169 12170" 12171if test "x$ac_cv_type_struct_lastlog" = xyes 12172then : 12173 12174printf "%s\n" "#define HAVE_STRUCT_LASTLOG 1" >>confdefs.h 12175 12176 12177fi 12178 12179 12180# Checks for library functions. 12181ac_fn_c_check_func "$LINENO" "pututline" "ac_cv_func_pututline" 12182if test "x$ac_cv_func_pututline" = xyes 12183then : 12184 printf "%s\n" "#define HAVE_PUTUTLINE 1" >>confdefs.h 12185 12186fi 12187ac_fn_c_check_func "$LINENO" "updwtmpx" "ac_cv_func_updwtmpx" 12188if test "x$ac_cv_func_updwtmpx" = xyes 12189then : 12190 printf "%s\n" "#define HAVE_UPDWTMPX 1" >>confdefs.h 12191 12192fi 12193ac_fn_c_check_func "$LINENO" "utmpxname" "ac_cv_func_utmpxname" 12194if test "x$ac_cv_func_utmpxname" = xyes 12195then : 12196 printf "%s\n" "#define HAVE_UTMPXNAME 1" >>confdefs.h 12197 12198fi 12199 12200 12201# Obtain compiler/linker options for dependencies 12202 12203pkg_failed=no 12204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SESSREG" >&5 12205printf %s "checking for SESSREG... " >&6; } 12206 12207if test -n "$SESSREG_CFLAGS"; then 12208 pkg_cv_SESSREG_CFLAGS="$SESSREG_CFLAGS" 12209 elif test -n "$PKG_CONFIG"; then 12210 if test -n "$PKG_CONFIG" && \ 12211 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.25\""; } >&5 12212 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.25") 2>&5 12213 ac_status=$? 12214 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12215 test $ac_status = 0; }; then 12216 pkg_cv_SESSREG_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.25" 2>/dev/null` 12217 test "x$?" != "x0" && pkg_failed=yes 12218else 12219 pkg_failed=yes 12220fi 12221 else 12222 pkg_failed=untried 12223fi 12224if test -n "$SESSREG_LIBS"; then 12225 pkg_cv_SESSREG_LIBS="$SESSREG_LIBS" 12226 elif test -n "$PKG_CONFIG"; then 12227 if test -n "$PKG_CONFIG" && \ 12228 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.25\""; } >&5 12229 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.25") 2>&5 12230 ac_status=$? 12231 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12232 test $ac_status = 0; }; then 12233 pkg_cv_SESSREG_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.25" 2>/dev/null` 12234 test "x$?" != "x0" && pkg_failed=yes 12235else 12236 pkg_failed=yes 12237fi 12238 else 12239 pkg_failed=untried 12240fi 12241 12242 12243 12244if test $pkg_failed = yes; then 12245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12246printf "%s\n" "no" >&6; } 12247 12248if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12249 _pkg_short_errors_supported=yes 12250else 12251 _pkg_short_errors_supported=no 12252fi 12253 if test $_pkg_short_errors_supported = yes; then 12254 SESSREG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.25" 2>&1` 12255 else 12256 SESSREG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.25" 2>&1` 12257 fi 12258 # Put the nasty error message in config.log where it belongs 12259 echo "$SESSREG_PKG_ERRORS" >&5 12260 12261 as_fn_error $? "Package requirements (xproto >= 7.0.25) were not met: 12262 12263$SESSREG_PKG_ERRORS 12264 12265Consider adjusting the PKG_CONFIG_PATH environment variable if you 12266installed software in a non-standard prefix. 12267 12268Alternatively, you may set the environment variables SESSREG_CFLAGS 12269and SESSREG_LIBS to avoid the need to call pkg-config. 12270See the pkg-config man page for more details." "$LINENO" 5 12271elif test $pkg_failed = untried; then 12272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12273printf "%s\n" "no" >&6; } 12274 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 12275printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 12276as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 12277is in your PATH or set the PKG_CONFIG environment variable to the full 12278path to pkg-config. 12279 12280Alternatively, you may set the environment variables SESSREG_CFLAGS 12281and SESSREG_LIBS to avoid the need to call pkg-config. 12282See the pkg-config man page for more details. 12283 12284To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12285See 'config.log' for more details" "$LINENO" 5; } 12286else 12287 SESSREG_CFLAGS=$pkg_cv_SESSREG_CFLAGS 12288 SESSREG_LIBS=$pkg_cv_SESSREG_LIBS 12289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12290printf "%s\n" "yes" >&6; } 12291 12292fi 12293 12294ac_config_files="$ac_config_files Makefile man/Makefile" 12295 12296cat >confcache <<\_ACEOF 12297# This file is a shell script that caches the results of configure 12298# tests run on this system so they can be shared between configure 12299# scripts and configure runs, see configure's option --config-cache. 12300# It is not useful on other systems. If it contains results you don't 12301# want to keep, you may remove or edit it. 12302# 12303# config.status only pays attention to the cache file if you give it 12304# the --recheck option to rerun configure. 12305# 12306# 'ac_cv_env_foo' variables (set or unset) will be overridden when 12307# loading this file, other *unset* 'ac_cv_foo' will be assigned the 12308# following values. 12309 12310_ACEOF 12311 12312# The following way of writing the cache mishandles newlines in values, 12313# but we know of no workaround that is simple, portable, and efficient. 12314# So, we kill variables containing newlines. 12315# Ultrix sh set writes to stderr and can't be redirected directly, 12316# and sets the high bit in the cache file unless we assign to the vars. 12317( 12318 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12319 eval ac_val=\$$ac_var 12320 case $ac_val in #( 12321 *${as_nl}*) 12322 case $ac_var in #( 12323 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 12324printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12325 esac 12326 case $ac_var in #( 12327 _ | IFS | as_nl) ;; #( 12328 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12329 *) { eval $ac_var=; unset $ac_var;} ;; 12330 esac ;; 12331 esac 12332 done 12333 12334 (set) 2>&1 | 12335 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12336 *${as_nl}ac_space=\ *) 12337 # 'set' does not quote correctly, so add quotes: double-quote 12338 # substitution turns \\\\ into \\, and sed turns \\ into \. 12339 sed -n \ 12340 "s/'/'\\\\''/g; 12341 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12342 ;; #( 12343 *) 12344 # 'set' quotes correctly as required by POSIX, so do not add quotes. 12345 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12346 ;; 12347 esac | 12348 sort 12349) | 12350 sed ' 12351 /^ac_cv_env_/b end 12352 t clear 12353 :clear 12354 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 12355 t end 12356 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12357 :end' >>confcache 12358if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12359 if test -w "$cache_file"; then 12360 if test "x$cache_file" != "x/dev/null"; then 12361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12362printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 12363 if test ! -f "$cache_file" || test -h "$cache_file"; then 12364 cat confcache >"$cache_file" 12365 else 12366 case $cache_file in #( 12367 */* | ?:*) 12368 mv -f confcache "$cache_file"$$ && 12369 mv -f "$cache_file"$$ "$cache_file" ;; #( 12370 *) 12371 mv -f confcache "$cache_file" ;; 12372 esac 12373 fi 12374 fi 12375 else 12376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12377printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 12378 fi 12379fi 12380rm -f confcache 12381 12382test "x$prefix" = xNONE && prefix=$ac_default_prefix 12383# Let make expand exec_prefix. 12384test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12385 12386DEFS=-DHAVE_CONFIG_H 12387 12388ac_libobjs= 12389ac_ltlibobjs= 12390U= 12391for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12392 # 1. Remove the extension, and $U if already installed. 12393 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12394 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 12395 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12396 # will be set to the directory where LIBOBJS objects are built. 12397 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12398 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12399done 12400LIBOBJS=$ac_libobjs 12401 12402LTLIBOBJS=$ac_ltlibobjs 12403 12404 12405# Check whether --enable-year2038 was given. 12406if test ${enable_year2038+y} 12407then : 12408 enableval=$enable_year2038; 12409fi 12410 12411{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 12412printf %s "checking that generated files are newer than configure... " >&6; } 12413 if test -n "$am_sleep_pid"; then 12414 # Hide warnings about reused PIDs. 12415 wait $am_sleep_pid 2>/dev/null 12416 fi 12417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 12418printf "%s\n" "done" >&6; } 12419if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 12420 as_fn_error $? "conditional \"AMDEP\" was never defined. 12421Usually this means the macro was only invoked conditionally." "$LINENO" 5 12422fi 12423if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12424 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 12425Usually this means the macro was only invoked conditionally." "$LINENO" 5 12426fi 12427case $enable_silent_rules in # ((( 12428 yes) AM_DEFAULT_VERBOSITY=0;; 12429 no) AM_DEFAULT_VERBOSITY=1;; 12430esac 12431if test $am_cv_make_support_nested_variables = yes; then 12432 AM_V='$(V)' 12433 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 12434else 12435 AM_V=$AM_DEFAULT_VERBOSITY 12436 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 12437fi 12438 12439 if test -n "$EXEEXT"; then 12440 am__EXEEXT_TRUE= 12441 am__EXEEXT_FALSE='#' 12442else 12443 am__EXEEXT_TRUE='#' 12444 am__EXEEXT_FALSE= 12445fi 12446 12447if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 12448 as_fn_error $? "conditional \"LINT\" was never defined. 12449Usually this means the macro was only invoked conditionally." "$LINENO" 5 12450fi 12451 12452: "${CONFIG_STATUS=./config.status}" 12453ac_write_fail=0 12454ac_clean_files_save=$ac_clean_files 12455ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12456{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12457printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 12458as_write_fail=0 12459cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12460#! $SHELL 12461# Generated by $as_me. 12462# Run this file to recreate the current configuration. 12463# Compiler output produced by configure, useful for debugging 12464# configure, is in config.log if it exists. 12465 12466debug=false 12467ac_cs_recheck=false 12468ac_cs_silent=false 12469 12470SHELL=\${CONFIG_SHELL-$SHELL} 12471export SHELL 12472_ASEOF 12473cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 12474## -------------------- ## 12475## M4sh Initialization. ## 12476## -------------------- ## 12477 12478# Be more Bourne compatible 12479DUALCASE=1; export DUALCASE # for MKS sh 12480if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 12481then : 12482 emulate sh 12483 NULLCMD=: 12484 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12485 # is contrary to our usage. Disable this feature. 12486 alias -g '${1+"$@"}'='"$@"' 12487 setopt NO_GLOB_SUBST 12488else case e in #( 12489 e) case `(set -o) 2>/dev/null` in #( 12490 *posix*) : 12491 set -o posix ;; #( 12492 *) : 12493 ;; 12494esac ;; 12495esac 12496fi 12497 12498 12499 12500# Reset variables that may have inherited troublesome values from 12501# the environment. 12502 12503# IFS needs to be set, to space, tab, and newline, in precisely that order. 12504# (If _AS_PATH_WALK were called with IFS unset, it would have the 12505# side effect of setting IFS to empty, thus disabling word splitting.) 12506# Quoting is to prevent editors from complaining about space-tab. 12507as_nl=' 12508' 12509export as_nl 12510IFS=" "" $as_nl" 12511 12512PS1='$ ' 12513PS2='> ' 12514PS4='+ ' 12515 12516# Ensure predictable behavior from utilities with locale-dependent output. 12517LC_ALL=C 12518export LC_ALL 12519LANGUAGE=C 12520export LANGUAGE 12521 12522# We cannot yet rely on "unset" to work, but we need these variables 12523# to be unset--not just set to an empty or harmless value--now, to 12524# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 12525# also avoids known problems related to "unset" and subshell syntax 12526# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 12527for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 12528do eval test \${$as_var+y} \ 12529 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12530done 12531 12532# Ensure that fds 0, 1, and 2 are open. 12533if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 12534if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 12535if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 12536 12537# The user is always right. 12538if ${PATH_SEPARATOR+false} :; then 12539 PATH_SEPARATOR=: 12540 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12541 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12542 PATH_SEPARATOR=';' 12543 } 12544fi 12545 12546 12547# Find who we are. Look in the path if we contain no directory separator. 12548as_myself= 12549case $0 in #(( 12550 *[\\/]* ) as_myself=$0 ;; 12551 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12552for as_dir in $PATH 12553do 12554 IFS=$as_save_IFS 12555 case $as_dir in #((( 12556 '') as_dir=./ ;; 12557 */) ;; 12558 *) as_dir=$as_dir/ ;; 12559 esac 12560 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 12561 done 12562IFS=$as_save_IFS 12563 12564 ;; 12565esac 12566# We did not find ourselves, most probably we were run as 'sh COMMAND' 12567# in which case we are not to be found in the path. 12568if test "x$as_myself" = x; then 12569 as_myself=$0 12570fi 12571if test ! -f "$as_myself"; then 12572 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12573 exit 1 12574fi 12575 12576 12577 12578# as_fn_error STATUS ERROR [LINENO LOG_FD] 12579# ---------------------------------------- 12580# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12581# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12582# script with STATUS, using 1 if that was 0. 12583as_fn_error () 12584{ 12585 as_status=$1; test $as_status -eq 0 && as_status=1 12586 if test "$4"; then 12587 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12588 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12589 fi 12590 printf "%s\n" "$as_me: error: $2" >&2 12591 as_fn_exit $as_status 12592} # as_fn_error 12593 12594 12595# as_fn_set_status STATUS 12596# ----------------------- 12597# Set $? to STATUS, without forking. 12598as_fn_set_status () 12599{ 12600 return $1 12601} # as_fn_set_status 12602 12603# as_fn_exit STATUS 12604# ----------------- 12605# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12606as_fn_exit () 12607{ 12608 set +e 12609 as_fn_set_status $1 12610 exit $1 12611} # as_fn_exit 12612 12613# as_fn_unset VAR 12614# --------------- 12615# Portably unset VAR. 12616as_fn_unset () 12617{ 12618 { eval $1=; unset $1;} 12619} 12620as_unset=as_fn_unset 12621 12622# as_fn_append VAR VALUE 12623# ---------------------- 12624# Append the text in VALUE to the end of the definition contained in VAR. Take 12625# advantage of any shell optimizations that allow amortized linear growth over 12626# repeated appends, instead of the typical quadratic growth present in naive 12627# implementations. 12628if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 12629then : 12630 eval 'as_fn_append () 12631 { 12632 eval $1+=\$2 12633 }' 12634else case e in #( 12635 e) as_fn_append () 12636 { 12637 eval $1=\$$1\$2 12638 } ;; 12639esac 12640fi # as_fn_append 12641 12642# as_fn_arith ARG... 12643# ------------------ 12644# Perform arithmetic evaluation on the ARGs, and store the result in the 12645# global $as_val. Take advantage of shells that can avoid forks. The arguments 12646# must be portable across $(()) and expr. 12647if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 12648then : 12649 eval 'as_fn_arith () 12650 { 12651 as_val=$(( $* )) 12652 }' 12653else case e in #( 12654 e) as_fn_arith () 12655 { 12656 as_val=`expr "$@" || test $? -eq 1` 12657 } ;; 12658esac 12659fi # as_fn_arith 12660 12661 12662if expr a : '\(a\)' >/dev/null 2>&1 && 12663 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12664 as_expr=expr 12665else 12666 as_expr=false 12667fi 12668 12669if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12670 as_basename=basename 12671else 12672 as_basename=false 12673fi 12674 12675if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12676 as_dirname=dirname 12677else 12678 as_dirname=false 12679fi 12680 12681as_me=`$as_basename -- "$0" || 12682$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12683 X"$0" : 'X\(//\)$' \| \ 12684 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12685printf "%s\n" X/"$0" | 12686 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12687 s//\1/ 12688 q 12689 } 12690 /^X\/\(\/\/\)$/{ 12691 s//\1/ 12692 q 12693 } 12694 /^X\/\(\/\).*/{ 12695 s//\1/ 12696 q 12697 } 12698 s/.*/./; q'` 12699 12700# Avoid depending upon Character Ranges. 12701as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12702as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12703as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12704as_cr_digits='0123456789' 12705as_cr_alnum=$as_cr_Letters$as_cr_digits 12706 12707 12708# Determine whether it's possible to make 'echo' print without a newline. 12709# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 12710# for compatibility with existing Makefiles. 12711ECHO_C= ECHO_N= ECHO_T= 12712case `echo -n x` in #((((( 12713-n*) 12714 case `echo 'xy\c'` in 12715 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12716 xy) ECHO_C='\c';; 12717 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12718 ECHO_T=' ';; 12719 esac;; 12720*) 12721 ECHO_N='-n';; 12722esac 12723 12724# For backward compatibility with old third-party macros, we provide 12725# the shell variables $as_echo and $as_echo_n. New code should use 12726# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 12727as_echo='printf %s\n' 12728as_echo_n='printf %s' 12729 12730rm -f conf$$ conf$$.exe conf$$.file 12731if test -d conf$$.dir; then 12732 rm -f conf$$.dir/conf$$.file 12733else 12734 rm -f conf$$.dir 12735 mkdir conf$$.dir 2>/dev/null 12736fi 12737if (echo >conf$$.file) 2>/dev/null; then 12738 if ln -s conf$$.file conf$$ 2>/dev/null; then 12739 as_ln_s='ln -s' 12740 # ... but there are two gotchas: 12741 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 12742 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 12743 # In both cases, we have to default to 'cp -pR'. 12744 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12745 as_ln_s='cp -pR' 12746 elif ln conf$$.file conf$$ 2>/dev/null; then 12747 as_ln_s=ln 12748 else 12749 as_ln_s='cp -pR' 12750 fi 12751else 12752 as_ln_s='cp -pR' 12753fi 12754rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12755rmdir conf$$.dir 2>/dev/null 12756 12757 12758# as_fn_mkdir_p 12759# ------------- 12760# Create "$as_dir" as a directory, including parents if necessary. 12761as_fn_mkdir_p () 12762{ 12763 12764 case $as_dir in #( 12765 -*) as_dir=./$as_dir;; 12766 esac 12767 test -d "$as_dir" || eval $as_mkdir_p || { 12768 as_dirs= 12769 while :; do 12770 case $as_dir in #( 12771 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12772 *) as_qdir=$as_dir;; 12773 esac 12774 as_dirs="'$as_qdir' $as_dirs" 12775 as_dir=`$as_dirname -- "$as_dir" || 12776$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12777 X"$as_dir" : 'X\(//\)[^/]' \| \ 12778 X"$as_dir" : 'X\(//\)$' \| \ 12779 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12780printf "%s\n" X"$as_dir" | 12781 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12782 s//\1/ 12783 q 12784 } 12785 /^X\(\/\/\)[^/].*/{ 12786 s//\1/ 12787 q 12788 } 12789 /^X\(\/\/\)$/{ 12790 s//\1/ 12791 q 12792 } 12793 /^X\(\/\).*/{ 12794 s//\1/ 12795 q 12796 } 12797 s/.*/./; q'` 12798 test -d "$as_dir" && break 12799 done 12800 test -z "$as_dirs" || eval "mkdir $as_dirs" 12801 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12802 12803 12804} # as_fn_mkdir_p 12805if mkdir -p . 2>/dev/null; then 12806 as_mkdir_p='mkdir -p "$as_dir"' 12807else 12808 test -d ./-p && rmdir ./-p 12809 as_mkdir_p=false 12810fi 12811 12812 12813# as_fn_executable_p FILE 12814# ----------------------- 12815# Test if FILE is an executable regular file. 12816as_fn_executable_p () 12817{ 12818 test -f "$1" && test -x "$1" 12819} # as_fn_executable_p 12820as_test_x='test -x' 12821as_executable_p=as_fn_executable_p 12822 12823# Sed expression to map a string onto a valid CPP name. 12824as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 12825as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 12826 12827# Sed expression to map a string onto a valid variable name. 12828as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 12829as_tr_sh="eval sed '$as_sed_sh'" # deprecated 12830 12831 12832exec 6>&1 12833## ----------------------------------- ## 12834## Main body of $CONFIG_STATUS script. ## 12835## ----------------------------------- ## 12836_ASEOF 12837test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12838 12839cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12840# Save the log message, to keep $0 and so on meaningful, and to 12841# report actual input values of CONFIG_FILES etc. instead of their 12842# values after options handling. 12843ac_log=" 12844This file was extended by sessreg $as_me 1.1.4, which was 12845generated by GNU Autoconf 2.72. Invocation command line was 12846 12847 CONFIG_FILES = $CONFIG_FILES 12848 CONFIG_HEADERS = $CONFIG_HEADERS 12849 CONFIG_LINKS = $CONFIG_LINKS 12850 CONFIG_COMMANDS = $CONFIG_COMMANDS 12851 $ $0 $@ 12852 12853on `(hostname || uname -n) 2>/dev/null | sed 1q` 12854" 12855 12856_ACEOF 12857 12858case $ac_config_files in *" 12859"*) set x $ac_config_files; shift; ac_config_files=$*;; 12860esac 12861 12862case $ac_config_headers in *" 12863"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12864esac 12865 12866 12867cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12868# Files that config.status was made for. 12869config_files="$ac_config_files" 12870config_headers="$ac_config_headers" 12871config_commands="$ac_config_commands" 12872 12873_ACEOF 12874 12875cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12876ac_cs_usage="\ 12877'$as_me' instantiates files and other configuration actions 12878from templates according to the current configuration. Unless the files 12879and actions are specified as TAGs, all are instantiated by default. 12880 12881Usage: $0 [OPTION]... [TAG]... 12882 12883 -h, --help print this help, then exit 12884 -V, --version print version number and configuration settings, then exit 12885 --config print configuration, then exit 12886 -q, --quiet, --silent 12887 do not print progress messages 12888 -d, --debug don't remove temporary files 12889 --recheck update $as_me by reconfiguring in the same conditions 12890 --file=FILE[:TEMPLATE] 12891 instantiate the configuration file FILE 12892 --header=FILE[:TEMPLATE] 12893 instantiate the configuration header FILE 12894 12895Configuration files: 12896$config_files 12897 12898Configuration headers: 12899$config_headers 12900 12901Configuration commands: 12902$config_commands 12903 12904Report bugs to <https://gitlab.freedesktop.org/xorg/app/sessreg/-/issues>." 12905 12906_ACEOF 12907ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 12908ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 12909cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12910ac_cs_config='$ac_cs_config_escaped' 12911ac_cs_version="\\ 12912sessreg config.status 1.1.4 12913configured by $0, generated by GNU Autoconf 2.72, 12914 with options \\"\$ac_cs_config\\" 12915 12916Copyright (C) 2023 Free Software Foundation, Inc. 12917This config.status script is free software; the Free Software Foundation 12918gives unlimited permission to copy, distribute and modify it." 12919 12920ac_pwd='$ac_pwd' 12921srcdir='$srcdir' 12922INSTALL='$INSTALL' 12923MKDIR_P='$MKDIR_P' 12924AWK='$AWK' 12925test -n "\$AWK" || AWK=awk 12926_ACEOF 12927 12928cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12929# The default lists apply if the user does not specify any file. 12930ac_need_defaults=: 12931while test $# != 0 12932do 12933 case $1 in 12934 --*=?*) 12935 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12936 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12937 ac_shift=: 12938 ;; 12939 --*=) 12940 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12941 ac_optarg= 12942 ac_shift=: 12943 ;; 12944 *) 12945 ac_option=$1 12946 ac_optarg=$2 12947 ac_shift=shift 12948 ;; 12949 esac 12950 12951 case $ac_option in 12952 # Handling of the options. 12953 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12954 ac_cs_recheck=: ;; 12955 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12956 printf "%s\n" "$ac_cs_version"; exit ;; 12957 --config | --confi | --conf | --con | --co | --c ) 12958 printf "%s\n" "$ac_cs_config"; exit ;; 12959 --debug | --debu | --deb | --de | --d | -d ) 12960 debug=: ;; 12961 --file | --fil | --fi | --f ) 12962 $ac_shift 12963 case $ac_optarg in 12964 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12965 '') as_fn_error $? "missing file argument" ;; 12966 esac 12967 as_fn_append CONFIG_FILES " '$ac_optarg'" 12968 ac_need_defaults=false;; 12969 --header | --heade | --head | --hea ) 12970 $ac_shift 12971 case $ac_optarg in 12972 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12973 esac 12974 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12975 ac_need_defaults=false;; 12976 --he | --h) 12977 # Conflict between --help and --header 12978 as_fn_error $? "ambiguous option: '$1' 12979Try '$0 --help' for more information.";; 12980 --help | --hel | -h ) 12981 printf "%s\n" "$ac_cs_usage"; exit ;; 12982 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12983 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12984 ac_cs_silent=: ;; 12985 12986 # This is an error. 12987 -*) as_fn_error $? "unrecognized option: '$1' 12988Try '$0 --help' for more information." ;; 12989 12990 *) as_fn_append ac_config_targets " $1" 12991 ac_need_defaults=false ;; 12992 12993 esac 12994 shift 12995done 12996 12997ac_configure_extra_args= 12998 12999if $ac_cs_silent; then 13000 exec 6>/dev/null 13001 ac_configure_extra_args="$ac_configure_extra_args --silent" 13002fi 13003 13004_ACEOF 13005cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13006if \$ac_cs_recheck; then 13007 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13008 shift 13009 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 13010 CONFIG_SHELL='$SHELL' 13011 export CONFIG_SHELL 13012 exec "\$@" 13013fi 13014 13015_ACEOF 13016cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13017exec 5>>config.log 13018{ 13019 echo 13020 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13021## Running $as_me. ## 13022_ASBOX 13023 printf "%s\n" "$ac_log" 13024} >&5 13025 13026_ACEOF 13027cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13028# 13029# INIT-COMMANDS 13030# 13031AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 13032 13033_ACEOF 13034 13035cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13036 13037# Handling of arguments. 13038for ac_config_target in $ac_config_targets 13039do 13040 case $ac_config_target in 13041 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 13042 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 13043 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13044 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 13045 13046 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 13047 esac 13048done 13049 13050 13051# If the user did not use the arguments to specify the items to instantiate, 13052# then the envvar interface is used. Set only those that are not. 13053# We use the long form for the default assignment because of an extremely 13054# bizarre bug on SunOS 4.1.3. 13055if $ac_need_defaults; then 13056 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 13057 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 13058 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 13059fi 13060 13061# Have a temporary directory for convenience. Make it in the build tree 13062# simply because there is no reason against having it here, and in addition, 13063# creating and moving files from /tmp can sometimes cause problems. 13064# Hook for its removal unless debugging. 13065# Note that there is a small window in which the directory will not be cleaned: 13066# after its creation but before its name has been assigned to '$tmp'. 13067$debug || 13068{ 13069 tmp= ac_tmp= 13070 trap 'exit_status=$? 13071 : "${ac_tmp:=$tmp}" 13072 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 13073' 0 13074 trap 'as_fn_exit 1' 1 2 13 15 13075} 13076# Create a (secure) tmp directory for tmp files. 13077 13078{ 13079 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 13080 test -d "$tmp" 13081} || 13082{ 13083 tmp=./conf$$-$RANDOM 13084 (umask 077 && mkdir "$tmp") 13085} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 13086ac_tmp=$tmp 13087 13088# Set up the scripts for CONFIG_FILES section. 13089# No need to generate them if there are no CONFIG_FILES. 13090# This happens for instance with './config.status config.h'. 13091if test -n "$CONFIG_FILES"; then 13092 13093 13094ac_cr=`echo X | tr X '\015'` 13095# On cygwin, bash can eat \r inside `` if the user requested igncr. 13096# But we know of no other shell where ac_cr would be empty at this 13097# point, so we can use a bashism as a fallback. 13098if test "x$ac_cr" = x; then 13099 eval ac_cr=\$\'\\r\' 13100fi 13101ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 13102if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 13103 ac_cs_awk_cr='\\r' 13104else 13105 ac_cs_awk_cr=$ac_cr 13106fi 13107 13108echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 13109_ACEOF 13110 13111 13112{ 13113 echo "cat >conf$$subs.awk <<_ACEOF" && 13114 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 13115 echo "_ACEOF" 13116} >conf$$subs.sh || 13117 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13118ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 13119ac_delim='%!_!# ' 13120for ac_last_try in false false false false false :; do 13121 . ./conf$$subs.sh || 13122 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13123 13124 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 13125 if test $ac_delim_n = $ac_delim_num; then 13126 break 13127 elif $ac_last_try; then 13128 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13129 else 13130 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13131 fi 13132done 13133rm -f conf$$subs.sh 13134 13135cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13136cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 13137_ACEOF 13138sed -n ' 13139h 13140s/^/S["/; s/!.*/"]=/ 13141p 13142g 13143s/^[^!]*!// 13144:repl 13145t repl 13146s/'"$ac_delim"'$// 13147t delim 13148:nl 13149h 13150s/\(.\{148\}\)..*/\1/ 13151t more1 13152s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 13153p 13154n 13155b repl 13156:more1 13157s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13158p 13159g 13160s/.\{148\}// 13161t nl 13162:delim 13163h 13164s/\(.\{148\}\)..*/\1/ 13165t more2 13166s/["\\]/\\&/g; s/^/"/; s/$/"/ 13167p 13168b 13169:more2 13170s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13171p 13172g 13173s/.\{148\}// 13174t delim 13175' <conf$$subs.awk | sed ' 13176/^[^""]/{ 13177 N 13178 s/\n// 13179} 13180' >>$CONFIG_STATUS || ac_write_fail=1 13181rm -f conf$$subs.awk 13182cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13183_ACAWK 13184cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 13185 for (key in S) S_is_set[key] = 1 13186 FS = "" 13187 13188} 13189{ 13190 line = $ 0 13191 nfields = split(line, field, "@") 13192 substed = 0 13193 len = length(field[1]) 13194 for (i = 2; i < nfields; i++) { 13195 key = field[i] 13196 keylen = length(key) 13197 if (S_is_set[key]) { 13198 value = S[key] 13199 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 13200 len += length(value) + length(field[++i]) 13201 substed = 1 13202 } else 13203 len += 1 + keylen 13204 } 13205 13206 print line 13207} 13208 13209_ACAWK 13210_ACEOF 13211cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13212if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 13213 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 13214else 13215 cat 13216fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 13217 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 13218_ACEOF 13219 13220# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 13221# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 13222# trailing colons and then remove the whole line if VPATH becomes empty 13223# (actually we leave an empty line to preserve line numbers). 13224if test "x$srcdir" = x.; then 13225 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 13226h 13227s/// 13228s/^/:/ 13229s/[ ]*$/:/ 13230s/:\$(srcdir):/:/g 13231s/:\${srcdir}:/:/g 13232s/:@srcdir@:/:/g 13233s/^:*// 13234s/:*$// 13235x 13236s/\(=[ ]*\).*/\1/ 13237G 13238s/\n// 13239s/^[^=]*=[ ]*$// 13240}' 13241fi 13242 13243cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13244fi # test -n "$CONFIG_FILES" 13245 13246# Set up the scripts for CONFIG_HEADERS section. 13247# No need to generate them if there are no CONFIG_HEADERS. 13248# This happens for instance with './config.status Makefile'. 13249if test -n "$CONFIG_HEADERS"; then 13250cat >"$ac_tmp/defines.awk" <<\_ACAWK || 13251BEGIN { 13252_ACEOF 13253 13254# Transform confdefs.h into an awk script 'defines.awk', embedded as 13255# here-document in config.status, that substitutes the proper values into 13256# config.h.in to produce config.h. 13257 13258# Create a delimiter string that does not exist in confdefs.h, to ease 13259# handling of long lines. 13260ac_delim='%!_!# ' 13261for ac_last_try in false false :; do 13262 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 13263 if test -z "$ac_tt"; then 13264 break 13265 elif $ac_last_try; then 13266 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 13267 else 13268 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13269 fi 13270done 13271 13272# For the awk script, D is an array of macro values keyed by name, 13273# likewise P contains macro parameters if any. Preserve backslash 13274# newline sequences. 13275 13276ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 13277sed -n ' 13278s/.\{148\}/&'"$ac_delim"'/g 13279t rset 13280:rset 13281s/^[ ]*#[ ]*define[ ][ ]*/ / 13282t def 13283d 13284:def 13285s/\\$// 13286t bsnl 13287s/["\\]/\\&/g 13288s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13289D["\1"]=" \3"/p 13290s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 13291d 13292:bsnl 13293s/["\\]/\\&/g 13294s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13295D["\1"]=" \3\\\\\\n"\\/p 13296t cont 13297s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 13298t cont 13299d 13300:cont 13301n 13302s/.\{148\}/&'"$ac_delim"'/g 13303t clear 13304:clear 13305s/\\$// 13306t bsnlc 13307s/["\\]/\\&/g; s/^/"/; s/$/"/p 13308d 13309:bsnlc 13310s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 13311b cont 13312' <confdefs.h | sed ' 13313s/'"$ac_delim"'/"\\\ 13314"/g' >>$CONFIG_STATUS || ac_write_fail=1 13315 13316cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13317 for (key in D) D_is_set[key] = 1 13318 FS = "" 13319} 13320/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 13321 line = \$ 0 13322 split(line, arg, " ") 13323 if (arg[1] == "#") { 13324 defundef = arg[2] 13325 mac1 = arg[3] 13326 } else { 13327 defundef = substr(arg[1], 2) 13328 mac1 = arg[2] 13329 } 13330 split(mac1, mac2, "(") #) 13331 macro = mac2[1] 13332 prefix = substr(line, 1, index(line, defundef) - 1) 13333 if (D_is_set[macro]) { 13334 # Preserve the white space surrounding the "#". 13335 print prefix "define", macro P[macro] D[macro] 13336 next 13337 } else { 13338 # Replace #undef with comments. This is necessary, for example, 13339 # in the case of _POSIX_SOURCE, which is predefined and required 13340 # on some systems where configure will not decide to define it. 13341 if (defundef == "undef") { 13342 print "/*", prefix defundef, macro, "*/" 13343 next 13344 } 13345 } 13346} 13347{ print } 13348_ACAWK 13349_ACEOF 13350cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13351 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 13352fi # test -n "$CONFIG_HEADERS" 13353 13354 13355eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 13356shift 13357for ac_tag 13358do 13359 case $ac_tag in 13360 :[FHLC]) ac_mode=$ac_tag; continue;; 13361 esac 13362 case $ac_mode$ac_tag in 13363 :[FHL]*:*);; 13364 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 13365 :[FH]-) ac_tag=-:-;; 13366 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13367 esac 13368 ac_save_IFS=$IFS 13369 IFS=: 13370 set x $ac_tag 13371 IFS=$ac_save_IFS 13372 shift 13373 ac_file=$1 13374 shift 13375 13376 case $ac_mode in 13377 :L) ac_source=$1;; 13378 :[FH]) 13379 ac_file_inputs= 13380 for ac_f 13381 do 13382 case $ac_f in 13383 -) ac_f="$ac_tmp/stdin";; 13384 *) # Look for the file first in the build tree, then in the source tree 13385 # (if the path is not absolute). The absolute path cannot be DOS-style, 13386 # because $ac_f cannot contain ':'. 13387 test -f "$ac_f" || 13388 case $ac_f in 13389 [\\/$]*) false;; 13390 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13391 esac || 13392 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 13393 esac 13394 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13395 as_fn_append ac_file_inputs " '$ac_f'" 13396 done 13397 13398 # Let's still pretend it is 'configure' which instantiates (i.e., don't 13399 # use $as_me), people would be surprised to read: 13400 # /* config.h. Generated by config.status. */ 13401 configure_input='Generated from '` 13402 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13403 `' by configure.' 13404 if test x"$ac_file" != x-; then 13405 configure_input="$ac_file. $configure_input" 13406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13407printf "%s\n" "$as_me: creating $ac_file" >&6;} 13408 fi 13409 # Neutralize special characters interpreted by sed in replacement strings. 13410 case $configure_input in #( 13411 *\&* | *\|* | *\\* ) 13412 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 13413 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13414 *) ac_sed_conf_input=$configure_input;; 13415 esac 13416 13417 case $ac_tag in 13418 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 13419 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 13420 esac 13421 ;; 13422 esac 13423 13424 ac_dir=`$as_dirname -- "$ac_file" || 13425$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13426 X"$ac_file" : 'X\(//\)[^/]' \| \ 13427 X"$ac_file" : 'X\(//\)$' \| \ 13428 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13429printf "%s\n" X"$ac_file" | 13430 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13431 s//\1/ 13432 q 13433 } 13434 /^X\(\/\/\)[^/].*/{ 13435 s//\1/ 13436 q 13437 } 13438 /^X\(\/\/\)$/{ 13439 s//\1/ 13440 q 13441 } 13442 /^X\(\/\).*/{ 13443 s//\1/ 13444 q 13445 } 13446 s/.*/./; q'` 13447 as_dir="$ac_dir"; as_fn_mkdir_p 13448 ac_builddir=. 13449 13450case "$ac_dir" in 13451.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13452*) 13453 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 13454 # A ".." for each directory in $ac_dir_suffix. 13455 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13456 case $ac_top_builddir_sub in 13457 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13458 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13459 esac ;; 13460esac 13461ac_abs_top_builddir=$ac_pwd 13462ac_abs_builddir=$ac_pwd$ac_dir_suffix 13463# for backward compatibility: 13464ac_top_builddir=$ac_top_build_prefix 13465 13466case $srcdir in 13467 .) # We are building in place. 13468 ac_srcdir=. 13469 ac_top_srcdir=$ac_top_builddir_sub 13470 ac_abs_top_srcdir=$ac_pwd ;; 13471 [\\/]* | ?:[\\/]* ) # Absolute name. 13472 ac_srcdir=$srcdir$ac_dir_suffix; 13473 ac_top_srcdir=$srcdir 13474 ac_abs_top_srcdir=$srcdir ;; 13475 *) # Relative name. 13476 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13477 ac_top_srcdir=$ac_top_build_prefix$srcdir 13478 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13479esac 13480ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13481 13482 13483 case $ac_mode in 13484 :F) 13485 # 13486 # CONFIG_FILE 13487 # 13488 13489 case $INSTALL in 13490 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13491 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13492 esac 13493 ac_MKDIR_P=$MKDIR_P 13494 case $MKDIR_P in 13495 [\\/$]* | ?:[\\/]* ) ;; 13496 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 13497 esac 13498_ACEOF 13499 13500cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13501# If the template does not know about datarootdir, expand it. 13502# FIXME: This hack should be removed a few years after 2.60. 13503ac_datarootdir_hack=; ac_datarootdir_seen= 13504ac_sed_dataroot=' 13505/datarootdir/ { 13506 p 13507 q 13508} 13509/@datadir@/p 13510/@docdir@/p 13511/@infodir@/p 13512/@localedir@/p 13513/@mandir@/p' 13514case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13515*datarootdir*) ac_datarootdir_seen=yes;; 13516*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13518printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13519_ACEOF 13520cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13521 ac_datarootdir_hack=' 13522 s&@datadir@&$datadir&g 13523 s&@docdir@&$docdir&g 13524 s&@infodir@&$infodir&g 13525 s&@localedir@&$localedir&g 13526 s&@mandir@&$mandir&g 13527 s&\\\${datarootdir}&$datarootdir&g' ;; 13528esac 13529_ACEOF 13530 13531# Neutralize VPATH when '$srcdir' = '.'. 13532# Shell code in configure.ac might set extrasub. 13533# FIXME: do we really want to maintain this feature? 13534cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13535ac_sed_extra="$ac_vpsub 13536$extrasub 13537_ACEOF 13538cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13539:t 13540/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13541s|@configure_input@|$ac_sed_conf_input|;t t 13542s&@top_builddir@&$ac_top_builddir_sub&;t t 13543s&@top_build_prefix@&$ac_top_build_prefix&;t t 13544s&@srcdir@&$ac_srcdir&;t t 13545s&@abs_srcdir@&$ac_abs_srcdir&;t t 13546s&@top_srcdir@&$ac_top_srcdir&;t t 13547s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13548s&@builddir@&$ac_builddir&;t t 13549s&@abs_builddir@&$ac_abs_builddir&;t t 13550s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13551s&@INSTALL@&$ac_INSTALL&;t t 13552s&@MKDIR_P@&$ac_MKDIR_P&;t t 13553$ac_datarootdir_hack 13554" 13555eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 13556 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13557 13558test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13559 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 13560 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 13561 "$ac_tmp/out"`; test -z "$ac_out"; } && 13562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 13563which seems to be undefined. Please make sure it is defined" >&5 13564printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 13565which seems to be undefined. Please make sure it is defined" >&2;} 13566 13567 rm -f "$ac_tmp/stdin" 13568 case $ac_file in 13569 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 13570 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 13571 esac \ 13572 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13573 ;; 13574 :H) 13575 # 13576 # CONFIG_HEADER 13577 # 13578 if test x"$ac_file" != x-; then 13579 { 13580 printf "%s\n" "/* $configure_input */" >&1 \ 13581 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 13582 } >"$ac_tmp/config.h" \ 13583 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13584 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 13585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13586printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 13587 else 13588 rm -f "$ac_file" 13589 mv "$ac_tmp/config.h" "$ac_file" \ 13590 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13591 fi 13592 else 13593 printf "%s\n" "/* $configure_input */" >&1 \ 13594 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 13595 || as_fn_error $? "could not create -" "$LINENO" 5 13596 fi 13597# Compute "$ac_file"'s index in $config_headers. 13598_am_arg="$ac_file" 13599_am_stamp_count=1 13600for _am_header in $config_headers :; do 13601 case $_am_header in 13602 $_am_arg | $_am_arg:* ) 13603 break ;; 13604 * ) 13605 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13606 esac 13607done 13608echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 13609$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13610 X"$_am_arg" : 'X\(//\)[^/]' \| \ 13611 X"$_am_arg" : 'X\(//\)$' \| \ 13612 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 13613printf "%s\n" X"$_am_arg" | 13614 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13615 s//\1/ 13616 q 13617 } 13618 /^X\(\/\/\)[^/].*/{ 13619 s//\1/ 13620 q 13621 } 13622 /^X\(\/\/\)$/{ 13623 s//\1/ 13624 q 13625 } 13626 /^X\(\/\).*/{ 13627 s//\1/ 13628 q 13629 } 13630 s/.*/./; q'`/stamp-h$_am_stamp_count 13631 ;; 13632 13633 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13634printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 13635 ;; 13636 esac 13637 13638 13639 case $ac_file$ac_mode in 13640 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13641 # Older Autoconf quotes --file arguments for eval, but not when files 13642 # are listed without --file. Let's play safe and only enable the eval 13643 # if we detect the quoting. 13644 # TODO: see whether this extra hack can be removed once we start 13645 # requiring Autoconf 2.70 or later. 13646 case $CONFIG_FILES in #( 13647 *\'*) : 13648 eval set x "$CONFIG_FILES" ;; #( 13649 *) : 13650 set x $CONFIG_FILES ;; #( 13651 *) : 13652 ;; 13653esac 13654 shift 13655 # Used to flag and report bootstrapping failures. 13656 am_rc=0 13657 for am_mf 13658 do 13659 # Strip MF so we end up with the name of the file. 13660 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 13661 # Check whether this is an Automake generated Makefile which includes 13662 # dependency-tracking related rules and includes. 13663 # Grep'ing the whole file directly is not great: AIX grep has a line 13664 # limit of 2048, but all sed's we know have understand at least 4000. 13665 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 13666 || continue 13667 am_dirpart=`$as_dirname -- "$am_mf" || 13668$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13669 X"$am_mf" : 'X\(//\)[^/]' \| \ 13670 X"$am_mf" : 'X\(//\)$' \| \ 13671 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13672printf "%s\n" X"$am_mf" | 13673 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13674 s//\1/ 13675 q 13676 } 13677 /^X\(\/\/\)[^/].*/{ 13678 s//\1/ 13679 q 13680 } 13681 /^X\(\/\/\)$/{ 13682 s//\1/ 13683 q 13684 } 13685 /^X\(\/\).*/{ 13686 s//\1/ 13687 q 13688 } 13689 s/.*/./; q'` 13690 am_filepart=`$as_basename -- "$am_mf" || 13691$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 13692 X"$am_mf" : 'X\(//\)$' \| \ 13693 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13694printf "%s\n" X/"$am_mf" | 13695 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13696 s//\1/ 13697 q 13698 } 13699 /^X\/\(\/\/\)$/{ 13700 s//\1/ 13701 q 13702 } 13703 /^X\/\(\/\).*/{ 13704 s//\1/ 13705 q 13706 } 13707 s/.*/./; q'` 13708 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 13709 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13710 | $MAKE -f - am--depfiles" >&5 13711 (cd "$am_dirpart" \ 13712 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13713 | $MAKE -f - am--depfiles) >&5 2>&5 13714 ac_status=$? 13715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13716 (exit $ac_status); } || am_rc=$? 13717 done 13718 if test $am_rc -ne 0; then 13719 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 13720printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 13721as_fn_error $? "Something went wrong bootstrapping makefile fragments 13722 for automatic dependency tracking. If GNU make was not used, consider 13723 re-running the configure script with MAKE=\"gmake\" (or whatever is 13724 necessary). You can also try re-running configure with the 13725 '--disable-dependency-tracking' option to at least be able to build 13726 the package (albeit without support for automatic dependency tracking). 13727See 'config.log' for more details" "$LINENO" 5; } 13728 fi 13729 { am_dirpart=; unset am_dirpart;} 13730 { am_filepart=; unset am_filepart;} 13731 { am_mf=; unset am_mf;} 13732 { am_rc=; unset am_rc;} 13733 rm -f conftest-deps.mk 13734} 13735 ;; 13736 13737 esac 13738done # for ac_tag 13739 13740 13741as_fn_exit 0 13742_ACEOF 13743ac_clean_files=$ac_clean_files_save 13744 13745test $ac_write_fail = 0 || 13746 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 13747 13748 13749# configure is writing to config.log, and then calls config.status. 13750# config.status does its own redirection, appending to config.log. 13751# Unfortunately, on DOS this fails, as config.log is still kept open 13752# by configure, so config.status won't be able to write to it; its 13753# output is simply discarded. So we exec the FD to /dev/null, 13754# effectively closing config.log, so it can be properly (re)opened and 13755# appended to by config.status. When coming back to configure, we 13756# need to make the FD available again. 13757if test "$no_create" != yes; then 13758 ac_cs_success=: 13759 ac_config_status_args= 13760 test "$silent" = yes && 13761 ac_config_status_args="$ac_config_status_args --quiet" 13762 exec 5>/dev/null 13763 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13764 exec 5>>config.log 13765 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13766 # would make configure fail if this is the last instruction. 13767 $ac_cs_success || as_fn_exit 1 13768fi 13769if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13771printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13772fi 13773 13774 13775