1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.72 for fslsfonts 1.0.7. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/fslsfonts/-/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/fslsfonts/-/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='fslsfonts' 607PACKAGE_TARNAME='fslsfonts' 608PACKAGE_VERSION='1.0.7' 609PACKAGE_STRING='fslsfonts 1.0.7' 610PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/fslsfonts/-/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= 646ac_subst_vars='am__EXEEXT_FALSE 647am__EXEEXT_TRUE 648LTLIBOBJS 649LIBOBJS 650FSLSFONTS_LIBS 651FSLSFONTS_CFLAGS 652MAN_SUBSTS 653XORG_MAN_PAGE 654ADMIN_MAN_DIR 655DRIVER_MAN_DIR 656MISC_MAN_DIR 657FILE_MAN_DIR 658LIB_MAN_DIR 659APP_MAN_DIR 660ADMIN_MAN_SUFFIX 661DRIVER_MAN_SUFFIX 662MISC_MAN_SUFFIX 663FILE_MAN_SUFFIX 664LIB_MAN_SUFFIX 665APP_MAN_SUFFIX 666SED 667host_os 668host_vendor 669host_cpu 670host 671build_os 672build_vendor 673build_cpu 674build 675INSTALL_CMD 676PKG_CONFIG_LIBDIR 677PKG_CONFIG_PATH 678PKG_CONFIG 679CHANGELOG_CMD 680STRICT_CFLAGS 681CWARNFLAGS 682BASE_CFLAGS 683am__xargs_n 684am__rm_f_notfound 685AM_BACKSLASH 686AM_DEFAULT_VERBOSITY 687AM_DEFAULT_V 688AM_V 689CSCOPE 690ETAGS 691CTAGS 692am__fastdepCC_FALSE 693am__fastdepCC_TRUE 694CCDEPMODE 695am__nodep 696AMDEPBACKSLASH 697AMDEP_FALSE 698AMDEP_TRUE 699am__include 700DEPDIR 701am__untar 702am__tar 703AMTAR 704am__leading_dot 705SET_MAKE 706AWK 707mkdir_p 708MKDIR_P 709INSTALL_STRIP_PROGRAM 710STRIP 711install_sh 712MAKEINFO 713AUTOHEADER 714AUTOMAKE 715AUTOCONF 716ACLOCAL 717VERSION 718PACKAGE 719CYGPATH_W 720am__isrc 721INSTALL_DATA 722INSTALL_SCRIPT 723INSTALL_PROGRAM 724OBJEXT 725EXEEXT 726ac_ct_CC 727CPPFLAGS 728LDFLAGS 729CFLAGS 730CC 731target_alias 732host_alias 733build_alias 734LIBS 735ECHO_T 736ECHO_N 737ECHO_C 738DEFS 739mandir 740localedir 741libdir 742psdir 743pdfdir 744dvidir 745htmldir 746infodir 747docdir 748oldincludedir 749includedir 750runstatedir 751localstatedir 752sharedstatedir 753sysconfdir 754datadir 755datarootdir 756libexecdir 757sbindir 758bindir 759program_transform_name 760prefix 761exec_prefix 762PACKAGE_URL 763PACKAGE_BUGREPORT 764PACKAGE_STRING 765PACKAGE_VERSION 766PACKAGE_TARNAME 767PACKAGE_NAME 768PATH_SEPARATOR 769SHELL 770am__quote' 771ac_subst_files='' 772ac_user_opts=' 773enable_option_checking 774enable_dependency_tracking 775enable_silent_rules 776enable_selective_werror 777enable_strict_compilation 778' 779 ac_precious_vars='build_alias 780host_alias 781target_alias 782CC 783CFLAGS 784LDFLAGS 785LIBS 786CPPFLAGS 787PKG_CONFIG 788PKG_CONFIG_PATH 789PKG_CONFIG_LIBDIR 790FSLSFONTS_CFLAGS 791FSLSFONTS_LIBS' 792 793 794# Initialize some variables set by options. 795ac_init_help= 796ac_init_version=false 797ac_unrecognized_opts= 798ac_unrecognized_sep= 799# The variables have the same names as the options, with 800# dashes changed to underlines. 801cache_file=/dev/null 802exec_prefix=NONE 803no_create= 804no_recursion= 805prefix=NONE 806program_prefix=NONE 807program_suffix=NONE 808program_transform_name=s,x,x, 809silent= 810site= 811srcdir= 812verbose= 813x_includes=NONE 814x_libraries=NONE 815 816# Installation directory options. 817# These are left unexpanded so users can "make install exec_prefix=/foo" 818# and all the variables that are supposed to be based on exec_prefix 819# by default will actually change. 820# Use braces instead of parens because sh, perl, etc. also accept them. 821# (The list follows the same order as the GNU Coding Standards.) 822bindir='${exec_prefix}/bin' 823sbindir='${exec_prefix}/sbin' 824libexecdir='${exec_prefix}/libexec' 825datarootdir='${prefix}/share' 826datadir='${datarootdir}' 827sysconfdir='${prefix}/etc' 828sharedstatedir='${prefix}/com' 829localstatedir='${prefix}/var' 830runstatedir='${localstatedir}/run' 831includedir='${prefix}/include' 832oldincludedir='/usr/include' 833docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 834infodir='${datarootdir}/info' 835htmldir='${docdir}' 836dvidir='${docdir}' 837pdfdir='${docdir}' 838psdir='${docdir}' 839libdir='${exec_prefix}/lib' 840localedir='${datarootdir}/locale' 841mandir='${datarootdir}/man' 842 843ac_prev= 844ac_dashdash= 845for ac_option 846do 847 # If the previous option needs an argument, assign it. 848 if test -n "$ac_prev"; then 849 eval $ac_prev=\$ac_option 850 ac_prev= 851 continue 852 fi 853 854 case $ac_option in 855 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 856 *=) ac_optarg= ;; 857 *) ac_optarg=yes ;; 858 esac 859 860 case $ac_dashdash$ac_option in 861 --) 862 ac_dashdash=yes ;; 863 864 -bindir | --bindir | --bindi | --bind | --bin | --bi) 865 ac_prev=bindir ;; 866 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 867 bindir=$ac_optarg ;; 868 869 -build | --build | --buil | --bui | --bu) 870 ac_prev=build_alias ;; 871 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 872 build_alias=$ac_optarg ;; 873 874 -cache-file | --cache-file | --cache-fil | --cache-fi \ 875 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 876 ac_prev=cache_file ;; 877 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 878 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 879 cache_file=$ac_optarg ;; 880 881 --config-cache | -C) 882 cache_file=config.cache ;; 883 884 -datadir | --datadir | --datadi | --datad) 885 ac_prev=datadir ;; 886 -datadir=* | --datadir=* | --datadi=* | --datad=*) 887 datadir=$ac_optarg ;; 888 889 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 890 | --dataroo | --dataro | --datar) 891 ac_prev=datarootdir ;; 892 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 893 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 894 datarootdir=$ac_optarg ;; 895 896 -disable-* | --disable-*) 897 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 898 # Reject names that are not valid shell variable names. 899 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 900 as_fn_error $? "invalid feature name: '$ac_useropt'" 901 ac_useropt_orig=$ac_useropt 902 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 903 case $ac_user_opts in 904 *" 905"enable_$ac_useropt" 906"*) ;; 907 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 908 ac_unrecognized_sep=', ';; 909 esac 910 eval enable_$ac_useropt=no ;; 911 912 -docdir | --docdir | --docdi | --doc | --do) 913 ac_prev=docdir ;; 914 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 915 docdir=$ac_optarg ;; 916 917 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 918 ac_prev=dvidir ;; 919 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 920 dvidir=$ac_optarg ;; 921 922 -enable-* | --enable-*) 923 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 924 # Reject names that are not valid shell variable names. 925 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 926 as_fn_error $? "invalid feature name: '$ac_useropt'" 927 ac_useropt_orig=$ac_useropt 928 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 929 case $ac_user_opts in 930 *" 931"enable_$ac_useropt" 932"*) ;; 933 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 934 ac_unrecognized_sep=', ';; 935 esac 936 eval enable_$ac_useropt=\$ac_optarg ;; 937 938 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 939 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 940 | --exec | --exe | --ex) 941 ac_prev=exec_prefix ;; 942 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 943 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 944 | --exec=* | --exe=* | --ex=*) 945 exec_prefix=$ac_optarg ;; 946 947 -gas | --gas | --ga | --g) 948 # Obsolete; use --with-gas. 949 with_gas=yes ;; 950 951 -help | --help | --hel | --he | -h) 952 ac_init_help=long ;; 953 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 954 ac_init_help=recursive ;; 955 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 956 ac_init_help=short ;; 957 958 -host | --host | --hos | --ho) 959 ac_prev=host_alias ;; 960 -host=* | --host=* | --hos=* | --ho=*) 961 host_alias=$ac_optarg ;; 962 963 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 964 ac_prev=htmldir ;; 965 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 966 | --ht=*) 967 htmldir=$ac_optarg ;; 968 969 -includedir | --includedir | --includedi | --included | --include \ 970 | --includ | --inclu | --incl | --inc) 971 ac_prev=includedir ;; 972 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 973 | --includ=* | --inclu=* | --incl=* | --inc=*) 974 includedir=$ac_optarg ;; 975 976 -infodir | --infodir | --infodi | --infod | --info | --inf) 977 ac_prev=infodir ;; 978 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 979 infodir=$ac_optarg ;; 980 981 -libdir | --libdir | --libdi | --libd) 982 ac_prev=libdir ;; 983 -libdir=* | --libdir=* | --libdi=* | --libd=*) 984 libdir=$ac_optarg ;; 985 986 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 987 | --libexe | --libex | --libe) 988 ac_prev=libexecdir ;; 989 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 990 | --libexe=* | --libex=* | --libe=*) 991 libexecdir=$ac_optarg ;; 992 993 -localedir | --localedir | --localedi | --localed | --locale) 994 ac_prev=localedir ;; 995 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 996 localedir=$ac_optarg ;; 997 998 -localstatedir | --localstatedir | --localstatedi | --localstated \ 999 | --localstate | --localstat | --localsta | --localst | --locals) 1000 ac_prev=localstatedir ;; 1001 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1002 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1003 localstatedir=$ac_optarg ;; 1004 1005 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1006 ac_prev=mandir ;; 1007 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1008 mandir=$ac_optarg ;; 1009 1010 -nfp | --nfp | --nf) 1011 # Obsolete; use --without-fp. 1012 with_fp=no ;; 1013 1014 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1015 | --no-cr | --no-c | -n) 1016 no_create=yes ;; 1017 1018 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1019 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1020 no_recursion=yes ;; 1021 1022 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1023 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1024 | --oldin | --oldi | --old | --ol | --o) 1025 ac_prev=oldincludedir ;; 1026 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1027 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1028 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1029 oldincludedir=$ac_optarg ;; 1030 1031 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1032 ac_prev=prefix ;; 1033 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1034 prefix=$ac_optarg ;; 1035 1036 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1037 | --program-pre | --program-pr | --program-p) 1038 ac_prev=program_prefix ;; 1039 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1040 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1041 program_prefix=$ac_optarg ;; 1042 1043 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1044 | --program-suf | --program-su | --program-s) 1045 ac_prev=program_suffix ;; 1046 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1047 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1048 program_suffix=$ac_optarg ;; 1049 1050 -program-transform-name | --program-transform-name \ 1051 | --program-transform-nam | --program-transform-na \ 1052 | --program-transform-n | --program-transform- \ 1053 | --program-transform | --program-transfor \ 1054 | --program-transfo | --program-transf \ 1055 | --program-trans | --program-tran \ 1056 | --progr-tra | --program-tr | --program-t) 1057 ac_prev=program_transform_name ;; 1058 -program-transform-name=* | --program-transform-name=* \ 1059 | --program-transform-nam=* | --program-transform-na=* \ 1060 | --program-transform-n=* | --program-transform-=* \ 1061 | --program-transform=* | --program-transfor=* \ 1062 | --program-transfo=* | --program-transf=* \ 1063 | --program-trans=* | --program-tran=* \ 1064 | --progr-tra=* | --program-tr=* | --program-t=*) 1065 program_transform_name=$ac_optarg ;; 1066 1067 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1068 ac_prev=pdfdir ;; 1069 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1070 pdfdir=$ac_optarg ;; 1071 1072 -psdir | --psdir | --psdi | --psd | --ps) 1073 ac_prev=psdir ;; 1074 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1075 psdir=$ac_optarg ;; 1076 1077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1078 | -silent | --silent | --silen | --sile | --sil) 1079 silent=yes ;; 1080 1081 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1082 | --runstate | --runstat | --runsta | --runst | --runs \ 1083 | --run | --ru | --r) 1084 ac_prev=runstatedir ;; 1085 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1086 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1087 | --run=* | --ru=* | --r=*) 1088 runstatedir=$ac_optarg ;; 1089 1090 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1091 ac_prev=sbindir ;; 1092 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1093 | --sbi=* | --sb=*) 1094 sbindir=$ac_optarg ;; 1095 1096 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1097 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1098 | --sharedst | --shareds | --shared | --share | --shar \ 1099 | --sha | --sh) 1100 ac_prev=sharedstatedir ;; 1101 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1102 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1103 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1104 | --sha=* | --sh=*) 1105 sharedstatedir=$ac_optarg ;; 1106 1107 -site | --site | --sit) 1108 ac_prev=site ;; 1109 -site=* | --site=* | --sit=*) 1110 site=$ac_optarg ;; 1111 1112 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1113 ac_prev=srcdir ;; 1114 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1115 srcdir=$ac_optarg ;; 1116 1117 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1118 | --syscon | --sysco | --sysc | --sys | --sy) 1119 ac_prev=sysconfdir ;; 1120 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1121 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1122 sysconfdir=$ac_optarg ;; 1123 1124 -target | --target | --targe | --targ | --tar | --ta | --t) 1125 ac_prev=target_alias ;; 1126 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1127 target_alias=$ac_optarg ;; 1128 1129 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1130 verbose=yes ;; 1131 1132 -version | --version | --versio | --versi | --vers | -V) 1133 ac_init_version=: ;; 1134 1135 -with-* | --with-*) 1136 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1137 # Reject names that are not valid shell variable names. 1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1139 as_fn_error $? "invalid package name: '$ac_useropt'" 1140 ac_useropt_orig=$ac_useropt 1141 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1142 case $ac_user_opts in 1143 *" 1144"with_$ac_useropt" 1145"*) ;; 1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1147 ac_unrecognized_sep=', ';; 1148 esac 1149 eval with_$ac_useropt=\$ac_optarg ;; 1150 1151 -without-* | --without-*) 1152 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1153 # Reject names that are not valid shell variable names. 1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1155 as_fn_error $? "invalid package name: '$ac_useropt'" 1156 ac_useropt_orig=$ac_useropt 1157 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1158 case $ac_user_opts in 1159 *" 1160"with_$ac_useropt" 1161"*) ;; 1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1163 ac_unrecognized_sep=', ';; 1164 esac 1165 eval with_$ac_useropt=no ;; 1166 1167 --x) 1168 # Obsolete; use --with-x. 1169 with_x=yes ;; 1170 1171 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1172 | --x-incl | --x-inc | --x-in | --x-i) 1173 ac_prev=x_includes ;; 1174 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1175 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1176 x_includes=$ac_optarg ;; 1177 1178 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1179 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1180 ac_prev=x_libraries ;; 1181 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1182 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1183 x_libraries=$ac_optarg ;; 1184 1185 -*) as_fn_error $? "unrecognized option: '$ac_option' 1186Try '$0 --help' for more information" 1187 ;; 1188 1189 *=*) 1190 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1191 # Reject names that are not valid shell variable names. 1192 case $ac_envvar in #( 1193 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1194 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1195 esac 1196 eval $ac_envvar=\$ac_optarg 1197 export $ac_envvar ;; 1198 1199 *) 1200 # FIXME: should be removed in autoconf 3.0. 1201 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1202 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1203 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1204 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1205 ;; 1206 1207 esac 1208done 1209 1210if test -n "$ac_prev"; then 1211 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1212 as_fn_error $? "missing argument to $ac_option" 1213fi 1214 1215if test -n "$ac_unrecognized_opts"; then 1216 case $enable_option_checking in 1217 no) ;; 1218 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1219 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1220 esac 1221fi 1222 1223# Check all directory arguments for consistency. 1224for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1225 datadir sysconfdir sharedstatedir localstatedir includedir \ 1226 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1227 libdir localedir mandir runstatedir 1228do 1229 eval ac_val=\$$ac_var 1230 # Remove trailing slashes. 1231 case $ac_val in 1232 */ ) 1233 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1234 eval $ac_var=\$ac_val;; 1235 esac 1236 # Be sure to have absolute directory names. 1237 case $ac_val in 1238 [\\/$]* | ?:[\\/]* ) continue;; 1239 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1240 esac 1241 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1242done 1243 1244# There might be people who depend on the old broken behavior: '$host' 1245# used to hold the argument of --host etc. 1246# FIXME: To remove some day. 1247build=$build_alias 1248host=$host_alias 1249target=$target_alias 1250 1251# FIXME: To remove some day. 1252if test "x$host_alias" != x; then 1253 if test "x$build_alias" = x; then 1254 cross_compiling=maybe 1255 elif test "x$build_alias" != "x$host_alias"; then 1256 cross_compiling=yes 1257 fi 1258fi 1259 1260ac_tool_prefix= 1261test -n "$host_alias" && ac_tool_prefix=$host_alias- 1262 1263test "$silent" = yes && exec 6>/dev/null 1264 1265 1266ac_pwd=`pwd` && test -n "$ac_pwd" && 1267ac_ls_di=`ls -di .` && 1268ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1269 as_fn_error $? "working directory cannot be determined" 1270test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1271 as_fn_error $? "pwd does not report name of working directory" 1272 1273 1274# Find the source files, if location was not specified. 1275if test -z "$srcdir"; then 1276 ac_srcdir_defaulted=yes 1277 # Try the directory containing this script, then the parent directory. 1278 ac_confdir=`$as_dirname -- "$as_myself" || 1279$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1280 X"$as_myself" : 'X\(//\)[^/]' \| \ 1281 X"$as_myself" : 'X\(//\)$' \| \ 1282 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1283printf "%s\n" X"$as_myself" | 1284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1285 s//\1/ 1286 q 1287 } 1288 /^X\(\/\/\)[^/].*/{ 1289 s//\1/ 1290 q 1291 } 1292 /^X\(\/\/\)$/{ 1293 s//\1/ 1294 q 1295 } 1296 /^X\(\/\).*/{ 1297 s//\1/ 1298 q 1299 } 1300 s/.*/./; q'` 1301 srcdir=$ac_confdir 1302 if test ! -r "$srcdir/$ac_unique_file"; then 1303 srcdir=.. 1304 fi 1305else 1306 ac_srcdir_defaulted=no 1307fi 1308if test ! -r "$srcdir/$ac_unique_file"; then 1309 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1310 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1311fi 1312ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1313ac_abs_confdir=`( 1314 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1315 pwd)` 1316# When building in place, set srcdir=. 1317if test "$ac_abs_confdir" = "$ac_pwd"; then 1318 srcdir=. 1319fi 1320# Remove unnecessary trailing slashes from srcdir. 1321# Double slashes in file names in object file debugging info 1322# mess up M-x gdb in Emacs. 1323case $srcdir in 1324*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1325esac 1326for ac_var in $ac_precious_vars; do 1327 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1328 eval ac_env_${ac_var}_value=\$${ac_var} 1329 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1330 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1331done 1332 1333# 1334# Report the --help message. 1335# 1336if test "$ac_init_help" = "long"; then 1337 # Omit some internal or obsolete options to make the list less imposing. 1338 # This message is too long to be a string in the A/UX 3.1 sh. 1339 cat <<_ACEOF 1340'configure' configures fslsfonts 1.0.7 to adapt to many kinds of systems. 1341 1342Usage: $0 [OPTION]... [VAR=VALUE]... 1343 1344To assign environment variables (e.g., CC, CFLAGS...), specify them as 1345VAR=VALUE. See below for descriptions of some of the useful variables. 1346 1347Defaults for the options are specified in brackets. 1348 1349Configuration: 1350 -h, --help display this help and exit 1351 --help=short display options specific to this package 1352 --help=recursive display the short help of all the included packages 1353 -V, --version display version information and exit 1354 -q, --quiet, --silent do not print 'checking ...' messages 1355 --cache-file=FILE cache test results in FILE [disabled] 1356 -C, --config-cache alias for '--cache-file=config.cache' 1357 -n, --no-create do not create output files 1358 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1359 1360Installation directories: 1361 --prefix=PREFIX install architecture-independent files in PREFIX 1362 [$ac_default_prefix] 1363 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1364 [PREFIX] 1365 1366By default, 'make install' will install all the files in 1367'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1368an installation prefix other than '$ac_default_prefix' using '--prefix', 1369for instance '--prefix=\$HOME'. 1370 1371For better control, use the options below. 1372 1373Fine tuning of the installation directories: 1374 --bindir=DIR user executables [EPREFIX/bin] 1375 --sbindir=DIR system admin executables [EPREFIX/sbin] 1376 --libexecdir=DIR program executables [EPREFIX/libexec] 1377 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1378 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1379 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1380 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1381 --libdir=DIR object code libraries [EPREFIX/lib] 1382 --includedir=DIR C header files [PREFIX/include] 1383 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1384 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1385 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1386 --infodir=DIR info documentation [DATAROOTDIR/info] 1387 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1388 --mandir=DIR man documentation [DATAROOTDIR/man] 1389 --docdir=DIR documentation root [DATAROOTDIR/doc/fslsfonts] 1390 --htmldir=DIR html documentation [DOCDIR] 1391 --dvidir=DIR dvi documentation [DOCDIR] 1392 --pdfdir=DIR pdf documentation [DOCDIR] 1393 --psdir=DIR ps documentation [DOCDIR] 1394_ACEOF 1395 1396 cat <<\_ACEOF 1397 1398Program names: 1399 --program-prefix=PREFIX prepend PREFIX to installed program names 1400 --program-suffix=SUFFIX append SUFFIX to installed program names 1401 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1402 1403System types: 1404 --build=BUILD configure for building on BUILD [guessed] 1405 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1406_ACEOF 1407fi 1408 1409if test -n "$ac_init_help"; then 1410 case $ac_init_help in 1411 short | recursive ) echo "Configuration of fslsfonts 1.0.7:";; 1412 esac 1413 cat <<\_ACEOF 1414 1415Optional Features: 1416 --disable-option-checking ignore unrecognized --enable/--with options 1417 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1418 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1419 --enable-dependency-tracking 1420 do not reject slow dependency extractors 1421 --disable-dependency-tracking 1422 speeds up one-time build 1423 --enable-silent-rules less verbose build output (undo: "make V=1") 1424 --disable-silent-rules verbose build output (undo: "make V=0") 1425 --disable-selective-werror 1426 Turn off selective compiler errors. (default: 1427 enabled) 1428 --enable-strict-compilation 1429 Enable all warnings from compiler and make them 1430 errors (default: disabled) 1431 1432Some influential environment variables: 1433 CC C compiler command 1434 CFLAGS C compiler flags 1435 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1436 nonstandard directory <lib dir> 1437 LIBS libraries to pass to the linker, e.g. -l<library> 1438 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1439 you have headers in a nonstandard directory <include dir> 1440 PKG_CONFIG path to pkg-config utility 1441 PKG_CONFIG_PATH 1442 directories to add to pkg-config's search path 1443 PKG_CONFIG_LIBDIR 1444 path overriding pkg-config's built-in search path 1445 FSLSFONTS_CFLAGS 1446 C compiler flags for FSLSFONTS, overriding pkg-config 1447 FSLSFONTS_LIBS 1448 linker flags for FSLSFONTS, overriding pkg-config 1449 1450Use these variables to override the choices made by 'configure' or to help 1451it to find libraries and programs with nonstandard names/locations. 1452 1453Report bugs to <https://gitlab.freedesktop.org/xorg/app/fslsfonts/-/issues>. 1454_ACEOF 1455ac_status=$? 1456fi 1457 1458if test "$ac_init_help" = "recursive"; then 1459 # If there are subdirs, report their specific --help. 1460 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1461 test -d "$ac_dir" || 1462 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1463 continue 1464 ac_builddir=. 1465 1466case "$ac_dir" in 1467.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1468*) 1469 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1470 # A ".." for each directory in $ac_dir_suffix. 1471 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1472 case $ac_top_builddir_sub in 1473 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1474 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1475 esac ;; 1476esac 1477ac_abs_top_builddir=$ac_pwd 1478ac_abs_builddir=$ac_pwd$ac_dir_suffix 1479# for backward compatibility: 1480ac_top_builddir=$ac_top_build_prefix 1481 1482case $srcdir in 1483 .) # We are building in place. 1484 ac_srcdir=. 1485 ac_top_srcdir=$ac_top_builddir_sub 1486 ac_abs_top_srcdir=$ac_pwd ;; 1487 [\\/]* | ?:[\\/]* ) # Absolute name. 1488 ac_srcdir=$srcdir$ac_dir_suffix; 1489 ac_top_srcdir=$srcdir 1490 ac_abs_top_srcdir=$srcdir ;; 1491 *) # Relative name. 1492 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1493 ac_top_srcdir=$ac_top_build_prefix$srcdir 1494 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1495esac 1496ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1497 1498 cd "$ac_dir" || { ac_status=$?; continue; } 1499 # Check for configure.gnu first; this name is used for a wrapper for 1500 # Metaconfig's "Configure" on case-insensitive file systems. 1501 if test -f "$ac_srcdir/configure.gnu"; then 1502 echo && 1503 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1504 elif test -f "$ac_srcdir/configure"; then 1505 echo && 1506 $SHELL "$ac_srcdir/configure" --help=recursive 1507 else 1508 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1509 fi || ac_status=$? 1510 cd "$ac_pwd" || { ac_status=$?; break; } 1511 done 1512fi 1513 1514test -n "$ac_init_help" && exit $ac_status 1515if $ac_init_version; then 1516 cat <<\_ACEOF 1517fslsfonts configure 1.0.7 1518generated by GNU Autoconf 2.72 1519 1520Copyright (C) 2023 Free Software Foundation, Inc. 1521This configure script is free software; the Free Software Foundation 1522gives unlimited permission to copy, distribute and modify it. 1523_ACEOF 1524 exit 1525fi 1526 1527## ------------------------ ## 1528## Autoconf initialization. ## 1529## ------------------------ ## 1530 1531# ac_fn_c_try_compile LINENO 1532# -------------------------- 1533# Try to compile conftest.$ac_ext, and return whether this succeeded. 1534ac_fn_c_try_compile () 1535{ 1536 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1537 rm -f conftest.$ac_objext conftest.beam 1538 if { { ac_try="$ac_compile" 1539case "(($ac_try" in 1540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1541 *) ac_try_echo=$ac_try;; 1542esac 1543eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1544printf "%s\n" "$ac_try_echo"; } >&5 1545 (eval "$ac_compile") 2>conftest.err 1546 ac_status=$? 1547 if test -s conftest.err; then 1548 grep -v '^ *+' conftest.err >conftest.er1 1549 cat conftest.er1 >&5 1550 mv -f conftest.er1 conftest.err 1551 fi 1552 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1553 test $ac_status = 0; } && { 1554 test -z "$ac_c_werror_flag" || 1555 test ! -s conftest.err 1556 } && test -s conftest.$ac_objext 1557then : 1558 ac_retval=0 1559else case e in #( 1560 e) printf "%s\n" "$as_me: failed program was:" >&5 1561sed 's/^/| /' conftest.$ac_ext >&5 1562 1563 ac_retval=1 ;; 1564esac 1565fi 1566 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1567 as_fn_set_status $ac_retval 1568 1569} # ac_fn_c_try_compile 1570 1571# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1572# ------------------------------------------------------- 1573# Tests whether HEADER exists and can be compiled using the include files in 1574# INCLUDES, setting the cache variable VAR accordingly. 1575ac_fn_c_check_header_compile () 1576{ 1577 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1579printf %s "checking for $2... " >&6; } 1580if eval test \${$3+y} 1581then : 1582 printf %s "(cached) " >&6 1583else case e in #( 1584 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1585/* end confdefs.h. */ 1586$4 1587#include <$2> 1588_ACEOF 1589if ac_fn_c_try_compile "$LINENO" 1590then : 1591 eval "$3=yes" 1592else case e in #( 1593 e) eval "$3=no" ;; 1594esac 1595fi 1596rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1597esac 1598fi 1599eval ac_res=\$$3 1600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1601printf "%s\n" "$ac_res" >&6; } 1602 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1603 1604} # ac_fn_c_check_header_compile 1605 1606# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1607# ------------------------------------------------------------------ 1608# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1609# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1610ac_fn_check_decl () 1611{ 1612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1613 as_decl_name=`echo $2|sed 's/ *(.*//'` 1614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1615printf %s "checking whether $as_decl_name is declared... " >&6; } 1616if eval test \${$3+y} 1617then : 1618 printf %s "(cached) " >&6 1619else case e in #( 1620 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1621 eval ac_save_FLAGS=\$$6 1622 as_fn_append $6 " $5" 1623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1624/* end confdefs.h. */ 1625$4 1626int 1627main (void) 1628{ 1629#ifndef $as_decl_name 1630#ifdef __cplusplus 1631 (void) $as_decl_use; 1632#else 1633 (void) $as_decl_name; 1634#endif 1635#endif 1636 1637 ; 1638 return 0; 1639} 1640_ACEOF 1641if ac_fn_c_try_compile "$LINENO" 1642then : 1643 eval "$3=yes" 1644else case e in #( 1645 e) eval "$3=no" ;; 1646esac 1647fi 1648rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1649 eval $6=\$ac_save_FLAGS 1650 ;; 1651esac 1652fi 1653eval ac_res=\$$3 1654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1655printf "%s\n" "$ac_res" >&6; } 1656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1657 1658} # ac_fn_check_decl 1659 1660# ac_fn_c_try_link LINENO 1661# ----------------------- 1662# Try to link conftest.$ac_ext, and return whether this succeeded. 1663ac_fn_c_try_link () 1664{ 1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1666 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1667 if { { ac_try="$ac_link" 1668case "(($ac_try" in 1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1670 *) ac_try_echo=$ac_try;; 1671esac 1672eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1673printf "%s\n" "$ac_try_echo"; } >&5 1674 (eval "$ac_link") 2>conftest.err 1675 ac_status=$? 1676 if test -s conftest.err; then 1677 grep -v '^ *+' conftest.err >conftest.er1 1678 cat conftest.er1 >&5 1679 mv -f conftest.er1 conftest.err 1680 fi 1681 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1682 test $ac_status = 0; } && { 1683 test -z "$ac_c_werror_flag" || 1684 test ! -s conftest.err 1685 } && test -s conftest$ac_exeext && { 1686 test "$cross_compiling" = yes || 1687 test -x conftest$ac_exeext 1688 } 1689then : 1690 ac_retval=0 1691else case e in #( 1692 e) printf "%s\n" "$as_me: failed program was:" >&5 1693sed 's/^/| /' conftest.$ac_ext >&5 1694 1695 ac_retval=1 ;; 1696esac 1697fi 1698 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1699 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1700 # interfere with the next link command; also delete a directory that is 1701 # left behind by Apple's compiler. We do this before executing the actions. 1702 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1704 as_fn_set_status $ac_retval 1705 1706} # ac_fn_c_try_link 1707 1708# ac_fn_c_check_func LINENO FUNC VAR 1709# ---------------------------------- 1710# Tests whether FUNC exists, setting the cache variable VAR accordingly 1711ac_fn_c_check_func () 1712{ 1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1715printf %s "checking for $2... " >&6; } 1716if eval test \${$3+y} 1717then : 1718 printf %s "(cached) " >&6 1719else case e in #( 1720 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1721/* end confdefs.h. */ 1722/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1723 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1724#define $2 innocuous_$2 1725 1726/* System header to define __stub macros and hopefully few prototypes, 1727 which can conflict with char $2 (void); below. */ 1728 1729#include <limits.h> 1730#undef $2 1731 1732/* Override any GCC internal prototype to avoid an error. 1733 Use char because int might match the return type of a GCC 1734 builtin and then its argument prototype would still apply. */ 1735#ifdef __cplusplus 1736extern "C" 1737#endif 1738char $2 (void); 1739/* The GNU C library defines this for functions which it implements 1740 to always fail with ENOSYS. Some functions are actually named 1741 something starting with __ and the normal name is an alias. */ 1742#if defined __stub_$2 || defined __stub___$2 1743choke me 1744#endif 1745 1746int 1747main (void) 1748{ 1749return $2 (); 1750 ; 1751 return 0; 1752} 1753_ACEOF 1754if ac_fn_c_try_link "$LINENO" 1755then : 1756 eval "$3=yes" 1757else case e in #( 1758 e) eval "$3=no" ;; 1759esac 1760fi 1761rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1762 conftest$ac_exeext conftest.$ac_ext ;; 1763esac 1764fi 1765eval ac_res=\$$3 1766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1767printf "%s\n" "$ac_res" >&6; } 1768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1769 1770} # ac_fn_c_check_func 1771ac_configure_args_raw= 1772for ac_arg 1773do 1774 case $ac_arg in 1775 *\'*) 1776 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1777 esac 1778 as_fn_append ac_configure_args_raw " '$ac_arg'" 1779done 1780 1781case $ac_configure_args_raw in 1782 *$as_nl*) 1783 ac_safe_unquote= ;; 1784 *) 1785 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1786 ac_unsafe_a="$ac_unsafe_z#~" 1787 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1788 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1789esac 1790 1791cat >config.log <<_ACEOF 1792This file contains any messages produced by compilers while 1793running configure, to aid debugging if configure makes a mistake. 1794 1795It was created by fslsfonts $as_me 1.0.7, which was 1796generated by GNU Autoconf 2.72. Invocation command line was 1797 1798 $ $0$ac_configure_args_raw 1799 1800_ACEOF 1801exec 5>>config.log 1802{ 1803cat <<_ASUNAME 1804## --------- ## 1805## Platform. ## 1806## --------- ## 1807 1808hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1809uname -m = `(uname -m) 2>/dev/null || echo unknown` 1810uname -r = `(uname -r) 2>/dev/null || echo unknown` 1811uname -s = `(uname -s) 2>/dev/null || echo unknown` 1812uname -v = `(uname -v) 2>/dev/null || echo unknown` 1813 1814/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1815/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1816 1817/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1818/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1819/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1820/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1821/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1822/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1823/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1824 1825_ASUNAME 1826 1827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1828for as_dir in $PATH 1829do 1830 IFS=$as_save_IFS 1831 case $as_dir in #((( 1832 '') as_dir=./ ;; 1833 */) ;; 1834 *) as_dir=$as_dir/ ;; 1835 esac 1836 printf "%s\n" "PATH: $as_dir" 1837 done 1838IFS=$as_save_IFS 1839 1840} >&5 1841 1842cat >&5 <<_ACEOF 1843 1844 1845## ----------- ## 1846## Core tests. ## 1847## ----------- ## 1848 1849_ACEOF 1850 1851 1852# Keep a trace of the command line. 1853# Strip out --no-create and --no-recursion so they do not pile up. 1854# Strip out --silent because we don't want to record it for future runs. 1855# Also quote any args containing shell meta-characters. 1856# Make two passes to allow for proper duplicate-argument suppression. 1857ac_configure_args= 1858ac_configure_args0= 1859ac_configure_args1= 1860ac_must_keep_next=false 1861for ac_pass in 1 2 1862do 1863 for ac_arg 1864 do 1865 case $ac_arg in 1866 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1867 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1868 | -silent | --silent | --silen | --sile | --sil) 1869 continue ;; 1870 *\'*) 1871 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1872 esac 1873 case $ac_pass in 1874 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1875 2) 1876 as_fn_append ac_configure_args1 " '$ac_arg'" 1877 if test $ac_must_keep_next = true; then 1878 ac_must_keep_next=false # Got value, back to normal. 1879 else 1880 case $ac_arg in 1881 *=* | --config-cache | -C | -disable-* | --disable-* \ 1882 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1883 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1884 | -with-* | --with-* | -without-* | --without-* | --x) 1885 case "$ac_configure_args0 " in 1886 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1887 esac 1888 ;; 1889 -* ) ac_must_keep_next=true ;; 1890 esac 1891 fi 1892 as_fn_append ac_configure_args " '$ac_arg'" 1893 ;; 1894 esac 1895 done 1896done 1897{ ac_configure_args0=; unset ac_configure_args0;} 1898{ ac_configure_args1=; unset ac_configure_args1;} 1899 1900# When interrupted or exit'd, cleanup temporary files, and complete 1901# config.log. We remove comments because anyway the quotes in there 1902# would cause problems or look ugly. 1903# WARNING: Use '\'' to represent an apostrophe within the trap. 1904# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1905trap 'exit_status=$? 1906 # Sanitize IFS. 1907 IFS=" "" $as_nl" 1908 # Save into config.log some information that might help in debugging. 1909 { 1910 echo 1911 1912 printf "%s\n" "## ---------------- ## 1913## Cache variables. ## 1914## ---------------- ##" 1915 echo 1916 # The following way of writing the cache mishandles newlines in values, 1917( 1918 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1919 eval ac_val=\$$ac_var 1920 case $ac_val in #( 1921 *${as_nl}*) 1922 case $ac_var in #( 1923 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1924printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1925 esac 1926 case $ac_var in #( 1927 _ | IFS | as_nl) ;; #( 1928 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1929 *) { eval $ac_var=; unset $ac_var;} ;; 1930 esac ;; 1931 esac 1932 done 1933 (set) 2>&1 | 1934 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1935 *${as_nl}ac_space=\ *) 1936 sed -n \ 1937 "s/'\''/'\''\\\\'\'''\''/g; 1938 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1939 ;; #( 1940 *) 1941 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1942 ;; 1943 esac | 1944 sort 1945) 1946 echo 1947 1948 printf "%s\n" "## ----------------- ## 1949## Output variables. ## 1950## ----------------- ##" 1951 echo 1952 for ac_var in $ac_subst_vars 1953 do 1954 eval ac_val=\$$ac_var 1955 case $ac_val in 1956 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1957 esac 1958 printf "%s\n" "$ac_var='\''$ac_val'\''" 1959 done | sort 1960 echo 1961 1962 if test -n "$ac_subst_files"; then 1963 printf "%s\n" "## ------------------- ## 1964## File substitutions. ## 1965## ------------------- ##" 1966 echo 1967 for ac_var in $ac_subst_files 1968 do 1969 eval ac_val=\$$ac_var 1970 case $ac_val in 1971 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1972 esac 1973 printf "%s\n" "$ac_var='\''$ac_val'\''" 1974 done | sort 1975 echo 1976 fi 1977 1978 if test -s confdefs.h; then 1979 printf "%s\n" "## ----------- ## 1980## confdefs.h. ## 1981## ----------- ##" 1982 echo 1983 cat confdefs.h 1984 echo 1985 fi 1986 test "$ac_signal" != 0 && 1987 printf "%s\n" "$as_me: caught signal $ac_signal" 1988 printf "%s\n" "$as_me: exit $exit_status" 1989 } >&5 1990 rm -f core *.core core.conftest.* && 1991 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1992 exit $exit_status 1993' 0 1994for ac_signal in 1 2 13 15; do 1995 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1996done 1997ac_signal=0 1998 1999# confdefs.h avoids OS command line length limits that DEFS can exceed. 2000rm -f -r conftest* confdefs.h 2001 2002printf "%s\n" "/* confdefs.h */" > confdefs.h 2003 2004# Predefined preprocessor variables. 2005 2006printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2007 2008printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2009 2010printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2011 2012printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2013 2014printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2015 2016printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2017 2018 2019# Let the site file select an alternate cache file if it wants to. 2020# Prefer an explicitly selected file to automatically selected ones. 2021if test -n "$CONFIG_SITE"; then 2022 ac_site_files="$CONFIG_SITE" 2023elif test "x$prefix" != xNONE; then 2024 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2025else 2026 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2027fi 2028 2029for ac_site_file in $ac_site_files 2030do 2031 case $ac_site_file in #( 2032 */*) : 2033 ;; #( 2034 *) : 2035 ac_site_file=./$ac_site_file ;; 2036esac 2037 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2039printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2040 sed 's/^/| /' "$ac_site_file" >&5 2041 . "$ac_site_file" \ 2042 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2043printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2044as_fn_error $? "failed to load site script $ac_site_file 2045See 'config.log' for more details" "$LINENO" 5; } 2046 fi 2047done 2048 2049if test -r "$cache_file"; then 2050 # Some versions of bash will fail to source /dev/null (special files 2051 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2052 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2054printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2055 case $cache_file in 2056 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2057 *) . "./$cache_file";; 2058 esac 2059 fi 2060else 2061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2062printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2063 >$cache_file 2064fi 2065 2066as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2067# Test code for whether the C compiler supports C89 (global declarations) 2068ac_c_conftest_c89_globals=' 2069/* Does the compiler advertise C89 conformance? 2070 Do not test the value of __STDC__, because some compilers set it to 0 2071 while being otherwise adequately conformant. */ 2072#if !defined __STDC__ 2073# error "Compiler does not advertise C89 conformance" 2074#endif 2075 2076#include <stddef.h> 2077#include <stdarg.h> 2078struct stat; 2079/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2080struct buf { int x; }; 2081struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2082static char *e (char **p, int i) 2083{ 2084 return p[i]; 2085} 2086static char *f (char * (*g) (char **, int), char **p, ...) 2087{ 2088 char *s; 2089 va_list v; 2090 va_start (v,p); 2091 s = g (p, va_arg (v,int)); 2092 va_end (v); 2093 return s; 2094} 2095 2096/* C89 style stringification. */ 2097#define noexpand_stringify(a) #a 2098const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2099 2100/* C89 style token pasting. Exercises some of the corner cases that 2101 e.g. old MSVC gets wrong, but not very hard. */ 2102#define noexpand_concat(a,b) a##b 2103#define expand_concat(a,b) noexpand_concat(a,b) 2104extern int vA; 2105extern int vbee; 2106#define aye A 2107#define bee B 2108int *pvA = &expand_concat(v,aye); 2109int *pvbee = &noexpand_concat(v,bee); 2110 2111/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2112 function prototypes and stuff, but not \xHH hex character constants. 2113 These do not provoke an error unfortunately, instead are silently treated 2114 as an "x". The following induces an error, until -std is added to get 2115 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2116 array size at least. It is necessary to write \x00 == 0 to get something 2117 that is true only with -std. */ 2118int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2119 2120/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2121 inside strings and character constants. */ 2122#define FOO(x) '\''x'\'' 2123int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2124 2125int test (int i, double x); 2126struct s1 {int (*f) (int a);}; 2127struct s2 {int (*f) (double a);}; 2128int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2129 int, int);' 2130 2131# Test code for whether the C compiler supports C89 (body of main). 2132ac_c_conftest_c89_main=' 2133ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2134' 2135 2136# Test code for whether the C compiler supports C99 (global declarations) 2137ac_c_conftest_c99_globals=' 2138/* Does the compiler advertise C99 conformance? */ 2139#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2140# error "Compiler does not advertise C99 conformance" 2141#endif 2142 2143// See if C++-style comments work. 2144 2145#include <stdbool.h> 2146extern int puts (const char *); 2147extern int printf (const char *, ...); 2148extern int dprintf (int, const char *, ...); 2149extern void *malloc (size_t); 2150extern void free (void *); 2151 2152// Check varargs macros. These examples are taken from C99 6.10.3.5. 2153// dprintf is used instead of fprintf to avoid needing to declare 2154// FILE and stderr. 2155#define debug(...) dprintf (2, __VA_ARGS__) 2156#define showlist(...) puts (#__VA_ARGS__) 2157#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2158static void 2159test_varargs_macros (void) 2160{ 2161 int x = 1234; 2162 int y = 5678; 2163 debug ("Flag"); 2164 debug ("X = %d\n", x); 2165 showlist (The first, second, and third items.); 2166 report (x>y, "x is %d but y is %d", x, y); 2167} 2168 2169// Check long long types. 2170#define BIG64 18446744073709551615ull 2171#define BIG32 4294967295ul 2172#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2173#if !BIG_OK 2174 #error "your preprocessor is broken" 2175#endif 2176#if BIG_OK 2177#else 2178 #error "your preprocessor is broken" 2179#endif 2180static long long int bignum = -9223372036854775807LL; 2181static unsigned long long int ubignum = BIG64; 2182 2183struct incomplete_array 2184{ 2185 int datasize; 2186 double data[]; 2187}; 2188 2189struct named_init { 2190 int number; 2191 const wchar_t *name; 2192 double average; 2193}; 2194 2195typedef const char *ccp; 2196 2197static inline int 2198test_restrict (ccp restrict text) 2199{ 2200 // Iterate through items via the restricted pointer. 2201 // Also check for declarations in for loops. 2202 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2203 continue; 2204 return 0; 2205} 2206 2207// Check varargs and va_copy. 2208static bool 2209test_varargs (const char *format, ...) 2210{ 2211 va_list args; 2212 va_start (args, format); 2213 va_list args_copy; 2214 va_copy (args_copy, args); 2215 2216 const char *str = ""; 2217 int number = 0; 2218 float fnumber = 0; 2219 2220 while (*format) 2221 { 2222 switch (*format++) 2223 { 2224 case '\''s'\'': // string 2225 str = va_arg (args_copy, const char *); 2226 break; 2227 case '\''d'\'': // int 2228 number = va_arg (args_copy, int); 2229 break; 2230 case '\''f'\'': // float 2231 fnumber = va_arg (args_copy, double); 2232 break; 2233 default: 2234 break; 2235 } 2236 } 2237 va_end (args_copy); 2238 va_end (args); 2239 2240 return *str && number && fnumber; 2241} 2242' 2243 2244# Test code for whether the C compiler supports C99 (body of main). 2245ac_c_conftest_c99_main=' 2246 // Check bool. 2247 _Bool success = false; 2248 success |= (argc != 0); 2249 2250 // Check restrict. 2251 if (test_restrict ("String literal") == 0) 2252 success = true; 2253 char *restrict newvar = "Another string"; 2254 2255 // Check varargs. 2256 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2257 test_varargs_macros (); 2258 2259 // Check flexible array members. 2260 struct incomplete_array *ia = 2261 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2262 ia->datasize = 10; 2263 for (int i = 0; i < ia->datasize; ++i) 2264 ia->data[i] = i * 1.234; 2265 // Work around memory leak warnings. 2266 free (ia); 2267 2268 // Check named initializers. 2269 struct named_init ni = { 2270 .number = 34, 2271 .name = L"Test wide string", 2272 .average = 543.34343, 2273 }; 2274 2275 ni.number = 58; 2276 2277 int dynamic_array[ni.number]; 2278 dynamic_array[0] = argv[0][0]; 2279 dynamic_array[ni.number - 1] = 543; 2280 2281 // work around unused variable warnings 2282 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2283 || dynamic_array[ni.number - 1] != 543); 2284' 2285 2286# Test code for whether the C compiler supports C11 (global declarations) 2287ac_c_conftest_c11_globals=' 2288/* Does the compiler advertise C11 conformance? */ 2289#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2290# error "Compiler does not advertise C11 conformance" 2291#endif 2292 2293// Check _Alignas. 2294char _Alignas (double) aligned_as_double; 2295char _Alignas (0) no_special_alignment; 2296extern char aligned_as_int; 2297char _Alignas (0) _Alignas (int) aligned_as_int; 2298 2299// Check _Alignof. 2300enum 2301{ 2302 int_alignment = _Alignof (int), 2303 int_array_alignment = _Alignof (int[100]), 2304 char_alignment = _Alignof (char) 2305}; 2306_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2307 2308// Check _Noreturn. 2309int _Noreturn does_not_return (void) { for (;;) continue; } 2310 2311// Check _Static_assert. 2312struct test_static_assert 2313{ 2314 int x; 2315 _Static_assert (sizeof (int) <= sizeof (long int), 2316 "_Static_assert does not work in struct"); 2317 long int y; 2318}; 2319 2320// Check UTF-8 literals. 2321#define u8 syntax error! 2322char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2323 2324// Check duplicate typedefs. 2325typedef long *long_ptr; 2326typedef long int *long_ptr; 2327typedef long_ptr long_ptr; 2328 2329// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2330struct anonymous 2331{ 2332 union { 2333 struct { int i; int j; }; 2334 struct { int k; long int l; } w; 2335 }; 2336 int m; 2337} v1; 2338' 2339 2340# Test code for whether the C compiler supports C11 (body of main). 2341ac_c_conftest_c11_main=' 2342 _Static_assert ((offsetof (struct anonymous, i) 2343 == offsetof (struct anonymous, w.k)), 2344 "Anonymous union alignment botch"); 2345 v1.i = 2; 2346 v1.w.k = 5; 2347 ok |= v1.i != 5; 2348' 2349 2350# Test code for whether the C compiler supports C11 (complete). 2351ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2352${ac_c_conftest_c99_globals} 2353${ac_c_conftest_c11_globals} 2354 2355int 2356main (int argc, char **argv) 2357{ 2358 int ok = 0; 2359 ${ac_c_conftest_c89_main} 2360 ${ac_c_conftest_c99_main} 2361 ${ac_c_conftest_c11_main} 2362 return ok; 2363} 2364" 2365 2366# Test code for whether the C compiler supports C99 (complete). 2367ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2368${ac_c_conftest_c99_globals} 2369 2370int 2371main (int argc, char **argv) 2372{ 2373 int ok = 0; 2374 ${ac_c_conftest_c89_main} 2375 ${ac_c_conftest_c99_main} 2376 return ok; 2377} 2378" 2379 2380# Test code for whether the C compiler supports C89 (complete). 2381ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2382 2383int 2384main (int argc, char **argv) 2385{ 2386 int ok = 0; 2387 ${ac_c_conftest_c89_main} 2388 return ok; 2389} 2390" 2391 2392as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2393as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2394as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2395as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2396as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2397as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2398as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2399as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2400as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2401as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2402 2403# Auxiliary files required by this configure script. 2404ac_aux_files="config.guess config.sub missing install-sh compile" 2405 2406# Locations in which to look for auxiliary files. 2407ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2408 2409# Search for a directory containing all of the required auxiliary files, 2410# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2411# If we don't find one directory that contains all the files we need, 2412# we report the set of missing files from the *first* directory in 2413# $ac_aux_dir_candidates and give up. 2414ac_missing_aux_files="" 2415ac_first_candidate=: 2416printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2418as_found=false 2419for as_dir in $ac_aux_dir_candidates 2420do 2421 IFS=$as_save_IFS 2422 case $as_dir in #((( 2423 '') as_dir=./ ;; 2424 */) ;; 2425 *) as_dir=$as_dir/ ;; 2426 esac 2427 as_found=: 2428 2429 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2430 ac_aux_dir_found=yes 2431 ac_install_sh= 2432 for ac_aux in $ac_aux_files 2433 do 2434 # As a special case, if "install-sh" is required, that requirement 2435 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2436 # and $ac_install_sh is set appropriately for whichever one is found. 2437 if test x"$ac_aux" = x"install-sh" 2438 then 2439 if test -f "${as_dir}install-sh"; then 2440 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2441 ac_install_sh="${as_dir}install-sh -c" 2442 elif test -f "${as_dir}install.sh"; then 2443 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2444 ac_install_sh="${as_dir}install.sh -c" 2445 elif test -f "${as_dir}shtool"; then 2446 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2447 ac_install_sh="${as_dir}shtool install -c" 2448 else 2449 ac_aux_dir_found=no 2450 if $ac_first_candidate; then 2451 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2452 else 2453 break 2454 fi 2455 fi 2456 else 2457 if test -f "${as_dir}${ac_aux}"; then 2458 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2459 else 2460 ac_aux_dir_found=no 2461 if $ac_first_candidate; then 2462 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2463 else 2464 break 2465 fi 2466 fi 2467 fi 2468 done 2469 if test "$ac_aux_dir_found" = yes; then 2470 ac_aux_dir="$as_dir" 2471 break 2472 fi 2473 ac_first_candidate=false 2474 2475 as_found=false 2476done 2477IFS=$as_save_IFS 2478if $as_found 2479then : 2480 2481else case e in #( 2482 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2483esac 2484fi 2485 2486 2487# These three variables are undocumented and unsupported, 2488# and are intended to be withdrawn in a future Autoconf release. 2489# They can cause serious problems if a builder's source tree is in a directory 2490# whose full name contains unusual characters. 2491if test -f "${ac_aux_dir}config.guess"; then 2492 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2493fi 2494if test -f "${ac_aux_dir}config.sub"; then 2495 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2496fi 2497if test -f "$ac_aux_dir/configure"; then 2498 ac_configure="$SHELL ${ac_aux_dir}configure" 2499fi 2500 2501# Check that the precious variables saved in the cache have kept the same 2502# value. 2503ac_cache_corrupted=false 2504for ac_var in $ac_precious_vars; do 2505 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2506 eval ac_new_set=\$ac_env_${ac_var}_set 2507 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2508 eval ac_new_val=\$ac_env_${ac_var}_value 2509 case $ac_old_set,$ac_new_set in 2510 set,) 2511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2512printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2513 ac_cache_corrupted=: ;; 2514 ,set) 2515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2516printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2517 ac_cache_corrupted=: ;; 2518 ,);; 2519 *) 2520 if test "x$ac_old_val" != "x$ac_new_val"; then 2521 # differences in whitespace do not lead to failure. 2522 ac_old_val_w=`echo x $ac_old_val` 2523 ac_new_val_w=`echo x $ac_new_val` 2524 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2526printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2527 ac_cache_corrupted=: 2528 else 2529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2530printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2531 eval $ac_var=\$ac_old_val 2532 fi 2533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2534printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2536printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2537 fi;; 2538 esac 2539 # Pass precious variables to config.status. 2540 if test "$ac_new_set" = set; then 2541 case $ac_new_val in 2542 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2543 *) ac_arg=$ac_var=$ac_new_val ;; 2544 esac 2545 case " $ac_configure_args " in 2546 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2547 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2548 esac 2549 fi 2550done 2551if $ac_cache_corrupted; then 2552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2553printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2555printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2556 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2557 and start over" "$LINENO" 5 2558fi 2559## -------------------- ## 2560## Main body of script. ## 2561## -------------------- ## 2562 2563ac_ext=c 2564ac_cpp='$CPP $CPPFLAGS' 2565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2567ac_compiler_gnu=$ac_cv_c_compiler_gnu 2568 2569 2570 2571ac_config_headers="$ac_config_headers config.h" 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584# Expand $ac_aux_dir to an absolute path. 2585am_aux_dir=`cd "$ac_aux_dir" && pwd` 2586 2587ac_ext=c 2588ac_cpp='$CPP $CPPFLAGS' 2589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2591ac_compiler_gnu=$ac_cv_c_compiler_gnu 2592if test -n "$ac_tool_prefix"; then 2593 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2594set dummy ${ac_tool_prefix}gcc; ac_word=$2 2595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2596printf %s "checking for $ac_word... " >&6; } 2597if test ${ac_cv_prog_CC+y} 2598then : 2599 printf %s "(cached) " >&6 2600else case e in #( 2601 e) if test -n "$CC"; then 2602 ac_cv_prog_CC="$CC" # Let the user override the test. 2603else 2604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2605for as_dir in $PATH 2606do 2607 IFS=$as_save_IFS 2608 case $as_dir in #((( 2609 '') as_dir=./ ;; 2610 */) ;; 2611 *) as_dir=$as_dir/ ;; 2612 esac 2613 for ac_exec_ext in '' $ac_executable_extensions; do 2614 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2615 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2616 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2617 break 2 2618 fi 2619done 2620 done 2621IFS=$as_save_IFS 2622 2623fi ;; 2624esac 2625fi 2626CC=$ac_cv_prog_CC 2627if test -n "$CC"; then 2628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2629printf "%s\n" "$CC" >&6; } 2630else 2631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2632printf "%s\n" "no" >&6; } 2633fi 2634 2635 2636fi 2637if test -z "$ac_cv_prog_CC"; then 2638 ac_ct_CC=$CC 2639 # Extract the first word of "gcc", so it can be a program name with args. 2640set dummy gcc; ac_word=$2 2641{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2642printf %s "checking for $ac_word... " >&6; } 2643if test ${ac_cv_prog_ac_ct_CC+y} 2644then : 2645 printf %s "(cached) " >&6 2646else case e in #( 2647 e) if test -n "$ac_ct_CC"; then 2648 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2649else 2650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2651for as_dir in $PATH 2652do 2653 IFS=$as_save_IFS 2654 case $as_dir in #((( 2655 '') as_dir=./ ;; 2656 */) ;; 2657 *) as_dir=$as_dir/ ;; 2658 esac 2659 for ac_exec_ext in '' $ac_executable_extensions; do 2660 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2661 ac_cv_prog_ac_ct_CC="gcc" 2662 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2663 break 2 2664 fi 2665done 2666 done 2667IFS=$as_save_IFS 2668 2669fi ;; 2670esac 2671fi 2672ac_ct_CC=$ac_cv_prog_ac_ct_CC 2673if test -n "$ac_ct_CC"; then 2674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2675printf "%s\n" "$ac_ct_CC" >&6; } 2676else 2677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2678printf "%s\n" "no" >&6; } 2679fi 2680 2681 if test "x$ac_ct_CC" = x; then 2682 CC="" 2683 else 2684 case $cross_compiling:$ac_tool_warned in 2685yes:) 2686{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2687printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2688ac_tool_warned=yes ;; 2689esac 2690 CC=$ac_ct_CC 2691 fi 2692else 2693 CC="$ac_cv_prog_CC" 2694fi 2695 2696if test -z "$CC"; then 2697 if test -n "$ac_tool_prefix"; then 2698 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2699set dummy ${ac_tool_prefix}cc; ac_word=$2 2700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2701printf %s "checking for $ac_word... " >&6; } 2702if test ${ac_cv_prog_CC+y} 2703then : 2704 printf %s "(cached) " >&6 2705else case e in #( 2706 e) if test -n "$CC"; then 2707 ac_cv_prog_CC="$CC" # Let the user override the test. 2708else 2709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2710for as_dir in $PATH 2711do 2712 IFS=$as_save_IFS 2713 case $as_dir in #((( 2714 '') as_dir=./ ;; 2715 */) ;; 2716 *) as_dir=$as_dir/ ;; 2717 esac 2718 for ac_exec_ext in '' $ac_executable_extensions; do 2719 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2720 ac_cv_prog_CC="${ac_tool_prefix}cc" 2721 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2722 break 2 2723 fi 2724done 2725 done 2726IFS=$as_save_IFS 2727 2728fi ;; 2729esac 2730fi 2731CC=$ac_cv_prog_CC 2732if test -n "$CC"; then 2733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2734printf "%s\n" "$CC" >&6; } 2735else 2736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2737printf "%s\n" "no" >&6; } 2738fi 2739 2740 2741 fi 2742fi 2743if test -z "$CC"; then 2744 # Extract the first word of "cc", so it can be a program name with args. 2745set dummy cc; ac_word=$2 2746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2747printf %s "checking for $ac_word... " >&6; } 2748if test ${ac_cv_prog_CC+y} 2749then : 2750 printf %s "(cached) " >&6 2751else case e in #( 2752 e) if test -n "$CC"; then 2753 ac_cv_prog_CC="$CC" # Let the user override the test. 2754else 2755 ac_prog_rejected=no 2756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2757for as_dir in $PATH 2758do 2759 IFS=$as_save_IFS 2760 case $as_dir in #((( 2761 '') as_dir=./ ;; 2762 */) ;; 2763 *) as_dir=$as_dir/ ;; 2764 esac 2765 for ac_exec_ext in '' $ac_executable_extensions; do 2766 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2767 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2768 ac_prog_rejected=yes 2769 continue 2770 fi 2771 ac_cv_prog_CC="cc" 2772 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2773 break 2 2774 fi 2775done 2776 done 2777IFS=$as_save_IFS 2778 2779if test $ac_prog_rejected = yes; then 2780 # We found a bogon in the path, so make sure we never use it. 2781 set dummy $ac_cv_prog_CC 2782 shift 2783 if test $# != 0; then 2784 # We chose a different compiler from the bogus one. 2785 # However, it has the same basename, so the bogon will be chosen 2786 # first if we set CC to just the basename; use the full file name. 2787 shift 2788 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 2789 fi 2790fi 2791fi ;; 2792esac 2793fi 2794CC=$ac_cv_prog_CC 2795if test -n "$CC"; then 2796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2797printf "%s\n" "$CC" >&6; } 2798else 2799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2800printf "%s\n" "no" >&6; } 2801fi 2802 2803 2804fi 2805if test -z "$CC"; then 2806 if test -n "$ac_tool_prefix"; then 2807 for ac_prog in cl.exe 2808 do 2809 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2810set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2812printf %s "checking for $ac_word... " >&6; } 2813if test ${ac_cv_prog_CC+y} 2814then : 2815 printf %s "(cached) " >&6 2816else case e in #( 2817 e) if test -n "$CC"; then 2818 ac_cv_prog_CC="$CC" # Let the user override the test. 2819else 2820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2821for as_dir in $PATH 2822do 2823 IFS=$as_save_IFS 2824 case $as_dir in #((( 2825 '') as_dir=./ ;; 2826 */) ;; 2827 *) as_dir=$as_dir/ ;; 2828 esac 2829 for ac_exec_ext in '' $ac_executable_extensions; do 2830 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2831 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2832 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2833 break 2 2834 fi 2835done 2836 done 2837IFS=$as_save_IFS 2838 2839fi ;; 2840esac 2841fi 2842CC=$ac_cv_prog_CC 2843if test -n "$CC"; then 2844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2845printf "%s\n" "$CC" >&6; } 2846else 2847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2848printf "%s\n" "no" >&6; } 2849fi 2850 2851 2852 test -n "$CC" && break 2853 done 2854fi 2855if test -z "$CC"; then 2856 ac_ct_CC=$CC 2857 for ac_prog in cl.exe 2858do 2859 # Extract the first word of "$ac_prog", so it can be a program name with args. 2860set dummy $ac_prog; ac_word=$2 2861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2862printf %s "checking for $ac_word... " >&6; } 2863if test ${ac_cv_prog_ac_ct_CC+y} 2864then : 2865 printf %s "(cached) " >&6 2866else case e in #( 2867 e) if test -n "$ac_ct_CC"; then 2868 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2869else 2870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2871for as_dir in $PATH 2872do 2873 IFS=$as_save_IFS 2874 case $as_dir in #((( 2875 '') as_dir=./ ;; 2876 */) ;; 2877 *) as_dir=$as_dir/ ;; 2878 esac 2879 for ac_exec_ext in '' $ac_executable_extensions; do 2880 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2881 ac_cv_prog_ac_ct_CC="$ac_prog" 2882 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2883 break 2 2884 fi 2885done 2886 done 2887IFS=$as_save_IFS 2888 2889fi ;; 2890esac 2891fi 2892ac_ct_CC=$ac_cv_prog_ac_ct_CC 2893if test -n "$ac_ct_CC"; then 2894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2895printf "%s\n" "$ac_ct_CC" >&6; } 2896else 2897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2898printf "%s\n" "no" >&6; } 2899fi 2900 2901 2902 test -n "$ac_ct_CC" && break 2903done 2904 2905 if test "x$ac_ct_CC" = x; then 2906 CC="" 2907 else 2908 case $cross_compiling:$ac_tool_warned in 2909yes:) 2910{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2911printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2912ac_tool_warned=yes ;; 2913esac 2914 CC=$ac_ct_CC 2915 fi 2916fi 2917 2918fi 2919if test -z "$CC"; then 2920 if test -n "$ac_tool_prefix"; then 2921 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 2922set dummy ${ac_tool_prefix}clang; ac_word=$2 2923{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2924printf %s "checking for $ac_word... " >&6; } 2925if test ${ac_cv_prog_CC+y} 2926then : 2927 printf %s "(cached) " >&6 2928else case e in #( 2929 e) if test -n "$CC"; then 2930 ac_cv_prog_CC="$CC" # Let the user override the test. 2931else 2932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2933for as_dir in $PATH 2934do 2935 IFS=$as_save_IFS 2936 case $as_dir in #((( 2937 '') as_dir=./ ;; 2938 */) ;; 2939 *) as_dir=$as_dir/ ;; 2940 esac 2941 for ac_exec_ext in '' $ac_executable_extensions; do 2942 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2943 ac_cv_prog_CC="${ac_tool_prefix}clang" 2944 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2945 break 2 2946 fi 2947done 2948 done 2949IFS=$as_save_IFS 2950 2951fi ;; 2952esac 2953fi 2954CC=$ac_cv_prog_CC 2955if test -n "$CC"; then 2956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2957printf "%s\n" "$CC" >&6; } 2958else 2959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2960printf "%s\n" "no" >&6; } 2961fi 2962 2963 2964fi 2965if test -z "$ac_cv_prog_CC"; then 2966 ac_ct_CC=$CC 2967 # Extract the first word of "clang", so it can be a program name with args. 2968set dummy clang; ac_word=$2 2969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2970printf %s "checking for $ac_word... " >&6; } 2971if test ${ac_cv_prog_ac_ct_CC+y} 2972then : 2973 printf %s "(cached) " >&6 2974else case e in #( 2975 e) if test -n "$ac_ct_CC"; then 2976 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2977else 2978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2979for as_dir in $PATH 2980do 2981 IFS=$as_save_IFS 2982 case $as_dir in #((( 2983 '') as_dir=./ ;; 2984 */) ;; 2985 *) as_dir=$as_dir/ ;; 2986 esac 2987 for ac_exec_ext in '' $ac_executable_extensions; do 2988 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2989 ac_cv_prog_ac_ct_CC="clang" 2990 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2991 break 2 2992 fi 2993done 2994 done 2995IFS=$as_save_IFS 2996 2997fi ;; 2998esac 2999fi 3000ac_ct_CC=$ac_cv_prog_ac_ct_CC 3001if test -n "$ac_ct_CC"; then 3002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3003printf "%s\n" "$ac_ct_CC" >&6; } 3004else 3005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3006printf "%s\n" "no" >&6; } 3007fi 3008 3009 if test "x$ac_ct_CC" = x; then 3010 CC="" 3011 else 3012 case $cross_compiling:$ac_tool_warned in 3013yes:) 3014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3015printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3016ac_tool_warned=yes ;; 3017esac 3018 CC=$ac_ct_CC 3019 fi 3020else 3021 CC="$ac_cv_prog_CC" 3022fi 3023 3024fi 3025 3026 3027test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3028printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3029as_fn_error $? "no acceptable C compiler found in \$PATH 3030See 'config.log' for more details" "$LINENO" 5; } 3031 3032# Provide some information about the compiler. 3033printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3034set X $ac_compile 3035ac_compiler=$2 3036for ac_option in --version -v -V -qversion -version; do 3037 { { ac_try="$ac_compiler $ac_option >&5" 3038case "(($ac_try" in 3039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3040 *) ac_try_echo=$ac_try;; 3041esac 3042eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3043printf "%s\n" "$ac_try_echo"; } >&5 3044 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3045 ac_status=$? 3046 if test -s conftest.err; then 3047 sed '10a\ 3048... rest of stderr output deleted ... 3049 10q' conftest.err >conftest.er1 3050 cat conftest.er1 >&5 3051 fi 3052 rm -f conftest.er1 conftest.err 3053 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3054 test $ac_status = 0; } 3055done 3056 3057cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3058/* end confdefs.h. */ 3059 3060int 3061main (void) 3062{ 3063 3064 ; 3065 return 0; 3066} 3067_ACEOF 3068ac_clean_files_save=$ac_clean_files 3069ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3070# Try to create an executable without -o first, disregard a.out. 3071# It will help us diagnose broken compilers, and finding out an intuition 3072# of exeext. 3073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3074printf %s "checking whether the C compiler works... " >&6; } 3075ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3076 3077# The possible output files: 3078ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3079 3080ac_rmfiles= 3081for ac_file in $ac_files 3082do 3083 case $ac_file in 3084 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3085 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3086 esac 3087done 3088rm -f $ac_rmfiles 3089 3090if { { ac_try="$ac_link_default" 3091case "(($ac_try" in 3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3093 *) ac_try_echo=$ac_try;; 3094esac 3095eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3096printf "%s\n" "$ac_try_echo"; } >&5 3097 (eval "$ac_link_default") 2>&5 3098 ac_status=$? 3099 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3100 test $ac_status = 0; } 3101then : 3102 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 3103# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 3104# in a Makefile. We should not override ac_cv_exeext if it was cached, 3105# so that the user can short-circuit this test for compilers unknown to 3106# Autoconf. 3107for ac_file in $ac_files '' 3108do 3109 test -f "$ac_file" || continue 3110 case $ac_file in 3111 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3112 ;; 3113 [ab].out ) 3114 # We found the default executable, but exeext='' is most 3115 # certainly right. 3116 break;; 3117 *.* ) 3118 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3119 then :; else 3120 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3121 fi 3122 # We set ac_cv_exeext here because the later test for it is not 3123 # safe: cross compilers may not add the suffix if given an '-o' 3124 # argument, so we may need to know it at that point already. 3125 # Even if this section looks crufty: it has the advantage of 3126 # actually working. 3127 break;; 3128 * ) 3129 break;; 3130 esac 3131done 3132test "$ac_cv_exeext" = no && ac_cv_exeext= 3133 3134else case e in #( 3135 e) ac_file='' ;; 3136esac 3137fi 3138if test -z "$ac_file" 3139then : 3140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3141printf "%s\n" "no" >&6; } 3142printf "%s\n" "$as_me: failed program was:" >&5 3143sed 's/^/| /' conftest.$ac_ext >&5 3144 3145{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3146printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3147as_fn_error 77 "C compiler cannot create executables 3148See 'config.log' for more details" "$LINENO" 5; } 3149else case e in #( 3150 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3151printf "%s\n" "yes" >&6; } ;; 3152esac 3153fi 3154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3155printf %s "checking for C compiler default output file name... " >&6; } 3156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3157printf "%s\n" "$ac_file" >&6; } 3158ac_exeext=$ac_cv_exeext 3159 3160rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3161ac_clean_files=$ac_clean_files_save 3162{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3163printf %s "checking for suffix of executables... " >&6; } 3164if { { ac_try="$ac_link" 3165case "(($ac_try" in 3166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3167 *) ac_try_echo=$ac_try;; 3168esac 3169eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3170printf "%s\n" "$ac_try_echo"; } >&5 3171 (eval "$ac_link") 2>&5 3172 ac_status=$? 3173 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3174 test $ac_status = 0; } 3175then : 3176 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 3177# catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 3178# work properly (i.e., refer to 'conftest.exe'), while it won't with 3179# 'rm'. 3180for ac_file in conftest.exe conftest conftest.*; do 3181 test -f "$ac_file" || continue 3182 case $ac_file in 3183 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3184 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3185 break;; 3186 * ) break;; 3187 esac 3188done 3189else case e in #( 3190 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3191printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3192as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3193See 'config.log' for more details" "$LINENO" 5; } ;; 3194esac 3195fi 3196rm -f conftest conftest$ac_cv_exeext 3197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3198printf "%s\n" "$ac_cv_exeext" >&6; } 3199 3200rm -f conftest.$ac_ext 3201EXEEXT=$ac_cv_exeext 3202ac_exeext=$EXEEXT 3203cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3204/* end confdefs.h. */ 3205#include <stdio.h> 3206int 3207main (void) 3208{ 3209FILE *f = fopen ("conftest.out", "w"); 3210 if (!f) 3211 return 1; 3212 return ferror (f) || fclose (f) != 0; 3213 3214 ; 3215 return 0; 3216} 3217_ACEOF 3218ac_clean_files="$ac_clean_files conftest.out" 3219# Check that the compiler produces executables we can run. If not, either 3220# the compiler is broken, or we cross compile. 3221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3222printf %s "checking whether we are cross compiling... " >&6; } 3223if test "$cross_compiling" != yes; then 3224 { { ac_try="$ac_link" 3225case "(($ac_try" in 3226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3227 *) ac_try_echo=$ac_try;; 3228esac 3229eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3230printf "%s\n" "$ac_try_echo"; } >&5 3231 (eval "$ac_link") 2>&5 3232 ac_status=$? 3233 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3234 test $ac_status = 0; } 3235 if { ac_try='./conftest$ac_cv_exeext' 3236 { { case "(($ac_try" in 3237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3238 *) ac_try_echo=$ac_try;; 3239esac 3240eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3241printf "%s\n" "$ac_try_echo"; } >&5 3242 (eval "$ac_try") 2>&5 3243 ac_status=$? 3244 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3245 test $ac_status = 0; }; }; then 3246 cross_compiling=no 3247 else 3248 if test "$cross_compiling" = maybe; then 3249 cross_compiling=yes 3250 else 3251 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3252printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3253as_fn_error 77 "cannot run C compiled programs. 3254If you meant to cross compile, use '--host'. 3255See 'config.log' for more details" "$LINENO" 5; } 3256 fi 3257 fi 3258fi 3259{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3260printf "%s\n" "$cross_compiling" >&6; } 3261 3262rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 3263 conftest.o conftest.obj conftest.out 3264ac_clean_files=$ac_clean_files_save 3265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3266printf %s "checking for suffix of object files... " >&6; } 3267if test ${ac_cv_objext+y} 3268then : 3269 printf %s "(cached) " >&6 3270else case e in #( 3271 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3272/* end confdefs.h. */ 3273 3274int 3275main (void) 3276{ 3277 3278 ; 3279 return 0; 3280} 3281_ACEOF 3282rm -f conftest.o conftest.obj 3283if { { ac_try="$ac_compile" 3284case "(($ac_try" in 3285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3286 *) ac_try_echo=$ac_try;; 3287esac 3288eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3289printf "%s\n" "$ac_try_echo"; } >&5 3290 (eval "$ac_compile") 2>&5 3291 ac_status=$? 3292 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3293 test $ac_status = 0; } 3294then : 3295 for ac_file in conftest.o conftest.obj conftest.*; do 3296 test -f "$ac_file" || continue; 3297 case $ac_file in 3298 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3299 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3300 break;; 3301 esac 3302done 3303else case e in #( 3304 e) printf "%s\n" "$as_me: failed program was:" >&5 3305sed 's/^/| /' conftest.$ac_ext >&5 3306 3307{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3308printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3309as_fn_error $? "cannot compute suffix of object files: cannot compile 3310See 'config.log' for more details" "$LINENO" 5; } ;; 3311esac 3312fi 3313rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 3314esac 3315fi 3316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3317printf "%s\n" "$ac_cv_objext" >&6; } 3318OBJEXT=$ac_cv_objext 3319ac_objext=$OBJEXT 3320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3321printf %s "checking whether the compiler supports GNU C... " >&6; } 3322if test ${ac_cv_c_compiler_gnu+y} 3323then : 3324 printf %s "(cached) " >&6 3325else case e in #( 3326 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3327/* end confdefs.h. */ 3328 3329int 3330main (void) 3331{ 3332#ifndef __GNUC__ 3333 choke me 3334#endif 3335 3336 ; 3337 return 0; 3338} 3339_ACEOF 3340if ac_fn_c_try_compile "$LINENO" 3341then : 3342 ac_compiler_gnu=yes 3343else case e in #( 3344 e) ac_compiler_gnu=no ;; 3345esac 3346fi 3347rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3348ac_cv_c_compiler_gnu=$ac_compiler_gnu 3349 ;; 3350esac 3351fi 3352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3353printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3354ac_compiler_gnu=$ac_cv_c_compiler_gnu 3355 3356if test $ac_compiler_gnu = yes; then 3357 GCC=yes 3358else 3359 GCC= 3360fi 3361ac_test_CFLAGS=${CFLAGS+y} 3362ac_save_CFLAGS=$CFLAGS 3363{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3364printf %s "checking whether $CC accepts -g... " >&6; } 3365if test ${ac_cv_prog_cc_g+y} 3366then : 3367 printf %s "(cached) " >&6 3368else case e in #( 3369 e) ac_save_c_werror_flag=$ac_c_werror_flag 3370 ac_c_werror_flag=yes 3371 ac_cv_prog_cc_g=no 3372 CFLAGS="-g" 3373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3374/* end confdefs.h. */ 3375 3376int 3377main (void) 3378{ 3379 3380 ; 3381 return 0; 3382} 3383_ACEOF 3384if ac_fn_c_try_compile "$LINENO" 3385then : 3386 ac_cv_prog_cc_g=yes 3387else case e in #( 3388 e) CFLAGS="" 3389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3390/* end confdefs.h. */ 3391 3392int 3393main (void) 3394{ 3395 3396 ; 3397 return 0; 3398} 3399_ACEOF 3400if ac_fn_c_try_compile "$LINENO" 3401then : 3402 3403else case e in #( 3404 e) ac_c_werror_flag=$ac_save_c_werror_flag 3405 CFLAGS="-g" 3406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3407/* end confdefs.h. */ 3408 3409int 3410main (void) 3411{ 3412 3413 ; 3414 return 0; 3415} 3416_ACEOF 3417if ac_fn_c_try_compile "$LINENO" 3418then : 3419 ac_cv_prog_cc_g=yes 3420fi 3421rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3422esac 3423fi 3424rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3425esac 3426fi 3427rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3428 ac_c_werror_flag=$ac_save_c_werror_flag ;; 3429esac 3430fi 3431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3432printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 3433if test $ac_test_CFLAGS; then 3434 CFLAGS=$ac_save_CFLAGS 3435elif test $ac_cv_prog_cc_g = yes; then 3436 if test "$GCC" = yes; then 3437 CFLAGS="-g -O2" 3438 else 3439 CFLAGS="-g" 3440 fi 3441else 3442 if test "$GCC" = yes; then 3443 CFLAGS="-O2" 3444 else 3445 CFLAGS= 3446 fi 3447fi 3448ac_prog_cc_stdc=no 3449if test x$ac_prog_cc_stdc = xno 3450then : 3451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 3452printf %s "checking for $CC option to enable C11 features... " >&6; } 3453if test ${ac_cv_prog_cc_c11+y} 3454then : 3455 printf %s "(cached) " >&6 3456else case e in #( 3457 e) ac_cv_prog_cc_c11=no 3458ac_save_CC=$CC 3459cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3460/* end confdefs.h. */ 3461$ac_c_conftest_c11_program 3462_ACEOF 3463for ac_arg in '' -std=gnu11 3464do 3465 CC="$ac_save_CC $ac_arg" 3466 if ac_fn_c_try_compile "$LINENO" 3467then : 3468 ac_cv_prog_cc_c11=$ac_arg 3469fi 3470rm -f core conftest.err conftest.$ac_objext conftest.beam 3471 test "x$ac_cv_prog_cc_c11" != "xno" && break 3472done 3473rm -f conftest.$ac_ext 3474CC=$ac_save_CC ;; 3475esac 3476fi 3477 3478if test "x$ac_cv_prog_cc_c11" = xno 3479then : 3480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3481printf "%s\n" "unsupported" >&6; } 3482else case e in #( 3483 e) if test "x$ac_cv_prog_cc_c11" = x 3484then : 3485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3486printf "%s\n" "none needed" >&6; } 3487else case e in #( 3488 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 3489printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 3490 CC="$CC $ac_cv_prog_cc_c11" ;; 3491esac 3492fi 3493 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 3494 ac_prog_cc_stdc=c11 ;; 3495esac 3496fi 3497fi 3498if test x$ac_prog_cc_stdc = xno 3499then : 3500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 3501printf %s "checking for $CC option to enable C99 features... " >&6; } 3502if test ${ac_cv_prog_cc_c99+y} 3503then : 3504 printf %s "(cached) " >&6 3505else case e in #( 3506 e) ac_cv_prog_cc_c99=no 3507ac_save_CC=$CC 3508cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3509/* end confdefs.h. */ 3510$ac_c_conftest_c99_program 3511_ACEOF 3512for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 3513do 3514 CC="$ac_save_CC $ac_arg" 3515 if ac_fn_c_try_compile "$LINENO" 3516then : 3517 ac_cv_prog_cc_c99=$ac_arg 3518fi 3519rm -f core conftest.err conftest.$ac_objext conftest.beam 3520 test "x$ac_cv_prog_cc_c99" != "xno" && break 3521done 3522rm -f conftest.$ac_ext 3523CC=$ac_save_CC ;; 3524esac 3525fi 3526 3527if test "x$ac_cv_prog_cc_c99" = xno 3528then : 3529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3530printf "%s\n" "unsupported" >&6; } 3531else case e in #( 3532 e) if test "x$ac_cv_prog_cc_c99" = x 3533then : 3534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3535printf "%s\n" "none needed" >&6; } 3536else case e in #( 3537 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3538printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 3539 CC="$CC $ac_cv_prog_cc_c99" ;; 3540esac 3541fi 3542 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 3543 ac_prog_cc_stdc=c99 ;; 3544esac 3545fi 3546fi 3547if test x$ac_prog_cc_stdc = xno 3548then : 3549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 3550printf %s "checking for $CC option to enable C89 features... " >&6; } 3551if test ${ac_cv_prog_cc_c89+y} 3552then : 3553 printf %s "(cached) " >&6 3554else case e in #( 3555 e) ac_cv_prog_cc_c89=no 3556ac_save_CC=$CC 3557cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3558/* end confdefs.h. */ 3559$ac_c_conftest_c89_program 3560_ACEOF 3561for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3562do 3563 CC="$ac_save_CC $ac_arg" 3564 if ac_fn_c_try_compile "$LINENO" 3565then : 3566 ac_cv_prog_cc_c89=$ac_arg 3567fi 3568rm -f core conftest.err conftest.$ac_objext conftest.beam 3569 test "x$ac_cv_prog_cc_c89" != "xno" && break 3570done 3571rm -f conftest.$ac_ext 3572CC=$ac_save_CC ;; 3573esac 3574fi 3575 3576if test "x$ac_cv_prog_cc_c89" = xno 3577then : 3578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3579printf "%s\n" "unsupported" >&6; } 3580else case e in #( 3581 e) if test "x$ac_cv_prog_cc_c89" = x 3582then : 3583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3584printf "%s\n" "none needed" >&6; } 3585else case e in #( 3586 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3587printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 3588 CC="$CC $ac_cv_prog_cc_c89" ;; 3589esac 3590fi 3591 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 3592 ac_prog_cc_stdc=c89 ;; 3593esac 3594fi 3595fi 3596 3597ac_ext=c 3598ac_cpp='$CPP $CPPFLAGS' 3599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3601ac_compiler_gnu=$ac_cv_c_compiler_gnu 3602 3603 3604 ac_ext=c 3605ac_cpp='$CPP $CPPFLAGS' 3606ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3607ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3608ac_compiler_gnu=$ac_cv_c_compiler_gnu 3609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3610printf %s "checking whether $CC understands -c and -o together... " >&6; } 3611if test ${am_cv_prog_cc_c_o+y} 3612then : 3613 printf %s "(cached) " >&6 3614else case e in #( 3615 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3616/* end confdefs.h. */ 3617 3618int 3619main (void) 3620{ 3621 3622 ; 3623 return 0; 3624} 3625_ACEOF 3626 # Make sure it works both with $CC and with simple cc. 3627 # Following AC_PROG_CC_C_O, we do the test twice because some 3628 # compilers refuse to overwrite an existing .o file with -o, 3629 # though they will create one. 3630 am_cv_prog_cc_c_o=yes 3631 for am_i in 1 2; do 3632 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3633 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3634 ac_status=$? 3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3636 (exit $ac_status); } \ 3637 && test -f conftest2.$ac_objext; then 3638 : OK 3639 else 3640 am_cv_prog_cc_c_o=no 3641 break 3642 fi 3643 done 3644 rm -f core conftest* 3645 unset am_i ;; 3646esac 3647fi 3648{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3649printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 3650if test "$am_cv_prog_cc_c_o" != yes; then 3651 # Losing compiler, so override with the script. 3652 # FIXME: It is wrong to rewrite CC. 3653 # But if we don't then we get into trouble of one sort or another. 3654 # A longer-term fix would be to have automake use am__CC in this case, 3655 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3656 CC="$am_aux_dir/compile $CC" 3657fi 3658ac_ext=c 3659ac_cpp='$CPP $CPPFLAGS' 3660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3662ac_compiler_gnu=$ac_cv_c_compiler_gnu 3663 3664 3665 3666ac_header= ac_cache= 3667for ac_item in $ac_header_c_list 3668do 3669 if test $ac_cache; then 3670 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 3671 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 3672 printf "%s\n" "#define $ac_item 1" >> confdefs.h 3673 fi 3674 ac_header= ac_cache= 3675 elif test $ac_header; then 3676 ac_cache=$ac_item 3677 else 3678 ac_header=$ac_item 3679 fi 3680done 3681 3682 3683 3684 3685 3686 3687 3688 3689if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 3690then : 3691 3692printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 3693 3694fi 3695 3696 3697 3698 3699 3700 3701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3702printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3703if test ${ac_cv_safe_to_define___extensions__+y} 3704then : 3705 printf %s "(cached) " >&6 3706else case e in #( 3707 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3708/* end confdefs.h. */ 3709 3710# define __EXTENSIONS__ 1 3711 $ac_includes_default 3712int 3713main (void) 3714{ 3715 3716 ; 3717 return 0; 3718} 3719_ACEOF 3720if ac_fn_c_try_compile "$LINENO" 3721then : 3722 ac_cv_safe_to_define___extensions__=yes 3723else case e in #( 3724 e) ac_cv_safe_to_define___extensions__=no ;; 3725esac 3726fi 3727rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3728esac 3729fi 3730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3731printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 3732 3733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 3734printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 3735if test ${ac_cv_should_define__xopen_source+y} 3736then : 3737 printf %s "(cached) " >&6 3738else case e in #( 3739 e) ac_cv_should_define__xopen_source=no 3740 if test $ac_cv_header_wchar_h = yes 3741then : 3742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3743/* end confdefs.h. */ 3744 3745 #include <wchar.h> 3746 mbstate_t x; 3747int 3748main (void) 3749{ 3750 3751 ; 3752 return 0; 3753} 3754_ACEOF 3755if ac_fn_c_try_compile "$LINENO" 3756then : 3757 3758else case e in #( 3759 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3760/* end confdefs.h. */ 3761 3762 #define _XOPEN_SOURCE 500 3763 #include <wchar.h> 3764 mbstate_t x; 3765int 3766main (void) 3767{ 3768 3769 ; 3770 return 0; 3771} 3772_ACEOF 3773if ac_fn_c_try_compile "$LINENO" 3774then : 3775 ac_cv_should_define__xopen_source=yes 3776fi 3777rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3778esac 3779fi 3780rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3781fi ;; 3782esac 3783fi 3784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 3785printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 3786 3787 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 3788 3789 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 3790 3791 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 3792 3793 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 3794 3795 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 3796 3797 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 3798 3799 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3800 3801 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 3802 3803 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 3804 3805 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 3806 3807 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h 3808 3809 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 3810 3811 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 3812 3813 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 3814 3815 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 3816 3817 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 3818 3819 if test $ac_cv_header_minix_config_h = yes 3820then : 3821 MINIX=yes 3822 printf "%s\n" "#define _MINIX 1" >>confdefs.h 3823 3824 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 3825 3826 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 3827 3828else case e in #( 3829 e) MINIX= ;; 3830esac 3831fi 3832 if test $ac_cv_safe_to_define___extensions__ = yes 3833then : 3834 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 3835 3836fi 3837 if test $ac_cv_should_define__xopen_source = yes 3838then : 3839 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 3840 3841fi 3842 3843 3844# Initialize Automake 3845am__api_version='1.17' 3846 3847 3848 # Find a good install program. We prefer a C program (faster), 3849# so one script is as good as another. But avoid the broken or 3850# incompatible versions: 3851# SysV /etc/install, /usr/sbin/install 3852# SunOS /usr/etc/install 3853# IRIX /sbin/install 3854# AIX /bin/install 3855# AmigaOS /C/install, which installs bootblocks on floppy discs 3856# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3857# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3858# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3859# OS/2's system install, which has a completely different semantic 3860# ./install, which can be erroneously created by make from ./install.sh. 3861# Reject install programs that cannot install multiple files. 3862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3863printf %s "checking for a BSD-compatible install... " >&6; } 3864if test -z "$INSTALL"; then 3865if test ${ac_cv_path_install+y} 3866then : 3867 printf %s "(cached) " >&6 3868else case e in #( 3869 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3870for as_dir in $PATH 3871do 3872 IFS=$as_save_IFS 3873 case $as_dir in #((( 3874 '') as_dir=./ ;; 3875 */) ;; 3876 *) as_dir=$as_dir/ ;; 3877 esac 3878 # Account for fact that we put trailing slashes in our PATH walk. 3879case $as_dir in #(( 3880 ./ | /[cC]/* | \ 3881 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3882 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3883 /usr/ucb/* ) ;; 3884 *) 3885 # OSF1 and SCO ODT 3.0 have their own names for install. 3886 # Don't use installbsd from OSF since it installs stuff as root 3887 # by default. 3888 for ac_prog in ginstall scoinst install; do 3889 for ac_exec_ext in '' $ac_executable_extensions; do 3890 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 3891 if test $ac_prog = install && 3892 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3893 # AIX install. It has an incompatible calling convention. 3894 : 3895 elif test $ac_prog = install && 3896 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3897 # program-specific install script used by HP pwplus--don't use. 3898 : 3899 else 3900 rm -rf conftest.one conftest.two conftest.dir 3901 echo one > conftest.one 3902 echo two > conftest.two 3903 mkdir conftest.dir 3904 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 3905 test -s conftest.one && test -s conftest.two && 3906 test -s conftest.dir/conftest.one && 3907 test -s conftest.dir/conftest.two 3908 then 3909 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 3910 break 3 3911 fi 3912 fi 3913 fi 3914 done 3915 done 3916 ;; 3917esac 3918 3919 done 3920IFS=$as_save_IFS 3921 3922rm -rf conftest.one conftest.two conftest.dir 3923 ;; 3924esac 3925fi 3926 if test ${ac_cv_path_install+y}; then 3927 INSTALL=$ac_cv_path_install 3928 else 3929 # As a last resort, use the slow shell script. Don't cache a 3930 # value for INSTALL within a source directory, because that will 3931 # break other packages using the cache if that directory is 3932 # removed, or if the value is a relative name. 3933 INSTALL=$ac_install_sh 3934 fi 3935fi 3936{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3937printf "%s\n" "$INSTALL" >&6; } 3938 3939# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3940# It thinks the first close brace ends the variable substitution. 3941test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3942 3943test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3944 3945test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3946 3947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5 3948printf %s "checking whether sleep supports fractional seconds... " >&6; } 3949if test ${am_cv_sleep_fractional_seconds+y} 3950then : 3951 printf %s "(cached) " >&6 3952else case e in #( 3953 e) if sleep 0.001 2>/dev/null 3954then : 3955 am_cv_sleep_fractional_seconds=yes 3956else case e in #( 3957 e) am_cv_sleep_fractional_seconds=no ;; 3958esac 3959fi 3960 ;; 3961esac 3962fi 3963{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5 3964printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; } 3965 3966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5 3967printf %s "checking filesystem timestamp resolution... " >&6; } 3968if test ${am_cv_filesystem_timestamp_resolution+y} 3969then : 3970 printf %s "(cached) " >&6 3971else case e in #( 3972 e) # Default to the worst case. 3973am_cv_filesystem_timestamp_resolution=2 3974 3975# Only try to go finer than 1 sec if sleep can do it. 3976# Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work, 3977# - 1 sec is not much of a win compared to 2 sec, and 3978# - it takes 2 seconds to perform the test whether 1 sec works. 3979# 3980# Instead, just use the default 2s on platforms that have 1s resolution, 3981# accept the extra 1s delay when using $sleep in the Automake tests, in 3982# exchange for not incurring the 2s delay for running the test for all 3983# packages. 3984# 3985am_try_resolutions= 3986if test "$am_cv_sleep_fractional_seconds" = yes; then 3987 # Even a millisecond often causes a bunch of false positives, 3988 # so just try a hundredth of a second. The time saved between .001 and 3989 # .01 is not terribly consequential. 3990 am_try_resolutions="0.01 0.1 $am_try_resolutions" 3991fi 3992 3993# In order to catch current-generation FAT out, we must *modify* files 3994# that already exist; the *creation* timestamp is finer. Use names 3995# that make ls -t sort them differently when they have equal 3996# timestamps than when they have distinct timestamps, keeping 3997# in mind that ls -t prints the *newest* file first. 3998rm -f conftest.ts? 3999: > conftest.ts1 4000: > conftest.ts2 4001: > conftest.ts3 4002 4003# Make sure ls -t actually works. Do 'set' in a subshell so we don't 4004# clobber the current shell's arguments. (Outer-level square brackets 4005# are removed by m4; they're present so that m4 does not expand 4006# <dollar><star>; be careful, easy to get confused.) 4007if ( 4008 set X `ls -t conftest.ts[12]` && 4009 { 4010 test "$*" != "X conftest.ts1 conftest.ts2" || 4011 test "$*" != "X conftest.ts2 conftest.ts1"; 4012 } 4013); then :; else 4014 # If neither matched, then we have a broken ls. This can happen 4015 # if, for instance, CONFIG_SHELL is bash and it inherits a 4016 # broken ls alias from the environment. This has actually 4017 # happened. Such a system could not be considered "sane". 4018 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5 4019 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4020printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4021as_fn_error $? "ls -t produces unexpected output. 4022Make sure there is not a broken ls alias in your environment. 4023See 'config.log' for more details" "$LINENO" 5; } 4024fi 4025 4026for am_try_res in $am_try_resolutions; do 4027 # Any one fine-grained sleep might happen to cross the boundary 4028 # between two values of a coarser actual resolution, but if we do 4029 # two fine-grained sleeps in a row, at least one of them will fall 4030 # entirely within a coarse interval. 4031 echo alpha > conftest.ts1 4032 sleep $am_try_res 4033 echo beta > conftest.ts2 4034 sleep $am_try_res 4035 echo gamma > conftest.ts3 4036 4037 # We assume that 'ls -t' will make use of high-resolution 4038 # timestamps if the operating system supports them at all. 4039 if (set X `ls -t conftest.ts?` && 4040 test "$2" = conftest.ts3 && 4041 test "$3" = conftest.ts2 && 4042 test "$4" = conftest.ts1); then 4043 # 4044 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done, 4045 # because we don't need to test make. 4046 make_ok=true 4047 if test $am_try_res != 1; then 4048 # But if we've succeeded so far with a subsecond resolution, we 4049 # have one more thing to check: make. It can happen that 4050 # everything else supports the subsecond mtimes, but make doesn't; 4051 # notably on macOS, which ships make 3.81 from 2006 (the last one 4052 # released under GPLv2). https://bugs.gnu.org/68808 4053 # 4054 # We test $MAKE if it is defined in the environment, else "make". 4055 # It might get overridden later, but our hope is that in practice 4056 # it does not matter: it is the system "make" which is (by far) 4057 # the most likely to be broken, whereas if the user overrides it, 4058 # probably they did so with a better, or at least not worse, make. 4059 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html 4060 # 4061 # Create a Makefile (real tab character here): 4062 rm -f conftest.mk 4063 echo 'conftest.ts1: conftest.ts2' >conftest.mk 4064 echo ' touch conftest.ts2' >>conftest.mk 4065 # 4066 # Now, running 4067 # touch conftest.ts1; touch conftest.ts2; make 4068 # should touch ts1 because ts2 is newer. This could happen by luck, 4069 # but most often, it will fail if make's support is insufficient. So 4070 # test for several consecutive successes. 4071 # 4072 # (We reuse conftest.ts[12] because we still want to modify existing 4073 # files, not create new ones, per above.) 4074 n=0 4075 make=${MAKE-make} 4076 until test $n -eq 3; do 4077 echo one > conftest.ts1 4078 sleep $am_try_res 4079 echo two > conftest.ts2 # ts2 should now be newer than ts1 4080 if $make -f conftest.mk | grep 'up to date' >/dev/null; then 4081 make_ok=false 4082 break # out of $n loop 4083 fi 4084 n=`expr $n + 1` 4085 done 4086 fi 4087 # 4088 if $make_ok; then 4089 # Everything we know to check worked out, so call this resolution good. 4090 am_cv_filesystem_timestamp_resolution=$am_try_res 4091 break # out of $am_try_res loop 4092 fi 4093 # Otherwise, we'll go on to check the next resolution. 4094 fi 4095done 4096rm -f conftest.ts? 4097# (end _am_filesystem_timestamp_resolution) 4098 ;; 4099esac 4100fi 4101{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5 4102printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; } 4103 4104# This check should not be cached, as it may vary across builds of 4105# different projects. 4106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 4107printf %s "checking whether build environment is sane... " >&6; } 4108# Reject unsafe characters in $srcdir or the absolute working directory 4109# name. Accept space and tab only in the latter. 4110am_lf=' 4111' 4112case `pwd` in 4113 *[\\\"\#\$\&\'\`$am_lf]*) 4114 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 4115esac 4116case $srcdir in 4117 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 4118 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 4119esac 4120 4121# Do 'set' in a subshell so we don't clobber the current shell's 4122# arguments. Must try -L first in case configure is actually a 4123# symlink; some systems play weird games with the mod time of symlinks 4124# (eg FreeBSD returns the mod time of the symlink's containing 4125# directory). 4126am_build_env_is_sane=no 4127am_has_slept=no 4128rm -f conftest.file 4129for am_try in 1 2; do 4130 echo "timestamp, slept: $am_has_slept" > conftest.file 4131 if ( 4132 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 4133 if test "$*" = "X"; then 4134 # -L didn't work. 4135 set X `ls -t "$srcdir/configure" conftest.file` 4136 fi 4137 test "$2" = conftest.file 4138 ); then 4139 am_build_env_is_sane=yes 4140 break 4141 fi 4142 # Just in case. 4143 sleep "$am_cv_filesystem_timestamp_resolution" 4144 am_has_slept=yes 4145done 4146 4147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5 4148printf "%s\n" "$am_build_env_is_sane" >&6; } 4149if test "$am_build_env_is_sane" = no; then 4150 as_fn_error $? "newly created file is older than distributed files! 4151Check your system clock" "$LINENO" 5 4152fi 4153 4154# If we didn't sleep, we still need to ensure time stamps of config.status and 4155# generated files are strictly newer. 4156am_sleep_pid= 4157if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1 4158then : 4159 4160else case e in #( 4161 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) & 4162 am_sleep_pid=$! 4163 ;; 4164esac 4165fi 4166 4167rm -f conftest.file 4168 4169test "$program_prefix" != NONE && 4170 program_transform_name="s&^&$program_prefix&;$program_transform_name" 4171# Use a double $ so make ignores it. 4172test "$program_suffix" != NONE && 4173 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 4174# Double any \ or $. 4175# By default was 's,x,x', remove it if useless. 4176ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 4177program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 4178 4179 4180 if test x"${MISSING+set}" != xset; then 4181 MISSING="\${SHELL} '$am_aux_dir/missing'" 4182fi 4183# Use eval to expand $SHELL 4184if eval "$MISSING --is-lightweight"; then 4185 am_missing_run="$MISSING " 4186else 4187 am_missing_run= 4188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 4189printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 4190fi 4191 4192if test x"${install_sh+set}" != xset; then 4193 case $am_aux_dir in 4194 *\ * | *\ *) 4195 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4196 *) 4197 install_sh="\${SHELL} $am_aux_dir/install-sh" 4198 esac 4199fi 4200 4201# Installed binaries are usually stripped using 'strip' when the user 4202# run "make install-strip". However 'strip' might not be the right 4203# tool to use in cross-compilation environments, therefore Automake 4204# will honor the 'STRIP' environment variable to overrule this program. 4205if test "$cross_compiling" != no; then 4206 if test -n "$ac_tool_prefix"; then 4207 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4208set dummy ${ac_tool_prefix}strip; ac_word=$2 4209{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4210printf %s "checking for $ac_word... " >&6; } 4211if test ${ac_cv_prog_STRIP+y} 4212then : 4213 printf %s "(cached) " >&6 4214else case e in #( 4215 e) if test -n "$STRIP"; then 4216 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4217else 4218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4219for as_dir in $PATH 4220do 4221 IFS=$as_save_IFS 4222 case $as_dir in #((( 4223 '') as_dir=./ ;; 4224 */) ;; 4225 *) as_dir=$as_dir/ ;; 4226 esac 4227 for ac_exec_ext in '' $ac_executable_extensions; do 4228 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4229 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4230 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4231 break 2 4232 fi 4233done 4234 done 4235IFS=$as_save_IFS 4236 4237fi ;; 4238esac 4239fi 4240STRIP=$ac_cv_prog_STRIP 4241if test -n "$STRIP"; then 4242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4243printf "%s\n" "$STRIP" >&6; } 4244else 4245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4246printf "%s\n" "no" >&6; } 4247fi 4248 4249 4250fi 4251if test -z "$ac_cv_prog_STRIP"; then 4252 ac_ct_STRIP=$STRIP 4253 # Extract the first word of "strip", so it can be a program name with args. 4254set dummy strip; ac_word=$2 4255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4256printf %s "checking for $ac_word... " >&6; } 4257if test ${ac_cv_prog_ac_ct_STRIP+y} 4258then : 4259 printf %s "(cached) " >&6 4260else case e in #( 4261 e) if test -n "$ac_ct_STRIP"; then 4262 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4263else 4264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4265for as_dir in $PATH 4266do 4267 IFS=$as_save_IFS 4268 case $as_dir in #((( 4269 '') as_dir=./ ;; 4270 */) ;; 4271 *) as_dir=$as_dir/ ;; 4272 esac 4273 for ac_exec_ext in '' $ac_executable_extensions; do 4274 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4275 ac_cv_prog_ac_ct_STRIP="strip" 4276 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4277 break 2 4278 fi 4279done 4280 done 4281IFS=$as_save_IFS 4282 4283fi ;; 4284esac 4285fi 4286ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4287if test -n "$ac_ct_STRIP"; then 4288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4289printf "%s\n" "$ac_ct_STRIP" >&6; } 4290else 4291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4292printf "%s\n" "no" >&6; } 4293fi 4294 4295 if test "x$ac_ct_STRIP" = x; then 4296 STRIP=":" 4297 else 4298 case $cross_compiling:$ac_tool_warned in 4299yes:) 4300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4301printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4302ac_tool_warned=yes ;; 4303esac 4304 STRIP=$ac_ct_STRIP 4305 fi 4306else 4307 STRIP="$ac_cv_prog_STRIP" 4308fi 4309 4310fi 4311INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4312 4313 4314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 4315printf %s "checking for a race-free mkdir -p... " >&6; } 4316if test -z "$MKDIR_P"; then 4317 if test ${ac_cv_path_mkdir+y} 4318then : 4319 printf %s "(cached) " >&6 4320else case e in #( 4321 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4322for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4323do 4324 IFS=$as_save_IFS 4325 case $as_dir in #((( 4326 '') as_dir=./ ;; 4327 */) ;; 4328 *) as_dir=$as_dir/ ;; 4329 esac 4330 for ac_prog in mkdir gmkdir; do 4331 for ac_exec_ext in '' $ac_executable_extensions; do 4332 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 4333 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 4334 'mkdir ('*'coreutils) '* | \ 4335 *'BusyBox '* | \ 4336 'mkdir (fileutils) '4.1*) 4337 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 4338 break 3;; 4339 esac 4340 done 4341 done 4342 done 4343IFS=$as_save_IFS 4344 ;; 4345esac 4346fi 4347 4348 test -d ./--version && rmdir ./--version 4349 if test ${ac_cv_path_mkdir+y}; then 4350 MKDIR_P="$ac_cv_path_mkdir -p" 4351 else 4352 # As a last resort, use plain mkdir -p, 4353 # in the hope it doesn't have the bugs of ancient mkdir. 4354 MKDIR_P='mkdir -p' 4355 fi 4356fi 4357{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4358printf "%s\n" "$MKDIR_P" >&6; } 4359 4360for ac_prog in gawk mawk nawk awk 4361do 4362 # Extract the first word of "$ac_prog", so it can be a program name with args. 4363set dummy $ac_prog; ac_word=$2 4364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4365printf %s "checking for $ac_word... " >&6; } 4366if test ${ac_cv_prog_AWK+y} 4367then : 4368 printf %s "(cached) " >&6 4369else case e in #( 4370 e) if test -n "$AWK"; then 4371 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4372else 4373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4374for as_dir in $PATH 4375do 4376 IFS=$as_save_IFS 4377 case $as_dir in #((( 4378 '') as_dir=./ ;; 4379 */) ;; 4380 *) as_dir=$as_dir/ ;; 4381 esac 4382 for ac_exec_ext in '' $ac_executable_extensions; do 4383 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4384 ac_cv_prog_AWK="$ac_prog" 4385 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4386 break 2 4387 fi 4388done 4389 done 4390IFS=$as_save_IFS 4391 4392fi ;; 4393esac 4394fi 4395AWK=$ac_cv_prog_AWK 4396if test -n "$AWK"; then 4397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4398printf "%s\n" "$AWK" >&6; } 4399else 4400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4401printf "%s\n" "no" >&6; } 4402fi 4403 4404 4405 test -n "$AWK" && break 4406done 4407 4408{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4409printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4410set x ${MAKE-make} 4411ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4412if eval test \${ac_cv_prog_make_${ac_make}_set+y} 4413then : 4414 printf %s "(cached) " >&6 4415else case e in #( 4416 e) cat >conftest.make <<\_ACEOF 4417SHELL = /bin/sh 4418all: 4419 @echo '@@@%%%=$(MAKE)=@@@%%%' 4420_ACEOF 4421# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4422case `${MAKE-make} -f conftest.make 2>/dev/null` in 4423 *@@@%%%=?*=@@@%%%*) 4424 eval ac_cv_prog_make_${ac_make}_set=yes;; 4425 *) 4426 eval ac_cv_prog_make_${ac_make}_set=no;; 4427esac 4428rm -f conftest.make ;; 4429esac 4430fi 4431if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4433printf "%s\n" "yes" >&6; } 4434 SET_MAKE= 4435else 4436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4437printf "%s\n" "no" >&6; } 4438 SET_MAKE="MAKE=${MAKE-make}" 4439fi 4440 4441rm -rf .tst 2>/dev/null 4442mkdir .tst 2>/dev/null 4443if test -d .tst; then 4444 am__leading_dot=. 4445else 4446 am__leading_dot=_ 4447fi 4448rmdir .tst 2>/dev/null 4449 4450DEPDIR="${am__leading_dot}deps" 4451 4452ac_config_commands="$ac_config_commands depfiles" 4453 4454{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4455printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 4456cat > confinc.mk << 'END' 4457am__doit: 4458 @echo this is the am__doit target >confinc.out 4459.PHONY: am__doit 4460END 4461am__include="#" 4462am__quote= 4463# BSD make does it like this. 4464echo '.include "confinc.mk" # ignored' > confmf.BSD 4465# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4466echo 'include confinc.mk # ignored' > confmf.GNU 4467_am_result=no 4468for s in GNU BSD; do 4469 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4470 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4471 ac_status=$? 4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4473 (exit $ac_status); } 4474 case $?:`cat confinc.out 2>/dev/null` in #( 4475 '0:this is the am__doit target') : 4476 case $s in #( 4477 BSD) : 4478 am__include='.include' am__quote='"' ;; #( 4479 *) : 4480 am__include='include' am__quote='' ;; 4481esac ;; #( 4482 *) : 4483 ;; 4484esac 4485 if test "$am__include" != "#"; then 4486 _am_result="yes ($s style)" 4487 break 4488 fi 4489done 4490rm -f confinc.* confmf.* 4491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4492printf "%s\n" "${_am_result}" >&6; } 4493 4494# Check whether --enable-dependency-tracking was given. 4495if test ${enable_dependency_tracking+y} 4496then : 4497 enableval=$enable_dependency_tracking; 4498fi 4499 4500if test "x$enable_dependency_tracking" != xno; then 4501 am_depcomp="$ac_aux_dir/depcomp" 4502 AMDEPBACKSLASH='\' 4503 am__nodep='_no' 4504fi 4505 if test "x$enable_dependency_tracking" != xno; then 4506 AMDEP_TRUE= 4507 AMDEP_FALSE='#' 4508else 4509 AMDEP_TRUE='#' 4510 AMDEP_FALSE= 4511fi 4512 4513 4514AM_DEFAULT_VERBOSITY=1 4515# Check whether --enable-silent-rules was given. 4516if test ${enable_silent_rules+y} 4517then : 4518 enableval=$enable_silent_rules; 4519fi 4520 4521am_make=${MAKE-make} 4522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4523printf %s "checking whether $am_make supports nested variables... " >&6; } 4524if test ${am_cv_make_support_nested_variables+y} 4525then : 4526 printf %s "(cached) " >&6 4527else case e in #( 4528 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 4529BAR0=false 4530BAR1=true 4531V=1 4532am__doit: 4533 @$(TRUE) 4534.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4535 am_cv_make_support_nested_variables=yes 4536else 4537 am_cv_make_support_nested_variables=no 4538fi ;; 4539esac 4540fi 4541{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4542printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 4543AM_BACKSLASH='\' 4544 4545am__rm_f_notfound= 4546if (rm -f && rm -fr && rm -rf) 2>/dev/null 4547then : 4548 4549else case e in #( 4550 e) am__rm_f_notfound='""' ;; 4551esac 4552fi 4553 4554 4555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5 4556printf %s "checking xargs -n works... " >&6; } 4557if test ${am_cv_xargs_n_works+y} 4558then : 4559 printf %s "(cached) " >&6 4560else case e in #( 4561 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2 45623" 4563then : 4564 am_cv_xargs_n_works=yes 4565else case e in #( 4566 e) am_cv_xargs_n_works=no ;; 4567esac 4568fi ;; 4569esac 4570fi 4571{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5 4572printf "%s\n" "$am_cv_xargs_n_works" >&6; } 4573if test "$am_cv_xargs_n_works" = yes 4574then : 4575 am__xargs_n='xargs -n' 4576else case e in #( 4577 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }' 4578 ;; 4579esac 4580fi 4581 4582if test "`cd $srcdir && pwd`" != "`pwd`"; then 4583 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4584 # is not polluted with repeated "-I." 4585 am__isrc=' -I$(srcdir)' 4586 # test to see if srcdir already configured 4587 if test -f $srcdir/config.status; then 4588 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4589 fi 4590fi 4591 4592# test whether we have cygpath 4593if test -z "$CYGPATH_W"; then 4594 if (cygpath --version) >/dev/null 2>/dev/null; then 4595 CYGPATH_W='cygpath -w' 4596 else 4597 CYGPATH_W=echo 4598 fi 4599fi 4600 4601 4602# Define the identity of the package. 4603 PACKAGE='fslsfonts' 4604 VERSION='1.0.7' 4605 4606 4607printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 4608 4609 4610printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 4611 4612# Some tools Automake needs. 4613 4614ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4615 4616 4617AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4618 4619 4620AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4621 4622 4623AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4624 4625 4626MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4627 4628# For better backward compatibility. To be removed once Automake 1.9.x 4629# dies out for good. For more background, see: 4630# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4631# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4632mkdir_p='$(MKDIR_P)' 4633 4634# We need awk for the "check" target (and possibly the TAP driver). The 4635# system "awk" is bad on some platforms. 4636# Always define AMTAR for backward compatibility. Yes, it's still used 4637# in the wild :-( We should find a proper way to deprecate it ... 4638AMTAR='$${TAR-tar}' 4639 4640 4641# We'll loop over all known methods to create a tar archive until one works. 4642_am_tools='gnutar pax cpio none' 4643 4644am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4645 4646 4647 4648 4649 4650depcc="$CC" am_compiler_list= 4651 4652{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4653printf %s "checking dependency style of $depcc... " >&6; } 4654if test ${am_cv_CC_dependencies_compiler_type+y} 4655then : 4656 printf %s "(cached) " >&6 4657else case e in #( 4658 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4659 # We make a subdir and do the tests there. Otherwise we can end up 4660 # making bogus files that we don't know about and never remove. For 4661 # instance it was reported that on HP-UX the gcc test will end up 4662 # making a dummy file named 'D' -- because '-MD' means "put the output 4663 # in D". 4664 rm -rf conftest.dir 4665 mkdir conftest.dir 4666 # Copy depcomp to subdir because otherwise we won't find it if we're 4667 # using a relative directory. 4668 cp "$am_depcomp" conftest.dir 4669 cd conftest.dir 4670 # We will build objects and dependencies in a subdirectory because 4671 # it helps to detect inapplicable dependency modes. For instance 4672 # both Tru64's cc and ICC support -MD to output dependencies as a 4673 # side effect of compilation, but ICC will put the dependencies in 4674 # the current directory while Tru64 will put them in the object 4675 # directory. 4676 mkdir sub 4677 4678 am_cv_CC_dependencies_compiler_type=none 4679 if test "$am_compiler_list" = ""; then 4680 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4681 fi 4682 am__universal=false 4683 case " $depcc " in #( 4684 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4685 esac 4686 4687 for depmode in $am_compiler_list; do 4688 # Setup a source with many dependencies, because some compilers 4689 # like to wrap large dependency lists on column 80 (with \), and 4690 # we should not choose a depcomp mode which is confused by this. 4691 # 4692 # We need to recreate these files for each test, as the compiler may 4693 # overwrite some of them when testing with obscure command lines. 4694 # This happens at least with the AIX C compiler. 4695 : > sub/conftest.c 4696 for i in 1 2 3 4 5 6; do 4697 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4698 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4699 # Solaris 10 /bin/sh. 4700 echo '/* dummy */' > sub/conftst$i.h 4701 done 4702 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4703 4704 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4705 # mode. It turns out that the SunPro C++ compiler does not properly 4706 # handle '-M -o', and we need to detect this. Also, some Intel 4707 # versions had trouble with output in subdirs. 4708 am__obj=sub/conftest.${OBJEXT-o} 4709 am__minus_obj="-o $am__obj" 4710 case $depmode in 4711 gcc) 4712 # This depmode causes a compiler race in universal mode. 4713 test "$am__universal" = false || continue 4714 ;; 4715 nosideeffect) 4716 # After this tag, mechanisms are not by side-effect, so they'll 4717 # only be used when explicitly requested. 4718 if test "x$enable_dependency_tracking" = xyes; then 4719 continue 4720 else 4721 break 4722 fi 4723 ;; 4724 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4725 # This compiler won't grok '-c -o', but also, the minuso test has 4726 # not run yet. These depmodes are late enough in the game, and 4727 # so weak that their functioning should not be impacted. 4728 am__obj=conftest.${OBJEXT-o} 4729 am__minus_obj= 4730 ;; 4731 none) break ;; 4732 esac 4733 if depmode=$depmode \ 4734 source=sub/conftest.c object=$am__obj \ 4735 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4736 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4737 >/dev/null 2>conftest.err && 4738 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4739 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4740 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4741 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4742 # icc doesn't choke on unknown options, it will just issue warnings 4743 # or remarks (even with -Werror). So we grep stderr for any message 4744 # that says an option was ignored or not supported. 4745 # When given -MP, icc 7.0 and 7.1 complain thus: 4746 # icc: Command line warning: ignoring option '-M'; no argument required 4747 # The diagnosis changed in icc 8.0: 4748 # icc: Command line remark: option '-MP' not supported 4749 if (grep 'ignoring option' conftest.err || 4750 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4751 am_cv_CC_dependencies_compiler_type=$depmode 4752 break 4753 fi 4754 fi 4755 done 4756 4757 cd .. 4758 rm -rf conftest.dir 4759else 4760 am_cv_CC_dependencies_compiler_type=none 4761fi 4762 ;; 4763esac 4764fi 4765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4766printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4767CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4768 4769 if 4770 test "x$enable_dependency_tracking" != xno \ 4771 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4772 am__fastdepCC_TRUE= 4773 am__fastdepCC_FALSE='#' 4774else 4775 am__fastdepCC_TRUE='#' 4776 am__fastdepCC_FALSE= 4777fi 4778 4779 4780# Variables for tags utilities; see am/tags.am 4781if test -z "$CTAGS"; then 4782 CTAGS=ctags 4783fi 4784 4785if test -z "$ETAGS"; then 4786 ETAGS=etags 4787fi 4788 4789if test -z "$CSCOPE"; then 4790 CSCOPE=cscope 4791fi 4792 4793 4794 4795 4796 4797 4798 4799 4800# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4813printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4814if test ${ac_cv_c_undeclared_builtin_options+y} 4815then : 4816 printf %s "(cached) " >&6 4817else case e in #( 4818 e) ac_save_CFLAGS=$CFLAGS 4819 ac_cv_c_undeclared_builtin_options='cannot detect' 4820 for ac_arg in '' -fno-builtin; do 4821 CFLAGS="$ac_save_CFLAGS $ac_arg" 4822 # This test program should *not* compile successfully. 4823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4824/* end confdefs.h. */ 4825 4826int 4827main (void) 4828{ 4829(void) strchr; 4830 ; 4831 return 0; 4832} 4833_ACEOF 4834if ac_fn_c_try_compile "$LINENO" 4835then : 4836 4837else case e in #( 4838 e) # This test program should compile successfully. 4839 # No library function is consistently available on 4840 # freestanding implementations, so test against a dummy 4841 # declaration. Include always-available headers on the 4842 # off chance that they somehow elicit warnings. 4843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4844/* end confdefs.h. */ 4845#include <float.h> 4846#include <limits.h> 4847#include <stdarg.h> 4848#include <stddef.h> 4849extern void ac_decl (int, char *); 4850 4851int 4852main (void) 4853{ 4854(void) ac_decl (0, (char *) 0); 4855 (void) ac_decl; 4856 4857 ; 4858 return 0; 4859} 4860_ACEOF 4861if ac_fn_c_try_compile "$LINENO" 4862then : 4863 if test x"$ac_arg" = x 4864then : 4865 ac_cv_c_undeclared_builtin_options='none needed' 4866else case e in #( 4867 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 4868esac 4869fi 4870 break 4871fi 4872rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4873esac 4874fi 4875rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4876 done 4877 CFLAGS=$ac_save_CFLAGS 4878 ;; 4879esac 4880fi 4881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4882printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4883 case $ac_cv_c_undeclared_builtin_options in #( 4884 'cannot detect') : 4885 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4886printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4887as_fn_error $? "cannot make $CC report undeclared builtins 4888See 'config.log' for more details" "$LINENO" 5; } ;; #( 4889 'none needed') : 4890 ac_c_undeclared_builtin_options='' ;; #( 4891 *) : 4892 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4893esac 4894 4895 4896 4897 4898 4899ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4900if test "x$ac_cv_have_decl___clang__" = xyes 4901then : 4902 CLANGCC="yes" 4903else case e in #( 4904 e) CLANGCC="no" ;; 4905esac 4906fi 4907ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4908if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4909then : 4910 INTELCC="yes" 4911else case e in #( 4912 e) INTELCC="no" ;; 4913esac 4914fi 4915ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4916if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4917then : 4918 SUNCC="yes" 4919else case e in #( 4920 e) SUNCC="no" ;; 4921esac 4922fi 4923 4924 4925 4926 4927 4928 4929 4930 4931if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4932 if test -n "$ac_tool_prefix"; then 4933 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4934set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4936printf %s "checking for $ac_word... " >&6; } 4937if test ${ac_cv_path_PKG_CONFIG+y} 4938then : 4939 printf %s "(cached) " >&6 4940else case e in #( 4941 e) case $PKG_CONFIG in 4942 [\\/]* | ?:[\\/]*) 4943 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4944 ;; 4945 *) 4946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4947for as_dir in $PATH 4948do 4949 IFS=$as_save_IFS 4950 case $as_dir in #((( 4951 '') as_dir=./ ;; 4952 */) ;; 4953 *) as_dir=$as_dir/ ;; 4954 esac 4955 for ac_exec_ext in '' $ac_executable_extensions; do 4956 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4957 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4958 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4959 break 2 4960 fi 4961done 4962 done 4963IFS=$as_save_IFS 4964 4965 ;; 4966esac ;; 4967esac 4968fi 4969PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4970if test -n "$PKG_CONFIG"; then 4971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4972printf "%s\n" "$PKG_CONFIG" >&6; } 4973else 4974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4975printf "%s\n" "no" >&6; } 4976fi 4977 4978 4979fi 4980if test -z "$ac_cv_path_PKG_CONFIG"; then 4981 ac_pt_PKG_CONFIG=$PKG_CONFIG 4982 # Extract the first word of "pkg-config", so it can be a program name with args. 4983set dummy pkg-config; ac_word=$2 4984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4985printf %s "checking for $ac_word... " >&6; } 4986if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4987then : 4988 printf %s "(cached) " >&6 4989else case e in #( 4990 e) case $ac_pt_PKG_CONFIG in 4991 [\\/]* | ?:[\\/]*) 4992 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4993 ;; 4994 *) 4995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4996for as_dir in $PATH 4997do 4998 IFS=$as_save_IFS 4999 case $as_dir in #((( 5000 '') as_dir=./ ;; 5001 */) ;; 5002 *) as_dir=$as_dir/ ;; 5003 esac 5004 for ac_exec_ext in '' $ac_executable_extensions; do 5005 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5006 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 5007 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5008 break 2 5009 fi 5010done 5011 done 5012IFS=$as_save_IFS 5013 5014 ;; 5015esac ;; 5016esac 5017fi 5018ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 5019if test -n "$ac_pt_PKG_CONFIG"; then 5020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 5021printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 5022else 5023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5024printf "%s\n" "no" >&6; } 5025fi 5026 5027 if test "x$ac_pt_PKG_CONFIG" = x; then 5028 PKG_CONFIG="" 5029 else 5030 case $cross_compiling:$ac_tool_warned in 5031yes:) 5032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5033printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5034ac_tool_warned=yes ;; 5035esac 5036 PKG_CONFIG=$ac_pt_PKG_CONFIG 5037 fi 5038else 5039 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 5040fi 5041 5042fi 5043if test -n "$PKG_CONFIG"; then 5044 _pkg_min_version=0.9.0 5045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 5046printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 5047 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 5048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5049printf "%s\n" "yes" >&6; } 5050 else 5051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5052printf "%s\n" "no" >&6; } 5053 PKG_CONFIG="" 5054 fi 5055fi 5056 5057 5058 # Make sure we can run config.sub. 5059$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 5060 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 5061 5062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5063printf %s "checking build system type... " >&6; } 5064if test ${ac_cv_build+y} 5065then : 5066 printf %s "(cached) " >&6 5067else case e in #( 5068 e) ac_build_alias=$build_alias 5069test "x$ac_build_alias" = x && 5070 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 5071test "x$ac_build_alias" = x && 5072 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5073ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 5074 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 5075 ;; 5076esac 5077fi 5078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5079printf "%s\n" "$ac_cv_build" >&6; } 5080case $ac_cv_build in 5081*-*-*) ;; 5082*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5083esac 5084build=$ac_cv_build 5085ac_save_IFS=$IFS; IFS='-' 5086set x $ac_cv_build 5087shift 5088build_cpu=$1 5089build_vendor=$2 5090shift; shift 5091# Remember, the first character of IFS is used to create $*, 5092# except with old shells: 5093build_os=$* 5094IFS=$ac_save_IFS 5095case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5096 5097 5098{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5099printf %s "checking host system type... " >&6; } 5100if test ${ac_cv_host+y} 5101then : 5102 printf %s "(cached) " >&6 5103else case e in #( 5104 e) if test "x$host_alias" = x; then 5105 ac_cv_host=$ac_cv_build 5106else 5107 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 5108 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 5109fi 5110 ;; 5111esac 5112fi 5113{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5114printf "%s\n" "$ac_cv_host" >&6; } 5115case $ac_cv_host in 5116*-*-*) ;; 5117*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5118esac 5119host=$ac_cv_host 5120ac_save_IFS=$IFS; IFS='-' 5121set x $ac_cv_host 5122shift 5123host_cpu=$1 5124host_vendor=$2 5125shift; shift 5126# Remember, the first character of IFS is used to create $*, 5127# except with old shells: 5128host_os=$* 5129IFS=$ac_save_IFS 5130case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5131 5132 5133{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5134printf %s "checking for a sed that does not truncate output... " >&6; } 5135if test ${ac_cv_path_SED+y} 5136then : 5137 printf %s "(cached) " >&6 5138else case e in #( 5139 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5140 for ac_i in 1 2 3 4 5 6 7; do 5141 ac_script="$ac_script$as_nl$ac_script" 5142 done 5143 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5144 { ac_script=; unset ac_script;} 5145 if test -z "$SED"; then 5146 ac_path_SED_found=false 5147 # Loop through the user's path and test for each of PROGNAME-LIST 5148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5149for as_dir in $PATH 5150do 5151 IFS=$as_save_IFS 5152 case $as_dir in #((( 5153 '') as_dir=./ ;; 5154 */) ;; 5155 *) as_dir=$as_dir/ ;; 5156 esac 5157 for ac_prog in sed gsed 5158 do 5159 for ac_exec_ext in '' $ac_executable_extensions; do 5160 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5161 as_fn_executable_p "$ac_path_SED" || continue 5162# Check for GNU ac_path_SED and select it if it is found. 5163 # Check for GNU $ac_path_SED 5164case `"$ac_path_SED" --version 2>&1` in #( 5165*GNU*) 5166 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5167#( 5168*) 5169 ac_count=0 5170 printf %s 0123456789 >"conftest.in" 5171 while : 5172 do 5173 cat "conftest.in" "conftest.in" >"conftest.tmp" 5174 mv "conftest.tmp" "conftest.in" 5175 cp "conftest.in" "conftest.nl" 5176 printf "%s\n" '' >> "conftest.nl" 5177 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5178 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5179 as_fn_arith $ac_count + 1 && ac_count=$as_val 5180 if test $ac_count -gt ${ac_path_SED_max-0}; then 5181 # Best one so far, save it but keep looking for a better one 5182 ac_cv_path_SED="$ac_path_SED" 5183 ac_path_SED_max=$ac_count 5184 fi 5185 # 10*(2^10) chars as input seems more than enough 5186 test $ac_count -gt 10 && break 5187 done 5188 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5189esac 5190 5191 $ac_path_SED_found && break 3 5192 done 5193 done 5194 done 5195IFS=$as_save_IFS 5196 if test -z "$ac_cv_path_SED"; then 5197 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5198 fi 5199else 5200 ac_cv_path_SED=$SED 5201fi 5202 ;; 5203esac 5204fi 5205{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5206printf "%s\n" "$ac_cv_path_SED" >&6; } 5207 SED="$ac_cv_path_SED" 5208 rm -f conftest.sed 5209 5210 5211 5212 5213 5214 5215# Check whether --enable-selective-werror was given. 5216if test ${enable_selective_werror+y} 5217then : 5218 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5219else case e in #( 5220 e) SELECTIVE_WERROR=yes ;; 5221esac 5222fi 5223 5224 5225 5226 5227 5228# -v is too short to test reliably with XORG_TESTSET_CFLAG 5229if test "x$SUNCC" = "xyes"; then 5230 BASE_CFLAGS="-v" 5231else 5232 BASE_CFLAGS="" 5233fi 5234 5235# This chunk of warnings were those that existed in the legacy CWARNFLAGS 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249xorg_testset_save_CFLAGS="$CFLAGS" 5250 5251if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5252 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5254printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5255if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5256then : 5257 printf %s "(cached) " >&6 5258else case e in #( 5259 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5260/* end confdefs.h. */ 5261int i; 5262_ACEOF 5263if ac_fn_c_try_compile "$LINENO" 5264then : 5265 xorg_cv_cc_flag_unknown_warning_option=yes 5266else case e in #( 5267 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5268esac 5269fi 5270rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5271esac 5272fi 5273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5274printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5275 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5276 CFLAGS="$xorg_testset_save_CFLAGS" 5277fi 5278 5279if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5280 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5281 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5282 fi 5283 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5285printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5286if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5287then : 5288 printf %s "(cached) " >&6 5289else case e in #( 5290 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5291/* end confdefs.h. */ 5292int i; 5293_ACEOF 5294if ac_fn_c_try_compile "$LINENO" 5295then : 5296 xorg_cv_cc_flag_unused_command_line_argument=yes 5297else case e in #( 5298 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5299esac 5300fi 5301rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5302esac 5303fi 5304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5305printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5306 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5307 CFLAGS="$xorg_testset_save_CFLAGS" 5308fi 5309 5310found="no" 5311 5312 if test $found = "no" ; then 5313 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5314 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5315 fi 5316 5317 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5318 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5319 fi 5320 5321 CFLAGS="$CFLAGS -Wall" 5322 5323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5324printf %s "checking if $CC supports -Wall... " >&6; } 5325 cacheid=xorg_cv_cc_flag__Wall 5326 if eval test \${$cacheid+y} 5327then : 5328 printf %s "(cached) " >&6 5329else case e in #( 5330 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5331/* end confdefs.h. */ 5332int i; 5333int 5334main (void) 5335{ 5336 5337 ; 5338 return 0; 5339} 5340_ACEOF 5341if ac_fn_c_try_link "$LINENO" 5342then : 5343 eval $cacheid=yes 5344else case e in #( 5345 e) eval $cacheid=no ;; 5346esac 5347fi 5348rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5349 conftest$ac_exeext conftest.$ac_ext ;; 5350esac 5351fi 5352 5353 5354 CFLAGS="$xorg_testset_save_CFLAGS" 5355 5356 eval supported=\$$cacheid 5357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5358printf "%s\n" "$supported" >&6; } 5359 if test "$supported" = "yes" ; then 5360 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5361 found="yes" 5362 fi 5363 fi 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379xorg_testset_save_CFLAGS="$CFLAGS" 5380 5381if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5382 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5384printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5385if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5386then : 5387 printf %s "(cached) " >&6 5388else case e in #( 5389 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5390/* end confdefs.h. */ 5391int i; 5392_ACEOF 5393if ac_fn_c_try_compile "$LINENO" 5394then : 5395 xorg_cv_cc_flag_unknown_warning_option=yes 5396else case e in #( 5397 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5398esac 5399fi 5400rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5401esac 5402fi 5403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5404printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5405 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5406 CFLAGS="$xorg_testset_save_CFLAGS" 5407fi 5408 5409if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5410 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5411 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5412 fi 5413 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5415printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5416if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5417then : 5418 printf %s "(cached) " >&6 5419else case e in #( 5420 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5421/* end confdefs.h. */ 5422int i; 5423_ACEOF 5424if ac_fn_c_try_compile "$LINENO" 5425then : 5426 xorg_cv_cc_flag_unused_command_line_argument=yes 5427else case e in #( 5428 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5429esac 5430fi 5431rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5432esac 5433fi 5434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5435printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5436 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5437 CFLAGS="$xorg_testset_save_CFLAGS" 5438fi 5439 5440found="no" 5441 5442 if test $found = "no" ; then 5443 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5444 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5445 fi 5446 5447 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5448 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5449 fi 5450 5451 CFLAGS="$CFLAGS -Wpointer-arith" 5452 5453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5454printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5455 cacheid=xorg_cv_cc_flag__Wpointer_arith 5456 if eval test \${$cacheid+y} 5457then : 5458 printf %s "(cached) " >&6 5459else case e in #( 5460 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5461/* end confdefs.h. */ 5462int i; 5463int 5464main (void) 5465{ 5466 5467 ; 5468 return 0; 5469} 5470_ACEOF 5471if ac_fn_c_try_link "$LINENO" 5472then : 5473 eval $cacheid=yes 5474else case e in #( 5475 e) eval $cacheid=no ;; 5476esac 5477fi 5478rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5479 conftest$ac_exeext conftest.$ac_ext ;; 5480esac 5481fi 5482 5483 5484 CFLAGS="$xorg_testset_save_CFLAGS" 5485 5486 eval supported=\$$cacheid 5487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5488printf "%s\n" "$supported" >&6; } 5489 if test "$supported" = "yes" ; then 5490 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5491 found="yes" 5492 fi 5493 fi 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509xorg_testset_save_CFLAGS="$CFLAGS" 5510 5511if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5512 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5514printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5515if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5516then : 5517 printf %s "(cached) " >&6 5518else case e in #( 5519 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5520/* end confdefs.h. */ 5521int i; 5522_ACEOF 5523if ac_fn_c_try_compile "$LINENO" 5524then : 5525 xorg_cv_cc_flag_unknown_warning_option=yes 5526else case e in #( 5527 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5528esac 5529fi 5530rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5531esac 5532fi 5533{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5534printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5535 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5536 CFLAGS="$xorg_testset_save_CFLAGS" 5537fi 5538 5539if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5540 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5541 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5542 fi 5543 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5545printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5546if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5547then : 5548 printf %s "(cached) " >&6 5549else case e in #( 5550 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5551/* end confdefs.h. */ 5552int i; 5553_ACEOF 5554if ac_fn_c_try_compile "$LINENO" 5555then : 5556 xorg_cv_cc_flag_unused_command_line_argument=yes 5557else case e in #( 5558 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5559esac 5560fi 5561rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5562esac 5563fi 5564{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5565printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5566 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5567 CFLAGS="$xorg_testset_save_CFLAGS" 5568fi 5569 5570found="no" 5571 5572 if test $found = "no" ; then 5573 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5574 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5575 fi 5576 5577 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5578 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5579 fi 5580 5581 CFLAGS="$CFLAGS -Wmissing-declarations" 5582 5583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5584printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5585 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5586 if eval test \${$cacheid+y} 5587then : 5588 printf %s "(cached) " >&6 5589else case e in #( 5590 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5591/* end confdefs.h. */ 5592int i; 5593int 5594main (void) 5595{ 5596 5597 ; 5598 return 0; 5599} 5600_ACEOF 5601if ac_fn_c_try_link "$LINENO" 5602then : 5603 eval $cacheid=yes 5604else case e in #( 5605 e) eval $cacheid=no ;; 5606esac 5607fi 5608rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5609 conftest$ac_exeext conftest.$ac_ext ;; 5610esac 5611fi 5612 5613 5614 CFLAGS="$xorg_testset_save_CFLAGS" 5615 5616 eval supported=\$$cacheid 5617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5618printf "%s\n" "$supported" >&6; } 5619 if test "$supported" = "yes" ; then 5620 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5621 found="yes" 5622 fi 5623 fi 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639xorg_testset_save_CFLAGS="$CFLAGS" 5640 5641if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5642 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5644printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5645if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5646then : 5647 printf %s "(cached) " >&6 5648else case e in #( 5649 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5650/* end confdefs.h. */ 5651int i; 5652_ACEOF 5653if ac_fn_c_try_compile "$LINENO" 5654then : 5655 xorg_cv_cc_flag_unknown_warning_option=yes 5656else case e in #( 5657 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5658esac 5659fi 5660rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5661esac 5662fi 5663{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5664printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5665 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5666 CFLAGS="$xorg_testset_save_CFLAGS" 5667fi 5668 5669if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5670 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5671 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5672 fi 5673 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5675printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5676if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5677then : 5678 printf %s "(cached) " >&6 5679else case e in #( 5680 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5681/* end confdefs.h. */ 5682int i; 5683_ACEOF 5684if ac_fn_c_try_compile "$LINENO" 5685then : 5686 xorg_cv_cc_flag_unused_command_line_argument=yes 5687else case e in #( 5688 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5689esac 5690fi 5691rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5692esac 5693fi 5694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5695printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5696 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5697 CFLAGS="$xorg_testset_save_CFLAGS" 5698fi 5699 5700found="no" 5701 5702 if test $found = "no" ; then 5703 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5704 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5705 fi 5706 5707 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5709 fi 5710 5711 CFLAGS="$CFLAGS -Wformat=2" 5712 5713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5714printf %s "checking if $CC supports -Wformat=2... " >&6; } 5715 cacheid=xorg_cv_cc_flag__Wformat_2 5716 if eval test \${$cacheid+y} 5717then : 5718 printf %s "(cached) " >&6 5719else case e in #( 5720 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5721/* end confdefs.h. */ 5722int i; 5723int 5724main (void) 5725{ 5726 5727 ; 5728 return 0; 5729} 5730_ACEOF 5731if ac_fn_c_try_link "$LINENO" 5732then : 5733 eval $cacheid=yes 5734else case e in #( 5735 e) eval $cacheid=no ;; 5736esac 5737fi 5738rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5739 conftest$ac_exeext conftest.$ac_ext ;; 5740esac 5741fi 5742 5743 5744 CFLAGS="$xorg_testset_save_CFLAGS" 5745 5746 eval supported=\$$cacheid 5747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5748printf "%s\n" "$supported" >&6; } 5749 if test "$supported" = "yes" ; then 5750 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5751 found="yes" 5752 fi 5753 fi 5754 5755 if test $found = "no" ; then 5756 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5757 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5758 fi 5759 5760 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5761 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5762 fi 5763 5764 CFLAGS="$CFLAGS -Wformat" 5765 5766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5767printf %s "checking if $CC supports -Wformat... " >&6; } 5768 cacheid=xorg_cv_cc_flag__Wformat 5769 if eval test \${$cacheid+y} 5770then : 5771 printf %s "(cached) " >&6 5772else case e in #( 5773 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5774/* end confdefs.h. */ 5775int i; 5776int 5777main (void) 5778{ 5779 5780 ; 5781 return 0; 5782} 5783_ACEOF 5784if ac_fn_c_try_link "$LINENO" 5785then : 5786 eval $cacheid=yes 5787else case e in #( 5788 e) eval $cacheid=no ;; 5789esac 5790fi 5791rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5792 conftest$ac_exeext conftest.$ac_ext ;; 5793esac 5794fi 5795 5796 5797 CFLAGS="$xorg_testset_save_CFLAGS" 5798 5799 eval supported=\$$cacheid 5800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5801printf "%s\n" "$supported" >&6; } 5802 if test "$supported" = "yes" ; then 5803 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5804 found="yes" 5805 fi 5806 fi 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824xorg_testset_save_CFLAGS="$CFLAGS" 5825 5826if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5827 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5829printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5830if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5831then : 5832 printf %s "(cached) " >&6 5833else case e in #( 5834 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5835/* end confdefs.h. */ 5836int i; 5837_ACEOF 5838if ac_fn_c_try_compile "$LINENO" 5839then : 5840 xorg_cv_cc_flag_unknown_warning_option=yes 5841else case e in #( 5842 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5843esac 5844fi 5845rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5846esac 5847fi 5848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5849printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5850 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5851 CFLAGS="$xorg_testset_save_CFLAGS" 5852fi 5853 5854if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5855 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5856 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5857 fi 5858 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5860printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5861if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5862then : 5863 printf %s "(cached) " >&6 5864else case e in #( 5865 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5866/* end confdefs.h. */ 5867int i; 5868_ACEOF 5869if ac_fn_c_try_compile "$LINENO" 5870then : 5871 xorg_cv_cc_flag_unused_command_line_argument=yes 5872else case e in #( 5873 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5874esac 5875fi 5876rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5877esac 5878fi 5879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5880printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5881 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5882 CFLAGS="$xorg_testset_save_CFLAGS" 5883fi 5884 5885found="no" 5886 5887 if test $found = "no" ; then 5888 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5889 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5890 fi 5891 5892 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5894 fi 5895 5896 CFLAGS="$CFLAGS -Wstrict-prototypes" 5897 5898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5899printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5900 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5901 if eval test \${$cacheid+y} 5902then : 5903 printf %s "(cached) " >&6 5904else case e in #( 5905 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5906/* end confdefs.h. */ 5907int i; 5908int 5909main (void) 5910{ 5911 5912 ; 5913 return 0; 5914} 5915_ACEOF 5916if ac_fn_c_try_link "$LINENO" 5917then : 5918 eval $cacheid=yes 5919else case e in #( 5920 e) eval $cacheid=no ;; 5921esac 5922fi 5923rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5924 conftest$ac_exeext conftest.$ac_ext ;; 5925esac 5926fi 5927 5928 5929 CFLAGS="$xorg_testset_save_CFLAGS" 5930 5931 eval supported=\$$cacheid 5932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5933printf "%s\n" "$supported" >&6; } 5934 if test "$supported" = "yes" ; then 5935 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5936 found="yes" 5937 fi 5938 fi 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954xorg_testset_save_CFLAGS="$CFLAGS" 5955 5956if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5957 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5959printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5960if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5961then : 5962 printf %s "(cached) " >&6 5963else case e in #( 5964 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5965/* end confdefs.h. */ 5966int i; 5967_ACEOF 5968if ac_fn_c_try_compile "$LINENO" 5969then : 5970 xorg_cv_cc_flag_unknown_warning_option=yes 5971else case e in #( 5972 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5973esac 5974fi 5975rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5976esac 5977fi 5978{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5979printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5980 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5981 CFLAGS="$xorg_testset_save_CFLAGS" 5982fi 5983 5984if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5985 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5986 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5987 fi 5988 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5990printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5991if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5992then : 5993 printf %s "(cached) " >&6 5994else case e in #( 5995 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5996/* end confdefs.h. */ 5997int i; 5998_ACEOF 5999if ac_fn_c_try_compile "$LINENO" 6000then : 6001 xorg_cv_cc_flag_unused_command_line_argument=yes 6002else case e in #( 6003 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6004esac 6005fi 6006rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6007esac 6008fi 6009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6010printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6011 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6012 CFLAGS="$xorg_testset_save_CFLAGS" 6013fi 6014 6015found="no" 6016 6017 if test $found = "no" ; then 6018 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6019 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6020 fi 6021 6022 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6023 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6024 fi 6025 6026 CFLAGS="$CFLAGS -Wmissing-prototypes" 6027 6028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 6029printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 6030 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 6031 if eval test \${$cacheid+y} 6032then : 6033 printf %s "(cached) " >&6 6034else case e in #( 6035 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6036/* end confdefs.h. */ 6037int i; 6038int 6039main (void) 6040{ 6041 6042 ; 6043 return 0; 6044} 6045_ACEOF 6046if ac_fn_c_try_link "$LINENO" 6047then : 6048 eval $cacheid=yes 6049else case e in #( 6050 e) eval $cacheid=no ;; 6051esac 6052fi 6053rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6054 conftest$ac_exeext conftest.$ac_ext ;; 6055esac 6056fi 6057 6058 6059 CFLAGS="$xorg_testset_save_CFLAGS" 6060 6061 eval supported=\$$cacheid 6062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6063printf "%s\n" "$supported" >&6; } 6064 if test "$supported" = "yes" ; then 6065 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 6066 found="yes" 6067 fi 6068 fi 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084xorg_testset_save_CFLAGS="$CFLAGS" 6085 6086if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6087 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6089printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6090if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6091then : 6092 printf %s "(cached) " >&6 6093else case e in #( 6094 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6095/* end confdefs.h. */ 6096int i; 6097_ACEOF 6098if ac_fn_c_try_compile "$LINENO" 6099then : 6100 xorg_cv_cc_flag_unknown_warning_option=yes 6101else case e in #( 6102 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6103esac 6104fi 6105rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6106esac 6107fi 6108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6109printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6110 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6111 CFLAGS="$xorg_testset_save_CFLAGS" 6112fi 6113 6114if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6115 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6116 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6117 fi 6118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6120printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6121if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6122then : 6123 printf %s "(cached) " >&6 6124else case e in #( 6125 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6126/* end confdefs.h. */ 6127int i; 6128_ACEOF 6129if ac_fn_c_try_compile "$LINENO" 6130then : 6131 xorg_cv_cc_flag_unused_command_line_argument=yes 6132else case e in #( 6133 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6134esac 6135fi 6136rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6137esac 6138fi 6139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6140printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6141 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6142 CFLAGS="$xorg_testset_save_CFLAGS" 6143fi 6144 6145found="no" 6146 6147 if test $found = "no" ; then 6148 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6149 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6150 fi 6151 6152 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6153 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6154 fi 6155 6156 CFLAGS="$CFLAGS -Wnested-externs" 6157 6158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 6159printf %s "checking if $CC supports -Wnested-externs... " >&6; } 6160 cacheid=xorg_cv_cc_flag__Wnested_externs 6161 if eval test \${$cacheid+y} 6162then : 6163 printf %s "(cached) " >&6 6164else case e in #( 6165 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6166/* end confdefs.h. */ 6167int i; 6168int 6169main (void) 6170{ 6171 6172 ; 6173 return 0; 6174} 6175_ACEOF 6176if ac_fn_c_try_link "$LINENO" 6177then : 6178 eval $cacheid=yes 6179else case e in #( 6180 e) eval $cacheid=no ;; 6181esac 6182fi 6183rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6184 conftest$ac_exeext conftest.$ac_ext ;; 6185esac 6186fi 6187 6188 6189 CFLAGS="$xorg_testset_save_CFLAGS" 6190 6191 eval supported=\$$cacheid 6192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6193printf "%s\n" "$supported" >&6; } 6194 if test "$supported" = "yes" ; then 6195 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 6196 found="yes" 6197 fi 6198 fi 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214xorg_testset_save_CFLAGS="$CFLAGS" 6215 6216if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6217 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6219printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6220if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6221then : 6222 printf %s "(cached) " >&6 6223else case e in #( 6224 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6225/* end confdefs.h. */ 6226int i; 6227_ACEOF 6228if ac_fn_c_try_compile "$LINENO" 6229then : 6230 xorg_cv_cc_flag_unknown_warning_option=yes 6231else case e in #( 6232 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6233esac 6234fi 6235rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6236esac 6237fi 6238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6239printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6240 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6241 CFLAGS="$xorg_testset_save_CFLAGS" 6242fi 6243 6244if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6245 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6246 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6247 fi 6248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6250printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6251if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6252then : 6253 printf %s "(cached) " >&6 6254else case e in #( 6255 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6256/* end confdefs.h. */ 6257int i; 6258_ACEOF 6259if ac_fn_c_try_compile "$LINENO" 6260then : 6261 xorg_cv_cc_flag_unused_command_line_argument=yes 6262else case e in #( 6263 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6264esac 6265fi 6266rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6267esac 6268fi 6269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6270printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6271 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6272 CFLAGS="$xorg_testset_save_CFLAGS" 6273fi 6274 6275found="no" 6276 6277 if test $found = "no" ; then 6278 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6279 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6280 fi 6281 6282 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6283 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6284 fi 6285 6286 CFLAGS="$CFLAGS -Wbad-function-cast" 6287 6288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6289printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 6290 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6291 if eval test \${$cacheid+y} 6292then : 6293 printf %s "(cached) " >&6 6294else case e in #( 6295 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6296/* end confdefs.h. */ 6297int i; 6298int 6299main (void) 6300{ 6301 6302 ; 6303 return 0; 6304} 6305_ACEOF 6306if ac_fn_c_try_link "$LINENO" 6307then : 6308 eval $cacheid=yes 6309else case e in #( 6310 e) eval $cacheid=no ;; 6311esac 6312fi 6313rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6314 conftest$ac_exeext conftest.$ac_ext ;; 6315esac 6316fi 6317 6318 6319 CFLAGS="$xorg_testset_save_CFLAGS" 6320 6321 eval supported=\$$cacheid 6322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6323printf "%s\n" "$supported" >&6; } 6324 if test "$supported" = "yes" ; then 6325 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6326 found="yes" 6327 fi 6328 fi 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344xorg_testset_save_CFLAGS="$CFLAGS" 6345 6346if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6347 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6349printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6350if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6351then : 6352 printf %s "(cached) " >&6 6353else case e in #( 6354 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6355/* end confdefs.h. */ 6356int i; 6357_ACEOF 6358if ac_fn_c_try_compile "$LINENO" 6359then : 6360 xorg_cv_cc_flag_unknown_warning_option=yes 6361else case e in #( 6362 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6363esac 6364fi 6365rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6366esac 6367fi 6368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6369printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6370 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6371 CFLAGS="$xorg_testset_save_CFLAGS" 6372fi 6373 6374if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6376 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6377 fi 6378 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6380printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6381if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6382then : 6383 printf %s "(cached) " >&6 6384else case e in #( 6385 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6386/* end confdefs.h. */ 6387int i; 6388_ACEOF 6389if ac_fn_c_try_compile "$LINENO" 6390then : 6391 xorg_cv_cc_flag_unused_command_line_argument=yes 6392else case e in #( 6393 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6394esac 6395fi 6396rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6397esac 6398fi 6399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6400printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6401 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6402 CFLAGS="$xorg_testset_save_CFLAGS" 6403fi 6404 6405found="no" 6406 6407 if test $found = "no" ; then 6408 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6409 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6410 fi 6411 6412 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6413 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6414 fi 6415 6416 CFLAGS="$CFLAGS -Wold-style-definition" 6417 6418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6419printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6420 cacheid=xorg_cv_cc_flag__Wold_style_definition 6421 if eval test \${$cacheid+y} 6422then : 6423 printf %s "(cached) " >&6 6424else case e in #( 6425 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6426/* end confdefs.h. */ 6427int i; 6428int 6429main (void) 6430{ 6431 6432 ; 6433 return 0; 6434} 6435_ACEOF 6436if ac_fn_c_try_link "$LINENO" 6437then : 6438 eval $cacheid=yes 6439else case e in #( 6440 e) eval $cacheid=no ;; 6441esac 6442fi 6443rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6444 conftest$ac_exeext conftest.$ac_ext ;; 6445esac 6446fi 6447 6448 6449 CFLAGS="$xorg_testset_save_CFLAGS" 6450 6451 eval supported=\$$cacheid 6452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6453printf "%s\n" "$supported" >&6; } 6454 if test "$supported" = "yes" ; then 6455 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6456 found="yes" 6457 fi 6458 fi 6459 6460 if test $found = "no" ; then 6461 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6462 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6463 fi 6464 6465 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6467 fi 6468 6469 CFLAGS="$CFLAGS -fd" 6470 6471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6472printf %s "checking if $CC supports -fd... " >&6; } 6473 cacheid=xorg_cv_cc_flag__fd 6474 if eval test \${$cacheid+y} 6475then : 6476 printf %s "(cached) " >&6 6477else case e in #( 6478 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6479/* end confdefs.h. */ 6480int i; 6481int 6482main (void) 6483{ 6484 6485 ; 6486 return 0; 6487} 6488_ACEOF 6489if ac_fn_c_try_link "$LINENO" 6490then : 6491 eval $cacheid=yes 6492else case e in #( 6493 e) eval $cacheid=no ;; 6494esac 6495fi 6496rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6497 conftest$ac_exeext conftest.$ac_ext ;; 6498esac 6499fi 6500 6501 6502 CFLAGS="$xorg_testset_save_CFLAGS" 6503 6504 eval supported=\$$cacheid 6505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6506printf "%s\n" "$supported" >&6; } 6507 if test "$supported" = "yes" ; then 6508 BASE_CFLAGS="$BASE_CFLAGS -fd" 6509 found="yes" 6510 fi 6511 fi 6512 6513 6514 6515 6516 6517# This chunk adds additional warnings that could catch undesired effects. 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 -Wunused" 6604 6605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6606printf %s "checking if $CC supports -Wunused... " >&6; } 6607 cacheid=xorg_cv_cc_flag__Wunused 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 -Wunused" 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 -Wuninitialized" 6734 6735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6736printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6737 cacheid=xorg_cv_cc_flag__Wuninitialized 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 -Wuninitialized" 6773 found="yes" 6774 fi 6775 fi 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791xorg_testset_save_CFLAGS="$CFLAGS" 6792 6793if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6794 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6796printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6797if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6798then : 6799 printf %s "(cached) " >&6 6800else case e in #( 6801 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6802/* end confdefs.h. */ 6803int i; 6804_ACEOF 6805if ac_fn_c_try_compile "$LINENO" 6806then : 6807 xorg_cv_cc_flag_unknown_warning_option=yes 6808else case e in #( 6809 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6810esac 6811fi 6812rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6813esac 6814fi 6815{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6816printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6817 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6818 CFLAGS="$xorg_testset_save_CFLAGS" 6819fi 6820 6821if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6822 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6823 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6824 fi 6825 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6827printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6828if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6829then : 6830 printf %s "(cached) " >&6 6831else case e in #( 6832 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6833/* end confdefs.h. */ 6834int i; 6835_ACEOF 6836if ac_fn_c_try_compile "$LINENO" 6837then : 6838 xorg_cv_cc_flag_unused_command_line_argument=yes 6839else case e in #( 6840 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6841esac 6842fi 6843rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6844esac 6845fi 6846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6847printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6848 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6849 CFLAGS="$xorg_testset_save_CFLAGS" 6850fi 6851 6852found="no" 6853 6854 if test $found = "no" ; then 6855 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6856 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6857 fi 6858 6859 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6861 fi 6862 6863 CFLAGS="$CFLAGS -Wshadow" 6864 6865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6866printf %s "checking if $CC supports -Wshadow... " >&6; } 6867 cacheid=xorg_cv_cc_flag__Wshadow 6868 if eval test \${$cacheid+y} 6869then : 6870 printf %s "(cached) " >&6 6871else case e in #( 6872 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6873/* end confdefs.h. */ 6874int i; 6875int 6876main (void) 6877{ 6878 6879 ; 6880 return 0; 6881} 6882_ACEOF 6883if ac_fn_c_try_link "$LINENO" 6884then : 6885 eval $cacheid=yes 6886else case e in #( 6887 e) eval $cacheid=no ;; 6888esac 6889fi 6890rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6891 conftest$ac_exeext conftest.$ac_ext ;; 6892esac 6893fi 6894 6895 6896 CFLAGS="$xorg_testset_save_CFLAGS" 6897 6898 eval supported=\$$cacheid 6899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6900printf "%s\n" "$supported" >&6; } 6901 if test "$supported" = "yes" ; then 6902 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6903 found="yes" 6904 fi 6905 fi 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921xorg_testset_save_CFLAGS="$CFLAGS" 6922 6923if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6924 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6926printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6927if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6928then : 6929 printf %s "(cached) " >&6 6930else case e in #( 6931 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6932/* end confdefs.h. */ 6933int i; 6934_ACEOF 6935if ac_fn_c_try_compile "$LINENO" 6936then : 6937 xorg_cv_cc_flag_unknown_warning_option=yes 6938else case e in #( 6939 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6940esac 6941fi 6942rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6943esac 6944fi 6945{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6946printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6947 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6948 CFLAGS="$xorg_testset_save_CFLAGS" 6949fi 6950 6951if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6952 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6953 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6954 fi 6955 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6957printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6958if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6959then : 6960 printf %s "(cached) " >&6 6961else case e in #( 6962 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6963/* end confdefs.h. */ 6964int i; 6965_ACEOF 6966if ac_fn_c_try_compile "$LINENO" 6967then : 6968 xorg_cv_cc_flag_unused_command_line_argument=yes 6969else case e in #( 6970 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6971esac 6972fi 6973rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6974esac 6975fi 6976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6977printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6978 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6979 CFLAGS="$xorg_testset_save_CFLAGS" 6980fi 6981 6982found="no" 6983 6984 if test $found = "no" ; then 6985 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6986 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6987 fi 6988 6989 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6991 fi 6992 6993 CFLAGS="$CFLAGS -Wmissing-noreturn" 6994 6995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6996printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6997 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6998 if eval test \${$cacheid+y} 6999then : 7000 printf %s "(cached) " >&6 7001else case e in #( 7002 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7003/* end confdefs.h. */ 7004int i; 7005int 7006main (void) 7007{ 7008 7009 ; 7010 return 0; 7011} 7012_ACEOF 7013if ac_fn_c_try_link "$LINENO" 7014then : 7015 eval $cacheid=yes 7016else case e in #( 7017 e) eval $cacheid=no ;; 7018esac 7019fi 7020rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7021 conftest$ac_exeext conftest.$ac_ext ;; 7022esac 7023fi 7024 7025 7026 CFLAGS="$xorg_testset_save_CFLAGS" 7027 7028 eval supported=\$$cacheid 7029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7030printf "%s\n" "$supported" >&6; } 7031 if test "$supported" = "yes" ; then 7032 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 7033 found="yes" 7034 fi 7035 fi 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051xorg_testset_save_CFLAGS="$CFLAGS" 7052 7053if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7054 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7056printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7057if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7058then : 7059 printf %s "(cached) " >&6 7060else case e in #( 7061 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7062/* end confdefs.h. */ 7063int i; 7064_ACEOF 7065if ac_fn_c_try_compile "$LINENO" 7066then : 7067 xorg_cv_cc_flag_unknown_warning_option=yes 7068else case e in #( 7069 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7070esac 7071fi 7072rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7073esac 7074fi 7075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7076printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7077 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7078 CFLAGS="$xorg_testset_save_CFLAGS" 7079fi 7080 7081if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7082 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7083 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7084 fi 7085 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7087printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7088if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7089then : 7090 printf %s "(cached) " >&6 7091else case e in #( 7092 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7093/* end confdefs.h. */ 7094int i; 7095_ACEOF 7096if ac_fn_c_try_compile "$LINENO" 7097then : 7098 xorg_cv_cc_flag_unused_command_line_argument=yes 7099else case e in #( 7100 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7101esac 7102fi 7103rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7104esac 7105fi 7106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7107printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7108 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7109 CFLAGS="$xorg_testset_save_CFLAGS" 7110fi 7111 7112found="no" 7113 7114 if test $found = "no" ; then 7115 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7116 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7117 fi 7118 7119 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7120 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7121 fi 7122 7123 CFLAGS="$CFLAGS -Wmissing-format-attribute" 7124 7125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 7126printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 7127 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 7128 if eval test \${$cacheid+y} 7129then : 7130 printf %s "(cached) " >&6 7131else case e in #( 7132 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7133/* end confdefs.h. */ 7134int i; 7135int 7136main (void) 7137{ 7138 7139 ; 7140 return 0; 7141} 7142_ACEOF 7143if ac_fn_c_try_link "$LINENO" 7144then : 7145 eval $cacheid=yes 7146else case e in #( 7147 e) eval $cacheid=no ;; 7148esac 7149fi 7150rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7151 conftest$ac_exeext conftest.$ac_ext ;; 7152esac 7153fi 7154 7155 7156 CFLAGS="$xorg_testset_save_CFLAGS" 7157 7158 eval supported=\$$cacheid 7159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7160printf "%s\n" "$supported" >&6; } 7161 if test "$supported" = "yes" ; then 7162 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 7163 found="yes" 7164 fi 7165 fi 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181xorg_testset_save_CFLAGS="$CFLAGS" 7182 7183if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7184 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7186printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7187if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7188then : 7189 printf %s "(cached) " >&6 7190else case e in #( 7191 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7192/* end confdefs.h. */ 7193int i; 7194_ACEOF 7195if ac_fn_c_try_compile "$LINENO" 7196then : 7197 xorg_cv_cc_flag_unknown_warning_option=yes 7198else case e in #( 7199 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7200esac 7201fi 7202rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7203esac 7204fi 7205{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7206printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7207 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7208 CFLAGS="$xorg_testset_save_CFLAGS" 7209fi 7210 7211if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7212 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7213 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7214 fi 7215 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7217printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7218if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7219then : 7220 printf %s "(cached) " >&6 7221else case e in #( 7222 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7223/* end confdefs.h. */ 7224int i; 7225_ACEOF 7226if ac_fn_c_try_compile "$LINENO" 7227then : 7228 xorg_cv_cc_flag_unused_command_line_argument=yes 7229else case e in #( 7230 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7231esac 7232fi 7233rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7234esac 7235fi 7236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7237printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7238 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7239 CFLAGS="$xorg_testset_save_CFLAGS" 7240fi 7241 7242found="no" 7243 7244 if test $found = "no" ; then 7245 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7246 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7247 fi 7248 7249 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7251 fi 7252 7253 CFLAGS="$CFLAGS -Wredundant-decls" 7254 7255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7256printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7257 cacheid=xorg_cv_cc_flag__Wredundant_decls 7258 if eval test \${$cacheid+y} 7259then : 7260 printf %s "(cached) " >&6 7261else case e in #( 7262 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7263/* end confdefs.h. */ 7264int i; 7265int 7266main (void) 7267{ 7268 7269 ; 7270 return 0; 7271} 7272_ACEOF 7273if ac_fn_c_try_link "$LINENO" 7274then : 7275 eval $cacheid=yes 7276else case e in #( 7277 e) eval $cacheid=no ;; 7278esac 7279fi 7280rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7281 conftest$ac_exeext conftest.$ac_ext ;; 7282esac 7283fi 7284 7285 7286 CFLAGS="$xorg_testset_save_CFLAGS" 7287 7288 eval supported=\$$cacheid 7289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7290printf "%s\n" "$supported" >&6; } 7291 if test "$supported" = "yes" ; then 7292 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7293 found="yes" 7294 fi 7295 fi 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311xorg_testset_save_CFLAGS="$CFLAGS" 7312 7313if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7314 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7316printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7317if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7318then : 7319 printf %s "(cached) " >&6 7320else case e in #( 7321 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7322/* end confdefs.h. */ 7323int i; 7324_ACEOF 7325if ac_fn_c_try_compile "$LINENO" 7326then : 7327 xorg_cv_cc_flag_unknown_warning_option=yes 7328else case e in #( 7329 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7330esac 7331fi 7332rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7333esac 7334fi 7335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7336printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7337 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7338 CFLAGS="$xorg_testset_save_CFLAGS" 7339fi 7340 7341if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7342 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7343 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7344 fi 7345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7347printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7348if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7349then : 7350 printf %s "(cached) " >&6 7351else case e in #( 7352 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7353/* end confdefs.h. */ 7354int i; 7355_ACEOF 7356if ac_fn_c_try_compile "$LINENO" 7357then : 7358 xorg_cv_cc_flag_unused_command_line_argument=yes 7359else case e in #( 7360 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7361esac 7362fi 7363rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7364esac 7365fi 7366{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7367printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7368 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7369 CFLAGS="$xorg_testset_save_CFLAGS" 7370fi 7371 7372found="no" 7373 7374 if test $found = "no" ; then 7375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7376 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7377 fi 7378 7379 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7381 fi 7382 7383 CFLAGS="$CFLAGS -Wlogical-op" 7384 7385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7386printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7387 cacheid=xorg_cv_cc_flag__Wlogical_op 7388 if eval test \${$cacheid+y} 7389then : 7390 printf %s "(cached) " >&6 7391else case e in #( 7392 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7393/* end confdefs.h. */ 7394int i; 7395int 7396main (void) 7397{ 7398 7399 ; 7400 return 0; 7401} 7402_ACEOF 7403if ac_fn_c_try_link "$LINENO" 7404then : 7405 eval $cacheid=yes 7406else case e in #( 7407 e) eval $cacheid=no ;; 7408esac 7409fi 7410rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7411 conftest$ac_exeext conftest.$ac_ext ;; 7412esac 7413fi 7414 7415 7416 CFLAGS="$xorg_testset_save_CFLAGS" 7417 7418 eval supported=\$$cacheid 7419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7420printf "%s\n" "$supported" >&6; } 7421 if test "$supported" = "yes" ; then 7422 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7423 found="yes" 7424 fi 7425 fi 7426 7427 7428 7429# These are currently disabled because they are noisy. They will be enabled 7430# in the future once the codebase is sufficiently modernized to silence 7431# them. For now, I don't want them to drown out the other warnings. 7432# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7433# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7434# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7435 7436# Turn some warnings into errors, so we don't accidentally get successful builds 7437# when there are problems that should be fixed. 7438 7439if test "x$SELECTIVE_WERROR" = "xyes" ; then 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453xorg_testset_save_CFLAGS="$CFLAGS" 7454 7455if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7456 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7458printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7459if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7460then : 7461 printf %s "(cached) " >&6 7462else case e in #( 7463 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7464/* end confdefs.h. */ 7465int i; 7466_ACEOF 7467if ac_fn_c_try_compile "$LINENO" 7468then : 7469 xorg_cv_cc_flag_unknown_warning_option=yes 7470else case e in #( 7471 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7472esac 7473fi 7474rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7475esac 7476fi 7477{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7478printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7479 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7480 CFLAGS="$xorg_testset_save_CFLAGS" 7481fi 7482 7483if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7484 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7485 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7486 fi 7487 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7489printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7490if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7491then : 7492 printf %s "(cached) " >&6 7493else case e in #( 7494 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7495/* end confdefs.h. */ 7496int i; 7497_ACEOF 7498if ac_fn_c_try_compile "$LINENO" 7499then : 7500 xorg_cv_cc_flag_unused_command_line_argument=yes 7501else case e in #( 7502 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7503esac 7504fi 7505rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7506esac 7507fi 7508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7509printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7510 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7511 CFLAGS="$xorg_testset_save_CFLAGS" 7512fi 7513 7514found="no" 7515 7516 if test $found = "no" ; then 7517 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7518 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7519 fi 7520 7521 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7523 fi 7524 7525 CFLAGS="$CFLAGS -Werror=implicit" 7526 7527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7528printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7529 cacheid=xorg_cv_cc_flag__Werror_implicit 7530 if eval test \${$cacheid+y} 7531then : 7532 printf %s "(cached) " >&6 7533else case e in #( 7534 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7535/* end confdefs.h. */ 7536int i; 7537int 7538main (void) 7539{ 7540 7541 ; 7542 return 0; 7543} 7544_ACEOF 7545if ac_fn_c_try_link "$LINENO" 7546then : 7547 eval $cacheid=yes 7548else case e in #( 7549 e) eval $cacheid=no ;; 7550esac 7551fi 7552rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7553 conftest$ac_exeext conftest.$ac_ext ;; 7554esac 7555fi 7556 7557 7558 CFLAGS="$xorg_testset_save_CFLAGS" 7559 7560 eval supported=\$$cacheid 7561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7562printf "%s\n" "$supported" >&6; } 7563 if test "$supported" = "yes" ; then 7564 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7565 found="yes" 7566 fi 7567 fi 7568 7569 if test $found = "no" ; then 7570 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7571 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7572 fi 7573 7574 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7575 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7576 fi 7577 7578 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7579 7580 { 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 7581printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7582 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7583 if eval test \${$cacheid+y} 7584then : 7585 printf %s "(cached) " >&6 7586else case e in #( 7587 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7588/* end confdefs.h. */ 7589int i; 7590int 7591main (void) 7592{ 7593 7594 ; 7595 return 0; 7596} 7597_ACEOF 7598if ac_fn_c_try_link "$LINENO" 7599then : 7600 eval $cacheid=yes 7601else case e in #( 7602 e) eval $cacheid=no ;; 7603esac 7604fi 7605rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7606 conftest$ac_exeext conftest.$ac_ext ;; 7607esac 7608fi 7609 7610 7611 CFLAGS="$xorg_testset_save_CFLAGS" 7612 7613 eval supported=\$$cacheid 7614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7615printf "%s\n" "$supported" >&6; } 7616 if test "$supported" = "yes" ; then 7617 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7618 found="yes" 7619 fi 7620 fi 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636xorg_testset_save_CFLAGS="$CFLAGS" 7637 7638if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7639 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7641printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7642if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7643then : 7644 printf %s "(cached) " >&6 7645else case e in #( 7646 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7647/* end confdefs.h. */ 7648int i; 7649_ACEOF 7650if ac_fn_c_try_compile "$LINENO" 7651then : 7652 xorg_cv_cc_flag_unknown_warning_option=yes 7653else case e in #( 7654 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7655esac 7656fi 7657rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7658esac 7659fi 7660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7661printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7662 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7663 CFLAGS="$xorg_testset_save_CFLAGS" 7664fi 7665 7666if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7667 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7668 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7669 fi 7670 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7672printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7673if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7674then : 7675 printf %s "(cached) " >&6 7676else case e in #( 7677 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7678/* end confdefs.h. */ 7679int i; 7680_ACEOF 7681if ac_fn_c_try_compile "$LINENO" 7682then : 7683 xorg_cv_cc_flag_unused_command_line_argument=yes 7684else case e in #( 7685 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7686esac 7687fi 7688rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7689esac 7690fi 7691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7692printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7693 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7694 CFLAGS="$xorg_testset_save_CFLAGS" 7695fi 7696 7697found="no" 7698 7699 if test $found = "no" ; then 7700 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7701 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7702 fi 7703 7704 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7705 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7706 fi 7707 7708 CFLAGS="$CFLAGS -Werror=nonnull" 7709 7710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7711printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7712 cacheid=xorg_cv_cc_flag__Werror_nonnull 7713 if eval test \${$cacheid+y} 7714then : 7715 printf %s "(cached) " >&6 7716else case e in #( 7717 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7718/* end confdefs.h. */ 7719int i; 7720int 7721main (void) 7722{ 7723 7724 ; 7725 return 0; 7726} 7727_ACEOF 7728if ac_fn_c_try_link "$LINENO" 7729then : 7730 eval $cacheid=yes 7731else case e in #( 7732 e) eval $cacheid=no ;; 7733esac 7734fi 7735rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7736 conftest$ac_exeext conftest.$ac_ext ;; 7737esac 7738fi 7739 7740 7741 CFLAGS="$xorg_testset_save_CFLAGS" 7742 7743 eval supported=\$$cacheid 7744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7745printf "%s\n" "$supported" >&6; } 7746 if test "$supported" = "yes" ; then 7747 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7748 found="yes" 7749 fi 7750 fi 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766xorg_testset_save_CFLAGS="$CFLAGS" 7767 7768if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7769 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7771printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7772if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7773then : 7774 printf %s "(cached) " >&6 7775else case e in #( 7776 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7777/* end confdefs.h. */ 7778int i; 7779_ACEOF 7780if ac_fn_c_try_compile "$LINENO" 7781then : 7782 xorg_cv_cc_flag_unknown_warning_option=yes 7783else case e in #( 7784 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7785esac 7786fi 7787rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7788esac 7789fi 7790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7791printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7792 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7793 CFLAGS="$xorg_testset_save_CFLAGS" 7794fi 7795 7796if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7797 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7798 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7799 fi 7800 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7802printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7803if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7804then : 7805 printf %s "(cached) " >&6 7806else case e in #( 7807 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7808/* end confdefs.h. */ 7809int i; 7810_ACEOF 7811if ac_fn_c_try_compile "$LINENO" 7812then : 7813 xorg_cv_cc_flag_unused_command_line_argument=yes 7814else case e in #( 7815 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7816esac 7817fi 7818rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7819esac 7820fi 7821{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7822printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7823 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7824 CFLAGS="$xorg_testset_save_CFLAGS" 7825fi 7826 7827found="no" 7828 7829 if test $found = "no" ; then 7830 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7831 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7832 fi 7833 7834 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7835 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7836 fi 7837 7838 CFLAGS="$CFLAGS -Werror=init-self" 7839 7840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7841printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7842 cacheid=xorg_cv_cc_flag__Werror_init_self 7843 if eval test \${$cacheid+y} 7844then : 7845 printf %s "(cached) " >&6 7846else case e in #( 7847 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7848/* end confdefs.h. */ 7849int i; 7850int 7851main (void) 7852{ 7853 7854 ; 7855 return 0; 7856} 7857_ACEOF 7858if ac_fn_c_try_link "$LINENO" 7859then : 7860 eval $cacheid=yes 7861else case e in #( 7862 e) eval $cacheid=no ;; 7863esac 7864fi 7865rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7866 conftest$ac_exeext conftest.$ac_ext ;; 7867esac 7868fi 7869 7870 7871 CFLAGS="$xorg_testset_save_CFLAGS" 7872 7873 eval supported=\$$cacheid 7874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7875printf "%s\n" "$supported" >&6; } 7876 if test "$supported" = "yes" ; then 7877 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7878 found="yes" 7879 fi 7880 fi 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896xorg_testset_save_CFLAGS="$CFLAGS" 7897 7898if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7899 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7901printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7902if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7903then : 7904 printf %s "(cached) " >&6 7905else case e in #( 7906 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7907/* end confdefs.h. */ 7908int i; 7909_ACEOF 7910if ac_fn_c_try_compile "$LINENO" 7911then : 7912 xorg_cv_cc_flag_unknown_warning_option=yes 7913else case e in #( 7914 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7915esac 7916fi 7917rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7918esac 7919fi 7920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7921printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7922 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7923 CFLAGS="$xorg_testset_save_CFLAGS" 7924fi 7925 7926if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7927 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7928 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7929 fi 7930 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7932printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7933if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7934then : 7935 printf %s "(cached) " >&6 7936else case e in #( 7937 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7938/* end confdefs.h. */ 7939int i; 7940_ACEOF 7941if ac_fn_c_try_compile "$LINENO" 7942then : 7943 xorg_cv_cc_flag_unused_command_line_argument=yes 7944else case e in #( 7945 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7946esac 7947fi 7948rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7949esac 7950fi 7951{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7952printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7953 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7954 CFLAGS="$xorg_testset_save_CFLAGS" 7955fi 7956 7957found="no" 7958 7959 if test $found = "no" ; then 7960 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7961 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7962 fi 7963 7964 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7965 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7966 fi 7967 7968 CFLAGS="$CFLAGS -Werror=main" 7969 7970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7971printf %s "checking if $CC supports -Werror=main... " >&6; } 7972 cacheid=xorg_cv_cc_flag__Werror_main 7973 if eval test \${$cacheid+y} 7974then : 7975 printf %s "(cached) " >&6 7976else case e in #( 7977 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7978/* end confdefs.h. */ 7979int i; 7980int 7981main (void) 7982{ 7983 7984 ; 7985 return 0; 7986} 7987_ACEOF 7988if ac_fn_c_try_link "$LINENO" 7989then : 7990 eval $cacheid=yes 7991else case e in #( 7992 e) eval $cacheid=no ;; 7993esac 7994fi 7995rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7996 conftest$ac_exeext conftest.$ac_ext ;; 7997esac 7998fi 7999 8000 8001 CFLAGS="$xorg_testset_save_CFLAGS" 8002 8003 eval supported=\$$cacheid 8004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8005printf "%s\n" "$supported" >&6; } 8006 if test "$supported" = "yes" ; then 8007 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 8008 found="yes" 8009 fi 8010 fi 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026xorg_testset_save_CFLAGS="$CFLAGS" 8027 8028if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8029 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8031printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8032if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8033then : 8034 printf %s "(cached) " >&6 8035else case e in #( 8036 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8037/* end confdefs.h. */ 8038int i; 8039_ACEOF 8040if ac_fn_c_try_compile "$LINENO" 8041then : 8042 xorg_cv_cc_flag_unknown_warning_option=yes 8043else case e in #( 8044 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8045esac 8046fi 8047rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8048esac 8049fi 8050{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8051printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8052 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8053 CFLAGS="$xorg_testset_save_CFLAGS" 8054fi 8055 8056if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8057 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8058 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8059 fi 8060 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8062printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8063if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8064then : 8065 printf %s "(cached) " >&6 8066else case e in #( 8067 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8068/* end confdefs.h. */ 8069int i; 8070_ACEOF 8071if ac_fn_c_try_compile "$LINENO" 8072then : 8073 xorg_cv_cc_flag_unused_command_line_argument=yes 8074else case e in #( 8075 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8076esac 8077fi 8078rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8079esac 8080fi 8081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8082printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8083 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8084 CFLAGS="$xorg_testset_save_CFLAGS" 8085fi 8086 8087found="no" 8088 8089 if test $found = "no" ; then 8090 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8091 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8092 fi 8093 8094 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8095 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8096 fi 8097 8098 CFLAGS="$CFLAGS -Werror=missing-braces" 8099 8100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 8101printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 8102 cacheid=xorg_cv_cc_flag__Werror_missing_braces 8103 if eval test \${$cacheid+y} 8104then : 8105 printf %s "(cached) " >&6 8106else case e in #( 8107 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8108/* end confdefs.h. */ 8109int i; 8110int 8111main (void) 8112{ 8113 8114 ; 8115 return 0; 8116} 8117_ACEOF 8118if ac_fn_c_try_link "$LINENO" 8119then : 8120 eval $cacheid=yes 8121else case e in #( 8122 e) eval $cacheid=no ;; 8123esac 8124fi 8125rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8126 conftest$ac_exeext conftest.$ac_ext ;; 8127esac 8128fi 8129 8130 8131 CFLAGS="$xorg_testset_save_CFLAGS" 8132 8133 eval supported=\$$cacheid 8134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8135printf "%s\n" "$supported" >&6; } 8136 if test "$supported" = "yes" ; then 8137 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 8138 found="yes" 8139 fi 8140 fi 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156xorg_testset_save_CFLAGS="$CFLAGS" 8157 8158if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8159 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8161printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8162if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8163then : 8164 printf %s "(cached) " >&6 8165else case e in #( 8166 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8167/* end confdefs.h. */ 8168int i; 8169_ACEOF 8170if ac_fn_c_try_compile "$LINENO" 8171then : 8172 xorg_cv_cc_flag_unknown_warning_option=yes 8173else case e in #( 8174 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8175esac 8176fi 8177rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8178esac 8179fi 8180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8181printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8182 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8183 CFLAGS="$xorg_testset_save_CFLAGS" 8184fi 8185 8186if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8187 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8188 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8189 fi 8190 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8192printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8193if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8194then : 8195 printf %s "(cached) " >&6 8196else case e in #( 8197 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8198/* end confdefs.h. */ 8199int i; 8200_ACEOF 8201if ac_fn_c_try_compile "$LINENO" 8202then : 8203 xorg_cv_cc_flag_unused_command_line_argument=yes 8204else case e in #( 8205 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8206esac 8207fi 8208rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8209esac 8210fi 8211{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8212printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8213 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8214 CFLAGS="$xorg_testset_save_CFLAGS" 8215fi 8216 8217found="no" 8218 8219 if test $found = "no" ; then 8220 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8221 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8222 fi 8223 8224 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8225 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8226 fi 8227 8228 CFLAGS="$CFLAGS -Werror=sequence-point" 8229 8230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8231printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 8232 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8233 if eval test \${$cacheid+y} 8234then : 8235 printf %s "(cached) " >&6 8236else case e in #( 8237 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8238/* end confdefs.h. */ 8239int i; 8240int 8241main (void) 8242{ 8243 8244 ; 8245 return 0; 8246} 8247_ACEOF 8248if ac_fn_c_try_link "$LINENO" 8249then : 8250 eval $cacheid=yes 8251else case e in #( 8252 e) eval $cacheid=no ;; 8253esac 8254fi 8255rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8256 conftest$ac_exeext conftest.$ac_ext ;; 8257esac 8258fi 8259 8260 8261 CFLAGS="$xorg_testset_save_CFLAGS" 8262 8263 eval supported=\$$cacheid 8264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8265printf "%s\n" "$supported" >&6; } 8266 if test "$supported" = "yes" ; then 8267 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8268 found="yes" 8269 fi 8270 fi 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286xorg_testset_save_CFLAGS="$CFLAGS" 8287 8288if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8289 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8291printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8292if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8293then : 8294 printf %s "(cached) " >&6 8295else case e in #( 8296 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8297/* end confdefs.h. */ 8298int i; 8299_ACEOF 8300if ac_fn_c_try_compile "$LINENO" 8301then : 8302 xorg_cv_cc_flag_unknown_warning_option=yes 8303else case e in #( 8304 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8305esac 8306fi 8307rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8308esac 8309fi 8310{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8311printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8312 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8313 CFLAGS="$xorg_testset_save_CFLAGS" 8314fi 8315 8316if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8317 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8318 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8319 fi 8320 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8322printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8323if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8324then : 8325 printf %s "(cached) " >&6 8326else case e in #( 8327 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8328/* end confdefs.h. */ 8329int i; 8330_ACEOF 8331if ac_fn_c_try_compile "$LINENO" 8332then : 8333 xorg_cv_cc_flag_unused_command_line_argument=yes 8334else case e in #( 8335 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8336esac 8337fi 8338rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8339esac 8340fi 8341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8342printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8343 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8344 CFLAGS="$xorg_testset_save_CFLAGS" 8345fi 8346 8347found="no" 8348 8349 if test $found = "no" ; then 8350 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8351 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8352 fi 8353 8354 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8355 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8356 fi 8357 8358 CFLAGS="$CFLAGS -Werror=return-type" 8359 8360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8361printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8362 cacheid=xorg_cv_cc_flag__Werror_return_type 8363 if eval test \${$cacheid+y} 8364then : 8365 printf %s "(cached) " >&6 8366else case e in #( 8367 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8368/* end confdefs.h. */ 8369int i; 8370int 8371main (void) 8372{ 8373 8374 ; 8375 return 0; 8376} 8377_ACEOF 8378if ac_fn_c_try_link "$LINENO" 8379then : 8380 eval $cacheid=yes 8381else case e in #( 8382 e) eval $cacheid=no ;; 8383esac 8384fi 8385rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8386 conftest$ac_exeext conftest.$ac_ext ;; 8387esac 8388fi 8389 8390 8391 CFLAGS="$xorg_testset_save_CFLAGS" 8392 8393 eval supported=\$$cacheid 8394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8395printf "%s\n" "$supported" >&6; } 8396 if test "$supported" = "yes" ; then 8397 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8398 found="yes" 8399 fi 8400 fi 8401 8402 if test $found = "no" ; then 8403 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8404 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8405 fi 8406 8407 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8408 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8409 fi 8410 8411 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8412 8413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8414printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8415 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8416 if eval test \${$cacheid+y} 8417then : 8418 printf %s "(cached) " >&6 8419else case e in #( 8420 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8421/* end confdefs.h. */ 8422int i; 8423int 8424main (void) 8425{ 8426 8427 ; 8428 return 0; 8429} 8430_ACEOF 8431if ac_fn_c_try_link "$LINENO" 8432then : 8433 eval $cacheid=yes 8434else case e in #( 8435 e) eval $cacheid=no ;; 8436esac 8437fi 8438rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8439 conftest$ac_exeext conftest.$ac_ext ;; 8440esac 8441fi 8442 8443 8444 CFLAGS="$xorg_testset_save_CFLAGS" 8445 8446 eval supported=\$$cacheid 8447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8448printf "%s\n" "$supported" >&6; } 8449 if test "$supported" = "yes" ; then 8450 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8451 found="yes" 8452 fi 8453 fi 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469xorg_testset_save_CFLAGS="$CFLAGS" 8470 8471if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8472 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8474printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8475if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8476then : 8477 printf %s "(cached) " >&6 8478else case e in #( 8479 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8480/* end confdefs.h. */ 8481int i; 8482_ACEOF 8483if ac_fn_c_try_compile "$LINENO" 8484then : 8485 xorg_cv_cc_flag_unknown_warning_option=yes 8486else case e in #( 8487 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8488esac 8489fi 8490rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8491esac 8492fi 8493{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8494printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8495 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8496 CFLAGS="$xorg_testset_save_CFLAGS" 8497fi 8498 8499if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8500 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8501 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8502 fi 8503 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8505printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8506if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8507then : 8508 printf %s "(cached) " >&6 8509else case e in #( 8510 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8511/* end confdefs.h. */ 8512int i; 8513_ACEOF 8514if ac_fn_c_try_compile "$LINENO" 8515then : 8516 xorg_cv_cc_flag_unused_command_line_argument=yes 8517else case e in #( 8518 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8519esac 8520fi 8521rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8522esac 8523fi 8524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8525printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8526 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8527 CFLAGS="$xorg_testset_save_CFLAGS" 8528fi 8529 8530found="no" 8531 8532 if test $found = "no" ; then 8533 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8534 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8535 fi 8536 8537 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8538 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8539 fi 8540 8541 CFLAGS="$CFLAGS -Werror=trigraphs" 8542 8543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8544printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8545 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8546 if eval test \${$cacheid+y} 8547then : 8548 printf %s "(cached) " >&6 8549else case e in #( 8550 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8551/* end confdefs.h. */ 8552int i; 8553int 8554main (void) 8555{ 8556 8557 ; 8558 return 0; 8559} 8560_ACEOF 8561if ac_fn_c_try_link "$LINENO" 8562then : 8563 eval $cacheid=yes 8564else case e in #( 8565 e) eval $cacheid=no ;; 8566esac 8567fi 8568rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8569 conftest$ac_exeext conftest.$ac_ext ;; 8570esac 8571fi 8572 8573 8574 CFLAGS="$xorg_testset_save_CFLAGS" 8575 8576 eval supported=\$$cacheid 8577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8578printf "%s\n" "$supported" >&6; } 8579 if test "$supported" = "yes" ; then 8580 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8581 found="yes" 8582 fi 8583 fi 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599xorg_testset_save_CFLAGS="$CFLAGS" 8600 8601if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8602 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8604printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8605if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8606then : 8607 printf %s "(cached) " >&6 8608else case e in #( 8609 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8610/* end confdefs.h. */ 8611int i; 8612_ACEOF 8613if ac_fn_c_try_compile "$LINENO" 8614then : 8615 xorg_cv_cc_flag_unknown_warning_option=yes 8616else case e in #( 8617 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8618esac 8619fi 8620rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8621esac 8622fi 8623{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8624printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8625 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8626 CFLAGS="$xorg_testset_save_CFLAGS" 8627fi 8628 8629if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8630 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8631 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8632 fi 8633 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8635printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8636if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8637then : 8638 printf %s "(cached) " >&6 8639else case e in #( 8640 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8641/* end confdefs.h. */ 8642int i; 8643_ACEOF 8644if ac_fn_c_try_compile "$LINENO" 8645then : 8646 xorg_cv_cc_flag_unused_command_line_argument=yes 8647else case e in #( 8648 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8649esac 8650fi 8651rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8652esac 8653fi 8654{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8655printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8656 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8657 CFLAGS="$xorg_testset_save_CFLAGS" 8658fi 8659 8660found="no" 8661 8662 if test $found = "no" ; then 8663 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8664 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8665 fi 8666 8667 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8668 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8669 fi 8670 8671 CFLAGS="$CFLAGS -Werror=array-bounds" 8672 8673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8674printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8675 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8676 if eval test \${$cacheid+y} 8677then : 8678 printf %s "(cached) " >&6 8679else case e in #( 8680 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8681/* end confdefs.h. */ 8682int i; 8683int 8684main (void) 8685{ 8686 8687 ; 8688 return 0; 8689} 8690_ACEOF 8691if ac_fn_c_try_link "$LINENO" 8692then : 8693 eval $cacheid=yes 8694else case e in #( 8695 e) eval $cacheid=no ;; 8696esac 8697fi 8698rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8699 conftest$ac_exeext conftest.$ac_ext ;; 8700esac 8701fi 8702 8703 8704 CFLAGS="$xorg_testset_save_CFLAGS" 8705 8706 eval supported=\$$cacheid 8707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8708printf "%s\n" "$supported" >&6; } 8709 if test "$supported" = "yes" ; then 8710 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8711 found="yes" 8712 fi 8713 fi 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729xorg_testset_save_CFLAGS="$CFLAGS" 8730 8731if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8732 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8734printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8735if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8736then : 8737 printf %s "(cached) " >&6 8738else case e in #( 8739 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8740/* end confdefs.h. */ 8741int i; 8742_ACEOF 8743if ac_fn_c_try_compile "$LINENO" 8744then : 8745 xorg_cv_cc_flag_unknown_warning_option=yes 8746else case e in #( 8747 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8748esac 8749fi 8750rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8751esac 8752fi 8753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8754printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8755 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8756 CFLAGS="$xorg_testset_save_CFLAGS" 8757fi 8758 8759if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8760 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8761 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8762 fi 8763 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8765printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8766if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8767then : 8768 printf %s "(cached) " >&6 8769else case e in #( 8770 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8771/* end confdefs.h. */ 8772int i; 8773_ACEOF 8774if ac_fn_c_try_compile "$LINENO" 8775then : 8776 xorg_cv_cc_flag_unused_command_line_argument=yes 8777else case e in #( 8778 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8779esac 8780fi 8781rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8782esac 8783fi 8784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8785printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8786 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8787 CFLAGS="$xorg_testset_save_CFLAGS" 8788fi 8789 8790found="no" 8791 8792 if test $found = "no" ; then 8793 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8794 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8795 fi 8796 8797 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8798 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8799 fi 8800 8801 CFLAGS="$CFLAGS -Werror=write-strings" 8802 8803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8804printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8805 cacheid=xorg_cv_cc_flag__Werror_write_strings 8806 if eval test \${$cacheid+y} 8807then : 8808 printf %s "(cached) " >&6 8809else case e in #( 8810 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8811/* end confdefs.h. */ 8812int i; 8813int 8814main (void) 8815{ 8816 8817 ; 8818 return 0; 8819} 8820_ACEOF 8821if ac_fn_c_try_link "$LINENO" 8822then : 8823 eval $cacheid=yes 8824else case e in #( 8825 e) eval $cacheid=no ;; 8826esac 8827fi 8828rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8829 conftest$ac_exeext conftest.$ac_ext ;; 8830esac 8831fi 8832 8833 8834 CFLAGS="$xorg_testset_save_CFLAGS" 8835 8836 eval supported=\$$cacheid 8837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8838printf "%s\n" "$supported" >&6; } 8839 if test "$supported" = "yes" ; then 8840 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8841 found="yes" 8842 fi 8843 fi 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859xorg_testset_save_CFLAGS="$CFLAGS" 8860 8861if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8862 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8864printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8865if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8866then : 8867 printf %s "(cached) " >&6 8868else case e in #( 8869 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8870/* end confdefs.h. */ 8871int i; 8872_ACEOF 8873if ac_fn_c_try_compile "$LINENO" 8874then : 8875 xorg_cv_cc_flag_unknown_warning_option=yes 8876else case e in #( 8877 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8878esac 8879fi 8880rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8881esac 8882fi 8883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8884printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8885 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8886 CFLAGS="$xorg_testset_save_CFLAGS" 8887fi 8888 8889if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8890 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8891 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8892 fi 8893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8895printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8896if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8897then : 8898 printf %s "(cached) " >&6 8899else case e in #( 8900 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8901/* end confdefs.h. */ 8902int i; 8903_ACEOF 8904if ac_fn_c_try_compile "$LINENO" 8905then : 8906 xorg_cv_cc_flag_unused_command_line_argument=yes 8907else case e in #( 8908 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8909esac 8910fi 8911rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8912esac 8913fi 8914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8915printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8916 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8917 CFLAGS="$xorg_testset_save_CFLAGS" 8918fi 8919 8920found="no" 8921 8922 if test $found = "no" ; then 8923 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8924 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8925 fi 8926 8927 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8928 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8929 fi 8930 8931 CFLAGS="$CFLAGS -Werror=address" 8932 8933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8934printf %s "checking if $CC supports -Werror=address... " >&6; } 8935 cacheid=xorg_cv_cc_flag__Werror_address 8936 if eval test \${$cacheid+y} 8937then : 8938 printf %s "(cached) " >&6 8939else case e in #( 8940 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8941/* end confdefs.h. */ 8942int i; 8943int 8944main (void) 8945{ 8946 8947 ; 8948 return 0; 8949} 8950_ACEOF 8951if ac_fn_c_try_link "$LINENO" 8952then : 8953 eval $cacheid=yes 8954else case e in #( 8955 e) eval $cacheid=no ;; 8956esac 8957fi 8958rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8959 conftest$ac_exeext conftest.$ac_ext ;; 8960esac 8961fi 8962 8963 8964 CFLAGS="$xorg_testset_save_CFLAGS" 8965 8966 eval supported=\$$cacheid 8967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8968printf "%s\n" "$supported" >&6; } 8969 if test "$supported" = "yes" ; then 8970 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8971 found="yes" 8972 fi 8973 fi 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989xorg_testset_save_CFLAGS="$CFLAGS" 8990 8991if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8992 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8994printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8995if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8996then : 8997 printf %s "(cached) " >&6 8998else case e in #( 8999 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9000/* end confdefs.h. */ 9001int i; 9002_ACEOF 9003if ac_fn_c_try_compile "$LINENO" 9004then : 9005 xorg_cv_cc_flag_unknown_warning_option=yes 9006else case e in #( 9007 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9008esac 9009fi 9010rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9011esac 9012fi 9013{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9014printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9015 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9016 CFLAGS="$xorg_testset_save_CFLAGS" 9017fi 9018 9019if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9020 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9021 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9022 fi 9023 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9025printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9026if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9027then : 9028 printf %s "(cached) " >&6 9029else case e in #( 9030 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9031/* end confdefs.h. */ 9032int i; 9033_ACEOF 9034if ac_fn_c_try_compile "$LINENO" 9035then : 9036 xorg_cv_cc_flag_unused_command_line_argument=yes 9037else case e in #( 9038 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9039esac 9040fi 9041rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9042esac 9043fi 9044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9045printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9046 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9047 CFLAGS="$xorg_testset_save_CFLAGS" 9048fi 9049 9050found="no" 9051 9052 if test $found = "no" ; then 9053 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9054 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9055 fi 9056 9057 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9058 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9059 fi 9060 9061 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 9062 9063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 9064printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 9065 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 9066 if eval test \${$cacheid+y} 9067then : 9068 printf %s "(cached) " >&6 9069else case e in #( 9070 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9071/* end confdefs.h. */ 9072int i; 9073int 9074main (void) 9075{ 9076 9077 ; 9078 return 0; 9079} 9080_ACEOF 9081if ac_fn_c_try_link "$LINENO" 9082then : 9083 eval $cacheid=yes 9084else case e in #( 9085 e) eval $cacheid=no ;; 9086esac 9087fi 9088rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9089 conftest$ac_exeext conftest.$ac_ext ;; 9090esac 9091fi 9092 9093 9094 CFLAGS="$xorg_testset_save_CFLAGS" 9095 9096 eval supported=\$$cacheid 9097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9098printf "%s\n" "$supported" >&6; } 9099 if test "$supported" = "yes" ; then 9100 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 9101 found="yes" 9102 fi 9103 fi 9104 9105 if test $found = "no" ; then 9106 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9107 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9108 fi 9109 9110 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9111 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9112 fi 9113 9114 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9115 9116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 9117printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 9118 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 9119 if eval test \${$cacheid+y} 9120then : 9121 printf %s "(cached) " >&6 9122else case e in #( 9123 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9124/* end confdefs.h. */ 9125int i; 9126int 9127main (void) 9128{ 9129 9130 ; 9131 return 0; 9132} 9133_ACEOF 9134if ac_fn_c_try_link "$LINENO" 9135then : 9136 eval $cacheid=yes 9137else case e in #( 9138 e) eval $cacheid=no ;; 9139esac 9140fi 9141rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9142 conftest$ac_exeext conftest.$ac_ext ;; 9143esac 9144fi 9145 9146 9147 CFLAGS="$xorg_testset_save_CFLAGS" 9148 9149 eval supported=\$$cacheid 9150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9151printf "%s\n" "$supported" >&6; } 9152 if test "$supported" = "yes" ; then 9153 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9154 found="yes" 9155 fi 9156 fi 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172xorg_testset_save_CFLAGS="$CFLAGS" 9173 9174if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9175 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9177printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9178if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9179then : 9180 printf %s "(cached) " >&6 9181else case e in #( 9182 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9183/* end confdefs.h. */ 9184int i; 9185_ACEOF 9186if ac_fn_c_try_compile "$LINENO" 9187then : 9188 xorg_cv_cc_flag_unknown_warning_option=yes 9189else case e in #( 9190 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9191esac 9192fi 9193rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9194esac 9195fi 9196{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9197printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9198 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9199 CFLAGS="$xorg_testset_save_CFLAGS" 9200fi 9201 9202if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9203 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9204 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9205 fi 9206 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9208printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9209if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9210then : 9211 printf %s "(cached) " >&6 9212else case e in #( 9213 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9214/* end confdefs.h. */ 9215int i; 9216_ACEOF 9217if ac_fn_c_try_compile "$LINENO" 9218then : 9219 xorg_cv_cc_flag_unused_command_line_argument=yes 9220else case e in #( 9221 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9222esac 9223fi 9224rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9225esac 9226fi 9227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9228printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9229 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9230 CFLAGS="$xorg_testset_save_CFLAGS" 9231fi 9232 9233found="no" 9234 9235 if test $found = "no" ; then 9236 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9237 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9238 fi 9239 9240 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9242 fi 9243 9244 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 9245 9246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 9247printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 9248 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 9249 if eval test \${$cacheid+y} 9250then : 9251 printf %s "(cached) " >&6 9252else case e in #( 9253 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9254/* end confdefs.h. */ 9255int i; 9256int 9257main (void) 9258{ 9259 9260 ; 9261 return 0; 9262} 9263_ACEOF 9264if ac_fn_c_try_link "$LINENO" 9265then : 9266 eval $cacheid=yes 9267else case e in #( 9268 e) eval $cacheid=no ;; 9269esac 9270fi 9271rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9272 conftest$ac_exeext conftest.$ac_ext ;; 9273esac 9274fi 9275 9276 9277 CFLAGS="$xorg_testset_save_CFLAGS" 9278 9279 eval supported=\$$cacheid 9280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9281printf "%s\n" "$supported" >&6; } 9282 if test "$supported" = "yes" ; then 9283 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 9284 found="yes" 9285 fi 9286 fi 9287 9288 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 9289else 9290{ 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 9291printf "%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;} 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305xorg_testset_save_CFLAGS="$CFLAGS" 9306 9307if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9308 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9310printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9311if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9312then : 9313 printf %s "(cached) " >&6 9314else case e in #( 9315 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9316/* end confdefs.h. */ 9317int i; 9318_ACEOF 9319if ac_fn_c_try_compile "$LINENO" 9320then : 9321 xorg_cv_cc_flag_unknown_warning_option=yes 9322else case e in #( 9323 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9324esac 9325fi 9326rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9327esac 9328fi 9329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9330printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9331 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9332 CFLAGS="$xorg_testset_save_CFLAGS" 9333fi 9334 9335if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9336 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9337 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9338 fi 9339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9341printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9342if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9343then : 9344 printf %s "(cached) " >&6 9345else case e in #( 9346 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9347/* end confdefs.h. */ 9348int i; 9349_ACEOF 9350if ac_fn_c_try_compile "$LINENO" 9351then : 9352 xorg_cv_cc_flag_unused_command_line_argument=yes 9353else case e in #( 9354 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9355esac 9356fi 9357rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9358esac 9359fi 9360{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9361printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9362 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9363 CFLAGS="$xorg_testset_save_CFLAGS" 9364fi 9365 9366found="no" 9367 9368 if test $found = "no" ; then 9369 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9370 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9371 fi 9372 9373 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9374 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9375 fi 9376 9377 CFLAGS="$CFLAGS -Wimplicit" 9378 9379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9380printf %s "checking if $CC supports -Wimplicit... " >&6; } 9381 cacheid=xorg_cv_cc_flag__Wimplicit 9382 if eval test \${$cacheid+y} 9383then : 9384 printf %s "(cached) " >&6 9385else case e in #( 9386 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9387/* end confdefs.h. */ 9388int i; 9389int 9390main (void) 9391{ 9392 9393 ; 9394 return 0; 9395} 9396_ACEOF 9397if ac_fn_c_try_link "$LINENO" 9398then : 9399 eval $cacheid=yes 9400else case e in #( 9401 e) eval $cacheid=no ;; 9402esac 9403fi 9404rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9405 conftest$ac_exeext conftest.$ac_ext ;; 9406esac 9407fi 9408 9409 9410 CFLAGS="$xorg_testset_save_CFLAGS" 9411 9412 eval supported=\$$cacheid 9413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9414printf "%s\n" "$supported" >&6; } 9415 if test "$supported" = "yes" ; then 9416 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9417 found="yes" 9418 fi 9419 fi 9420 9421 9422 9423 9424 9425 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435xorg_testset_save_CFLAGS="$CFLAGS" 9436 9437if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9438 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9440printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9441if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9442then : 9443 printf %s "(cached) " >&6 9444else case e in #( 9445 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9446/* end confdefs.h. */ 9447int i; 9448_ACEOF 9449if ac_fn_c_try_compile "$LINENO" 9450then : 9451 xorg_cv_cc_flag_unknown_warning_option=yes 9452else case e in #( 9453 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9454esac 9455fi 9456rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9457esac 9458fi 9459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9460printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9461 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9462 CFLAGS="$xorg_testset_save_CFLAGS" 9463fi 9464 9465if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9466 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9467 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9468 fi 9469 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9471printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9472if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9473then : 9474 printf %s "(cached) " >&6 9475else case e in #( 9476 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9477/* end confdefs.h. */ 9478int i; 9479_ACEOF 9480if ac_fn_c_try_compile "$LINENO" 9481then : 9482 xorg_cv_cc_flag_unused_command_line_argument=yes 9483else case e in #( 9484 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9485esac 9486fi 9487rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9488esac 9489fi 9490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9491printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9492 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9493 CFLAGS="$xorg_testset_save_CFLAGS" 9494fi 9495 9496found="no" 9497 9498 if test $found = "no" ; then 9499 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9500 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9501 fi 9502 9503 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9504 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9505 fi 9506 9507 CFLAGS="$CFLAGS -Wnonnull" 9508 9509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9510printf %s "checking if $CC supports -Wnonnull... " >&6; } 9511 cacheid=xorg_cv_cc_flag__Wnonnull 9512 if eval test \${$cacheid+y} 9513then : 9514 printf %s "(cached) " >&6 9515else case e in #( 9516 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9517/* end confdefs.h. */ 9518int i; 9519int 9520main (void) 9521{ 9522 9523 ; 9524 return 0; 9525} 9526_ACEOF 9527if ac_fn_c_try_link "$LINENO" 9528then : 9529 eval $cacheid=yes 9530else case e in #( 9531 e) eval $cacheid=no ;; 9532esac 9533fi 9534rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9535 conftest$ac_exeext conftest.$ac_ext ;; 9536esac 9537fi 9538 9539 9540 CFLAGS="$xorg_testset_save_CFLAGS" 9541 9542 eval supported=\$$cacheid 9543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9544printf "%s\n" "$supported" >&6; } 9545 if test "$supported" = "yes" ; then 9546 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9547 found="yes" 9548 fi 9549 fi 9550 9551 9552 9553 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565xorg_testset_save_CFLAGS="$CFLAGS" 9566 9567if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9568 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9570printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9571if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9572then : 9573 printf %s "(cached) " >&6 9574else case e in #( 9575 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9576/* end confdefs.h. */ 9577int i; 9578_ACEOF 9579if ac_fn_c_try_compile "$LINENO" 9580then : 9581 xorg_cv_cc_flag_unknown_warning_option=yes 9582else case e in #( 9583 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9584esac 9585fi 9586rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9587esac 9588fi 9589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9590printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9591 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9592 CFLAGS="$xorg_testset_save_CFLAGS" 9593fi 9594 9595if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9596 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9597 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9598 fi 9599 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9601printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9602if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9603then : 9604 printf %s "(cached) " >&6 9605else case e in #( 9606 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9607/* end confdefs.h. */ 9608int i; 9609_ACEOF 9610if ac_fn_c_try_compile "$LINENO" 9611then : 9612 xorg_cv_cc_flag_unused_command_line_argument=yes 9613else case e in #( 9614 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9615esac 9616fi 9617rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9618esac 9619fi 9620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9621printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9622 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9623 CFLAGS="$xorg_testset_save_CFLAGS" 9624fi 9625 9626found="no" 9627 9628 if test $found = "no" ; then 9629 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9630 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9631 fi 9632 9633 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9634 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9635 fi 9636 9637 CFLAGS="$CFLAGS -Winit-self" 9638 9639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9640printf %s "checking if $CC supports -Winit-self... " >&6; } 9641 cacheid=xorg_cv_cc_flag__Winit_self 9642 if eval test \${$cacheid+y} 9643then : 9644 printf %s "(cached) " >&6 9645else case e in #( 9646 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9647/* end confdefs.h. */ 9648int i; 9649int 9650main (void) 9651{ 9652 9653 ; 9654 return 0; 9655} 9656_ACEOF 9657if ac_fn_c_try_link "$LINENO" 9658then : 9659 eval $cacheid=yes 9660else case e in #( 9661 e) eval $cacheid=no ;; 9662esac 9663fi 9664rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9665 conftest$ac_exeext conftest.$ac_ext ;; 9666esac 9667fi 9668 9669 9670 CFLAGS="$xorg_testset_save_CFLAGS" 9671 9672 eval supported=\$$cacheid 9673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9674printf "%s\n" "$supported" >&6; } 9675 if test "$supported" = "yes" ; then 9676 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9677 found="yes" 9678 fi 9679 fi 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695xorg_testset_save_CFLAGS="$CFLAGS" 9696 9697if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9698 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9700printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9701if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9702then : 9703 printf %s "(cached) " >&6 9704else case e in #( 9705 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9706/* end confdefs.h. */ 9707int i; 9708_ACEOF 9709if ac_fn_c_try_compile "$LINENO" 9710then : 9711 xorg_cv_cc_flag_unknown_warning_option=yes 9712else case e in #( 9713 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9714esac 9715fi 9716rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9717esac 9718fi 9719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9720printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9721 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9722 CFLAGS="$xorg_testset_save_CFLAGS" 9723fi 9724 9725if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9726 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9727 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9728 fi 9729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9731printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9732if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9733then : 9734 printf %s "(cached) " >&6 9735else case e in #( 9736 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9737/* end confdefs.h. */ 9738int i; 9739_ACEOF 9740if ac_fn_c_try_compile "$LINENO" 9741then : 9742 xorg_cv_cc_flag_unused_command_line_argument=yes 9743else case e in #( 9744 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9745esac 9746fi 9747rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9748esac 9749fi 9750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9751printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9752 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9753 CFLAGS="$xorg_testset_save_CFLAGS" 9754fi 9755 9756found="no" 9757 9758 if test $found = "no" ; then 9759 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9760 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9761 fi 9762 9763 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9764 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9765 fi 9766 9767 CFLAGS="$CFLAGS -Wmain" 9768 9769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9770printf %s "checking if $CC supports -Wmain... " >&6; } 9771 cacheid=xorg_cv_cc_flag__Wmain 9772 if eval test \${$cacheid+y} 9773then : 9774 printf %s "(cached) " >&6 9775else case e in #( 9776 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9777/* end confdefs.h. */ 9778int i; 9779int 9780main (void) 9781{ 9782 9783 ; 9784 return 0; 9785} 9786_ACEOF 9787if ac_fn_c_try_link "$LINENO" 9788then : 9789 eval $cacheid=yes 9790else case e in #( 9791 e) eval $cacheid=no ;; 9792esac 9793fi 9794rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9795 conftest$ac_exeext conftest.$ac_ext ;; 9796esac 9797fi 9798 9799 9800 CFLAGS="$xorg_testset_save_CFLAGS" 9801 9802 eval supported=\$$cacheid 9803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9804printf "%s\n" "$supported" >&6; } 9805 if test "$supported" = "yes" ; then 9806 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9807 found="yes" 9808 fi 9809 fi 9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825xorg_testset_save_CFLAGS="$CFLAGS" 9826 9827if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9828 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9830printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9831if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9832then : 9833 printf %s "(cached) " >&6 9834else case e in #( 9835 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9836/* end confdefs.h. */ 9837int i; 9838_ACEOF 9839if ac_fn_c_try_compile "$LINENO" 9840then : 9841 xorg_cv_cc_flag_unknown_warning_option=yes 9842else case e in #( 9843 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9844esac 9845fi 9846rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9847esac 9848fi 9849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9850printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9851 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9852 CFLAGS="$xorg_testset_save_CFLAGS" 9853fi 9854 9855if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9856 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9857 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9858 fi 9859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9861printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9862if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9863then : 9864 printf %s "(cached) " >&6 9865else case e in #( 9866 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9867/* end confdefs.h. */ 9868int i; 9869_ACEOF 9870if ac_fn_c_try_compile "$LINENO" 9871then : 9872 xorg_cv_cc_flag_unused_command_line_argument=yes 9873else case e in #( 9874 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9875esac 9876fi 9877rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9878esac 9879fi 9880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9881printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9882 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9883 CFLAGS="$xorg_testset_save_CFLAGS" 9884fi 9885 9886found="no" 9887 9888 if test $found = "no" ; then 9889 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9890 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9891 fi 9892 9893 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9894 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9895 fi 9896 9897 CFLAGS="$CFLAGS -Wmissing-braces" 9898 9899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9900printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9901 cacheid=xorg_cv_cc_flag__Wmissing_braces 9902 if eval test \${$cacheid+y} 9903then : 9904 printf %s "(cached) " >&6 9905else case e in #( 9906 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9907/* end confdefs.h. */ 9908int i; 9909int 9910main (void) 9911{ 9912 9913 ; 9914 return 0; 9915} 9916_ACEOF 9917if ac_fn_c_try_link "$LINENO" 9918then : 9919 eval $cacheid=yes 9920else case e in #( 9921 e) eval $cacheid=no ;; 9922esac 9923fi 9924rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9925 conftest$ac_exeext conftest.$ac_ext ;; 9926esac 9927fi 9928 9929 9930 CFLAGS="$xorg_testset_save_CFLAGS" 9931 9932 eval supported=\$$cacheid 9933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9934printf "%s\n" "$supported" >&6; } 9935 if test "$supported" = "yes" ; then 9936 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9937 found="yes" 9938 fi 9939 fi 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955xorg_testset_save_CFLAGS="$CFLAGS" 9956 9957if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9958 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9960printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9961if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9962then : 9963 printf %s "(cached) " >&6 9964else case e in #( 9965 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9966/* end confdefs.h. */ 9967int i; 9968_ACEOF 9969if ac_fn_c_try_compile "$LINENO" 9970then : 9971 xorg_cv_cc_flag_unknown_warning_option=yes 9972else case e in #( 9973 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9974esac 9975fi 9976rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9977esac 9978fi 9979{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9980printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9981 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9982 CFLAGS="$xorg_testset_save_CFLAGS" 9983fi 9984 9985if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9986 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9987 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9988 fi 9989 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9991printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9992if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9993then : 9994 printf %s "(cached) " >&6 9995else case e in #( 9996 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9997/* end confdefs.h. */ 9998int i; 9999_ACEOF 10000if ac_fn_c_try_compile "$LINENO" 10001then : 10002 xorg_cv_cc_flag_unused_command_line_argument=yes 10003else case e in #( 10004 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10005esac 10006fi 10007rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10008esac 10009fi 10010{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10011printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10012 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10013 CFLAGS="$xorg_testset_save_CFLAGS" 10014fi 10015 10016found="no" 10017 10018 if test $found = "no" ; then 10019 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10020 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10021 fi 10022 10023 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10024 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10025 fi 10026 10027 CFLAGS="$CFLAGS -Wsequence-point" 10028 10029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 10030printf %s "checking if $CC supports -Wsequence-point... " >&6; } 10031 cacheid=xorg_cv_cc_flag__Wsequence_point 10032 if eval test \${$cacheid+y} 10033then : 10034 printf %s "(cached) " >&6 10035else case e in #( 10036 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10037/* end confdefs.h. */ 10038int i; 10039int 10040main (void) 10041{ 10042 10043 ; 10044 return 0; 10045} 10046_ACEOF 10047if ac_fn_c_try_link "$LINENO" 10048then : 10049 eval $cacheid=yes 10050else case e in #( 10051 e) eval $cacheid=no ;; 10052esac 10053fi 10054rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10055 conftest$ac_exeext conftest.$ac_ext ;; 10056esac 10057fi 10058 10059 10060 CFLAGS="$xorg_testset_save_CFLAGS" 10061 10062 eval supported=\$$cacheid 10063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10064printf "%s\n" "$supported" >&6; } 10065 if test "$supported" = "yes" ; then 10066 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 10067 found="yes" 10068 fi 10069 fi 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085xorg_testset_save_CFLAGS="$CFLAGS" 10086 10087if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10088 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10090printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10091if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10092then : 10093 printf %s "(cached) " >&6 10094else case e in #( 10095 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10096/* end confdefs.h. */ 10097int i; 10098_ACEOF 10099if ac_fn_c_try_compile "$LINENO" 10100then : 10101 xorg_cv_cc_flag_unknown_warning_option=yes 10102else case e in #( 10103 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10104esac 10105fi 10106rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10107esac 10108fi 10109{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10110printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10111 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10112 CFLAGS="$xorg_testset_save_CFLAGS" 10113fi 10114 10115if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10116 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10117 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10118 fi 10119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10121printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10122if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10123then : 10124 printf %s "(cached) " >&6 10125else case e in #( 10126 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10127/* end confdefs.h. */ 10128int i; 10129_ACEOF 10130if ac_fn_c_try_compile "$LINENO" 10131then : 10132 xorg_cv_cc_flag_unused_command_line_argument=yes 10133else case e in #( 10134 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10135esac 10136fi 10137rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10138esac 10139fi 10140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10141printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10142 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10143 CFLAGS="$xorg_testset_save_CFLAGS" 10144fi 10145 10146found="no" 10147 10148 if test $found = "no" ; then 10149 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10150 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10151 fi 10152 10153 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10154 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10155 fi 10156 10157 CFLAGS="$CFLAGS -Wreturn-type" 10158 10159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 10160printf %s "checking if $CC supports -Wreturn-type... " >&6; } 10161 cacheid=xorg_cv_cc_flag__Wreturn_type 10162 if eval test \${$cacheid+y} 10163then : 10164 printf %s "(cached) " >&6 10165else case e in #( 10166 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10167/* end confdefs.h. */ 10168int i; 10169int 10170main (void) 10171{ 10172 10173 ; 10174 return 0; 10175} 10176_ACEOF 10177if ac_fn_c_try_link "$LINENO" 10178then : 10179 eval $cacheid=yes 10180else case e in #( 10181 e) eval $cacheid=no ;; 10182esac 10183fi 10184rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10185 conftest$ac_exeext conftest.$ac_ext ;; 10186esac 10187fi 10188 10189 10190 CFLAGS="$xorg_testset_save_CFLAGS" 10191 10192 eval supported=\$$cacheid 10193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10194printf "%s\n" "$supported" >&6; } 10195 if test "$supported" = "yes" ; then 10196 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 10197 found="yes" 10198 fi 10199 fi 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215xorg_testset_save_CFLAGS="$CFLAGS" 10216 10217if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10218 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10220printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10221if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10222then : 10223 printf %s "(cached) " >&6 10224else case e in #( 10225 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10226/* end confdefs.h. */ 10227int i; 10228_ACEOF 10229if ac_fn_c_try_compile "$LINENO" 10230then : 10231 xorg_cv_cc_flag_unknown_warning_option=yes 10232else case e in #( 10233 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10234esac 10235fi 10236rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10237esac 10238fi 10239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10240printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10241 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10242 CFLAGS="$xorg_testset_save_CFLAGS" 10243fi 10244 10245if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10246 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10247 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10248 fi 10249 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10251printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10252if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10253then : 10254 printf %s "(cached) " >&6 10255else case e in #( 10256 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10257/* end confdefs.h. */ 10258int i; 10259_ACEOF 10260if ac_fn_c_try_compile "$LINENO" 10261then : 10262 xorg_cv_cc_flag_unused_command_line_argument=yes 10263else case e in #( 10264 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10265esac 10266fi 10267rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10268esac 10269fi 10270{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10271printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10272 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10273 CFLAGS="$xorg_testset_save_CFLAGS" 10274fi 10275 10276found="no" 10277 10278 if test $found = "no" ; then 10279 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10280 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10281 fi 10282 10283 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10284 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10285 fi 10286 10287 CFLAGS="$CFLAGS -Wtrigraphs" 10288 10289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 10290printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 10291 cacheid=xorg_cv_cc_flag__Wtrigraphs 10292 if eval test \${$cacheid+y} 10293then : 10294 printf %s "(cached) " >&6 10295else case e in #( 10296 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10297/* end confdefs.h. */ 10298int i; 10299int 10300main (void) 10301{ 10302 10303 ; 10304 return 0; 10305} 10306_ACEOF 10307if ac_fn_c_try_link "$LINENO" 10308then : 10309 eval $cacheid=yes 10310else case e in #( 10311 e) eval $cacheid=no ;; 10312esac 10313fi 10314rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10315 conftest$ac_exeext conftest.$ac_ext ;; 10316esac 10317fi 10318 10319 10320 CFLAGS="$xorg_testset_save_CFLAGS" 10321 10322 eval supported=\$$cacheid 10323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10324printf "%s\n" "$supported" >&6; } 10325 if test "$supported" = "yes" ; then 10326 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10327 found="yes" 10328 fi 10329 fi 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345xorg_testset_save_CFLAGS="$CFLAGS" 10346 10347if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10348 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10350printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10351if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10352then : 10353 printf %s "(cached) " >&6 10354else case e in #( 10355 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10356/* end confdefs.h. */ 10357int i; 10358_ACEOF 10359if ac_fn_c_try_compile "$LINENO" 10360then : 10361 xorg_cv_cc_flag_unknown_warning_option=yes 10362else case e in #( 10363 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10364esac 10365fi 10366rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10367esac 10368fi 10369{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10370printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10371 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10372 CFLAGS="$xorg_testset_save_CFLAGS" 10373fi 10374 10375if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10376 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10377 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10378 fi 10379 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10381printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10382if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10383then : 10384 printf %s "(cached) " >&6 10385else case e in #( 10386 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10387/* end confdefs.h. */ 10388int i; 10389_ACEOF 10390if ac_fn_c_try_compile "$LINENO" 10391then : 10392 xorg_cv_cc_flag_unused_command_line_argument=yes 10393else case e in #( 10394 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10395esac 10396fi 10397rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10398esac 10399fi 10400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10401printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10402 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10403 CFLAGS="$xorg_testset_save_CFLAGS" 10404fi 10405 10406found="no" 10407 10408 if test $found = "no" ; then 10409 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10410 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10411 fi 10412 10413 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10414 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10415 fi 10416 10417 CFLAGS="$CFLAGS -Warray-bounds" 10418 10419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10420printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10421 cacheid=xorg_cv_cc_flag__Warray_bounds 10422 if eval test \${$cacheid+y} 10423then : 10424 printf %s "(cached) " >&6 10425else case e in #( 10426 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10427/* end confdefs.h. */ 10428int i; 10429int 10430main (void) 10431{ 10432 10433 ; 10434 return 0; 10435} 10436_ACEOF 10437if ac_fn_c_try_link "$LINENO" 10438then : 10439 eval $cacheid=yes 10440else case e in #( 10441 e) eval $cacheid=no ;; 10442esac 10443fi 10444rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10445 conftest$ac_exeext conftest.$ac_ext ;; 10446esac 10447fi 10448 10449 10450 CFLAGS="$xorg_testset_save_CFLAGS" 10451 10452 eval supported=\$$cacheid 10453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10454printf "%s\n" "$supported" >&6; } 10455 if test "$supported" = "yes" ; then 10456 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10457 found="yes" 10458 fi 10459 fi 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475xorg_testset_save_CFLAGS="$CFLAGS" 10476 10477if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10478 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10480printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10481if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10482then : 10483 printf %s "(cached) " >&6 10484else case e in #( 10485 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10486/* end confdefs.h. */ 10487int i; 10488_ACEOF 10489if ac_fn_c_try_compile "$LINENO" 10490then : 10491 xorg_cv_cc_flag_unknown_warning_option=yes 10492else case e in #( 10493 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10494esac 10495fi 10496rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10497esac 10498fi 10499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10500printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10501 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10502 CFLAGS="$xorg_testset_save_CFLAGS" 10503fi 10504 10505if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10506 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10507 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10508 fi 10509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10511printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10512if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10513then : 10514 printf %s "(cached) " >&6 10515else case e in #( 10516 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10517/* end confdefs.h. */ 10518int i; 10519_ACEOF 10520if ac_fn_c_try_compile "$LINENO" 10521then : 10522 xorg_cv_cc_flag_unused_command_line_argument=yes 10523else case e in #( 10524 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10525esac 10526fi 10527rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10528esac 10529fi 10530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10531printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10532 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10533 CFLAGS="$xorg_testset_save_CFLAGS" 10534fi 10535 10536found="no" 10537 10538 if test $found = "no" ; then 10539 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10540 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10541 fi 10542 10543 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10544 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10545 fi 10546 10547 CFLAGS="$CFLAGS -Wwrite-strings" 10548 10549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10550printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10551 cacheid=xorg_cv_cc_flag__Wwrite_strings 10552 if eval test \${$cacheid+y} 10553then : 10554 printf %s "(cached) " >&6 10555else case e in #( 10556 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10557/* end confdefs.h. */ 10558int i; 10559int 10560main (void) 10561{ 10562 10563 ; 10564 return 0; 10565} 10566_ACEOF 10567if ac_fn_c_try_link "$LINENO" 10568then : 10569 eval $cacheid=yes 10570else case e in #( 10571 e) eval $cacheid=no ;; 10572esac 10573fi 10574rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10575 conftest$ac_exeext conftest.$ac_ext ;; 10576esac 10577fi 10578 10579 10580 CFLAGS="$xorg_testset_save_CFLAGS" 10581 10582 eval supported=\$$cacheid 10583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10584printf "%s\n" "$supported" >&6; } 10585 if test "$supported" = "yes" ; then 10586 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10587 found="yes" 10588 fi 10589 fi 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605xorg_testset_save_CFLAGS="$CFLAGS" 10606 10607if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10608 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10610printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10611if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10612then : 10613 printf %s "(cached) " >&6 10614else case e in #( 10615 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10616/* end confdefs.h. */ 10617int i; 10618_ACEOF 10619if ac_fn_c_try_compile "$LINENO" 10620then : 10621 xorg_cv_cc_flag_unknown_warning_option=yes 10622else case e in #( 10623 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10624esac 10625fi 10626rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10627esac 10628fi 10629{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10630printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10631 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10632 CFLAGS="$xorg_testset_save_CFLAGS" 10633fi 10634 10635if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10636 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10637 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10638 fi 10639 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10641printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10642if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10643then : 10644 printf %s "(cached) " >&6 10645else case e in #( 10646 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10647/* end confdefs.h. */ 10648int i; 10649_ACEOF 10650if ac_fn_c_try_compile "$LINENO" 10651then : 10652 xorg_cv_cc_flag_unused_command_line_argument=yes 10653else case e in #( 10654 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10655esac 10656fi 10657rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10658esac 10659fi 10660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10661printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10662 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10663 CFLAGS="$xorg_testset_save_CFLAGS" 10664fi 10665 10666found="no" 10667 10668 if test $found = "no" ; then 10669 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10670 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10671 fi 10672 10673 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10674 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10675 fi 10676 10677 CFLAGS="$CFLAGS -Waddress" 10678 10679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10680printf %s "checking if $CC supports -Waddress... " >&6; } 10681 cacheid=xorg_cv_cc_flag__Waddress 10682 if eval test \${$cacheid+y} 10683then : 10684 printf %s "(cached) " >&6 10685else case e in #( 10686 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10687/* end confdefs.h. */ 10688int i; 10689int 10690main (void) 10691{ 10692 10693 ; 10694 return 0; 10695} 10696_ACEOF 10697if ac_fn_c_try_link "$LINENO" 10698then : 10699 eval $cacheid=yes 10700else case e in #( 10701 e) eval $cacheid=no ;; 10702esac 10703fi 10704rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10705 conftest$ac_exeext conftest.$ac_ext ;; 10706esac 10707fi 10708 10709 10710 CFLAGS="$xorg_testset_save_CFLAGS" 10711 10712 eval supported=\$$cacheid 10713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10714printf "%s\n" "$supported" >&6; } 10715 if test "$supported" = "yes" ; then 10716 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10717 found="yes" 10718 fi 10719 fi 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735xorg_testset_save_CFLAGS="$CFLAGS" 10736 10737if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10738 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10740printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10741if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10742then : 10743 printf %s "(cached) " >&6 10744else case e in #( 10745 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10746/* end confdefs.h. */ 10747int i; 10748_ACEOF 10749if ac_fn_c_try_compile "$LINENO" 10750then : 10751 xorg_cv_cc_flag_unknown_warning_option=yes 10752else case e in #( 10753 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10754esac 10755fi 10756rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10757esac 10758fi 10759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10760printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10761 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10762 CFLAGS="$xorg_testset_save_CFLAGS" 10763fi 10764 10765if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10766 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10767 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10768 fi 10769 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10771printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10772if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10773then : 10774 printf %s "(cached) " >&6 10775else case e in #( 10776 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10777/* end confdefs.h. */ 10778int i; 10779_ACEOF 10780if ac_fn_c_try_compile "$LINENO" 10781then : 10782 xorg_cv_cc_flag_unused_command_line_argument=yes 10783else case e in #( 10784 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10785esac 10786fi 10787rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10788esac 10789fi 10790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10791printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10792 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10793 CFLAGS="$xorg_testset_save_CFLAGS" 10794fi 10795 10796found="no" 10797 10798 if test $found = "no" ; then 10799 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10800 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10801 fi 10802 10803 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10804 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10805 fi 10806 10807 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10808 10809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10810printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10811 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10812 if eval test \${$cacheid+y} 10813then : 10814 printf %s "(cached) " >&6 10815else case e in #( 10816 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10817/* end confdefs.h. */ 10818int i; 10819int 10820main (void) 10821{ 10822 10823 ; 10824 return 0; 10825} 10826_ACEOF 10827if ac_fn_c_try_link "$LINENO" 10828then : 10829 eval $cacheid=yes 10830else case e in #( 10831 e) eval $cacheid=no ;; 10832esac 10833fi 10834rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10835 conftest$ac_exeext conftest.$ac_ext ;; 10836esac 10837fi 10838 10839 10840 CFLAGS="$xorg_testset_save_CFLAGS" 10841 10842 eval supported=\$$cacheid 10843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10844printf "%s\n" "$supported" >&6; } 10845 if test "$supported" = "yes" ; then 10846 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10847 found="yes" 10848 fi 10849 fi 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865xorg_testset_save_CFLAGS="$CFLAGS" 10866 10867if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10868 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10870printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10871if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10872then : 10873 printf %s "(cached) " >&6 10874else case e in #( 10875 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10876/* end confdefs.h. */ 10877int i; 10878_ACEOF 10879if ac_fn_c_try_compile "$LINENO" 10880then : 10881 xorg_cv_cc_flag_unknown_warning_option=yes 10882else case e in #( 10883 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10884esac 10885fi 10886rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10887esac 10888fi 10889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10890printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10891 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10892 CFLAGS="$xorg_testset_save_CFLAGS" 10893fi 10894 10895if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10896 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10897 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10898 fi 10899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10901printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10902if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10903then : 10904 printf %s "(cached) " >&6 10905else case e in #( 10906 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10907/* end confdefs.h. */ 10908int i; 10909_ACEOF 10910if ac_fn_c_try_compile "$LINENO" 10911then : 10912 xorg_cv_cc_flag_unused_command_line_argument=yes 10913else case e in #( 10914 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10915esac 10916fi 10917rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10918esac 10919fi 10920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10921printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10922 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10923 CFLAGS="$xorg_testset_save_CFLAGS" 10924fi 10925 10926found="no" 10927 10928 if test $found = "no" ; then 10929 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10930 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10931 fi 10932 10933 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10934 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10935 fi 10936 10937 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10938 10939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10940printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10941 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10942 if eval test \${$cacheid+y} 10943then : 10944 printf %s "(cached) " >&6 10945else case e in #( 10946 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10947/* end confdefs.h. */ 10948int i; 10949int 10950main (void) 10951{ 10952 10953 ; 10954 return 0; 10955} 10956_ACEOF 10957if ac_fn_c_try_link "$LINENO" 10958then : 10959 eval $cacheid=yes 10960else case e in #( 10961 e) eval $cacheid=no ;; 10962esac 10963fi 10964rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10965 conftest$ac_exeext conftest.$ac_ext ;; 10966esac 10967fi 10968 10969 10970 CFLAGS="$xorg_testset_save_CFLAGS" 10971 10972 eval supported=\$$cacheid 10973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10974printf "%s\n" "$supported" >&6; } 10975 if test "$supported" = "yes" ; then 10976 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10977 found="yes" 10978 fi 10979 fi 10980 10981 10982fi 10983 10984 10985 10986 10987 10988 10989 10990 CWARNFLAGS="$BASE_CFLAGS" 10991 if test "x$GCC" = xyes ; then 10992 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10993 fi 10994 10995 10996 10997 10998 10999 11000 11001 11002# Check whether --enable-strict-compilation was given. 11003if test ${enable_strict_compilation+y} 11004then : 11005 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 11006else case e in #( 11007 e) STRICT_COMPILE=no ;; 11008esac 11009fi 11010 11011 11012 11013 11014 11015 11016STRICT_CFLAGS="" 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030xorg_testset_save_CFLAGS="$CFLAGS" 11031 11032if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11033 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11035printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11036if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11037then : 11038 printf %s "(cached) " >&6 11039else case e in #( 11040 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11041/* end confdefs.h. */ 11042int i; 11043_ACEOF 11044if ac_fn_c_try_compile "$LINENO" 11045then : 11046 xorg_cv_cc_flag_unknown_warning_option=yes 11047else case e in #( 11048 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11049esac 11050fi 11051rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11052esac 11053fi 11054{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11055printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11056 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11057 CFLAGS="$xorg_testset_save_CFLAGS" 11058fi 11059 11060if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11061 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11062 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11063 fi 11064 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11066printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11067if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11068then : 11069 printf %s "(cached) " >&6 11070else case e in #( 11071 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11072/* end confdefs.h. */ 11073int i; 11074_ACEOF 11075if ac_fn_c_try_compile "$LINENO" 11076then : 11077 xorg_cv_cc_flag_unused_command_line_argument=yes 11078else case e in #( 11079 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11080esac 11081fi 11082rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11083esac 11084fi 11085{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11086printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11087 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11088 CFLAGS="$xorg_testset_save_CFLAGS" 11089fi 11090 11091found="no" 11092 11093 if test $found = "no" ; then 11094 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11095 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11096 fi 11097 11098 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11099 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11100 fi 11101 11102 CFLAGS="$CFLAGS -pedantic" 11103 11104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 11105printf %s "checking if $CC supports -pedantic... " >&6; } 11106 cacheid=xorg_cv_cc_flag__pedantic 11107 if eval test \${$cacheid+y} 11108then : 11109 printf %s "(cached) " >&6 11110else case e in #( 11111 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11112/* end confdefs.h. */ 11113int i; 11114int 11115main (void) 11116{ 11117 11118 ; 11119 return 0; 11120} 11121_ACEOF 11122if ac_fn_c_try_link "$LINENO" 11123then : 11124 eval $cacheid=yes 11125else case e in #( 11126 e) eval $cacheid=no ;; 11127esac 11128fi 11129rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11130 conftest$ac_exeext conftest.$ac_ext ;; 11131esac 11132fi 11133 11134 11135 CFLAGS="$xorg_testset_save_CFLAGS" 11136 11137 eval supported=\$$cacheid 11138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11139printf "%s\n" "$supported" >&6; } 11140 if test "$supported" = "yes" ; then 11141 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 11142 found="yes" 11143 fi 11144 fi 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160xorg_testset_save_CFLAGS="$CFLAGS" 11161 11162if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11163 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11165printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11166if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11167then : 11168 printf %s "(cached) " >&6 11169else case e in #( 11170 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11171/* end confdefs.h. */ 11172int i; 11173_ACEOF 11174if ac_fn_c_try_compile "$LINENO" 11175then : 11176 xorg_cv_cc_flag_unknown_warning_option=yes 11177else case e in #( 11178 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11179esac 11180fi 11181rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11182esac 11183fi 11184{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11185printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11186 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11187 CFLAGS="$xorg_testset_save_CFLAGS" 11188fi 11189 11190if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11191 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11192 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11193 fi 11194 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11196printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11197if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11198then : 11199 printf %s "(cached) " >&6 11200else case e in #( 11201 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11202/* end confdefs.h. */ 11203int i; 11204_ACEOF 11205if ac_fn_c_try_compile "$LINENO" 11206then : 11207 xorg_cv_cc_flag_unused_command_line_argument=yes 11208else case e in #( 11209 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11210esac 11211fi 11212rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11213esac 11214fi 11215{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11216printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11217 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11218 CFLAGS="$xorg_testset_save_CFLAGS" 11219fi 11220 11221found="no" 11222 11223 if test $found = "no" ; then 11224 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11225 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11226 fi 11227 11228 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11229 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11230 fi 11231 11232 CFLAGS="$CFLAGS -Werror" 11233 11234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 11235printf %s "checking if $CC supports -Werror... " >&6; } 11236 cacheid=xorg_cv_cc_flag__Werror 11237 if eval test \${$cacheid+y} 11238then : 11239 printf %s "(cached) " >&6 11240else case e in #( 11241 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11242/* end confdefs.h. */ 11243int i; 11244int 11245main (void) 11246{ 11247 11248 ; 11249 return 0; 11250} 11251_ACEOF 11252if ac_fn_c_try_link "$LINENO" 11253then : 11254 eval $cacheid=yes 11255else case e in #( 11256 e) eval $cacheid=no ;; 11257esac 11258fi 11259rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11260 conftest$ac_exeext conftest.$ac_ext ;; 11261esac 11262fi 11263 11264 11265 CFLAGS="$xorg_testset_save_CFLAGS" 11266 11267 eval supported=\$$cacheid 11268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11269printf "%s\n" "$supported" >&6; } 11270 if test "$supported" = "yes" ; then 11271 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 11272 found="yes" 11273 fi 11274 fi 11275 11276 if test $found = "no" ; then 11277 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11278 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11279 fi 11280 11281 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11282 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11283 fi 11284 11285 CFLAGS="$CFLAGS -errwarn" 11286 11287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 11288printf %s "checking if $CC supports -errwarn... " >&6; } 11289 cacheid=xorg_cv_cc_flag__errwarn 11290 if eval test \${$cacheid+y} 11291then : 11292 printf %s "(cached) " >&6 11293else case e in #( 11294 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11295/* end confdefs.h. */ 11296int i; 11297int 11298main (void) 11299{ 11300 11301 ; 11302 return 0; 11303} 11304_ACEOF 11305if ac_fn_c_try_link "$LINENO" 11306then : 11307 eval $cacheid=yes 11308else case e in #( 11309 e) eval $cacheid=no ;; 11310esac 11311fi 11312rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11313 conftest$ac_exeext conftest.$ac_ext ;; 11314esac 11315fi 11316 11317 11318 CFLAGS="$xorg_testset_save_CFLAGS" 11319 11320 eval supported=\$$cacheid 11321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11322printf "%s\n" "$supported" >&6; } 11323 if test "$supported" = "yes" ; then 11324 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 11325 found="yes" 11326 fi 11327 fi 11328 11329 11330 11331# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 11332# activate it with -Werror, so we add it here explicitly. 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346xorg_testset_save_CFLAGS="$CFLAGS" 11347 11348if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11349 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11351printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11352if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11353then : 11354 printf %s "(cached) " >&6 11355else case e in #( 11356 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11357/* end confdefs.h. */ 11358int i; 11359_ACEOF 11360if ac_fn_c_try_compile "$LINENO" 11361then : 11362 xorg_cv_cc_flag_unknown_warning_option=yes 11363else case e in #( 11364 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11365esac 11366fi 11367rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11368esac 11369fi 11370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11371printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11372 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11373 CFLAGS="$xorg_testset_save_CFLAGS" 11374fi 11375 11376if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11377 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11378 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11379 fi 11380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11382printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11383if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11384then : 11385 printf %s "(cached) " >&6 11386else case e in #( 11387 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11388/* end confdefs.h. */ 11389int i; 11390_ACEOF 11391if ac_fn_c_try_compile "$LINENO" 11392then : 11393 xorg_cv_cc_flag_unused_command_line_argument=yes 11394else case e in #( 11395 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11396esac 11397fi 11398rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11399esac 11400fi 11401{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11402printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11403 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11404 CFLAGS="$xorg_testset_save_CFLAGS" 11405fi 11406 11407found="no" 11408 11409 if test $found = "no" ; then 11410 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11411 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11412 fi 11413 11414 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11415 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11416 fi 11417 11418 CFLAGS="$CFLAGS -Werror=attributes" 11419 11420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11421printf %s "checking if $CC supports -Werror=attributes... " >&6; } 11422 cacheid=xorg_cv_cc_flag__Werror_attributes 11423 if eval test \${$cacheid+y} 11424then : 11425 printf %s "(cached) " >&6 11426else case e in #( 11427 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11428/* end confdefs.h. */ 11429int i; 11430int 11431main (void) 11432{ 11433 11434 ; 11435 return 0; 11436} 11437_ACEOF 11438if ac_fn_c_try_link "$LINENO" 11439then : 11440 eval $cacheid=yes 11441else case e in #( 11442 e) eval $cacheid=no ;; 11443esac 11444fi 11445rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11446 conftest$ac_exeext conftest.$ac_ext ;; 11447esac 11448fi 11449 11450 11451 CFLAGS="$xorg_testset_save_CFLAGS" 11452 11453 eval supported=\$$cacheid 11454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11455printf "%s\n" "$supported" >&6; } 11456 if test "$supported" = "yes" ; then 11457 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11458 found="yes" 11459 fi 11460 fi 11461 11462 11463 11464if test "x$STRICT_COMPILE" = "xyes"; then 11465 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11466 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11467fi 11468 11469 11470 11471 11472 11473 11474 11475 11476cat >>confdefs.h <<_ACEOF 11477#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11478_ACEOF 11479 11480 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11481 if test "x$PVM" = "x"; then 11482 PVM="0" 11483 fi 11484 11485printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11486 11487 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11488 if test "x$PVP" = "x"; then 11489 PVP="0" 11490 fi 11491 11492printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11493 11494 11495 11496CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11497mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11498|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11499touch \$(top_srcdir)/ChangeLog; \ 11500echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11501 11502 11503 11504 11505macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11506INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11507mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11508|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11509touch \$(top_srcdir)/INSTALL; \ 11510echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11511 11512 11513 11514 11515 11516 11517case $host_os in 11518 solaris*) 11519 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11520 # check for a man page file found in later versions that use 11521 # traditional section numbers instead 11522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11523printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11524if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11525then : 11526 printf %s "(cached) " >&6 11527else case e in #( 11528 e) test "$cross_compiling" = yes && 11529 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11530if test -r "/usr/share/man/man7/attributes.7"; then 11531 ac_cv_file__usr_share_man_man7_attributes_7=yes 11532else 11533 ac_cv_file__usr_share_man_man7_attributes_7=no 11534fi ;; 11535esac 11536fi 11537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11538printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11539if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11540then : 11541 SYSV_MAN_SECTIONS=false 11542else case e in #( 11543 e) SYSV_MAN_SECTIONS=true ;; 11544esac 11545fi 11546 11547 ;; 11548 *) SYSV_MAN_SECTIONS=false ;; 11549esac 11550 11551if test x$APP_MAN_SUFFIX = x ; then 11552 APP_MAN_SUFFIX=1 11553fi 11554if test x$APP_MAN_DIR = x ; then 11555 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11556fi 11557 11558if test x$LIB_MAN_SUFFIX = x ; then 11559 LIB_MAN_SUFFIX=3 11560fi 11561if test x$LIB_MAN_DIR = x ; then 11562 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11563fi 11564 11565if test x$FILE_MAN_SUFFIX = x ; then 11566 case $SYSV_MAN_SECTIONS in 11567 true) FILE_MAN_SUFFIX=4 ;; 11568 *) FILE_MAN_SUFFIX=5 ;; 11569 esac 11570fi 11571if test x$FILE_MAN_DIR = x ; then 11572 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11573fi 11574 11575if test x$MISC_MAN_SUFFIX = x ; then 11576 case $SYSV_MAN_SECTIONS in 11577 true) MISC_MAN_SUFFIX=5 ;; 11578 *) MISC_MAN_SUFFIX=7 ;; 11579 esac 11580fi 11581if test x$MISC_MAN_DIR = x ; then 11582 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11583fi 11584 11585if test x$DRIVER_MAN_SUFFIX = x ; then 11586 case $SYSV_MAN_SECTIONS in 11587 true) DRIVER_MAN_SUFFIX=7 ;; 11588 *) DRIVER_MAN_SUFFIX=4 ;; 11589 esac 11590fi 11591if test x$DRIVER_MAN_DIR = x ; then 11592 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11593fi 11594 11595if test x$ADMIN_MAN_SUFFIX = x ; then 11596 case $SYSV_MAN_SECTIONS in 11597 true) ADMIN_MAN_SUFFIX=1m ;; 11598 *) ADMIN_MAN_SUFFIX=8 ;; 11599 esac 11600fi 11601if test x$ADMIN_MAN_DIR = x ; then 11602 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11603fi 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619XORG_MAN_PAGE="X Version 11" 11620 11621MAN_SUBSTS="\ 11622 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11623 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11624 -e 's|__xservername__|Xorg|g' \ 11625 -e 's|__xconfigfile__|xorg.conf|g' \ 11626 -e 's|__projectroot__|\$(prefix)|g' \ 11627 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11628 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11629 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11630 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11631 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11632 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11633 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11634 11635 11636 11637 11638AM_DEFAULT_VERBOSITY=0 11639 11640 11641 11642# Checks for pkg-config packages 11643 11644pkg_failed=no 11645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FSLSFONTS" >&5 11646printf %s "checking for FSLSFONTS... " >&6; } 11647 11648if test -n "$FSLSFONTS_CFLAGS"; then 11649 pkg_cv_FSLSFONTS_CFLAGS="$FSLSFONTS_CFLAGS" 11650 elif test -n "$PKG_CONFIG"; then 11651 if test -n "$PKG_CONFIG" && \ 11652 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.25 libfs\""; } >&5 11653 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.25 libfs") 2>&5 11654 ac_status=$? 11655 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11656 test $ac_status = 0; }; then 11657 pkg_cv_FSLSFONTS_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.25 libfs" 2>/dev/null` 11658 test "x$?" != "x0" && pkg_failed=yes 11659else 11660 pkg_failed=yes 11661fi 11662 else 11663 pkg_failed=untried 11664fi 11665if test -n "$FSLSFONTS_LIBS"; then 11666 pkg_cv_FSLSFONTS_LIBS="$FSLSFONTS_LIBS" 11667 elif test -n "$PKG_CONFIG"; then 11668 if test -n "$PKG_CONFIG" && \ 11669 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.25 libfs\""; } >&5 11670 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.25 libfs") 2>&5 11671 ac_status=$? 11672 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11673 test $ac_status = 0; }; then 11674 pkg_cv_FSLSFONTS_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.25 libfs" 2>/dev/null` 11675 test "x$?" != "x0" && pkg_failed=yes 11676else 11677 pkg_failed=yes 11678fi 11679 else 11680 pkg_failed=untried 11681fi 11682 11683 11684 11685if test $pkg_failed = yes; then 11686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11687printf "%s\n" "no" >&6; } 11688 11689if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11690 _pkg_short_errors_supported=yes 11691else 11692 _pkg_short_errors_supported=no 11693fi 11694 if test $_pkg_short_errors_supported = yes; then 11695 FSLSFONTS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.25 libfs" 2>&1` 11696 else 11697 FSLSFONTS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.25 libfs" 2>&1` 11698 fi 11699 # Put the nasty error message in config.log where it belongs 11700 echo "$FSLSFONTS_PKG_ERRORS" >&5 11701 11702 as_fn_error $? "Package requirements (xproto >= 7.0.25 libfs) were not met: 11703 11704$FSLSFONTS_PKG_ERRORS 11705 11706Consider adjusting the PKG_CONFIG_PATH environment variable if you 11707installed software in a non-standard prefix. 11708 11709Alternatively, you may set the environment variables FSLSFONTS_CFLAGS 11710and FSLSFONTS_LIBS to avoid the need to call pkg-config. 11711See the pkg-config man page for more details." "$LINENO" 5 11712elif test $pkg_failed = untried; then 11713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11714printf "%s\n" "no" >&6; } 11715 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 11716printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 11717as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11718is in your PATH or set the PKG_CONFIG environment variable to the full 11719path to pkg-config. 11720 11721Alternatively, you may set the environment variables FSLSFONTS_CFLAGS 11722and FSLSFONTS_LIBS to avoid the need to call pkg-config. 11723See the pkg-config man page for more details. 11724 11725To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11726See 'config.log' for more details" "$LINENO" 5; } 11727else 11728 FSLSFONTS_CFLAGS=$pkg_cv_FSLSFONTS_CFLAGS 11729 FSLSFONTS_LIBS=$pkg_cv_FSLSFONTS_LIBS 11730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11731printf "%s\n" "yes" >&6; } 11732 11733fi 11734 11735# Checks for library functions 11736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing reallocarray" >&5 11737printf %s "checking for library containing reallocarray... " >&6; } 11738if test ${ac_cv_search_reallocarray+y} 11739then : 11740 printf %s "(cached) " >&6 11741else case e in #( 11742 e) ac_func_search_save_LIBS=$LIBS 11743cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11744/* end confdefs.h. */ 11745 11746/* Override any GCC internal prototype to avoid an error. 11747 Use char because int might match the return type of a GCC 11748 builtin and then its argument prototype would still apply. 11749 The 'extern "C"' is for builds by C++ compilers; 11750 although this is not generally supported in C code supporting it here 11751 has little cost and some practical benefit (sr 110532). */ 11752#ifdef __cplusplus 11753extern "C" 11754#endif 11755char reallocarray (void); 11756int 11757main (void) 11758{ 11759return reallocarray (); 11760 ; 11761 return 0; 11762} 11763_ACEOF 11764for ac_lib in '' bsd 11765do 11766 if test -z "$ac_lib"; then 11767 ac_res="none required" 11768 else 11769 ac_res=-l$ac_lib 11770 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11771 fi 11772 if ac_fn_c_try_link "$LINENO" 11773then : 11774 ac_cv_search_reallocarray=$ac_res 11775fi 11776rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11777 conftest$ac_exeext 11778 if test ${ac_cv_search_reallocarray+y} 11779then : 11780 break 11781fi 11782done 11783if test ${ac_cv_search_reallocarray+y} 11784then : 11785 11786else case e in #( 11787 e) ac_cv_search_reallocarray=no ;; 11788esac 11789fi 11790rm conftest.$ac_ext 11791LIBS=$ac_func_search_save_LIBS ;; 11792esac 11793fi 11794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_reallocarray" >&5 11795printf "%s\n" "$ac_cv_search_reallocarray" >&6; } 11796ac_res=$ac_cv_search_reallocarray 11797if test "$ac_res" != no 11798then : 11799 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11800 11801fi 11802 11803if test "x$ac_cv_search_reallocarray" = "x-lbsd" 11804then : 11805 ac_fn_c_check_header_compile "$LINENO" "bsd/stdlib.h" "ac_cv_header_bsd_stdlib_h" "$ac_includes_default" 11806if test "x$ac_cv_header_bsd_stdlib_h" = xyes 11807then : 11808 printf "%s\n" "#define HAVE_BSD_STDLIB_H 1" >>confdefs.h 11809 11810fi 11811 11812fi 11813ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray" 11814if test "x$ac_cv_func_reallocarray" = xyes 11815then : 11816 printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h 11817 11818fi 11819 11820 11821ac_config_files="$ac_config_files Makefile man/Makefile" 11822 11823cat >confcache <<\_ACEOF 11824# This file is a shell script that caches the results of configure 11825# tests run on this system so they can be shared between configure 11826# scripts and configure runs, see configure's option --config-cache. 11827# It is not useful on other systems. If it contains results you don't 11828# want to keep, you may remove or edit it. 11829# 11830# config.status only pays attention to the cache file if you give it 11831# the --recheck option to rerun configure. 11832# 11833# 'ac_cv_env_foo' variables (set or unset) will be overridden when 11834# loading this file, other *unset* 'ac_cv_foo' will be assigned the 11835# following values. 11836 11837_ACEOF 11838 11839# The following way of writing the cache mishandles newlines in values, 11840# but we know of no workaround that is simple, portable, and efficient. 11841# So, we kill variables containing newlines. 11842# Ultrix sh set writes to stderr and can't be redirected directly, 11843# and sets the high bit in the cache file unless we assign to the vars. 11844( 11845 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11846 eval ac_val=\$$ac_var 11847 case $ac_val in #( 11848 *${as_nl}*) 11849 case $ac_var in #( 11850 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11851printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11852 esac 11853 case $ac_var in #( 11854 _ | IFS | as_nl) ;; #( 11855 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11856 *) { eval $ac_var=; unset $ac_var;} ;; 11857 esac ;; 11858 esac 11859 done 11860 11861 (set) 2>&1 | 11862 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11863 *${as_nl}ac_space=\ *) 11864 # 'set' does not quote correctly, so add quotes: double-quote 11865 # substitution turns \\\\ into \\, and sed turns \\ into \. 11866 sed -n \ 11867 "s/'/'\\\\''/g; 11868 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11869 ;; #( 11870 *) 11871 # 'set' quotes correctly as required by POSIX, so do not add quotes. 11872 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11873 ;; 11874 esac | 11875 sort 11876) | 11877 sed ' 11878 /^ac_cv_env_/b end 11879 t clear 11880 :clear 11881 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 11882 t end 11883 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11884 :end' >>confcache 11885if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11886 if test -w "$cache_file"; then 11887 if test "x$cache_file" != "x/dev/null"; then 11888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11889printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 11890 if test ! -f "$cache_file" || test -h "$cache_file"; then 11891 cat confcache >"$cache_file" 11892 else 11893 case $cache_file in #( 11894 */* | ?:*) 11895 mv -f confcache "$cache_file"$$ && 11896 mv -f "$cache_file"$$ "$cache_file" ;; #( 11897 *) 11898 mv -f confcache "$cache_file" ;; 11899 esac 11900 fi 11901 fi 11902 else 11903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11904printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 11905 fi 11906fi 11907rm -f confcache 11908 11909test "x$prefix" = xNONE && prefix=$ac_default_prefix 11910# Let make expand exec_prefix. 11911test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11912 11913DEFS=-DHAVE_CONFIG_H 11914 11915ac_libobjs= 11916ac_ltlibobjs= 11917U= 11918for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11919 # 1. Remove the extension, and $U if already installed. 11920 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11921 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 11922 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11923 # will be set to the directory where LIBOBJS objects are built. 11924 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11925 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11926done 11927LIBOBJS=$ac_libobjs 11928 11929LTLIBOBJS=$ac_ltlibobjs 11930 11931 11932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11933printf %s "checking that generated files are newer than configure... " >&6; } 11934 if test -n "$am_sleep_pid"; then 11935 # Hide warnings about reused PIDs. 11936 wait $am_sleep_pid 2>/dev/null 11937 fi 11938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 11939printf "%s\n" "done" >&6; } 11940if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11941 as_fn_error $? "conditional \"AMDEP\" was never defined. 11942Usually this means the macro was only invoked conditionally." "$LINENO" 5 11943fi 11944if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11945 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11946Usually this means the macro was only invoked conditionally." "$LINENO" 5 11947fi 11948case $enable_silent_rules in # ((( 11949 yes) AM_DEFAULT_VERBOSITY=0;; 11950 no) AM_DEFAULT_VERBOSITY=1;; 11951esac 11952if test $am_cv_make_support_nested_variables = yes; then 11953 AM_V='$(V)' 11954 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11955else 11956 AM_V=$AM_DEFAULT_VERBOSITY 11957 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11958fi 11959 11960 if test -n "$EXEEXT"; then 11961 am__EXEEXT_TRUE= 11962 am__EXEEXT_FALSE='#' 11963else 11964 am__EXEEXT_TRUE='#' 11965 am__EXEEXT_FALSE= 11966fi 11967 11968 11969: "${CONFIG_STATUS=./config.status}" 11970ac_write_fail=0 11971ac_clean_files_save=$ac_clean_files 11972ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11974printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 11975as_write_fail=0 11976cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11977#! $SHELL 11978# Generated by $as_me. 11979# Run this file to recreate the current configuration. 11980# Compiler output produced by configure, useful for debugging 11981# configure, is in config.log if it exists. 11982 11983debug=false 11984ac_cs_recheck=false 11985ac_cs_silent=false 11986 11987SHELL=\${CONFIG_SHELL-$SHELL} 11988export SHELL 11989_ASEOF 11990cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11991## -------------------- ## 11992## M4sh Initialization. ## 11993## -------------------- ## 11994 11995# Be more Bourne compatible 11996DUALCASE=1; export DUALCASE # for MKS sh 11997if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 11998then : 11999 emulate sh 12000 NULLCMD=: 12001 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12002 # is contrary to our usage. Disable this feature. 12003 alias -g '${1+"$@"}'='"$@"' 12004 setopt NO_GLOB_SUBST 12005else case e in #( 12006 e) case `(set -o) 2>/dev/null` in #( 12007 *posix*) : 12008 set -o posix ;; #( 12009 *) : 12010 ;; 12011esac ;; 12012esac 12013fi 12014 12015 12016 12017# Reset variables that may have inherited troublesome values from 12018# the environment. 12019 12020# IFS needs to be set, to space, tab, and newline, in precisely that order. 12021# (If _AS_PATH_WALK were called with IFS unset, it would have the 12022# side effect of setting IFS to empty, thus disabling word splitting.) 12023# Quoting is to prevent editors from complaining about space-tab. 12024as_nl=' 12025' 12026export as_nl 12027IFS=" "" $as_nl" 12028 12029PS1='$ ' 12030PS2='> ' 12031PS4='+ ' 12032 12033# Ensure predictable behavior from utilities with locale-dependent output. 12034LC_ALL=C 12035export LC_ALL 12036LANGUAGE=C 12037export LANGUAGE 12038 12039# We cannot yet rely on "unset" to work, but we need these variables 12040# to be unset--not just set to an empty or harmless value--now, to 12041# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 12042# also avoids known problems related to "unset" and subshell syntax 12043# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 12044for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 12045do eval test \${$as_var+y} \ 12046 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12047done 12048 12049# Ensure that fds 0, 1, and 2 are open. 12050if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 12051if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 12052if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 12053 12054# The user is always right. 12055if ${PATH_SEPARATOR+false} :; then 12056 PATH_SEPARATOR=: 12057 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12058 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12059 PATH_SEPARATOR=';' 12060 } 12061fi 12062 12063 12064# Find who we are. Look in the path if we contain no directory separator. 12065as_myself= 12066case $0 in #(( 12067 *[\\/]* ) as_myself=$0 ;; 12068 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12069for as_dir in $PATH 12070do 12071 IFS=$as_save_IFS 12072 case $as_dir in #((( 12073 '') as_dir=./ ;; 12074 */) ;; 12075 *) as_dir=$as_dir/ ;; 12076 esac 12077 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 12078 done 12079IFS=$as_save_IFS 12080 12081 ;; 12082esac 12083# We did not find ourselves, most probably we were run as 'sh COMMAND' 12084# in which case we are not to be found in the path. 12085if test "x$as_myself" = x; then 12086 as_myself=$0 12087fi 12088if test ! -f "$as_myself"; then 12089 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12090 exit 1 12091fi 12092 12093 12094 12095# as_fn_error STATUS ERROR [LINENO LOG_FD] 12096# ---------------------------------------- 12097# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12098# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12099# script with STATUS, using 1 if that was 0. 12100as_fn_error () 12101{ 12102 as_status=$1; test $as_status -eq 0 && as_status=1 12103 if test "$4"; then 12104 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12105 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12106 fi 12107 printf "%s\n" "$as_me: error: $2" >&2 12108 as_fn_exit $as_status 12109} # as_fn_error 12110 12111 12112# as_fn_set_status STATUS 12113# ----------------------- 12114# Set $? to STATUS, without forking. 12115as_fn_set_status () 12116{ 12117 return $1 12118} # as_fn_set_status 12119 12120# as_fn_exit STATUS 12121# ----------------- 12122# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12123as_fn_exit () 12124{ 12125 set +e 12126 as_fn_set_status $1 12127 exit $1 12128} # as_fn_exit 12129 12130# as_fn_unset VAR 12131# --------------- 12132# Portably unset VAR. 12133as_fn_unset () 12134{ 12135 { eval $1=; unset $1;} 12136} 12137as_unset=as_fn_unset 12138 12139# as_fn_append VAR VALUE 12140# ---------------------- 12141# Append the text in VALUE to the end of the definition contained in VAR. Take 12142# advantage of any shell optimizations that allow amortized linear growth over 12143# repeated appends, instead of the typical quadratic growth present in naive 12144# implementations. 12145if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 12146then : 12147 eval 'as_fn_append () 12148 { 12149 eval $1+=\$2 12150 }' 12151else case e in #( 12152 e) as_fn_append () 12153 { 12154 eval $1=\$$1\$2 12155 } ;; 12156esac 12157fi # as_fn_append 12158 12159# as_fn_arith ARG... 12160# ------------------ 12161# Perform arithmetic evaluation on the ARGs, and store the result in the 12162# global $as_val. Take advantage of shells that can avoid forks. The arguments 12163# must be portable across $(()) and expr. 12164if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 12165then : 12166 eval 'as_fn_arith () 12167 { 12168 as_val=$(( $* )) 12169 }' 12170else case e in #( 12171 e) as_fn_arith () 12172 { 12173 as_val=`expr "$@" || test $? -eq 1` 12174 } ;; 12175esac 12176fi # as_fn_arith 12177 12178 12179if expr a : '\(a\)' >/dev/null 2>&1 && 12180 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12181 as_expr=expr 12182else 12183 as_expr=false 12184fi 12185 12186if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12187 as_basename=basename 12188else 12189 as_basename=false 12190fi 12191 12192if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12193 as_dirname=dirname 12194else 12195 as_dirname=false 12196fi 12197 12198as_me=`$as_basename -- "$0" || 12199$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12200 X"$0" : 'X\(//\)$' \| \ 12201 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12202printf "%s\n" X/"$0" | 12203 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12204 s//\1/ 12205 q 12206 } 12207 /^X\/\(\/\/\)$/{ 12208 s//\1/ 12209 q 12210 } 12211 /^X\/\(\/\).*/{ 12212 s//\1/ 12213 q 12214 } 12215 s/.*/./; q'` 12216 12217# Avoid depending upon Character Ranges. 12218as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12219as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12220as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12221as_cr_digits='0123456789' 12222as_cr_alnum=$as_cr_Letters$as_cr_digits 12223 12224 12225# Determine whether it's possible to make 'echo' print without a newline. 12226# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 12227# for compatibility with existing Makefiles. 12228ECHO_C= ECHO_N= ECHO_T= 12229case `echo -n x` in #((((( 12230-n*) 12231 case `echo 'xy\c'` in 12232 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12233 xy) ECHO_C='\c';; 12234 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12235 ECHO_T=' ';; 12236 esac;; 12237*) 12238 ECHO_N='-n';; 12239esac 12240 12241# For backward compatibility with old third-party macros, we provide 12242# the shell variables $as_echo and $as_echo_n. New code should use 12243# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 12244as_echo='printf %s\n' 12245as_echo_n='printf %s' 12246 12247rm -f conf$$ conf$$.exe conf$$.file 12248if test -d conf$$.dir; then 12249 rm -f conf$$.dir/conf$$.file 12250else 12251 rm -f conf$$.dir 12252 mkdir conf$$.dir 2>/dev/null 12253fi 12254if (echo >conf$$.file) 2>/dev/null; then 12255 if ln -s conf$$.file conf$$ 2>/dev/null; then 12256 as_ln_s='ln -s' 12257 # ... but there are two gotchas: 12258 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 12259 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 12260 # In both cases, we have to default to 'cp -pR'. 12261 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12262 as_ln_s='cp -pR' 12263 elif ln conf$$.file conf$$ 2>/dev/null; then 12264 as_ln_s=ln 12265 else 12266 as_ln_s='cp -pR' 12267 fi 12268else 12269 as_ln_s='cp -pR' 12270fi 12271rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12272rmdir conf$$.dir 2>/dev/null 12273 12274 12275# as_fn_mkdir_p 12276# ------------- 12277# Create "$as_dir" as a directory, including parents if necessary. 12278as_fn_mkdir_p () 12279{ 12280 12281 case $as_dir in #( 12282 -*) as_dir=./$as_dir;; 12283 esac 12284 test -d "$as_dir" || eval $as_mkdir_p || { 12285 as_dirs= 12286 while :; do 12287 case $as_dir in #( 12288 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12289 *) as_qdir=$as_dir;; 12290 esac 12291 as_dirs="'$as_qdir' $as_dirs" 12292 as_dir=`$as_dirname -- "$as_dir" || 12293$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12294 X"$as_dir" : 'X\(//\)[^/]' \| \ 12295 X"$as_dir" : 'X\(//\)$' \| \ 12296 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12297printf "%s\n" X"$as_dir" | 12298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12299 s//\1/ 12300 q 12301 } 12302 /^X\(\/\/\)[^/].*/{ 12303 s//\1/ 12304 q 12305 } 12306 /^X\(\/\/\)$/{ 12307 s//\1/ 12308 q 12309 } 12310 /^X\(\/\).*/{ 12311 s//\1/ 12312 q 12313 } 12314 s/.*/./; q'` 12315 test -d "$as_dir" && break 12316 done 12317 test -z "$as_dirs" || eval "mkdir $as_dirs" 12318 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12319 12320 12321} # as_fn_mkdir_p 12322if mkdir -p . 2>/dev/null; then 12323 as_mkdir_p='mkdir -p "$as_dir"' 12324else 12325 test -d ./-p && rmdir ./-p 12326 as_mkdir_p=false 12327fi 12328 12329 12330# as_fn_executable_p FILE 12331# ----------------------- 12332# Test if FILE is an executable regular file. 12333as_fn_executable_p () 12334{ 12335 test -f "$1" && test -x "$1" 12336} # as_fn_executable_p 12337as_test_x='test -x' 12338as_executable_p=as_fn_executable_p 12339 12340# Sed expression to map a string onto a valid CPP name. 12341as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 12342as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 12343 12344# Sed expression to map a string onto a valid variable name. 12345as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 12346as_tr_sh="eval sed '$as_sed_sh'" # deprecated 12347 12348 12349exec 6>&1 12350## ----------------------------------- ## 12351## Main body of $CONFIG_STATUS script. ## 12352## ----------------------------------- ## 12353_ASEOF 12354test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12355 12356cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12357# Save the log message, to keep $0 and so on meaningful, and to 12358# report actual input values of CONFIG_FILES etc. instead of their 12359# values after options handling. 12360ac_log=" 12361This file was extended by fslsfonts $as_me 1.0.7, which was 12362generated by GNU Autoconf 2.72. Invocation command line was 12363 12364 CONFIG_FILES = $CONFIG_FILES 12365 CONFIG_HEADERS = $CONFIG_HEADERS 12366 CONFIG_LINKS = $CONFIG_LINKS 12367 CONFIG_COMMANDS = $CONFIG_COMMANDS 12368 $ $0 $@ 12369 12370on `(hostname || uname -n) 2>/dev/null | sed 1q` 12371" 12372 12373_ACEOF 12374 12375case $ac_config_files in *" 12376"*) set x $ac_config_files; shift; ac_config_files=$*;; 12377esac 12378 12379case $ac_config_headers in *" 12380"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12381esac 12382 12383 12384cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12385# Files that config.status was made for. 12386config_files="$ac_config_files" 12387config_headers="$ac_config_headers" 12388config_commands="$ac_config_commands" 12389 12390_ACEOF 12391 12392cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12393ac_cs_usage="\ 12394'$as_me' instantiates files and other configuration actions 12395from templates according to the current configuration. Unless the files 12396and actions are specified as TAGs, all are instantiated by default. 12397 12398Usage: $0 [OPTION]... [TAG]... 12399 12400 -h, --help print this help, then exit 12401 -V, --version print version number and configuration settings, then exit 12402 --config print configuration, then exit 12403 -q, --quiet, --silent 12404 do not print progress messages 12405 -d, --debug don't remove temporary files 12406 --recheck update $as_me by reconfiguring in the same conditions 12407 --file=FILE[:TEMPLATE] 12408 instantiate the configuration file FILE 12409 --header=FILE[:TEMPLATE] 12410 instantiate the configuration header FILE 12411 12412Configuration files: 12413$config_files 12414 12415Configuration headers: 12416$config_headers 12417 12418Configuration commands: 12419$config_commands 12420 12421Report bugs to <https://gitlab.freedesktop.org/xorg/app/fslsfonts/-/issues>." 12422 12423_ACEOF 12424ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 12425ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 12426cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12427ac_cs_config='$ac_cs_config_escaped' 12428ac_cs_version="\\ 12429fslsfonts config.status 1.0.7 12430configured by $0, generated by GNU Autoconf 2.72, 12431 with options \\"\$ac_cs_config\\" 12432 12433Copyright (C) 2023 Free Software Foundation, Inc. 12434This config.status script is free software; the Free Software Foundation 12435gives unlimited permission to copy, distribute and modify it." 12436 12437ac_pwd='$ac_pwd' 12438srcdir='$srcdir' 12439INSTALL='$INSTALL' 12440MKDIR_P='$MKDIR_P' 12441AWK='$AWK' 12442test -n "\$AWK" || AWK=awk 12443_ACEOF 12444 12445cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12446# The default lists apply if the user does not specify any file. 12447ac_need_defaults=: 12448while test $# != 0 12449do 12450 case $1 in 12451 --*=?*) 12452 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12453 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12454 ac_shift=: 12455 ;; 12456 --*=) 12457 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12458 ac_optarg= 12459 ac_shift=: 12460 ;; 12461 *) 12462 ac_option=$1 12463 ac_optarg=$2 12464 ac_shift=shift 12465 ;; 12466 esac 12467 12468 case $ac_option in 12469 # Handling of the options. 12470 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12471 ac_cs_recheck=: ;; 12472 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12473 printf "%s\n" "$ac_cs_version"; exit ;; 12474 --config | --confi | --conf | --con | --co | --c ) 12475 printf "%s\n" "$ac_cs_config"; exit ;; 12476 --debug | --debu | --deb | --de | --d | -d ) 12477 debug=: ;; 12478 --file | --fil | --fi | --f ) 12479 $ac_shift 12480 case $ac_optarg in 12481 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12482 '') as_fn_error $? "missing file argument" ;; 12483 esac 12484 as_fn_append CONFIG_FILES " '$ac_optarg'" 12485 ac_need_defaults=false;; 12486 --header | --heade | --head | --hea ) 12487 $ac_shift 12488 case $ac_optarg in 12489 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12490 esac 12491 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12492 ac_need_defaults=false;; 12493 --he | --h) 12494 # Conflict between --help and --header 12495 as_fn_error $? "ambiguous option: '$1' 12496Try '$0 --help' for more information.";; 12497 --help | --hel | -h ) 12498 printf "%s\n" "$ac_cs_usage"; exit ;; 12499 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12500 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12501 ac_cs_silent=: ;; 12502 12503 # This is an error. 12504 -*) as_fn_error $? "unrecognized option: '$1' 12505Try '$0 --help' for more information." ;; 12506 12507 *) as_fn_append ac_config_targets " $1" 12508 ac_need_defaults=false ;; 12509 12510 esac 12511 shift 12512done 12513 12514ac_configure_extra_args= 12515 12516if $ac_cs_silent; then 12517 exec 6>/dev/null 12518 ac_configure_extra_args="$ac_configure_extra_args --silent" 12519fi 12520 12521_ACEOF 12522cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12523if \$ac_cs_recheck; then 12524 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12525 shift 12526 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 12527 CONFIG_SHELL='$SHELL' 12528 export CONFIG_SHELL 12529 exec "\$@" 12530fi 12531 12532_ACEOF 12533cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12534exec 5>>config.log 12535{ 12536 echo 12537 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12538## Running $as_me. ## 12539_ASBOX 12540 printf "%s\n" "$ac_log" 12541} >&5 12542 12543_ACEOF 12544cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12545# 12546# INIT-COMMANDS 12547# 12548AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 12549 12550_ACEOF 12551 12552cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12553 12554# Handling of arguments. 12555for ac_config_target in $ac_config_targets 12556do 12557 case $ac_config_target in 12558 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12559 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12560 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12561 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12562 12563 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 12564 esac 12565done 12566 12567 12568# If the user did not use the arguments to specify the items to instantiate, 12569# then the envvar interface is used. Set only those that are not. 12570# We use the long form for the default assignment because of an extremely 12571# bizarre bug on SunOS 4.1.3. 12572if $ac_need_defaults; then 12573 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 12574 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 12575 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 12576fi 12577 12578# Have a temporary directory for convenience. Make it in the build tree 12579# simply because there is no reason against having it here, and in addition, 12580# creating and moving files from /tmp can sometimes cause problems. 12581# Hook for its removal unless debugging. 12582# Note that there is a small window in which the directory will not be cleaned: 12583# after its creation but before its name has been assigned to '$tmp'. 12584$debug || 12585{ 12586 tmp= ac_tmp= 12587 trap 'exit_status=$? 12588 : "${ac_tmp:=$tmp}" 12589 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12590' 0 12591 trap 'as_fn_exit 1' 1 2 13 15 12592} 12593# Create a (secure) tmp directory for tmp files. 12594 12595{ 12596 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12597 test -d "$tmp" 12598} || 12599{ 12600 tmp=./conf$$-$RANDOM 12601 (umask 077 && mkdir "$tmp") 12602} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12603ac_tmp=$tmp 12604 12605# Set up the scripts for CONFIG_FILES section. 12606# No need to generate them if there are no CONFIG_FILES. 12607# This happens for instance with './config.status config.h'. 12608if test -n "$CONFIG_FILES"; then 12609 12610 12611ac_cr=`echo X | tr X '\015'` 12612# On cygwin, bash can eat \r inside `` if the user requested igncr. 12613# But we know of no other shell where ac_cr would be empty at this 12614# point, so we can use a bashism as a fallback. 12615if test "x$ac_cr" = x; then 12616 eval ac_cr=\$\'\\r\' 12617fi 12618ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12619if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12620 ac_cs_awk_cr='\\r' 12621else 12622 ac_cs_awk_cr=$ac_cr 12623fi 12624 12625echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12626_ACEOF 12627 12628 12629{ 12630 echo "cat >conf$$subs.awk <<_ACEOF" && 12631 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12632 echo "_ACEOF" 12633} >conf$$subs.sh || 12634 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12635ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12636ac_delim='%!_!# ' 12637for ac_last_try in false false false false false :; do 12638 . ./conf$$subs.sh || 12639 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12640 12641 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12642 if test $ac_delim_n = $ac_delim_num; then 12643 break 12644 elif $ac_last_try; then 12645 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12646 else 12647 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12648 fi 12649done 12650rm -f conf$$subs.sh 12651 12652cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12653cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12654_ACEOF 12655sed -n ' 12656h 12657s/^/S["/; s/!.*/"]=/ 12658p 12659g 12660s/^[^!]*!// 12661:repl 12662t repl 12663s/'"$ac_delim"'$// 12664t delim 12665:nl 12666h 12667s/\(.\{148\}\)..*/\1/ 12668t more1 12669s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12670p 12671n 12672b repl 12673:more1 12674s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12675p 12676g 12677s/.\{148\}// 12678t nl 12679:delim 12680h 12681s/\(.\{148\}\)..*/\1/ 12682t more2 12683s/["\\]/\\&/g; s/^/"/; s/$/"/ 12684p 12685b 12686:more2 12687s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12688p 12689g 12690s/.\{148\}// 12691t delim 12692' <conf$$subs.awk | sed ' 12693/^[^""]/{ 12694 N 12695 s/\n// 12696} 12697' >>$CONFIG_STATUS || ac_write_fail=1 12698rm -f conf$$subs.awk 12699cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12700_ACAWK 12701cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12702 for (key in S) S_is_set[key] = 1 12703 FS = "" 12704 12705} 12706{ 12707 line = $ 0 12708 nfields = split(line, field, "@") 12709 substed = 0 12710 len = length(field[1]) 12711 for (i = 2; i < nfields; i++) { 12712 key = field[i] 12713 keylen = length(key) 12714 if (S_is_set[key]) { 12715 value = S[key] 12716 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12717 len += length(value) + length(field[++i]) 12718 substed = 1 12719 } else 12720 len += 1 + keylen 12721 } 12722 12723 print line 12724} 12725 12726_ACAWK 12727_ACEOF 12728cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12729if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12730 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12731else 12732 cat 12733fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12734 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12735_ACEOF 12736 12737# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12738# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12739# trailing colons and then remove the whole line if VPATH becomes empty 12740# (actually we leave an empty line to preserve line numbers). 12741if test "x$srcdir" = x.; then 12742 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12743h 12744s/// 12745s/^/:/ 12746s/[ ]*$/:/ 12747s/:\$(srcdir):/:/g 12748s/:\${srcdir}:/:/g 12749s/:@srcdir@:/:/g 12750s/^:*// 12751s/:*$// 12752x 12753s/\(=[ ]*\).*/\1/ 12754G 12755s/\n// 12756s/^[^=]*=[ ]*$// 12757}' 12758fi 12759 12760cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12761fi # test -n "$CONFIG_FILES" 12762 12763# Set up the scripts for CONFIG_HEADERS section. 12764# No need to generate them if there are no CONFIG_HEADERS. 12765# This happens for instance with './config.status Makefile'. 12766if test -n "$CONFIG_HEADERS"; then 12767cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12768BEGIN { 12769_ACEOF 12770 12771# Transform confdefs.h into an awk script 'defines.awk', embedded as 12772# here-document in config.status, that substitutes the proper values into 12773# config.h.in to produce config.h. 12774 12775# Create a delimiter string that does not exist in confdefs.h, to ease 12776# handling of long lines. 12777ac_delim='%!_!# ' 12778for ac_last_try in false false :; do 12779 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12780 if test -z "$ac_tt"; then 12781 break 12782 elif $ac_last_try; then 12783 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12784 else 12785 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12786 fi 12787done 12788 12789# For the awk script, D is an array of macro values keyed by name, 12790# likewise P contains macro parameters if any. Preserve backslash 12791# newline sequences. 12792 12793ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12794sed -n ' 12795s/.\{148\}/&'"$ac_delim"'/g 12796t rset 12797:rset 12798s/^[ ]*#[ ]*define[ ][ ]*/ / 12799t def 12800d 12801:def 12802s/\\$// 12803t bsnl 12804s/["\\]/\\&/g 12805s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12806D["\1"]=" \3"/p 12807s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12808d 12809:bsnl 12810s/["\\]/\\&/g 12811s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12812D["\1"]=" \3\\\\\\n"\\/p 12813t cont 12814s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12815t cont 12816d 12817:cont 12818n 12819s/.\{148\}/&'"$ac_delim"'/g 12820t clear 12821:clear 12822s/\\$// 12823t bsnlc 12824s/["\\]/\\&/g; s/^/"/; s/$/"/p 12825d 12826:bsnlc 12827s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12828b cont 12829' <confdefs.h | sed ' 12830s/'"$ac_delim"'/"\\\ 12831"/g' >>$CONFIG_STATUS || ac_write_fail=1 12832 12833cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12834 for (key in D) D_is_set[key] = 1 12835 FS = "" 12836} 12837/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12838 line = \$ 0 12839 split(line, arg, " ") 12840 if (arg[1] == "#") { 12841 defundef = arg[2] 12842 mac1 = arg[3] 12843 } else { 12844 defundef = substr(arg[1], 2) 12845 mac1 = arg[2] 12846 } 12847 split(mac1, mac2, "(") #) 12848 macro = mac2[1] 12849 prefix = substr(line, 1, index(line, defundef) - 1) 12850 if (D_is_set[macro]) { 12851 # Preserve the white space surrounding the "#". 12852 print prefix "define", macro P[macro] D[macro] 12853 next 12854 } else { 12855 # Replace #undef with comments. This is necessary, for example, 12856 # in the case of _POSIX_SOURCE, which is predefined and required 12857 # on some systems where configure will not decide to define it. 12858 if (defundef == "undef") { 12859 print "/*", prefix defundef, macro, "*/" 12860 next 12861 } 12862 } 12863} 12864{ print } 12865_ACAWK 12866_ACEOF 12867cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12868 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12869fi # test -n "$CONFIG_HEADERS" 12870 12871 12872eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12873shift 12874for ac_tag 12875do 12876 case $ac_tag in 12877 :[FHLC]) ac_mode=$ac_tag; continue;; 12878 esac 12879 case $ac_mode$ac_tag in 12880 :[FHL]*:*);; 12881 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 12882 :[FH]-) ac_tag=-:-;; 12883 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12884 esac 12885 ac_save_IFS=$IFS 12886 IFS=: 12887 set x $ac_tag 12888 IFS=$ac_save_IFS 12889 shift 12890 ac_file=$1 12891 shift 12892 12893 case $ac_mode in 12894 :L) ac_source=$1;; 12895 :[FH]) 12896 ac_file_inputs= 12897 for ac_f 12898 do 12899 case $ac_f in 12900 -) ac_f="$ac_tmp/stdin";; 12901 *) # Look for the file first in the build tree, then in the source tree 12902 # (if the path is not absolute). The absolute path cannot be DOS-style, 12903 # because $ac_f cannot contain ':'. 12904 test -f "$ac_f" || 12905 case $ac_f in 12906 [\\/$]*) false;; 12907 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12908 esac || 12909 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 12910 esac 12911 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12912 as_fn_append ac_file_inputs " '$ac_f'" 12913 done 12914 12915 # Let's still pretend it is 'configure' which instantiates (i.e., don't 12916 # use $as_me), people would be surprised to read: 12917 # /* config.h. Generated by config.status. */ 12918 configure_input='Generated from '` 12919 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12920 `' by configure.' 12921 if test x"$ac_file" != x-; then 12922 configure_input="$ac_file. $configure_input" 12923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12924printf "%s\n" "$as_me: creating $ac_file" >&6;} 12925 fi 12926 # Neutralize special characters interpreted by sed in replacement strings. 12927 case $configure_input in #( 12928 *\&* | *\|* | *\\* ) 12929 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 12930 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12931 *) ac_sed_conf_input=$configure_input;; 12932 esac 12933 12934 case $ac_tag in 12935 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12936 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12937 esac 12938 ;; 12939 esac 12940 12941 ac_dir=`$as_dirname -- "$ac_file" || 12942$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12943 X"$ac_file" : 'X\(//\)[^/]' \| \ 12944 X"$ac_file" : 'X\(//\)$' \| \ 12945 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12946printf "%s\n" X"$ac_file" | 12947 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12948 s//\1/ 12949 q 12950 } 12951 /^X\(\/\/\)[^/].*/{ 12952 s//\1/ 12953 q 12954 } 12955 /^X\(\/\/\)$/{ 12956 s//\1/ 12957 q 12958 } 12959 /^X\(\/\).*/{ 12960 s//\1/ 12961 q 12962 } 12963 s/.*/./; q'` 12964 as_dir="$ac_dir"; as_fn_mkdir_p 12965 ac_builddir=. 12966 12967case "$ac_dir" in 12968.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12969*) 12970 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 12971 # A ".." for each directory in $ac_dir_suffix. 12972 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12973 case $ac_top_builddir_sub in 12974 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12975 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12976 esac ;; 12977esac 12978ac_abs_top_builddir=$ac_pwd 12979ac_abs_builddir=$ac_pwd$ac_dir_suffix 12980# for backward compatibility: 12981ac_top_builddir=$ac_top_build_prefix 12982 12983case $srcdir in 12984 .) # We are building in place. 12985 ac_srcdir=. 12986 ac_top_srcdir=$ac_top_builddir_sub 12987 ac_abs_top_srcdir=$ac_pwd ;; 12988 [\\/]* | ?:[\\/]* ) # Absolute name. 12989 ac_srcdir=$srcdir$ac_dir_suffix; 12990 ac_top_srcdir=$srcdir 12991 ac_abs_top_srcdir=$srcdir ;; 12992 *) # Relative name. 12993 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12994 ac_top_srcdir=$ac_top_build_prefix$srcdir 12995 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12996esac 12997ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12998 12999 13000 case $ac_mode in 13001 :F) 13002 # 13003 # CONFIG_FILE 13004 # 13005 13006 case $INSTALL in 13007 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13008 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13009 esac 13010 ac_MKDIR_P=$MKDIR_P 13011 case $MKDIR_P in 13012 [\\/$]* | ?:[\\/]* ) ;; 13013 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 13014 esac 13015_ACEOF 13016 13017cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13018# If the template does not know about datarootdir, expand it. 13019# FIXME: This hack should be removed a few years after 2.60. 13020ac_datarootdir_hack=; ac_datarootdir_seen= 13021ac_sed_dataroot=' 13022/datarootdir/ { 13023 p 13024 q 13025} 13026/@datadir@/p 13027/@docdir@/p 13028/@infodir@/p 13029/@localedir@/p 13030/@mandir@/p' 13031case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13032*datarootdir*) ac_datarootdir_seen=yes;; 13033*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13035printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13036_ACEOF 13037cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13038 ac_datarootdir_hack=' 13039 s&@datadir@&$datadir&g 13040 s&@docdir@&$docdir&g 13041 s&@infodir@&$infodir&g 13042 s&@localedir@&$localedir&g 13043 s&@mandir@&$mandir&g 13044 s&\\\${datarootdir}&$datarootdir&g' ;; 13045esac 13046_ACEOF 13047 13048# Neutralize VPATH when '$srcdir' = '.'. 13049# Shell code in configure.ac might set extrasub. 13050# FIXME: do we really want to maintain this feature? 13051cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13052ac_sed_extra="$ac_vpsub 13053$extrasub 13054_ACEOF 13055cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13056:t 13057/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13058s|@configure_input@|$ac_sed_conf_input|;t t 13059s&@top_builddir@&$ac_top_builddir_sub&;t t 13060s&@top_build_prefix@&$ac_top_build_prefix&;t t 13061s&@srcdir@&$ac_srcdir&;t t 13062s&@abs_srcdir@&$ac_abs_srcdir&;t t 13063s&@top_srcdir@&$ac_top_srcdir&;t t 13064s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13065s&@builddir@&$ac_builddir&;t t 13066s&@abs_builddir@&$ac_abs_builddir&;t t 13067s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13068s&@INSTALL@&$ac_INSTALL&;t t 13069s&@MKDIR_P@&$ac_MKDIR_P&;t t 13070$ac_datarootdir_hack 13071" 13072eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 13073 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13074 13075test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13076 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 13077 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 13078 "$ac_tmp/out"`; test -z "$ac_out"; } && 13079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 13080which seems to be undefined. Please make sure it is defined" >&5 13081printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 13082which seems to be undefined. Please make sure it is defined" >&2;} 13083 13084 rm -f "$ac_tmp/stdin" 13085 case $ac_file in 13086 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 13087 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 13088 esac \ 13089 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13090 ;; 13091 :H) 13092 # 13093 # CONFIG_HEADER 13094 # 13095 if test x"$ac_file" != x-; then 13096 { 13097 printf "%s\n" "/* $configure_input */" >&1 \ 13098 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 13099 } >"$ac_tmp/config.h" \ 13100 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13101 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 13102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13103printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 13104 else 13105 rm -f "$ac_file" 13106 mv "$ac_tmp/config.h" "$ac_file" \ 13107 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13108 fi 13109 else 13110 printf "%s\n" "/* $configure_input */" >&1 \ 13111 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 13112 || as_fn_error $? "could not create -" "$LINENO" 5 13113 fi 13114# Compute "$ac_file"'s index in $config_headers. 13115_am_arg="$ac_file" 13116_am_stamp_count=1 13117for _am_header in $config_headers :; do 13118 case $_am_header in 13119 $_am_arg | $_am_arg:* ) 13120 break ;; 13121 * ) 13122 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13123 esac 13124done 13125echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 13126$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13127 X"$_am_arg" : 'X\(//\)[^/]' \| \ 13128 X"$_am_arg" : 'X\(//\)$' \| \ 13129 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 13130printf "%s\n" X"$_am_arg" | 13131 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13132 s//\1/ 13133 q 13134 } 13135 /^X\(\/\/\)[^/].*/{ 13136 s//\1/ 13137 q 13138 } 13139 /^X\(\/\/\)$/{ 13140 s//\1/ 13141 q 13142 } 13143 /^X\(\/\).*/{ 13144 s//\1/ 13145 q 13146 } 13147 s/.*/./; q'`/stamp-h$_am_stamp_count 13148 ;; 13149 13150 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13151printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 13152 ;; 13153 esac 13154 13155 13156 case $ac_file$ac_mode in 13157 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13158 # Older Autoconf quotes --file arguments for eval, but not when files 13159 # are listed without --file. Let's play safe and only enable the eval 13160 # if we detect the quoting. 13161 # TODO: see whether this extra hack can be removed once we start 13162 # requiring Autoconf 2.70 or later. 13163 case $CONFIG_FILES in #( 13164 *\'*) : 13165 eval set x "$CONFIG_FILES" ;; #( 13166 *) : 13167 set x $CONFIG_FILES ;; #( 13168 *) : 13169 ;; 13170esac 13171 shift 13172 # Used to flag and report bootstrapping failures. 13173 am_rc=0 13174 for am_mf 13175 do 13176 # Strip MF so we end up with the name of the file. 13177 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 13178 # Check whether this is an Automake generated Makefile which includes 13179 # dependency-tracking related rules and includes. 13180 # Grep'ing the whole file directly is not great: AIX grep has a line 13181 # limit of 2048, but all sed's we know have understand at least 4000. 13182 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 13183 || continue 13184 am_dirpart=`$as_dirname -- "$am_mf" || 13185$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13186 X"$am_mf" : 'X\(//\)[^/]' \| \ 13187 X"$am_mf" : 'X\(//\)$' \| \ 13188 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13189printf "%s\n" X"$am_mf" | 13190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13191 s//\1/ 13192 q 13193 } 13194 /^X\(\/\/\)[^/].*/{ 13195 s//\1/ 13196 q 13197 } 13198 /^X\(\/\/\)$/{ 13199 s//\1/ 13200 q 13201 } 13202 /^X\(\/\).*/{ 13203 s//\1/ 13204 q 13205 } 13206 s/.*/./; q'` 13207 am_filepart=`$as_basename -- "$am_mf" || 13208$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 13209 X"$am_mf" : 'X\(//\)$' \| \ 13210 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13211printf "%s\n" X/"$am_mf" | 13212 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13213 s//\1/ 13214 q 13215 } 13216 /^X\/\(\/\/\)$/{ 13217 s//\1/ 13218 q 13219 } 13220 /^X\/\(\/\).*/{ 13221 s//\1/ 13222 q 13223 } 13224 s/.*/./; q'` 13225 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 13226 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13227 | $MAKE -f - am--depfiles" >&5 13228 (cd "$am_dirpart" \ 13229 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13230 | $MAKE -f - am--depfiles) >&5 2>&5 13231 ac_status=$? 13232 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13233 (exit $ac_status); } || am_rc=$? 13234 done 13235 if test $am_rc -ne 0; then 13236 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 13237printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 13238as_fn_error $? "Something went wrong bootstrapping makefile fragments 13239 for automatic dependency tracking. If GNU make was not used, consider 13240 re-running the configure script with MAKE=\"gmake\" (or whatever is 13241 necessary). You can also try re-running configure with the 13242 '--disable-dependency-tracking' option to at least be able to build 13243 the package (albeit without support for automatic dependency tracking). 13244See 'config.log' for more details" "$LINENO" 5; } 13245 fi 13246 { am_dirpart=; unset am_dirpart;} 13247 { am_filepart=; unset am_filepart;} 13248 { am_mf=; unset am_mf;} 13249 { am_rc=; unset am_rc;} 13250 rm -f conftest-deps.mk 13251} 13252 ;; 13253 13254 esac 13255done # for ac_tag 13256 13257 13258as_fn_exit 0 13259_ACEOF 13260ac_clean_files=$ac_clean_files_save 13261 13262test $ac_write_fail = 0 || 13263 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 13264 13265 13266# configure is writing to config.log, and then calls config.status. 13267# config.status does its own redirection, appending to config.log. 13268# Unfortunately, on DOS this fails, as config.log is still kept open 13269# by configure, so config.status won't be able to write to it; its 13270# output is simply discarded. So we exec the FD to /dev/null, 13271# effectively closing config.log, so it can be properly (re)opened and 13272# appended to by config.status. When coming back to configure, we 13273# need to make the FD available again. 13274if test "$no_create" != yes; then 13275 ac_cs_success=: 13276 ac_config_status_args= 13277 test "$silent" = yes && 13278 ac_config_status_args="$ac_config_status_args --quiet" 13279 exec 5>/dev/null 13280 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13281 exec 5>>config.log 13282 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13283 # would make configure fail if this is the last instruction. 13284 $ac_cs_success || as_fn_exit 1 13285fi 13286if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13288printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13289fi 13290 13291 13292