configure revision d73e0b87
1a73027baSmrg#! /bin/sh 2a73027baSmrg# Guess values for system-dependent variables and create Makefiles. 3d73e0b87Smrg# Generated by GNU Autoconf 2.69 for xinit 1.4.0. 4a73027baSmrg# 5a73027baSmrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6a73027baSmrg# 76f02d4e9Smrg# 87253c0c7Smrg# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 96f02d4e9Smrg# 106f02d4e9Smrg# 11a73027baSmrg# This configure script is free software; the Free Software Foundation 12a73027baSmrg# gives unlimited permission to copy, distribute and modify it. 136f02d4e9Smrg## -------------------- ## 146f02d4e9Smrg## M4sh Initialization. ## 156f02d4e9Smrg## -------------------- ## 16a73027baSmrg 17a73027baSmrg# Be more Bourne compatible 18a73027baSmrgDUALCASE=1; export DUALCASE # for MKS sh 196f02d4e9Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20a73027baSmrg emulate sh 21a73027baSmrg NULLCMD=: 226f02d4e9Smrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23a73027baSmrg # is contrary to our usage. Disable this feature. 24a73027baSmrg alias -g '${1+"$@"}'='"$@"' 25a73027baSmrg setopt NO_GLOB_SUBST 26a73027baSmrgelse 276f02d4e9Smrg case `(set -o) 2>/dev/null` in #( 286f02d4e9Smrg *posix*) : 296f02d4e9Smrg set -o posix ;; #( 306f02d4e9Smrg *) : 316f02d4e9Smrg ;; 32a73027baSmrgesac 33a73027baSmrgfi 34a73027baSmrg 35a73027baSmrg 366f02d4e9Smrgas_nl=' 376f02d4e9Smrg' 386f02d4e9Smrgexport as_nl 396f02d4e9Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 406f02d4e9Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 416f02d4e9Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 426f02d4e9Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 436f02d4e9Smrg# Prefer a ksh shell builtin over an external printf program on Solaris, 446f02d4e9Smrg# but without wasting forks for bash or zsh. 456f02d4e9Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \ 466f02d4e9Smrg && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 476f02d4e9Smrg as_echo='print -r --' 486f02d4e9Smrg as_echo_n='print -rn --' 496f02d4e9Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 506f02d4e9Smrg as_echo='printf %s\n' 516f02d4e9Smrg as_echo_n='printf %s' 526f02d4e9Smrgelse 536f02d4e9Smrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 546f02d4e9Smrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 556f02d4e9Smrg as_echo_n='/usr/ucb/echo -n' 56a73027baSmrg else 576f02d4e9Smrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 586f02d4e9Smrg as_echo_n_body='eval 596f02d4e9Smrg arg=$1; 606f02d4e9Smrg case $arg in #( 616f02d4e9Smrg *"$as_nl"*) 626f02d4e9Smrg expr "X$arg" : "X\\(.*\\)$as_nl"; 636f02d4e9Smrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 646f02d4e9Smrg esac; 656f02d4e9Smrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 666f02d4e9Smrg ' 676f02d4e9Smrg export as_echo_n_body 686f02d4e9Smrg as_echo_n='sh -c $as_echo_n_body as_echo' 69a73027baSmrg fi 706f02d4e9Smrg export as_echo_body 716f02d4e9Smrg as_echo='sh -c $as_echo_body as_echo' 72a73027baSmrgfi 73a73027baSmrg 746f02d4e9Smrg# The user is always right. 756f02d4e9Smrgif test "${PATH_SEPARATOR+set}" != set; then 766f02d4e9Smrg PATH_SEPARATOR=: 776f02d4e9Smrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 786f02d4e9Smrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 796f02d4e9Smrg PATH_SEPARATOR=';' 806f02d4e9Smrg } 81a73027baSmrgfi 82a73027baSmrg 83a73027baSmrg 84a73027baSmrg# IFS 85a73027baSmrg# We need space, tab and new line, in precisely that order. Quoting is 86a73027baSmrg# there to prevent editors from complaining about space-tab. 87a73027baSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88a73027baSmrg# splitting by setting IFS to empty value.) 89a73027baSmrgIFS=" "" $as_nl" 90a73027baSmrg 91a73027baSmrg# Find who we are. Look in the path if we contain no directory separator. 926f02d4e9Smrgas_myself= 936f02d4e9Smrgcase $0 in #(( 94a73027baSmrg *[\\/]* ) as_myself=$0 ;; 95a73027baSmrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96a73027baSmrgfor as_dir in $PATH 97a73027baSmrgdo 98a73027baSmrg IFS=$as_save_IFS 99a73027baSmrg test -z "$as_dir" && as_dir=. 1006f02d4e9Smrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 1016f02d4e9Smrg done 102a73027baSmrgIFS=$as_save_IFS 103a73027baSmrg 104a73027baSmrg ;; 105a73027baSmrgesac 106a73027baSmrg# We did not find ourselves, most probably we were run as `sh COMMAND' 107a73027baSmrg# in which case we are not to be found in the path. 108a73027baSmrgif test "x$as_myself" = x; then 109a73027baSmrg as_myself=$0 110a73027baSmrgfi 111a73027baSmrgif test ! -f "$as_myself"; then 1126f02d4e9Smrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 1136f02d4e9Smrg exit 1 114a73027baSmrgfi 115a73027baSmrg 1166f02d4e9Smrg# Unset variables that we do not need and which cause bugs (e.g. in 1176f02d4e9Smrg# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 1186f02d4e9Smrg# suppresses any "Segmentation fault" message there. '((' could 1196f02d4e9Smrg# trigger a bug in pdksh 5.2.14. 1206f02d4e9Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH 1216f02d4e9Smrgdo eval test x\${$as_var+set} = xset \ 1226f02d4e9Smrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123a73027baSmrgdone 124a73027baSmrgPS1='$ ' 125a73027baSmrgPS2='> ' 126a73027baSmrgPS4='+ ' 127a73027baSmrg 128a73027baSmrg# NLS nuisances. 1296f02d4e9SmrgLC_ALL=C 1306f02d4e9Smrgexport LC_ALL 1316f02d4e9SmrgLANGUAGE=C 1326f02d4e9Smrgexport LANGUAGE 133a73027baSmrg 13421212451Smrg# CDPATH. 1356f02d4e9Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136a73027baSmrg 1377253c0c7Smrg# Use a proper internal environment variable to ensure we don't fall 1387253c0c7Smrg # into an infinite loop, continuously re-executing ourselves. 1397253c0c7Smrg if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 1407253c0c7Smrg _as_can_reexec=no; export _as_can_reexec; 1417253c0c7Smrg # We cannot yet assume a decent shell, so we have to provide a 1427253c0c7Smrg# neutralization value for shells without unset; and this also 1437253c0c7Smrg# works around shells that cannot unset nonexistent variables. 1447253c0c7Smrg# Preserve -v and -x to the replacement shell. 1457253c0c7SmrgBASH_ENV=/dev/null 1467253c0c7SmrgENV=/dev/null 1477253c0c7Smrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 1487253c0c7Smrgcase $- in # (((( 1497253c0c7Smrg *v*x* | *x*v* ) as_opts=-vx ;; 1507253c0c7Smrg *v* ) as_opts=-v ;; 1517253c0c7Smrg *x* ) as_opts=-x ;; 1527253c0c7Smrg * ) as_opts= ;; 1537253c0c7Smrgesac 1547253c0c7Smrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 1557253c0c7Smrg# Admittedly, this is quite paranoid, since all the known shells bail 1567253c0c7Smrg# out after a failed `exec'. 1577253c0c7Smrg$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 1587253c0c7Smrgas_fn_exit 255 1597253c0c7Smrg fi 1607253c0c7Smrg # We don't want this to propagate to other subprocesses. 1617253c0c7Smrg { _as_can_reexec=; unset _as_can_reexec;} 16221212451Smrgif test "x$CONFIG_SHELL" = x; then 1636f02d4e9Smrg as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 1646f02d4e9Smrg emulate sh 1656f02d4e9Smrg NULLCMD=: 1666f02d4e9Smrg # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 1676f02d4e9Smrg # is contrary to our usage. Disable this feature. 1686f02d4e9Smrg alias -g '\${1+\"\$@\"}'='\"\$@\"' 1696f02d4e9Smrg setopt NO_GLOB_SUBST 17021212451Smrgelse 1716f02d4e9Smrg case \`(set -o) 2>/dev/null\` in #( 1726f02d4e9Smrg *posix*) : 1736f02d4e9Smrg set -o posix ;; #( 1746f02d4e9Smrg *) : 1756f02d4e9Smrg ;; 1766f02d4e9Smrgesac 17721212451Smrgfi 1786f02d4e9Smrg" 1796f02d4e9Smrg as_required="as_fn_return () { (exit \$1); } 1806f02d4e9Smrgas_fn_success () { as_fn_return 0; } 1816f02d4e9Smrgas_fn_failure () { as_fn_return 1; } 1826f02d4e9Smrgas_fn_ret_success () { return 0; } 1836f02d4e9Smrgas_fn_ret_failure () { return 1; } 184a73027baSmrg 18521212451Smrgexitcode=0 1866f02d4e9Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; } 1876f02d4e9Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 1886f02d4e9Smrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 1896f02d4e9Smrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 1906f02d4e9Smrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 1916f02d4e9Smrg 1926f02d4e9Smrgelse 1936f02d4e9Smrg exitcode=1; echo positional parameters were not saved. 1946f02d4e9Smrgfi 1957253c0c7Smrgtest x\$exitcode = x0 || exit 1 1967253c0c7Smrgtest -x / || exit 1" 1976f02d4e9Smrg as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 1986f02d4e9Smrg as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 1996f02d4e9Smrg eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 2006f02d4e9Smrg test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 2016f02d4e9Smrgtest \$(( 1 + 1 )) = 2 || exit 1" 2026f02d4e9Smrg if (eval "$as_required") 2>/dev/null; then : 2036f02d4e9Smrg as_have_required=yes 204a73027baSmrgelse 2056f02d4e9Smrg as_have_required=no 206a73027baSmrgfi 2076f02d4e9Smrg if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 208a73027baSmrg 20921212451Smrgelse 2106f02d4e9Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2116f02d4e9Smrgas_found=false 21221212451Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 21321212451Smrgdo 21421212451Smrg IFS=$as_save_IFS 21521212451Smrg test -z "$as_dir" && as_dir=. 2166f02d4e9Smrg as_found=: 2176f02d4e9Smrg case $as_dir in #( 21821212451Smrg /*) 21921212451Smrg for as_base in sh bash ksh sh5; do 2206f02d4e9Smrg # Try only shells that exist, to save several forks. 2216f02d4e9Smrg as_shell=$as_dir/$as_base 2226f02d4e9Smrg if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 2236f02d4e9Smrg { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 2246f02d4e9Smrg CONFIG_SHELL=$as_shell as_have_required=yes 2256f02d4e9Smrg if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 2266f02d4e9Smrg break 2 2276f02d4e9Smrgfi 2286f02d4e9Smrgfi 22921212451Smrg done;; 23021212451Smrg esac 2316f02d4e9Smrg as_found=false 23221212451Smrgdone 2336f02d4e9Smrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 2346f02d4e9Smrg { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 2356f02d4e9Smrg CONFIG_SHELL=$SHELL as_have_required=yes 2366f02d4e9Smrgfi; } 23721212451SmrgIFS=$as_save_IFS 238a73027baSmrg 239a73027baSmrg 2406f02d4e9Smrg if test "x$CONFIG_SHELL" != x; then : 2417253c0c7Smrg export CONFIG_SHELL 2427253c0c7Smrg # We cannot yet assume a decent shell, so we have to provide a 2437253c0c7Smrg# neutralization value for shells without unset; and this also 2447253c0c7Smrg# works around shells that cannot unset nonexistent variables. 2457253c0c7Smrg# Preserve -v and -x to the replacement shell. 2467253c0c7SmrgBASH_ENV=/dev/null 2477253c0c7SmrgENV=/dev/null 2487253c0c7Smrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 2497253c0c7Smrgcase $- in # (((( 2507253c0c7Smrg *v*x* | *x*v* ) as_opts=-vx ;; 2517253c0c7Smrg *v* ) as_opts=-v ;; 2527253c0c7Smrg *x* ) as_opts=-x ;; 2537253c0c7Smrg * ) as_opts= ;; 2547253c0c7Smrgesac 2557253c0c7Smrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 2567253c0c7Smrg# Admittedly, this is quite paranoid, since all the known shells bail 2577253c0c7Smrg# out after a failed `exec'. 2587253c0c7Smrg$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 2597253c0c7Smrgexit 255 26021212451Smrgfi 261a73027baSmrg 2626f02d4e9Smrg if test x$as_have_required = xno; then : 2636f02d4e9Smrg $as_echo "$0: This script requires a shell more modern than all" 2646f02d4e9Smrg $as_echo "$0: the shells that I found on your system." 2656f02d4e9Smrg if test x${ZSH_VERSION+set} = xset ; then 2666f02d4e9Smrg $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 2676f02d4e9Smrg $as_echo "$0: be upgraded to zsh 4.3.4 or later." 2686f02d4e9Smrg else 2696f02d4e9Smrg $as_echo "$0: Please tell bug-autoconf@gnu.org and 2706f02d4e9Smrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 2716f02d4e9Smrg$0: about your system, including any error possibly output 2726f02d4e9Smrg$0: before this message. Then install a modern shell, or 2736f02d4e9Smrg$0: manually run the script under such a shell if you do 2746f02d4e9Smrg$0: have one." 2756f02d4e9Smrg fi 2766f02d4e9Smrg exit 1 27721212451Smrgfi 2786f02d4e9Smrgfi 2796f02d4e9Smrgfi 2806f02d4e9SmrgSHELL=${CONFIG_SHELL-/bin/sh} 2816f02d4e9Smrgexport SHELL 2826f02d4e9Smrg# Unset more variables known to interfere with behavior of common tools. 2836f02d4e9SmrgCLICOLOR_FORCE= GREP_OPTIONS= 2846f02d4e9Smrgunset CLICOLOR_FORCE GREP_OPTIONS 28521212451Smrg 2866f02d4e9Smrg## --------------------- ## 2876f02d4e9Smrg## M4sh Shell Functions. ## 2886f02d4e9Smrg## --------------------- ## 2896f02d4e9Smrg# as_fn_unset VAR 2906f02d4e9Smrg# --------------- 2916f02d4e9Smrg# Portably unset VAR. 2926f02d4e9Smrgas_fn_unset () 2936f02d4e9Smrg{ 2946f02d4e9Smrg { eval $1=; unset $1;} 29521212451Smrg} 2966f02d4e9Smrgas_unset=as_fn_unset 29721212451Smrg 2986f02d4e9Smrg# as_fn_set_status STATUS 2996f02d4e9Smrg# ----------------------- 3006f02d4e9Smrg# Set $? to STATUS, without forking. 3016f02d4e9Smrgas_fn_set_status () 3026f02d4e9Smrg{ 3036f02d4e9Smrg return $1 3046f02d4e9Smrg} # as_fn_set_status 30521212451Smrg 3066f02d4e9Smrg# as_fn_exit STATUS 3076f02d4e9Smrg# ----------------- 3086f02d4e9Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 3096f02d4e9Smrgas_fn_exit () 3106f02d4e9Smrg{ 3116f02d4e9Smrg set +e 3126f02d4e9Smrg as_fn_set_status $1 3136f02d4e9Smrg exit $1 3146f02d4e9Smrg} # as_fn_exit 3156f02d4e9Smrg 3166f02d4e9Smrg# as_fn_mkdir_p 3176f02d4e9Smrg# ------------- 3186f02d4e9Smrg# Create "$as_dir" as a directory, including parents if necessary. 3196f02d4e9Smrgas_fn_mkdir_p () 3206f02d4e9Smrg{ 32121212451Smrg 3226f02d4e9Smrg case $as_dir in #( 3236f02d4e9Smrg -*) as_dir=./$as_dir;; 3246f02d4e9Smrg esac 3256f02d4e9Smrg test -d "$as_dir" || eval $as_mkdir_p || { 3266f02d4e9Smrg as_dirs= 3276f02d4e9Smrg while :; do 3286f02d4e9Smrg case $as_dir in #( 3296f02d4e9Smrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 3306f02d4e9Smrg *) as_qdir=$as_dir;; 3316f02d4e9Smrg esac 3326f02d4e9Smrg as_dirs="'$as_qdir' $as_dirs" 3336f02d4e9Smrg as_dir=`$as_dirname -- "$as_dir" || 3346f02d4e9Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 3356f02d4e9Smrg X"$as_dir" : 'X\(//\)[^/]' \| \ 3366f02d4e9Smrg X"$as_dir" : 'X\(//\)$' \| \ 3376f02d4e9Smrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 3386f02d4e9Smrg$as_echo X"$as_dir" | 3396f02d4e9Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 3406f02d4e9Smrg s//\1/ 3416f02d4e9Smrg q 3426f02d4e9Smrg } 3436f02d4e9Smrg /^X\(\/\/\)[^/].*/{ 3446f02d4e9Smrg s//\1/ 3456f02d4e9Smrg q 3466f02d4e9Smrg } 3476f02d4e9Smrg /^X\(\/\/\)$/{ 3486f02d4e9Smrg s//\1/ 3496f02d4e9Smrg q 3506f02d4e9Smrg } 3516f02d4e9Smrg /^X\(\/\).*/{ 3526f02d4e9Smrg s//\1/ 3536f02d4e9Smrg q 3546f02d4e9Smrg } 3556f02d4e9Smrg s/.*/./; q'` 3566f02d4e9Smrg test -d "$as_dir" && break 3576f02d4e9Smrg done 3586f02d4e9Smrg test -z "$as_dirs" || eval "mkdir $as_dirs" 3596f02d4e9Smrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 3606f02d4e9Smrg 3616f02d4e9Smrg 3626f02d4e9Smrg} # as_fn_mkdir_p 3637253c0c7Smrg 3647253c0c7Smrg# as_fn_executable_p FILE 3657253c0c7Smrg# ----------------------- 3667253c0c7Smrg# Test if FILE is an executable regular file. 3677253c0c7Smrgas_fn_executable_p () 3687253c0c7Smrg{ 3697253c0c7Smrg test -f "$1" && test -x "$1" 3707253c0c7Smrg} # as_fn_executable_p 3716f02d4e9Smrg# as_fn_append VAR VALUE 3726f02d4e9Smrg# ---------------------- 3736f02d4e9Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take 3746f02d4e9Smrg# advantage of any shell optimizations that allow amortized linear growth over 3756f02d4e9Smrg# repeated appends, instead of the typical quadratic growth present in naive 3766f02d4e9Smrg# implementations. 3776f02d4e9Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 3786f02d4e9Smrg eval 'as_fn_append () 3796f02d4e9Smrg { 3806f02d4e9Smrg eval $1+=\$2 3816f02d4e9Smrg }' 38221212451Smrgelse 3836f02d4e9Smrg as_fn_append () 3846f02d4e9Smrg { 3856f02d4e9Smrg eval $1=\$$1\$2 3866f02d4e9Smrg } 3876f02d4e9Smrgfi # as_fn_append 3886f02d4e9Smrg 3896f02d4e9Smrg# as_fn_arith ARG... 3906f02d4e9Smrg# ------------------ 3916f02d4e9Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the 3926f02d4e9Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 3936f02d4e9Smrg# must be portable across $(()) and expr. 3946f02d4e9Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 3956f02d4e9Smrg eval 'as_fn_arith () 3966f02d4e9Smrg { 3976f02d4e9Smrg as_val=$(( $* )) 3986f02d4e9Smrg }' 39921212451Smrgelse 4006f02d4e9Smrg as_fn_arith () 4016f02d4e9Smrg { 4026f02d4e9Smrg as_val=`expr "$@" || test $? -eq 1` 4036f02d4e9Smrg } 4046f02d4e9Smrgfi # as_fn_arith 40521212451Smrg 40621212451Smrg 4076f02d4e9Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 4086f02d4e9Smrg# ---------------------------------------- 4096f02d4e9Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 4106f02d4e9Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 4116f02d4e9Smrg# script with STATUS, using 1 if that was 0. 4126f02d4e9Smrgas_fn_error () 4136f02d4e9Smrg{ 4146f02d4e9Smrg as_status=$1; test $as_status -eq 0 && as_status=1 4156f02d4e9Smrg if test "$4"; then 4166f02d4e9Smrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 4176f02d4e9Smrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 4186f02d4e9Smrg fi 4196f02d4e9Smrg $as_echo "$as_me: error: $2" >&2 4206f02d4e9Smrg as_fn_exit $as_status 4216f02d4e9Smrg} # as_fn_error 42221212451Smrg 4236f02d4e9Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 4246f02d4e9Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 4256f02d4e9Smrg as_expr=expr 42621212451Smrgelse 4276f02d4e9Smrg as_expr=false 42821212451Smrgfi 42921212451Smrg 4306f02d4e9Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 4316f02d4e9Smrg as_basename=basename 43221212451Smrgelse 4336f02d4e9Smrg as_basename=false 43421212451Smrgfi 43521212451Smrg 4366f02d4e9Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 4376f02d4e9Smrg as_dirname=dirname 43821212451Smrgelse 4396f02d4e9Smrg as_dirname=false 44021212451Smrgfi 44121212451Smrg 4426f02d4e9Smrgas_me=`$as_basename -- "$0" || 4436f02d4e9Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 4446f02d4e9Smrg X"$0" : 'X\(//\)$' \| \ 4456f02d4e9Smrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 4466f02d4e9Smrg$as_echo X/"$0" | 4476f02d4e9Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 4486f02d4e9Smrg s//\1/ 4496f02d4e9Smrg q 4506f02d4e9Smrg } 4516f02d4e9Smrg /^X\/\(\/\/\)$/{ 4526f02d4e9Smrg s//\1/ 4536f02d4e9Smrg q 4546f02d4e9Smrg } 4556f02d4e9Smrg /^X\/\(\/\).*/{ 4566f02d4e9Smrg s//\1/ 4576f02d4e9Smrg q 4586f02d4e9Smrg } 4596f02d4e9Smrg s/.*/./; q'` 46021212451Smrg 4616f02d4e9Smrg# Avoid depending upon Character Ranges. 4626f02d4e9Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 4636f02d4e9Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 4646f02d4e9Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 4656f02d4e9Smrgas_cr_digits='0123456789' 4666f02d4e9Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits 46721212451Smrg 46821212451Smrg 4696f02d4e9Smrg as_lineno_1=$LINENO as_lineno_1a=$LINENO 4706f02d4e9Smrg as_lineno_2=$LINENO as_lineno_2a=$LINENO 4716f02d4e9Smrg eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 4726f02d4e9Smrg test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 4736f02d4e9Smrg # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 47421212451Smrg sed -n ' 47521212451Smrg p 47621212451Smrg /[$]LINENO/= 47721212451Smrg ' <$as_myself | 47821212451Smrg sed ' 47921212451Smrg s/[$]LINENO.*/&-/ 48021212451Smrg t lineno 48121212451Smrg b 48221212451Smrg :lineno 48321212451Smrg N 48421212451Smrg :loop 48521212451Smrg s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 48621212451Smrg t loop 48721212451Smrg s/-\n.*// 48821212451Smrg ' >$as_me.lineno && 48921212451Smrg chmod +x "$as_me.lineno" || 4906f02d4e9Smrg { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 49121212451Smrg 4927253c0c7Smrg # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 4937253c0c7Smrg # already done that, so ensure we don't try to do so again and fall 4947253c0c7Smrg # in an infinite loop. This has already happened in practice. 4957253c0c7Smrg _as_can_reexec=no; export _as_can_reexec 49621212451Smrg # Don't try to exec as it changes $[0], causing all sort of problems 49721212451Smrg # (the dirname of $[0] is not the place where we might find the 49821212451Smrg # original and so on. Autoconf is especially sensitive to this). 49921212451Smrg . "./$as_me.lineno" 50021212451Smrg # Exit status is that of the last command. 50121212451Smrg exit 50221212451Smrg} 50321212451Smrg 50421212451SmrgECHO_C= ECHO_N= ECHO_T= 5056f02d4e9Smrgcase `echo -n x` in #((((( 50621212451Smrg-n*) 5076f02d4e9Smrg case `echo 'xy\c'` in 50821212451Smrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 5096f02d4e9Smrg xy) ECHO_C='\c';; 5106f02d4e9Smrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 5116f02d4e9Smrg ECHO_T=' ';; 51221212451Smrg esac;; 51321212451Smrg*) 51421212451Smrg ECHO_N='-n';; 51521212451Smrgesac 51621212451Smrg 51721212451Smrgrm -f conf$$ conf$$.exe conf$$.file 51821212451Smrgif test -d conf$$.dir; then 51921212451Smrg rm -f conf$$.dir/conf$$.file 52021212451Smrgelse 52121212451Smrg rm -f conf$$.dir 5226f02d4e9Smrg mkdir conf$$.dir 2>/dev/null 5236f02d4e9Smrgfi 5246f02d4e9Smrgif (echo >conf$$.file) 2>/dev/null; then 5256f02d4e9Smrg if ln -s conf$$.file conf$$ 2>/dev/null; then 5266f02d4e9Smrg as_ln_s='ln -s' 5276f02d4e9Smrg # ... but there are two gotchas: 5286f02d4e9Smrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 5296f02d4e9Smrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 5307253c0c7Smrg # In both cases, we have to default to `cp -pR'. 5316f02d4e9Smrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 5327253c0c7Smrg as_ln_s='cp -pR' 5336f02d4e9Smrg elif ln conf$$.file conf$$ 2>/dev/null; then 5346f02d4e9Smrg as_ln_s=ln 5356f02d4e9Smrg else 5367253c0c7Smrg as_ln_s='cp -pR' 5376f02d4e9Smrg fi 53821212451Smrgelse 5397253c0c7Smrg as_ln_s='cp -pR' 54021212451Smrgfi 54121212451Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 54221212451Smrgrmdir conf$$.dir 2>/dev/null 54321212451Smrg 54421212451Smrgif mkdir -p . 2>/dev/null; then 5456f02d4e9Smrg as_mkdir_p='mkdir -p "$as_dir"' 54621212451Smrgelse 54721212451Smrg test -d ./-p && rmdir ./-p 54821212451Smrg as_mkdir_p=false 54921212451Smrgfi 55021212451Smrg 5517253c0c7Smrgas_test_x='test -x' 5527253c0c7Smrgas_executable_p=as_fn_executable_p 55321212451Smrg 55421212451Smrg# Sed expression to map a string onto a valid CPP name. 55521212451Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 55621212451Smrg 55721212451Smrg# Sed expression to map a string onto a valid variable name. 55821212451Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 55921212451Smrg 56021212451Smrg 5616f02d4e9Smrgtest -n "$DJDIR" || exec 7<&0 </dev/null 5626f02d4e9Smrgexec 6>&1 56321212451Smrg 56421212451Smrg# Name of the host. 5656f02d4e9Smrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 56621212451Smrg# so uname gets run too. 56721212451Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 56821212451Smrg 56921212451Smrg# 57021212451Smrg# Initializations. 57121212451Smrg# 57221212451Smrgac_default_prefix=/usr/local 57321212451Smrgac_clean_files= 57421212451Smrgac_config_libobj_dir=. 57521212451SmrgLIBOBJS= 57621212451Smrgcross_compiling=no 57721212451Smrgsubdirs= 57821212451SmrgMFLAGS= 57921212451SmrgMAKEFLAGS= 58021212451Smrg 58121212451Smrg# Identity of this package. 582a73027baSmrgPACKAGE_NAME='xinit' 583a73027baSmrgPACKAGE_TARNAME='xinit' 584d73e0b87SmrgPACKAGE_VERSION='1.4.0' 585d73e0b87SmrgPACKAGE_STRING='xinit 1.4.0' 586a73027baSmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 5876f02d4e9SmrgPACKAGE_URL='' 588a73027baSmrg 589c81d8f5eSmrgac_unique_file="Makefile.am" 590a73027baSmrg# Factoring default headers for most tests. 591a73027baSmrgac_includes_default="\ 592a73027baSmrg#include <stdio.h> 593a73027baSmrg#ifdef HAVE_SYS_TYPES_H 594a73027baSmrg# include <sys/types.h> 595a73027baSmrg#endif 596a73027baSmrg#ifdef HAVE_SYS_STAT_H 597a73027baSmrg# include <sys/stat.h> 598a73027baSmrg#endif 599a73027baSmrg#ifdef STDC_HEADERS 600a73027baSmrg# include <stdlib.h> 601a73027baSmrg# include <stddef.h> 602a73027baSmrg#else 603a73027baSmrg# ifdef HAVE_STDLIB_H 604a73027baSmrg# include <stdlib.h> 605a73027baSmrg# endif 606a73027baSmrg#endif 607a73027baSmrg#ifdef HAVE_STRING_H 608a73027baSmrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 609a73027baSmrg# include <memory.h> 610a73027baSmrg# endif 611a73027baSmrg# include <string.h> 612a73027baSmrg#endif 613a73027baSmrg#ifdef HAVE_STRINGS_H 614a73027baSmrg# include <strings.h> 615a73027baSmrg#endif 616a73027baSmrg#ifdef HAVE_INTTYPES_H 617a73027baSmrg# include <inttypes.h> 618a73027baSmrg#endif 619a73027baSmrg#ifdef HAVE_STDINT_H 620a73027baSmrg# include <stdint.h> 621a73027baSmrg#endif 622a73027baSmrg#ifdef HAVE_UNISTD_H 623a73027baSmrg# include <unistd.h> 624a73027baSmrg#endif" 625a73027baSmrg 6266f02d4e9Smrgac_subst_vars='am__EXEEXT_FALSE 6276f02d4e9Smrgam__EXEEXT_TRUE 6286f02d4e9SmrgLTLIBOBJS 6296f02d4e9SmrgLIBOBJS 6306f02d4e9SmrgXINITDIR 6316f02d4e9SmrgXINIT 6326f02d4e9SmrgXAUTH 6336f02d4e9SmrgXSERVER 6346f02d4e9SmrgXTERM 6356f02d4e9SmrgXCLOCK 6366f02d4e9SmrgTWM 6376f02d4e9SmrgXMODMAP 6386f02d4e9SmrgXRDB 6396f02d4e9SmrgXCONFIGFILEMAN 6406f02d4e9SmrgXCONFIGFILE 6416f02d4e9SmrgXSERVERNAME 6426f02d4e9SmrgSHELL_CMD 6436f02d4e9SmrgSTARTX_COOKIE_FLAGS 6446f02d4e9SmrgOPENSSL 6456f02d4e9SmrgMCOOKIE 6466f02d4e9SmrgXINIT_LIBS 6476f02d4e9SmrgXINIT_CFLAGS 6486f02d4e9SmrgLAUNCHAGENT_XSERVER_FALSE 6496f02d4e9SmrgLAUNCHAGENT_XSERVER_TRUE 6506f02d4e9SmrgTIGER_LAUNCHD_FALSE 6516f02d4e9SmrgTIGER_LAUNCHD_TRUE 6526f02d4e9SmrgLAUNCHD_FALSE 6536f02d4e9SmrgLAUNCHD_TRUE 6546f02d4e9Smrglaunchagentxserver 6556f02d4e9Smrgbundleidprefix 6566f02d4e9Smrglaunchdaemonsdir 6576f02d4e9Smrglaunchagentsdir 6586f02d4e9SmrgLAUNCHD 6597253c0c7SmrgTRADITIONALCPPFLAGS 6606f02d4e9SmrgRAWCPPFLAGS 6616f02d4e9SmrgRAWCPP 66221212451SmrgMAN_SUBSTS 6636f02d4e9SmrgXORG_MAN_PAGE 6646f02d4e9SmrgADMIN_MAN_DIR 6656f02d4e9SmrgDRIVER_MAN_DIR 6666f02d4e9SmrgMISC_MAN_DIR 6676f02d4e9SmrgFILE_MAN_DIR 6686f02d4e9SmrgLIB_MAN_DIR 6696f02d4e9SmrgAPP_MAN_DIR 6706f02d4e9SmrgADMIN_MAN_SUFFIX 6716f02d4e9SmrgDRIVER_MAN_SUFFIX 6726f02d4e9SmrgMISC_MAN_SUFFIX 6736f02d4e9SmrgFILE_MAN_SUFFIX 6746f02d4e9SmrgLIB_MAN_SUFFIX 6756f02d4e9SmrgAPP_MAN_SUFFIX 6766f02d4e9SmrgSED 6776f02d4e9Smrghost_os 6786f02d4e9Smrghost_vendor 6796f02d4e9Smrghost_cpu 6806f02d4e9Smrghost 6816f02d4e9Smrgbuild_os 6826f02d4e9Smrgbuild_vendor 6836f02d4e9Smrgbuild_cpu 6846f02d4e9Smrgbuild 6856f02d4e9SmrgINSTALL_CMD 6867253c0c7SmrgPKG_CONFIG_LIBDIR 6877253c0c7SmrgPKG_CONFIG_PATH 6886f02d4e9SmrgPKG_CONFIG 6896f02d4e9SmrgCHANGELOG_CMD 6906f02d4e9SmrgSTRICT_CFLAGS 6916f02d4e9SmrgCWARNFLAGS 6926f02d4e9SmrgBASE_CFLAGS 6936f02d4e9SmrgEGREP 6946f02d4e9SmrgGREP 6956f02d4e9SmrgCPP 6966f02d4e9Smrgam__fastdepCC_FALSE 6976f02d4e9Smrgam__fastdepCC_TRUE 6986f02d4e9SmrgCCDEPMODE 6996f02d4e9Smrgam__nodep 7006f02d4e9SmrgAMDEPBACKSLASH 7016f02d4e9SmrgAMDEP_FALSE 7026f02d4e9SmrgAMDEP_TRUE 7036f02d4e9Smrgam__quote 7046f02d4e9Smrgam__include 7056f02d4e9SmrgDEPDIR 7066f02d4e9SmrgOBJEXT 7076f02d4e9SmrgEXEEXT 7086f02d4e9Smrgac_ct_CC 7096f02d4e9SmrgCPPFLAGS 7106f02d4e9SmrgLDFLAGS 7116f02d4e9SmrgCFLAGS 7126f02d4e9SmrgCC 7136f02d4e9SmrgAM_BACKSLASH 71421212451SmrgAM_DEFAULT_VERBOSITY 7156f02d4e9SmrgAM_DEFAULT_V 7166f02d4e9SmrgAM_V 7176f02d4e9Smrgam__untar 7186f02d4e9Smrgam__tar 7196f02d4e9SmrgAMTAR 7206f02d4e9Smrgam__leading_dot 7216f02d4e9SmrgSET_MAKE 7226f02d4e9SmrgAWK 7236f02d4e9Smrgmkdir_p 7246f02d4e9SmrgMKDIR_P 7256f02d4e9SmrgINSTALL_STRIP_PROGRAM 7266f02d4e9SmrgSTRIP 7276f02d4e9Smrginstall_sh 7286f02d4e9SmrgMAKEINFO 7296f02d4e9SmrgAUTOHEADER 7306f02d4e9SmrgAUTOMAKE 7316f02d4e9SmrgAUTOCONF 7326f02d4e9SmrgACLOCAL 7336f02d4e9SmrgVERSION 7346f02d4e9SmrgPACKAGE 7356f02d4e9SmrgCYGPATH_W 7366f02d4e9Smrgam__isrc 7376f02d4e9SmrgINSTALL_DATA 7386f02d4e9SmrgINSTALL_SCRIPT 7396f02d4e9SmrgINSTALL_PROGRAM 7406f02d4e9Smrgtarget_alias 7416f02d4e9Smrghost_alias 7426f02d4e9Smrgbuild_alias 7436f02d4e9SmrgLIBS 7446f02d4e9SmrgECHO_T 7456f02d4e9SmrgECHO_N 7466f02d4e9SmrgECHO_C 7476f02d4e9SmrgDEFS 7486f02d4e9Smrgmandir 7496f02d4e9Smrglocaledir 7506f02d4e9Smrglibdir 7516f02d4e9Smrgpsdir 7526f02d4e9Smrgpdfdir 7536f02d4e9Smrgdvidir 7546f02d4e9Smrghtmldir 7556f02d4e9Smrginfodir 7566f02d4e9Smrgdocdir 7576f02d4e9Smrgoldincludedir 7586f02d4e9Smrgincludedir 7596f02d4e9Smrglocalstatedir 7606f02d4e9Smrgsharedstatedir 7616f02d4e9Smrgsysconfdir 7626f02d4e9Smrgdatadir 7636f02d4e9Smrgdatarootdir 7646f02d4e9Smrglibexecdir 7656f02d4e9Smrgsbindir 7666f02d4e9Smrgbindir 7676f02d4e9Smrgprogram_transform_name 7686f02d4e9Smrgprefix 7696f02d4e9Smrgexec_prefix 7706f02d4e9SmrgPACKAGE_URL 7716f02d4e9SmrgPACKAGE_BUGREPORT 7726f02d4e9SmrgPACKAGE_STRING 7736f02d4e9SmrgPACKAGE_VERSION 7746f02d4e9SmrgPACKAGE_TARNAME 7756f02d4e9SmrgPACKAGE_NAME 7766f02d4e9SmrgPATH_SEPARATOR 7776f02d4e9SmrgSHELL' 778a73027baSmrgac_subst_files='' 7796f02d4e9Smrgac_user_opts=' 7806f02d4e9Smrgenable_option_checking 7816f02d4e9Smrgenable_silent_rules 7826f02d4e9Smrgenable_dependency_tracking 7836f02d4e9Smrgenable_selective_werror 7846f02d4e9Smrgenable_strict_compilation 7856f02d4e9Smrgwith_xrdb 7866f02d4e9Smrgwith_xmodmap 7876f02d4e9Smrgwith_twm 7886f02d4e9Smrgwith_xclock 7896f02d4e9Smrgwith_xterm 7906f02d4e9Smrgwith_xserver 7916f02d4e9Smrgwith_xauth 7926f02d4e9Smrgwith_xinit 7936f02d4e9Smrgwith_xinitdir 7946f02d4e9Smrgwith_launchd 7956f02d4e9Smrgwith_launchagents_dir 7966f02d4e9Smrgwith_launchagent_xserver 7976f02d4e9Smrgwith_launchdaemons_dir 7986f02d4e9Smrgwith_launchd_id_prefix 7996f02d4e9Smrgwith_bundle_id_prefix 8006f02d4e9Smrg' 801a73027baSmrg ac_precious_vars='build_alias 802a73027baSmrghost_alias 803a73027baSmrgtarget_alias 804a73027baSmrgCC 805a73027baSmrgCFLAGS 806a73027baSmrgLDFLAGS 807a73027baSmrgLIBS 808a73027baSmrgCPPFLAGS 809a73027baSmrgCPP 810a73027baSmrgPKG_CONFIG 8117253c0c7SmrgPKG_CONFIG_PATH 8127253c0c7SmrgPKG_CONFIG_LIBDIR 813a73027baSmrgXINIT_CFLAGS 814a73027baSmrgXINIT_LIBS' 815a73027baSmrg 816a73027baSmrg 817a73027baSmrg# Initialize some variables set by options. 818a73027baSmrgac_init_help= 819a73027baSmrgac_init_version=false 8206f02d4e9Smrgac_unrecognized_opts= 8216f02d4e9Smrgac_unrecognized_sep= 822a73027baSmrg# The variables have the same names as the options, with 823a73027baSmrg# dashes changed to underlines. 824a73027baSmrgcache_file=/dev/null 825a73027baSmrgexec_prefix=NONE 826a73027baSmrgno_create= 827a73027baSmrgno_recursion= 828a73027baSmrgprefix=NONE 829a73027baSmrgprogram_prefix=NONE 830a73027baSmrgprogram_suffix=NONE 831a73027baSmrgprogram_transform_name=s,x,x, 832a73027baSmrgsilent= 833a73027baSmrgsite= 834a73027baSmrgsrcdir= 835a73027baSmrgverbose= 836a73027baSmrgx_includes=NONE 837a73027baSmrgx_libraries=NONE 838a73027baSmrg 839a73027baSmrg# Installation directory options. 840a73027baSmrg# These are left unexpanded so users can "make install exec_prefix=/foo" 841a73027baSmrg# and all the variables that are supposed to be based on exec_prefix 842a73027baSmrg# by default will actually change. 843a73027baSmrg# Use braces instead of parens because sh, perl, etc. also accept them. 844a73027baSmrg# (The list follows the same order as the GNU Coding Standards.) 845a73027baSmrgbindir='${exec_prefix}/bin' 846a73027baSmrgsbindir='${exec_prefix}/sbin' 847a73027baSmrglibexecdir='${exec_prefix}/libexec' 848a73027baSmrgdatarootdir='${prefix}/share' 849a73027baSmrgdatadir='${datarootdir}' 850a73027baSmrgsysconfdir='${prefix}/etc' 851a73027baSmrgsharedstatedir='${prefix}/com' 852a73027baSmrglocalstatedir='${prefix}/var' 853a73027baSmrgincludedir='${prefix}/include' 854a73027baSmrgoldincludedir='/usr/include' 855a73027baSmrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 856a73027baSmrginfodir='${datarootdir}/info' 857a73027baSmrghtmldir='${docdir}' 858a73027baSmrgdvidir='${docdir}' 859a73027baSmrgpdfdir='${docdir}' 860a73027baSmrgpsdir='${docdir}' 861a73027baSmrglibdir='${exec_prefix}/lib' 862a73027baSmrglocaledir='${datarootdir}/locale' 863a73027baSmrgmandir='${datarootdir}/man' 864a73027baSmrg 865a73027baSmrgac_prev= 866a73027baSmrgac_dashdash= 867a73027baSmrgfor ac_option 868a73027baSmrgdo 869a73027baSmrg # If the previous option needs an argument, assign it. 870a73027baSmrg if test -n "$ac_prev"; then 871a73027baSmrg eval $ac_prev=\$ac_option 872a73027baSmrg ac_prev= 873a73027baSmrg continue 874a73027baSmrg fi 875a73027baSmrg 876a73027baSmrg case $ac_option in 8776f02d4e9Smrg *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 8786f02d4e9Smrg *=) ac_optarg= ;; 8796f02d4e9Smrg *) ac_optarg=yes ;; 880a73027baSmrg esac 881a73027baSmrg 882a73027baSmrg # Accept the important Cygnus configure options, so we can diagnose typos. 883a73027baSmrg 884a73027baSmrg case $ac_dashdash$ac_option in 885a73027baSmrg --) 886a73027baSmrg ac_dashdash=yes ;; 887a73027baSmrg 888a73027baSmrg -bindir | --bindir | --bindi | --bind | --bin | --bi) 889a73027baSmrg ac_prev=bindir ;; 890a73027baSmrg -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 891a73027baSmrg bindir=$ac_optarg ;; 892a73027baSmrg 893a73027baSmrg -build | --build | --buil | --bui | --bu) 894a73027baSmrg ac_prev=build_alias ;; 895a73027baSmrg -build=* | --build=* | --buil=* | --bui=* | --bu=*) 896a73027baSmrg build_alias=$ac_optarg ;; 897a73027baSmrg 898a73027baSmrg -cache-file | --cache-file | --cache-fil | --cache-fi \ 899a73027baSmrg | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 900a73027baSmrg ac_prev=cache_file ;; 901a73027baSmrg -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 902a73027baSmrg | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 903a73027baSmrg cache_file=$ac_optarg ;; 904a73027baSmrg 905a73027baSmrg --config-cache | -C) 906a73027baSmrg cache_file=config.cache ;; 907a73027baSmrg 908a73027baSmrg -datadir | --datadir | --datadi | --datad) 909a73027baSmrg ac_prev=datadir ;; 910a73027baSmrg -datadir=* | --datadir=* | --datadi=* | --datad=*) 911a73027baSmrg datadir=$ac_optarg ;; 912a73027baSmrg 913a73027baSmrg -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 914a73027baSmrg | --dataroo | --dataro | --datar) 915a73027baSmrg ac_prev=datarootdir ;; 916a73027baSmrg -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 917a73027baSmrg | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 918a73027baSmrg datarootdir=$ac_optarg ;; 919a73027baSmrg 920a73027baSmrg -disable-* | --disable-*) 9216f02d4e9Smrg ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 922a73027baSmrg # Reject names that are not valid shell variable names. 9236f02d4e9Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 9246f02d4e9Smrg as_fn_error $? "invalid feature name: $ac_useropt" 9256f02d4e9Smrg ac_useropt_orig=$ac_useropt 9266f02d4e9Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 9276f02d4e9Smrg case $ac_user_opts in 9286f02d4e9Smrg *" 9296f02d4e9Smrg"enable_$ac_useropt" 9306f02d4e9Smrg"*) ;; 9316f02d4e9Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 9326f02d4e9Smrg ac_unrecognized_sep=', ';; 9336f02d4e9Smrg esac 9346f02d4e9Smrg eval enable_$ac_useropt=no ;; 935a73027baSmrg 936a73027baSmrg -docdir | --docdir | --docdi | --doc | --do) 937a73027baSmrg ac_prev=docdir ;; 938a73027baSmrg -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 939a73027baSmrg docdir=$ac_optarg ;; 940a73027baSmrg 941a73027baSmrg -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 942a73027baSmrg ac_prev=dvidir ;; 943a73027baSmrg -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 944a73027baSmrg dvidir=$ac_optarg ;; 945a73027baSmrg 946a73027baSmrg -enable-* | --enable-*) 9476f02d4e9Smrg ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 948a73027baSmrg # Reject names that are not valid shell variable names. 9496f02d4e9Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 9506f02d4e9Smrg as_fn_error $? "invalid feature name: $ac_useropt" 9516f02d4e9Smrg ac_useropt_orig=$ac_useropt 9526f02d4e9Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 9536f02d4e9Smrg case $ac_user_opts in 9546f02d4e9Smrg *" 9556f02d4e9Smrg"enable_$ac_useropt" 9566f02d4e9Smrg"*) ;; 9576f02d4e9Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 9586f02d4e9Smrg ac_unrecognized_sep=', ';; 9596f02d4e9Smrg esac 9606f02d4e9Smrg eval enable_$ac_useropt=\$ac_optarg ;; 961a73027baSmrg 962a73027baSmrg -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 963a73027baSmrg | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 964a73027baSmrg | --exec | --exe | --ex) 965a73027baSmrg ac_prev=exec_prefix ;; 966a73027baSmrg -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 967a73027baSmrg | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 968a73027baSmrg | --exec=* | --exe=* | --ex=*) 969a73027baSmrg exec_prefix=$ac_optarg ;; 970a73027baSmrg 971a73027baSmrg -gas | --gas | --ga | --g) 972a73027baSmrg # Obsolete; use --with-gas. 973a73027baSmrg with_gas=yes ;; 974a73027baSmrg 975a73027baSmrg -help | --help | --hel | --he | -h) 976a73027baSmrg ac_init_help=long ;; 977a73027baSmrg -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 978a73027baSmrg ac_init_help=recursive ;; 979a73027baSmrg -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 980a73027baSmrg ac_init_help=short ;; 981a73027baSmrg 982a73027baSmrg -host | --host | --hos | --ho) 983a73027baSmrg ac_prev=host_alias ;; 984a73027baSmrg -host=* | --host=* | --hos=* | --ho=*) 985a73027baSmrg host_alias=$ac_optarg ;; 986a73027baSmrg 987a73027baSmrg -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 988a73027baSmrg ac_prev=htmldir ;; 989a73027baSmrg -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 990a73027baSmrg | --ht=*) 991a73027baSmrg htmldir=$ac_optarg ;; 992a73027baSmrg 993a73027baSmrg -includedir | --includedir | --includedi | --included | --include \ 994a73027baSmrg | --includ | --inclu | --incl | --inc) 995a73027baSmrg ac_prev=includedir ;; 996a73027baSmrg -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 997a73027baSmrg | --includ=* | --inclu=* | --incl=* | --inc=*) 998a73027baSmrg includedir=$ac_optarg ;; 999a73027baSmrg 1000a73027baSmrg -infodir | --infodir | --infodi | --infod | --info | --inf) 1001a73027baSmrg ac_prev=infodir ;; 1002a73027baSmrg -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1003a73027baSmrg infodir=$ac_optarg ;; 1004a73027baSmrg 1005a73027baSmrg -libdir | --libdir | --libdi | --libd) 1006a73027baSmrg ac_prev=libdir ;; 1007a73027baSmrg -libdir=* | --libdir=* | --libdi=* | --libd=*) 1008a73027baSmrg libdir=$ac_optarg ;; 1009a73027baSmrg 1010a73027baSmrg -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1011a73027baSmrg | --libexe | --libex | --libe) 1012a73027baSmrg ac_prev=libexecdir ;; 1013a73027baSmrg -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1014a73027baSmrg | --libexe=* | --libex=* | --libe=*) 1015a73027baSmrg libexecdir=$ac_optarg ;; 1016a73027baSmrg 1017a73027baSmrg -localedir | --localedir | --localedi | --localed | --locale) 1018a73027baSmrg ac_prev=localedir ;; 1019a73027baSmrg -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1020a73027baSmrg localedir=$ac_optarg ;; 1021a73027baSmrg 1022a73027baSmrg -localstatedir | --localstatedir | --localstatedi | --localstated \ 1023a73027baSmrg | --localstate | --localstat | --localsta | --localst | --locals) 1024a73027baSmrg ac_prev=localstatedir ;; 1025a73027baSmrg -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1026a73027baSmrg | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1027a73027baSmrg localstatedir=$ac_optarg ;; 1028a73027baSmrg 1029a73027baSmrg -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1030a73027baSmrg ac_prev=mandir ;; 1031a73027baSmrg -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1032a73027baSmrg mandir=$ac_optarg ;; 1033a73027baSmrg 1034a73027baSmrg -nfp | --nfp | --nf) 1035a73027baSmrg # Obsolete; use --without-fp. 1036a73027baSmrg with_fp=no ;; 1037a73027baSmrg 1038a73027baSmrg -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1039a73027baSmrg | --no-cr | --no-c | -n) 1040a73027baSmrg no_create=yes ;; 1041a73027baSmrg 1042a73027baSmrg -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1043a73027baSmrg | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1044a73027baSmrg no_recursion=yes ;; 1045a73027baSmrg 1046a73027baSmrg -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1047a73027baSmrg | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1048a73027baSmrg | --oldin | --oldi | --old | --ol | --o) 1049a73027baSmrg ac_prev=oldincludedir ;; 1050a73027baSmrg -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1051a73027baSmrg | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1052a73027baSmrg | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1053a73027baSmrg oldincludedir=$ac_optarg ;; 1054a73027baSmrg 1055a73027baSmrg -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1056a73027baSmrg ac_prev=prefix ;; 1057a73027baSmrg -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1058a73027baSmrg prefix=$ac_optarg ;; 1059a73027baSmrg 1060a73027baSmrg -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1061a73027baSmrg | --program-pre | --program-pr | --program-p) 1062a73027baSmrg ac_prev=program_prefix ;; 1063a73027baSmrg -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1064a73027baSmrg | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1065a73027baSmrg program_prefix=$ac_optarg ;; 1066a73027baSmrg 1067a73027baSmrg -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1068a73027baSmrg | --program-suf | --program-su | --program-s) 1069a73027baSmrg ac_prev=program_suffix ;; 1070a73027baSmrg -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1071a73027baSmrg | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1072a73027baSmrg program_suffix=$ac_optarg ;; 1073a73027baSmrg 1074a73027baSmrg -program-transform-name | --program-transform-name \ 1075a73027baSmrg | --program-transform-nam | --program-transform-na \ 1076a73027baSmrg | --program-transform-n | --program-transform- \ 1077a73027baSmrg | --program-transform | --program-transfor \ 1078a73027baSmrg | --program-transfo | --program-transf \ 1079a73027baSmrg | --program-trans | --program-tran \ 1080a73027baSmrg | --progr-tra | --program-tr | --program-t) 1081a73027baSmrg ac_prev=program_transform_name ;; 1082a73027baSmrg -program-transform-name=* | --program-transform-name=* \ 1083a73027baSmrg | --program-transform-nam=* | --program-transform-na=* \ 1084a73027baSmrg | --program-transform-n=* | --program-transform-=* \ 1085a73027baSmrg | --program-transform=* | --program-transfor=* \ 1086a73027baSmrg | --program-transfo=* | --program-transf=* \ 1087a73027baSmrg | --program-trans=* | --program-tran=* \ 1088a73027baSmrg | --progr-tra=* | --program-tr=* | --program-t=*) 1089a73027baSmrg program_transform_name=$ac_optarg ;; 1090a73027baSmrg 1091a73027baSmrg -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1092a73027baSmrg ac_prev=pdfdir ;; 1093a73027baSmrg -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1094a73027baSmrg pdfdir=$ac_optarg ;; 1095a73027baSmrg 1096a73027baSmrg -psdir | --psdir | --psdi | --psd | --ps) 1097a73027baSmrg ac_prev=psdir ;; 1098a73027baSmrg -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1099a73027baSmrg psdir=$ac_optarg ;; 1100a73027baSmrg 1101a73027baSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1102a73027baSmrg | -silent | --silent | --silen | --sile | --sil) 1103a73027baSmrg silent=yes ;; 1104a73027baSmrg 1105a73027baSmrg -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1106a73027baSmrg ac_prev=sbindir ;; 1107a73027baSmrg -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1108a73027baSmrg | --sbi=* | --sb=*) 1109a73027baSmrg sbindir=$ac_optarg ;; 1110a73027baSmrg 1111a73027baSmrg -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1112a73027baSmrg | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1113a73027baSmrg | --sharedst | --shareds | --shared | --share | --shar \ 1114a73027baSmrg | --sha | --sh) 1115a73027baSmrg ac_prev=sharedstatedir ;; 1116a73027baSmrg -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1117a73027baSmrg | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1118a73027baSmrg | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1119a73027baSmrg | --sha=* | --sh=*) 1120a73027baSmrg sharedstatedir=$ac_optarg ;; 1121a73027baSmrg 1122a73027baSmrg -site | --site | --sit) 1123a73027baSmrg ac_prev=site ;; 1124a73027baSmrg -site=* | --site=* | --sit=*) 1125a73027baSmrg site=$ac_optarg ;; 1126a73027baSmrg 1127a73027baSmrg -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1128a73027baSmrg ac_prev=srcdir ;; 1129a73027baSmrg -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1130a73027baSmrg srcdir=$ac_optarg ;; 1131a73027baSmrg 1132a73027baSmrg -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1133a73027baSmrg | --syscon | --sysco | --sysc | --sys | --sy) 1134a73027baSmrg ac_prev=sysconfdir ;; 1135a73027baSmrg -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1136a73027baSmrg | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1137a73027baSmrg sysconfdir=$ac_optarg ;; 1138a73027baSmrg 1139a73027baSmrg -target | --target | --targe | --targ | --tar | --ta | --t) 1140a73027baSmrg ac_prev=target_alias ;; 1141a73027baSmrg -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1142a73027baSmrg target_alias=$ac_optarg ;; 1143a73027baSmrg 1144a73027baSmrg -v | -verbose | --verbose | --verbos | --verbo | --verb) 1145a73027baSmrg verbose=yes ;; 1146a73027baSmrg 1147a73027baSmrg -version | --version | --versio | --versi | --vers | -V) 1148a73027baSmrg ac_init_version=: ;; 1149a73027baSmrg 1150a73027baSmrg -with-* | --with-*) 11516f02d4e9Smrg ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1152a73027baSmrg # Reject names that are not valid shell variable names. 11536f02d4e9Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 11546f02d4e9Smrg as_fn_error $? "invalid package name: $ac_useropt" 11556f02d4e9Smrg ac_useropt_orig=$ac_useropt 11566f02d4e9Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 11576f02d4e9Smrg case $ac_user_opts in 11586f02d4e9Smrg *" 11596f02d4e9Smrg"with_$ac_useropt" 11606f02d4e9Smrg"*) ;; 11616f02d4e9Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 11626f02d4e9Smrg ac_unrecognized_sep=', ';; 11636f02d4e9Smrg esac 11646f02d4e9Smrg eval with_$ac_useropt=\$ac_optarg ;; 1165a73027baSmrg 1166a73027baSmrg -without-* | --without-*) 11676f02d4e9Smrg ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1168a73027baSmrg # Reject names that are not valid shell variable names. 11696f02d4e9Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 11706f02d4e9Smrg as_fn_error $? "invalid package name: $ac_useropt" 11716f02d4e9Smrg ac_useropt_orig=$ac_useropt 11726f02d4e9Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 11736f02d4e9Smrg case $ac_user_opts in 11746f02d4e9Smrg *" 11756f02d4e9Smrg"with_$ac_useropt" 11766f02d4e9Smrg"*) ;; 11776f02d4e9Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 11786f02d4e9Smrg ac_unrecognized_sep=', ';; 11796f02d4e9Smrg esac 11806f02d4e9Smrg eval with_$ac_useropt=no ;; 1181a73027baSmrg 1182a73027baSmrg --x) 1183a73027baSmrg # Obsolete; use --with-x. 1184a73027baSmrg with_x=yes ;; 1185a73027baSmrg 1186a73027baSmrg -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1187a73027baSmrg | --x-incl | --x-inc | --x-in | --x-i) 1188a73027baSmrg ac_prev=x_includes ;; 1189a73027baSmrg -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1190a73027baSmrg | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1191a73027baSmrg x_includes=$ac_optarg ;; 1192a73027baSmrg 1193a73027baSmrg -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1194a73027baSmrg | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1195a73027baSmrg ac_prev=x_libraries ;; 1196a73027baSmrg -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1197a73027baSmrg | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1198a73027baSmrg x_libraries=$ac_optarg ;; 1199a73027baSmrg 12006f02d4e9Smrg -*) as_fn_error $? "unrecognized option: \`$ac_option' 12016f02d4e9SmrgTry \`$0 --help' for more information" 1202a73027baSmrg ;; 1203a73027baSmrg 1204a73027baSmrg *=*) 1205a73027baSmrg ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1206a73027baSmrg # Reject names that are not valid shell variable names. 12076f02d4e9Smrg case $ac_envvar in #( 12086f02d4e9Smrg '' | [0-9]* | *[!_$as_cr_alnum]* ) 12096f02d4e9Smrg as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 12106f02d4e9Smrg esac 1211a73027baSmrg eval $ac_envvar=\$ac_optarg 1212a73027baSmrg export $ac_envvar ;; 1213a73027baSmrg 1214a73027baSmrg *) 1215a73027baSmrg # FIXME: should be removed in autoconf 3.0. 12166f02d4e9Smrg $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1217a73027baSmrg expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 12186f02d4e9Smrg $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 12196f02d4e9Smrg : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1220a73027baSmrg ;; 1221a73027baSmrg 1222a73027baSmrg esac 1223a73027baSmrgdone 1224a73027baSmrg 1225a73027baSmrgif test -n "$ac_prev"; then 1226a73027baSmrg ac_option=--`echo $ac_prev | sed 's/_/-/g'` 12276f02d4e9Smrg as_fn_error $? "missing argument to $ac_option" 12286f02d4e9Smrgfi 12296f02d4e9Smrg 12306f02d4e9Smrgif test -n "$ac_unrecognized_opts"; then 12316f02d4e9Smrg case $enable_option_checking in 12326f02d4e9Smrg no) ;; 12336f02d4e9Smrg fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 12346f02d4e9Smrg *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 12356f02d4e9Smrg esac 1236a73027baSmrgfi 1237a73027baSmrg 12386f02d4e9Smrg# Check all directory arguments for consistency. 1239a73027baSmrgfor ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1240a73027baSmrg datadir sysconfdir sharedstatedir localstatedir includedir \ 1241a73027baSmrg oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1242a73027baSmrg libdir localedir mandir 1243a73027baSmrgdo 1244a73027baSmrg eval ac_val=\$$ac_var 12456f02d4e9Smrg # Remove trailing slashes. 12466f02d4e9Smrg case $ac_val in 12476f02d4e9Smrg */ ) 12486f02d4e9Smrg ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 12496f02d4e9Smrg eval $ac_var=\$ac_val;; 12506f02d4e9Smrg esac 12516f02d4e9Smrg # Be sure to have absolute directory names. 1252a73027baSmrg case $ac_val in 1253a73027baSmrg [\\/$]* | ?:[\\/]* ) continue;; 1254a73027baSmrg NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1255a73027baSmrg esac 12566f02d4e9Smrg as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1257a73027baSmrgdone 1258a73027baSmrg 1259a73027baSmrg# There might be people who depend on the old broken behavior: `$host' 1260a73027baSmrg# used to hold the argument of --host etc. 1261a73027baSmrg# FIXME: To remove some day. 1262a73027baSmrgbuild=$build_alias 1263a73027baSmrghost=$host_alias 1264a73027baSmrgtarget=$target_alias 1265a73027baSmrg 1266a73027baSmrg# FIXME: To remove some day. 1267a73027baSmrgif test "x$host_alias" != x; then 1268a73027baSmrg if test "x$build_alias" = x; then 1269a73027baSmrg cross_compiling=maybe 1270a73027baSmrg elif test "x$build_alias" != "x$host_alias"; then 1271a73027baSmrg cross_compiling=yes 1272a73027baSmrg fi 1273a73027baSmrgfi 1274a73027baSmrg 1275a73027baSmrgac_tool_prefix= 1276a73027baSmrgtest -n "$host_alias" && ac_tool_prefix=$host_alias- 1277a73027baSmrg 1278a73027baSmrgtest "$silent" = yes && exec 6>/dev/null 1279a73027baSmrg 1280a73027baSmrg 1281a73027baSmrgac_pwd=`pwd` && test -n "$ac_pwd" && 1282a73027baSmrgac_ls_di=`ls -di .` && 1283a73027baSmrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 12846f02d4e9Smrg as_fn_error $? "working directory cannot be determined" 1285a73027baSmrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" || 12866f02d4e9Smrg as_fn_error $? "pwd does not report name of working directory" 1287a73027baSmrg 1288a73027baSmrg 1289a73027baSmrg# Find the source files, if location was not specified. 1290a73027baSmrgif test -z "$srcdir"; then 1291a73027baSmrg ac_srcdir_defaulted=yes 1292a73027baSmrg # Try the directory containing this script, then the parent directory. 12936f02d4e9Smrg ac_confdir=`$as_dirname -- "$as_myself" || 12946f02d4e9Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12956f02d4e9Smrg X"$as_myself" : 'X\(//\)[^/]' \| \ 12966f02d4e9Smrg X"$as_myself" : 'X\(//\)$' \| \ 12976f02d4e9Smrg X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 12986f02d4e9Smrg$as_echo X"$as_myself" | 1299a73027baSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1300a73027baSmrg s//\1/ 1301a73027baSmrg q 1302a73027baSmrg } 1303a73027baSmrg /^X\(\/\/\)[^/].*/{ 1304a73027baSmrg s//\1/ 1305a73027baSmrg q 1306a73027baSmrg } 1307a73027baSmrg /^X\(\/\/\)$/{ 1308a73027baSmrg s//\1/ 1309a73027baSmrg q 1310a73027baSmrg } 1311a73027baSmrg /^X\(\/\).*/{ 1312a73027baSmrg s//\1/ 1313a73027baSmrg q 1314a73027baSmrg } 1315a73027baSmrg s/.*/./; q'` 1316a73027baSmrg srcdir=$ac_confdir 1317a73027baSmrg if test ! -r "$srcdir/$ac_unique_file"; then 1318a73027baSmrg srcdir=.. 1319a73027baSmrg fi 1320a73027baSmrgelse 1321a73027baSmrg ac_srcdir_defaulted=no 1322a73027baSmrgfi 1323a73027baSmrgif test ! -r "$srcdir/$ac_unique_file"; then 1324a73027baSmrg test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 13256f02d4e9Smrg as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1326a73027baSmrgfi 1327a73027baSmrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1328a73027baSmrgac_abs_confdir=`( 13296f02d4e9Smrg cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1330a73027baSmrg pwd)` 1331a73027baSmrg# When building in place, set srcdir=. 1332a73027baSmrgif test "$ac_abs_confdir" = "$ac_pwd"; then 1333a73027baSmrg srcdir=. 1334a73027baSmrgfi 1335a73027baSmrg# Remove unnecessary trailing slashes from srcdir. 1336a73027baSmrg# Double slashes in file names in object file debugging info 1337a73027baSmrg# mess up M-x gdb in Emacs. 1338a73027baSmrgcase $srcdir in 1339a73027baSmrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1340a73027baSmrgesac 1341a73027baSmrgfor ac_var in $ac_precious_vars; do 1342a73027baSmrg eval ac_env_${ac_var}_set=\${${ac_var}+set} 1343a73027baSmrg eval ac_env_${ac_var}_value=\$${ac_var} 1344a73027baSmrg eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1345a73027baSmrg eval ac_cv_env_${ac_var}_value=\$${ac_var} 1346a73027baSmrgdone 1347a73027baSmrg 1348a73027baSmrg# 1349a73027baSmrg# Report the --help message. 1350a73027baSmrg# 1351a73027baSmrgif test "$ac_init_help" = "long"; then 1352a73027baSmrg # Omit some internal or obsolete options to make the list less imposing. 1353a73027baSmrg # This message is too long to be a string in the A/UX 3.1 sh. 1354a73027baSmrg cat <<_ACEOF 1355d73e0b87Smrg\`configure' configures xinit 1.4.0 to adapt to many kinds of systems. 1356a73027baSmrg 1357a73027baSmrgUsage: $0 [OPTION]... [VAR=VALUE]... 1358a73027baSmrg 1359a73027baSmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as 1360a73027baSmrgVAR=VALUE. See below for descriptions of some of the useful variables. 1361a73027baSmrg 1362a73027baSmrgDefaults for the options are specified in brackets. 1363a73027baSmrg 1364a73027baSmrgConfiguration: 1365a73027baSmrg -h, --help display this help and exit 1366a73027baSmrg --help=short display options specific to this package 1367a73027baSmrg --help=recursive display the short help of all the included packages 1368a73027baSmrg -V, --version display version information and exit 13696f02d4e9Smrg -q, --quiet, --silent do not print \`checking ...' messages 1370a73027baSmrg --cache-file=FILE cache test results in FILE [disabled] 1371a73027baSmrg -C, --config-cache alias for \`--cache-file=config.cache' 1372a73027baSmrg -n, --no-create do not create output files 1373a73027baSmrg --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1374a73027baSmrg 1375a73027baSmrgInstallation directories: 1376a73027baSmrg --prefix=PREFIX install architecture-independent files in PREFIX 13776f02d4e9Smrg [$ac_default_prefix] 1378a73027baSmrg --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 13796f02d4e9Smrg [PREFIX] 1380a73027baSmrg 1381a73027baSmrgBy default, \`make install' will install all the files in 1382a73027baSmrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1383a73027baSmrgan installation prefix other than \`$ac_default_prefix' using \`--prefix', 1384a73027baSmrgfor instance \`--prefix=\$HOME'. 1385a73027baSmrg 1386a73027baSmrgFor better control, use the options below. 1387a73027baSmrg 1388a73027baSmrgFine tuning of the installation directories: 13896f02d4e9Smrg --bindir=DIR user executables [EPREFIX/bin] 13906f02d4e9Smrg --sbindir=DIR system admin executables [EPREFIX/sbin] 13916f02d4e9Smrg --libexecdir=DIR program executables [EPREFIX/libexec] 13926f02d4e9Smrg --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 13936f02d4e9Smrg --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 13946f02d4e9Smrg --localstatedir=DIR modifiable single-machine data [PREFIX/var] 13956f02d4e9Smrg --libdir=DIR object code libraries [EPREFIX/lib] 13966f02d4e9Smrg --includedir=DIR C header files [PREFIX/include] 13976f02d4e9Smrg --oldincludedir=DIR C header files for non-gcc [/usr/include] 13986f02d4e9Smrg --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 13996f02d4e9Smrg --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 14006f02d4e9Smrg --infodir=DIR info documentation [DATAROOTDIR/info] 14016f02d4e9Smrg --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 14026f02d4e9Smrg --mandir=DIR man documentation [DATAROOTDIR/man] 14036f02d4e9Smrg --docdir=DIR documentation root [DATAROOTDIR/doc/xinit] 14046f02d4e9Smrg --htmldir=DIR html documentation [DOCDIR] 14056f02d4e9Smrg --dvidir=DIR dvi documentation [DOCDIR] 14066f02d4e9Smrg --pdfdir=DIR pdf documentation [DOCDIR] 14076f02d4e9Smrg --psdir=DIR ps documentation [DOCDIR] 1408a73027baSmrg_ACEOF 1409a73027baSmrg 1410a73027baSmrg cat <<\_ACEOF 1411a73027baSmrg 1412a73027baSmrgProgram names: 1413a73027baSmrg --program-prefix=PREFIX prepend PREFIX to installed program names 1414a73027baSmrg --program-suffix=SUFFIX append SUFFIX to installed program names 1415a73027baSmrg --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1416a73027baSmrg 1417a73027baSmrgSystem types: 1418a73027baSmrg --build=BUILD configure for building on BUILD [guessed] 1419a73027baSmrg --host=HOST cross-compile to build programs to run on HOST [BUILD] 1420a73027baSmrg_ACEOF 1421a73027baSmrgfi 1422a73027baSmrg 1423a73027baSmrgif test -n "$ac_init_help"; then 1424a73027baSmrg case $ac_init_help in 1425d73e0b87Smrg short | recursive ) echo "Configuration of xinit 1.4.0:";; 1426a73027baSmrg esac 1427a73027baSmrg cat <<\_ACEOF 1428a73027baSmrg 1429a73027baSmrgOptional Features: 14306f02d4e9Smrg --disable-option-checking ignore unrecognized --enable/--with options 1431a73027baSmrg --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1432a73027baSmrg --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 14336f02d4e9Smrg --enable-silent-rules less verbose build output (undo: "make V=1") 14346f02d4e9Smrg --disable-silent-rules verbose build output (undo: "make V=0") 14356f02d4e9Smrg --enable-dependency-tracking 14366f02d4e9Smrg do not reject slow dependency extractors 14376f02d4e9Smrg --disable-dependency-tracking 14386f02d4e9Smrg speeds up one-time build 143921212451Smrg --disable-selective-werror 144021212451Smrg Turn off selective compiler errors. (default: 144121212451Smrg enabled) 1442bf4a254eSmrg --enable-strict-compilation 1443bf4a254eSmrg Enable all warnings from compiler and make them 1444bf4a254eSmrg errors (default: disabled) 1445a73027baSmrg 1446a73027baSmrgOptional Packages: 1447a73027baSmrg --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1448a73027baSmrg --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1449a73027baSmrg --with-xrdb=XRDB Path to xrdb 1450a73027baSmrg --with-xmodmap=XMODMAP Path to xmodmap 1451a73027baSmrg --with-twm=TWM Path to twm 1452a73027baSmrg --with-xclock=XCLOCK Path to xclock 1453a73027baSmrg --with-xterm=XTERM Path to xterm 1454a73027baSmrg --with-xserver=XSERVER Path to default X server 1455a73027baSmrg --with-xauth=XAUTH Path to xauth 1456a73027baSmrg --with-xinit=XINIT Path to xinit 1457bf4a254eSmrg --with-xinitdir=XINITDIR 1458bf4a254eSmrg Path to xinitdir 1459a73027baSmrg --with-launchd Build with support for Apple's launchd (default: 1460a73027baSmrg auto) 1461a73027baSmrg --with-launchagents-dir=PATH 1462a73027baSmrg Path to launchd's LaunchAgents directory (default: 1463a73027baSmrg /Library/LaunchAgents) 146421212451Smrg --with-launchagent-xserver=PATH 146521212451Smrg Path to the X server which the LaunchAgent should 146621212451Smrg start (if not provided, let startx decide)" 1467a73027baSmrg --with-launchdaemons-dir=PATH 1468a73027baSmrg Path to launchd's LaunchDaemonss directory (default: 1469a73027baSmrg /Library/LaunchDaemons) 1470bf4a254eSmrg --with-launchd-id-prefix=PATH 1471c81d8f5eSmrg Deprecated: Use --with-bundle-id-prefix. 1472c81d8f5eSmrg --with-bundle-id-prefix=PATH 1473c81d8f5eSmrg Prefix to use for bundle identifiers (default: 1474bf4a254eSmrg org.x) 1475a73027baSmrg 1476a73027baSmrgSome influential environment variables: 1477a73027baSmrg CC C compiler command 1478a73027baSmrg CFLAGS C compiler flags 1479a73027baSmrg LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1480a73027baSmrg nonstandard directory <lib dir> 1481a73027baSmrg LIBS libraries to pass to the linker, e.g. -l<library> 14826f02d4e9Smrg CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1483a73027baSmrg you have headers in a nonstandard directory <include dir> 1484a73027baSmrg CPP C preprocessor 1485a73027baSmrg PKG_CONFIG path to pkg-config utility 14867253c0c7Smrg PKG_CONFIG_PATH 14877253c0c7Smrg directories to add to pkg-config's search path 14887253c0c7Smrg PKG_CONFIG_LIBDIR 14897253c0c7Smrg path overriding pkg-config's built-in search path 1490a73027baSmrg XINIT_CFLAGS 1491a73027baSmrg C compiler flags for XINIT, overriding pkg-config 1492a73027baSmrg XINIT_LIBS linker flags for XINIT, overriding pkg-config 1493a73027baSmrg 1494a73027baSmrgUse these variables to override the choices made by `configure' or to help 1495a73027baSmrgit to find libraries and programs with nonstandard names/locations. 1496a73027baSmrg 1497a73027baSmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1498a73027baSmrg_ACEOF 1499a73027baSmrgac_status=$? 1500a73027baSmrgfi 1501a73027baSmrg 1502a73027baSmrgif test "$ac_init_help" = "recursive"; then 1503a73027baSmrg # If there are subdirs, report their specific --help. 1504a73027baSmrg for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 15056f02d4e9Smrg test -d "$ac_dir" || 15066f02d4e9Smrg { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 15076f02d4e9Smrg continue 1508a73027baSmrg ac_builddir=. 1509a73027baSmrg 1510a73027baSmrgcase "$ac_dir" in 1511a73027baSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1512a73027baSmrg*) 15136f02d4e9Smrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1514a73027baSmrg # A ".." for each directory in $ac_dir_suffix. 15156f02d4e9Smrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1516a73027baSmrg case $ac_top_builddir_sub in 1517a73027baSmrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1518a73027baSmrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1519a73027baSmrg esac ;; 1520a73027baSmrgesac 1521a73027baSmrgac_abs_top_builddir=$ac_pwd 1522a73027baSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix 1523a73027baSmrg# for backward compatibility: 1524a73027baSmrgac_top_builddir=$ac_top_build_prefix 1525a73027baSmrg 1526a73027baSmrgcase $srcdir in 1527a73027baSmrg .) # We are building in place. 1528a73027baSmrg ac_srcdir=. 1529a73027baSmrg ac_top_srcdir=$ac_top_builddir_sub 1530a73027baSmrg ac_abs_top_srcdir=$ac_pwd ;; 1531a73027baSmrg [\\/]* | ?:[\\/]* ) # Absolute name. 1532a73027baSmrg ac_srcdir=$srcdir$ac_dir_suffix; 1533a73027baSmrg ac_top_srcdir=$srcdir 1534a73027baSmrg ac_abs_top_srcdir=$srcdir ;; 1535a73027baSmrg *) # Relative name. 1536a73027baSmrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1537a73027baSmrg ac_top_srcdir=$ac_top_build_prefix$srcdir 1538a73027baSmrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1539a73027baSmrgesac 1540a73027baSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1541a73027baSmrg 1542a73027baSmrg cd "$ac_dir" || { ac_status=$?; continue; } 1543a73027baSmrg # Check for guested configure. 1544a73027baSmrg if test -f "$ac_srcdir/configure.gnu"; then 1545a73027baSmrg echo && 1546a73027baSmrg $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1547a73027baSmrg elif test -f "$ac_srcdir/configure"; then 1548a73027baSmrg echo && 1549a73027baSmrg $SHELL "$ac_srcdir/configure" --help=recursive 1550a73027baSmrg else 15516f02d4e9Smrg $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1552a73027baSmrg fi || ac_status=$? 1553a73027baSmrg cd "$ac_pwd" || { ac_status=$?; break; } 1554a73027baSmrg done 1555a73027baSmrgfi 1556a73027baSmrg 1557a73027baSmrgtest -n "$ac_init_help" && exit $ac_status 1558a73027baSmrgif $ac_init_version; then 1559a73027baSmrg cat <<\_ACEOF 1560d73e0b87Smrgxinit configure 1.4.0 15617253c0c7Smrggenerated by GNU Autoconf 2.69 1562a73027baSmrg 15637253c0c7SmrgCopyright (C) 2012 Free Software Foundation, Inc. 1564a73027baSmrgThis configure script is free software; the Free Software Foundation 1565a73027baSmrggives unlimited permission to copy, distribute and modify it. 1566a73027baSmrg_ACEOF 1567a73027baSmrg exit 1568a73027baSmrgfi 15696f02d4e9Smrg 15706f02d4e9Smrg## ------------------------ ## 15716f02d4e9Smrg## Autoconf initialization. ## 15726f02d4e9Smrg## ------------------------ ## 15736f02d4e9Smrg 15746f02d4e9Smrg# ac_fn_c_try_compile LINENO 15756f02d4e9Smrg# -------------------------- 15766f02d4e9Smrg# Try to compile conftest.$ac_ext, and return whether this succeeded. 15776f02d4e9Smrgac_fn_c_try_compile () 15786f02d4e9Smrg{ 15796f02d4e9Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15806f02d4e9Smrg rm -f conftest.$ac_objext 15816f02d4e9Smrg if { { ac_try="$ac_compile" 15826f02d4e9Smrgcase "(($ac_try" in 15836f02d4e9Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15846f02d4e9Smrg *) ac_try_echo=$ac_try;; 15856f02d4e9Smrgesac 15866f02d4e9Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 15876f02d4e9Smrg$as_echo "$ac_try_echo"; } >&5 15886f02d4e9Smrg (eval "$ac_compile") 2>conftest.err 15896f02d4e9Smrg ac_status=$? 15906f02d4e9Smrg if test -s conftest.err; then 15916f02d4e9Smrg grep -v '^ *+' conftest.err >conftest.er1 15926f02d4e9Smrg cat conftest.er1 >&5 15936f02d4e9Smrg mv -f conftest.er1 conftest.err 15946f02d4e9Smrg fi 15956f02d4e9Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15966f02d4e9Smrg test $ac_status = 0; } && { 15976f02d4e9Smrg test -z "$ac_c_werror_flag" || 15986f02d4e9Smrg test ! -s conftest.err 15996f02d4e9Smrg } && test -s conftest.$ac_objext; then : 16006f02d4e9Smrg ac_retval=0 16016f02d4e9Smrgelse 16026f02d4e9Smrg $as_echo "$as_me: failed program was:" >&5 16036f02d4e9Smrgsed 's/^/| /' conftest.$ac_ext >&5 16046f02d4e9Smrg 16056f02d4e9Smrg ac_retval=1 16066f02d4e9Smrgfi 16076f02d4e9Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 16086f02d4e9Smrg as_fn_set_status $ac_retval 16096f02d4e9Smrg 16106f02d4e9Smrg} # ac_fn_c_try_compile 16116f02d4e9Smrg 16126f02d4e9Smrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 16136f02d4e9Smrg# --------------------------------------------- 16146f02d4e9Smrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 16156f02d4e9Smrg# accordingly. 16166f02d4e9Smrgac_fn_c_check_decl () 16176f02d4e9Smrg{ 16186f02d4e9Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16196f02d4e9Smrg as_decl_name=`echo $2|sed 's/ *(.*//'` 16206f02d4e9Smrg as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 16216f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 16226f02d4e9Smrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 16236f02d4e9Smrgif eval \${$3+:} false; then : 16246f02d4e9Smrg $as_echo_n "(cached) " >&6 16256f02d4e9Smrgelse 16266f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16276f02d4e9Smrg/* end confdefs.h. */ 16286f02d4e9Smrg$4 16296f02d4e9Smrgint 16306f02d4e9Smrgmain () 16316f02d4e9Smrg{ 16326f02d4e9Smrg#ifndef $as_decl_name 16336f02d4e9Smrg#ifdef __cplusplus 16346f02d4e9Smrg (void) $as_decl_use; 16356f02d4e9Smrg#else 16366f02d4e9Smrg (void) $as_decl_name; 16376f02d4e9Smrg#endif 16386f02d4e9Smrg#endif 16396f02d4e9Smrg 16406f02d4e9Smrg ; 16416f02d4e9Smrg return 0; 16426f02d4e9Smrg} 16436f02d4e9Smrg_ACEOF 16446f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 16456f02d4e9Smrg eval "$3=yes" 16466f02d4e9Smrgelse 16476f02d4e9Smrg eval "$3=no" 16486f02d4e9Smrgfi 16496f02d4e9Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16506f02d4e9Smrgfi 16516f02d4e9Smrgeval ac_res=\$$3 16526f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 16536f02d4e9Smrg$as_echo "$ac_res" >&6; } 16546f02d4e9Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 16556f02d4e9Smrg 16566f02d4e9Smrg} # ac_fn_c_check_decl 16576f02d4e9Smrg 16586f02d4e9Smrg# ac_fn_c_try_cpp LINENO 16596f02d4e9Smrg# ---------------------- 16606f02d4e9Smrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 16616f02d4e9Smrgac_fn_c_try_cpp () 16626f02d4e9Smrg{ 16636f02d4e9Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16646f02d4e9Smrg if { { ac_try="$ac_cpp conftest.$ac_ext" 16656f02d4e9Smrgcase "(($ac_try" in 16666f02d4e9Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16676f02d4e9Smrg *) ac_try_echo=$ac_try;; 16686f02d4e9Smrgesac 16696f02d4e9Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 16706f02d4e9Smrg$as_echo "$ac_try_echo"; } >&5 16716f02d4e9Smrg (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 16726f02d4e9Smrg ac_status=$? 16736f02d4e9Smrg if test -s conftest.err; then 16746f02d4e9Smrg grep -v '^ *+' conftest.err >conftest.er1 16756f02d4e9Smrg cat conftest.er1 >&5 16766f02d4e9Smrg mv -f conftest.er1 conftest.err 16776f02d4e9Smrg fi 16786f02d4e9Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16796f02d4e9Smrg test $ac_status = 0; } > conftest.i && { 16806f02d4e9Smrg test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 16816f02d4e9Smrg test ! -s conftest.err 16826f02d4e9Smrg }; then : 16836f02d4e9Smrg ac_retval=0 16846f02d4e9Smrgelse 16856f02d4e9Smrg $as_echo "$as_me: failed program was:" >&5 16866f02d4e9Smrgsed 's/^/| /' conftest.$ac_ext >&5 16876f02d4e9Smrg 16886f02d4e9Smrg ac_retval=1 16896f02d4e9Smrgfi 16906f02d4e9Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 16916f02d4e9Smrg as_fn_set_status $ac_retval 16926f02d4e9Smrg 16936f02d4e9Smrg} # ac_fn_c_try_cpp 16946f02d4e9Smrg 16956f02d4e9Smrg# ac_fn_c_try_run LINENO 16966f02d4e9Smrg# ---------------------- 16976f02d4e9Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 16986f02d4e9Smrg# that executables *can* be run. 16996f02d4e9Smrgac_fn_c_try_run () 17006f02d4e9Smrg{ 17016f02d4e9Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17026f02d4e9Smrg if { { ac_try="$ac_link" 17036f02d4e9Smrgcase "(($ac_try" in 17046f02d4e9Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17056f02d4e9Smrg *) ac_try_echo=$ac_try;; 17066f02d4e9Smrgesac 17076f02d4e9Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 17086f02d4e9Smrg$as_echo "$ac_try_echo"; } >&5 17096f02d4e9Smrg (eval "$ac_link") 2>&5 17106f02d4e9Smrg ac_status=$? 17116f02d4e9Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17126f02d4e9Smrg test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 17136f02d4e9Smrg { { case "(($ac_try" in 17146f02d4e9Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17156f02d4e9Smrg *) ac_try_echo=$ac_try;; 17166f02d4e9Smrgesac 17176f02d4e9Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 17186f02d4e9Smrg$as_echo "$ac_try_echo"; } >&5 17196f02d4e9Smrg (eval "$ac_try") 2>&5 17206f02d4e9Smrg ac_status=$? 17216f02d4e9Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17226f02d4e9Smrg test $ac_status = 0; }; }; then : 17236f02d4e9Smrg ac_retval=0 17246f02d4e9Smrgelse 17256f02d4e9Smrg $as_echo "$as_me: program exited with status $ac_status" >&5 17266f02d4e9Smrg $as_echo "$as_me: failed program was:" >&5 17276f02d4e9Smrgsed 's/^/| /' conftest.$ac_ext >&5 17286f02d4e9Smrg 17296f02d4e9Smrg ac_retval=$ac_status 17306f02d4e9Smrgfi 17316f02d4e9Smrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 17326f02d4e9Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 17336f02d4e9Smrg as_fn_set_status $ac_retval 17346f02d4e9Smrg 17356f02d4e9Smrg} # ac_fn_c_try_run 17366f02d4e9Smrg 17376f02d4e9Smrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 17386f02d4e9Smrg# ------------------------------------------------------- 17396f02d4e9Smrg# Tests whether HEADER exists and can be compiled using the include files in 17406f02d4e9Smrg# INCLUDES, setting the cache variable VAR accordingly. 17416f02d4e9Smrgac_fn_c_check_header_compile () 17426f02d4e9Smrg{ 17436f02d4e9Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17446f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 17456f02d4e9Smrg$as_echo_n "checking for $2... " >&6; } 17466f02d4e9Smrgif eval \${$3+:} false; then : 17476f02d4e9Smrg $as_echo_n "(cached) " >&6 17486f02d4e9Smrgelse 17496f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17506f02d4e9Smrg/* end confdefs.h. */ 17516f02d4e9Smrg$4 17526f02d4e9Smrg#include <$2> 17536f02d4e9Smrg_ACEOF 17546f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 17556f02d4e9Smrg eval "$3=yes" 17566f02d4e9Smrgelse 17576f02d4e9Smrg eval "$3=no" 17586f02d4e9Smrgfi 17596f02d4e9Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17606f02d4e9Smrgfi 17616f02d4e9Smrgeval ac_res=\$$3 17626f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 17636f02d4e9Smrg$as_echo "$ac_res" >&6; } 17646f02d4e9Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 17656f02d4e9Smrg 17666f02d4e9Smrg} # ac_fn_c_check_header_compile 17676f02d4e9Smrg 17686f02d4e9Smrg# ac_fn_c_try_link LINENO 17696f02d4e9Smrg# ----------------------- 17706f02d4e9Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. 17716f02d4e9Smrgac_fn_c_try_link () 17726f02d4e9Smrg{ 17736f02d4e9Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17746f02d4e9Smrg rm -f conftest.$ac_objext conftest$ac_exeext 17756f02d4e9Smrg if { { ac_try="$ac_link" 17766f02d4e9Smrgcase "(($ac_try" in 17776f02d4e9Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17786f02d4e9Smrg *) ac_try_echo=$ac_try;; 17796f02d4e9Smrgesac 17806f02d4e9Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 17816f02d4e9Smrg$as_echo "$ac_try_echo"; } >&5 17826f02d4e9Smrg (eval "$ac_link") 2>conftest.err 17836f02d4e9Smrg ac_status=$? 17846f02d4e9Smrg if test -s conftest.err; then 17856f02d4e9Smrg grep -v '^ *+' conftest.err >conftest.er1 17866f02d4e9Smrg cat conftest.er1 >&5 17876f02d4e9Smrg mv -f conftest.er1 conftest.err 17886f02d4e9Smrg fi 17896f02d4e9Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17906f02d4e9Smrg test $ac_status = 0; } && { 17916f02d4e9Smrg test -z "$ac_c_werror_flag" || 17926f02d4e9Smrg test ! -s conftest.err 17936f02d4e9Smrg } && test -s conftest$ac_exeext && { 17946f02d4e9Smrg test "$cross_compiling" = yes || 17957253c0c7Smrg test -x conftest$ac_exeext 17966f02d4e9Smrg }; then : 17976f02d4e9Smrg ac_retval=0 17986f02d4e9Smrgelse 17996f02d4e9Smrg $as_echo "$as_me: failed program was:" >&5 18006f02d4e9Smrgsed 's/^/| /' conftest.$ac_ext >&5 18016f02d4e9Smrg 18026f02d4e9Smrg ac_retval=1 18036f02d4e9Smrgfi 18046f02d4e9Smrg # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 18056f02d4e9Smrg # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 18066f02d4e9Smrg # interfere with the next link command; also delete a directory that is 18076f02d4e9Smrg # left behind by Apple's compiler. We do this before executing the actions. 18086f02d4e9Smrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 18096f02d4e9Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 18106f02d4e9Smrg as_fn_set_status $ac_retval 18116f02d4e9Smrg 18126f02d4e9Smrg} # ac_fn_c_try_link 18136f02d4e9Smrg 18146f02d4e9Smrg# ac_fn_c_check_func LINENO FUNC VAR 18156f02d4e9Smrg# ---------------------------------- 18166f02d4e9Smrg# Tests whether FUNC exists, setting the cache variable VAR accordingly 18176f02d4e9Smrgac_fn_c_check_func () 18186f02d4e9Smrg{ 18196f02d4e9Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18206f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 18216f02d4e9Smrg$as_echo_n "checking for $2... " >&6; } 18226f02d4e9Smrgif eval \${$3+:} false; then : 18236f02d4e9Smrg $as_echo_n "(cached) " >&6 18246f02d4e9Smrgelse 18256f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18266f02d4e9Smrg/* end confdefs.h. */ 18276f02d4e9Smrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 18286f02d4e9Smrg For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18296f02d4e9Smrg#define $2 innocuous_$2 18306f02d4e9Smrg 18316f02d4e9Smrg/* System header to define __stub macros and hopefully few prototypes, 18326f02d4e9Smrg which can conflict with char $2 (); below. 18336f02d4e9Smrg Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18346f02d4e9Smrg <limits.h> exists even on freestanding compilers. */ 18356f02d4e9Smrg 18366f02d4e9Smrg#ifdef __STDC__ 18376f02d4e9Smrg# include <limits.h> 18386f02d4e9Smrg#else 18396f02d4e9Smrg# include <assert.h> 18406f02d4e9Smrg#endif 18416f02d4e9Smrg 18426f02d4e9Smrg#undef $2 18436f02d4e9Smrg 18446f02d4e9Smrg/* Override any GCC internal prototype to avoid an error. 18456f02d4e9Smrg Use char because int might match the return type of a GCC 18466f02d4e9Smrg builtin and then its argument prototype would still apply. */ 18476f02d4e9Smrg#ifdef __cplusplus 18486f02d4e9Smrgextern "C" 18496f02d4e9Smrg#endif 18506f02d4e9Smrgchar $2 (); 18516f02d4e9Smrg/* The GNU C library defines this for functions which it implements 18526f02d4e9Smrg to always fail with ENOSYS. Some functions are actually named 18536f02d4e9Smrg something starting with __ and the normal name is an alias. */ 18546f02d4e9Smrg#if defined __stub_$2 || defined __stub___$2 18556f02d4e9Smrgchoke me 18566f02d4e9Smrg#endif 18576f02d4e9Smrg 18586f02d4e9Smrgint 18596f02d4e9Smrgmain () 18606f02d4e9Smrg{ 18616f02d4e9Smrgreturn $2 (); 18626f02d4e9Smrg ; 18636f02d4e9Smrg return 0; 18646f02d4e9Smrg} 18656f02d4e9Smrg_ACEOF 18666f02d4e9Smrgif ac_fn_c_try_link "$LINENO"; then : 18676f02d4e9Smrg eval "$3=yes" 18686f02d4e9Smrgelse 18696f02d4e9Smrg eval "$3=no" 18706f02d4e9Smrgfi 18716f02d4e9Smrgrm -f core conftest.err conftest.$ac_objext \ 18726f02d4e9Smrg conftest$ac_exeext conftest.$ac_ext 18736f02d4e9Smrgfi 18746f02d4e9Smrgeval ac_res=\$$3 18756f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18766f02d4e9Smrg$as_echo "$ac_res" >&6; } 18776f02d4e9Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 18786f02d4e9Smrg 18796f02d4e9Smrg} # ac_fn_c_check_func 188021212451Smrgcat >config.log <<_ACEOF 188121212451SmrgThis file contains any messages produced by compilers while 188221212451Smrgrunning configure, to aid debugging if configure makes a mistake. 1883a73027baSmrg 1884d73e0b87SmrgIt was created by xinit $as_me 1.4.0, which was 18857253c0c7Smrggenerated by GNU Autoconf 2.69. Invocation command line was 1886a73027baSmrg 188721212451Smrg $ $0 $@ 1888a73027baSmrg 188921212451Smrg_ACEOF 189021212451Smrgexec 5>>config.log 1891bf4a254eSmrg{ 1892bf4a254eSmrgcat <<_ASUNAME 1893bf4a254eSmrg## --------- ## 1894bf4a254eSmrg## Platform. ## 1895bf4a254eSmrg## --------- ## 1896bf4a254eSmrg 1897bf4a254eSmrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1898bf4a254eSmrguname -m = `(uname -m) 2>/dev/null || echo unknown` 1899bf4a254eSmrguname -r = `(uname -r) 2>/dev/null || echo unknown` 1900bf4a254eSmrguname -s = `(uname -s) 2>/dev/null || echo unknown` 1901bf4a254eSmrguname -v = `(uname -v) 2>/dev/null || echo unknown` 1902bf4a254eSmrg 1903bf4a254eSmrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1904bf4a254eSmrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1905bf4a254eSmrg 1906bf4a254eSmrg/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1907bf4a254eSmrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1908bf4a254eSmrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1909bf4a254eSmrg/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1910bf4a254eSmrg/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1911bf4a254eSmrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1912bf4a254eSmrg/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1913bf4a254eSmrg 1914bf4a254eSmrg_ASUNAME 1915bf4a254eSmrg 1916bf4a254eSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1917bf4a254eSmrgfor as_dir in $PATH 1918bf4a254eSmrgdo 1919bf4a254eSmrg IFS=$as_save_IFS 1920bf4a254eSmrg test -z "$as_dir" && as_dir=. 19216f02d4e9Smrg $as_echo "PATH: $as_dir" 19226f02d4e9Smrg done 1923bf4a254eSmrgIFS=$as_save_IFS 1924bf4a254eSmrg 1925bf4a254eSmrg} >&5 1926bf4a254eSmrg 1927bf4a254eSmrgcat >&5 <<_ACEOF 1928bf4a254eSmrg 1929bf4a254eSmrg 1930bf4a254eSmrg## ----------- ## 1931bf4a254eSmrg## Core tests. ## 1932bf4a254eSmrg## ----------- ## 1933bf4a254eSmrg 1934bf4a254eSmrg_ACEOF 1935a73027baSmrg 1936a73027baSmrg 1937a73027baSmrg# Keep a trace of the command line. 1938a73027baSmrg# Strip out --no-create and --no-recursion so they do not pile up. 1939a73027baSmrg# Strip out --silent because we don't want to record it for future runs. 1940a73027baSmrg# Also quote any args containing shell meta-characters. 1941a73027baSmrg# Make two passes to allow for proper duplicate-argument suppression. 1942a73027baSmrgac_configure_args= 1943a73027baSmrgac_configure_args0= 1944a73027baSmrgac_configure_args1= 1945a73027baSmrgac_must_keep_next=false 1946a73027baSmrgfor ac_pass in 1 2 1947a73027baSmrgdo 1948a73027baSmrg for ac_arg 1949a73027baSmrg do 1950a73027baSmrg case $ac_arg in 1951a73027baSmrg -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1952a73027baSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1953a73027baSmrg | -silent | --silent | --silen | --sile | --sil) 1954a73027baSmrg continue ;; 1955a73027baSmrg *\'*) 19566f02d4e9Smrg ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1957a73027baSmrg esac 1958a73027baSmrg case $ac_pass in 19596f02d4e9Smrg 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1960a73027baSmrg 2) 19616f02d4e9Smrg as_fn_append ac_configure_args1 " '$ac_arg'" 1962a73027baSmrg if test $ac_must_keep_next = true; then 1963a73027baSmrg ac_must_keep_next=false # Got value, back to normal. 1964a73027baSmrg else 1965a73027baSmrg case $ac_arg in 1966a73027baSmrg *=* | --config-cache | -C | -disable-* | --disable-* \ 1967a73027baSmrg | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1968a73027baSmrg | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1969a73027baSmrg | -with-* | --with-* | -without-* | --without-* | --x) 1970a73027baSmrg case "$ac_configure_args0 " in 1971a73027baSmrg "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1972a73027baSmrg esac 1973a73027baSmrg ;; 1974a73027baSmrg -* ) ac_must_keep_next=true ;; 1975a73027baSmrg esac 1976a73027baSmrg fi 19776f02d4e9Smrg as_fn_append ac_configure_args " '$ac_arg'" 1978a73027baSmrg ;; 1979a73027baSmrg esac 1980a73027baSmrg done 1981a73027baSmrgdone 19826f02d4e9Smrg{ ac_configure_args0=; unset ac_configure_args0;} 19836f02d4e9Smrg{ ac_configure_args1=; unset ac_configure_args1;} 1984a73027baSmrg 1985a73027baSmrg# When interrupted or exit'd, cleanup temporary files, and complete 1986a73027baSmrg# config.log. We remove comments because anyway the quotes in there 1987a73027baSmrg# would cause problems or look ugly. 1988a73027baSmrg# WARNING: Use '\'' to represent an apostrophe within the trap. 1989a73027baSmrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1990a73027baSmrgtrap 'exit_status=$? 1991a73027baSmrg # Save into config.log some information that might help in debugging. 1992a73027baSmrg { 1993a73027baSmrg echo 1994a73027baSmrg 19956f02d4e9Smrg $as_echo "## ---------------- ## 1996a73027baSmrg## Cache variables. ## 19976f02d4e9Smrg## ---------------- ##" 1998a73027baSmrg echo 1999a73027baSmrg # The following way of writing the cache mishandles newlines in values, 2000a73027baSmrg( 2001a73027baSmrg for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2002a73027baSmrg eval ac_val=\$$ac_var 2003a73027baSmrg case $ac_val in #( 2004a73027baSmrg *${as_nl}*) 2005a73027baSmrg case $ac_var in #( 20066f02d4e9Smrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 20076f02d4e9Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2008a73027baSmrg esac 2009a73027baSmrg case $ac_var in #( 2010a73027baSmrg _ | IFS | as_nl) ;; #( 20116f02d4e9Smrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20126f02d4e9Smrg *) { eval $ac_var=; unset $ac_var;} ;; 2013a73027baSmrg esac ;; 2014a73027baSmrg esac 2015a73027baSmrg done 2016a73027baSmrg (set) 2>&1 | 2017a73027baSmrg case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2018a73027baSmrg *${as_nl}ac_space=\ *) 2019a73027baSmrg sed -n \ 2020a73027baSmrg "s/'\''/'\''\\\\'\'''\''/g; 2021a73027baSmrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2022a73027baSmrg ;; #( 2023a73027baSmrg *) 2024a73027baSmrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2025a73027baSmrg ;; 2026a73027baSmrg esac | 2027a73027baSmrg sort 2028a73027baSmrg) 2029a73027baSmrg echo 2030a73027baSmrg 20316f02d4e9Smrg $as_echo "## ----------------- ## 2032a73027baSmrg## Output variables. ## 20336f02d4e9Smrg## ----------------- ##" 2034a73027baSmrg echo 2035a73027baSmrg for ac_var in $ac_subst_vars 2036a73027baSmrg do 2037a73027baSmrg eval ac_val=\$$ac_var 2038a73027baSmrg case $ac_val in 20396f02d4e9Smrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2040a73027baSmrg esac 20416f02d4e9Smrg $as_echo "$ac_var='\''$ac_val'\''" 2042a73027baSmrg done | sort 2043a73027baSmrg echo 2044a73027baSmrg 2045a73027baSmrg if test -n "$ac_subst_files"; then 20466f02d4e9Smrg $as_echo "## ------------------- ## 2047a73027baSmrg## File substitutions. ## 20486f02d4e9Smrg## ------------------- ##" 2049a73027baSmrg echo 2050a73027baSmrg for ac_var in $ac_subst_files 2051a73027baSmrg do 2052a73027baSmrg eval ac_val=\$$ac_var 2053a73027baSmrg case $ac_val in 20546f02d4e9Smrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2055a73027baSmrg esac 20566f02d4e9Smrg $as_echo "$ac_var='\''$ac_val'\''" 2057a73027baSmrg done | sort 2058a73027baSmrg echo 2059a73027baSmrg fi 2060a73027baSmrg 2061a73027baSmrg if test -s confdefs.h; then 20626f02d4e9Smrg $as_echo "## ----------- ## 2063a73027baSmrg## confdefs.h. ## 20646f02d4e9Smrg## ----------- ##" 2065a73027baSmrg echo 2066a73027baSmrg cat confdefs.h 2067a73027baSmrg echo 2068a73027baSmrg fi 2069a73027baSmrg test "$ac_signal" != 0 && 20706f02d4e9Smrg $as_echo "$as_me: caught signal $ac_signal" 20716f02d4e9Smrg $as_echo "$as_me: exit $exit_status" 2072a73027baSmrg } >&5 2073a73027baSmrg rm -f core *.core core.conftest.* && 2074a73027baSmrg rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2075a73027baSmrg exit $exit_status 2076a73027baSmrg' 0 2077a73027baSmrgfor ac_signal in 1 2 13 15; do 20786f02d4e9Smrg trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2079a73027baSmrgdone 2080a73027baSmrgac_signal=0 2081a73027baSmrg 2082a73027baSmrg# confdefs.h avoids OS command line length limits that DEFS can exceed. 2083a73027baSmrgrm -f -r conftest* confdefs.h 2084a73027baSmrg 20856f02d4e9Smrg$as_echo "/* confdefs.h */" > confdefs.h 20866f02d4e9Smrg 2087a73027baSmrg# Predefined preprocessor variables. 2088a73027baSmrg 2089a73027baSmrgcat >>confdefs.h <<_ACEOF 2090a73027baSmrg#define PACKAGE_NAME "$PACKAGE_NAME" 2091a73027baSmrg_ACEOF 2092a73027baSmrg 2093a73027baSmrgcat >>confdefs.h <<_ACEOF 2094a73027baSmrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2095a73027baSmrg_ACEOF 2096a73027baSmrg 2097a73027baSmrgcat >>confdefs.h <<_ACEOF 2098a73027baSmrg#define PACKAGE_VERSION "$PACKAGE_VERSION" 2099a73027baSmrg_ACEOF 2100a73027baSmrg 2101a73027baSmrgcat >>confdefs.h <<_ACEOF 2102a73027baSmrg#define PACKAGE_STRING "$PACKAGE_STRING" 2103a73027baSmrg_ACEOF 2104a73027baSmrg 2105bf4a254eSmrgcat >>confdefs.h <<_ACEOF 210621212451Smrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2107bf4a254eSmrg_ACEOF 2108bf4a254eSmrg 21096f02d4e9Smrgcat >>confdefs.h <<_ACEOF 21106f02d4e9Smrg#define PACKAGE_URL "$PACKAGE_URL" 21116f02d4e9Smrg_ACEOF 21126f02d4e9Smrg 2113a73027baSmrg 2114a73027baSmrg# Let the site file select an alternate cache file if it wants to. 21156f02d4e9Smrg# Prefer an explicitly selected file to automatically selected ones. 21166f02d4e9Smrgac_site_file1=NONE 21176f02d4e9Smrgac_site_file2=NONE 2118a73027baSmrgif test -n "$CONFIG_SITE"; then 21196f02d4e9Smrg # We do not want a PATH search for config.site. 21206f02d4e9Smrg case $CONFIG_SITE in #(( 21216f02d4e9Smrg -*) ac_site_file1=./$CONFIG_SITE;; 21226f02d4e9Smrg */*) ac_site_file1=$CONFIG_SITE;; 21236f02d4e9Smrg *) ac_site_file1=./$CONFIG_SITE;; 21246f02d4e9Smrg esac 2125a73027baSmrgelif test "x$prefix" != xNONE; then 21266f02d4e9Smrg ac_site_file1=$prefix/share/config.site 21276f02d4e9Smrg ac_site_file2=$prefix/etc/config.site 2128a73027baSmrgelse 21296f02d4e9Smrg ac_site_file1=$ac_default_prefix/share/config.site 21306f02d4e9Smrg ac_site_file2=$ac_default_prefix/etc/config.site 2131a73027baSmrgfi 21326f02d4e9Smrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2" 2133a73027baSmrgdo 21346f02d4e9Smrg test "x$ac_site_file" = xNONE && continue 21356f02d4e9Smrg if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 21366f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 21376f02d4e9Smrg$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2138a73027baSmrg sed 's/^/| /' "$ac_site_file" >&5 21396f02d4e9Smrg . "$ac_site_file" \ 21406f02d4e9Smrg || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21416f02d4e9Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21426f02d4e9Smrgas_fn_error $? "failed to load site script $ac_site_file 21436f02d4e9SmrgSee \`config.log' for more details" "$LINENO" 5; } 2144a73027baSmrg fi 2145a73027baSmrgdone 2146a73027baSmrg 2147a73027baSmrgif test -r "$cache_file"; then 21486f02d4e9Smrg # Some versions of bash will fail to source /dev/null (special files 21496f02d4e9Smrg # actually), so we avoid doing that. DJGPP emulates it as a regular file. 21506f02d4e9Smrg if test /dev/null != "$cache_file" && test -f "$cache_file"; then 21516f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 21526f02d4e9Smrg$as_echo "$as_me: loading cache $cache_file" >&6;} 2153a73027baSmrg case $cache_file in 2154a73027baSmrg [\\/]* | ?:[\\/]* ) . "$cache_file";; 2155a73027baSmrg *) . "./$cache_file";; 2156a73027baSmrg esac 2157a73027baSmrg fi 2158a73027baSmrgelse 21596f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 21606f02d4e9Smrg$as_echo "$as_me: creating cache $cache_file" >&6;} 2161a73027baSmrg >$cache_file 2162a73027baSmrgfi 2163a73027baSmrg 2164a73027baSmrg# Check that the precious variables saved in the cache have kept the same 2165a73027baSmrg# value. 2166a73027baSmrgac_cache_corrupted=false 2167a73027baSmrgfor ac_var in $ac_precious_vars; do 2168a73027baSmrg eval ac_old_set=\$ac_cv_env_${ac_var}_set 2169a73027baSmrg eval ac_new_set=\$ac_env_${ac_var}_set 2170a73027baSmrg eval ac_old_val=\$ac_cv_env_${ac_var}_value 2171a73027baSmrg eval ac_new_val=\$ac_env_${ac_var}_value 2172a73027baSmrg case $ac_old_set,$ac_new_set in 2173a73027baSmrg set,) 21746f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 21756f02d4e9Smrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2176a73027baSmrg ac_cache_corrupted=: ;; 2177a73027baSmrg ,set) 21786f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 21796f02d4e9Smrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2180a73027baSmrg ac_cache_corrupted=: ;; 2181a73027baSmrg ,);; 2182a73027baSmrg *) 2183a73027baSmrg if test "x$ac_old_val" != "x$ac_new_val"; then 21846f02d4e9Smrg # differences in whitespace do not lead to failure. 21856f02d4e9Smrg ac_old_val_w=`echo x $ac_old_val` 21866f02d4e9Smrg ac_new_val_w=`echo x $ac_new_val` 21876f02d4e9Smrg if test "$ac_old_val_w" != "$ac_new_val_w"; then 21886f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 21896f02d4e9Smrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 21906f02d4e9Smrg ac_cache_corrupted=: 21916f02d4e9Smrg else 21926f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 21936f02d4e9Smrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 21946f02d4e9Smrg eval $ac_var=\$ac_old_val 21956f02d4e9Smrg fi 21966f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 21976f02d4e9Smrg$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 21986f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 21996f02d4e9Smrg$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2200a73027baSmrg fi;; 2201a73027baSmrg esac 2202a73027baSmrg # Pass precious variables to config.status. 2203a73027baSmrg if test "$ac_new_set" = set; then 2204a73027baSmrg case $ac_new_val in 22056f02d4e9Smrg *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2206a73027baSmrg *) ac_arg=$ac_var=$ac_new_val ;; 2207a73027baSmrg esac 2208a73027baSmrg case " $ac_configure_args " in 2209a73027baSmrg *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 22106f02d4e9Smrg *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2211a73027baSmrg esac 2212a73027baSmrg fi 2213a73027baSmrgdone 2214a73027baSmrgif $ac_cache_corrupted; then 22156f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22166f02d4e9Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 22176f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 22186f02d4e9Smrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 22196f02d4e9Smrg as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2220a73027baSmrgfi 22216f02d4e9Smrg## -------------------- ## 22226f02d4e9Smrg## Main body of script. ## 22236f02d4e9Smrg## -------------------- ## 2224a73027baSmrg 2225a73027baSmrgac_ext=c 2226a73027baSmrgac_cpp='$CPP $CPPFLAGS' 2227a73027baSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2228a73027baSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2229a73027baSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 2230a73027baSmrg 2231a73027baSmrg 2232c81d8f5eSmrg 2233c81d8f5eSmrgac_config_headers="$ac_config_headers config.h" 2234c81d8f5eSmrg 2235c81d8f5eSmrg 2236c81d8f5eSmrg# Initialize Automake 2237d73e0b87Smrgam__api_version='1.15' 2238a73027baSmrg 2239a73027baSmrgac_aux_dir= 2240a73027baSmrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 224129004570Smrg if test -f "$ac_dir/install-sh"; then 224229004570Smrg ac_aux_dir=$ac_dir 224329004570Smrg ac_install_sh="$ac_aux_dir/install-sh -c" 224429004570Smrg break 224529004570Smrg elif test -f "$ac_dir/install.sh"; then 224629004570Smrg ac_aux_dir=$ac_dir 224729004570Smrg ac_install_sh="$ac_aux_dir/install.sh -c" 224829004570Smrg break 224929004570Smrg elif test -f "$ac_dir/shtool"; then 225029004570Smrg ac_aux_dir=$ac_dir 225129004570Smrg ac_install_sh="$ac_aux_dir/shtool install -c" 225229004570Smrg break 225329004570Smrg fi 2254a73027baSmrgdone 2255a73027baSmrgif test -z "$ac_aux_dir"; then 22566f02d4e9Smrg as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2257a73027baSmrgfi 2258a73027baSmrg 2259a73027baSmrg# These three variables are undocumented and unsupported, 2260a73027baSmrg# and are intended to be withdrawn in a future Autoconf release. 2261a73027baSmrg# They can cause serious problems if a builder's source tree is in a directory 2262a73027baSmrg# whose full name contains unusual characters. 2263a73027baSmrgac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2264a73027baSmrgac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2265a73027baSmrgac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2266a73027baSmrg 2267a73027baSmrg 2268a73027baSmrg# Find a good install program. We prefer a C program (faster), 2269a73027baSmrg# so one script is as good as another. But avoid the broken or 2270a73027baSmrg# incompatible versions: 2271a73027baSmrg# SysV /etc/install, /usr/sbin/install 2272a73027baSmrg# SunOS /usr/etc/install 2273a73027baSmrg# IRIX /sbin/install 2274a73027baSmrg# AIX /bin/install 2275a73027baSmrg# AmigaOS /C/install, which installs bootblocks on floppy discs 2276a73027baSmrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2277a73027baSmrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2278a73027baSmrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2279a73027baSmrg# OS/2's system install, which has a completely different semantic 2280a73027baSmrg# ./install, which can be erroneously created by make from ./install.sh. 22816f02d4e9Smrg# Reject install programs that cannot install multiple files. 22826f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 22836f02d4e9Smrg$as_echo_n "checking for a BSD-compatible install... " >&6; } 2284a73027baSmrgif test -z "$INSTALL"; then 22856f02d4e9Smrgif ${ac_cv_path_install+:} false; then : 22866f02d4e9Smrg $as_echo_n "(cached) " >&6 2287a73027baSmrgelse 2288a73027baSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2289a73027baSmrgfor as_dir in $PATH 2290a73027baSmrgdo 2291a73027baSmrg IFS=$as_save_IFS 2292a73027baSmrg test -z "$as_dir" && as_dir=. 22936f02d4e9Smrg # Account for people who put trailing slashes in PATH elements. 22946f02d4e9Smrgcase $as_dir/ in #(( 22956f02d4e9Smrg ./ | .// | /[cC]/* | \ 2296a73027baSmrg /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 22976f02d4e9Smrg ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2298a73027baSmrg /usr/ucb/* ) ;; 2299a73027baSmrg *) 2300a73027baSmrg # OSF1 and SCO ODT 3.0 have their own names for install. 2301a73027baSmrg # Don't use installbsd from OSF since it installs stuff as root 2302a73027baSmrg # by default. 2303a73027baSmrg for ac_prog in ginstall scoinst install; do 2304a73027baSmrg for ac_exec_ext in '' $ac_executable_extensions; do 23057253c0c7Smrg if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2306a73027baSmrg if test $ac_prog = install && 2307a73027baSmrg grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2308a73027baSmrg # AIX install. It has an incompatible calling convention. 2309a73027baSmrg : 2310a73027baSmrg elif test $ac_prog = install && 2311a73027baSmrg grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2312a73027baSmrg # program-specific install script used by HP pwplus--don't use. 2313a73027baSmrg : 2314a73027baSmrg else 23156f02d4e9Smrg rm -rf conftest.one conftest.two conftest.dir 23166f02d4e9Smrg echo one > conftest.one 23176f02d4e9Smrg echo two > conftest.two 23186f02d4e9Smrg mkdir conftest.dir 23196f02d4e9Smrg if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 23206f02d4e9Smrg test -s conftest.one && test -s conftest.two && 23216f02d4e9Smrg test -s conftest.dir/conftest.one && 23226f02d4e9Smrg test -s conftest.dir/conftest.two 23236f02d4e9Smrg then 23246f02d4e9Smrg ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 23256f02d4e9Smrg break 3 23266f02d4e9Smrg fi 2327a73027baSmrg fi 2328a73027baSmrg fi 2329a73027baSmrg done 2330a73027baSmrg done 2331a73027baSmrg ;; 2332a73027baSmrgesac 23336f02d4e9Smrg 23346f02d4e9Smrg done 2335a73027baSmrgIFS=$as_save_IFS 2336a73027baSmrg 23376f02d4e9Smrgrm -rf conftest.one conftest.two conftest.dir 2338a73027baSmrg 2339a73027baSmrgfi 2340a73027baSmrg if test "${ac_cv_path_install+set}" = set; then 2341a73027baSmrg INSTALL=$ac_cv_path_install 2342a73027baSmrg else 2343a73027baSmrg # As a last resort, use the slow shell script. Don't cache a 2344a73027baSmrg # value for INSTALL within a source directory, because that will 2345a73027baSmrg # break other packages using the cache if that directory is 2346a73027baSmrg # removed, or if the value is a relative name. 2347a73027baSmrg INSTALL=$ac_install_sh 2348a73027baSmrg fi 2349a73027baSmrgfi 23506f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 23516f02d4e9Smrg$as_echo "$INSTALL" >&6; } 2352a73027baSmrg 2353a73027baSmrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2354a73027baSmrg# It thinks the first close brace ends the variable substitution. 2355a73027baSmrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2356a73027baSmrg 2357a73027baSmrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2358a73027baSmrg 2359a73027baSmrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2360a73027baSmrg 23616f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 23626f02d4e9Smrg$as_echo_n "checking whether build environment is sane... " >&6; } 23636f02d4e9Smrg# Reject unsafe characters in $srcdir or the absolute working directory 23646f02d4e9Smrg# name. Accept space and tab only in the latter. 23656f02d4e9Smrgam_lf=' 23666f02d4e9Smrg' 23676f02d4e9Smrgcase `pwd` in 23686f02d4e9Smrg *[\\\"\#\$\&\'\`$am_lf]*) 23696f02d4e9Smrg as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 23706f02d4e9Smrgesac 23716f02d4e9Smrgcase $srcdir in 23726f02d4e9Smrg *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 23736f02d4e9Smrg as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 23746f02d4e9Smrgesac 23756f02d4e9Smrg 23766f02d4e9Smrg# Do 'set' in a subshell so we don't clobber the current shell's 2377a73027baSmrg# arguments. Must try -L first in case configure is actually a 2378a73027baSmrg# symlink; some systems play weird games with the mod time of symlinks 2379a73027baSmrg# (eg FreeBSD returns the mod time of the symlink's containing 2380a73027baSmrg# directory). 2381a73027baSmrgif ( 23826f02d4e9Smrg am_has_slept=no 23836f02d4e9Smrg for am_try in 1 2; do 23846f02d4e9Smrg echo "timestamp, slept: $am_has_slept" > conftest.file 23856f02d4e9Smrg set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 23866f02d4e9Smrg if test "$*" = "X"; then 23876f02d4e9Smrg # -L didn't work. 23886f02d4e9Smrg set X `ls -t "$srcdir/configure" conftest.file` 23896f02d4e9Smrg fi 23906f02d4e9Smrg if test "$*" != "X $srcdir/configure conftest.file" \ 23916f02d4e9Smrg && test "$*" != "X conftest.file $srcdir/configure"; then 23926f02d4e9Smrg 23936f02d4e9Smrg # If neither matched, then we have a broken ls. This can happen 23946f02d4e9Smrg # if, for instance, CONFIG_SHELL is bash and it inherits a 23956f02d4e9Smrg # broken ls alias from the environment. This has actually 23966f02d4e9Smrg # happened. Such a system could not be considered "sane". 23976f02d4e9Smrg as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 23986f02d4e9Smrg alias in your environment" "$LINENO" 5 23996f02d4e9Smrg fi 24006f02d4e9Smrg if test "$2" = conftest.file || test $am_try -eq 2; then 24016f02d4e9Smrg break 24026f02d4e9Smrg fi 24036f02d4e9Smrg # Just in case. 24046f02d4e9Smrg sleep 1 24056f02d4e9Smrg am_has_slept=yes 24066f02d4e9Smrg done 2407a73027baSmrg test "$2" = conftest.file 2408a73027baSmrg ) 2409a73027baSmrgthen 2410a73027baSmrg # Ok. 2411a73027baSmrg : 2412a73027baSmrgelse 24136f02d4e9Smrg as_fn_error $? "newly created file is older than distributed files! 24146f02d4e9SmrgCheck your system clock" "$LINENO" 5 2415a73027baSmrgfi 24166f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24176f02d4e9Smrg$as_echo "yes" >&6; } 24186f02d4e9Smrg# If we didn't sleep, we still need to ensure time stamps of config.status and 24196f02d4e9Smrg# generated files are strictly newer. 24206f02d4e9Smrgam_sleep_pid= 24216f02d4e9Smrgif grep 'slept: no' conftest.file >/dev/null 2>&1; then 24226f02d4e9Smrg ( sleep 1 ) & 24236f02d4e9Smrg am_sleep_pid=$! 24246f02d4e9Smrgfi 24256f02d4e9Smrg 24266f02d4e9Smrgrm -f conftest.file 24276f02d4e9Smrg 2428a73027baSmrgtest "$program_prefix" != NONE && 2429a73027baSmrg program_transform_name="s&^&$program_prefix&;$program_transform_name" 2430a73027baSmrg# Use a double $ so make ignores it. 2431a73027baSmrgtest "$program_suffix" != NONE && 2432a73027baSmrg program_transform_name="s&\$&$program_suffix&;$program_transform_name" 24336f02d4e9Smrg# Double any \ or $. 2434a73027baSmrg# By default was `s,x,x', remove it if useless. 24356f02d4e9Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 24366f02d4e9Smrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2437a73027baSmrg 2438d73e0b87Smrg# Expand $ac_aux_dir to an absolute path. 2439d73e0b87Smrgam_aux_dir=`cd "$ac_aux_dir" && pwd` 2440a73027baSmrg 24416f02d4e9Smrgif test x"${MISSING+set}" != xset; then 24426f02d4e9Smrg case $am_aux_dir in 24436f02d4e9Smrg *\ * | *\ *) 24446f02d4e9Smrg MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 24456f02d4e9Smrg *) 24466f02d4e9Smrg MISSING="\${SHELL} $am_aux_dir/missing" ;; 24476f02d4e9Smrg esac 24486f02d4e9Smrgfi 2449a73027baSmrg# Use eval to expand $SHELL 24506f02d4e9Smrgif eval "$MISSING --is-lightweight"; then 24516f02d4e9Smrg am_missing_run="$MISSING " 2452a73027baSmrgelse 2453a73027baSmrg am_missing_run= 24546f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 24556f02d4e9Smrg$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 24566f02d4e9Smrgfi 24576f02d4e9Smrg 2458d73e0b87Smrgif test x"${install_sh+set}" != xset; then 24596f02d4e9Smrg case $am_aux_dir in 24606f02d4e9Smrg *\ * | *\ *) 24616f02d4e9Smrg install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 24626f02d4e9Smrg *) 24636f02d4e9Smrg install_sh="\${SHELL} $am_aux_dir/install-sh" 24646f02d4e9Smrg esac 24656f02d4e9Smrgfi 24666f02d4e9Smrg 24676f02d4e9Smrg# Installed binaries are usually stripped using 'strip' when the user 24686f02d4e9Smrg# run "make install-strip". However 'strip' might not be the right 24696f02d4e9Smrg# tool to use in cross-compilation environments, therefore Automake 24706f02d4e9Smrg# will honor the 'STRIP' environment variable to overrule this program. 24716f02d4e9Smrgif test "$cross_compiling" != no; then 24726f02d4e9Smrg if test -n "$ac_tool_prefix"; then 24736f02d4e9Smrg # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 24746f02d4e9Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2 24756f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24766f02d4e9Smrg$as_echo_n "checking for $ac_word... " >&6; } 24776f02d4e9Smrgif ${ac_cv_prog_STRIP+:} false; then : 24786f02d4e9Smrg $as_echo_n "(cached) " >&6 24796f02d4e9Smrgelse 24806f02d4e9Smrg if test -n "$STRIP"; then 24816f02d4e9Smrg ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 24826f02d4e9Smrgelse 24836f02d4e9Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24846f02d4e9Smrgfor as_dir in $PATH 24856f02d4e9Smrgdo 24866f02d4e9Smrg IFS=$as_save_IFS 24876f02d4e9Smrg test -z "$as_dir" && as_dir=. 24886f02d4e9Smrg for ac_exec_ext in '' $ac_executable_extensions; do 24897253c0c7Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24906f02d4e9Smrg ac_cv_prog_STRIP="${ac_tool_prefix}strip" 24916f02d4e9Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24926f02d4e9Smrg break 2 24936f02d4e9Smrg fi 24946f02d4e9Smrgdone 24956f02d4e9Smrg done 24966f02d4e9SmrgIFS=$as_save_IFS 24976f02d4e9Smrg 24986f02d4e9Smrgfi 24996f02d4e9Smrgfi 25006f02d4e9SmrgSTRIP=$ac_cv_prog_STRIP 25016f02d4e9Smrgif test -n "$STRIP"; then 25026f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 25036f02d4e9Smrg$as_echo "$STRIP" >&6; } 25046f02d4e9Smrgelse 25056f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25066f02d4e9Smrg$as_echo "no" >&6; } 25076f02d4e9Smrgfi 25086f02d4e9Smrg 25096f02d4e9Smrg 25106f02d4e9Smrgfi 25116f02d4e9Smrgif test -z "$ac_cv_prog_STRIP"; then 25126f02d4e9Smrg ac_ct_STRIP=$STRIP 25136f02d4e9Smrg # Extract the first word of "strip", so it can be a program name with args. 25146f02d4e9Smrgset dummy strip; ac_word=$2 25156f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25166f02d4e9Smrg$as_echo_n "checking for $ac_word... " >&6; } 25176f02d4e9Smrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then : 25186f02d4e9Smrg $as_echo_n "(cached) " >&6 25196f02d4e9Smrgelse 25206f02d4e9Smrg if test -n "$ac_ct_STRIP"; then 25216f02d4e9Smrg ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 25226f02d4e9Smrgelse 25236f02d4e9Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25246f02d4e9Smrgfor as_dir in $PATH 25256f02d4e9Smrgdo 25266f02d4e9Smrg IFS=$as_save_IFS 25276f02d4e9Smrg test -z "$as_dir" && as_dir=. 25286f02d4e9Smrg for ac_exec_ext in '' $ac_executable_extensions; do 25297253c0c7Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25306f02d4e9Smrg ac_cv_prog_ac_ct_STRIP="strip" 25316f02d4e9Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25326f02d4e9Smrg break 2 25336f02d4e9Smrg fi 25346f02d4e9Smrgdone 25356f02d4e9Smrg done 25366f02d4e9SmrgIFS=$as_save_IFS 25376f02d4e9Smrg 25386f02d4e9Smrgfi 25396f02d4e9Smrgfi 25406f02d4e9Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 25416f02d4e9Smrgif test -n "$ac_ct_STRIP"; then 25426f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 25436f02d4e9Smrg$as_echo "$ac_ct_STRIP" >&6; } 25446f02d4e9Smrgelse 25456f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25466f02d4e9Smrg$as_echo "no" >&6; } 25476f02d4e9Smrgfi 25486f02d4e9Smrg 25496f02d4e9Smrg if test "x$ac_ct_STRIP" = x; then 25506f02d4e9Smrg STRIP=":" 25516f02d4e9Smrg else 25526f02d4e9Smrg case $cross_compiling:$ac_tool_warned in 25536f02d4e9Smrgyes:) 25546f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 25556f02d4e9Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 25566f02d4e9Smrgac_tool_warned=yes ;; 25576f02d4e9Smrgesac 25586f02d4e9Smrg STRIP=$ac_ct_STRIP 25596f02d4e9Smrg fi 25606f02d4e9Smrgelse 25616f02d4e9Smrg STRIP="$ac_cv_prog_STRIP" 25626f02d4e9Smrgfi 25636f02d4e9Smrg 2564bf4a254eSmrgfi 25656f02d4e9SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2566bf4a254eSmrg 25676f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 25686f02d4e9Smrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 256921212451Smrgif test -z "$MKDIR_P"; then 25706f02d4e9Smrg if ${ac_cv_path_mkdir+:} false; then : 25716f02d4e9Smrg $as_echo_n "(cached) " >&6 2572bf4a254eSmrgelse 257321212451Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 257421212451Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2575bf4a254eSmrgdo 2576bf4a254eSmrg IFS=$as_save_IFS 2577bf4a254eSmrg test -z "$as_dir" && as_dir=. 25786f02d4e9Smrg for ac_prog in mkdir gmkdir; do 257921212451Smrg for ac_exec_ext in '' $ac_executable_extensions; do 25807253c0c7Smrg as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 258121212451Smrg case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 258221212451Smrg 'mkdir (GNU coreutils) '* | \ 258321212451Smrg 'mkdir (coreutils) '* | \ 258421212451Smrg 'mkdir (fileutils) '4.1*) 258521212451Smrg ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 258621212451Smrg break 3;; 258721212451Smrg esac 258821212451Smrg done 258921212451Smrg done 25906f02d4e9Smrg done 2591bf4a254eSmrgIFS=$as_save_IFS 2592bf4a254eSmrg 2593bf4a254eSmrgfi 259421212451Smrg 25956f02d4e9Smrg test -d ./--version && rmdir ./--version 259621212451Smrg if test "${ac_cv_path_mkdir+set}" = set; then 259721212451Smrg MKDIR_P="$ac_cv_path_mkdir -p" 259821212451Smrg else 259921212451Smrg # As a last resort, use the slow shell script. Don't cache a 260021212451Smrg # value for MKDIR_P within a source directory, because that will 260121212451Smrg # break other packages using the cache if that directory is 260221212451Smrg # removed, or if the value is a relative name. 260321212451Smrg MKDIR_P="$ac_install_sh -d" 260421212451Smrg fi 2605bf4a254eSmrgfi 26066f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 26076f02d4e9Smrg$as_echo "$MKDIR_P" >&6; } 2608bf4a254eSmrg 260921212451Smrgfor ac_prog in gawk mawk nawk awk 261021212451Smrgdo 261121212451Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 261221212451Smrgset dummy $ac_prog; ac_word=$2 26136f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26146f02d4e9Smrg$as_echo_n "checking for $ac_word... " >&6; } 26156f02d4e9Smrgif ${ac_cv_prog_AWK+:} false; then : 26166f02d4e9Smrg $as_echo_n "(cached) " >&6 2617bf4a254eSmrgelse 261821212451Smrg if test -n "$AWK"; then 261921212451Smrg ac_cv_prog_AWK="$AWK" # Let the user override the test. 2620bf4a254eSmrgelse 2621bf4a254eSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2622bf4a254eSmrgfor as_dir in $PATH 2623bf4a254eSmrgdo 2624bf4a254eSmrg IFS=$as_save_IFS 2625bf4a254eSmrg test -z "$as_dir" && as_dir=. 26266f02d4e9Smrg for ac_exec_ext in '' $ac_executable_extensions; do 26277253c0c7Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 262821212451Smrg ac_cv_prog_AWK="$ac_prog" 26296f02d4e9Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2630bf4a254eSmrg break 2 2631bf4a254eSmrg fi 2632bf4a254eSmrgdone 26336f02d4e9Smrg done 2634a73027baSmrgIFS=$as_save_IFS 2635a73027baSmrg 2636a73027baSmrgfi 2637a73027baSmrgfi 2638a73027baSmrgAWK=$ac_cv_prog_AWK 2639a73027baSmrgif test -n "$AWK"; then 26406f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 26416f02d4e9Smrg$as_echo "$AWK" >&6; } 2642a73027baSmrgelse 26436f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26446f02d4e9Smrg$as_echo "no" >&6; } 2645a73027baSmrgfi 2646a73027baSmrg 2647a73027baSmrg 2648a73027baSmrg test -n "$AWK" && break 2649a73027baSmrgdone 2650a73027baSmrg 26516f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 26526f02d4e9Smrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 26536f02d4e9Smrgset x ${MAKE-make} 26546f02d4e9Smrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 26556f02d4e9Smrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 26566f02d4e9Smrg $as_echo_n "(cached) " >&6 2657a73027baSmrgelse 2658a73027baSmrg cat >conftest.make <<\_ACEOF 2659a73027baSmrgSHELL = /bin/sh 2660a73027baSmrgall: 2661a73027baSmrg @echo '@@@%%%=$(MAKE)=@@@%%%' 2662a73027baSmrg_ACEOF 26636f02d4e9Smrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2664a73027baSmrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in 2665a73027baSmrg *@@@%%%=?*=@@@%%%*) 2666a73027baSmrg eval ac_cv_prog_make_${ac_make}_set=yes;; 2667a73027baSmrg *) 2668a73027baSmrg eval ac_cv_prog_make_${ac_make}_set=no;; 2669a73027baSmrgesac 2670a73027baSmrgrm -f conftest.make 2671a73027baSmrgfi 2672a73027baSmrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 26736f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26746f02d4e9Smrg$as_echo "yes" >&6; } 2675a73027baSmrg SET_MAKE= 2676a73027baSmrgelse 26776f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26786f02d4e9Smrg$as_echo "no" >&6; } 2679a73027baSmrg SET_MAKE="MAKE=${MAKE-make}" 2680a73027baSmrgfi 2681a73027baSmrg 2682a73027baSmrgrm -rf .tst 2>/dev/null 2683a73027baSmrgmkdir .tst 2>/dev/null 2684a73027baSmrgif test -d .tst; then 2685a73027baSmrg am__leading_dot=. 2686a73027baSmrgelse 2687a73027baSmrg am__leading_dot=_ 2688a73027baSmrgfi 2689a73027baSmrgrmdir .tst 2>/dev/null 2690a73027baSmrg 26916f02d4e9Smrg# Check whether --enable-silent-rules was given. 26926f02d4e9Smrgif test "${enable_silent_rules+set}" = set; then : 26936f02d4e9Smrg enableval=$enable_silent_rules; 269421212451Smrgfi 269521212451Smrg 26966f02d4e9Smrgcase $enable_silent_rules in # ((( 26976f02d4e9Smrg yes) AM_DEFAULT_VERBOSITY=0;; 26986f02d4e9Smrg no) AM_DEFAULT_VERBOSITY=1;; 26996f02d4e9Smrg *) AM_DEFAULT_VERBOSITY=1;; 27006f02d4e9Smrgesac 27016f02d4e9Smrgam_make=${MAKE-make} 27026f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 27036f02d4e9Smrg$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 27046f02d4e9Smrgif ${am_cv_make_support_nested_variables+:} false; then : 27056f02d4e9Smrg $as_echo_n "(cached) " >&6 27066f02d4e9Smrgelse 27076f02d4e9Smrg if $as_echo 'TRUE=$(BAR$(V)) 27086f02d4e9SmrgBAR0=false 27096f02d4e9SmrgBAR1=true 27106f02d4e9SmrgV=1 27116f02d4e9Smrgam__doit: 27126f02d4e9Smrg @$(TRUE) 27136f02d4e9Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 27146f02d4e9Smrg am_cv_make_support_nested_variables=yes 271521212451Smrgelse 27166f02d4e9Smrg am_cv_make_support_nested_variables=no 271721212451Smrgfi 271821212451Smrgfi 27196f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 27206f02d4e9Smrg$as_echo "$am_cv_make_support_nested_variables" >&6; } 27216f02d4e9Smrgif test $am_cv_make_support_nested_variables = yes; then 27226f02d4e9Smrg AM_V='$(V)' 27236f02d4e9Smrg AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 272421212451Smrgelse 27256f02d4e9Smrg AM_V=$AM_DEFAULT_VERBOSITY 27266f02d4e9Smrg AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 272721212451Smrgfi 27286f02d4e9SmrgAM_BACKSLASH='\' 272921212451Smrg 27306f02d4e9Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then 27316f02d4e9Smrg # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 27326f02d4e9Smrg # is not polluted with repeated "-I." 27336f02d4e9Smrg am__isrc=' -I$(srcdir)' 27346f02d4e9Smrg # test to see if srcdir already configured 27356f02d4e9Smrg if test -f $srcdir/config.status; then 27366f02d4e9Smrg as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 273721212451Smrg fi 273821212451Smrgfi 273921212451Smrg 27406f02d4e9Smrg# test whether we have cygpath 27416f02d4e9Smrgif test -z "$CYGPATH_W"; then 27426f02d4e9Smrg if (cygpath --version) >/dev/null 2>/dev/null; then 27436f02d4e9Smrg CYGPATH_W='cygpath -w' 27446f02d4e9Smrg else 27456f02d4e9Smrg CYGPATH_W=echo 27466f02d4e9Smrg fi 274721212451Smrgfi 27486f02d4e9Smrg 27496f02d4e9Smrg 27506f02d4e9Smrg# Define the identity of the package. 27516f02d4e9Smrg PACKAGE='xinit' 2752d73e0b87Smrg VERSION='1.4.0' 27536f02d4e9Smrg 27546f02d4e9Smrg 27556f02d4e9Smrgcat >>confdefs.h <<_ACEOF 27566f02d4e9Smrg#define PACKAGE "$PACKAGE" 27576f02d4e9Smrg_ACEOF 27586f02d4e9Smrg 27596f02d4e9Smrg 27606f02d4e9Smrgcat >>confdefs.h <<_ACEOF 27616f02d4e9Smrg#define VERSION "$VERSION" 27626f02d4e9Smrg_ACEOF 27636f02d4e9Smrg 27646f02d4e9Smrg# Some tools Automake needs. 27656f02d4e9Smrg 27666f02d4e9SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 27676f02d4e9Smrg 27686f02d4e9Smrg 27696f02d4e9SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 27706f02d4e9Smrg 27716f02d4e9Smrg 27726f02d4e9SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 27736f02d4e9Smrg 27746f02d4e9Smrg 27756f02d4e9SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 27766f02d4e9Smrg 27776f02d4e9Smrg 27786f02d4e9SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 27796f02d4e9Smrg 27806f02d4e9Smrg# For better backward compatibility. To be removed once Automake 1.9.x 27816f02d4e9Smrg# dies out for good. For more background, see: 27826f02d4e9Smrg# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 27836f02d4e9Smrg# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 27846f02d4e9Smrgmkdir_p='$(MKDIR_P)' 278521212451Smrg 2786d73e0b87Smrg# We need awk for the "check" target (and possibly the TAP driver). The 2787d73e0b87Smrg# system "awk" is bad on some platforms. 27886f02d4e9Smrg# Always define AMTAR for backward compatibility. Yes, it's still used 27896f02d4e9Smrg# in the wild :-( We should find a proper way to deprecate it ... 27906f02d4e9SmrgAMTAR='$${TAR-tar}' 27916f02d4e9Smrg 27926f02d4e9Smrg 27936f02d4e9Smrg# We'll loop over all known methods to create a tar archive until one works. 27946f02d4e9Smrg_am_tools='gnutar pax cpio none' 27956f02d4e9Smrg 27966f02d4e9Smrgam__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 27976f02d4e9Smrg 27986f02d4e9Smrg 27996f02d4e9Smrg 28006f02d4e9Smrg 28016f02d4e9Smrg 28026f02d4e9Smrg 28036f02d4e9Smrg# POSIX will say in a future version that running "rm -f" with no argument 28046f02d4e9Smrg# is OK; and we want to be able to make that assumption in our Makefile 28056f02d4e9Smrg# recipes. So use an aggressive probe to check that the usage we want is 28066f02d4e9Smrg# actually supported "in the wild" to an acceptable degree. 28076f02d4e9Smrg# See automake bug#10828. 28086f02d4e9Smrg# To make any issue more visible, cause the running configure to be aborted 28096f02d4e9Smrg# by default if the 'rm' program in use doesn't match our expectations; the 28106f02d4e9Smrg# user can still override this though. 28116f02d4e9Smrgif rm -f && rm -fr && rm -rf; then : OK; else 28126f02d4e9Smrg cat >&2 <<'END' 28136f02d4e9SmrgOops! 2814a73027baSmrg 28156f02d4e9SmrgYour 'rm' program seems unable to run without file operands specified 28166f02d4e9Smrgon the command line, even when the '-f' option is present. This is contrary 28176f02d4e9Smrgto the behaviour of most rm programs out there, and not conforming with 28186f02d4e9Smrgthe upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2819a73027baSmrg 28206f02d4e9SmrgPlease tell bug-automake@gnu.org about your system, including the value 28216f02d4e9Smrgof your $PATH and any error possibly output before this message. This 28226f02d4e9Smrgcan help us improve future automake versions. 2823a73027baSmrg 28246f02d4e9SmrgEND 28256f02d4e9Smrg if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 28266f02d4e9Smrg echo 'Configuration will proceed anyway, since you have set the' >&2 28276f02d4e9Smrg echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 28286f02d4e9Smrg echo >&2 28296f02d4e9Smrg else 28306f02d4e9Smrg cat >&2 <<'END' 28316f02d4e9SmrgAborting the configuration process, to ensure you take notice of the issue. 2832a73027baSmrg 28336f02d4e9SmrgYou can download and install GNU coreutils to get an 'rm' implementation 28346f02d4e9Smrgthat behaves properly: <http://www.gnu.org/software/coreutils/>. 2835a73027baSmrg 28366f02d4e9SmrgIf you want to complete the configuration process using your problematic 28376f02d4e9Smrg'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 28386f02d4e9Smrgto "yes", and re-run configure. 2839a73027baSmrg 28406f02d4e9SmrgEND 28416f02d4e9Smrg as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 28426f02d4e9Smrg fi 28436f02d4e9Smrgfi 2844a73027baSmrg 2845d73e0b87Smrg 28467253c0c7Smrg# Require X.Org macros 1.19 or later for TRADITIONALCPPFLAGS 2847bf4a254eSmrg 2848bf4a254eSmrg 2849bf4a254eSmrg 2850bf4a254eSmrg 2851bf4a254eSmrg 2852bf4a254eSmrg 2853bf4a254eSmrg 2854bf4a254eSmrg 2855bf4a254eSmrg 2856bf4a254eSmrg 2857bf4a254eSmrg 2858bf4a254eSmrgDEPDIR="${am__leading_dot}deps" 2859bf4a254eSmrg 2860bf4a254eSmrgac_config_commands="$ac_config_commands depfiles" 2861bf4a254eSmrg 2862bf4a254eSmrg 2863bf4a254eSmrgam_make=${MAKE-make} 2864bf4a254eSmrgcat > confinc << 'END' 2865bf4a254eSmrgam__doit: 28666f02d4e9Smrg @echo this is the am__doit target 2867bf4a254eSmrg.PHONY: am__doit 2868bf4a254eSmrgEND 2869bf4a254eSmrg# If we don't find an include directive, just comment out the code. 28706f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 28716f02d4e9Smrg$as_echo_n "checking for style of include used by $am_make... " >&6; } 2872bf4a254eSmrgam__include="#" 2873bf4a254eSmrgam__quote= 2874bf4a254eSmrg_am_result=none 2875bf4a254eSmrg# First try GNU make style include. 2876bf4a254eSmrgecho "include confinc" > confmf 28776f02d4e9Smrg# Ignore all kinds of additional output from 'make'. 28786f02d4e9Smrgcase `$am_make -s -f confmf 2> /dev/null` in #( 28796f02d4e9Smrg*the\ am__doit\ target*) 28806f02d4e9Smrg am__include=include 28816f02d4e9Smrg am__quote= 28826f02d4e9Smrg _am_result=GNU 28836f02d4e9Smrg ;; 28846f02d4e9Smrgesac 2885bf4a254eSmrg# Now try BSD make style include. 2886bf4a254eSmrgif test "$am__include" = "#"; then 2887bf4a254eSmrg echo '.include "confinc"' > confmf 28886f02d4e9Smrg case `$am_make -s -f confmf 2> /dev/null` in #( 28896f02d4e9Smrg *the\ am__doit\ target*) 28906f02d4e9Smrg am__include=.include 28916f02d4e9Smrg am__quote="\"" 28926f02d4e9Smrg _am_result=BSD 28936f02d4e9Smrg ;; 28946f02d4e9Smrg esac 2895bf4a254eSmrgfi 2896bf4a254eSmrg 2897bf4a254eSmrg 28986f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 28996f02d4e9Smrg$as_echo "$_am_result" >&6; } 2900bf4a254eSmrgrm -f confinc confmf 2901bf4a254eSmrg 2902bf4a254eSmrg# Check whether --enable-dependency-tracking was given. 29036f02d4e9Smrgif test "${enable_dependency_tracking+set}" = set; then : 2904bf4a254eSmrg enableval=$enable_dependency_tracking; 2905bf4a254eSmrgfi 2906bf4a254eSmrg 2907bf4a254eSmrgif test "x$enable_dependency_tracking" != xno; then 2908bf4a254eSmrg am_depcomp="$ac_aux_dir/depcomp" 2909bf4a254eSmrg AMDEPBACKSLASH='\' 29106f02d4e9Smrg am__nodep='_no' 2911bf4a254eSmrgfi 2912bf4a254eSmrg if test "x$enable_dependency_tracking" != xno; then 2913bf4a254eSmrg AMDEP_TRUE= 2914bf4a254eSmrg AMDEP_FALSE='#' 2915bf4a254eSmrgelse 2916bf4a254eSmrg AMDEP_TRUE='#' 2917bf4a254eSmrg AMDEP_FALSE= 2918bf4a254eSmrgfi 2919a73027baSmrg 2920a73027baSmrg 2921a73027baSmrgac_ext=c 2922a73027baSmrgac_cpp='$CPP $CPPFLAGS' 2923a73027baSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2924a73027baSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2925a73027baSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 2926a73027baSmrgif test -n "$ac_tool_prefix"; then 2927a73027baSmrg # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2928a73027baSmrgset dummy ${ac_tool_prefix}gcc; ac_word=$2 29296f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29306f02d4e9Smrg$as_echo_n "checking for $ac_word... " >&6; } 29316f02d4e9Smrgif ${ac_cv_prog_CC+:} false; then : 29326f02d4e9Smrg $as_echo_n "(cached) " >&6 2933a73027baSmrgelse 2934a73027baSmrg if test -n "$CC"; then 2935a73027baSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 2936a73027baSmrgelse 2937a73027baSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2938a73027baSmrgfor as_dir in $PATH 2939a73027baSmrgdo 2940a73027baSmrg IFS=$as_save_IFS 2941a73027baSmrg test -z "$as_dir" && as_dir=. 29426f02d4e9Smrg for ac_exec_ext in '' $ac_executable_extensions; do 29437253c0c7Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2944a73027baSmrg ac_cv_prog_CC="${ac_tool_prefix}gcc" 29456f02d4e9Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2946a73027baSmrg break 2 2947a73027baSmrg fi 2948a73027baSmrgdone 29496f02d4e9Smrg done 2950a73027baSmrgIFS=$as_save_IFS 2951a73027baSmrg 2952a73027baSmrgfi 2953a73027baSmrgfi 2954a73027baSmrgCC=$ac_cv_prog_CC 2955a73027baSmrgif test -n "$CC"; then 29566f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 29576f02d4e9Smrg$as_echo "$CC" >&6; } 2958a73027baSmrgelse 29596f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29606f02d4e9Smrg$as_echo "no" >&6; } 2961a73027baSmrgfi 2962a73027baSmrg 2963a73027baSmrg 2964a73027baSmrgfi 2965a73027baSmrgif test -z "$ac_cv_prog_CC"; then 2966a73027baSmrg ac_ct_CC=$CC 2967a73027baSmrg # Extract the first word of "gcc", so it can be a program name with args. 2968a73027baSmrgset dummy gcc; ac_word=$2 29696f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29706f02d4e9Smrg$as_echo_n "checking for $ac_word... " >&6; } 29716f02d4e9Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then : 29726f02d4e9Smrg $as_echo_n "(cached) " >&6 2973a73027baSmrgelse 2974a73027baSmrg if test -n "$ac_ct_CC"; then 2975a73027baSmrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2976a73027baSmrgelse 2977a73027baSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2978a73027baSmrgfor as_dir in $PATH 2979a73027baSmrgdo 2980a73027baSmrg IFS=$as_save_IFS 2981a73027baSmrg test -z "$as_dir" && as_dir=. 29826f02d4e9Smrg for ac_exec_ext in '' $ac_executable_extensions; do 29837253c0c7Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2984a73027baSmrg ac_cv_prog_ac_ct_CC="gcc" 29856f02d4e9Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2986a73027baSmrg break 2 2987a73027baSmrg fi 2988a73027baSmrgdone 29896f02d4e9Smrg done 2990a73027baSmrgIFS=$as_save_IFS 2991a73027baSmrg 2992a73027baSmrgfi 2993a73027baSmrgfi 2994a73027baSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC 2995a73027baSmrgif test -n "$ac_ct_CC"; then 29966f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 29976f02d4e9Smrg$as_echo "$ac_ct_CC" >&6; } 2998a73027baSmrgelse 29996f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30006f02d4e9Smrg$as_echo "no" >&6; } 3001a73027baSmrgfi 3002a73027baSmrg 3003a73027baSmrg if test "x$ac_ct_CC" = x; then 3004a73027baSmrg CC="" 3005a73027baSmrg else 3006a73027baSmrg case $cross_compiling:$ac_tool_warned in 3007a73027baSmrgyes:) 30086f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 30096f02d4e9Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3010a73027baSmrgac_tool_warned=yes ;; 3011a73027baSmrgesac 3012a73027baSmrg CC=$ac_ct_CC 3013a73027baSmrg fi 3014a73027baSmrgelse 3015a73027baSmrg CC="$ac_cv_prog_CC" 3016a73027baSmrgfi 3017a73027baSmrg 3018a73027baSmrgif test -z "$CC"; then 3019a73027baSmrg if test -n "$ac_tool_prefix"; then 3020a73027baSmrg # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3021a73027baSmrgset dummy ${ac_tool_prefix}cc; ac_word=$2 30226f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30236f02d4e9Smrg$as_echo_n "checking for $ac_word... " >&6; } 30246f02d4e9Smrgif ${ac_cv_prog_CC+:} false; then : 30256f02d4e9Smrg $as_echo_n "(cached) " >&6 3026a73027baSmrgelse 3027a73027baSmrg if test -n "$CC"; then 3028a73027baSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 3029a73027baSmrgelse 3030a73027baSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3031a73027baSmrgfor as_dir in $PATH 3032a73027baSmrgdo 3033a73027baSmrg IFS=$as_save_IFS 3034a73027baSmrg test -z "$as_dir" && as_dir=. 30356f02d4e9Smrg for ac_exec_ext in '' $ac_executable_extensions; do 30367253c0c7Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3037a73027baSmrg ac_cv_prog_CC="${ac_tool_prefix}cc" 30386f02d4e9Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3039a73027baSmrg break 2 3040a73027baSmrg fi 3041a73027baSmrgdone 30426f02d4e9Smrg done 3043a73027baSmrgIFS=$as_save_IFS 3044a73027baSmrg 3045a73027baSmrgfi 3046a73027baSmrgfi 3047a73027baSmrgCC=$ac_cv_prog_CC 3048a73027baSmrgif test -n "$CC"; then 30496f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 30506f02d4e9Smrg$as_echo "$CC" >&6; } 3051a73027baSmrgelse 30526f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30536f02d4e9Smrg$as_echo "no" >&6; } 3054a73027baSmrgfi 3055a73027baSmrg 3056a73027baSmrg 3057a73027baSmrg fi 3058a73027baSmrgfi 3059a73027baSmrgif test -z "$CC"; then 3060a73027baSmrg # Extract the first word of "cc", so it can be a program name with args. 3061a73027baSmrgset dummy cc; ac_word=$2 30626f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30636f02d4e9Smrg$as_echo_n "checking for $ac_word... " >&6; } 30646f02d4e9Smrgif ${ac_cv_prog_CC+:} false; then : 30656f02d4e9Smrg $as_echo_n "(cached) " >&6 3066a73027baSmrgelse 3067a73027baSmrg if test -n "$CC"; then 3068a73027baSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 3069a73027baSmrgelse 3070a73027baSmrg ac_prog_rejected=no 3071a73027baSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3072a73027baSmrgfor as_dir in $PATH 3073a73027baSmrgdo 3074a73027baSmrg IFS=$as_save_IFS 3075a73027baSmrg test -z "$as_dir" && as_dir=. 30766f02d4e9Smrg for ac_exec_ext in '' $ac_executable_extensions; do 30777253c0c7Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3078a73027baSmrg if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3079a73027baSmrg ac_prog_rejected=yes 3080a73027baSmrg continue 3081a73027baSmrg fi 3082a73027baSmrg ac_cv_prog_CC="cc" 30836f02d4e9Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3084a73027baSmrg break 2 3085a73027baSmrg fi 3086a73027baSmrgdone 30876f02d4e9Smrg done 3088a73027baSmrgIFS=$as_save_IFS 3089a73027baSmrg 3090a73027baSmrgif test $ac_prog_rejected = yes; then 3091a73027baSmrg # We found a bogon in the path, so make sure we never use it. 3092a73027baSmrg set dummy $ac_cv_prog_CC 3093a73027baSmrg shift 3094a73027baSmrg if test $# != 0; then 3095a73027baSmrg # We chose a different compiler from the bogus one. 3096a73027baSmrg # However, it has the same basename, so the bogon will be chosen 3097a73027baSmrg # first if we set CC to just the basename; use the full file name. 3098a73027baSmrg shift 3099a73027baSmrg ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3100a73027baSmrg fi 3101a73027baSmrgfi 3102a73027baSmrgfi 3103a73027baSmrgfi 3104a73027baSmrgCC=$ac_cv_prog_CC 3105a73027baSmrgif test -n "$CC"; then 31066f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 31076f02d4e9Smrg$as_echo "$CC" >&6; } 3108a73027baSmrgelse 31096f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31106f02d4e9Smrg$as_echo "no" >&6; } 3111a73027baSmrgfi 3112a73027baSmrg 3113a73027baSmrg 3114a73027baSmrgfi 3115a73027baSmrgif test -z "$CC"; then 3116a73027baSmrg if test -n "$ac_tool_prefix"; then 3117a73027baSmrg for ac_prog in cl.exe 3118a73027baSmrg do 3119a73027baSmrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3120a73027baSmrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2 31216f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31226f02d4e9Smrg$as_echo_n "checking for $ac_word... " >&6; } 31236f02d4e9Smrgif ${ac_cv_prog_CC+:} false; then : 31246f02d4e9Smrg $as_echo_n "(cached) " >&6 3125a73027baSmrgelse 3126a73027baSmrg if test -n "$CC"; then 3127a73027baSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 3128a73027baSmrgelse 3129a73027baSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3130a73027baSmrgfor as_dir in $PATH 3131a73027baSmrgdo 3132a73027baSmrg IFS=$as_save_IFS 3133a73027baSmrg test -z "$as_dir" && as_dir=. 31346f02d4e9Smrg for ac_exec_ext in '' $ac_executable_extensions; do 31357253c0c7Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3136a73027baSmrg ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 31376f02d4e9Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3138a73027baSmrg break 2 3139a73027baSmrg fi 3140a73027baSmrgdone 31416f02d4e9Smrg done 3142a73027baSmrgIFS=$as_save_IFS 3143a73027baSmrg 3144a73027baSmrgfi 3145a73027baSmrgfi 3146a73027baSmrgCC=$ac_cv_prog_CC 3147a73027baSmrgif test -n "$CC"; then 31486f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 31496f02d4e9Smrg$as_echo "$CC" >&6; } 3150a73027baSmrgelse 31516f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31526f02d4e9Smrg$as_echo "no" >&6; } 3153a73027baSmrgfi 3154a73027baSmrg 3155a73027baSmrg 3156a73027baSmrg test -n "$CC" && break 3157a73027baSmrg done 3158a73027baSmrgfi 3159a73027baSmrgif test -z "$CC"; then 3160a73027baSmrg ac_ct_CC=$CC 3161a73027baSmrg for ac_prog in cl.exe 3162a73027baSmrgdo 3163a73027baSmrg # Extract the first word of "$ac_prog", so it can be a program name with args. 3164a73027baSmrgset dummy $ac_prog; ac_word=$2 31656f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31666f02d4e9Smrg$as_echo_n "checking for $ac_word... " >&6; } 31676f02d4e9Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then : 31686f02d4e9Smrg $as_echo_n "(cached) " >&6 3169a73027baSmrgelse 3170a73027baSmrg if test -n "$ac_ct_CC"; then 3171a73027baSmrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3172a73027baSmrgelse 3173a73027baSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3174a73027baSmrgfor as_dir in $PATH 3175a73027baSmrgdo 3176a73027baSmrg IFS=$as_save_IFS 3177a73027baSmrg test -z "$as_dir" && as_dir=. 31786f02d4e9Smrg for ac_exec_ext in '' $ac_executable_extensions; do 31797253c0c7Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3180a73027baSmrg ac_cv_prog_ac_ct_CC="$ac_prog" 31816f02d4e9Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3182a73027baSmrg break 2 3183a73027baSmrg fi 3184a73027baSmrgdone 31856f02d4e9Smrg done 3186a73027baSmrgIFS=$as_save_IFS 3187a73027baSmrg 3188a73027baSmrgfi 3189a73027baSmrgfi 3190a73027baSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC 3191a73027baSmrgif test -n "$ac_ct_CC"; then 31926f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 31936f02d4e9Smrg$as_echo "$ac_ct_CC" >&6; } 3194a73027baSmrgelse 31956f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31966f02d4e9Smrg$as_echo "no" >&6; } 3197a73027baSmrgfi 3198a73027baSmrg 3199a73027baSmrg 3200a73027baSmrg test -n "$ac_ct_CC" && break 3201a73027baSmrgdone 3202a73027baSmrg 3203a73027baSmrg if test "x$ac_ct_CC" = x; then 3204a73027baSmrg CC="" 3205a73027baSmrg else 3206a73027baSmrg case $cross_compiling:$ac_tool_warned in 3207a73027baSmrgyes:) 32086f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 32096f02d4e9Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3210a73027baSmrgac_tool_warned=yes ;; 3211a73027baSmrgesac 3212a73027baSmrg CC=$ac_ct_CC 3213a73027baSmrg fi 3214a73027baSmrgfi 3215a73027baSmrg 3216a73027baSmrgfi 3217a73027baSmrg 3218a73027baSmrg 32196f02d4e9Smrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 32206f02d4e9Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 32216f02d4e9Smrgas_fn_error $? "no acceptable C compiler found in \$PATH 32226f02d4e9SmrgSee \`config.log' for more details" "$LINENO" 5; } 3223a73027baSmrg 3224a73027baSmrg# Provide some information about the compiler. 32256f02d4e9Smrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 32266f02d4e9Smrgset X $ac_compile 32276f02d4e9Smrgac_compiler=$2 32286f02d4e9Smrgfor ac_option in --version -v -V -qversion; do 32296f02d4e9Smrg { { ac_try="$ac_compiler $ac_option >&5" 323021212451Smrgcase "(($ac_try" in 323121212451Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 323221212451Smrg *) ac_try_echo=$ac_try;; 323321212451Smrgesac 32346f02d4e9Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 32356f02d4e9Smrg$as_echo "$ac_try_echo"; } >&5 32366f02d4e9Smrg (eval "$ac_compiler $ac_option >&5") 2>conftest.err 323721212451Smrg ac_status=$? 32386f02d4e9Smrg if test -s conftest.err; then 32396f02d4e9Smrg sed '10a\ 32406f02d4e9Smrg... rest of stderr output deleted ... 32416f02d4e9Smrg 10q' conftest.err >conftest.er1 32426f02d4e9Smrg cat conftest.er1 >&5 32436f02d4e9Smrg fi 32446f02d4e9Smrg rm -f conftest.er1 conftest.err 32456f02d4e9Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32466f02d4e9Smrg test $ac_status = 0; } 32476f02d4e9Smrgdone 3248a73027baSmrg 32496f02d4e9Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3250a73027baSmrg/* end confdefs.h. */ 3251a73027baSmrg 3252a73027baSmrgint 3253a73027baSmrgmain () 3254a73027baSmrg{ 3255a73027baSmrg 3256a73027baSmrg ; 3257a73027baSmrg return 0; 3258a73027baSmrg} 3259a73027baSmrg_ACEOF 3260a73027baSmrgac_clean_files_save=$ac_clean_files 32616f02d4e9Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3262a73027baSmrg# Try to create an executable without -o first, disregard a.out. 3263a73027baSmrg# It will help us diagnose broken compilers, and finding out an intuition 3264a73027baSmrg# of exeext. 32656f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 32666f02d4e9Smrg$as_echo_n "checking whether the C compiler works... " >&6; } 32676f02d4e9Smrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 32686f02d4e9Smrg 32696f02d4e9Smrg# The possible output files: 32706f02d4e9Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 32716f02d4e9Smrg 3272a73027baSmrgac_rmfiles= 3273a73027baSmrgfor ac_file in $ac_files 3274a73027baSmrgdo 3275a73027baSmrg case $ac_file in 32766f02d4e9Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3277a73027baSmrg * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3278a73027baSmrg esac 3279a73027baSmrgdone 3280a73027baSmrgrm -f $ac_rmfiles 3281a73027baSmrg 32826f02d4e9Smrgif { { ac_try="$ac_link_default" 3283a73027baSmrgcase "(($ac_try" in 3284a73027baSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3285a73027baSmrg *) ac_try_echo=$ac_try;; 3286a73027baSmrgesac 32876f02d4e9Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 32886f02d4e9Smrg$as_echo "$ac_try_echo"; } >&5 3289a73027baSmrg (eval "$ac_link_default") 2>&5 3290a73027baSmrg ac_status=$? 32916f02d4e9Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32926f02d4e9Smrg test $ac_status = 0; }; then : 3293a73027baSmrg # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3294a73027baSmrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3295a73027baSmrg# in a Makefile. We should not override ac_cv_exeext if it was cached, 3296a73027baSmrg# so that the user can short-circuit this test for compilers unknown to 3297a73027baSmrg# Autoconf. 3298a73027baSmrgfor ac_file in $ac_files '' 3299a73027baSmrgdo 3300a73027baSmrg test -f "$ac_file" || continue 3301a73027baSmrg case $ac_file in 33026f02d4e9Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3303a73027baSmrg ;; 3304a73027baSmrg [ab].out ) 3305a73027baSmrg # We found the default executable, but exeext='' is most 3306a73027baSmrg # certainly right. 3307a73027baSmrg break;; 3308a73027baSmrg *.* ) 33096f02d4e9Smrg if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3310a73027baSmrg then :; else 3311a73027baSmrg ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3312a73027baSmrg fi 3313a73027baSmrg # We set ac_cv_exeext here because the later test for it is not 3314a73027baSmrg # safe: cross compilers may not add the suffix if given an `-o' 3315a73027baSmrg # argument, so we may need to know it at that point already. 3316a73027baSmrg # Even if this section looks crufty: it has the advantage of 3317a73027baSmrg # actually working. 3318a73027baSmrg break;; 3319a73027baSmrg * ) 3320a73027baSmrg break;; 3321a73027baSmrg esac 3322a73027baSmrgdone 3323a73027baSmrgtest "$ac_cv_exeext" = no && ac_cv_exeext= 3324a73027baSmrg 3325a73027baSmrgelse 3326a73027baSmrg ac_file='' 3327a73027baSmrgfi 33286f02d4e9Smrgif test -z "$ac_file"; then : 33296f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33306f02d4e9Smrg$as_echo "no" >&6; } 33316f02d4e9Smrg$as_echo "$as_me: failed program was:" >&5 3332a73027baSmrgsed 's/^/| /' conftest.$ac_ext >&5 3333a73027baSmrg 33346f02d4e9Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 33356f02d4e9Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 33366f02d4e9Smrgas_fn_error 77 "C compiler cannot create executables 33376f02d4e9SmrgSee \`config.log' for more details" "$LINENO" 5; } 33386f02d4e9Smrgelse 33396f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33406f02d4e9Smrg$as_echo "yes" >&6; } 3341a73027baSmrgfi 33426f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 33436f02d4e9Smrg$as_echo_n "checking for C compiler default output file name... " >&6; } 33446f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 33456f02d4e9Smrg$as_echo "$ac_file" >&6; } 3346a73027baSmrgac_exeext=$ac_cv_exeext 3347a73027baSmrg 33486f02d4e9Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3349a73027baSmrgac_clean_files=$ac_clean_files_save 33506f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 33516f02d4e9Smrg$as_echo_n "checking for suffix of executables... " >&6; } 33526f02d4e9Smrgif { { ac_try="$ac_link" 3353a73027baSmrgcase "(($ac_try" in 3354a73027baSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3355a73027baSmrg *) ac_try_echo=$ac_try;; 3356a73027baSmrgesac 33576f02d4e9Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 33586f02d4e9Smrg$as_echo "$ac_try_echo"; } >&5 3359a73027baSmrg (eval "$ac_link") 2>&5 3360a73027baSmrg ac_status=$? 33616f02d4e9Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33626f02d4e9Smrg test $ac_status = 0; }; then : 3363a73027baSmrg # If both `conftest.exe' and `conftest' are `present' (well, observable) 3364a73027baSmrg# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3365a73027baSmrg# work properly (i.e., refer to `conftest.exe'), while it won't with 3366a73027baSmrg# `rm'. 3367a73027baSmrgfor ac_file in conftest.exe conftest conftest.*; do 3368a73027baSmrg test -f "$ac_file" || continue 3369a73027baSmrg case $ac_file in 33706f02d4e9Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3371a73027baSmrg *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3372a73027baSmrg break;; 3373a73027baSmrg * ) break;; 3374a73027baSmrg esac 3375a73027baSmrgdone 3376a73027baSmrgelse 33776f02d4e9Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 33786f02d4e9Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 33796f02d4e9Smrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link 33806f02d4e9SmrgSee \`config.log' for more details" "$LINENO" 5; } 3381a73027baSmrgfi 33826f02d4e9Smrgrm -f conftest conftest$ac_cv_exeext 33836f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 33846f02d4e9Smrg$as_echo "$ac_cv_exeext" >&6; } 3385a73027baSmrg 3386a73027baSmrgrm -f conftest.$ac_ext 3387a73027baSmrgEXEEXT=$ac_cv_exeext 3388a73027baSmrgac_exeext=$EXEEXT 33896f02d4e9Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 33906f02d4e9Smrg/* end confdefs.h. */ 33916f02d4e9Smrg#include <stdio.h> 33926f02d4e9Smrgint 33936f02d4e9Smrgmain () 33946f02d4e9Smrg{ 33956f02d4e9SmrgFILE *f = fopen ("conftest.out", "w"); 33966f02d4e9Smrg return ferror (f) || fclose (f) != 0; 33976f02d4e9Smrg 33986f02d4e9Smrg ; 33996f02d4e9Smrg return 0; 34006f02d4e9Smrg} 340121212451Smrg_ACEOF 34026f02d4e9Smrgac_clean_files="$ac_clean_files conftest.out" 34036f02d4e9Smrg# Check that the compiler produces executables we can run. If not, either 34046f02d4e9Smrg# the compiler is broken, or we cross compile. 34056f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 34066f02d4e9Smrg$as_echo_n "checking whether we are cross compiling... " >&6; } 34076f02d4e9Smrgif test "$cross_compiling" != yes; then 34086f02d4e9Smrg { { ac_try="$ac_link" 34096f02d4e9Smrgcase "(($ac_try" in 34106f02d4e9Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34116f02d4e9Smrg *) ac_try_echo=$ac_try;; 34126f02d4e9Smrgesac 34136f02d4e9Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34146f02d4e9Smrg$as_echo "$ac_try_echo"; } >&5 34156f02d4e9Smrg (eval "$ac_link") 2>&5 34166f02d4e9Smrg ac_status=$? 34176f02d4e9Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34186f02d4e9Smrg test $ac_status = 0; } 34196f02d4e9Smrg if { ac_try='./conftest$ac_cv_exeext' 34206f02d4e9Smrg { { case "(($ac_try" in 34216f02d4e9Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34226f02d4e9Smrg *) ac_try_echo=$ac_try;; 34236f02d4e9Smrgesac 34246f02d4e9Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34256f02d4e9Smrg$as_echo "$ac_try_echo"; } >&5 34266f02d4e9Smrg (eval "$ac_try") 2>&5 34276f02d4e9Smrg ac_status=$? 34286f02d4e9Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34296f02d4e9Smrg test $ac_status = 0; }; }; then 34306f02d4e9Smrg cross_compiling=no 34316f02d4e9Smrg else 34326f02d4e9Smrg if test "$cross_compiling" = maybe; then 34336f02d4e9Smrg cross_compiling=yes 34346f02d4e9Smrg else 34356f02d4e9Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34366f02d4e9Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34376f02d4e9Smrgas_fn_error $? "cannot run C compiled programs. 34386f02d4e9SmrgIf you meant to cross compile, use \`--host'. 34396f02d4e9SmrgSee \`config.log' for more details" "$LINENO" 5; } 34406f02d4e9Smrg fi 34416f02d4e9Smrg fi 34426f02d4e9Smrgfi 34436f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 34446f02d4e9Smrg$as_echo "$cross_compiling" >&6; } 34456f02d4e9Smrg 34466f02d4e9Smrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 34476f02d4e9Smrgac_clean_files=$ac_clean_files_save 34486f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 34496f02d4e9Smrg$as_echo_n "checking for suffix of object files... " >&6; } 34506f02d4e9Smrgif ${ac_cv_objext+:} false; then : 34516f02d4e9Smrg $as_echo_n "(cached) " >&6 34526f02d4e9Smrgelse 34536f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3454bf4a254eSmrg/* end confdefs.h. */ 345521212451Smrg 3456bf4a254eSmrgint 3457bf4a254eSmrgmain () 3458bf4a254eSmrg{ 3459bf4a254eSmrg 3460bf4a254eSmrg ; 3461bf4a254eSmrg return 0; 3462bf4a254eSmrg} 3463a73027baSmrg_ACEOF 346421212451Smrgrm -f conftest.o conftest.obj 34656f02d4e9Smrgif { { ac_try="$ac_compile" 3466bf4a254eSmrgcase "(($ac_try" in 3467bf4a254eSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3468bf4a254eSmrg *) ac_try_echo=$ac_try;; 3469bf4a254eSmrgesac 34706f02d4e9Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34716f02d4e9Smrg$as_echo "$ac_try_echo"; } >&5 347221212451Smrg (eval "$ac_compile") 2>&5 3473bf4a254eSmrg ac_status=$? 34746f02d4e9Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34756f02d4e9Smrg test $ac_status = 0; }; then : 347621212451Smrg for ac_file in conftest.o conftest.obj conftest.*; do 347721212451Smrg test -f "$ac_file" || continue; 347821212451Smrg case $ac_file in 34796f02d4e9Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 348021212451Smrg *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 348121212451Smrg break;; 348221212451Smrg esac 348321212451Smrgdone 3484bf4a254eSmrgelse 34856f02d4e9Smrg $as_echo "$as_me: failed program was:" >&5 348621212451Smrgsed 's/^/| /' conftest.$ac_ext >&5 3487a73027baSmrg 34886f02d4e9Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34896f02d4e9Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34906f02d4e9Smrgas_fn_error $? "cannot compute suffix of object files: cannot compile 34916f02d4e9SmrgSee \`config.log' for more details" "$LINENO" 5; } 3492a73027baSmrgfi 3493a73027baSmrgrm -f conftest.$ac_cv_objext conftest.$ac_ext 3494a73027baSmrgfi 34956f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 34966f02d4e9Smrg$as_echo "$ac_cv_objext" >&6; } 3497a73027baSmrgOBJEXT=$ac_cv_objext 3498a73027baSmrgac_objext=$OBJEXT 34996f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 35006f02d4e9Smrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 35016f02d4e9Smrgif ${ac_cv_c_compiler_gnu+:} false; then : 35026f02d4e9Smrg $as_echo_n "(cached) " >&6 3503a73027baSmrgelse 35046f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3505a73027baSmrg/* end confdefs.h. */ 3506a73027baSmrg 3507a73027baSmrgint 3508a73027baSmrgmain () 3509a73027baSmrg{ 3510a73027baSmrg#ifndef __GNUC__ 3511a73027baSmrg choke me 3512a73027baSmrg#endif 3513a73027baSmrg 3514a73027baSmrg ; 3515a73027baSmrg return 0; 3516a73027baSmrg} 3517a73027baSmrg_ACEOF 35186f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 3519a73027baSmrg ac_compiler_gnu=yes 3520a73027baSmrgelse 35216f02d4e9Smrg ac_compiler_gnu=no 3522a73027baSmrgfi 3523a73027baSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3524a73027baSmrgac_cv_c_compiler_gnu=$ac_compiler_gnu 3525a73027baSmrg 3526a73027baSmrgfi 35276f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 35286f02d4e9Smrg$as_echo "$ac_cv_c_compiler_gnu" >&6; } 35296f02d4e9Smrgif test $ac_compiler_gnu = yes; then 35306f02d4e9Smrg GCC=yes 35316f02d4e9Smrgelse 35326f02d4e9Smrg GCC= 35336f02d4e9Smrgfi 3534a73027baSmrgac_test_CFLAGS=${CFLAGS+set} 3535a73027baSmrgac_save_CFLAGS=$CFLAGS 35366f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 35376f02d4e9Smrg$as_echo_n "checking whether $CC accepts -g... " >&6; } 35386f02d4e9Smrgif ${ac_cv_prog_cc_g+:} false; then : 35396f02d4e9Smrg $as_echo_n "(cached) " >&6 3540a73027baSmrgelse 3541a73027baSmrg ac_save_c_werror_flag=$ac_c_werror_flag 3542a73027baSmrg ac_c_werror_flag=yes 3543a73027baSmrg ac_cv_prog_cc_g=no 3544a73027baSmrg CFLAGS="-g" 35456f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3546a73027baSmrg/* end confdefs.h. */ 3547a73027baSmrg 3548a73027baSmrgint 3549a73027baSmrgmain () 3550a73027baSmrg{ 3551a73027baSmrg 3552a73027baSmrg ; 3553a73027baSmrg return 0; 3554a73027baSmrg} 3555a73027baSmrg_ACEOF 35566f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 3557a73027baSmrg ac_cv_prog_cc_g=yes 3558a73027baSmrgelse 35596f02d4e9Smrg CFLAGS="" 35606f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3561a73027baSmrg/* end confdefs.h. */ 3562a73027baSmrg 3563a73027baSmrgint 3564a73027baSmrgmain () 3565a73027baSmrg{ 3566a73027baSmrg 3567a73027baSmrg ; 3568a73027baSmrg return 0; 3569a73027baSmrg} 3570a73027baSmrg_ACEOF 35716f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 357221212451Smrg 35736f02d4e9Smrgelse 35746f02d4e9Smrg ac_c_werror_flag=$ac_save_c_werror_flag 3575a73027baSmrg CFLAGS="-g" 35766f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3577a73027baSmrg/* end confdefs.h. */ 3578a73027baSmrg 3579a73027baSmrgint 3580a73027baSmrgmain () 3581a73027baSmrg{ 3582a73027baSmrg 3583a73027baSmrg ; 3584a73027baSmrg return 0; 3585a73027baSmrg} 3586a73027baSmrg_ACEOF 35876f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 3588a73027baSmrg ac_cv_prog_cc_g=yes 3589a73027baSmrgfi 3590a73027baSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3591a73027baSmrgfi 3592a73027baSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3593a73027baSmrgfi 3594a73027baSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3595a73027baSmrg ac_c_werror_flag=$ac_save_c_werror_flag 3596a73027baSmrgfi 35976f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 35986f02d4e9Smrg$as_echo "$ac_cv_prog_cc_g" >&6; } 3599a73027baSmrgif test "$ac_test_CFLAGS" = set; then 3600a73027baSmrg CFLAGS=$ac_save_CFLAGS 3601a73027baSmrgelif test $ac_cv_prog_cc_g = yes; then 3602a73027baSmrg if test "$GCC" = yes; then 3603a73027baSmrg CFLAGS="-g -O2" 3604a73027baSmrg else 3605a73027baSmrg CFLAGS="-g" 3606a73027baSmrg fi 3607a73027baSmrgelse 3608a73027baSmrg if test "$GCC" = yes; then 3609a73027baSmrg CFLAGS="-O2" 3610a73027baSmrg else 3611a73027baSmrg CFLAGS= 3612a73027baSmrg fi 3613a73027baSmrgfi 36146f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 36156f02d4e9Smrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 36166f02d4e9Smrgif ${ac_cv_prog_cc_c89+:} false; then : 36176f02d4e9Smrg $as_echo_n "(cached) " >&6 3618a73027baSmrgelse 3619a73027baSmrg ac_cv_prog_cc_c89=no 3620a73027baSmrgac_save_CC=$CC 36216f02d4e9Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3622a73027baSmrg/* end confdefs.h. */ 3623a73027baSmrg#include <stdarg.h> 3624a73027baSmrg#include <stdio.h> 36257253c0c7Smrgstruct stat; 3626a73027baSmrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3627a73027baSmrgstruct buf { int x; }; 3628a73027baSmrgFILE * (*rcsopen) (struct buf *, struct stat *, int); 3629a73027baSmrgstatic char *e (p, i) 3630a73027baSmrg char **p; 3631a73027baSmrg int i; 3632a73027baSmrg{ 3633a73027baSmrg return p[i]; 3634a73027baSmrg} 3635a73027baSmrgstatic char *f (char * (*g) (char **, int), char **p, ...) 3636a73027baSmrg{ 3637a73027baSmrg char *s; 3638a73027baSmrg va_list v; 3639a73027baSmrg va_start (v,p); 3640a73027baSmrg s = g (p, va_arg (v,int)); 3641a73027baSmrg va_end (v); 3642a73027baSmrg return s; 3643a73027baSmrg} 3644a73027baSmrg 3645a73027baSmrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3646a73027baSmrg function prototypes and stuff, but not '\xHH' hex character constants. 3647a73027baSmrg These don't provoke an error unfortunately, instead are silently treated 3648a73027baSmrg as 'x'. The following induces an error, until -std is added to get 3649a73027baSmrg proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3650a73027baSmrg array size at least. It's necessary to write '\x00'==0 to get something 3651a73027baSmrg that's true only with -std. */ 3652a73027baSmrgint osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3653a73027baSmrg 3654a73027baSmrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3655a73027baSmrg inside strings and character constants. */ 3656a73027baSmrg#define FOO(x) 'x' 3657a73027baSmrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3658a73027baSmrg 3659a73027baSmrgint test (int i, double x); 3660a73027baSmrgstruct s1 {int (*f) (int a);}; 3661a73027baSmrgstruct s2 {int (*f) (double a);}; 3662a73027baSmrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3663a73027baSmrgint argc; 3664a73027baSmrgchar **argv; 3665a73027baSmrgint 3666a73027baSmrgmain () 3667a73027baSmrg{ 3668a73027baSmrgreturn f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3669a73027baSmrg ; 3670a73027baSmrg return 0; 3671a73027baSmrg} 3672a73027baSmrg_ACEOF 3673a73027baSmrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3674a73027baSmrg -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3675a73027baSmrgdo 3676a73027baSmrg CC="$ac_save_CC $ac_arg" 36776f02d4e9Smrg if ac_fn_c_try_compile "$LINENO"; then : 3678a73027baSmrg ac_cv_prog_cc_c89=$ac_arg 3679a73027baSmrgfi 3680a73027baSmrgrm -f core conftest.err conftest.$ac_objext 3681a73027baSmrg test "x$ac_cv_prog_cc_c89" != "xno" && break 3682a73027baSmrgdone 3683a73027baSmrgrm -f conftest.$ac_ext 3684a73027baSmrgCC=$ac_save_CC 3685a73027baSmrg 3686a73027baSmrgfi 3687a73027baSmrg# AC_CACHE_VAL 3688a73027baSmrgcase "x$ac_cv_prog_cc_c89" in 3689a73027baSmrg x) 36906f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 36916f02d4e9Smrg$as_echo "none needed" >&6; } ;; 3692a73027baSmrg xno) 36936f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 36946f02d4e9Smrg$as_echo "unsupported" >&6; } ;; 3695a73027baSmrg *) 3696a73027baSmrg CC="$CC $ac_cv_prog_cc_c89" 36976f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 36986f02d4e9Smrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3699a73027baSmrgesac 37006f02d4e9Smrgif test "x$ac_cv_prog_cc_c89" != xno; then : 37016f02d4e9Smrg 37026f02d4e9Smrgfi 37036f02d4e9Smrg 37046f02d4e9Smrgac_ext=c 37056f02d4e9Smrgac_cpp='$CPP $CPPFLAGS' 37066f02d4e9Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 37076f02d4e9Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 37086f02d4e9Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 37096f02d4e9Smrg 37106f02d4e9Smrgac_ext=c 37116f02d4e9Smrgac_cpp='$CPP $CPPFLAGS' 37126f02d4e9Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 37136f02d4e9Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 37146f02d4e9Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 37156f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 37166f02d4e9Smrg$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 37176f02d4e9Smrgif ${am_cv_prog_cc_c_o+:} false; then : 37186f02d4e9Smrg $as_echo_n "(cached) " >&6 37196f02d4e9Smrgelse 37206f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37216f02d4e9Smrg/* end confdefs.h. */ 3722a73027baSmrg 37236f02d4e9Smrgint 37246f02d4e9Smrgmain () 37256f02d4e9Smrg{ 3726a73027baSmrg 37276f02d4e9Smrg ; 37286f02d4e9Smrg return 0; 37296f02d4e9Smrg} 37306f02d4e9Smrg_ACEOF 37316f02d4e9Smrg # Make sure it works both with $CC and with simple cc. 37326f02d4e9Smrg # Following AC_PROG_CC_C_O, we do the test twice because some 37336f02d4e9Smrg # compilers refuse to overwrite an existing .o file with -o, 37346f02d4e9Smrg # though they will create one. 37356f02d4e9Smrg am_cv_prog_cc_c_o=yes 37366f02d4e9Smrg for am_i in 1 2; do 37376f02d4e9Smrg if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 37386f02d4e9Smrg ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 37396f02d4e9Smrg ac_status=$? 37406f02d4e9Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 37416f02d4e9Smrg (exit $ac_status); } \ 37426f02d4e9Smrg && test -f conftest2.$ac_objext; then 37436f02d4e9Smrg : OK 37446f02d4e9Smrg else 37456f02d4e9Smrg am_cv_prog_cc_c_o=no 37466f02d4e9Smrg break 37476f02d4e9Smrg fi 37486f02d4e9Smrg done 37496f02d4e9Smrg rm -f core conftest* 37506f02d4e9Smrg unset am_i 37516f02d4e9Smrgfi 37526f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 37536f02d4e9Smrg$as_echo "$am_cv_prog_cc_c_o" >&6; } 37546f02d4e9Smrgif test "$am_cv_prog_cc_c_o" != yes; then 37556f02d4e9Smrg # Losing compiler, so override with the script. 37566f02d4e9Smrg # FIXME: It is wrong to rewrite CC. 37576f02d4e9Smrg # But if we don't then we get into trouble of one sort or another. 37586f02d4e9Smrg # A longer-term fix would be to have automake use am__CC in this case, 37596f02d4e9Smrg # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 37606f02d4e9Smrg CC="$am_aux_dir/compile $CC" 37616f02d4e9Smrgfi 3762a73027baSmrgac_ext=c 3763a73027baSmrgac_cpp='$CPP $CPPFLAGS' 3764a73027baSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3765a73027baSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3766a73027baSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 3767a73027baSmrg 37686f02d4e9Smrg 3769a73027baSmrgdepcc="$CC" am_compiler_list= 3770a73027baSmrg 37716f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 37726f02d4e9Smrg$as_echo_n "checking dependency style of $depcc... " >&6; } 37736f02d4e9Smrgif ${am_cv_CC_dependencies_compiler_type+:} false; then : 37746f02d4e9Smrg $as_echo_n "(cached) " >&6 3775a73027baSmrgelse 3776a73027baSmrg if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3777a73027baSmrg # We make a subdir and do the tests there. Otherwise we can end up 3778a73027baSmrg # making bogus files that we don't know about and never remove. For 3779a73027baSmrg # instance it was reported that on HP-UX the gcc test will end up 37806f02d4e9Smrg # making a dummy file named 'D' -- because '-MD' means "put the output 37816f02d4e9Smrg # in D". 37826f02d4e9Smrg rm -rf conftest.dir 3783a73027baSmrg mkdir conftest.dir 3784a73027baSmrg # Copy depcomp to subdir because otherwise we won't find it if we're 3785a73027baSmrg # using a relative directory. 3786a73027baSmrg cp "$am_depcomp" conftest.dir 3787a73027baSmrg cd conftest.dir 3788a73027baSmrg # We will build objects and dependencies in a subdirectory because 3789a73027baSmrg # it helps to detect inapplicable dependency modes. For instance 3790a73027baSmrg # both Tru64's cc and ICC support -MD to output dependencies as a 3791a73027baSmrg # side effect of compilation, but ICC will put the dependencies in 3792a73027baSmrg # the current directory while Tru64 will put them in the object 3793a73027baSmrg # directory. 3794a73027baSmrg mkdir sub 3795a73027baSmrg 3796a73027baSmrg am_cv_CC_dependencies_compiler_type=none 3797a73027baSmrg if test "$am_compiler_list" = ""; then 3798a73027baSmrg am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3799a73027baSmrg fi 38006f02d4e9Smrg am__universal=false 38016f02d4e9Smrg case " $depcc " in #( 38026f02d4e9Smrg *\ -arch\ *\ -arch\ *) am__universal=true ;; 38036f02d4e9Smrg esac 38046f02d4e9Smrg 3805a73027baSmrg for depmode in $am_compiler_list; do 3806a73027baSmrg # Setup a source with many dependencies, because some compilers 3807a73027baSmrg # like to wrap large dependency lists on column 80 (with \), and 3808a73027baSmrg # we should not choose a depcomp mode which is confused by this. 3809a73027baSmrg # 3810a73027baSmrg # We need to recreate these files for each test, as the compiler may 3811a73027baSmrg # overwrite some of them when testing with obscure command lines. 3812a73027baSmrg # This happens at least with the AIX C compiler. 3813a73027baSmrg : > sub/conftest.c 3814a73027baSmrg for i in 1 2 3 4 5 6; do 3815a73027baSmrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 38166f02d4e9Smrg # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 38176f02d4e9Smrg # Solaris 10 /bin/sh. 38186f02d4e9Smrg echo '/* dummy */' > sub/conftst$i.h 3819a73027baSmrg done 3820a73027baSmrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3821a73027baSmrg 38226f02d4e9Smrg # We check with '-c' and '-o' for the sake of the "dashmstdout" 38236f02d4e9Smrg # mode. It turns out that the SunPro C++ compiler does not properly 38246f02d4e9Smrg # handle '-M -o', and we need to detect this. Also, some Intel 38256f02d4e9Smrg # versions had trouble with output in subdirs. 38266f02d4e9Smrg am__obj=sub/conftest.${OBJEXT-o} 38276f02d4e9Smrg am__minus_obj="-o $am__obj" 3828a73027baSmrg case $depmode in 38296f02d4e9Smrg gcc) 38306f02d4e9Smrg # This depmode causes a compiler race in universal mode. 38316f02d4e9Smrg test "$am__universal" = false || continue 38326f02d4e9Smrg ;; 3833a73027baSmrg nosideeffect) 38346f02d4e9Smrg # After this tag, mechanisms are not by side-effect, so they'll 38356f02d4e9Smrg # only be used when explicitly requested. 3836a73027baSmrg if test "x$enable_dependency_tracking" = xyes; then 3837a73027baSmrg continue 3838a73027baSmrg else 3839a73027baSmrg break 3840a73027baSmrg fi 3841a73027baSmrg ;; 38426f02d4e9Smrg msvc7 | msvc7msys | msvisualcpp | msvcmsys) 38436f02d4e9Smrg # This compiler won't grok '-c -o', but also, the minuso test has 38446f02d4e9Smrg # not run yet. These depmodes are late enough in the game, and 38456f02d4e9Smrg # so weak that their functioning should not be impacted. 38466f02d4e9Smrg am__obj=conftest.${OBJEXT-o} 38476f02d4e9Smrg am__minus_obj= 38486f02d4e9Smrg ;; 3849a73027baSmrg none) break ;; 3850a73027baSmrg esac 3851a73027baSmrg if depmode=$depmode \ 38526f02d4e9Smrg source=sub/conftest.c object=$am__obj \ 3853a73027baSmrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 38546f02d4e9Smrg $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3855a73027baSmrg >/dev/null 2>conftest.err && 3856a73027baSmrg grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3857a73027baSmrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 38586f02d4e9Smrg grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3859a73027baSmrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3860a73027baSmrg # icc doesn't choke on unknown options, it will just issue warnings 3861a73027baSmrg # or remarks (even with -Werror). So we grep stderr for any message 3862a73027baSmrg # that says an option was ignored or not supported. 3863a73027baSmrg # When given -MP, icc 7.0 and 7.1 complain thusly: 3864a73027baSmrg # icc: Command line warning: ignoring option '-M'; no argument required 3865a73027baSmrg # The diagnosis changed in icc 8.0: 3866a73027baSmrg # icc: Command line remark: option '-MP' not supported 3867a73027baSmrg if (grep 'ignoring option' conftest.err || 3868a73027baSmrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3869a73027baSmrg am_cv_CC_dependencies_compiler_type=$depmode 3870a73027baSmrg break 3871a73027baSmrg fi 3872a73027baSmrg fi 3873a73027baSmrg done 3874a73027baSmrg 3875a73027baSmrg cd .. 3876a73027baSmrg rm -rf conftest.dir 3877a73027baSmrgelse 3878a73027baSmrg am_cv_CC_dependencies_compiler_type=none 3879a73027baSmrgfi 3880a73027baSmrg 3881a73027baSmrgfi 38826f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 38836f02d4e9Smrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3884a73027baSmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3885a73027baSmrg 3886a73027baSmrg if 3887a73027baSmrg test "x$enable_dependency_tracking" != xno \ 3888a73027baSmrg && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3889a73027baSmrg am__fastdepCC_TRUE= 3890a73027baSmrg am__fastdepCC_FALSE='#' 3891a73027baSmrgelse 3892a73027baSmrg am__fastdepCC_TRUE='#' 3893a73027baSmrg am__fastdepCC_FALSE= 3894a73027baSmrgfi 3895a73027baSmrg 3896a73027baSmrg 38976f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 38986f02d4e9Smrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 38996f02d4e9Smrgif ${ac_cv_prog_cc_c99+:} false; then : 39006f02d4e9Smrg $as_echo_n "(cached) " >&6 3901a73027baSmrgelse 390229004570Smrg ac_cv_prog_cc_c99=no 390329004570Smrgac_save_CC=$CC 39046f02d4e9Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3905a73027baSmrg/* end confdefs.h. */ 390629004570Smrg#include <stdarg.h> 390729004570Smrg#include <stdbool.h> 390829004570Smrg#include <stdlib.h> 390929004570Smrg#include <wchar.h> 391029004570Smrg#include <stdio.h> 3911a73027baSmrg 391229004570Smrg// Check varargs macros. These examples are taken from C99 6.10.3.5. 391329004570Smrg#define debug(...) fprintf (stderr, __VA_ARGS__) 391429004570Smrg#define showlist(...) puts (#__VA_ARGS__) 391529004570Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 391629004570Smrgstatic void 391729004570Smrgtest_varargs_macros (void) 391829004570Smrg{ 391929004570Smrg int x = 1234; 392029004570Smrg int y = 5678; 392129004570Smrg debug ("Flag"); 392229004570Smrg debug ("X = %d\n", x); 392329004570Smrg showlist (The first, second, and third items.); 392429004570Smrg report (x>y, "x is %d but y is %d", x, y); 392529004570Smrg} 3926a73027baSmrg 392729004570Smrg// Check long long types. 392829004570Smrg#define BIG64 18446744073709551615ull 392929004570Smrg#define BIG32 4294967295ul 393029004570Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 393129004570Smrg#if !BIG_OK 393229004570Smrg your preprocessor is broken; 393329004570Smrg#endif 393429004570Smrg#if BIG_OK 393529004570Smrg#else 393629004570Smrg your preprocessor is broken; 393729004570Smrg#endif 393829004570Smrgstatic long long int bignum = -9223372036854775807LL; 393929004570Smrgstatic unsigned long long int ubignum = BIG64; 394029004570Smrg 394129004570Smrgstruct incomplete_array 394229004570Smrg{ 394329004570Smrg int datasize; 394429004570Smrg double data[]; 394529004570Smrg}; 394629004570Smrg 394729004570Smrgstruct named_init { 394829004570Smrg int number; 394929004570Smrg const wchar_t *name; 395029004570Smrg double average; 395129004570Smrg}; 395229004570Smrg 395329004570Smrgtypedef const char *ccp; 395429004570Smrg 395529004570Smrgstatic inline int 395629004570Smrgtest_restrict (ccp restrict text) 395729004570Smrg{ 395829004570Smrg // See if C++-style comments work. 395929004570Smrg // Iterate through items via the restricted pointer. 396029004570Smrg // Also check for declarations in for loops. 396129004570Smrg for (unsigned int i = 0; *(text+i) != '\0'; ++i) 396229004570Smrg continue; 396329004570Smrg return 0; 396429004570Smrg} 396529004570Smrg 396629004570Smrg// Check varargs and va_copy. 396729004570Smrgstatic void 396829004570Smrgtest_varargs (const char *format, ...) 396929004570Smrg{ 397029004570Smrg va_list args; 397129004570Smrg va_start (args, format); 397229004570Smrg va_list args_copy; 397329004570Smrg va_copy (args_copy, args); 397429004570Smrg 397529004570Smrg const char *str; 397629004570Smrg int number; 397729004570Smrg float fnumber; 397829004570Smrg 397929004570Smrg while (*format) 398029004570Smrg { 398129004570Smrg switch (*format++) 398229004570Smrg { 398329004570Smrg case 's': // string 398429004570Smrg str = va_arg (args_copy, const char *); 398529004570Smrg break; 398629004570Smrg case 'd': // int 398729004570Smrg number = va_arg (args_copy, int); 398829004570Smrg break; 398929004570Smrg case 'f': // float 399029004570Smrg fnumber = va_arg (args_copy, double); 399129004570Smrg break; 399229004570Smrg default: 399329004570Smrg break; 399429004570Smrg } 399529004570Smrg } 399629004570Smrg va_end (args_copy); 399729004570Smrg va_end (args); 399829004570Smrg} 399929004570Smrg 400029004570Smrgint 400129004570Smrgmain () 400229004570Smrg{ 400329004570Smrg 400429004570Smrg // Check bool. 400529004570Smrg _Bool success = false; 400629004570Smrg 400729004570Smrg // Check restrict. 400829004570Smrg if (test_restrict ("String literal") == 0) 400929004570Smrg success = true; 401029004570Smrg char *restrict newvar = "Another string"; 401129004570Smrg 401229004570Smrg // Check varargs. 401329004570Smrg test_varargs ("s, d' f .", "string", 65, 34.234); 401429004570Smrg test_varargs_macros (); 401529004570Smrg 401621212451Smrg // Check flexible array members. 401721212451Smrg struct incomplete_array *ia = 401821212451Smrg malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 401921212451Smrg ia->datasize = 10; 402021212451Smrg for (int i = 0; i < ia->datasize; ++i) 402121212451Smrg ia->data[i] = i * 1.234; 402221212451Smrg 402321212451Smrg // Check named initializers. 402421212451Smrg struct named_init ni = { 402521212451Smrg .number = 34, 402621212451Smrg .name = L"Test wide string", 402721212451Smrg .average = 543.34343, 402821212451Smrg }; 402921212451Smrg 403021212451Smrg ni.number = 58; 403121212451Smrg 403221212451Smrg int dynamic_array[ni.number]; 403321212451Smrg dynamic_array[ni.number - 1] = 543; 403421212451Smrg 403521212451Smrg // work around unused variable warnings 403621212451Smrg return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 403721212451Smrg || dynamic_array[ni.number - 1] != 543); 403821212451Smrg 403921212451Smrg ; 404021212451Smrg return 0; 404121212451Smrg} 404221212451Smrg_ACEOF 40437253c0c7Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 404421212451Smrgdo 404521212451Smrg CC="$ac_save_CC $ac_arg" 40466f02d4e9Smrg if ac_fn_c_try_compile "$LINENO"; then : 404721212451Smrg ac_cv_prog_cc_c99=$ac_arg 404821212451Smrgfi 404921212451Smrgrm -f core conftest.err conftest.$ac_objext 405021212451Smrg test "x$ac_cv_prog_cc_c99" != "xno" && break 405121212451Smrgdone 405221212451Smrgrm -f conftest.$ac_ext 405321212451SmrgCC=$ac_save_CC 405421212451Smrg 405521212451Smrgfi 405621212451Smrg# AC_CACHE_VAL 405721212451Smrgcase "x$ac_cv_prog_cc_c99" in 405821212451Smrg x) 40596f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 40606f02d4e9Smrg$as_echo "none needed" >&6; } ;; 406121212451Smrg xno) 40626f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 40636f02d4e9Smrg$as_echo "unsupported" >&6; } ;; 406421212451Smrg *) 406521212451Smrg CC="$CC $ac_cv_prog_cc_c99" 40666f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 40676f02d4e9Smrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 406821212451Smrgesac 40696f02d4e9Smrgif test "x$ac_cv_prog_cc_c99" != xno; then : 407021212451Smrg 40716f02d4e9Smrgfi 407221212451Smrg 407321212451Smrg 407421212451Smrg 407521212451Smrgac_ext=c 407621212451Smrgac_cpp='$CPP $CPPFLAGS' 407721212451Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 407821212451Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 407921212451Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 40806f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 40816f02d4e9Smrg$as_echo_n "checking how to run the C preprocessor... " >&6; } 408221212451Smrg# On Suns, sometimes $CPP names a directory. 408321212451Smrgif test -n "$CPP" && test -d "$CPP"; then 408421212451Smrg CPP= 408521212451Smrgfi 408621212451Smrgif test -z "$CPP"; then 40876f02d4e9Smrg if ${ac_cv_prog_CPP+:} false; then : 40886f02d4e9Smrg $as_echo_n "(cached) " >&6 408921212451Smrgelse 409021212451Smrg # Double quotes because CPP needs to be expanded 409121212451Smrg for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 409221212451Smrg do 409321212451Smrg ac_preproc_ok=false 409421212451Smrgfor ac_c_preproc_warn_flag in '' yes 409521212451Smrgdo 409621212451Smrg # Use a header file that comes with gcc, so configuring glibc 409721212451Smrg # with a fresh cross-compiler works. 409821212451Smrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 409921212451Smrg # <limits.h> exists even on freestanding compilers. 410021212451Smrg # On the NeXT, cc -E runs the code through the compiler's parser, 410121212451Smrg # not just through cpp. "Syntax error" is here to catch this case. 41026f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 410321212451Smrg/* end confdefs.h. */ 410421212451Smrg#ifdef __STDC__ 410521212451Smrg# include <limits.h> 410621212451Smrg#else 410721212451Smrg# include <assert.h> 410821212451Smrg#endif 410921212451Smrg Syntax error 411021212451Smrg_ACEOF 41116f02d4e9Smrgif ac_fn_c_try_cpp "$LINENO"; then : 411221212451Smrg 41136f02d4e9Smrgelse 411421212451Smrg # Broken: fails on valid input. 411521212451Smrgcontinue 411621212451Smrgfi 41176f02d4e9Smrgrm -f conftest.err conftest.i conftest.$ac_ext 411821212451Smrg 411921212451Smrg # OK, works on sane cases. Now check whether nonexistent headers 412021212451Smrg # can be detected and how. 41216f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 412221212451Smrg/* end confdefs.h. */ 412321212451Smrg#include <ac_nonexistent.h> 412421212451Smrg_ACEOF 41256f02d4e9Smrgif ac_fn_c_try_cpp "$LINENO"; then : 412621212451Smrg # Broken: success on invalid input. 412721212451Smrgcontinue 412821212451Smrgelse 412921212451Smrg # Passes both tests. 413021212451Smrgac_preproc_ok=: 413121212451Smrgbreak 413221212451Smrgfi 41336f02d4e9Smrgrm -f conftest.err conftest.i conftest.$ac_ext 413421212451Smrg 413521212451Smrgdone 413621212451Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 41376f02d4e9Smrgrm -f conftest.i conftest.err conftest.$ac_ext 41386f02d4e9Smrgif $ac_preproc_ok; then : 413921212451Smrg break 414021212451Smrgfi 414121212451Smrg 414221212451Smrg done 414321212451Smrg ac_cv_prog_CPP=$CPP 414421212451Smrg 414521212451Smrgfi 414621212451Smrg CPP=$ac_cv_prog_CPP 414721212451Smrgelse 414821212451Smrg ac_cv_prog_CPP=$CPP 414921212451Smrgfi 41506f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 41516f02d4e9Smrg$as_echo "$CPP" >&6; } 415221212451Smrgac_preproc_ok=false 415321212451Smrgfor ac_c_preproc_warn_flag in '' yes 415421212451Smrgdo 415521212451Smrg # Use a header file that comes with gcc, so configuring glibc 415621212451Smrg # with a fresh cross-compiler works. 415721212451Smrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 415821212451Smrg # <limits.h> exists even on freestanding compilers. 415921212451Smrg # On the NeXT, cc -E runs the code through the compiler's parser, 416021212451Smrg # not just through cpp. "Syntax error" is here to catch this case. 41616f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 416221212451Smrg/* end confdefs.h. */ 416321212451Smrg#ifdef __STDC__ 416421212451Smrg# include <limits.h> 416521212451Smrg#else 416621212451Smrg# include <assert.h> 416721212451Smrg#endif 416821212451Smrg Syntax error 416921212451Smrg_ACEOF 41706f02d4e9Smrgif ac_fn_c_try_cpp "$LINENO"; then : 417121212451Smrg 41726f02d4e9Smrgelse 417321212451Smrg # Broken: fails on valid input. 417421212451Smrgcontinue 417521212451Smrgfi 41766f02d4e9Smrgrm -f conftest.err conftest.i conftest.$ac_ext 417721212451Smrg 417821212451Smrg # OK, works on sane cases. Now check whether nonexistent headers 417921212451Smrg # can be detected and how. 41806f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 418121212451Smrg/* end confdefs.h. */ 418221212451Smrg#include <ac_nonexistent.h> 418321212451Smrg_ACEOF 41846f02d4e9Smrgif ac_fn_c_try_cpp "$LINENO"; then : 418521212451Smrg # Broken: success on invalid input. 418621212451Smrgcontinue 418721212451Smrgelse 418821212451Smrg # Passes both tests. 418921212451Smrgac_preproc_ok=: 419021212451Smrgbreak 419121212451Smrgfi 41926f02d4e9Smrgrm -f conftest.err conftest.i conftest.$ac_ext 419321212451Smrg 419421212451Smrgdone 419521212451Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 41966f02d4e9Smrgrm -f conftest.i conftest.err conftest.$ac_ext 41976f02d4e9Smrgif $ac_preproc_ok; then : 41986f02d4e9Smrg 419921212451Smrgelse 42006f02d4e9Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 42016f02d4e9Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 42026f02d4e9Smrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check 42036f02d4e9SmrgSee \`config.log' for more details" "$LINENO" 5; } 420421212451Smrgfi 420521212451Smrg 420621212451Smrgac_ext=c 420721212451Smrgac_cpp='$CPP $CPPFLAGS' 420821212451Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 420921212451Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 421021212451Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 421121212451Smrg 421221212451Smrg 42136f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 42146f02d4e9Smrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 42156f02d4e9Smrgif ${ac_cv_path_GREP+:} false; then : 42166f02d4e9Smrg $as_echo_n "(cached) " >&6 421721212451Smrgelse 42186f02d4e9Smrg if test -z "$GREP"; then 421921212451Smrg ac_path_GREP_found=false 42206f02d4e9Smrg # Loop through the user's path and test for each of PROGNAME-LIST 42216f02d4e9Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 422221212451Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 422321212451Smrgdo 422421212451Smrg IFS=$as_save_IFS 422521212451Smrg test -z "$as_dir" && as_dir=. 42266f02d4e9Smrg for ac_prog in grep ggrep; do 42276f02d4e9Smrg for ac_exec_ext in '' $ac_executable_extensions; do 42286f02d4e9Smrg ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 42297253c0c7Smrg as_fn_executable_p "$ac_path_GREP" || continue 42306f02d4e9Smrg# Check for GNU ac_path_GREP and select it if it is found. 423121212451Smrg # Check for GNU $ac_path_GREP 423221212451Smrgcase `"$ac_path_GREP" --version 2>&1` in 423321212451Smrg*GNU*) 423421212451Smrg ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 423521212451Smrg*) 423621212451Smrg ac_count=0 42376f02d4e9Smrg $as_echo_n 0123456789 >"conftest.in" 423821212451Smrg while : 423921212451Smrg do 424021212451Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 424121212451Smrg mv "conftest.tmp" "conftest.in" 424221212451Smrg cp "conftest.in" "conftest.nl" 42436f02d4e9Smrg $as_echo 'GREP' >> "conftest.nl" 424421212451Smrg "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 424521212451Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 42466f02d4e9Smrg as_fn_arith $ac_count + 1 && ac_count=$as_val 424721212451Smrg if test $ac_count -gt ${ac_path_GREP_max-0}; then 424821212451Smrg # Best one so far, save it but keep looking for a better one 424921212451Smrg ac_cv_path_GREP="$ac_path_GREP" 425021212451Smrg ac_path_GREP_max=$ac_count 425121212451Smrg fi 425221212451Smrg # 10*(2^10) chars as input seems more than enough 425321212451Smrg test $ac_count -gt 10 && break 425421212451Smrg done 425521212451Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 425621212451Smrgesac 425721212451Smrg 42586f02d4e9Smrg $ac_path_GREP_found && break 3 42596f02d4e9Smrg done 42606f02d4e9Smrg done 426121212451Smrg done 426221212451SmrgIFS=$as_save_IFS 42636f02d4e9Smrg if test -z "$ac_cv_path_GREP"; then 42646f02d4e9Smrg as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 42656f02d4e9Smrg fi 426621212451Smrgelse 426721212451Smrg ac_cv_path_GREP=$GREP 426821212451Smrgfi 426921212451Smrg 427021212451Smrgfi 42716f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 42726f02d4e9Smrg$as_echo "$ac_cv_path_GREP" >&6; } 427321212451Smrg GREP="$ac_cv_path_GREP" 427421212451Smrg 427521212451Smrg 42766f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 42776f02d4e9Smrg$as_echo_n "checking for egrep... " >&6; } 42786f02d4e9Smrgif ${ac_cv_path_EGREP+:} false; then : 42796f02d4e9Smrg $as_echo_n "(cached) " >&6 428021212451Smrgelse 428121212451Smrg if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 428221212451Smrg then ac_cv_path_EGREP="$GREP -E" 428321212451Smrg else 42846f02d4e9Smrg if test -z "$EGREP"; then 428521212451Smrg ac_path_EGREP_found=false 42866f02d4e9Smrg # Loop through the user's path and test for each of PROGNAME-LIST 42876f02d4e9Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 428821212451Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 428921212451Smrgdo 429021212451Smrg IFS=$as_save_IFS 429121212451Smrg test -z "$as_dir" && as_dir=. 42926f02d4e9Smrg for ac_prog in egrep; do 42936f02d4e9Smrg for ac_exec_ext in '' $ac_executable_extensions; do 42946f02d4e9Smrg ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 42957253c0c7Smrg as_fn_executable_p "$ac_path_EGREP" || continue 42966f02d4e9Smrg# Check for GNU ac_path_EGREP and select it if it is found. 429721212451Smrg # Check for GNU $ac_path_EGREP 429821212451Smrgcase `"$ac_path_EGREP" --version 2>&1` in 429921212451Smrg*GNU*) 430021212451Smrg ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 430121212451Smrg*) 430221212451Smrg ac_count=0 43036f02d4e9Smrg $as_echo_n 0123456789 >"conftest.in" 430421212451Smrg while : 430521212451Smrg do 430621212451Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 430721212451Smrg mv "conftest.tmp" "conftest.in" 430821212451Smrg cp "conftest.in" "conftest.nl" 43096f02d4e9Smrg $as_echo 'EGREP' >> "conftest.nl" 431021212451Smrg "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 431121212451Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 43126f02d4e9Smrg as_fn_arith $ac_count + 1 && ac_count=$as_val 431321212451Smrg if test $ac_count -gt ${ac_path_EGREP_max-0}; then 431421212451Smrg # Best one so far, save it but keep looking for a better one 431521212451Smrg ac_cv_path_EGREP="$ac_path_EGREP" 431621212451Smrg ac_path_EGREP_max=$ac_count 431721212451Smrg fi 431821212451Smrg # 10*(2^10) chars as input seems more than enough 431921212451Smrg test $ac_count -gt 10 && break 432021212451Smrg done 432121212451Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 432221212451Smrgesac 432321212451Smrg 43246f02d4e9Smrg $ac_path_EGREP_found && break 3 43256f02d4e9Smrg done 43266f02d4e9Smrg done 432721212451Smrg done 432821212451SmrgIFS=$as_save_IFS 43296f02d4e9Smrg if test -z "$ac_cv_path_EGREP"; then 43306f02d4e9Smrg as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 43316f02d4e9Smrg fi 433221212451Smrgelse 433321212451Smrg ac_cv_path_EGREP=$EGREP 433421212451Smrgfi 433521212451Smrg 433621212451Smrg fi 433721212451Smrgfi 43386f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 43396f02d4e9Smrg$as_echo "$ac_cv_path_EGREP" >&6; } 434021212451Smrg EGREP="$ac_cv_path_EGREP" 434121212451Smrg 434221212451Smrg 43436f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 43446f02d4e9Smrg$as_echo_n "checking for ANSI C header files... " >&6; } 43456f02d4e9Smrgif ${ac_cv_header_stdc+:} false; then : 43466f02d4e9Smrg $as_echo_n "(cached) " >&6 434721212451Smrgelse 43486f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 434921212451Smrg/* end confdefs.h. */ 435021212451Smrg#include <stdlib.h> 435121212451Smrg#include <stdarg.h> 435221212451Smrg#include <string.h> 435321212451Smrg#include <float.h> 435421212451Smrg 435521212451Smrgint 435621212451Smrgmain () 435721212451Smrg{ 435821212451Smrg 435921212451Smrg ; 436021212451Smrg return 0; 436121212451Smrg} 436221212451Smrg_ACEOF 43636f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 436421212451Smrg ac_cv_header_stdc=yes 436521212451Smrgelse 43666f02d4e9Smrg ac_cv_header_stdc=no 436721212451Smrgfi 436821212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 436921212451Smrg 437021212451Smrgif test $ac_cv_header_stdc = yes; then 437121212451Smrg # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 43726f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 437321212451Smrg/* end confdefs.h. */ 437421212451Smrg#include <string.h> 437521212451Smrg 437621212451Smrg_ACEOF 437721212451Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 43786f02d4e9Smrg $EGREP "memchr" >/dev/null 2>&1; then : 43796f02d4e9Smrg 438021212451Smrgelse 438121212451Smrg ac_cv_header_stdc=no 438221212451Smrgfi 43836f02d4e9Smrgrm -f conftest* 438421212451Smrg 438521212451Smrgfi 438621212451Smrg 438721212451Smrgif test $ac_cv_header_stdc = yes; then 438821212451Smrg # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 43896f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 439021212451Smrg/* end confdefs.h. */ 439121212451Smrg#include <stdlib.h> 439221212451Smrg 439321212451Smrg_ACEOF 439421212451Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 43956f02d4e9Smrg $EGREP "free" >/dev/null 2>&1; then : 43966f02d4e9Smrg 439721212451Smrgelse 439821212451Smrg ac_cv_header_stdc=no 439921212451Smrgfi 44006f02d4e9Smrgrm -f conftest* 440121212451Smrg 440221212451Smrgfi 440321212451Smrg 440421212451Smrgif test $ac_cv_header_stdc = yes; then 440521212451Smrg # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 44066f02d4e9Smrg if test "$cross_compiling" = yes; then : 440721212451Smrg : 440821212451Smrgelse 44096f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 441021212451Smrg/* end confdefs.h. */ 441121212451Smrg#include <ctype.h> 441221212451Smrg#include <stdlib.h> 441321212451Smrg#if ((' ' & 0x0FF) == 0x020) 441421212451Smrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 441521212451Smrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 441621212451Smrg#else 441721212451Smrg# define ISLOWER(c) \ 441821212451Smrg (('a' <= (c) && (c) <= 'i') \ 441921212451Smrg || ('j' <= (c) && (c) <= 'r') \ 442021212451Smrg || ('s' <= (c) && (c) <= 'z')) 442121212451Smrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 442221212451Smrg#endif 442321212451Smrg 442421212451Smrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 442521212451Smrgint 442621212451Smrgmain () 442721212451Smrg{ 442821212451Smrg int i; 442921212451Smrg for (i = 0; i < 256; i++) 443021212451Smrg if (XOR (islower (i), ISLOWER (i)) 443121212451Smrg || toupper (i) != TOUPPER (i)) 443221212451Smrg return 2; 443321212451Smrg return 0; 443421212451Smrg} 443521212451Smrg_ACEOF 44366f02d4e9Smrgif ac_fn_c_try_run "$LINENO"; then : 443721212451Smrg 44386f02d4e9Smrgelse 44396f02d4e9Smrg ac_cv_header_stdc=no 444021212451Smrgfi 44416f02d4e9Smrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 44426f02d4e9Smrg conftest.$ac_objext conftest.beam conftest.$ac_ext 444321212451Smrgfi 444421212451Smrg 444521212451Smrgfi 444621212451Smrgfi 44476f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 44486f02d4e9Smrg$as_echo "$ac_cv_header_stdc" >&6; } 444921212451Smrgif test $ac_cv_header_stdc = yes; then 445021212451Smrg 44516f02d4e9Smrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h 445221212451Smrg 445321212451Smrgfi 445421212451Smrg 445521212451Smrg# On IRIX 5.3, sys/types and inttypes.h are conflicting. 445621212451Smrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 445721212451Smrg inttypes.h stdint.h unistd.h 44586f02d4e9Smrgdo : 44596f02d4e9Smrg as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 44606f02d4e9Smrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 44616f02d4e9Smrg" 44626f02d4e9Smrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 446321212451Smrg cat >>confdefs.h <<_ACEOF 44646f02d4e9Smrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 446521212451Smrg_ACEOF 446621212451Smrg 446721212451Smrgfi 446821212451Smrg 446921212451Smrgdone 447021212451Smrg 447121212451Smrg 447221212451Smrg 447321212451Smrg 447421212451Smrg 447521212451Smrg 44766f02d4e9Smrgac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 44776f02d4e9Smrgif test "x$ac_cv_have_decl___clang__" = xyes; then : 447821212451Smrg CLANGCC="yes" 447921212451Smrgelse 448021212451Smrg CLANGCC="no" 448121212451Smrgfi 448221212451Smrg 44836f02d4e9Smrgac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 44846f02d4e9Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 448521212451Smrg INTELCC="yes" 448621212451Smrgelse 448721212451Smrg INTELCC="no" 448821212451Smrgfi 448921212451Smrg 44906f02d4e9Smrgac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 44916f02d4e9Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 449221212451Smrg SUNCC="yes" 449321212451Smrgelse 449421212451Smrg SUNCC="no" 449521212451Smrgfi 449621212451Smrg 449721212451Smrg 449821212451Smrg 449921212451Smrg 45007253c0c7Smrg 45017253c0c7Smrg 45027253c0c7Smrg 45037253c0c7Smrg 45047253c0c7Smrg 450521212451Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 450621212451Smrg if test -n "$ac_tool_prefix"; then 450721212451Smrg # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 450821212451Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2 45096f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45106f02d4e9Smrg$as_echo_n "checking for $ac_word... " >&6; } 45116f02d4e9Smrgif ${ac_cv_path_PKG_CONFIG+:} false; then : 45126f02d4e9Smrg $as_echo_n "(cached) " >&6 451321212451Smrgelse 451421212451Smrg case $PKG_CONFIG in 451521212451Smrg [\\/]* | ?:[\\/]*) 451621212451Smrg ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 451721212451Smrg ;; 451821212451Smrg *) 451921212451Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 452021212451Smrgfor as_dir in $PATH 452121212451Smrgdo 452221212451Smrg IFS=$as_save_IFS 452321212451Smrg test -z "$as_dir" && as_dir=. 45246f02d4e9Smrg for ac_exec_ext in '' $ac_executable_extensions; do 45257253c0c7Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 452621212451Smrg ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 45276f02d4e9Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 452821212451Smrg break 2 452921212451Smrg fi 453021212451Smrgdone 45316f02d4e9Smrg done 453221212451SmrgIFS=$as_save_IFS 453321212451Smrg 453421212451Smrg ;; 453521212451Smrgesac 453621212451Smrgfi 453721212451SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG 453821212451Smrgif test -n "$PKG_CONFIG"; then 45396f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 45406f02d4e9Smrg$as_echo "$PKG_CONFIG" >&6; } 454121212451Smrgelse 45426f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45436f02d4e9Smrg$as_echo "no" >&6; } 454421212451Smrgfi 454521212451Smrg 454621212451Smrg 454721212451Smrgfi 454821212451Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then 454921212451Smrg ac_pt_PKG_CONFIG=$PKG_CONFIG 455021212451Smrg # Extract the first word of "pkg-config", so it can be a program name with args. 455121212451Smrgset dummy pkg-config; ac_word=$2 45526f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45536f02d4e9Smrg$as_echo_n "checking for $ac_word... " >&6; } 45546f02d4e9Smrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 45556f02d4e9Smrg $as_echo_n "(cached) " >&6 455621212451Smrgelse 455721212451Smrg case $ac_pt_PKG_CONFIG in 455821212451Smrg [\\/]* | ?:[\\/]*) 455921212451Smrg ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 456021212451Smrg ;; 456121212451Smrg *) 456221212451Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 456321212451Smrgfor as_dir in $PATH 456421212451Smrgdo 456521212451Smrg IFS=$as_save_IFS 456621212451Smrg test -z "$as_dir" && as_dir=. 45676f02d4e9Smrg for ac_exec_ext in '' $ac_executable_extensions; do 45687253c0c7Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 456921212451Smrg ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 45706f02d4e9Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 457121212451Smrg break 2 457221212451Smrg fi 457321212451Smrgdone 45746f02d4e9Smrg done 457521212451SmrgIFS=$as_save_IFS 457621212451Smrg 457721212451Smrg ;; 457821212451Smrgesac 457921212451Smrgfi 458021212451Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 458121212451Smrgif test -n "$ac_pt_PKG_CONFIG"; then 45826f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 45836f02d4e9Smrg$as_echo "$ac_pt_PKG_CONFIG" >&6; } 458421212451Smrgelse 45856f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45866f02d4e9Smrg$as_echo "no" >&6; } 458721212451Smrgfi 458821212451Smrg 458921212451Smrg if test "x$ac_pt_PKG_CONFIG" = x; then 459021212451Smrg PKG_CONFIG="" 459121212451Smrg else 459221212451Smrg case $cross_compiling:$ac_tool_warned in 459321212451Smrgyes:) 45946f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 45956f02d4e9Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 459621212451Smrgac_tool_warned=yes ;; 459721212451Smrgesac 459821212451Smrg PKG_CONFIG=$ac_pt_PKG_CONFIG 459921212451Smrg fi 460021212451Smrgelse 460121212451Smrg PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 460221212451Smrgfi 460321212451Smrg 460421212451Smrgfi 460521212451Smrgif test -n "$PKG_CONFIG"; then 460621212451Smrg _pkg_min_version=0.9.0 46076f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 46086f02d4e9Smrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 460921212451Smrg if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 46106f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 46116f02d4e9Smrg$as_echo "yes" >&6; } 461221212451Smrg else 46136f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46146f02d4e9Smrg$as_echo "no" >&6; } 461521212451Smrg PKG_CONFIG="" 461621212451Smrg fi 461721212451Smrgfi 461821212451Smrg# Make sure we can run config.sub. 461921212451Smrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 46206f02d4e9Smrg as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 462121212451Smrg 46226f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 46236f02d4e9Smrg$as_echo_n "checking build system type... " >&6; } 46246f02d4e9Smrgif ${ac_cv_build+:} false; then : 46256f02d4e9Smrg $as_echo_n "(cached) " >&6 462621212451Smrgelse 462721212451Smrg ac_build_alias=$build_alias 462821212451Smrgtest "x$ac_build_alias" = x && 462921212451Smrg ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 463021212451Smrgtest "x$ac_build_alias" = x && 46316f02d4e9Smrg as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 463221212451Smrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 46336f02d4e9Smrg as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 463421212451Smrg 463521212451Smrgfi 46366f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 46376f02d4e9Smrg$as_echo "$ac_cv_build" >&6; } 463821212451Smrgcase $ac_cv_build in 463921212451Smrg*-*-*) ;; 46406f02d4e9Smrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 464121212451Smrgesac 464221212451Smrgbuild=$ac_cv_build 464321212451Smrgac_save_IFS=$IFS; IFS='-' 464421212451Smrgset x $ac_cv_build 464521212451Smrgshift 464621212451Smrgbuild_cpu=$1 464721212451Smrgbuild_vendor=$2 464821212451Smrgshift; shift 464921212451Smrg# Remember, the first character of IFS is used to create $*, 465021212451Smrg# except with old shells: 465121212451Smrgbuild_os=$* 465221212451SmrgIFS=$ac_save_IFS 465321212451Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 465421212451Smrg 465521212451Smrg 46566f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 46576f02d4e9Smrg$as_echo_n "checking host system type... " >&6; } 46586f02d4e9Smrgif ${ac_cv_host+:} false; then : 46596f02d4e9Smrg $as_echo_n "(cached) " >&6 466021212451Smrgelse 466121212451Smrg if test "x$host_alias" = x; then 466221212451Smrg ac_cv_host=$ac_cv_build 466321212451Smrgelse 466421212451Smrg ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 46656f02d4e9Smrg as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 466621212451Smrgfi 466721212451Smrg 466821212451Smrgfi 46696f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 46706f02d4e9Smrg$as_echo "$ac_cv_host" >&6; } 467121212451Smrgcase $ac_cv_host in 467221212451Smrg*-*-*) ;; 46736f02d4e9Smrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 467421212451Smrgesac 467521212451Smrghost=$ac_cv_host 467621212451Smrgac_save_IFS=$IFS; IFS='-' 467721212451Smrgset x $ac_cv_host 467821212451Smrgshift 467921212451Smrghost_cpu=$1 468021212451Smrghost_vendor=$2 468121212451Smrgshift; shift 468221212451Smrg# Remember, the first character of IFS is used to create $*, 468321212451Smrg# except with old shells: 468421212451Smrghost_os=$* 468521212451SmrgIFS=$ac_save_IFS 468621212451Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 468721212451Smrg 468821212451Smrg 46896f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 46906f02d4e9Smrg$as_echo_n "checking for a sed that does not truncate output... " >&6; } 46916f02d4e9Smrgif ${ac_cv_path_SED+:} false; then : 46926f02d4e9Smrg $as_echo_n "(cached) " >&6 469321212451Smrgelse 469421212451Smrg ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 469521212451Smrg for ac_i in 1 2 3 4 5 6 7; do 469621212451Smrg ac_script="$ac_script$as_nl$ac_script" 469721212451Smrg done 46986f02d4e9Smrg echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 46996f02d4e9Smrg { ac_script=; unset ac_script;} 47006f02d4e9Smrg if test -z "$SED"; then 470121212451Smrg ac_path_SED_found=false 47026f02d4e9Smrg # Loop through the user's path and test for each of PROGNAME-LIST 47036f02d4e9Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 470421212451Smrgfor as_dir in $PATH 470521212451Smrgdo 470621212451Smrg IFS=$as_save_IFS 470721212451Smrg test -z "$as_dir" && as_dir=. 47086f02d4e9Smrg for ac_prog in sed gsed; do 47096f02d4e9Smrg for ac_exec_ext in '' $ac_executable_extensions; do 47106f02d4e9Smrg ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 47117253c0c7Smrg as_fn_executable_p "$ac_path_SED" || continue 47126f02d4e9Smrg# Check for GNU ac_path_SED and select it if it is found. 471321212451Smrg # Check for GNU $ac_path_SED 471421212451Smrgcase `"$ac_path_SED" --version 2>&1` in 471521212451Smrg*GNU*) 471621212451Smrg ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 471721212451Smrg*) 471821212451Smrg ac_count=0 47196f02d4e9Smrg $as_echo_n 0123456789 >"conftest.in" 472021212451Smrg while : 472121212451Smrg do 472221212451Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 472321212451Smrg mv "conftest.tmp" "conftest.in" 472421212451Smrg cp "conftest.in" "conftest.nl" 47256f02d4e9Smrg $as_echo '' >> "conftest.nl" 472621212451Smrg "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 472721212451Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 47286f02d4e9Smrg as_fn_arith $ac_count + 1 && ac_count=$as_val 472921212451Smrg if test $ac_count -gt ${ac_path_SED_max-0}; then 473021212451Smrg # Best one so far, save it but keep looking for a better one 473121212451Smrg ac_cv_path_SED="$ac_path_SED" 473221212451Smrg ac_path_SED_max=$ac_count 473321212451Smrg fi 473421212451Smrg # 10*(2^10) chars as input seems more than enough 473521212451Smrg test $ac_count -gt 10 && break 473621212451Smrg done 473721212451Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 473821212451Smrgesac 473921212451Smrg 47406f02d4e9Smrg $ac_path_SED_found && break 3 47416f02d4e9Smrg done 47426f02d4e9Smrg done 474321212451Smrg done 474421212451SmrgIFS=$as_save_IFS 47456f02d4e9Smrg if test -z "$ac_cv_path_SED"; then 47466f02d4e9Smrg as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 47476f02d4e9Smrg fi 474821212451Smrgelse 474921212451Smrg ac_cv_path_SED=$SED 475021212451Smrgfi 475121212451Smrg 475221212451Smrgfi 47536f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 47546f02d4e9Smrg$as_echo "$ac_cv_path_SED" >&6; } 475521212451Smrg SED="$ac_cv_path_SED" 475621212451Smrg rm -f conftest.sed 475721212451Smrg 475821212451Smrg 475921212451Smrg 476021212451Smrg 476121212451Smrg 476221212451Smrg 476321212451Smrg# Check whether --enable-selective-werror was given. 47646f02d4e9Smrgif test "${enable_selective_werror+set}" = set; then : 476521212451Smrg enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 476621212451Smrgelse 476721212451Smrg SELECTIVE_WERROR=yes 476821212451Smrgfi 476921212451Smrg 477021212451Smrg 47716f02d4e9Smrg 47726f02d4e9Smrg 47736f02d4e9Smrg 477421212451Smrg# -v is too short to test reliably with XORG_TESTSET_CFLAG 477521212451Smrgif test "x$SUNCC" = "xyes"; then 477621212451Smrg BASE_CFLAGS="-v" 477721212451Smrgelse 477821212451Smrg BASE_CFLAGS="" 477921212451Smrgfi 478021212451Smrg 478121212451Smrg# This chunk of warnings were those that existed in the legacy CWARNFLAGS 478221212451Smrg 478321212451Smrg 478421212451Smrg 478521212451Smrg 478621212451Smrg 47876f02d4e9Smrg 47886f02d4e9Smrg 47896f02d4e9Smrg 47906f02d4e9Smrg 47916f02d4e9Smrg 47926f02d4e9Smrg 47936f02d4e9Smrg 47946f02d4e9Smrg 479521212451Smrgxorg_testset_save_CFLAGS="$CFLAGS" 479621212451Smrg 47976f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 479821212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 47996f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 48006f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 48016f02d4e9Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 48026f02d4e9Smrg $as_echo_n "(cached) " >&6 48036f02d4e9Smrgelse 48046f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 480521212451Smrg/* end confdefs.h. */ 480621212451Smrgint i; 480721212451Smrg_ACEOF 48086f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 48096f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=yes 481021212451Smrgelse 48116f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=no 481221212451Smrgfi 481321212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 48146f02d4e9Smrgfi 48156f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 48166f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 48176f02d4e9Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 481821212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 481921212451Smrgfi 482021212451Smrg 48216f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 48226f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 482321212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 482421212451Smrg fi 482521212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 48266f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 48276f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 48286f02d4e9Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 48296f02d4e9Smrg $as_echo_n "(cached) " >&6 48306f02d4e9Smrgelse 48316f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 483221212451Smrg/* end confdefs.h. */ 483321212451Smrgint i; 483421212451Smrg_ACEOF 48356f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 48366f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 483721212451Smrgelse 48386f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=no 483921212451Smrgfi 484021212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 48416f02d4e9Smrgfi 48426f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 48436f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 48446f02d4e9Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 484521212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 484621212451Smrgfi 484721212451Smrg 484821212451Smrgfound="no" 484921212451Smrg 485021212451Smrg if test $found = "no" ; then 48516f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 485221212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 485321212451Smrg fi 485421212451Smrg 48556f02d4e9Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 485621212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 485721212451Smrg fi 485821212451Smrg 485921212451Smrg CFLAGS="$CFLAGS -Wall" 486021212451Smrg 48616f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 48626f02d4e9Smrg$as_echo_n "checking if $CC supports -Wall... " >&6; } 48636f02d4e9Smrg cacheid=xorg_cv_cc_flag__Wall 48646f02d4e9Smrg if eval \${$cacheid+:} false; then : 48656f02d4e9Smrg $as_echo_n "(cached) " >&6 48666f02d4e9Smrgelse 48676f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 486821212451Smrg/* end confdefs.h. */ 486921212451Smrgint i; 487021212451Smrgint 487121212451Smrgmain () 487221212451Smrg{ 487321212451Smrg 487421212451Smrg ; 487521212451Smrg return 0; 487621212451Smrg} 487721212451Smrg_ACEOF 48786f02d4e9Smrgif ac_fn_c_try_link "$LINENO"; then : 48796f02d4e9Smrg eval $cacheid=yes 488021212451Smrgelse 48816f02d4e9Smrg eval $cacheid=no 48826f02d4e9Smrgfi 48836f02d4e9Smrgrm -f core conftest.err conftest.$ac_objext \ 48846f02d4e9Smrg conftest$ac_exeext conftest.$ac_ext 488521212451Smrgfi 488621212451Smrg 48876f02d4e9Smrg 488821212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 488921212451Smrg 48906f02d4e9Smrg eval supported=\$$cacheid 48916f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 48926f02d4e9Smrg$as_echo "$supported" >&6; } 489321212451Smrg if test "$supported" = "yes" ; then 489421212451Smrg BASE_CFLAGS="$BASE_CFLAGS -Wall" 489521212451Smrg found="yes" 489621212451Smrg fi 489721212451Smrg fi 489821212451Smrg 489921212451Smrg 490021212451Smrg 490121212451Smrg 490221212451Smrg 490321212451Smrg 490421212451Smrg 49056f02d4e9Smrg 49066f02d4e9Smrg 49076f02d4e9Smrg 49086f02d4e9Smrg 49096f02d4e9Smrg 49106f02d4e9Smrg 49116f02d4e9Smrg 49126f02d4e9Smrg 491321212451Smrgxorg_testset_save_CFLAGS="$CFLAGS" 491421212451Smrg 49156f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 491621212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 49176f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 49186f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 49196f02d4e9Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 49206f02d4e9Smrg $as_echo_n "(cached) " >&6 49216f02d4e9Smrgelse 49226f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 492321212451Smrg/* end confdefs.h. */ 492421212451Smrgint i; 492521212451Smrg_ACEOF 49266f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 49276f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=yes 492821212451Smrgelse 49296f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=no 493021212451Smrgfi 493121212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 49326f02d4e9Smrgfi 49336f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 49346f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 49356f02d4e9Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 493621212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 493721212451Smrgfi 493821212451Smrg 49396f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 49406f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 494121212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 494221212451Smrg fi 494321212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 49446f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 49456f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 49466f02d4e9Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 49476f02d4e9Smrg $as_echo_n "(cached) " >&6 49486f02d4e9Smrgelse 49496f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 495021212451Smrg/* end confdefs.h. */ 495121212451Smrgint i; 495221212451Smrg_ACEOF 49536f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 49546f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 495521212451Smrgelse 49566f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=no 495721212451Smrgfi 495821212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 49596f02d4e9Smrgfi 49606f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 49616f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 49626f02d4e9Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 496321212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 496421212451Smrgfi 496521212451Smrg 496621212451Smrgfound="no" 496721212451Smrg 496821212451Smrg if test $found = "no" ; then 49696f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 497021212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 497121212451Smrg fi 497221212451Smrg 49736f02d4e9Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 497421212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 497521212451Smrg fi 497621212451Smrg 497721212451Smrg CFLAGS="$CFLAGS -Wpointer-arith" 497821212451Smrg 49796f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 49806f02d4e9Smrg$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 49816f02d4e9Smrg cacheid=xorg_cv_cc_flag__Wpointer_arith 49826f02d4e9Smrg if eval \${$cacheid+:} false; then : 49836f02d4e9Smrg $as_echo_n "(cached) " >&6 49846f02d4e9Smrgelse 49856f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 498621212451Smrg/* end confdefs.h. */ 498721212451Smrgint i; 498821212451Smrgint 498921212451Smrgmain () 499021212451Smrg{ 499121212451Smrg 499221212451Smrg ; 499321212451Smrg return 0; 499421212451Smrg} 499521212451Smrg_ACEOF 49966f02d4e9Smrgif ac_fn_c_try_link "$LINENO"; then : 49976f02d4e9Smrg eval $cacheid=yes 499821212451Smrgelse 49996f02d4e9Smrg eval $cacheid=no 500021212451Smrgfi 50016f02d4e9Smrgrm -f core conftest.err conftest.$ac_objext \ 50026f02d4e9Smrg conftest$ac_exeext conftest.$ac_ext 50036f02d4e9Smrgfi 50046f02d4e9Smrg 500521212451Smrg 500621212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 500721212451Smrg 50086f02d4e9Smrg eval supported=\$$cacheid 50096f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 50106f02d4e9Smrg$as_echo "$supported" >&6; } 501121212451Smrg if test "$supported" = "yes" ; then 501221212451Smrg BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 501321212451Smrg found="yes" 501421212451Smrg fi 501521212451Smrg fi 501621212451Smrg 501721212451Smrg 501821212451Smrg 501921212451Smrg 502021212451Smrg 502121212451Smrg 502221212451Smrg 50236f02d4e9Smrg 50246f02d4e9Smrg 50256f02d4e9Smrg 50266f02d4e9Smrg 50276f02d4e9Smrg 50286f02d4e9Smrg 50296f02d4e9Smrg 50306f02d4e9Smrg 503121212451Smrgxorg_testset_save_CFLAGS="$CFLAGS" 503221212451Smrg 50336f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 503421212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 50356f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 50366f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 50376f02d4e9Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 50386f02d4e9Smrg $as_echo_n "(cached) " >&6 50396f02d4e9Smrgelse 50406f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 504121212451Smrg/* end confdefs.h. */ 504221212451Smrgint i; 504321212451Smrg_ACEOF 50446f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 50456f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=yes 504621212451Smrgelse 50476f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=no 504821212451Smrgfi 504921212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50506f02d4e9Smrgfi 50516f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 50526f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 50536f02d4e9Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 505421212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 505521212451Smrgfi 505621212451Smrg 50576f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 50586f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 505921212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 506021212451Smrg fi 506121212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 50626f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 50636f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 50646f02d4e9Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 50656f02d4e9Smrg $as_echo_n "(cached) " >&6 50666f02d4e9Smrgelse 50676f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 506821212451Smrg/* end confdefs.h. */ 506921212451Smrgint i; 507021212451Smrg_ACEOF 50716f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 50726f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 507321212451Smrgelse 50746f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=no 507521212451Smrgfi 507621212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50776f02d4e9Smrgfi 50786f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 50796f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 50806f02d4e9Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 508121212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 508221212451Smrgfi 508321212451Smrg 508421212451Smrgfound="no" 508521212451Smrg 508621212451Smrg if test $found = "no" ; then 50876f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 508821212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 508921212451Smrg fi 509021212451Smrg 50916f02d4e9Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 509221212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 509321212451Smrg fi 509421212451Smrg 50956f02d4e9Smrg CFLAGS="$CFLAGS -Wmissing-declarations" 509621212451Smrg 50976f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 50986f02d4e9Smrg$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 50996f02d4e9Smrg cacheid=xorg_cv_cc_flag__Wmissing_declarations 51006f02d4e9Smrg if eval \${$cacheid+:} false; then : 51016f02d4e9Smrg $as_echo_n "(cached) " >&6 51026f02d4e9Smrgelse 51036f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 510421212451Smrg/* end confdefs.h. */ 510521212451Smrgint i; 510621212451Smrgint 510721212451Smrgmain () 510821212451Smrg{ 510921212451Smrg 511021212451Smrg ; 511121212451Smrg return 0; 511221212451Smrg} 511321212451Smrg_ACEOF 51146f02d4e9Smrgif ac_fn_c_try_link "$LINENO"; then : 51156f02d4e9Smrg eval $cacheid=yes 511621212451Smrgelse 51176f02d4e9Smrg eval $cacheid=no 51186f02d4e9Smrgfi 51196f02d4e9Smrgrm -f core conftest.err conftest.$ac_objext \ 51206f02d4e9Smrg conftest$ac_exeext conftest.$ac_ext 512121212451Smrgfi 512221212451Smrg 51236f02d4e9Smrg 512421212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 512521212451Smrg 51266f02d4e9Smrg eval supported=\$$cacheid 51276f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 51286f02d4e9Smrg$as_echo "$supported" >&6; } 512921212451Smrg if test "$supported" = "yes" ; then 51306f02d4e9Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 513121212451Smrg found="yes" 513221212451Smrg fi 513321212451Smrg fi 513421212451Smrg 513521212451Smrg 513621212451Smrg 513721212451Smrg 513821212451Smrg 513921212451Smrg 514021212451Smrg 51416f02d4e9Smrg 51426f02d4e9Smrg 51436f02d4e9Smrg 51446f02d4e9Smrg 51456f02d4e9Smrg 51466f02d4e9Smrg 51476f02d4e9Smrg 51486f02d4e9Smrg 514921212451Smrgxorg_testset_save_CFLAGS="$CFLAGS" 515021212451Smrg 51516f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 515221212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 51536f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 51546f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 51556f02d4e9Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 51566f02d4e9Smrg $as_echo_n "(cached) " >&6 51576f02d4e9Smrgelse 51586f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 515921212451Smrg/* end confdefs.h. */ 516021212451Smrgint i; 516121212451Smrg_ACEOF 51626f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 51636f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=yes 516421212451Smrgelse 51656f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=no 516621212451Smrgfi 516721212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51686f02d4e9Smrgfi 51696f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 51706f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 51716f02d4e9Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 517221212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 517321212451Smrgfi 517421212451Smrg 51756f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 51766f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 517721212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 517821212451Smrg fi 517921212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 51806f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 51816f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 51826f02d4e9Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 51836f02d4e9Smrg $as_echo_n "(cached) " >&6 51846f02d4e9Smrgelse 51856f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 518621212451Smrg/* end confdefs.h. */ 518721212451Smrgint i; 518821212451Smrg_ACEOF 51896f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 51906f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 519121212451Smrgelse 51926f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=no 519321212451Smrgfi 519421212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51956f02d4e9Smrgfi 51966f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 51976f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 51986f02d4e9Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 519921212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 520021212451Smrgfi 520121212451Smrg 520221212451Smrgfound="no" 520321212451Smrg 520421212451Smrg if test $found = "no" ; then 52056f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 520621212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 520721212451Smrg fi 520821212451Smrg 52096f02d4e9Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 521021212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 521121212451Smrg fi 521221212451Smrg 52136f02d4e9Smrg CFLAGS="$CFLAGS -Wformat=2" 521421212451Smrg 52156f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 52166f02d4e9Smrg$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 52177253c0c7Smrg cacheid=xorg_cv_cc_flag__Wformat_2 52186f02d4e9Smrg if eval \${$cacheid+:} false; then : 52196f02d4e9Smrg $as_echo_n "(cached) " >&6 52206f02d4e9Smrgelse 52216f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 522221212451Smrg/* end confdefs.h. */ 522321212451Smrgint i; 522421212451Smrgint 522521212451Smrgmain () 522621212451Smrg{ 522721212451Smrg 522821212451Smrg ; 522921212451Smrg return 0; 523021212451Smrg} 523121212451Smrg_ACEOF 52326f02d4e9Smrgif ac_fn_c_try_link "$LINENO"; then : 52336f02d4e9Smrg eval $cacheid=yes 523421212451Smrgelse 52356f02d4e9Smrg eval $cacheid=no 52366f02d4e9Smrgfi 52376f02d4e9Smrgrm -f core conftest.err conftest.$ac_objext \ 52386f02d4e9Smrg conftest$ac_exeext conftest.$ac_ext 52396f02d4e9Smrgfi 52406f02d4e9Smrg 52416f02d4e9Smrg 52426f02d4e9Smrg CFLAGS="$xorg_testset_save_CFLAGS" 52436f02d4e9Smrg 52446f02d4e9Smrg eval supported=\$$cacheid 52456f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 52466f02d4e9Smrg$as_echo "$supported" >&6; } 52476f02d4e9Smrg if test "$supported" = "yes" ; then 52486f02d4e9Smrg BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 52496f02d4e9Smrg found="yes" 52506f02d4e9Smrg fi 52516f02d4e9Smrg fi 525221212451Smrg 52536f02d4e9Smrg if test $found = "no" ; then 52546f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 52556f02d4e9Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 52566f02d4e9Smrg fi 52576f02d4e9Smrg 52586f02d4e9Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 52596f02d4e9Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 52606f02d4e9Smrg fi 52616f02d4e9Smrg 52626f02d4e9Smrg CFLAGS="$CFLAGS -Wformat" 52636f02d4e9Smrg 52646f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 52656f02d4e9Smrg$as_echo_n "checking if $CC supports -Wformat... " >&6; } 52666f02d4e9Smrg cacheid=xorg_cv_cc_flag__Wformat 52676f02d4e9Smrg if eval \${$cacheid+:} false; then : 52686f02d4e9Smrg $as_echo_n "(cached) " >&6 52696f02d4e9Smrgelse 52706f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52716f02d4e9Smrg/* end confdefs.h. */ 52726f02d4e9Smrgint i; 52736f02d4e9Smrgint 52746f02d4e9Smrgmain () 52756f02d4e9Smrg{ 52766f02d4e9Smrg 52776f02d4e9Smrg ; 52786f02d4e9Smrg return 0; 52796f02d4e9Smrg} 52806f02d4e9Smrg_ACEOF 52816f02d4e9Smrgif ac_fn_c_try_link "$LINENO"; then : 52826f02d4e9Smrg eval $cacheid=yes 52836f02d4e9Smrgelse 52846f02d4e9Smrg eval $cacheid=no 52856f02d4e9Smrgfi 52866f02d4e9Smrgrm -f core conftest.err conftest.$ac_objext \ 52876f02d4e9Smrg conftest$ac_exeext conftest.$ac_ext 528821212451Smrgfi 528921212451Smrg 52906f02d4e9Smrg 529121212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 529221212451Smrg 52936f02d4e9Smrg eval supported=\$$cacheid 52946f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 52956f02d4e9Smrg$as_echo "$supported" >&6; } 529621212451Smrg if test "$supported" = "yes" ; then 52976f02d4e9Smrg BASE_CFLAGS="$BASE_CFLAGS -Wformat" 529821212451Smrg found="yes" 529921212451Smrg fi 530021212451Smrg fi 530121212451Smrg 530221212451Smrg 530321212451Smrg 530421212451Smrg 530521212451Smrg 530621212451Smrg 530721212451Smrg 53086f02d4e9Smrg 53096f02d4e9Smrg 53106f02d4e9Smrg 53116f02d4e9Smrg 53126f02d4e9Smrg 53136f02d4e9Smrg 53146f02d4e9Smrg 53156f02d4e9Smrg 53166f02d4e9Smrg 53176f02d4e9Smrg 531821212451Smrgxorg_testset_save_CFLAGS="$CFLAGS" 531921212451Smrg 53206f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 532121212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 53226f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 53236f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 53246f02d4e9Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 53256f02d4e9Smrg $as_echo_n "(cached) " >&6 53266f02d4e9Smrgelse 53276f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 532821212451Smrg/* end confdefs.h. */ 532921212451Smrgint i; 533021212451Smrg_ACEOF 53316f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 53326f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=yes 533321212451Smrgelse 53346f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=no 533521212451Smrgfi 533621212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 53376f02d4e9Smrgfi 53386f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 53396f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 53406f02d4e9Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 534121212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 534221212451Smrgfi 534321212451Smrg 53446f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 53456f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 534621212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 534721212451Smrg fi 534821212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 53496f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 53506f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 53516f02d4e9Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 53526f02d4e9Smrg $as_echo_n "(cached) " >&6 53536f02d4e9Smrgelse 53546f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 535521212451Smrg/* end confdefs.h. */ 535621212451Smrgint i; 535721212451Smrg_ACEOF 53586f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 53596f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 536021212451Smrgelse 53616f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=no 536221212451Smrgfi 536321212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 53646f02d4e9Smrgfi 53656f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 53666f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 53676f02d4e9Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 536821212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 536921212451Smrgfi 537021212451Smrg 537121212451Smrgfound="no" 537221212451Smrg 537321212451Smrg if test $found = "no" ; then 53746f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 537521212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 537621212451Smrg fi 537721212451Smrg 53786f02d4e9Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 537921212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 538021212451Smrg fi 538121212451Smrg 53826f02d4e9Smrg CFLAGS="$CFLAGS -Wstrict-prototypes" 538321212451Smrg 53846f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 53856f02d4e9Smrg$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 53866f02d4e9Smrg cacheid=xorg_cv_cc_flag__Wstrict_prototypes 53876f02d4e9Smrg if eval \${$cacheid+:} false; then : 53886f02d4e9Smrg $as_echo_n "(cached) " >&6 53896f02d4e9Smrgelse 53906f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 539121212451Smrg/* end confdefs.h. */ 539221212451Smrgint i; 539321212451Smrgint 539421212451Smrgmain () 539521212451Smrg{ 539621212451Smrg 539721212451Smrg ; 539821212451Smrg return 0; 539921212451Smrg} 540021212451Smrg_ACEOF 54016f02d4e9Smrgif ac_fn_c_try_link "$LINENO"; then : 54026f02d4e9Smrg eval $cacheid=yes 540321212451Smrgelse 54046f02d4e9Smrg eval $cacheid=no 540521212451Smrgfi 54066f02d4e9Smrgrm -f core conftest.err conftest.$ac_objext \ 54076f02d4e9Smrg conftest$ac_exeext conftest.$ac_ext 54086f02d4e9Smrgfi 54096f02d4e9Smrg 541021212451Smrg 541121212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 541221212451Smrg 54136f02d4e9Smrg eval supported=\$$cacheid 54146f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 54156f02d4e9Smrg$as_echo "$supported" >&6; } 541621212451Smrg if test "$supported" = "yes" ; then 54176f02d4e9Smrg BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 541821212451Smrg found="yes" 541921212451Smrg fi 542021212451Smrg fi 542121212451Smrg 542221212451Smrg 542321212451Smrg 542421212451Smrg 542521212451Smrg 542621212451Smrg 542721212451Smrg 54286f02d4e9Smrg 54296f02d4e9Smrg 54306f02d4e9Smrg 54316f02d4e9Smrg 54326f02d4e9Smrg 54336f02d4e9Smrg 54346f02d4e9Smrg 54356f02d4e9Smrg 543621212451Smrgxorg_testset_save_CFLAGS="$CFLAGS" 543721212451Smrg 54386f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 543921212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 54406f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 54416f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 54426f02d4e9Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 54436f02d4e9Smrg $as_echo_n "(cached) " >&6 54446f02d4e9Smrgelse 54456f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 544621212451Smrg/* end confdefs.h. */ 544721212451Smrgint i; 544821212451Smrg_ACEOF 54496f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 54506f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=yes 545121212451Smrgelse 54526f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=no 545321212451Smrgfi 545421212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 54556f02d4e9Smrgfi 54566f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 54576f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 54586f02d4e9Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 545921212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 546021212451Smrgfi 546121212451Smrg 54626f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 54636f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 546421212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 546521212451Smrg fi 546621212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 54676f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 54686f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 54696f02d4e9Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 54706f02d4e9Smrg $as_echo_n "(cached) " >&6 54716f02d4e9Smrgelse 54726f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 547321212451Smrg/* end confdefs.h. */ 547421212451Smrgint i; 547521212451Smrg_ACEOF 54766f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 54776f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 547821212451Smrgelse 54796f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=no 548021212451Smrgfi 548121212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 54826f02d4e9Smrgfi 54836f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 54846f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 54856f02d4e9Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 548621212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 548721212451Smrgfi 548821212451Smrg 548921212451Smrgfound="no" 549021212451Smrg 549121212451Smrg if test $found = "no" ; then 54926f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 549321212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 549421212451Smrg fi 549521212451Smrg 54966f02d4e9Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 549721212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 549821212451Smrg fi 549921212451Smrg 55006f02d4e9Smrg CFLAGS="$CFLAGS -Wmissing-prototypes" 550121212451Smrg 55026f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 55036f02d4e9Smrg$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 55046f02d4e9Smrg cacheid=xorg_cv_cc_flag__Wmissing_prototypes 55056f02d4e9Smrg if eval \${$cacheid+:} false; then : 55066f02d4e9Smrg $as_echo_n "(cached) " >&6 55076f02d4e9Smrgelse 55086f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 550921212451Smrg/* end confdefs.h. */ 551021212451Smrgint i; 551121212451Smrgint 551221212451Smrgmain () 551321212451Smrg{ 551421212451Smrg 551521212451Smrg ; 551621212451Smrg return 0; 551721212451Smrg} 551821212451Smrg_ACEOF 55196f02d4e9Smrgif ac_fn_c_try_link "$LINENO"; then : 55206f02d4e9Smrg eval $cacheid=yes 552121212451Smrgelse 55226f02d4e9Smrg eval $cacheid=no 55236f02d4e9Smrgfi 55246f02d4e9Smrgrm -f core conftest.err conftest.$ac_objext \ 55256f02d4e9Smrg conftest$ac_exeext conftest.$ac_ext 552621212451Smrgfi 552721212451Smrg 55286f02d4e9Smrg 552921212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 553021212451Smrg 55316f02d4e9Smrg eval supported=\$$cacheid 55326f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 55336f02d4e9Smrg$as_echo "$supported" >&6; } 553421212451Smrg if test "$supported" = "yes" ; then 55356f02d4e9Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 553621212451Smrg found="yes" 553721212451Smrg fi 553821212451Smrg fi 553921212451Smrg 554021212451Smrg 554121212451Smrg 554221212451Smrg 554321212451Smrg 554421212451Smrg 554521212451Smrg 55466f02d4e9Smrg 55476f02d4e9Smrg 55486f02d4e9Smrg 55496f02d4e9Smrg 55506f02d4e9Smrg 55516f02d4e9Smrg 55526f02d4e9Smrg 55536f02d4e9Smrg 555421212451Smrgxorg_testset_save_CFLAGS="$CFLAGS" 555521212451Smrg 55566f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 555721212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 55586f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 55596f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 55606f02d4e9Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 55616f02d4e9Smrg $as_echo_n "(cached) " >&6 55626f02d4e9Smrgelse 55636f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 556421212451Smrg/* end confdefs.h. */ 556521212451Smrgint i; 556621212451Smrg_ACEOF 55676f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 55686f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=yes 556921212451Smrgelse 55706f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=no 557121212451Smrgfi 557221212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 55736f02d4e9Smrgfi 55746f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 55756f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 55766f02d4e9Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 557721212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 557821212451Smrgfi 557921212451Smrg 55806f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 55816f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 558221212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 558321212451Smrg fi 558421212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 55856f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 55866f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 55876f02d4e9Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 55886f02d4e9Smrg $as_echo_n "(cached) " >&6 55896f02d4e9Smrgelse 55906f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 559121212451Smrg/* end confdefs.h. */ 559221212451Smrgint i; 559321212451Smrg_ACEOF 55946f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 55956f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 559621212451Smrgelse 55976f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=no 559821212451Smrgfi 559921212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 56006f02d4e9Smrgfi 56016f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 56026f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 56036f02d4e9Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 560421212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 560521212451Smrgfi 560621212451Smrg 560721212451Smrgfound="no" 560821212451Smrg 560921212451Smrg if test $found = "no" ; then 56106f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 561121212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 561221212451Smrg fi 561321212451Smrg 56146f02d4e9Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 561521212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 561621212451Smrg fi 561721212451Smrg 56186f02d4e9Smrg CFLAGS="$CFLAGS -Wnested-externs" 561921212451Smrg 56206f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 56216f02d4e9Smrg$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 56226f02d4e9Smrg cacheid=xorg_cv_cc_flag__Wnested_externs 56236f02d4e9Smrg if eval \${$cacheid+:} false; then : 56246f02d4e9Smrg $as_echo_n "(cached) " >&6 56256f02d4e9Smrgelse 56266f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 562721212451Smrg/* end confdefs.h. */ 562821212451Smrgint i; 562921212451Smrgint 563021212451Smrgmain () 563121212451Smrg{ 563221212451Smrg 563321212451Smrg ; 563421212451Smrg return 0; 563521212451Smrg} 563621212451Smrg_ACEOF 56376f02d4e9Smrgif ac_fn_c_try_link "$LINENO"; then : 56386f02d4e9Smrg eval $cacheid=yes 563921212451Smrgelse 56406f02d4e9Smrg eval $cacheid=no 564121212451Smrgfi 56426f02d4e9Smrgrm -f core conftest.err conftest.$ac_objext \ 56436f02d4e9Smrg conftest$ac_exeext conftest.$ac_ext 56446f02d4e9Smrgfi 56456f02d4e9Smrg 564621212451Smrg 564721212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 564821212451Smrg 56496f02d4e9Smrg eval supported=\$$cacheid 56506f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 56516f02d4e9Smrg$as_echo "$supported" >&6; } 565221212451Smrg if test "$supported" = "yes" ; then 56536f02d4e9Smrg BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 565421212451Smrg found="yes" 565521212451Smrg fi 565621212451Smrg fi 565721212451Smrg 565821212451Smrg 565921212451Smrg 566021212451Smrg 566121212451Smrg 566221212451Smrg 566321212451Smrg 56646f02d4e9Smrg 56656f02d4e9Smrg 56666f02d4e9Smrg 56676f02d4e9Smrg 56686f02d4e9Smrg 56696f02d4e9Smrg 56706f02d4e9Smrg 56716f02d4e9Smrg 567221212451Smrgxorg_testset_save_CFLAGS="$CFLAGS" 567321212451Smrg 56746f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 567521212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 56766f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 56776f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 56786f02d4e9Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 56796f02d4e9Smrg $as_echo_n "(cached) " >&6 56806f02d4e9Smrgelse 56816f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 568221212451Smrg/* end confdefs.h. */ 568321212451Smrgint i; 568421212451Smrg_ACEOF 56856f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 56866f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=yes 568721212451Smrgelse 56886f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=no 568921212451Smrgfi 569021212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 56916f02d4e9Smrgfi 56926f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 56936f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 56946f02d4e9Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 569521212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 569621212451Smrgfi 569721212451Smrg 56986f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 56996f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 570021212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 570121212451Smrg fi 570221212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 57036f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 57046f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 57056f02d4e9Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 57066f02d4e9Smrg $as_echo_n "(cached) " >&6 57076f02d4e9Smrgelse 57086f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 570921212451Smrg/* end confdefs.h. */ 571021212451Smrgint i; 571121212451Smrg_ACEOF 57126f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 57136f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 571421212451Smrgelse 57156f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=no 571621212451Smrgfi 571721212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 57186f02d4e9Smrgfi 57196f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 57206f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 57216f02d4e9Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 572221212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 572321212451Smrgfi 572421212451Smrg 572521212451Smrgfound="no" 572621212451Smrg 572721212451Smrg if test $found = "no" ; then 57286f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 572921212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 573021212451Smrg fi 573121212451Smrg 57326f02d4e9Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 573321212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 573421212451Smrg fi 573521212451Smrg 57366f02d4e9Smrg CFLAGS="$CFLAGS -Wbad-function-cast" 573721212451Smrg 57386f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 57396f02d4e9Smrg$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 57406f02d4e9Smrg cacheid=xorg_cv_cc_flag__Wbad_function_cast 57416f02d4e9Smrg if eval \${$cacheid+:} false; then : 57426f02d4e9Smrg $as_echo_n "(cached) " >&6 57436f02d4e9Smrgelse 57446f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 574521212451Smrg/* end confdefs.h. */ 574621212451Smrgint i; 574721212451Smrgint 574821212451Smrgmain () 574921212451Smrg{ 575021212451Smrg 575121212451Smrg ; 575221212451Smrg return 0; 575321212451Smrg} 575421212451Smrg_ACEOF 57556f02d4e9Smrgif ac_fn_c_try_link "$LINENO"; then : 57566f02d4e9Smrg eval $cacheid=yes 575721212451Smrgelse 57586f02d4e9Smrg eval $cacheid=no 57596f02d4e9Smrgfi 57606f02d4e9Smrgrm -f core conftest.err conftest.$ac_objext \ 57616f02d4e9Smrg conftest$ac_exeext conftest.$ac_ext 576221212451Smrgfi 576321212451Smrg 57646f02d4e9Smrg 576521212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 576621212451Smrg 57676f02d4e9Smrg eval supported=\$$cacheid 57686f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 57696f02d4e9Smrg$as_echo "$supported" >&6; } 577021212451Smrg if test "$supported" = "yes" ; then 57716f02d4e9Smrg BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 577221212451Smrg found="yes" 577321212451Smrg fi 577421212451Smrg fi 577521212451Smrg 577621212451Smrg 577721212451Smrg 577821212451Smrg 577921212451Smrg 578021212451Smrg 578121212451Smrg 578221212451Smrg 578321212451Smrg 578421212451Smrg 578521212451Smrg 578621212451Smrg 578721212451Smrg 578821212451Smrg 578921212451Smrg 579021212451Smrgxorg_testset_save_CFLAGS="$CFLAGS" 579121212451Smrg 57926f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 579321212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 57946f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 57956f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 57966f02d4e9Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 57976f02d4e9Smrg $as_echo_n "(cached) " >&6 57986f02d4e9Smrgelse 57996f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 580021212451Smrg/* end confdefs.h. */ 580121212451Smrgint i; 580221212451Smrg_ACEOF 58036f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 58046f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=yes 580521212451Smrgelse 58066f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=no 580721212451Smrgfi 580821212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 58096f02d4e9Smrgfi 58106f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 58116f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 58126f02d4e9Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 581321212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 581421212451Smrgfi 581521212451Smrg 58166f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 58176f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 581821212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 581921212451Smrg fi 582021212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 58216f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 58226f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 58236f02d4e9Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 58246f02d4e9Smrg $as_echo_n "(cached) " >&6 58256f02d4e9Smrgelse 58266f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 582721212451Smrg/* end confdefs.h. */ 582821212451Smrgint i; 582921212451Smrg_ACEOF 58306f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 58316f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 583221212451Smrgelse 58336f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=no 583421212451Smrgfi 583521212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 58366f02d4e9Smrgfi 58376f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 58386f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 58396f02d4e9Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 584021212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 584121212451Smrgfi 584221212451Smrg 584321212451Smrgfound="no" 584421212451Smrg 584521212451Smrg if test $found = "no" ; then 58466f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 584721212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 584821212451Smrg fi 584921212451Smrg 58506f02d4e9Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 585121212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 585221212451Smrg fi 585321212451Smrg 585421212451Smrg CFLAGS="$CFLAGS -Wold-style-definition" 585521212451Smrg 58566f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 58576f02d4e9Smrg$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 58586f02d4e9Smrg cacheid=xorg_cv_cc_flag__Wold_style_definition 58596f02d4e9Smrg if eval \${$cacheid+:} false; then : 58606f02d4e9Smrg $as_echo_n "(cached) " >&6 58616f02d4e9Smrgelse 58626f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 586321212451Smrg/* end confdefs.h. */ 586421212451Smrgint i; 586521212451Smrgint 586621212451Smrgmain () 586721212451Smrg{ 586821212451Smrg 586921212451Smrg ; 587021212451Smrg return 0; 587121212451Smrg} 587221212451Smrg_ACEOF 58736f02d4e9Smrgif ac_fn_c_try_link "$LINENO"; then : 58746f02d4e9Smrg eval $cacheid=yes 587521212451Smrgelse 58766f02d4e9Smrg eval $cacheid=no 587721212451Smrgfi 58786f02d4e9Smrgrm -f core conftest.err conftest.$ac_objext \ 58796f02d4e9Smrg conftest$ac_exeext conftest.$ac_ext 58806f02d4e9Smrgfi 58816f02d4e9Smrg 588221212451Smrg 588321212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 588421212451Smrg 58856f02d4e9Smrg eval supported=\$$cacheid 58866f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 58876f02d4e9Smrg$as_echo "$supported" >&6; } 588821212451Smrg if test "$supported" = "yes" ; then 588921212451Smrg BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 589021212451Smrg found="yes" 589121212451Smrg fi 589221212451Smrg fi 589321212451Smrg 58947253c0c7Smrg if test $found = "no" ; then 58957253c0c7Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 58967253c0c7Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 58977253c0c7Smrg fi 58987253c0c7Smrg 58997253c0c7Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 59007253c0c7Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 59017253c0c7Smrg fi 59027253c0c7Smrg 59037253c0c7Smrg CFLAGS="$CFLAGS -fd" 59047253c0c7Smrg 59057253c0c7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 59067253c0c7Smrg$as_echo_n "checking if $CC supports -fd... " >&6; } 59077253c0c7Smrg cacheid=xorg_cv_cc_flag__fd 59087253c0c7Smrg if eval \${$cacheid+:} false; then : 59097253c0c7Smrg $as_echo_n "(cached) " >&6 59107253c0c7Smrgelse 59117253c0c7Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 59127253c0c7Smrg/* end confdefs.h. */ 59137253c0c7Smrgint i; 59147253c0c7Smrgint 59157253c0c7Smrgmain () 59167253c0c7Smrg{ 59177253c0c7Smrg 59187253c0c7Smrg ; 59197253c0c7Smrg return 0; 59207253c0c7Smrg} 59217253c0c7Smrg_ACEOF 59227253c0c7Smrgif ac_fn_c_try_link "$LINENO"; then : 59237253c0c7Smrg eval $cacheid=yes 59247253c0c7Smrgelse 59257253c0c7Smrg eval $cacheid=no 59267253c0c7Smrgfi 59277253c0c7Smrgrm -f core conftest.err conftest.$ac_objext \ 59287253c0c7Smrg conftest$ac_exeext conftest.$ac_ext 59297253c0c7Smrgfi 59307253c0c7Smrg 59317253c0c7Smrg 59327253c0c7Smrg CFLAGS="$xorg_testset_save_CFLAGS" 59337253c0c7Smrg 59347253c0c7Smrg eval supported=\$$cacheid 59357253c0c7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 59367253c0c7Smrg$as_echo "$supported" >&6; } 59377253c0c7Smrg if test "$supported" = "yes" ; then 59387253c0c7Smrg BASE_CFLAGS="$BASE_CFLAGS -fd" 59397253c0c7Smrg found="yes" 59407253c0c7Smrg fi 59417253c0c7Smrg fi 59427253c0c7Smrg 594321212451Smrg 594421212451Smrg 594521212451Smrg 594621212451Smrg 594721212451Smrg 594821212451Smrg 59496f02d4e9Smrg 59506f02d4e9Smrg 59516f02d4e9Smrg 59526f02d4e9Smrg 59536f02d4e9Smrg 59546f02d4e9Smrg 59556f02d4e9Smrg 59566f02d4e9Smrg 595721212451Smrgxorg_testset_save_CFLAGS="$CFLAGS" 595821212451Smrg 59596f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 596021212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 59616f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 59626f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 59636f02d4e9Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 59646f02d4e9Smrg $as_echo_n "(cached) " >&6 59656f02d4e9Smrgelse 59666f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 596721212451Smrg/* end confdefs.h. */ 596821212451Smrgint i; 596921212451Smrg_ACEOF 59706f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 59716f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=yes 597221212451Smrgelse 59736f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=no 597421212451Smrgfi 597521212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 59766f02d4e9Smrgfi 59776f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 59786f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 59796f02d4e9Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 598021212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 598121212451Smrgfi 598221212451Smrg 59836f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 59846f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 598521212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 598621212451Smrg fi 598721212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 59886f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 59896f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 59906f02d4e9Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 59916f02d4e9Smrg $as_echo_n "(cached) " >&6 59926f02d4e9Smrgelse 59936f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 599421212451Smrg/* end confdefs.h. */ 599521212451Smrgint i; 599621212451Smrg_ACEOF 59976f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 59986f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 599921212451Smrgelse 60006f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=no 600121212451Smrgfi 600221212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 60036f02d4e9Smrgfi 60046f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 60056f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 60066f02d4e9Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 600721212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 600821212451Smrgfi 600921212451Smrg 601021212451Smrgfound="no" 601121212451Smrg 601221212451Smrg if test $found = "no" ; then 60136f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 601421212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 601521212451Smrg fi 601621212451Smrg 60176f02d4e9Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 601821212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 601921212451Smrg fi 602021212451Smrg 602121212451Smrg CFLAGS="$CFLAGS -Wdeclaration-after-statement" 602221212451Smrg 60236f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 60246f02d4e9Smrg$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 60256f02d4e9Smrg cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 60266f02d4e9Smrg if eval \${$cacheid+:} false; then : 60276f02d4e9Smrg $as_echo_n "(cached) " >&6 60286f02d4e9Smrgelse 60296f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 603021212451Smrg/* end confdefs.h. */ 603121212451Smrgint i; 603221212451Smrgint 603321212451Smrgmain () 603421212451Smrg{ 603521212451Smrg 603621212451Smrg ; 603721212451Smrg return 0; 603821212451Smrg} 603921212451Smrg_ACEOF 60406f02d4e9Smrgif ac_fn_c_try_link "$LINENO"; then : 60416f02d4e9Smrg eval $cacheid=yes 604221212451Smrgelse 60436f02d4e9Smrg eval $cacheid=no 60446f02d4e9Smrgfi 60456f02d4e9Smrgrm -f core conftest.err conftest.$ac_objext \ 60466f02d4e9Smrg conftest$ac_exeext conftest.$ac_ext 604721212451Smrgfi 604821212451Smrg 60496f02d4e9Smrg 605021212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 605121212451Smrg 60526f02d4e9Smrg eval supported=\$$cacheid 60536f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 60546f02d4e9Smrg$as_echo "$supported" >&6; } 605521212451Smrg if test "$supported" = "yes" ; then 605621212451Smrg BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 605721212451Smrg found="yes" 605821212451Smrg fi 605921212451Smrg fi 606021212451Smrg 606121212451Smrg 606221212451Smrg 60636f02d4e9Smrg 60646f02d4e9Smrg 606521212451Smrg# This chunk adds additional warnings that could catch undesired effects. 606621212451Smrg 606721212451Smrg 606821212451Smrg 606921212451Smrg 607021212451Smrg 60716f02d4e9Smrg 60726f02d4e9Smrg 60736f02d4e9Smrg 60746f02d4e9Smrg 60756f02d4e9Smrg 60766f02d4e9Smrg 60776f02d4e9Smrg 60786f02d4e9Smrg 607921212451Smrgxorg_testset_save_CFLAGS="$CFLAGS" 608021212451Smrg 60816f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 608221212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 60836f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 60846f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 60856f02d4e9Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 60866f02d4e9Smrg $as_echo_n "(cached) " >&6 60876f02d4e9Smrgelse 60886f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 608921212451Smrg/* end confdefs.h. */ 609021212451Smrgint i; 609121212451Smrg_ACEOF 60926f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 60936f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=yes 609421212451Smrgelse 60956f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=no 609621212451Smrgfi 609721212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 60986f02d4e9Smrgfi 60996f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 61006f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 61016f02d4e9Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 610221212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 610321212451Smrgfi 610421212451Smrg 61056f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 61066f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 610721212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 610821212451Smrg fi 610921212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 61106f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 61116f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 61126f02d4e9Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 61136f02d4e9Smrg $as_echo_n "(cached) " >&6 61146f02d4e9Smrgelse 61156f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 611621212451Smrg/* end confdefs.h. */ 611721212451Smrgint i; 611821212451Smrg_ACEOF 61196f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 61206f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 612121212451Smrgelse 61226f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=no 612321212451Smrgfi 612421212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 61256f02d4e9Smrgfi 61266f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 61276f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 61286f02d4e9Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 612921212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 613021212451Smrgfi 613121212451Smrg 613221212451Smrgfound="no" 613321212451Smrg 613421212451Smrg if test $found = "no" ; then 61356f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 613621212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 613721212451Smrg fi 613821212451Smrg 61396f02d4e9Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 614021212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 614121212451Smrg fi 614221212451Smrg 614321212451Smrg CFLAGS="$CFLAGS -Wunused" 614421212451Smrg 61456f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 61466f02d4e9Smrg$as_echo_n "checking if $CC supports -Wunused... " >&6; } 61476f02d4e9Smrg cacheid=xorg_cv_cc_flag__Wunused 61486f02d4e9Smrg if eval \${$cacheid+:} false; then : 61496f02d4e9Smrg $as_echo_n "(cached) " >&6 61506f02d4e9Smrgelse 61516f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 615221212451Smrg/* end confdefs.h. */ 615321212451Smrgint i; 615421212451Smrgint 615521212451Smrgmain () 615621212451Smrg{ 615721212451Smrg 615821212451Smrg ; 615921212451Smrg return 0; 616021212451Smrg} 616121212451Smrg_ACEOF 61626f02d4e9Smrgif ac_fn_c_try_link "$LINENO"; then : 61636f02d4e9Smrg eval $cacheid=yes 616421212451Smrgelse 61656f02d4e9Smrg eval $cacheid=no 616621212451Smrgfi 61676f02d4e9Smrgrm -f core conftest.err conftest.$ac_objext \ 61686f02d4e9Smrg conftest$ac_exeext conftest.$ac_ext 61696f02d4e9Smrgfi 61706f02d4e9Smrg 617121212451Smrg 617221212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 617321212451Smrg 61746f02d4e9Smrg eval supported=\$$cacheid 61756f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 61766f02d4e9Smrg$as_echo "$supported" >&6; } 617721212451Smrg if test "$supported" = "yes" ; then 617821212451Smrg BASE_CFLAGS="$BASE_CFLAGS -Wunused" 617921212451Smrg found="yes" 618021212451Smrg fi 618121212451Smrg fi 618221212451Smrg 618321212451Smrg 618421212451Smrg 618521212451Smrg 618621212451Smrg 618721212451Smrg 618821212451Smrg 61896f02d4e9Smrg 61906f02d4e9Smrg 61916f02d4e9Smrg 61926f02d4e9Smrg 61936f02d4e9Smrg 61946f02d4e9Smrg 61956f02d4e9Smrg 61966f02d4e9Smrg 619721212451Smrgxorg_testset_save_CFLAGS="$CFLAGS" 619821212451Smrg 61996f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 620021212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 62016f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 62026f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 62036f02d4e9Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 62046f02d4e9Smrg $as_echo_n "(cached) " >&6 62056f02d4e9Smrgelse 62066f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 620721212451Smrg/* end confdefs.h. */ 620821212451Smrgint i; 620921212451Smrg_ACEOF 62106f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 62116f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=yes 621221212451Smrgelse 62136f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=no 621421212451Smrgfi 621521212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 62166f02d4e9Smrgfi 62176f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 62186f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 62196f02d4e9Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 622021212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 622121212451Smrgfi 622221212451Smrg 62236f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 62246f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 622521212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 622621212451Smrg fi 622721212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 62286f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 62296f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 62306f02d4e9Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 62316f02d4e9Smrg $as_echo_n "(cached) " >&6 62326f02d4e9Smrgelse 62336f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 623421212451Smrg/* end confdefs.h. */ 623521212451Smrgint i; 623621212451Smrg_ACEOF 62376f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 62386f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 623921212451Smrgelse 62406f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=no 624121212451Smrgfi 624221212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 62436f02d4e9Smrgfi 62446f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 62456f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 62466f02d4e9Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 624721212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 624821212451Smrgfi 624921212451Smrg 625021212451Smrgfound="no" 625121212451Smrg 625221212451Smrg if test $found = "no" ; then 62536f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 625421212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 625521212451Smrg fi 625621212451Smrg 62576f02d4e9Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 625821212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 625921212451Smrg fi 626021212451Smrg 626121212451Smrg CFLAGS="$CFLAGS -Wuninitialized" 626221212451Smrg 62636f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 62646f02d4e9Smrg$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 62656f02d4e9Smrg cacheid=xorg_cv_cc_flag__Wuninitialized 62666f02d4e9Smrg if eval \${$cacheid+:} false; then : 62676f02d4e9Smrg $as_echo_n "(cached) " >&6 62686f02d4e9Smrgelse 62696f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 627021212451Smrg/* end confdefs.h. */ 627121212451Smrgint i; 627221212451Smrgint 627321212451Smrgmain () 627421212451Smrg{ 627521212451Smrg 627621212451Smrg ; 627721212451Smrg return 0; 627821212451Smrg} 627921212451Smrg_ACEOF 62806f02d4e9Smrgif ac_fn_c_try_link "$LINENO"; then : 62816f02d4e9Smrg eval $cacheid=yes 628221212451Smrgelse 62836f02d4e9Smrg eval $cacheid=no 62846f02d4e9Smrgfi 62856f02d4e9Smrgrm -f core conftest.err conftest.$ac_objext \ 62866f02d4e9Smrg conftest$ac_exeext conftest.$ac_ext 628721212451Smrgfi 628821212451Smrg 62896f02d4e9Smrg 629021212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 629121212451Smrg 62926f02d4e9Smrg eval supported=\$$cacheid 62936f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 62946f02d4e9Smrg$as_echo "$supported" >&6; } 629521212451Smrg if test "$supported" = "yes" ; then 629621212451Smrg BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 629721212451Smrg found="yes" 629821212451Smrg fi 629921212451Smrg fi 630021212451Smrg 630121212451Smrg 630221212451Smrg 630321212451Smrg 630421212451Smrg 630521212451Smrg 630621212451Smrg 63076f02d4e9Smrg 63086f02d4e9Smrg 63096f02d4e9Smrg 63106f02d4e9Smrg 63116f02d4e9Smrg 63126f02d4e9Smrg 63136f02d4e9Smrg 63146f02d4e9Smrg 631521212451Smrgxorg_testset_save_CFLAGS="$CFLAGS" 631621212451Smrg 63176f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 631821212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 63196f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 63206f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 63216f02d4e9Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 63226f02d4e9Smrg $as_echo_n "(cached) " >&6 63236f02d4e9Smrgelse 63246f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 632521212451Smrg/* end confdefs.h. */ 632621212451Smrgint i; 632721212451Smrg_ACEOF 63286f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 63296f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=yes 633021212451Smrgelse 63316f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=no 633221212451Smrgfi 633321212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 63346f02d4e9Smrgfi 63356f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 63366f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 63376f02d4e9Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 633821212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 633921212451Smrgfi 634021212451Smrg 63416f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 63426f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 634321212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 634421212451Smrg fi 634521212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 63466f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 63476f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 63486f02d4e9Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 63496f02d4e9Smrg $as_echo_n "(cached) " >&6 63506f02d4e9Smrgelse 63516f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 635221212451Smrg/* end confdefs.h. */ 635321212451Smrgint i; 635421212451Smrg_ACEOF 63556f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 63566f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 635721212451Smrgelse 63586f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=no 635921212451Smrgfi 636021212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 63616f02d4e9Smrgfi 63626f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 63636f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 63646f02d4e9Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 636521212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 636621212451Smrgfi 636721212451Smrg 636821212451Smrgfound="no" 636921212451Smrg 637021212451Smrg if test $found = "no" ; then 63716f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 637221212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 637321212451Smrg fi 637421212451Smrg 63756f02d4e9Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 637621212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 637721212451Smrg fi 637821212451Smrg 637921212451Smrg CFLAGS="$CFLAGS -Wshadow" 638021212451Smrg 63816f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 63826f02d4e9Smrg$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 63836f02d4e9Smrg cacheid=xorg_cv_cc_flag__Wshadow 63846f02d4e9Smrg if eval \${$cacheid+:} false; then : 63856f02d4e9Smrg $as_echo_n "(cached) " >&6 63866f02d4e9Smrgelse 63876f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 638821212451Smrg/* end confdefs.h. */ 638921212451Smrgint i; 639021212451Smrgint 639121212451Smrgmain () 639221212451Smrg{ 639321212451Smrg 639421212451Smrg ; 639521212451Smrg return 0; 639621212451Smrg} 639721212451Smrg_ACEOF 63986f02d4e9Smrgif ac_fn_c_try_link "$LINENO"; then : 63996f02d4e9Smrg eval $cacheid=yes 640021212451Smrgelse 64016f02d4e9Smrg eval $cacheid=no 640221212451Smrgfi 64036f02d4e9Smrgrm -f core conftest.err conftest.$ac_objext \ 64046f02d4e9Smrg conftest$ac_exeext conftest.$ac_ext 64056f02d4e9Smrgfi 64066f02d4e9Smrg 640721212451Smrg 640821212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 640921212451Smrg 64106f02d4e9Smrg eval supported=\$$cacheid 64116f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 64126f02d4e9Smrg$as_echo "$supported" >&6; } 641321212451Smrg if test "$supported" = "yes" ; then 641421212451Smrg BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 641521212451Smrg found="yes" 641621212451Smrg fi 641721212451Smrg fi 641821212451Smrg 641921212451Smrg 642021212451Smrg 642121212451Smrg 642221212451Smrg 642321212451Smrg 642421212451Smrg 64256f02d4e9Smrg 64266f02d4e9Smrg 64276f02d4e9Smrg 64286f02d4e9Smrg 64296f02d4e9Smrg 64306f02d4e9Smrg 64316f02d4e9Smrg 64326f02d4e9Smrg 643321212451Smrgxorg_testset_save_CFLAGS="$CFLAGS" 643421212451Smrg 64356f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 643621212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 64376f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 64386f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 64396f02d4e9Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 64406f02d4e9Smrg $as_echo_n "(cached) " >&6 64416f02d4e9Smrgelse 64426f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 644321212451Smrg/* end confdefs.h. */ 644421212451Smrgint i; 644521212451Smrg_ACEOF 64466f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 64476f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=yes 644821212451Smrgelse 64496f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=no 645021212451Smrgfi 645121212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 64526f02d4e9Smrgfi 64536f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 64546f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 64556f02d4e9Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 645621212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 645721212451Smrgfi 645821212451Smrg 64596f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 64606f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 646121212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 646221212451Smrg fi 646321212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 64646f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 64656f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 64666f02d4e9Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 64676f02d4e9Smrg $as_echo_n "(cached) " >&6 64686f02d4e9Smrgelse 64696f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 647021212451Smrg/* end confdefs.h. */ 647121212451Smrgint i; 647221212451Smrg_ACEOF 64736f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 64746f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 647521212451Smrgelse 64766f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=no 647721212451Smrgfi 647821212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 64796f02d4e9Smrgfi 64806f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 64816f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 64826f02d4e9Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 648321212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 648421212451Smrgfi 648521212451Smrg 648621212451Smrgfound="no" 648721212451Smrg 648821212451Smrg if test $found = "no" ; then 64896f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 649021212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 649121212451Smrg fi 649221212451Smrg 64936f02d4e9Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 649421212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 649521212451Smrg fi 649621212451Smrg 64977253c0c7Smrg CFLAGS="$CFLAGS -Wmissing-noreturn" 649821212451Smrg 64997253c0c7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 65007253c0c7Smrg$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 65017253c0c7Smrg cacheid=xorg_cv_cc_flag__Wmissing_noreturn 65026f02d4e9Smrg if eval \${$cacheid+:} false; then : 65036f02d4e9Smrg $as_echo_n "(cached) " >&6 65046f02d4e9Smrgelse 65056f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 650621212451Smrg/* end confdefs.h. */ 650721212451Smrgint i; 650821212451Smrgint 65096f02d4e9Smrgmain () 65106f02d4e9Smrg{ 651121212451Smrg 65126f02d4e9Smrg ; 65136f02d4e9Smrg return 0; 65146f02d4e9Smrg} 65156f02d4e9Smrg_ACEOF 65166f02d4e9Smrgif ac_fn_c_try_link "$LINENO"; then : 65176f02d4e9Smrg eval $cacheid=yes 65186f02d4e9Smrgelse 65196f02d4e9Smrg eval $cacheid=no 65206f02d4e9Smrgfi 65216f02d4e9Smrgrm -f core conftest.err conftest.$ac_objext \ 65226f02d4e9Smrg conftest$ac_exeext conftest.$ac_ext 652321212451Smrgfi 652421212451Smrg 65256f02d4e9Smrg 652621212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 652721212451Smrg 65286f02d4e9Smrg eval supported=\$$cacheid 65296f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 65306f02d4e9Smrg$as_echo "$supported" >&6; } 653121212451Smrg if test "$supported" = "yes" ; then 65327253c0c7Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 653321212451Smrg found="yes" 653421212451Smrg fi 653521212451Smrg fi 653621212451Smrg 653721212451Smrg 653821212451Smrg 653921212451Smrg 654021212451Smrg 654121212451Smrg 654221212451Smrg 65436f02d4e9Smrg 65446f02d4e9Smrg 65456f02d4e9Smrg 65466f02d4e9Smrg 65476f02d4e9Smrg 65486f02d4e9Smrg 65496f02d4e9Smrg 65506f02d4e9Smrg 655121212451Smrgxorg_testset_save_CFLAGS="$CFLAGS" 655221212451Smrg 65536f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 655421212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 65556f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 65566f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 65576f02d4e9Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 65586f02d4e9Smrg $as_echo_n "(cached) " >&6 65596f02d4e9Smrgelse 65606f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 656121212451Smrg/* end confdefs.h. */ 656221212451Smrgint i; 656321212451Smrg_ACEOF 65646f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 65656f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=yes 656621212451Smrgelse 65676f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=no 656821212451Smrgfi 656921212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 65706f02d4e9Smrgfi 65716f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 65726f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 65736f02d4e9Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 657421212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 657521212451Smrgfi 657621212451Smrg 65776f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 65786f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 657921212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 658021212451Smrg fi 658121212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 65826f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 65836f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 65846f02d4e9Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 65856f02d4e9Smrg $as_echo_n "(cached) " >&6 65866f02d4e9Smrgelse 65876f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 658821212451Smrg/* end confdefs.h. */ 658921212451Smrgint i; 659021212451Smrg_ACEOF 65916f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 65926f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 659321212451Smrgelse 65946f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=no 659521212451Smrgfi 659621212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 65976f02d4e9Smrgfi 65986f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 65996f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 66006f02d4e9Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 660121212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 660221212451Smrgfi 660321212451Smrg 660421212451Smrgfound="no" 660521212451Smrg 660621212451Smrg if test $found = "no" ; then 66076f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 660821212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 660921212451Smrg fi 661021212451Smrg 66116f02d4e9Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 661221212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 661321212451Smrg fi 661421212451Smrg 66157253c0c7Smrg CFLAGS="$CFLAGS -Wmissing-format-attribute" 661621212451Smrg 66177253c0c7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 66187253c0c7Smrg$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 66197253c0c7Smrg cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 66206f02d4e9Smrg if eval \${$cacheid+:} false; then : 66216f02d4e9Smrg $as_echo_n "(cached) " >&6 66226f02d4e9Smrgelse 66236f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 662421212451Smrg/* end confdefs.h. */ 662521212451Smrgint i; 662621212451Smrgint 662721212451Smrgmain () 662821212451Smrg{ 662921212451Smrg 663021212451Smrg ; 663121212451Smrg return 0; 663221212451Smrg} 663321212451Smrg_ACEOF 66346f02d4e9Smrgif ac_fn_c_try_link "$LINENO"; then : 66356f02d4e9Smrg eval $cacheid=yes 663621212451Smrgelse 66376f02d4e9Smrg eval $cacheid=no 663821212451Smrgfi 66396f02d4e9Smrgrm -f core conftest.err conftest.$ac_objext \ 66406f02d4e9Smrg conftest$ac_exeext conftest.$ac_ext 66416f02d4e9Smrgfi 66426f02d4e9Smrg 664321212451Smrg 664421212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 664521212451Smrg 66466f02d4e9Smrg eval supported=\$$cacheid 66476f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 66486f02d4e9Smrg$as_echo "$supported" >&6; } 664921212451Smrg if test "$supported" = "yes" ; then 66507253c0c7Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 665121212451Smrg found="yes" 665221212451Smrg fi 665321212451Smrg fi 665421212451Smrg 665521212451Smrg 665621212451Smrg 665721212451Smrg 665821212451Smrg 665921212451Smrg 666021212451Smrg 66616f02d4e9Smrg 66626f02d4e9Smrg 66636f02d4e9Smrg 66646f02d4e9Smrg 66656f02d4e9Smrg 66666f02d4e9Smrg 66676f02d4e9Smrg 66686f02d4e9Smrg 666921212451Smrgxorg_testset_save_CFLAGS="$CFLAGS" 667021212451Smrg 66716f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 667221212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 66736f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 66746f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 66756f02d4e9Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 66766f02d4e9Smrg $as_echo_n "(cached) " >&6 66776f02d4e9Smrgelse 66786f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 667921212451Smrg/* end confdefs.h. */ 668021212451Smrgint i; 668121212451Smrg_ACEOF 66826f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 66836f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=yes 668421212451Smrgelse 66856f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=no 668621212451Smrgfi 668721212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 66886f02d4e9Smrgfi 66896f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 66906f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 66916f02d4e9Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 669221212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 669321212451Smrgfi 669421212451Smrg 66956f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 66966f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 669721212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 669821212451Smrg fi 669921212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 67006f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 67016f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 67026f02d4e9Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 67036f02d4e9Smrg $as_echo_n "(cached) " >&6 67046f02d4e9Smrgelse 67056f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 670621212451Smrg/* end confdefs.h. */ 670721212451Smrgint i; 670821212451Smrg_ACEOF 67096f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 67106f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 671121212451Smrgelse 67126f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=no 671321212451Smrgfi 671421212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 67156f02d4e9Smrgfi 67166f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 67176f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 67186f02d4e9Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 671921212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 672021212451Smrgfi 672121212451Smrg 672221212451Smrgfound="no" 672321212451Smrg 672421212451Smrg if test $found = "no" ; then 67256f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 672621212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 672721212451Smrg fi 672821212451Smrg 67296f02d4e9Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 673021212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 673121212451Smrg fi 673221212451Smrg 67337253c0c7Smrg CFLAGS="$CFLAGS -Wredundant-decls" 673421212451Smrg 67357253c0c7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 67367253c0c7Smrg$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 67377253c0c7Smrg cacheid=xorg_cv_cc_flag__Wredundant_decls 67386f02d4e9Smrg if eval \${$cacheid+:} false; then : 67396f02d4e9Smrg $as_echo_n "(cached) " >&6 67406f02d4e9Smrgelse 67416f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 674221212451Smrg/* end confdefs.h. */ 674321212451Smrgint i; 674421212451Smrgint 674521212451Smrgmain () 674621212451Smrg{ 674721212451Smrg 674821212451Smrg ; 674921212451Smrg return 0; 675021212451Smrg} 675121212451Smrg_ACEOF 67526f02d4e9Smrgif ac_fn_c_try_link "$LINENO"; then : 67536f02d4e9Smrg eval $cacheid=yes 675421212451Smrgelse 67556f02d4e9Smrg eval $cacheid=no 67566f02d4e9Smrgfi 67576f02d4e9Smrgrm -f core conftest.err conftest.$ac_objext \ 67586f02d4e9Smrg conftest$ac_exeext conftest.$ac_ext 675921212451Smrgfi 676021212451Smrg 67616f02d4e9Smrg 676221212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 676321212451Smrg 67646f02d4e9Smrg eval supported=\$$cacheid 67656f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 67666f02d4e9Smrg$as_echo "$supported" >&6; } 676721212451Smrg if test "$supported" = "yes" ; then 67687253c0c7Smrg BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 676921212451Smrg found="yes" 677021212451Smrg fi 677121212451Smrg fi 677221212451Smrg 677321212451Smrg 677421212451Smrg 677521212451Smrg 677621212451Smrg 677721212451Smrg 677821212451Smrg 67796f02d4e9Smrg 67806f02d4e9Smrg 67816f02d4e9Smrg 67826f02d4e9Smrg 67836f02d4e9Smrg 67846f02d4e9Smrg 67856f02d4e9Smrg 67866f02d4e9Smrg 678721212451Smrgxorg_testset_save_CFLAGS="$CFLAGS" 678821212451Smrg 67896f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 679021212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 67916f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 67926f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 67936f02d4e9Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 67946f02d4e9Smrg $as_echo_n "(cached) " >&6 67956f02d4e9Smrgelse 67966f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 679721212451Smrg/* end confdefs.h. */ 679821212451Smrgint i; 679921212451Smrg_ACEOF 68006f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 68016f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=yes 680221212451Smrgelse 68036f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=no 680421212451Smrgfi 680521212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 68066f02d4e9Smrgfi 68076f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 68086f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 68096f02d4e9Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 681021212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 681121212451Smrgfi 681221212451Smrg 68136f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 68146f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 681521212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 681621212451Smrg fi 681721212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 68186f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 68196f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 68206f02d4e9Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 68216f02d4e9Smrg $as_echo_n "(cached) " >&6 68226f02d4e9Smrgelse 68236f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 682421212451Smrg/* end confdefs.h. */ 682521212451Smrgint i; 682621212451Smrg_ACEOF 68276f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 68286f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 682921212451Smrgelse 68306f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=no 683121212451Smrgfi 683221212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 68336f02d4e9Smrgfi 68346f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 68356f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 68366f02d4e9Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 683721212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 683821212451Smrgfi 683921212451Smrg 684021212451Smrgfound="no" 684121212451Smrg 684221212451Smrg if test $found = "no" ; then 68436f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 684421212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 684521212451Smrg fi 684621212451Smrg 68476f02d4e9Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 684821212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 684921212451Smrg fi 685021212451Smrg 68517253c0c7Smrg CFLAGS="$CFLAGS -Wlogical-op" 685221212451Smrg 68537253c0c7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 68547253c0c7Smrg$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 68557253c0c7Smrg cacheid=xorg_cv_cc_flag__Wlogical_op 68566f02d4e9Smrg if eval \${$cacheid+:} false; then : 68576f02d4e9Smrg $as_echo_n "(cached) " >&6 68586f02d4e9Smrgelse 68596f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 686021212451Smrg/* end confdefs.h. */ 686121212451Smrgint i; 686221212451Smrgint 686321212451Smrgmain () 686421212451Smrg{ 686521212451Smrg 686621212451Smrg ; 686721212451Smrg return 0; 686821212451Smrg} 686921212451Smrg_ACEOF 68706f02d4e9Smrgif ac_fn_c_try_link "$LINENO"; then : 68716f02d4e9Smrg eval $cacheid=yes 687221212451Smrgelse 68736f02d4e9Smrg eval $cacheid=no 687421212451Smrgfi 68756f02d4e9Smrgrm -f core conftest.err conftest.$ac_objext \ 68766f02d4e9Smrg conftest$ac_exeext conftest.$ac_ext 68776f02d4e9Smrgfi 68786f02d4e9Smrg 687921212451Smrg 688021212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 688121212451Smrg 68826f02d4e9Smrg eval supported=\$$cacheid 68836f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 68846f02d4e9Smrg$as_echo "$supported" >&6; } 688521212451Smrg if test "$supported" = "yes" ; then 68867253c0c7Smrg BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 688721212451Smrg found="yes" 688821212451Smrg fi 688921212451Smrg fi 689021212451Smrg 689121212451Smrg 689221212451Smrg 689321212451Smrg# These are currently disabled because they are noisy. They will be enabled 689421212451Smrg# in the future once the codebase is sufficiently modernized to silence 689521212451Smrg# them. For now, I don't want them to drown out the other warnings. 68966f02d4e9Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 68976f02d4e9Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 68987253c0c7Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 689921212451Smrg 690021212451Smrg# Turn some warnings into errors, so we don't accidently get successful builds 690121212451Smrg# when there are problems that should be fixed. 690221212451Smrg 690321212451Smrgif test "x$SELECTIVE_WERROR" = "xyes" ; then 690421212451Smrg 690521212451Smrg 690621212451Smrg 690721212451Smrg 690821212451Smrg 69096f02d4e9Smrg 69106f02d4e9Smrg 69116f02d4e9Smrg 69126f02d4e9Smrg 69136f02d4e9Smrg 69146f02d4e9Smrg 69156f02d4e9Smrg 69166f02d4e9Smrg 691721212451Smrgxorg_testset_save_CFLAGS="$CFLAGS" 691821212451Smrg 69196f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 692021212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 69216f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 69226f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 69236f02d4e9Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 69246f02d4e9Smrg $as_echo_n "(cached) " >&6 69256f02d4e9Smrgelse 69266f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 692721212451Smrg/* end confdefs.h. */ 692821212451Smrgint i; 692921212451Smrg_ACEOF 69306f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 69316f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=yes 693221212451Smrgelse 69336f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=no 693421212451Smrgfi 693521212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 69366f02d4e9Smrgfi 69376f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 69386f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 69396f02d4e9Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 694021212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 694121212451Smrgfi 694221212451Smrg 69436f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 69446f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 694521212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 694621212451Smrg fi 694721212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 69486f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 69496f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 69506f02d4e9Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 69516f02d4e9Smrg $as_echo_n "(cached) " >&6 69526f02d4e9Smrgelse 69536f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 695421212451Smrg/* end confdefs.h. */ 695521212451Smrgint i; 695621212451Smrg_ACEOF 69576f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 69586f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 695921212451Smrgelse 69606f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=no 696121212451Smrgfi 696221212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 69636f02d4e9Smrgfi 69646f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 69656f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 69666f02d4e9Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 696721212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 696821212451Smrgfi 696921212451Smrg 697021212451Smrgfound="no" 697121212451Smrg 697221212451Smrg if test $found = "no" ; then 69736f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 697421212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 697521212451Smrg fi 697621212451Smrg 69776f02d4e9Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 697821212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 697921212451Smrg fi 698021212451Smrg 698121212451Smrg CFLAGS="$CFLAGS -Werror=implicit" 698221212451Smrg 69836f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 69846f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 69857253c0c7Smrg cacheid=xorg_cv_cc_flag__Werror_implicit 69866f02d4e9Smrg if eval \${$cacheid+:} false; then : 69876f02d4e9Smrg $as_echo_n "(cached) " >&6 69886f02d4e9Smrgelse 69896f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 699021212451Smrg/* end confdefs.h. */ 699121212451Smrgint i; 699221212451Smrgint 699321212451Smrgmain () 699421212451Smrg{ 699521212451Smrg 699621212451Smrg ; 699721212451Smrg return 0; 699821212451Smrg} 699921212451Smrg_ACEOF 70006f02d4e9Smrgif ac_fn_c_try_link "$LINENO"; then : 70016f02d4e9Smrg eval $cacheid=yes 700221212451Smrgelse 70036f02d4e9Smrg eval $cacheid=no 70046f02d4e9Smrgfi 70056f02d4e9Smrgrm -f core conftest.err conftest.$ac_objext \ 70066f02d4e9Smrg conftest$ac_exeext conftest.$ac_ext 700721212451Smrgfi 700821212451Smrg 70096f02d4e9Smrg 701021212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 701121212451Smrg 70126f02d4e9Smrg eval supported=\$$cacheid 70136f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 70146f02d4e9Smrg$as_echo "$supported" >&6; } 701521212451Smrg if test "$supported" = "yes" ; then 701621212451Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 701721212451Smrg found="yes" 701821212451Smrg fi 701921212451Smrg fi 702021212451Smrg 702121212451Smrg if test $found = "no" ; then 70226f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 702321212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 702421212451Smrg fi 702521212451Smrg 70266f02d4e9Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 702721212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 702821212451Smrg fi 702921212451Smrg 703021212451Smrg CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 703121212451Smrg 70326f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 70336f02d4e9Smrg$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 70347253c0c7Smrg cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 70356f02d4e9Smrg if eval \${$cacheid+:} false; then : 70366f02d4e9Smrg $as_echo_n "(cached) " >&6 70376f02d4e9Smrgelse 70386f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 703921212451Smrg/* end confdefs.h. */ 704021212451Smrgint i; 704121212451Smrgint 704221212451Smrgmain () 704321212451Smrg{ 704421212451Smrg 704521212451Smrg ; 704621212451Smrg return 0; 704721212451Smrg} 704821212451Smrg_ACEOF 70496f02d4e9Smrgif ac_fn_c_try_link "$LINENO"; then : 70506f02d4e9Smrg eval $cacheid=yes 705121212451Smrgelse 70526f02d4e9Smrg eval $cacheid=no 705321212451Smrgfi 70546f02d4e9Smrgrm -f core conftest.err conftest.$ac_objext \ 70556f02d4e9Smrg conftest$ac_exeext conftest.$ac_ext 70566f02d4e9Smrgfi 70576f02d4e9Smrg 705821212451Smrg 705921212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 706021212451Smrg 70616f02d4e9Smrg eval supported=\$$cacheid 70626f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 70636f02d4e9Smrg$as_echo "$supported" >&6; } 706421212451Smrg if test "$supported" = "yes" ; then 706521212451Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 706621212451Smrg found="yes" 706721212451Smrg fi 706821212451Smrg fi 706921212451Smrg 707021212451Smrg 707121212451Smrg 707221212451Smrg 707321212451Smrg 707421212451Smrg 707521212451Smrg 70766f02d4e9Smrg 70776f02d4e9Smrg 70786f02d4e9Smrg 70796f02d4e9Smrg 70806f02d4e9Smrg 70816f02d4e9Smrg 70826f02d4e9Smrg 70836f02d4e9Smrg 708421212451Smrgxorg_testset_save_CFLAGS="$CFLAGS" 708521212451Smrg 70866f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 708721212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 70886f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 70896f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 70906f02d4e9Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 70916f02d4e9Smrg $as_echo_n "(cached) " >&6 70926f02d4e9Smrgelse 70936f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 709421212451Smrg/* end confdefs.h. */ 709521212451Smrgint i; 709621212451Smrg_ACEOF 70976f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 70986f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=yes 709921212451Smrgelse 71006f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=no 710121212451Smrgfi 710221212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 71036f02d4e9Smrgfi 71046f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 71056f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 71066f02d4e9Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 710721212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 710821212451Smrgfi 710921212451Smrg 71106f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 71116f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 711221212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 711321212451Smrg fi 711421212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 71156f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 71166f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 71176f02d4e9Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 71186f02d4e9Smrg $as_echo_n "(cached) " >&6 71196f02d4e9Smrgelse 71206f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 712121212451Smrg/* end confdefs.h. */ 712221212451Smrgint i; 712321212451Smrg_ACEOF 71246f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 71256f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 712621212451Smrgelse 71276f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=no 712821212451Smrgfi 712921212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 71306f02d4e9Smrgfi 71316f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 71326f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 71336f02d4e9Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 713421212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 713521212451Smrgfi 713621212451Smrg 713721212451Smrgfound="no" 713821212451Smrg 713921212451Smrg if test $found = "no" ; then 71406f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 714121212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 714221212451Smrg fi 714321212451Smrg 71446f02d4e9Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 714521212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 714621212451Smrg fi 714721212451Smrg 714821212451Smrg CFLAGS="$CFLAGS -Werror=nonnull" 714921212451Smrg 71506f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 71516f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 71527253c0c7Smrg cacheid=xorg_cv_cc_flag__Werror_nonnull 71536f02d4e9Smrg if eval \${$cacheid+:} false; then : 71546f02d4e9Smrg $as_echo_n "(cached) " >&6 71556f02d4e9Smrgelse 71566f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 715721212451Smrg/* end confdefs.h. */ 715821212451Smrgint i; 715921212451Smrgint 716021212451Smrgmain () 716121212451Smrg{ 716221212451Smrg 716321212451Smrg ; 716421212451Smrg return 0; 716521212451Smrg} 716621212451Smrg_ACEOF 71676f02d4e9Smrgif ac_fn_c_try_link "$LINENO"; then : 71686f02d4e9Smrg eval $cacheid=yes 71696f02d4e9Smrgelse 71706f02d4e9Smrg eval $cacheid=no 71716f02d4e9Smrgfi 71726f02d4e9Smrgrm -f core conftest.err conftest.$ac_objext \ 71736f02d4e9Smrg conftest$ac_exeext conftest.$ac_ext 717421212451Smrgfi 717521212451Smrg 71766f02d4e9Smrg 717721212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 717821212451Smrg 71796f02d4e9Smrg eval supported=\$$cacheid 71806f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 71816f02d4e9Smrg$as_echo "$supported" >&6; } 718221212451Smrg if test "$supported" = "yes" ; then 718321212451Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 718421212451Smrg found="yes" 718521212451Smrg fi 718621212451Smrg fi 718721212451Smrg 718821212451Smrg 718921212451Smrg 719021212451Smrg 719121212451Smrg 719221212451Smrg 719321212451Smrg 71946f02d4e9Smrg 71956f02d4e9Smrg 71966f02d4e9Smrg 71976f02d4e9Smrg 71986f02d4e9Smrg 71996f02d4e9Smrg 72006f02d4e9Smrg 72016f02d4e9Smrg 720221212451Smrgxorg_testset_save_CFLAGS="$CFLAGS" 720321212451Smrg 72046f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 720521212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 72066f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 72076f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 72086f02d4e9Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 72096f02d4e9Smrg $as_echo_n "(cached) " >&6 72106f02d4e9Smrgelse 72116f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 721221212451Smrg/* end confdefs.h. */ 721321212451Smrgint i; 721421212451Smrg_ACEOF 72156f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 72166f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=yes 721721212451Smrgelse 72186f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=no 721921212451Smrgfi 722021212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 72216f02d4e9Smrgfi 72226f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 72236f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 72246f02d4e9Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 722521212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 722621212451Smrgfi 722721212451Smrg 72286f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 72296f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 723021212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 723121212451Smrg fi 723221212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 72336f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 72346f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 72356f02d4e9Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 72366f02d4e9Smrg $as_echo_n "(cached) " >&6 72376f02d4e9Smrgelse 72386f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 723921212451Smrg/* end confdefs.h. */ 724021212451Smrgint i; 724121212451Smrg_ACEOF 72426f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 72436f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 724421212451Smrgelse 72456f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=no 724621212451Smrgfi 724721212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 72486f02d4e9Smrgfi 72496f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 72506f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 72516f02d4e9Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 725221212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 725321212451Smrgfi 725421212451Smrg 725521212451Smrgfound="no" 725621212451Smrg 725721212451Smrg if test $found = "no" ; then 72586f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 725921212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 726021212451Smrg fi 726121212451Smrg 72626f02d4e9Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 726321212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 726421212451Smrg fi 726521212451Smrg 726621212451Smrg CFLAGS="$CFLAGS -Werror=init-self" 726721212451Smrg 72686f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 72696f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 72707253c0c7Smrg cacheid=xorg_cv_cc_flag__Werror_init_self 72716f02d4e9Smrg if eval \${$cacheid+:} false; then : 72726f02d4e9Smrg $as_echo_n "(cached) " >&6 72736f02d4e9Smrgelse 72746f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 727521212451Smrg/* end confdefs.h. */ 727621212451Smrgint i; 727721212451Smrgint 727821212451Smrgmain () 727921212451Smrg{ 728021212451Smrg 728121212451Smrg ; 728221212451Smrg return 0; 728321212451Smrg} 728421212451Smrg_ACEOF 72856f02d4e9Smrgif ac_fn_c_try_link "$LINENO"; then : 72866f02d4e9Smrg eval $cacheid=yes 728721212451Smrgelse 72886f02d4e9Smrg eval $cacheid=no 728921212451Smrgfi 72906f02d4e9Smrgrm -f core conftest.err conftest.$ac_objext \ 72916f02d4e9Smrg conftest$ac_exeext conftest.$ac_ext 72926f02d4e9Smrgfi 72936f02d4e9Smrg 729421212451Smrg 729521212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 729621212451Smrg 72976f02d4e9Smrg eval supported=\$$cacheid 72986f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 72996f02d4e9Smrg$as_echo "$supported" >&6; } 730021212451Smrg if test "$supported" = "yes" ; then 730121212451Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 730221212451Smrg found="yes" 730321212451Smrg fi 730421212451Smrg fi 730521212451Smrg 730621212451Smrg 730721212451Smrg 730821212451Smrg 730921212451Smrg 731021212451Smrg 731121212451Smrg 73126f02d4e9Smrg 73136f02d4e9Smrg 73146f02d4e9Smrg 73156f02d4e9Smrg 73166f02d4e9Smrg 73176f02d4e9Smrg 73186f02d4e9Smrg 73196f02d4e9Smrg 732021212451Smrgxorg_testset_save_CFLAGS="$CFLAGS" 732121212451Smrg 73226f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 732321212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 73246f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 73256f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 73266f02d4e9Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 73276f02d4e9Smrg $as_echo_n "(cached) " >&6 73286f02d4e9Smrgelse 73296f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 733021212451Smrg/* end confdefs.h. */ 733121212451Smrgint i; 733221212451Smrg_ACEOF 73336f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 73346f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=yes 733521212451Smrgelse 73366f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=no 733721212451Smrgfi 733821212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 73396f02d4e9Smrgfi 73406f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 73416f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 73426f02d4e9Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 734321212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 734421212451Smrgfi 734521212451Smrg 73466f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 73476f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 734821212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 734921212451Smrg fi 735021212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 73516f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 73526f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 73536f02d4e9Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 73546f02d4e9Smrg $as_echo_n "(cached) " >&6 73556f02d4e9Smrgelse 73566f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 735721212451Smrg/* end confdefs.h. */ 735821212451Smrgint i; 735921212451Smrg_ACEOF 73606f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 73616f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 736221212451Smrgelse 73636f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=no 736421212451Smrgfi 736521212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 73666f02d4e9Smrgfi 73676f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 73686f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 73696f02d4e9Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 737021212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 737121212451Smrgfi 737221212451Smrg 737321212451Smrgfound="no" 737421212451Smrg 737521212451Smrg if test $found = "no" ; then 73766f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 737721212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 737821212451Smrg fi 737921212451Smrg 73806f02d4e9Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 738121212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 738221212451Smrg fi 738321212451Smrg 738421212451Smrg CFLAGS="$CFLAGS -Werror=main" 738521212451Smrg 73866f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 73876f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 73887253c0c7Smrg cacheid=xorg_cv_cc_flag__Werror_main 73896f02d4e9Smrg if eval \${$cacheid+:} false; then : 73906f02d4e9Smrg $as_echo_n "(cached) " >&6 73916f02d4e9Smrgelse 73926f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 739321212451Smrg/* end confdefs.h. */ 739421212451Smrgint i; 739521212451Smrgint 739621212451Smrgmain () 739721212451Smrg{ 739821212451Smrg 739921212451Smrg ; 740021212451Smrg return 0; 740121212451Smrg} 740221212451Smrg_ACEOF 74036f02d4e9Smrgif ac_fn_c_try_link "$LINENO"; then : 74046f02d4e9Smrg eval $cacheid=yes 740521212451Smrgelse 74066f02d4e9Smrg eval $cacheid=no 74076f02d4e9Smrgfi 74086f02d4e9Smrgrm -f core conftest.err conftest.$ac_objext \ 74096f02d4e9Smrg conftest$ac_exeext conftest.$ac_ext 741021212451Smrgfi 741121212451Smrg 74126f02d4e9Smrg 741321212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 741421212451Smrg 74156f02d4e9Smrg eval supported=\$$cacheid 74166f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 74176f02d4e9Smrg$as_echo "$supported" >&6; } 741821212451Smrg if test "$supported" = "yes" ; then 741921212451Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 742021212451Smrg found="yes" 742121212451Smrg fi 742221212451Smrg fi 742321212451Smrg 742421212451Smrg 742521212451Smrg 742621212451Smrg 742721212451Smrg 742821212451Smrg 742921212451Smrg 74306f02d4e9Smrg 74316f02d4e9Smrg 74326f02d4e9Smrg 74336f02d4e9Smrg 74346f02d4e9Smrg 74356f02d4e9Smrg 74366f02d4e9Smrg 74376f02d4e9Smrg 743821212451Smrgxorg_testset_save_CFLAGS="$CFLAGS" 743921212451Smrg 74406f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 744121212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 74426f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 74436f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 74446f02d4e9Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 74456f02d4e9Smrg $as_echo_n "(cached) " >&6 74466f02d4e9Smrgelse 74476f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 744821212451Smrg/* end confdefs.h. */ 744921212451Smrgint i; 745021212451Smrg_ACEOF 74516f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 74526f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=yes 745321212451Smrgelse 74546f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=no 745521212451Smrgfi 745621212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 74576f02d4e9Smrgfi 74586f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 74596f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 74606f02d4e9Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 746121212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 746221212451Smrgfi 746321212451Smrg 74646f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 74656f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 746621212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 746721212451Smrg fi 746821212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 74696f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 74706f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 74716f02d4e9Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 74726f02d4e9Smrg $as_echo_n "(cached) " >&6 74736f02d4e9Smrgelse 74746f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 747521212451Smrg/* end confdefs.h. */ 747621212451Smrgint i; 747721212451Smrg_ACEOF 74786f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 74796f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 748021212451Smrgelse 74816f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=no 748221212451Smrgfi 748321212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 74846f02d4e9Smrgfi 74856f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 74866f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 74876f02d4e9Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 748821212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 748921212451Smrgfi 749021212451Smrg 749121212451Smrgfound="no" 749221212451Smrg 749321212451Smrg if test $found = "no" ; then 74946f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 749521212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 749621212451Smrg fi 749721212451Smrg 74986f02d4e9Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 749921212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 750021212451Smrg fi 750121212451Smrg 750221212451Smrg CFLAGS="$CFLAGS -Werror=missing-braces" 750321212451Smrg 75046f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 75056f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 75067253c0c7Smrg cacheid=xorg_cv_cc_flag__Werror_missing_braces 75076f02d4e9Smrg if eval \${$cacheid+:} false; then : 75086f02d4e9Smrg $as_echo_n "(cached) " >&6 75096f02d4e9Smrgelse 75106f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 751121212451Smrg/* end confdefs.h. */ 751221212451Smrgint i; 751321212451Smrgint 751421212451Smrgmain () 751521212451Smrg{ 751621212451Smrg 751721212451Smrg ; 751821212451Smrg return 0; 751921212451Smrg} 752021212451Smrg_ACEOF 75216f02d4e9Smrgif ac_fn_c_try_link "$LINENO"; then : 75226f02d4e9Smrg eval $cacheid=yes 752321212451Smrgelse 75246f02d4e9Smrg eval $cacheid=no 752521212451Smrgfi 75266f02d4e9Smrgrm -f core conftest.err conftest.$ac_objext \ 75276f02d4e9Smrg conftest$ac_exeext conftest.$ac_ext 75286f02d4e9Smrgfi 75296f02d4e9Smrg 753021212451Smrg 753121212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 753221212451Smrg 75336f02d4e9Smrg eval supported=\$$cacheid 75346f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 75356f02d4e9Smrg$as_echo "$supported" >&6; } 753621212451Smrg if test "$supported" = "yes" ; then 753721212451Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 753821212451Smrg found="yes" 753921212451Smrg fi 754021212451Smrg fi 754121212451Smrg 754221212451Smrg 754321212451Smrg 754421212451Smrg 754521212451Smrg 754621212451Smrg 754721212451Smrg 75486f02d4e9Smrg 75496f02d4e9Smrg 75506f02d4e9Smrg 75516f02d4e9Smrg 75526f02d4e9Smrg 75536f02d4e9Smrg 75546f02d4e9Smrg 75556f02d4e9Smrg 755621212451Smrgxorg_testset_save_CFLAGS="$CFLAGS" 755721212451Smrg 75586f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 755921212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 75606f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 75616f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 75626f02d4e9Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 75636f02d4e9Smrg $as_echo_n "(cached) " >&6 75646f02d4e9Smrgelse 75656f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 756621212451Smrg/* end confdefs.h. */ 756721212451Smrgint i; 756821212451Smrg_ACEOF 75696f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 75706f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=yes 757121212451Smrgelse 75726f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=no 757321212451Smrgfi 757421212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 75756f02d4e9Smrgfi 75766f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 75776f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 75786f02d4e9Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 757921212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 758021212451Smrgfi 758121212451Smrg 75826f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 75836f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 758421212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 758521212451Smrg fi 758621212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 75876f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 75886f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 75896f02d4e9Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 75906f02d4e9Smrg $as_echo_n "(cached) " >&6 75916f02d4e9Smrgelse 75926f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 759321212451Smrg/* end confdefs.h. */ 759421212451Smrgint i; 759521212451Smrg_ACEOF 75966f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 75976f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 759821212451Smrgelse 75996f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=no 760021212451Smrgfi 760121212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 76026f02d4e9Smrgfi 76036f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 76046f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 76056f02d4e9Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 760621212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 760721212451Smrgfi 760821212451Smrg 760921212451Smrgfound="no" 761021212451Smrg 761121212451Smrg if test $found = "no" ; then 76126f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 761321212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 761421212451Smrg fi 761521212451Smrg 76166f02d4e9Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 761721212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 761821212451Smrg fi 761921212451Smrg 762021212451Smrg CFLAGS="$CFLAGS -Werror=sequence-point" 762121212451Smrg 76226f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 76236f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 76247253c0c7Smrg cacheid=xorg_cv_cc_flag__Werror_sequence_point 76256f02d4e9Smrg if eval \${$cacheid+:} false; then : 76266f02d4e9Smrg $as_echo_n "(cached) " >&6 76276f02d4e9Smrgelse 76286f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 762921212451Smrg/* end confdefs.h. */ 763021212451Smrgint i; 763121212451Smrgint 763221212451Smrgmain () 763321212451Smrg{ 763421212451Smrg 763521212451Smrg ; 763621212451Smrg return 0; 763721212451Smrg} 763821212451Smrg_ACEOF 76396f02d4e9Smrgif ac_fn_c_try_link "$LINENO"; then : 76406f02d4e9Smrg eval $cacheid=yes 764121212451Smrgelse 76426f02d4e9Smrg eval $cacheid=no 76436f02d4e9Smrgfi 76446f02d4e9Smrgrm -f core conftest.err conftest.$ac_objext \ 76456f02d4e9Smrg conftest$ac_exeext conftest.$ac_ext 764621212451Smrgfi 764721212451Smrg 76486f02d4e9Smrg 764921212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 765021212451Smrg 76516f02d4e9Smrg eval supported=\$$cacheid 76526f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 76536f02d4e9Smrg$as_echo "$supported" >&6; } 765421212451Smrg if test "$supported" = "yes" ; then 765521212451Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 765621212451Smrg found="yes" 765721212451Smrg fi 765821212451Smrg fi 765921212451Smrg 766021212451Smrg 766121212451Smrg 766221212451Smrg 766321212451Smrg 766421212451Smrg 766521212451Smrg 76666f02d4e9Smrg 76676f02d4e9Smrg 76686f02d4e9Smrg 76696f02d4e9Smrg 76706f02d4e9Smrg 76716f02d4e9Smrg 76726f02d4e9Smrg 76736f02d4e9Smrg 767421212451Smrgxorg_testset_save_CFLAGS="$CFLAGS" 767521212451Smrg 76766f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 767721212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 76786f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 76796f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 76806f02d4e9Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 76816f02d4e9Smrg $as_echo_n "(cached) " >&6 76826f02d4e9Smrgelse 76836f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 768421212451Smrg/* end confdefs.h. */ 768521212451Smrgint i; 768621212451Smrg_ACEOF 76876f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 76886f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=yes 768921212451Smrgelse 76906f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=no 769121212451Smrgfi 769221212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 76936f02d4e9Smrgfi 76946f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 76956f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 76966f02d4e9Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 769721212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 769821212451Smrgfi 769921212451Smrg 77006f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 77016f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 770221212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 770321212451Smrg fi 770421212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 77056f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 77066f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 77076f02d4e9Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 77086f02d4e9Smrg $as_echo_n "(cached) " >&6 77096f02d4e9Smrgelse 77106f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 771121212451Smrg/* end confdefs.h. */ 771221212451Smrgint i; 771321212451Smrg_ACEOF 77146f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 77156f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 771621212451Smrgelse 77176f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=no 771821212451Smrgfi 771921212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 77206f02d4e9Smrgfi 77216f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 77226f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 77236f02d4e9Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 772421212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 772521212451Smrgfi 772621212451Smrg 772721212451Smrgfound="no" 772821212451Smrg 772921212451Smrg if test $found = "no" ; then 77306f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 773121212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 773221212451Smrg fi 773321212451Smrg 77346f02d4e9Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 773521212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 773621212451Smrg fi 773721212451Smrg 773821212451Smrg CFLAGS="$CFLAGS -Werror=return-type" 773921212451Smrg 77406f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 77416f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 77427253c0c7Smrg cacheid=xorg_cv_cc_flag__Werror_return_type 77436f02d4e9Smrg if eval \${$cacheid+:} false; then : 77446f02d4e9Smrg $as_echo_n "(cached) " >&6 77456f02d4e9Smrgelse 77466f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 774721212451Smrg/* end confdefs.h. */ 774821212451Smrgint i; 774921212451Smrgint 775021212451Smrgmain () 775121212451Smrg{ 775221212451Smrg 775321212451Smrg ; 775421212451Smrg return 0; 775521212451Smrg} 775621212451Smrg_ACEOF 77576f02d4e9Smrgif ac_fn_c_try_link "$LINENO"; then : 77586f02d4e9Smrg eval $cacheid=yes 775921212451Smrgelse 77606f02d4e9Smrg eval $cacheid=no 776121212451Smrgfi 77626f02d4e9Smrgrm -f core conftest.err conftest.$ac_objext \ 77636f02d4e9Smrg conftest$ac_exeext conftest.$ac_ext 77646f02d4e9Smrgfi 77656f02d4e9Smrg 776621212451Smrg 776721212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 776821212451Smrg 77696f02d4e9Smrg eval supported=\$$cacheid 77706f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 77716f02d4e9Smrg$as_echo "$supported" >&6; } 777221212451Smrg if test "$supported" = "yes" ; then 777321212451Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 777421212451Smrg found="yes" 777521212451Smrg fi 777621212451Smrg fi 777721212451Smrg 777821212451Smrg if test $found = "no" ; then 77796f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 778021212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 778121212451Smrg fi 778221212451Smrg 77836f02d4e9Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 778421212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 778521212451Smrg fi 778621212451Smrg 778721212451Smrg CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 778821212451Smrg 77896f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 77906f02d4e9Smrg$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 77917253c0c7Smrg cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 77926f02d4e9Smrg if eval \${$cacheid+:} false; then : 77936f02d4e9Smrg $as_echo_n "(cached) " >&6 77946f02d4e9Smrgelse 77956f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 779621212451Smrg/* end confdefs.h. */ 779721212451Smrgint i; 779821212451Smrgint 77996f02d4e9Smrgmain () 78006f02d4e9Smrg{ 780121212451Smrg 78026f02d4e9Smrg ; 78036f02d4e9Smrg return 0; 78046f02d4e9Smrg} 78056f02d4e9Smrg_ACEOF 78066f02d4e9Smrgif ac_fn_c_try_link "$LINENO"; then : 78076f02d4e9Smrg eval $cacheid=yes 78086f02d4e9Smrgelse 78096f02d4e9Smrg eval $cacheid=no 78106f02d4e9Smrgfi 78116f02d4e9Smrgrm -f core conftest.err conftest.$ac_objext \ 78126f02d4e9Smrg conftest$ac_exeext conftest.$ac_ext 781321212451Smrgfi 781421212451Smrg 78156f02d4e9Smrg 781621212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 781721212451Smrg 78186f02d4e9Smrg eval supported=\$$cacheid 78196f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 78206f02d4e9Smrg$as_echo "$supported" >&6; } 782121212451Smrg if test "$supported" = "yes" ; then 782221212451Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 782321212451Smrg found="yes" 782421212451Smrg fi 782521212451Smrg fi 782621212451Smrg 782721212451Smrg 782821212451Smrg 782921212451Smrg 783021212451Smrg 783121212451Smrg 783221212451Smrg 78336f02d4e9Smrg 78346f02d4e9Smrg 78356f02d4e9Smrg 78366f02d4e9Smrg 78376f02d4e9Smrg 78386f02d4e9Smrg 78396f02d4e9Smrg 78406f02d4e9Smrg 784121212451Smrgxorg_testset_save_CFLAGS="$CFLAGS" 784221212451Smrg 78436f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 784421212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 78456f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 78466f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 78476f02d4e9Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 78486f02d4e9Smrg $as_echo_n "(cached) " >&6 78496f02d4e9Smrgelse 78506f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 785121212451Smrg/* end confdefs.h. */ 785221212451Smrgint i; 785321212451Smrg_ACEOF 78546f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 78556f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=yes 785621212451Smrgelse 78576f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=no 785821212451Smrgfi 785921212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 78606f02d4e9Smrgfi 78616f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 78626f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 78636f02d4e9Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 786421212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 786521212451Smrgfi 786621212451Smrg 78676f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 78686f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 786921212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 787021212451Smrg fi 787121212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 78726f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 78736f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 78746f02d4e9Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 78756f02d4e9Smrg $as_echo_n "(cached) " >&6 78766f02d4e9Smrgelse 78776f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 787821212451Smrg/* end confdefs.h. */ 787921212451Smrgint i; 788021212451Smrg_ACEOF 78816f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 78826f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 788321212451Smrgelse 78846f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=no 788521212451Smrgfi 788621212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 78876f02d4e9Smrgfi 78886f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 78896f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 78906f02d4e9Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 789121212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 789221212451Smrgfi 789321212451Smrg 789421212451Smrgfound="no" 789521212451Smrg 789621212451Smrg if test $found = "no" ; then 78976f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 789821212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 789921212451Smrg fi 790021212451Smrg 79016f02d4e9Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 790221212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 790321212451Smrg fi 790421212451Smrg 790521212451Smrg CFLAGS="$CFLAGS -Werror=trigraphs" 790621212451Smrg 79076f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 79086f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 79097253c0c7Smrg cacheid=xorg_cv_cc_flag__Werror_trigraphs 79106f02d4e9Smrg if eval \${$cacheid+:} false; then : 79116f02d4e9Smrg $as_echo_n "(cached) " >&6 79126f02d4e9Smrgelse 79136f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 791421212451Smrg/* end confdefs.h. */ 791521212451Smrgint i; 791621212451Smrgint 791721212451Smrgmain () 791821212451Smrg{ 791921212451Smrg 792021212451Smrg ; 792121212451Smrg return 0; 792221212451Smrg} 792321212451Smrg_ACEOF 79246f02d4e9Smrgif ac_fn_c_try_link "$LINENO"; then : 79256f02d4e9Smrg eval $cacheid=yes 792621212451Smrgelse 79276f02d4e9Smrg eval $cacheid=no 792821212451Smrgfi 79296f02d4e9Smrgrm -f core conftest.err conftest.$ac_objext \ 79306f02d4e9Smrg conftest$ac_exeext conftest.$ac_ext 79316f02d4e9Smrgfi 79326f02d4e9Smrg 793321212451Smrg 793421212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 793521212451Smrg 79366f02d4e9Smrg eval supported=\$$cacheid 79376f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 79386f02d4e9Smrg$as_echo "$supported" >&6; } 793921212451Smrg if test "$supported" = "yes" ; then 794021212451Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 794121212451Smrg found="yes" 794221212451Smrg fi 794321212451Smrg fi 794421212451Smrg 794521212451Smrg 794621212451Smrg 794721212451Smrg 794821212451Smrg 794921212451Smrg 795021212451Smrg 79516f02d4e9Smrg 79526f02d4e9Smrg 79536f02d4e9Smrg 79546f02d4e9Smrg 79556f02d4e9Smrg 79566f02d4e9Smrg 79576f02d4e9Smrg 79586f02d4e9Smrg 795921212451Smrgxorg_testset_save_CFLAGS="$CFLAGS" 796021212451Smrg 79616f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 796221212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 79636f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 79646f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 79656f02d4e9Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 79666f02d4e9Smrg $as_echo_n "(cached) " >&6 79676f02d4e9Smrgelse 79686f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 796921212451Smrg/* end confdefs.h. */ 797021212451Smrgint i; 797121212451Smrg_ACEOF 79726f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 79736f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=yes 797421212451Smrgelse 79756f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=no 797621212451Smrgfi 797721212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 79786f02d4e9Smrgfi 79796f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 79806f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 79816f02d4e9Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 798221212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 798321212451Smrgfi 798421212451Smrg 79856f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 79866f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 798721212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 798821212451Smrg fi 798921212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 79906f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 79916f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 79926f02d4e9Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 79936f02d4e9Smrg $as_echo_n "(cached) " >&6 79946f02d4e9Smrgelse 79956f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 799621212451Smrg/* end confdefs.h. */ 799721212451Smrgint i; 799821212451Smrg_ACEOF 79996f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 80006f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 800121212451Smrgelse 80026f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=no 800321212451Smrgfi 800421212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 80056f02d4e9Smrgfi 80066f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 80076f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 80086f02d4e9Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 800921212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 801021212451Smrgfi 801121212451Smrg 801221212451Smrgfound="no" 801321212451Smrg 801421212451Smrg if test $found = "no" ; then 80156f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 801621212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 801721212451Smrg fi 801821212451Smrg 80196f02d4e9Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 802021212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 802121212451Smrg fi 802221212451Smrg 802321212451Smrg CFLAGS="$CFLAGS -Werror=array-bounds" 802421212451Smrg 80256f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 80266f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 80277253c0c7Smrg cacheid=xorg_cv_cc_flag__Werror_array_bounds 80286f02d4e9Smrg if eval \${$cacheid+:} false; then : 80296f02d4e9Smrg $as_echo_n "(cached) " >&6 80306f02d4e9Smrgelse 80316f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 803221212451Smrg/* end confdefs.h. */ 803321212451Smrgint i; 803421212451Smrgint 803521212451Smrgmain () 803621212451Smrg{ 803721212451Smrg 803821212451Smrg ; 803921212451Smrg return 0; 804021212451Smrg} 804121212451Smrg_ACEOF 80426f02d4e9Smrgif ac_fn_c_try_link "$LINENO"; then : 80436f02d4e9Smrg eval $cacheid=yes 804421212451Smrgelse 80456f02d4e9Smrg eval $cacheid=no 80466f02d4e9Smrgfi 80476f02d4e9Smrgrm -f core conftest.err conftest.$ac_objext \ 80486f02d4e9Smrg conftest$ac_exeext conftest.$ac_ext 804921212451Smrgfi 805021212451Smrg 80516f02d4e9Smrg 805221212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 805321212451Smrg 80546f02d4e9Smrg eval supported=\$$cacheid 80556f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 80566f02d4e9Smrg$as_echo "$supported" >&6; } 805721212451Smrg if test "$supported" = "yes" ; then 805821212451Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 805921212451Smrg found="yes" 806021212451Smrg fi 806121212451Smrg fi 806221212451Smrg 806321212451Smrg 806421212451Smrg 806521212451Smrg 806621212451Smrg 806721212451Smrg 806821212451Smrg 80696f02d4e9Smrg 80706f02d4e9Smrg 80716f02d4e9Smrg 80726f02d4e9Smrg 80736f02d4e9Smrg 80746f02d4e9Smrg 80756f02d4e9Smrg 80766f02d4e9Smrg 807721212451Smrgxorg_testset_save_CFLAGS="$CFLAGS" 807821212451Smrg 80796f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 808021212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 80816f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 80826f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 80836f02d4e9Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 80846f02d4e9Smrg $as_echo_n "(cached) " >&6 80856f02d4e9Smrgelse 80866f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 808721212451Smrg/* end confdefs.h. */ 808821212451Smrgint i; 808921212451Smrg_ACEOF 80906f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 80916f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=yes 809221212451Smrgelse 80936f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=no 809421212451Smrgfi 809521212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 80966f02d4e9Smrgfi 80976f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 80986f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 80996f02d4e9Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 810021212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 810121212451Smrgfi 810221212451Smrg 81036f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 81046f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 810521212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 810621212451Smrg fi 810721212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 81086f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 81096f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 81106f02d4e9Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 81116f02d4e9Smrg $as_echo_n "(cached) " >&6 81126f02d4e9Smrgelse 81136f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 811421212451Smrg/* end confdefs.h. */ 811521212451Smrgint i; 811621212451Smrg_ACEOF 81176f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 81186f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 811921212451Smrgelse 81206f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=no 812121212451Smrgfi 812221212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 81236f02d4e9Smrgfi 81246f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 81256f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 81266f02d4e9Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 812721212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 812821212451Smrgfi 812921212451Smrg 813021212451Smrgfound="no" 813121212451Smrg 813221212451Smrg if test $found = "no" ; then 81336f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 813421212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 813521212451Smrg fi 813621212451Smrg 81376f02d4e9Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 813821212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 813921212451Smrg fi 814021212451Smrg 814121212451Smrg CFLAGS="$CFLAGS -Werror=write-strings" 814221212451Smrg 81436f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 81446f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 81457253c0c7Smrg cacheid=xorg_cv_cc_flag__Werror_write_strings 81466f02d4e9Smrg if eval \${$cacheid+:} false; then : 81476f02d4e9Smrg $as_echo_n "(cached) " >&6 81486f02d4e9Smrgelse 81496f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 815021212451Smrg/* end confdefs.h. */ 815121212451Smrgint i; 815221212451Smrgint 815321212451Smrgmain () 815421212451Smrg{ 815521212451Smrg 815621212451Smrg ; 815721212451Smrg return 0; 815821212451Smrg} 815921212451Smrg_ACEOF 81606f02d4e9Smrgif ac_fn_c_try_link "$LINENO"; then : 81616f02d4e9Smrg eval $cacheid=yes 816221212451Smrgelse 81636f02d4e9Smrg eval $cacheid=no 816421212451Smrgfi 81656f02d4e9Smrgrm -f core conftest.err conftest.$ac_objext \ 81666f02d4e9Smrg conftest$ac_exeext conftest.$ac_ext 81676f02d4e9Smrgfi 81686f02d4e9Smrg 816921212451Smrg 817021212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 817121212451Smrg 81726f02d4e9Smrg eval supported=\$$cacheid 81736f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 81746f02d4e9Smrg$as_echo "$supported" >&6; } 817521212451Smrg if test "$supported" = "yes" ; then 817621212451Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 817721212451Smrg found="yes" 817821212451Smrg fi 817921212451Smrg fi 818021212451Smrg 818121212451Smrg 818221212451Smrg 818321212451Smrg 818421212451Smrg 818521212451Smrg 818621212451Smrg 81876f02d4e9Smrg 81886f02d4e9Smrg 81896f02d4e9Smrg 81906f02d4e9Smrg 81916f02d4e9Smrg 81926f02d4e9Smrg 81936f02d4e9Smrg 81946f02d4e9Smrg 819521212451Smrgxorg_testset_save_CFLAGS="$CFLAGS" 819621212451Smrg 81976f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 819821212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 81996f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 82006f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 82016f02d4e9Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 82026f02d4e9Smrg $as_echo_n "(cached) " >&6 82036f02d4e9Smrgelse 82046f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 820521212451Smrg/* end confdefs.h. */ 820621212451Smrgint i; 820721212451Smrg_ACEOF 82086f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 82096f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=yes 821021212451Smrgelse 82116f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=no 821221212451Smrgfi 821321212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 82146f02d4e9Smrgfi 82156f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 82166f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 82176f02d4e9Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 821821212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 821921212451Smrgfi 822021212451Smrg 82216f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 82226f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 822321212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 822421212451Smrg fi 822521212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 82266f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 82276f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 82286f02d4e9Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 82296f02d4e9Smrg $as_echo_n "(cached) " >&6 82306f02d4e9Smrgelse 82316f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 823221212451Smrg/* end confdefs.h. */ 823321212451Smrgint i; 823421212451Smrg_ACEOF 82356f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 82366f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 823721212451Smrgelse 82386f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=no 823921212451Smrgfi 824021212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 82416f02d4e9Smrgfi 82426f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 82436f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 82446f02d4e9Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 824521212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 824621212451Smrgfi 824721212451Smrg 824821212451Smrgfound="no" 824921212451Smrg 825021212451Smrg if test $found = "no" ; then 82516f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 825221212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 825321212451Smrg fi 825421212451Smrg 82556f02d4e9Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 825621212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 825721212451Smrg fi 825821212451Smrg 825921212451Smrg CFLAGS="$CFLAGS -Werror=address" 826021212451Smrg 82616f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 82626f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 82637253c0c7Smrg cacheid=xorg_cv_cc_flag__Werror_address 82646f02d4e9Smrg if eval \${$cacheid+:} false; then : 82656f02d4e9Smrg $as_echo_n "(cached) " >&6 82666f02d4e9Smrgelse 82676f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 826821212451Smrg/* end confdefs.h. */ 826921212451Smrgint i; 827021212451Smrgint 827121212451Smrgmain () 827221212451Smrg{ 827321212451Smrg 827421212451Smrg ; 827521212451Smrg return 0; 827621212451Smrg} 827721212451Smrg_ACEOF 82786f02d4e9Smrgif ac_fn_c_try_link "$LINENO"; then : 82796f02d4e9Smrg eval $cacheid=yes 828021212451Smrgelse 82816f02d4e9Smrg eval $cacheid=no 82826f02d4e9Smrgfi 82836f02d4e9Smrgrm -f core conftest.err conftest.$ac_objext \ 82846f02d4e9Smrg conftest$ac_exeext conftest.$ac_ext 828521212451Smrgfi 828621212451Smrg 82876f02d4e9Smrg 828821212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 828921212451Smrg 82906f02d4e9Smrg eval supported=\$$cacheid 82916f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 82926f02d4e9Smrg$as_echo "$supported" >&6; } 829321212451Smrg if test "$supported" = "yes" ; then 829421212451Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 829521212451Smrg found="yes" 829621212451Smrg fi 829721212451Smrg fi 829821212451Smrg 829921212451Smrg 830021212451Smrg 830121212451Smrg 830221212451Smrg 830321212451Smrg 830421212451Smrg 83056f02d4e9Smrg 83066f02d4e9Smrg 83076f02d4e9Smrg 83086f02d4e9Smrg 83096f02d4e9Smrg 83106f02d4e9Smrg 83116f02d4e9Smrg 83126f02d4e9Smrg 831321212451Smrgxorg_testset_save_CFLAGS="$CFLAGS" 831421212451Smrg 83156f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 831621212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 83176f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 83186f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 83196f02d4e9Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 83206f02d4e9Smrg $as_echo_n "(cached) " >&6 83216f02d4e9Smrgelse 83226f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 832321212451Smrg/* end confdefs.h. */ 832421212451Smrgint i; 832521212451Smrg_ACEOF 83266f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 83276f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=yes 832821212451Smrgelse 83296f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=no 833021212451Smrgfi 833121212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 83326f02d4e9Smrgfi 83336f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 83346f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 83356f02d4e9Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 833621212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 833721212451Smrgfi 833821212451Smrg 83396f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 83406f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 834121212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 834221212451Smrg fi 834321212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 83446f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 83456f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 83466f02d4e9Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 83476f02d4e9Smrg $as_echo_n "(cached) " >&6 83486f02d4e9Smrgelse 83496f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 835021212451Smrg/* end confdefs.h. */ 835121212451Smrgint i; 835221212451Smrg_ACEOF 83536f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 83546f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 835521212451Smrgelse 83566f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=no 835721212451Smrgfi 835821212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 83596f02d4e9Smrgfi 83606f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 83616f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 83626f02d4e9Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 836321212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 836421212451Smrgfi 836521212451Smrg 836621212451Smrgfound="no" 836721212451Smrg 836821212451Smrg if test $found = "no" ; then 83696f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 837021212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 837121212451Smrg fi 837221212451Smrg 83736f02d4e9Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 837421212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 837521212451Smrg fi 837621212451Smrg 837721212451Smrg CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 837821212451Smrg 83796f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 83806f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 83817253c0c7Smrg cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 83826f02d4e9Smrg if eval \${$cacheid+:} false; then : 83836f02d4e9Smrg $as_echo_n "(cached) " >&6 83846f02d4e9Smrgelse 83856f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 838621212451Smrg/* end confdefs.h. */ 838721212451Smrgint i; 838821212451Smrgint 838921212451Smrgmain () 839021212451Smrg{ 839121212451Smrg 839221212451Smrg ; 839321212451Smrg return 0; 839421212451Smrg} 839521212451Smrg_ACEOF 83966f02d4e9Smrgif ac_fn_c_try_link "$LINENO"; then : 83976f02d4e9Smrg eval $cacheid=yes 839821212451Smrgelse 83996f02d4e9Smrg eval $cacheid=no 840021212451Smrgfi 84016f02d4e9Smrgrm -f core conftest.err conftest.$ac_objext \ 84026f02d4e9Smrg conftest$ac_exeext conftest.$ac_ext 84036f02d4e9Smrgfi 84046f02d4e9Smrg 840521212451Smrg 840621212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 840721212451Smrg 84086f02d4e9Smrg eval supported=\$$cacheid 84096f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 84106f02d4e9Smrg$as_echo "$supported" >&6; } 841121212451Smrg if test "$supported" = "yes" ; then 841221212451Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 841321212451Smrg found="yes" 841421212451Smrg fi 841521212451Smrg fi 841621212451Smrg 841721212451Smrg if test $found = "no" ; then 84186f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 841921212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 842021212451Smrg fi 842121212451Smrg 84226f02d4e9Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 842321212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 842421212451Smrg fi 842521212451Smrg 842621212451Smrg CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 842721212451Smrg 84286f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 84296f02d4e9Smrg$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 84307253c0c7Smrg cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 84316f02d4e9Smrg if eval \${$cacheid+:} false; then : 84326f02d4e9Smrg $as_echo_n "(cached) " >&6 84336f02d4e9Smrgelse 84346f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 843521212451Smrg/* end confdefs.h. */ 843621212451Smrgint i; 843721212451Smrgint 843821212451Smrgmain () 843921212451Smrg{ 844021212451Smrg 844121212451Smrg ; 844221212451Smrg return 0; 844321212451Smrg} 844421212451Smrg_ACEOF 84456f02d4e9Smrgif ac_fn_c_try_link "$LINENO"; then : 84466f02d4e9Smrg eval $cacheid=yes 844721212451Smrgelse 84486f02d4e9Smrg eval $cacheid=no 84496f02d4e9Smrgfi 84506f02d4e9Smrgrm -f core conftest.err conftest.$ac_objext \ 84516f02d4e9Smrg conftest$ac_exeext conftest.$ac_ext 845221212451Smrgfi 845321212451Smrg 84546f02d4e9Smrg 845521212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 845621212451Smrg 84576f02d4e9Smrg eval supported=\$$cacheid 84586f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 84596f02d4e9Smrg$as_echo "$supported" >&6; } 846021212451Smrg if test "$supported" = "yes" ; then 846121212451Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 846221212451Smrg found="yes" 846321212451Smrg fi 846421212451Smrg fi 846521212451Smrg 846621212451Smrg 846721212451Smrg 846821212451Smrg 846921212451Smrg 847021212451Smrg 847121212451Smrg 84726f02d4e9Smrg 84736f02d4e9Smrg 84746f02d4e9Smrg 84756f02d4e9Smrg 84766f02d4e9Smrg 84776f02d4e9Smrg 84786f02d4e9Smrg 84796f02d4e9Smrg 848021212451Smrgxorg_testset_save_CFLAGS="$CFLAGS" 848121212451Smrg 84826f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 848321212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 84846f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 84856f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 84866f02d4e9Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 84876f02d4e9Smrg $as_echo_n "(cached) " >&6 84886f02d4e9Smrgelse 84896f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 849021212451Smrg/* end confdefs.h. */ 849121212451Smrgint i; 849221212451Smrg_ACEOF 84936f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 84946f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=yes 849521212451Smrgelse 84966f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=no 849721212451Smrgfi 849821212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 84996f02d4e9Smrgfi 85006f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 85016f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 85026f02d4e9Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 850321212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 850421212451Smrgfi 850521212451Smrg 85066f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 85076f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 850821212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 850921212451Smrg fi 851021212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 85116f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 85126f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 85136f02d4e9Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 85146f02d4e9Smrg $as_echo_n "(cached) " >&6 85156f02d4e9Smrgelse 85166f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 851721212451Smrg/* end confdefs.h. */ 851821212451Smrgint i; 851921212451Smrg_ACEOF 85206f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 85216f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 852221212451Smrgelse 85236f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=no 852421212451Smrgfi 852521212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 85266f02d4e9Smrgfi 85276f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 85286f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 85296f02d4e9Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 853021212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 853121212451Smrgfi 853221212451Smrg 853321212451Smrgfound="no" 853421212451Smrg 853521212451Smrg if test $found = "no" ; then 85366f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 853721212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 853821212451Smrg fi 853921212451Smrg 85406f02d4e9Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 854121212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 854221212451Smrg fi 854321212451Smrg 854421212451Smrg CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 854521212451Smrg 85466f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 85476f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 85487253c0c7Smrg cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 85496f02d4e9Smrg if eval \${$cacheid+:} false; then : 85506f02d4e9Smrg $as_echo_n "(cached) " >&6 85516f02d4e9Smrgelse 85526f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 855321212451Smrg/* end confdefs.h. */ 855421212451Smrgint i; 855521212451Smrgint 855621212451Smrgmain () 855721212451Smrg{ 855821212451Smrg 855921212451Smrg ; 856021212451Smrg return 0; 856121212451Smrg} 856221212451Smrg_ACEOF 85636f02d4e9Smrgif ac_fn_c_try_link "$LINENO"; then : 85646f02d4e9Smrg eval $cacheid=yes 856521212451Smrgelse 85666f02d4e9Smrg eval $cacheid=no 856721212451Smrgfi 85686f02d4e9Smrgrm -f core conftest.err conftest.$ac_objext \ 85696f02d4e9Smrg conftest$ac_exeext conftest.$ac_ext 85706f02d4e9Smrgfi 85716f02d4e9Smrg 857221212451Smrg 857321212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 857421212451Smrg 85756f02d4e9Smrg eval supported=\$$cacheid 85766f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 85776f02d4e9Smrg$as_echo "$supported" >&6; } 857821212451Smrg if test "$supported" = "yes" ; then 857921212451Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 858021212451Smrg found="yes" 858121212451Smrg fi 858221212451Smrg fi 858321212451Smrg 858421212451Smrg # Also -errwarn=E_BAD_PTR_INT_COMBINATION 858521212451Smrgelse 85866f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5 85876f02d4e9Smrg$as_echo "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;} 85886f02d4e9Smrg 85896f02d4e9Smrg 85906f02d4e9Smrg 85916f02d4e9Smrg 85926f02d4e9Smrg 85936f02d4e9Smrg 85946f02d4e9Smrg 85956f02d4e9Smrg 859621212451Smrg 859721212451Smrg 859821212451Smrg 859921212451Smrg 860021212451Smrg 860121212451Smrgxorg_testset_save_CFLAGS="$CFLAGS" 860221212451Smrg 86036f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 860421212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 86056f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 86066f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 86076f02d4e9Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 86086f02d4e9Smrg $as_echo_n "(cached) " >&6 86096f02d4e9Smrgelse 86106f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 861121212451Smrg/* end confdefs.h. */ 861221212451Smrgint i; 861321212451Smrg_ACEOF 86146f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 86156f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=yes 861621212451Smrgelse 86176f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=no 861821212451Smrgfi 861921212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 86206f02d4e9Smrgfi 86216f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 86226f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 86236f02d4e9Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 862421212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 862521212451Smrgfi 862621212451Smrg 86276f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 86286f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 862921212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 863021212451Smrg fi 863121212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 86326f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 86336f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 86346f02d4e9Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 86356f02d4e9Smrg $as_echo_n "(cached) " >&6 86366f02d4e9Smrgelse 86376f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 863821212451Smrg/* end confdefs.h. */ 863921212451Smrgint i; 864021212451Smrg_ACEOF 86416f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 86426f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 864321212451Smrgelse 86446f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=no 864521212451Smrgfi 864621212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 86476f02d4e9Smrgfi 86486f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 86496f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 86506f02d4e9Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 865121212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 865221212451Smrgfi 865321212451Smrg 865421212451Smrgfound="no" 865521212451Smrg 865621212451Smrg if test $found = "no" ; then 86576f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 865821212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 865921212451Smrg fi 866021212451Smrg 86616f02d4e9Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 866221212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 866321212451Smrg fi 866421212451Smrg 866521212451Smrg CFLAGS="$CFLAGS -Wimplicit" 866621212451Smrg 86676f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 86686f02d4e9Smrg$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 86696f02d4e9Smrg cacheid=xorg_cv_cc_flag__Wimplicit 86706f02d4e9Smrg if eval \${$cacheid+:} false; then : 86716f02d4e9Smrg $as_echo_n "(cached) " >&6 86726f02d4e9Smrgelse 86736f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 867421212451Smrg/* end confdefs.h. */ 867521212451Smrgint i; 867621212451Smrgint 867721212451Smrgmain () 867821212451Smrg{ 867921212451Smrg 868021212451Smrg ; 868121212451Smrg return 0; 868221212451Smrg} 868321212451Smrg_ACEOF 86846f02d4e9Smrgif ac_fn_c_try_link "$LINENO"; then : 86856f02d4e9Smrg eval $cacheid=yes 868621212451Smrgelse 86876f02d4e9Smrg eval $cacheid=no 86886f02d4e9Smrgfi 86896f02d4e9Smrgrm -f core conftest.err conftest.$ac_objext \ 86906f02d4e9Smrg conftest$ac_exeext conftest.$ac_ext 869121212451Smrgfi 869221212451Smrg 86936f02d4e9Smrg 869421212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 869521212451Smrg 86966f02d4e9Smrg eval supported=\$$cacheid 86976f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 86986f02d4e9Smrg$as_echo "$supported" >&6; } 869921212451Smrg if test "$supported" = "yes" ; then 870021212451Smrg BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 870121212451Smrg found="yes" 870221212451Smrg fi 870321212451Smrg fi 870421212451Smrg 870521212451Smrg 870621212451Smrg 870721212451Smrg 870821212451Smrg 870921212451Smrg 871021212451Smrg 87116f02d4e9Smrg 87126f02d4e9Smrg 87136f02d4e9Smrg 87146f02d4e9Smrg 87156f02d4e9Smrg 87166f02d4e9Smrg 87176f02d4e9Smrg 87186f02d4e9Smrg 871921212451Smrgxorg_testset_save_CFLAGS="$CFLAGS" 872021212451Smrg 87216f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 872221212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 87236f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 87246f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 87256f02d4e9Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 87266f02d4e9Smrg $as_echo_n "(cached) " >&6 87276f02d4e9Smrgelse 87286f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 872921212451Smrg/* end confdefs.h. */ 873021212451Smrgint i; 873121212451Smrg_ACEOF 87326f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 87336f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=yes 873421212451Smrgelse 87356f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=no 873621212451Smrgfi 873721212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 87386f02d4e9Smrgfi 87396f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 87406f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 87416f02d4e9Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 874221212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 874321212451Smrgfi 874421212451Smrg 87456f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 87466f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 874721212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 874821212451Smrg fi 874921212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 87506f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 87516f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 87526f02d4e9Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 87536f02d4e9Smrg $as_echo_n "(cached) " >&6 87546f02d4e9Smrgelse 87556f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 875621212451Smrg/* end confdefs.h. */ 875721212451Smrgint i; 875821212451Smrg_ACEOF 87596f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 87606f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 876121212451Smrgelse 87626f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=no 876321212451Smrgfi 876421212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 87656f02d4e9Smrgfi 87666f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 87676f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 87686f02d4e9Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 876921212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 877021212451Smrgfi 877121212451Smrg 877221212451Smrgfound="no" 877321212451Smrg 877421212451Smrg if test $found = "no" ; then 87756f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 877621212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 877721212451Smrg fi 877821212451Smrg 87796f02d4e9Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 878021212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 878121212451Smrg fi 878221212451Smrg 878321212451Smrg CFLAGS="$CFLAGS -Wnonnull" 878421212451Smrg 87856f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 87866f02d4e9Smrg$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 87876f02d4e9Smrg cacheid=xorg_cv_cc_flag__Wnonnull 87886f02d4e9Smrg if eval \${$cacheid+:} false; then : 87896f02d4e9Smrg $as_echo_n "(cached) " >&6 87906f02d4e9Smrgelse 87916f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 879221212451Smrg/* end confdefs.h. */ 879321212451Smrgint i; 879421212451Smrgint 879521212451Smrgmain () 879621212451Smrg{ 879721212451Smrg 879821212451Smrg ; 879921212451Smrg return 0; 880021212451Smrg} 880121212451Smrg_ACEOF 88026f02d4e9Smrgif ac_fn_c_try_link "$LINENO"; then : 88036f02d4e9Smrg eval $cacheid=yes 880421212451Smrgelse 88056f02d4e9Smrg eval $cacheid=no 880621212451Smrgfi 88076f02d4e9Smrgrm -f core conftest.err conftest.$ac_objext \ 88086f02d4e9Smrg conftest$ac_exeext conftest.$ac_ext 88096f02d4e9Smrgfi 88106f02d4e9Smrg 881121212451Smrg 881221212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 881321212451Smrg 88146f02d4e9Smrg eval supported=\$$cacheid 88156f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 88166f02d4e9Smrg$as_echo "$supported" >&6; } 881721212451Smrg if test "$supported" = "yes" ; then 881821212451Smrg BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 881921212451Smrg found="yes" 882021212451Smrg fi 882121212451Smrg fi 882221212451Smrg 882321212451Smrg 882421212451Smrg 882521212451Smrg 882621212451Smrg 882721212451Smrg 882821212451Smrg 88296f02d4e9Smrg 88306f02d4e9Smrg 88316f02d4e9Smrg 88326f02d4e9Smrg 88336f02d4e9Smrg 88346f02d4e9Smrg 88356f02d4e9Smrg 88366f02d4e9Smrg 883721212451Smrgxorg_testset_save_CFLAGS="$CFLAGS" 883821212451Smrg 88396f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 884021212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 88416f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 88426f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 88436f02d4e9Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 88446f02d4e9Smrg $as_echo_n "(cached) " >&6 88456f02d4e9Smrgelse 88466f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 884721212451Smrg/* end confdefs.h. */ 884821212451Smrgint i; 884921212451Smrg_ACEOF 88506f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 88516f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=yes 885221212451Smrgelse 88536f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=no 885421212451Smrgfi 885521212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 88566f02d4e9Smrgfi 88576f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 88586f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 88596f02d4e9Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 886021212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 886121212451Smrgfi 886221212451Smrg 88636f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 88646f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 886521212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 886621212451Smrg fi 886721212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 88686f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 88696f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 88706f02d4e9Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 88716f02d4e9Smrg $as_echo_n "(cached) " >&6 88726f02d4e9Smrgelse 88736f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 887421212451Smrg/* end confdefs.h. */ 887521212451Smrgint i; 887621212451Smrg_ACEOF 88776f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 88786f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 887921212451Smrgelse 88806f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=no 888121212451Smrgfi 888221212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 88836f02d4e9Smrgfi 88846f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 88856f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 88866f02d4e9Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 888721212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 888821212451Smrgfi 888921212451Smrg 889021212451Smrgfound="no" 889121212451Smrg 889221212451Smrg if test $found = "no" ; then 88936f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 889421212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 889521212451Smrg fi 889621212451Smrg 88976f02d4e9Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 889821212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 889921212451Smrg fi 890021212451Smrg 890121212451Smrg CFLAGS="$CFLAGS -Winit-self" 890221212451Smrg 89036f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 89046f02d4e9Smrg$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 89056f02d4e9Smrg cacheid=xorg_cv_cc_flag__Winit_self 89066f02d4e9Smrg if eval \${$cacheid+:} false; then : 89076f02d4e9Smrg $as_echo_n "(cached) " >&6 89086f02d4e9Smrgelse 89096f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 891021212451Smrg/* end confdefs.h. */ 891121212451Smrgint i; 891221212451Smrgint 891321212451Smrgmain () 891421212451Smrg{ 891521212451Smrg 891621212451Smrg ; 891721212451Smrg return 0; 891821212451Smrg} 891921212451Smrg_ACEOF 89206f02d4e9Smrgif ac_fn_c_try_link "$LINENO"; then : 89216f02d4e9Smrg eval $cacheid=yes 892221212451Smrgelse 89236f02d4e9Smrg eval $cacheid=no 89246f02d4e9Smrgfi 89256f02d4e9Smrgrm -f core conftest.err conftest.$ac_objext \ 89266f02d4e9Smrg conftest$ac_exeext conftest.$ac_ext 892721212451Smrgfi 892821212451Smrg 89296f02d4e9Smrg 893021212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 893121212451Smrg 89326f02d4e9Smrg eval supported=\$$cacheid 89336f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 89346f02d4e9Smrg$as_echo "$supported" >&6; } 893521212451Smrg if test "$supported" = "yes" ; then 893621212451Smrg BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 893721212451Smrg found="yes" 893821212451Smrg fi 893921212451Smrg fi 894021212451Smrg 894121212451Smrg 894221212451Smrg 894321212451Smrg 894421212451Smrg 894521212451Smrg 894621212451Smrg 89476f02d4e9Smrg 89486f02d4e9Smrg 89496f02d4e9Smrg 89506f02d4e9Smrg 89516f02d4e9Smrg 89526f02d4e9Smrg 89536f02d4e9Smrg 89546f02d4e9Smrg 895521212451Smrgxorg_testset_save_CFLAGS="$CFLAGS" 895621212451Smrg 89576f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 895821212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 89596f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 89606f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 89616f02d4e9Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 89626f02d4e9Smrg $as_echo_n "(cached) " >&6 89636f02d4e9Smrgelse 89646f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 896521212451Smrg/* end confdefs.h. */ 896621212451Smrgint i; 896721212451Smrg_ACEOF 89686f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 89696f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=yes 897021212451Smrgelse 89716f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=no 897221212451Smrgfi 897321212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 89746f02d4e9Smrgfi 89756f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 89766f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 89776f02d4e9Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 897821212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 897921212451Smrgfi 898021212451Smrg 89816f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 89826f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 898321212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 898421212451Smrg fi 898521212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 89866f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 89876f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 89886f02d4e9Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 89896f02d4e9Smrg $as_echo_n "(cached) " >&6 89906f02d4e9Smrgelse 89916f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 899221212451Smrg/* end confdefs.h. */ 899321212451Smrgint i; 899421212451Smrg_ACEOF 89956f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 89966f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 899721212451Smrgelse 89986f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=no 899921212451Smrgfi 900021212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 90016f02d4e9Smrgfi 90026f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 90036f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 90046f02d4e9Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 900521212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 900621212451Smrgfi 900721212451Smrg 900821212451Smrgfound="no" 900921212451Smrg 901021212451Smrg if test $found = "no" ; then 90116f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 901221212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 901321212451Smrg fi 901421212451Smrg 90156f02d4e9Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 901621212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 901721212451Smrg fi 901821212451Smrg 901921212451Smrg CFLAGS="$CFLAGS -Wmain" 902021212451Smrg 90216f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 90226f02d4e9Smrg$as_echo_n "checking if $CC supports -Wmain... " >&6; } 90236f02d4e9Smrg cacheid=xorg_cv_cc_flag__Wmain 90246f02d4e9Smrg if eval \${$cacheid+:} false; then : 90256f02d4e9Smrg $as_echo_n "(cached) " >&6 90266f02d4e9Smrgelse 90276f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 902821212451Smrg/* end confdefs.h. */ 902921212451Smrgint i; 903021212451Smrgint 903121212451Smrgmain () 903221212451Smrg{ 903321212451Smrg 903421212451Smrg ; 903521212451Smrg return 0; 903621212451Smrg} 903721212451Smrg_ACEOF 90386f02d4e9Smrgif ac_fn_c_try_link "$LINENO"; then : 90396f02d4e9Smrg eval $cacheid=yes 904021212451Smrgelse 90416f02d4e9Smrg eval $cacheid=no 904221212451Smrgfi 90436f02d4e9Smrgrm -f core conftest.err conftest.$ac_objext \ 90446f02d4e9Smrg conftest$ac_exeext conftest.$ac_ext 90456f02d4e9Smrgfi 90466f02d4e9Smrg 904721212451Smrg 904821212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 904921212451Smrg 90506f02d4e9Smrg eval supported=\$$cacheid 90516f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 90526f02d4e9Smrg$as_echo "$supported" >&6; } 905321212451Smrg if test "$supported" = "yes" ; then 905421212451Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmain" 905521212451Smrg found="yes" 905621212451Smrg fi 905721212451Smrg fi 905821212451Smrg 905921212451Smrg 906021212451Smrg 906121212451Smrg 906221212451Smrg 906321212451Smrg 906421212451Smrg 90656f02d4e9Smrg 90666f02d4e9Smrg 90676f02d4e9Smrg 90686f02d4e9Smrg 90696f02d4e9Smrg 90706f02d4e9Smrg 90716f02d4e9Smrg 90726f02d4e9Smrg 907321212451Smrgxorg_testset_save_CFLAGS="$CFLAGS" 907421212451Smrg 90756f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 907621212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 90776f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 90786f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 90796f02d4e9Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 90806f02d4e9Smrg $as_echo_n "(cached) " >&6 90816f02d4e9Smrgelse 90826f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 90836f02d4e9Smrg/* end confdefs.h. */ 90846f02d4e9Smrgint i; 90856f02d4e9Smrg_ACEOF 90866f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 90876f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=yes 908821212451Smrgelse 90896f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=no 909021212451Smrgfi 909121212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 90926f02d4e9Smrgfi 90936f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 90946f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 90956f02d4e9Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 909621212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 909721212451Smrgfi 909821212451Smrg 90996f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 91006f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 910121212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 910221212451Smrg fi 910321212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 91046f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 91056f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 91066f02d4e9Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 91076f02d4e9Smrg $as_echo_n "(cached) " >&6 91086f02d4e9Smrgelse 91096f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 911021212451Smrg/* end confdefs.h. */ 911121212451Smrgint i; 911221212451Smrg_ACEOF 91136f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 91146f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 911521212451Smrgelse 91166f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=no 911721212451Smrgfi 911821212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 91196f02d4e9Smrgfi 91206f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 91216f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 91226f02d4e9Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 912321212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 912421212451Smrgfi 912521212451Smrg 912621212451Smrgfound="no" 912721212451Smrg 912821212451Smrg if test $found = "no" ; then 91296f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 913021212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 913121212451Smrg fi 913221212451Smrg 91336f02d4e9Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 913421212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 913521212451Smrg fi 913621212451Smrg 913721212451Smrg CFLAGS="$CFLAGS -Wmissing-braces" 913821212451Smrg 91396f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 91406f02d4e9Smrg$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 91416f02d4e9Smrg cacheid=xorg_cv_cc_flag__Wmissing_braces 91426f02d4e9Smrg if eval \${$cacheid+:} false; then : 91436f02d4e9Smrg $as_echo_n "(cached) " >&6 91446f02d4e9Smrgelse 91456f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 914621212451Smrg/* end confdefs.h. */ 914721212451Smrgint i; 914821212451Smrgint 914921212451Smrgmain () 915021212451Smrg{ 915121212451Smrg 915221212451Smrg ; 915321212451Smrg return 0; 915421212451Smrg} 915521212451Smrg_ACEOF 91566f02d4e9Smrgif ac_fn_c_try_link "$LINENO"; then : 91576f02d4e9Smrg eval $cacheid=yes 915821212451Smrgelse 91596f02d4e9Smrg eval $cacheid=no 91606f02d4e9Smrgfi 91616f02d4e9Smrgrm -f core conftest.err conftest.$ac_objext \ 91626f02d4e9Smrg conftest$ac_exeext conftest.$ac_ext 916321212451Smrgfi 916421212451Smrg 91656f02d4e9Smrg 916621212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 916721212451Smrg 91686f02d4e9Smrg eval supported=\$$cacheid 91696f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 91706f02d4e9Smrg$as_echo "$supported" >&6; } 917121212451Smrg if test "$supported" = "yes" ; then 917221212451Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 917321212451Smrg found="yes" 917421212451Smrg fi 917521212451Smrg fi 917621212451Smrg 917721212451Smrg 917821212451Smrg 917921212451Smrg 918021212451Smrg 918121212451Smrg 918221212451Smrg 91836f02d4e9Smrg 91846f02d4e9Smrg 91856f02d4e9Smrg 91866f02d4e9Smrg 91876f02d4e9Smrg 91886f02d4e9Smrg 91896f02d4e9Smrg 91906f02d4e9Smrg 919121212451Smrgxorg_testset_save_CFLAGS="$CFLAGS" 919221212451Smrg 91936f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 919421212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 91956f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 91966f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 91976f02d4e9Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 91986f02d4e9Smrg $as_echo_n "(cached) " >&6 91996f02d4e9Smrgelse 92006f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 920121212451Smrg/* end confdefs.h. */ 920221212451Smrgint i; 920321212451Smrg_ACEOF 92046f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 92056f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=yes 920621212451Smrgelse 92076f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=no 920821212451Smrgfi 920921212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 92106f02d4e9Smrgfi 92116f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 92126f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 92136f02d4e9Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 921421212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 921521212451Smrgfi 921621212451Smrg 92176f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 92186f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 921921212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 922021212451Smrg fi 922121212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 92226f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 92236f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 92246f02d4e9Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 92256f02d4e9Smrg $as_echo_n "(cached) " >&6 92266f02d4e9Smrgelse 92276f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 922821212451Smrg/* end confdefs.h. */ 922921212451Smrgint i; 923021212451Smrg_ACEOF 92316f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 92326f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 923321212451Smrgelse 92346f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=no 923521212451Smrgfi 923621212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 92376f02d4e9Smrgfi 92386f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 92396f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 92406f02d4e9Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 924121212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 924221212451Smrgfi 924321212451Smrg 924421212451Smrgfound="no" 924521212451Smrg 924621212451Smrg if test $found = "no" ; then 92476f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 924821212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 924921212451Smrg fi 925021212451Smrg 92516f02d4e9Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 925221212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 925321212451Smrg fi 925421212451Smrg 925521212451Smrg CFLAGS="$CFLAGS -Wsequence-point" 925621212451Smrg 92576f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 92586f02d4e9Smrg$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 92596f02d4e9Smrg cacheid=xorg_cv_cc_flag__Wsequence_point 92606f02d4e9Smrg if eval \${$cacheid+:} false; then : 92616f02d4e9Smrg $as_echo_n "(cached) " >&6 92626f02d4e9Smrgelse 92636f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 926421212451Smrg/* end confdefs.h. */ 926521212451Smrgint i; 926621212451Smrgint 926721212451Smrgmain () 926821212451Smrg{ 926921212451Smrg 927021212451Smrg ; 927121212451Smrg return 0; 927221212451Smrg} 927321212451Smrg_ACEOF 92746f02d4e9Smrgif ac_fn_c_try_link "$LINENO"; then : 92756f02d4e9Smrg eval $cacheid=yes 927621212451Smrgelse 92776f02d4e9Smrg eval $cacheid=no 927821212451Smrgfi 92796f02d4e9Smrgrm -f core conftest.err conftest.$ac_objext \ 92806f02d4e9Smrg conftest$ac_exeext conftest.$ac_ext 92816f02d4e9Smrgfi 92826f02d4e9Smrg 928321212451Smrg 928421212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 928521212451Smrg 92866f02d4e9Smrg eval supported=\$$cacheid 92876f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 92886f02d4e9Smrg$as_echo "$supported" >&6; } 928921212451Smrg if test "$supported" = "yes" ; then 929021212451Smrg BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 929121212451Smrg found="yes" 929221212451Smrg fi 929321212451Smrg fi 929421212451Smrg 929521212451Smrg 929621212451Smrg 929721212451Smrg 929821212451Smrg 929921212451Smrg 930021212451Smrg 93016f02d4e9Smrg 93026f02d4e9Smrg 93036f02d4e9Smrg 93046f02d4e9Smrg 93056f02d4e9Smrg 93066f02d4e9Smrg 93076f02d4e9Smrg 93086f02d4e9Smrg 930921212451Smrgxorg_testset_save_CFLAGS="$CFLAGS" 931021212451Smrg 93116f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 931221212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 93136f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 93146f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 93156f02d4e9Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 93166f02d4e9Smrg $as_echo_n "(cached) " >&6 93176f02d4e9Smrgelse 93186f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 931921212451Smrg/* end confdefs.h. */ 932021212451Smrgint i; 932121212451Smrg_ACEOF 93226f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 93236f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=yes 932421212451Smrgelse 93256f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=no 932621212451Smrgfi 932721212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 93286f02d4e9Smrgfi 93296f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 93306f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 93316f02d4e9Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 933221212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 933321212451Smrgfi 933421212451Smrg 93356f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 93366f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 933721212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 933821212451Smrg fi 933921212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 93406f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 93416f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 93426f02d4e9Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 93436f02d4e9Smrg $as_echo_n "(cached) " >&6 93446f02d4e9Smrgelse 93456f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 934621212451Smrg/* end confdefs.h. */ 934721212451Smrgint i; 934821212451Smrg_ACEOF 93496f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 93506f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 935121212451Smrgelse 93526f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=no 935321212451Smrgfi 935421212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 93556f02d4e9Smrgfi 93566f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 93576f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 93586f02d4e9Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 935921212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 936021212451Smrgfi 936121212451Smrg 936221212451Smrgfound="no" 936321212451Smrg 936421212451Smrg if test $found = "no" ; then 93656f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 936621212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 936721212451Smrg fi 936821212451Smrg 93696f02d4e9Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 937021212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 937121212451Smrg fi 937221212451Smrg 937321212451Smrg CFLAGS="$CFLAGS -Wreturn-type" 937421212451Smrg 93756f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 93766f02d4e9Smrg$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 93776f02d4e9Smrg cacheid=xorg_cv_cc_flag__Wreturn_type 93786f02d4e9Smrg if eval \${$cacheid+:} false; then : 93796f02d4e9Smrg $as_echo_n "(cached) " >&6 93806f02d4e9Smrgelse 93816f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 938221212451Smrg/* end confdefs.h. */ 938321212451Smrgint i; 938421212451Smrgint 938521212451Smrgmain () 938621212451Smrg{ 938721212451Smrg 938821212451Smrg ; 938921212451Smrg return 0; 939021212451Smrg} 939121212451Smrg_ACEOF 93926f02d4e9Smrgif ac_fn_c_try_link "$LINENO"; then : 93936f02d4e9Smrg eval $cacheid=yes 939421212451Smrgelse 93956f02d4e9Smrg eval $cacheid=no 93966f02d4e9Smrgfi 93976f02d4e9Smrgrm -f core conftest.err conftest.$ac_objext \ 93986f02d4e9Smrg conftest$ac_exeext conftest.$ac_ext 939921212451Smrgfi 940021212451Smrg 94016f02d4e9Smrg 940221212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 940321212451Smrg 94046f02d4e9Smrg eval supported=\$$cacheid 94056f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 94066f02d4e9Smrg$as_echo "$supported" >&6; } 940721212451Smrg if test "$supported" = "yes" ; then 940821212451Smrg BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 940921212451Smrg found="yes" 941021212451Smrg fi 941121212451Smrg fi 941221212451Smrg 941321212451Smrg 941421212451Smrg 941521212451Smrg 941621212451Smrg 941721212451Smrg 941821212451Smrg 94196f02d4e9Smrg 94206f02d4e9Smrg 94216f02d4e9Smrg 94226f02d4e9Smrg 94236f02d4e9Smrg 94246f02d4e9Smrg 94256f02d4e9Smrg 94266f02d4e9Smrg 942721212451Smrgxorg_testset_save_CFLAGS="$CFLAGS" 942821212451Smrg 94296f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 943021212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 94316f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 94326f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 94336f02d4e9Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 94346f02d4e9Smrg $as_echo_n "(cached) " >&6 94356f02d4e9Smrgelse 94366f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 943721212451Smrg/* end confdefs.h. */ 943821212451Smrgint i; 943921212451Smrg_ACEOF 94406f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 94416f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=yes 944221212451Smrgelse 94436f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=no 944421212451Smrgfi 944521212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 94466f02d4e9Smrgfi 94476f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 94486f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 94496f02d4e9Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 945021212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 945121212451Smrgfi 945221212451Smrg 94536f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 94546f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 945521212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 945621212451Smrg fi 945721212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 94586f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 94596f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 94606f02d4e9Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 94616f02d4e9Smrg $as_echo_n "(cached) " >&6 94626f02d4e9Smrgelse 94636f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 946421212451Smrg/* end confdefs.h. */ 946521212451Smrgint i; 946621212451Smrg_ACEOF 94676f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 94686f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 946921212451Smrgelse 94706f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=no 947121212451Smrgfi 947221212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 94736f02d4e9Smrgfi 94746f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 94756f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 94766f02d4e9Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 947721212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 947821212451Smrgfi 947921212451Smrg 948021212451Smrgfound="no" 948121212451Smrg 948221212451Smrg if test $found = "no" ; then 94836f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 948421212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 948521212451Smrg fi 948621212451Smrg 94876f02d4e9Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 948821212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 948921212451Smrg fi 949021212451Smrg 949121212451Smrg CFLAGS="$CFLAGS -Wtrigraphs" 949221212451Smrg 94936f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 94946f02d4e9Smrg$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 94956f02d4e9Smrg cacheid=xorg_cv_cc_flag__Wtrigraphs 94966f02d4e9Smrg if eval \${$cacheid+:} false; then : 94976f02d4e9Smrg $as_echo_n "(cached) " >&6 94986f02d4e9Smrgelse 94996f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 950021212451Smrg/* end confdefs.h. */ 950121212451Smrgint i; 950221212451Smrgint 950321212451Smrgmain () 950421212451Smrg{ 950521212451Smrg 950621212451Smrg ; 950721212451Smrg return 0; 950821212451Smrg} 950921212451Smrg_ACEOF 95106f02d4e9Smrgif ac_fn_c_try_link "$LINENO"; then : 95116f02d4e9Smrg eval $cacheid=yes 951221212451Smrgelse 95136f02d4e9Smrg eval $cacheid=no 951421212451Smrgfi 95156f02d4e9Smrgrm -f core conftest.err conftest.$ac_objext \ 95166f02d4e9Smrg conftest$ac_exeext conftest.$ac_ext 95176f02d4e9Smrgfi 95186f02d4e9Smrg 951921212451Smrg 952021212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 952121212451Smrg 95226f02d4e9Smrg eval supported=\$$cacheid 95236f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 95246f02d4e9Smrg$as_echo "$supported" >&6; } 952521212451Smrg if test "$supported" = "yes" ; then 952621212451Smrg BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 952721212451Smrg found="yes" 952821212451Smrg fi 952921212451Smrg fi 953021212451Smrg 953121212451Smrg 953221212451Smrg 953321212451Smrg 953421212451Smrg 953521212451Smrg 953621212451Smrg 95376f02d4e9Smrg 95386f02d4e9Smrg 95396f02d4e9Smrg 95406f02d4e9Smrg 95416f02d4e9Smrg 95426f02d4e9Smrg 95436f02d4e9Smrg 95446f02d4e9Smrg 954521212451Smrgxorg_testset_save_CFLAGS="$CFLAGS" 954621212451Smrg 95476f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 954821212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 95496f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 95506f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 95516f02d4e9Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 95526f02d4e9Smrg $as_echo_n "(cached) " >&6 95536f02d4e9Smrgelse 95546f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 955521212451Smrg/* end confdefs.h. */ 955621212451Smrgint i; 955721212451Smrg_ACEOF 95586f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 95596f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=yes 956021212451Smrgelse 95616f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=no 956221212451Smrgfi 956321212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 95646f02d4e9Smrgfi 95656f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 95666f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 95676f02d4e9Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 956821212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 956921212451Smrgfi 957021212451Smrg 95716f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 95726f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 957321212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 957421212451Smrg fi 957521212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 95766f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 95776f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 95786f02d4e9Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 95796f02d4e9Smrg $as_echo_n "(cached) " >&6 95806f02d4e9Smrgelse 95816f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 958221212451Smrg/* end confdefs.h. */ 958321212451Smrgint i; 958421212451Smrg_ACEOF 95856f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 95866f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 958721212451Smrgelse 95886f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=no 958921212451Smrgfi 959021212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 95916f02d4e9Smrgfi 95926f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 95936f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 95946f02d4e9Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 959521212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 959621212451Smrgfi 959721212451Smrg 959821212451Smrgfound="no" 959929004570Smrg 960021212451Smrg if test $found = "no" ; then 96016f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 960221212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 960321212451Smrg fi 960429004570Smrg 96056f02d4e9Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 960621212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 960721212451Smrg fi 960829004570Smrg 960921212451Smrg CFLAGS="$CFLAGS -Warray-bounds" 961029004570Smrg 96116f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 96126f02d4e9Smrg$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 96136f02d4e9Smrg cacheid=xorg_cv_cc_flag__Warray_bounds 96146f02d4e9Smrg if eval \${$cacheid+:} false; then : 96156f02d4e9Smrg $as_echo_n "(cached) " >&6 96166f02d4e9Smrgelse 96176f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 961821212451Smrg/* end confdefs.h. */ 961921212451Smrgint i; 962021212451Smrgint 962121212451Smrgmain () 962221212451Smrg{ 962329004570Smrg 962429004570Smrg ; 962529004570Smrg return 0; 962629004570Smrg} 962729004570Smrg_ACEOF 96286f02d4e9Smrgif ac_fn_c_try_link "$LINENO"; then : 96296f02d4e9Smrg eval $cacheid=yes 963021212451Smrgelse 96316f02d4e9Smrg eval $cacheid=no 96326f02d4e9Smrgfi 96336f02d4e9Smrgrm -f core conftest.err conftest.$ac_objext \ 96346f02d4e9Smrg conftest$ac_exeext conftest.$ac_ext 963529004570Smrgfi 963629004570Smrg 96376f02d4e9Smrg 963821212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 963929004570Smrg 96406f02d4e9Smrg eval supported=\$$cacheid 96416f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 96426f02d4e9Smrg$as_echo "$supported" >&6; } 964321212451Smrg if test "$supported" = "yes" ; then 964421212451Smrg BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 964521212451Smrg found="yes" 964621212451Smrg fi 964721212451Smrg fi 964829004570Smrg 964921212451Smrg 965021212451Smrg 965121212451Smrg 965221212451Smrg 965321212451Smrg 965421212451Smrg 96556f02d4e9Smrg 96566f02d4e9Smrg 96576f02d4e9Smrg 96586f02d4e9Smrg 96596f02d4e9Smrg 96606f02d4e9Smrg 96616f02d4e9Smrg 96626f02d4e9Smrg 966321212451Smrgxorg_testset_save_CFLAGS="$CFLAGS" 966421212451Smrg 96656f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 966621212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 96676f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 96686f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 96696f02d4e9Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 96706f02d4e9Smrg $as_echo_n "(cached) " >&6 96716f02d4e9Smrgelse 96726f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 967329004570Smrg/* end confdefs.h. */ 967421212451Smrgint i; 967529004570Smrg_ACEOF 96766f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 96776f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=yes 967829004570Smrgelse 96796f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=no 968029004570Smrgfi 968121212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 96826f02d4e9Smrgfi 96836f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 96846f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 96856f02d4e9Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 968621212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 968721212451Smrgfi 968821212451Smrg 96896f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 96906f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 969121212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 969221212451Smrg fi 969321212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 96946f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 96956f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 96966f02d4e9Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 96976f02d4e9Smrg $as_echo_n "(cached) " >&6 96986f02d4e9Smrgelse 96996f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 970029004570Smrg/* end confdefs.h. */ 970121212451Smrgint i; 970229004570Smrg_ACEOF 97036f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 97046f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 9705a73027baSmrgelse 97066f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=no 9707a73027baSmrgfi 970821212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 97096f02d4e9Smrgfi 97106f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 97116f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 97126f02d4e9Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 971321212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9714a73027baSmrgfi 9715a73027baSmrg 971621212451Smrgfound="no" 9717a73027baSmrg 971821212451Smrg if test $found = "no" ; then 97196f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 972021212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 972121212451Smrg fi 972221212451Smrg 97236f02d4e9Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 972421212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 972521212451Smrg fi 972621212451Smrg 972721212451Smrg CFLAGS="$CFLAGS -Wwrite-strings" 972821212451Smrg 97296f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 97306f02d4e9Smrg$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 97316f02d4e9Smrg cacheid=xorg_cv_cc_flag__Wwrite_strings 97326f02d4e9Smrg if eval \${$cacheid+:} false; then : 97336f02d4e9Smrg $as_echo_n "(cached) " >&6 97346f02d4e9Smrgelse 97356f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 973621212451Smrg/* end confdefs.h. */ 973721212451Smrgint i; 973821212451Smrgint 973921212451Smrgmain () 974021212451Smrg{ 9741a73027baSmrg 974221212451Smrg ; 974321212451Smrg return 0; 974421212451Smrg} 974521212451Smrg_ACEOF 97466f02d4e9Smrgif ac_fn_c_try_link "$LINENO"; then : 97476f02d4e9Smrg eval $cacheid=yes 9748bf4a254eSmrgelse 97496f02d4e9Smrg eval $cacheid=no 9750a73027baSmrgfi 97516f02d4e9Smrgrm -f core conftest.err conftest.$ac_objext \ 97526f02d4e9Smrg conftest$ac_exeext conftest.$ac_ext 97536f02d4e9Smrgfi 97546f02d4e9Smrg 9755a73027baSmrg 975621212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 975721212451Smrg 97586f02d4e9Smrg eval supported=\$$cacheid 97596f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 97606f02d4e9Smrg$as_echo "$supported" >&6; } 976121212451Smrg if test "$supported" = "yes" ; then 976221212451Smrg BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 976321212451Smrg found="yes" 976421212451Smrg fi 976521212451Smrg fi 976621212451Smrg 976721212451Smrg 976821212451Smrg 976921212451Smrg 977021212451Smrg 977121212451Smrg 977221212451Smrg 97736f02d4e9Smrg 97746f02d4e9Smrg 97756f02d4e9Smrg 97766f02d4e9Smrg 97776f02d4e9Smrg 97786f02d4e9Smrg 97796f02d4e9Smrg 97806f02d4e9Smrg 978121212451Smrgxorg_testset_save_CFLAGS="$CFLAGS" 978221212451Smrg 97836f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 978421212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 97856f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 97866f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 97876f02d4e9Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 97886f02d4e9Smrg $as_echo_n "(cached) " >&6 97896f02d4e9Smrgelse 97906f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9791a73027baSmrg/* end confdefs.h. */ 979221212451Smrgint i; 9793a73027baSmrg_ACEOF 97946f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 97956f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=yes 9796a73027baSmrgelse 97976f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=no 9798a73027baSmrgfi 979921212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 98006f02d4e9Smrgfi 98016f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 98026f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 98036f02d4e9Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 980421212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 980521212451Smrgfi 9806bf4a254eSmrg 98076f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 98086f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 980921212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 981021212451Smrg fi 981121212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 98126f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 98136f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 98146f02d4e9Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 98156f02d4e9Smrg $as_echo_n "(cached) " >&6 98166f02d4e9Smrgelse 98176f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 981821212451Smrg/* end confdefs.h. */ 981921212451Smrgint i; 982021212451Smrg_ACEOF 98216f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 98226f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 9823a73027baSmrgelse 98246f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=no 9825a73027baSmrgfi 982621212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 98276f02d4e9Smrgfi 98286f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 98296f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 98306f02d4e9Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 983121212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 983221212451Smrgfi 9833a73027baSmrg 983421212451Smrgfound="no" 9835a73027baSmrg 983621212451Smrg if test $found = "no" ; then 98376f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 983821212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 983921212451Smrg fi 984021212451Smrg 98416f02d4e9Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 984221212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 984321212451Smrg fi 984421212451Smrg 984521212451Smrg CFLAGS="$CFLAGS -Waddress" 984621212451Smrg 98476f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 98486f02d4e9Smrg$as_echo_n "checking if $CC supports -Waddress... " >&6; } 98496f02d4e9Smrg cacheid=xorg_cv_cc_flag__Waddress 98506f02d4e9Smrg if eval \${$cacheid+:} false; then : 98516f02d4e9Smrg $as_echo_n "(cached) " >&6 98526f02d4e9Smrgelse 98536f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 985421212451Smrg/* end confdefs.h. */ 985521212451Smrgint i; 985621212451Smrgint 985721212451Smrgmain () 985821212451Smrg{ 9859a73027baSmrg 986021212451Smrg ; 986121212451Smrg return 0; 986221212451Smrg} 986321212451Smrg_ACEOF 98646f02d4e9Smrgif ac_fn_c_try_link "$LINENO"; then : 98656f02d4e9Smrg eval $cacheid=yes 9866a73027baSmrgelse 98676f02d4e9Smrg eval $cacheid=no 98686f02d4e9Smrgfi 98696f02d4e9Smrgrm -f core conftest.err conftest.$ac_objext \ 98706f02d4e9Smrg conftest$ac_exeext conftest.$ac_ext 9871a73027baSmrgfi 9872a73027baSmrg 98736f02d4e9Smrg 987421212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9875a73027baSmrg 98766f02d4e9Smrg eval supported=\$$cacheid 98776f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 98786f02d4e9Smrg$as_echo "$supported" >&6; } 987921212451Smrg if test "$supported" = "yes" ; then 988021212451Smrg BASE_CFLAGS="$BASE_CFLAGS -Waddress" 988121212451Smrg found="yes" 988221212451Smrg fi 988321212451Smrg fi 988421212451Smrg 988521212451Smrg 988621212451Smrg 988721212451Smrg 988821212451Smrg 988921212451Smrg 989021212451Smrg 98916f02d4e9Smrg 98926f02d4e9Smrg 98936f02d4e9Smrg 98946f02d4e9Smrg 98956f02d4e9Smrg 98966f02d4e9Smrg 98976f02d4e9Smrg 98986f02d4e9Smrg 989921212451Smrgxorg_testset_save_CFLAGS="$CFLAGS" 990021212451Smrg 99016f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 990221212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 99036f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 99046f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 99056f02d4e9Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 99066f02d4e9Smrg $as_echo_n "(cached) " >&6 99076f02d4e9Smrgelse 99086f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 990921212451Smrg/* end confdefs.h. */ 991021212451Smrgint i; 991121212451Smrg_ACEOF 99126f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 99136f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=yes 991421212451Smrgelse 99156f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=no 991621212451Smrgfi 991721212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 99186f02d4e9Smrgfi 99196f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 99206f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 99216f02d4e9Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 992221212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 992321212451Smrgfi 992421212451Smrg 99256f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 99266f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 992721212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 992821212451Smrg fi 992921212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 99306f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 99316f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 99326f02d4e9Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 99336f02d4e9Smrg $as_echo_n "(cached) " >&6 99346f02d4e9Smrgelse 99356f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 993621212451Smrg/* end confdefs.h. */ 993721212451Smrgint i; 993821212451Smrg_ACEOF 99396f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 99406f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 9941a73027baSmrgelse 99426f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=no 9943a73027baSmrgfi 994421212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 99456f02d4e9Smrgfi 99466f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 99476f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 99486f02d4e9Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 994921212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9950a73027baSmrgfi 9951a73027baSmrg 995221212451Smrgfound="no" 9953a73027baSmrg 995421212451Smrg if test $found = "no" ; then 99556f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 995621212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 995721212451Smrg fi 995821212451Smrg 99596f02d4e9Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 996021212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 996121212451Smrg fi 9962a73027baSmrg 996321212451Smrg CFLAGS="$CFLAGS -Wint-to-pointer-cast" 996421212451Smrg 99656f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 99666f02d4e9Smrg$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 99676f02d4e9Smrg cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 99686f02d4e9Smrg if eval \${$cacheid+:} false; then : 99696f02d4e9Smrg $as_echo_n "(cached) " >&6 99706f02d4e9Smrgelse 99716f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 997221212451Smrg/* end confdefs.h. */ 997321212451Smrgint i; 9974a73027baSmrgint 9975a73027baSmrgmain () 9976a73027baSmrg{ 9977a73027baSmrg 9978a73027baSmrg ; 9979a73027baSmrg return 0; 9980a73027baSmrg} 9981a73027baSmrg_ACEOF 99826f02d4e9Smrgif ac_fn_c_try_link "$LINENO"; then : 99836f02d4e9Smrg eval $cacheid=yes 9984a73027baSmrgelse 99856f02d4e9Smrg eval $cacheid=no 9986a73027baSmrgfi 99876f02d4e9Smrgrm -f core conftest.err conftest.$ac_objext \ 99886f02d4e9Smrg conftest$ac_exeext conftest.$ac_ext 99896f02d4e9Smrgfi 99906f02d4e9Smrg 9991a73027baSmrg 999221212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 999321212451Smrg 99946f02d4e9Smrg eval supported=\$$cacheid 99956f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 99966f02d4e9Smrg$as_echo "$supported" >&6; } 999721212451Smrg if test "$supported" = "yes" ; then 999821212451Smrg BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 999921212451Smrg found="yes" 1000021212451Smrg fi 1000121212451Smrg fi 1000221212451Smrg 1000321212451Smrg 1000421212451Smrg 10005a73027baSmrg 10006bf4a254eSmrg 1000721212451Smrg 1000821212451Smrg 100096f02d4e9Smrg 100106f02d4e9Smrg 100116f02d4e9Smrg 100126f02d4e9Smrg 100136f02d4e9Smrg 100146f02d4e9Smrg 100156f02d4e9Smrg 100166f02d4e9Smrg 1001721212451Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1001821212451Smrg 100196f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1002021212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 100216f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 100226f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 100236f02d4e9Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 100246f02d4e9Smrg $as_echo_n "(cached) " >&6 100256f02d4e9Smrgelse 100266f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1002721212451Smrg/* end confdefs.h. */ 1002821212451Smrgint i; 1002921212451Smrg_ACEOF 100306f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 100316f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=yes 10032a73027baSmrgelse 100336f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=no 10034a73027baSmrgfi 1003521212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 100366f02d4e9Smrgfi 100376f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 100386f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 100396f02d4e9Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1004021212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10041a73027baSmrgfi 10042a73027baSmrg 100436f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 100446f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1004521212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1004621212451Smrg fi 1004721212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 100486f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 100496f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 100506f02d4e9Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 100516f02d4e9Smrg $as_echo_n "(cached) " >&6 100526f02d4e9Smrgelse 100536f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10054a73027baSmrg/* end confdefs.h. */ 1005521212451Smrgint i; 10056a73027baSmrg_ACEOF 100576f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 100586f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 10059a73027baSmrgelse 100606f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=no 10061a73027baSmrgfi 1006221212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 100636f02d4e9Smrgfi 100646f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 100656f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 100666f02d4e9Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1006721212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10068a73027baSmrgfi 10069a73027baSmrg 1007021212451Smrgfound="no" 10071a73027baSmrg 1007221212451Smrg if test $found = "no" ; then 100736f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1007421212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1007521212451Smrg fi 1007621212451Smrg 100776f02d4e9Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1007821212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1007921212451Smrg fi 1008021212451Smrg 1008121212451Smrg CFLAGS="$CFLAGS -Wpointer-to-int-cast" 1008221212451Smrg 100836f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 100846f02d4e9Smrg$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 100856f02d4e9Smrg cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 100866f02d4e9Smrg if eval \${$cacheid+:} false; then : 100876f02d4e9Smrg $as_echo_n "(cached) " >&6 100886f02d4e9Smrgelse 100896f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1009021212451Smrg/* end confdefs.h. */ 1009121212451Smrgint i; 10092a73027baSmrgint 10093a73027baSmrgmain () 10094a73027baSmrg{ 1009521212451Smrg 1009621212451Smrg ; 10097a73027baSmrg return 0; 10098a73027baSmrg} 10099a73027baSmrg_ACEOF 101006f02d4e9Smrgif ac_fn_c_try_link "$LINENO"; then : 101016f02d4e9Smrg eval $cacheid=yes 10102bf4a254eSmrgelse 101036f02d4e9Smrg eval $cacheid=no 101046f02d4e9Smrgfi 101056f02d4e9Smrgrm -f core conftest.err conftest.$ac_objext \ 101066f02d4e9Smrg conftest$ac_exeext conftest.$ac_ext 10107a73027baSmrgfi 1010821212451Smrg 101096f02d4e9Smrg 1011021212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1011121212451Smrg 101126f02d4e9Smrg eval supported=\$$cacheid 101136f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 101146f02d4e9Smrg$as_echo "$supported" >&6; } 1011521212451Smrg if test "$supported" = "yes" ; then 1011621212451Smrg BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 1011721212451Smrg found="yes" 1011821212451Smrg fi 1011921212451Smrg fi 1012021212451Smrg 1012121212451Smrg 10122a73027baSmrgfi 10123a73027baSmrg 1012421212451Smrg 1012521212451Smrg 1012621212451Smrg 1012721212451Smrg 1012821212451Smrg 101296f02d4e9Smrg 101306f02d4e9Smrg CWARNFLAGS="$BASE_CFLAGS" 101316f02d4e9Smrg if test "x$GCC" = xyes ; then 101326f02d4e9Smrg CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 101336f02d4e9Smrg fi 101346f02d4e9Smrg 101356f02d4e9Smrg 1013621212451Smrg 1013721212451Smrg 1013821212451Smrg 1013921212451Smrg 1014021212451Smrg 1014121212451Smrg 1014221212451Smrg# Check whether --enable-strict-compilation was given. 101436f02d4e9Smrgif test "${enable_strict_compilation+set}" = set; then : 1014421212451Smrg enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 1014521212451Smrgelse 1014621212451Smrg STRICT_COMPILE=no 10147a73027baSmrgfi 10148a73027baSmrg 10149a73027baSmrg 101506f02d4e9Smrg 101516f02d4e9Smrg 101526f02d4e9Smrg 101536f02d4e9Smrg 1015421212451SmrgSTRICT_CFLAGS="" 1015521212451Smrg 1015621212451Smrg 1015721212451Smrg 1015821212451Smrg 1015921212451Smrg 101606f02d4e9Smrg 101616f02d4e9Smrg 101626f02d4e9Smrg 101636f02d4e9Smrg 101646f02d4e9Smrg 101656f02d4e9Smrg 101666f02d4e9Smrg 101676f02d4e9Smrg 1016821212451Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1016921212451Smrg 101706f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1017121212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 101726f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 101736f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 101746f02d4e9Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 101756f02d4e9Smrg $as_echo_n "(cached) " >&6 101766f02d4e9Smrgelse 101776f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1017821212451Smrg/* end confdefs.h. */ 1017921212451Smrgint i; 1018021212451Smrg_ACEOF 101816f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 101826f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1018321212451Smrgelse 101846f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=no 1018521212451Smrgfi 1018621212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 101876f02d4e9Smrgfi 101886f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 101896f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 101906f02d4e9Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1019121212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10192a73027baSmrgfi 10193a73027baSmrg 101946f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 101956f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1019621212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1019721212451Smrg fi 1019821212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 101996f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 102006f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 102016f02d4e9Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 102026f02d4e9Smrg $as_echo_n "(cached) " >&6 102036f02d4e9Smrgelse 102046f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1020521212451Smrg/* end confdefs.h. */ 1020621212451Smrgint i; 10207bf4a254eSmrg_ACEOF 102086f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 102096f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1021021212451Smrgelse 102116f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=no 10212bf4a254eSmrgfi 1021321212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 102146f02d4e9Smrgfi 102156f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 102166f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 102176f02d4e9Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1021821212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1021921212451Smrgfi 10220a73027baSmrg 1022121212451Smrgfound="no" 10222a73027baSmrg 1022321212451Smrg if test $found = "no" ; then 102246f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1022521212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1022621212451Smrg fi 1022729004570Smrg 102286f02d4e9Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1022921212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1023021212451Smrg fi 1023129004570Smrg 1023221212451Smrg CFLAGS="$CFLAGS -pedantic" 10233c81d8f5eSmrg 102346f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 102356f02d4e9Smrg$as_echo_n "checking if $CC supports -pedantic... " >&6; } 102366f02d4e9Smrg cacheid=xorg_cv_cc_flag__pedantic 102376f02d4e9Smrg if eval \${$cacheid+:} false; then : 102386f02d4e9Smrg $as_echo_n "(cached) " >&6 102396f02d4e9Smrgelse 102406f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1024121212451Smrg/* end confdefs.h. */ 1024221212451Smrgint i; 1024321212451Smrgint 1024421212451Smrgmain () 1024521212451Smrg{ 10246c81d8f5eSmrg 1024721212451Smrg ; 1024821212451Smrg return 0; 1024921212451Smrg} 1025021212451Smrg_ACEOF 102516f02d4e9Smrgif ac_fn_c_try_link "$LINENO"; then : 102526f02d4e9Smrg eval $cacheid=yes 10253c81d8f5eSmrgelse 102546f02d4e9Smrg eval $cacheid=no 102556f02d4e9Smrgfi 102566f02d4e9Smrgrm -f core conftest.err conftest.$ac_objext \ 102576f02d4e9Smrg conftest$ac_exeext conftest.$ac_ext 10258c81d8f5eSmrgfi 10259c81d8f5eSmrg 102606f02d4e9Smrg 1026121212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10262c81d8f5eSmrg 102636f02d4e9Smrg eval supported=\$$cacheid 102646f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 102656f02d4e9Smrg$as_echo "$supported" >&6; } 1026621212451Smrg if test "$supported" = "yes" ; then 1026721212451Smrg STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 1026821212451Smrg found="yes" 1026921212451Smrg fi 1027021212451Smrg fi 10271c81d8f5eSmrg 10272c81d8f5eSmrg 10273c81d8f5eSmrg 10274c81d8f5eSmrg 10275c81d8f5eSmrg 10276c81d8f5eSmrg 10277c81d8f5eSmrg 102786f02d4e9Smrg 102796f02d4e9Smrg 102806f02d4e9Smrg 102816f02d4e9Smrg 102826f02d4e9Smrg 102836f02d4e9Smrg 102846f02d4e9Smrg 102856f02d4e9Smrg 1028621212451Smrgxorg_testset_save_CFLAGS="$CFLAGS" 10287bf4a254eSmrg 102886f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1028921212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 102906f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 102916f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 102926f02d4e9Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 102936f02d4e9Smrg $as_echo_n "(cached) " >&6 102946f02d4e9Smrgelse 102956f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1029621212451Smrg/* end confdefs.h. */ 1029721212451Smrgint i; 1029821212451Smrg_ACEOF 102996f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 103006f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=yes 10301a73027baSmrgelse 103026f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=no 10303bf4a254eSmrgfi 1030421212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 103056f02d4e9Smrgfi 103066f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 103076f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 103086f02d4e9Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1030921212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10310a73027baSmrgfi 10311a73027baSmrg 103126f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 103136f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1031421212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1031521212451Smrg fi 1031621212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 103176f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 103186f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 103196f02d4e9Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 103206f02d4e9Smrg $as_echo_n "(cached) " >&6 103216f02d4e9Smrgelse 103226f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1032321212451Smrg/* end confdefs.h. */ 1032421212451Smrgint i; 1032521212451Smrg_ACEOF 103266f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 103276f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 10328a73027baSmrgelse 103296f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=no 10330a73027baSmrgfi 1033121212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 103326f02d4e9Smrgfi 103336f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 103346f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 103356f02d4e9Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1033621212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10337a73027baSmrgfi 10338a73027baSmrg 1033921212451Smrgfound="no" 10340a73027baSmrg 1034121212451Smrg if test $found = "no" ; then 103426f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1034321212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1034421212451Smrg fi 10345a73027baSmrg 103466f02d4e9Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1034721212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1034821212451Smrg fi 10349a73027baSmrg 1035021212451Smrg CFLAGS="$CFLAGS -Werror" 1035121212451Smrg 103526f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 103536f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror... " >&6; } 103546f02d4e9Smrg cacheid=xorg_cv_cc_flag__Werror 103556f02d4e9Smrg if eval \${$cacheid+:} false; then : 103566f02d4e9Smrg $as_echo_n "(cached) " >&6 103576f02d4e9Smrgelse 103586f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1035921212451Smrg/* end confdefs.h. */ 1036021212451Smrgint i; 1036121212451Smrgint 1036221212451Smrgmain () 1036321212451Smrg{ 1036421212451Smrg 1036521212451Smrg ; 1036621212451Smrg return 0; 1036721212451Smrg} 1036821212451Smrg_ACEOF 103696f02d4e9Smrgif ac_fn_c_try_link "$LINENO"; then : 103706f02d4e9Smrg eval $cacheid=yes 10371bf4a254eSmrgelse 103726f02d4e9Smrg eval $cacheid=no 10373bf4a254eSmrgfi 103746f02d4e9Smrgrm -f core conftest.err conftest.$ac_objext \ 103756f02d4e9Smrg conftest$ac_exeext conftest.$ac_ext 103766f02d4e9Smrgfi 103776f02d4e9Smrg 10378bf4a254eSmrg 1037921212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10380bf4a254eSmrg 103816f02d4e9Smrg eval supported=\$$cacheid 103826f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 103836f02d4e9Smrg$as_echo "$supported" >&6; } 1038421212451Smrg if test "$supported" = "yes" ; then 1038521212451Smrg STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 1038621212451Smrg found="yes" 1038721212451Smrg fi 1038821212451Smrg fi 1038921212451Smrg 1039021212451Smrg if test $found = "no" ; then 103916f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1039221212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1039321212451Smrg fi 1039421212451Smrg 103956f02d4e9Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1039621212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1039721212451Smrg fi 1039821212451Smrg 1039921212451Smrg CFLAGS="$CFLAGS -errwarn" 1040021212451Smrg 104016f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 104026f02d4e9Smrg$as_echo_n "checking if $CC supports -errwarn... " >&6; } 104036f02d4e9Smrg cacheid=xorg_cv_cc_flag__errwarn 104046f02d4e9Smrg if eval \${$cacheid+:} false; then : 104056f02d4e9Smrg $as_echo_n "(cached) " >&6 104066f02d4e9Smrgelse 104076f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1040821212451Smrg/* end confdefs.h. */ 1040921212451Smrgint i; 1041021212451Smrgint 1041121212451Smrgmain () 1041221212451Smrg{ 1041321212451Smrg 1041421212451Smrg ; 1041521212451Smrg return 0; 1041621212451Smrg} 1041721212451Smrg_ACEOF 104186f02d4e9Smrgif ac_fn_c_try_link "$LINENO"; then : 104196f02d4e9Smrg eval $cacheid=yes 1042029004570Smrgelse 104216f02d4e9Smrg eval $cacheid=no 104226f02d4e9Smrgfi 104236f02d4e9Smrgrm -f core conftest.err conftest.$ac_objext \ 104246f02d4e9Smrg conftest$ac_exeext conftest.$ac_ext 1042529004570Smrgfi 1042629004570Smrg 104276f02d4e9Smrg 1042821212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1042929004570Smrg 104306f02d4e9Smrg eval supported=\$$cacheid 104316f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 104326f02d4e9Smrg$as_echo "$supported" >&6; } 1043321212451Smrg if test "$supported" = "yes" ; then 1043421212451Smrg STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 1043521212451Smrg found="yes" 1043621212451Smrg fi 1043721212451Smrg fi 10438bf4a254eSmrg 10439bf4a254eSmrg 10440bf4a254eSmrg 1044121212451Smrg# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 1044221212451Smrg# activate it with -Werror, so we add it here explicitly. 10443c81d8f5eSmrg 10444bf4a254eSmrg 10445bf4a254eSmrg 10446bf4a254eSmrg 10447bf4a254eSmrg 104486f02d4e9Smrg 104496f02d4e9Smrg 104506f02d4e9Smrg 104516f02d4e9Smrg 104526f02d4e9Smrg 104536f02d4e9Smrg 104546f02d4e9Smrg 104556f02d4e9Smrg 1045621212451Smrgxorg_testset_save_CFLAGS="$CFLAGS" 10457bf4a254eSmrg 104586f02d4e9Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1045921212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 104606f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 104616f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 104626f02d4e9Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 104636f02d4e9Smrg $as_echo_n "(cached) " >&6 104646f02d4e9Smrgelse 104656f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1046621212451Smrg/* end confdefs.h. */ 1046721212451Smrgint i; 1046821212451Smrg_ACEOF 104696f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 104706f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1047121212451Smrgelse 104726f02d4e9Smrg xorg_cv_cc_flag_unknown_warning_option=no 1047321212451Smrgfi 1047421212451Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 104756f02d4e9Smrgfi 104766f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 104776f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 104786f02d4e9Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1047921212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10480bf4a254eSmrgfi 10481bf4a254eSmrg 104826f02d4e9Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 104836f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1048421212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1048521212451Smrg fi 1048621212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 104876f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 104886f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 104896f02d4e9Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 104906f02d4e9Smrg $as_echo_n "(cached) " >&6 104916f02d4e9Smrgelse 104926f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10493c81d8f5eSmrg/* end confdefs.h. */ 1049421212451Smrgint i; 10495c81d8f5eSmrg_ACEOF 104966f02d4e9Smrgif ac_fn_c_try_compile "$LINENO"; then : 104976f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 10498bf4a254eSmrgelse 104996f02d4e9Smrg xorg_cv_cc_flag_unused_command_line_argument=no 10500bf4a254eSmrgfi 10501c81d8f5eSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 105026f02d4e9Smrgfi 105036f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 105046f02d4e9Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 105056f02d4e9Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1050621212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1050721212451Smrgfi 1050821212451Smrg 1050921212451Smrgfound="no" 1051021212451Smrg 1051121212451Smrg if test $found = "no" ; then 105126f02d4e9Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1051321212451Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1051421212451Smrg fi 1051521212451Smrg 105166f02d4e9Smrg if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 1051721212451Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1051821212451Smrg fi 1051921212451Smrg 1052021212451Smrg CFLAGS="$CFLAGS -Werror=attributes" 1052121212451Smrg 105226f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 105236f02d4e9Smrg$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 105247253c0c7Smrg cacheid=xorg_cv_cc_flag__Werror_attributes 105256f02d4e9Smrg if eval \${$cacheid+:} false; then : 105266f02d4e9Smrg $as_echo_n "(cached) " >&6 105276f02d4e9Smrgelse 105286f02d4e9Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1052921212451Smrg/* end confdefs.h. */ 1053021212451Smrgint i; 1053121212451Smrgint 1053221212451Smrgmain () 1053321212451Smrg{ 1053421212451Smrg 1053521212451Smrg ; 1053621212451Smrg return 0; 1053721212451Smrg} 1053821212451Smrg_ACEOF 105396f02d4e9Smrgif ac_fn_c_try_link "$LINENO"; then : 105406f02d4e9Smrg eval $cacheid=yes 1054121212451Smrgelse 105426f02d4e9Smrg eval $cacheid=no 10543bf4a254eSmrgfi 105446f02d4e9Smrgrm -f core conftest.err conftest.$ac_objext \ 105456f02d4e9Smrg conftest$ac_exeext conftest.$ac_ext 105466f02d4e9Smrgfi 105476f02d4e9Smrg 1054821212451Smrg 1054921212451Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1055021212451Smrg 105516f02d4e9Smrg eval supported=\$$cacheid 105526f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 105536f02d4e9Smrg$as_echo "$supported" >&6; } 1055421212451Smrg if test "$supported" = "yes" ; then 1055521212451Smrg STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 1055621212451Smrg found="yes" 1055721212451Smrg fi 1055821212451Smrg fi 1055921212451Smrg 1056021212451Smrg 1056121212451Smrg 10562c81d8f5eSmrgif test "x$STRICT_COMPILE" = "xyes"; then 1056321212451Smrg BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10564c81d8f5eSmrg CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10565bf4a254eSmrgfi 10566c81d8f5eSmrg 10567bf4a254eSmrg 10568bf4a254eSmrg 10569bf4a254eSmrg 10570bf4a254eSmrg 1057121212451Smrg 10572bf4a254eSmrgcat >>confdefs.h <<_ACEOF 10573bf4a254eSmrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10574bf4a254eSmrg_ACEOF 10575bf4a254eSmrg 10576bf4a254eSmrg PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10577bf4a254eSmrg if test "x$PVM" = "x"; then 10578bf4a254eSmrg PVM="0" 10579bf4a254eSmrg fi 10580bf4a254eSmrg 10581bf4a254eSmrgcat >>confdefs.h <<_ACEOF 10582bf4a254eSmrg#define PACKAGE_VERSION_MINOR $PVM 10583bf4a254eSmrg_ACEOF 10584bf4a254eSmrg 10585bf4a254eSmrg PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10586bf4a254eSmrg if test "x$PVP" = "x"; then 10587bf4a254eSmrg PVP="0" 10588bf4a254eSmrg fi 10589bf4a254eSmrg 10590bf4a254eSmrgcat >>confdefs.h <<_ACEOF 10591bf4a254eSmrg#define PACKAGE_VERSION_PATCHLEVEL $PVP 10592bf4a254eSmrg_ACEOF 10593bf4a254eSmrg 10594bf4a254eSmrg 10595bf4a254eSmrg 10596bf4a254eSmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10597bf4a254eSmrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10598bf4a254eSmrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10599bf4a254eSmrgecho 'git directory not found: installing possibly empty changelog.' >&2)" 10600bf4a254eSmrg 10601bf4a254eSmrg 10602bf4a254eSmrg 10603bf4a254eSmrg 10604bf4a254eSmrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10605bf4a254eSmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10606bf4a254eSmrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10607bf4a254eSmrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10608bf4a254eSmrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10609bf4a254eSmrg 10610bf4a254eSmrg 10611bf4a254eSmrg 10612bf4a254eSmrg 10613bf4a254eSmrg 1061429004570Smrg 10615bf4a254eSmrgif test x$APP_MAN_SUFFIX = x ; then 10616bf4a254eSmrg APP_MAN_SUFFIX=1 10617bf4a254eSmrgfi 10618bf4a254eSmrgif test x$APP_MAN_DIR = x ; then 10619bf4a254eSmrg APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10620bf4a254eSmrgfi 10621bf4a254eSmrg 10622bf4a254eSmrgif test x$LIB_MAN_SUFFIX = x ; then 10623bf4a254eSmrg LIB_MAN_SUFFIX=3 10624bf4a254eSmrgfi 10625bf4a254eSmrgif test x$LIB_MAN_DIR = x ; then 10626bf4a254eSmrg LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10627bf4a254eSmrgfi 10628bf4a254eSmrg 10629bf4a254eSmrgif test x$FILE_MAN_SUFFIX = x ; then 1063029004570Smrg case $host_os in 10631d73e0b87Smrg # Solaris 2.0 - 11 use SysV man page sections 10632d73e0b87Smrg solaris2.?|solaris2.1[01]) FILE_MAN_SUFFIX=4 ;; 10633d73e0b87Smrg *) FILE_MAN_SUFFIX=5 ;; 1063429004570Smrg esac 1063529004570Smrgfi 1063629004570Smrgif test x$FILE_MAN_DIR = x ; then 1063729004570Smrg FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10638bf4a254eSmrgfi 10639bf4a254eSmrg 1064029004570Smrgif test x$MISC_MAN_SUFFIX = x ; then 1064129004570Smrg case $host_os in 10642d73e0b87Smrg # Solaris 2.0 - 11 use SysV man page sections 10643d73e0b87Smrg solaris2.?|solaris2.1[01]) MISC_MAN_SUFFIX=5 ;; 10644d73e0b87Smrg *) MISC_MAN_SUFFIX=7 ;; 1064529004570Smrg esac 1064629004570Smrgfi 1064729004570Smrgif test x$MISC_MAN_DIR = x ; then 1064829004570Smrg MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10649bf4a254eSmrgfi 10650bf4a254eSmrg 1065129004570Smrgif test x$DRIVER_MAN_SUFFIX = x ; then 1065229004570Smrg case $host_os in 10653d73e0b87Smrg # Solaris 2.0 - 11 use SysV man page sections 10654d73e0b87Smrg solaris2.?|solaris2.1[01]) DRIVER_MAN_SUFFIX=7 ;; 10655d73e0b87Smrg *) DRIVER_MAN_SUFFIX=4 ;; 1065629004570Smrg esac 1065729004570Smrgfi 1065829004570Smrgif test x$DRIVER_MAN_DIR = x ; then 1065929004570Smrg DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 1066029004570Smrgfi 10661bf4a254eSmrg 1066229004570Smrgif test x$ADMIN_MAN_SUFFIX = x ; then 1066329004570Smrg case $host_os in 10664d73e0b87Smrg # Solaris 2.0 - 11 use SysV man page sections 10665d73e0b87Smrg solaris2.?|solaris2.1[01]) ADMIN_MAN_SUFFIX=1m ;; 10666d73e0b87Smrg *) ADMIN_MAN_SUFFIX=8 ;; 1066729004570Smrg esac 1066829004570Smrgfi 1066929004570Smrgif test x$ADMIN_MAN_DIR = x ; then 1067029004570Smrg ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10671bf4a254eSmrgfi 10672bf4a254eSmrg 1067329004570Smrg 1067429004570Smrg 1067529004570Smrg 1067629004570Smrg 1067729004570Smrg 1067829004570Smrg 1067929004570Smrg 1068029004570Smrg 1068129004570Smrg 1068229004570Smrg 1068329004570Smrg 1068429004570Smrg 1068529004570Smrg 1068629004570Smrg 1068729004570SmrgXORG_MAN_PAGE="X Version 11" 1068829004570Smrg 1068929004570SmrgMAN_SUBSTS="\ 1069029004570Smrg -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 1069129004570Smrg -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 1069229004570Smrg -e 's|__xservername__|Xorg|g' \ 1069329004570Smrg -e 's|__xconfigfile__|xorg.conf|g' \ 1069429004570Smrg -e 's|__projectroot__|\$(prefix)|g' \ 1069529004570Smrg -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 1069629004570Smrg -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 1069729004570Smrg -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 1069829004570Smrg -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 1069929004570Smrg -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 1070029004570Smrg -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 1070129004570Smrg -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 1070229004570Smrg 1070329004570Smrg 1070429004570Smrg 107056f02d4e9Smrg# Check whether --enable-silent-rules was given. 107066f02d4e9Smrgif test "${enable_silent_rules+set}" = set; then : 107076f02d4e9Smrg enableval=$enable_silent_rules; 107086f02d4e9Smrgfi 107096f02d4e9Smrg 107106f02d4e9Smrgcase $enable_silent_rules in # ((( 107116f02d4e9Smrg yes) AM_DEFAULT_VERBOSITY=0;; 107126f02d4e9Smrg no) AM_DEFAULT_VERBOSITY=1;; 107136f02d4e9Smrg *) AM_DEFAULT_VERBOSITY=0;; 107146f02d4e9Smrgesac 107156f02d4e9Smrgam_make=${MAKE-make} 107166f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 107176f02d4e9Smrg$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 107186f02d4e9Smrgif ${am_cv_make_support_nested_variables+:} false; then : 107196f02d4e9Smrg $as_echo_n "(cached) " >&6 107206f02d4e9Smrgelse 107216f02d4e9Smrg if $as_echo 'TRUE=$(BAR$(V)) 107226f02d4e9SmrgBAR0=false 107236f02d4e9SmrgBAR1=true 107246f02d4e9SmrgV=1 107256f02d4e9Smrgam__doit: 107266f02d4e9Smrg @$(TRUE) 107276f02d4e9Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 107286f02d4e9Smrg am_cv_make_support_nested_variables=yes 107296f02d4e9Smrgelse 107306f02d4e9Smrg am_cv_make_support_nested_variables=no 107316f02d4e9Smrgfi 107326f02d4e9Smrgfi 107336f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 107346f02d4e9Smrg$as_echo "$am_cv_make_support_nested_variables" >&6; } 107356f02d4e9Smrgif test $am_cv_make_support_nested_variables = yes; then 107366f02d4e9Smrg AM_V='$(V)' 107376f02d4e9Smrg AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 107386f02d4e9Smrgelse 107396f02d4e9Smrg AM_V=$AM_DEFAULT_VERBOSITY 107406f02d4e9Smrg AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 107416f02d4e9Smrgfi 107426f02d4e9SmrgAM_BACKSLASH='\' 1074329004570Smrg 1074429004570Smrg 1074529004570Smrg 10746bf4a254eSmrg 10747bf4a254eSmrg 10748bf4a254eSmrgfor ac_prog in cpp 10749bf4a254eSmrgdo 10750bf4a254eSmrg # Extract the first word of "$ac_prog", so it can be a program name with args. 10751bf4a254eSmrgset dummy $ac_prog; ac_word=$2 107526f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 107536f02d4e9Smrg$as_echo_n "checking for $ac_word... " >&6; } 107546f02d4e9Smrgif ${ac_cv_path_RAWCPP+:} false; then : 107556f02d4e9Smrg $as_echo_n "(cached) " >&6 10756bf4a254eSmrgelse 10757bf4a254eSmrg case $RAWCPP in 10758bf4a254eSmrg [\\/]* | ?:[\\/]*) 10759bf4a254eSmrg ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path. 10760bf4a254eSmrg ;; 10761bf4a254eSmrg *) 10762bf4a254eSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10763bf4a254eSmrgas_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib" 10764bf4a254eSmrgfor as_dir in $as_dummy 10765bf4a254eSmrgdo 10766bf4a254eSmrg IFS=$as_save_IFS 10767bf4a254eSmrg test -z "$as_dir" && as_dir=. 107686f02d4e9Smrg for ac_exec_ext in '' $ac_executable_extensions; do 107697253c0c7Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10770bf4a254eSmrg ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext" 107716f02d4e9Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10772bf4a254eSmrg break 2 10773bf4a254eSmrg fi 10774bf4a254eSmrgdone 107756f02d4e9Smrg done 10776bf4a254eSmrgIFS=$as_save_IFS 10777bf4a254eSmrg 10778bf4a254eSmrg ;; 10779bf4a254eSmrgesac 10780bf4a254eSmrgfi 10781bf4a254eSmrgRAWCPP=$ac_cv_path_RAWCPP 10782bf4a254eSmrgif test -n "$RAWCPP"; then 107836f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5 107846f02d4e9Smrg$as_echo "$RAWCPP" >&6; } 10785bf4a254eSmrgelse 107866f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 107876f02d4e9Smrg$as_echo "no" >&6; } 10788bf4a254eSmrgfi 10789bf4a254eSmrg 10790bf4a254eSmrg 10791bf4a254eSmrg test -n "$RAWCPP" && break 10792bf4a254eSmrgdone 10793bf4a254eSmrgtest -n "$RAWCPP" || RAWCPP="${CPP}" 10794bf4a254eSmrg 10795bf4a254eSmrg 10796bf4a254eSmrg# Check for flag to avoid builtin definitions - assumes unix is predefined, 10797bf4a254eSmrg# which is not the best choice for supporting other OS'es, but covers most 10798bf4a254eSmrg# of the ones we need for now. 107996f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5 108006f02d4e9Smrg$as_echo_n "checking if $RAWCPP requires -undef... " >&6; } 108016f02d4e9Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 10802bf4a254eSmrg/* end confdefs.h. */ 10803bf4a254eSmrgDoes cpp redefine unix ? 10804bf4a254eSmrg_ACEOF 10805bf4a254eSmrgif test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 108066f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 108076f02d4e9Smrg$as_echo "no" >&6; } 10808bf4a254eSmrgelse 10809bf4a254eSmrg if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 10810bf4a254eSmrg RAWCPPFLAGS=-undef 108116f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 108126f02d4e9Smrg$as_echo "yes" >&6; } 10813bf4a254eSmrg # under Cygwin unix is still defined even with -undef 10814bf4a254eSmrg elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 10815bf4a254eSmrg RAWCPPFLAGS="-undef -ansi" 108166f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5 108176f02d4e9Smrg$as_echo "yes, with -ansi" >&6; } 10818bf4a254eSmrg else 108196f02d4e9Smrg as_fn_error $? "${RAWCPP} defines unix with or without -undef. I don't know what to do." "$LINENO" 5 10820bf4a254eSmrg fi 10821bf4a254eSmrgfi 10822bf4a254eSmrgrm -f conftest.$ac_ext 10823bf4a254eSmrg 108246f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5 108256f02d4e9Smrg$as_echo_n "checking if $RAWCPP requires -traditional... " >&6; } 108266f02d4e9Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 10827bf4a254eSmrg/* end confdefs.h. */ 10828bf4a254eSmrgDoes cpp preserve "whitespace"? 10829bf4a254eSmrg_ACEOF 10830bf4a254eSmrgif test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 108316f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 108326f02d4e9Smrg$as_echo "no" >&6; } 10833bf4a254eSmrgelse 10834bf4a254eSmrg if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 108357253c0c7Smrg TRADITIONALCPPFLAGS="-traditional" 10836bf4a254eSmrg RAWCPPFLAGS="${RAWCPPFLAGS} -traditional" 108376f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 108386f02d4e9Smrg$as_echo "yes" >&6; } 10839bf4a254eSmrg else 108406f02d4e9Smrg as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do." "$LINENO" 5 10841bf4a254eSmrg fi 10842bf4a254eSmrgfi 10843bf4a254eSmrgrm -f conftest.$ac_ext 10844bf4a254eSmrg 10845bf4a254eSmrg 10846bf4a254eSmrg 10847a73027baSmrg 108487253c0c7Smrg 10849a73027baSmrg# Build options 10850a73027baSmrgDEFAULT_XRDB=xrdb 10851a73027baSmrgDEFAULT_XMODMAP=xmodmap 10852a73027baSmrgDEFAULT_TWM=twm 10853a73027baSmrgDEFAULT_XCLOCK=xclock 10854a73027baSmrgDEFAULT_XTERM=xterm 10855a73027baSmrg# You always want to specify the full path to the X server 10856a73027baSmrgDEFAULT_XSERVER=${bindir}/X 10857a73027baSmrgDEFAULT_XAUTH=xauth 10858a73027baSmrgDEFAULT_XINIT=xinit 108596f02d4e9SmrgDEFAULT_XINITDIR=${sysconfdir}/X11/xinit 10860a73027baSmrg 10861a73027baSmrg 10862a73027baSmrg# Check whether --with-xrdb was given. 108636f02d4e9Smrgif test "${with_xrdb+set}" = set; then : 10864a73027baSmrg withval=$with_xrdb; XRDB="$withval" 10865a73027baSmrgelse 10866a73027baSmrg XRDB="$DEFAULT_XRDB" 10867a73027baSmrgfi 10868a73027baSmrg 10869a73027baSmrg 10870a73027baSmrg 10871a73027baSmrg# Check whether --with-xmodmap was given. 108726f02d4e9Smrgif test "${with_xmodmap+set}" = set; then : 10873a73027baSmrg withval=$with_xmodmap; XMODMAP="$withval" 10874a73027baSmrgelse 10875a73027baSmrg XMODMAP="$DEFAULT_XMODMAP" 10876a73027baSmrgfi 10877a73027baSmrg 10878a73027baSmrg 10879a73027baSmrg 10880a73027baSmrg# Check whether --with-twm was given. 108816f02d4e9Smrgif test "${with_twm+set}" = set; then : 10882a73027baSmrg withval=$with_twm; TWM="$withval" 10883a73027baSmrgelse 10884a73027baSmrg TWM="$DEFAULT_TWM" 10885a73027baSmrgfi 10886a73027baSmrg 10887a73027baSmrg 10888a73027baSmrg 10889a73027baSmrg# Check whether --with-xclock was given. 108906f02d4e9Smrgif test "${with_xclock+set}" = set; then : 10891a73027baSmrg withval=$with_xclock; XCLOCK="$withval" 10892a73027baSmrgelse 10893a73027baSmrg XCLOCK="$DEFAULT_XCLOCK" 10894a73027baSmrgfi 10895a73027baSmrg 10896a73027baSmrg 10897a73027baSmrg 10898a73027baSmrg# Check whether --with-xterm was given. 108996f02d4e9Smrgif test "${with_xterm+set}" = set; then : 10900a73027baSmrg withval=$with_xterm; XTERM="$withval" 10901a73027baSmrgelse 10902a73027baSmrg XTERM="$DEFAULT_XTERM" 10903a73027baSmrgfi 10904a73027baSmrg 10905a73027baSmrg 10906a73027baSmrg 10907a73027baSmrg# Check whether --with-xserver was given. 109086f02d4e9Smrgif test "${with_xserver+set}" = set; then : 10909a73027baSmrg withval=$with_xserver; XSERVER="$withval" 10910a73027baSmrgelse 10911a73027baSmrg XSERVER="$DEFAULT_XSERVER" 10912a73027baSmrgfi 10913a73027baSmrg 10914a73027baSmrg 10915a73027baSmrg 10916a73027baSmrg# Check whether --with-xauth was given. 109176f02d4e9Smrgif test "${with_xauth+set}" = set; then : 10918a73027baSmrg withval=$with_xauth; XAUTH="$withval" 10919a73027baSmrgelse 10920a73027baSmrg XAUTH="$DEFAULT_XAUTH" 10921a73027baSmrgfi 10922a73027baSmrg 10923a73027baSmrg 10924a73027baSmrg 10925a73027baSmrg# Check whether --with-xinit was given. 109266f02d4e9Smrgif test "${with_xinit+set}" = set; then : 10927a73027baSmrg withval=$with_xinit; XINIT="$withval" 10928a73027baSmrgelse 10929a73027baSmrg XINIT="$DEFAULT_XINIT" 10930a73027baSmrgfi 10931a73027baSmrg 10932a73027baSmrg 10933a73027baSmrg 10934bf4a254eSmrg# Check whether --with-xinitdir was given. 109356f02d4e9Smrgif test "${with_xinitdir+set}" = set; then : 10936bf4a254eSmrg withval=$with_xinitdir; XINITDIR="$withval" 10937bf4a254eSmrgelse 10938bf4a254eSmrg XINITDIR="$DEFAULT_XINITDIR" 10939bf4a254eSmrgfi 10940bf4a254eSmrg 10941bf4a254eSmrg 10942bf4a254eSmrg 10943a73027baSmrg# Check whether --with-launchd was given. 109446f02d4e9Smrgif test "${with_launchd+set}" = set; then : 10945a73027baSmrg withval=$with_launchd; LAUNCHD=$withval 10946a73027baSmrgelse 10947a73027baSmrg LAUNCHD=auto 10948a73027baSmrgfi 10949a73027baSmrg 10950a73027baSmrg 10951a73027baSmrg# Check whether --with-launchagents-dir was given. 109526f02d4e9Smrgif test "${with_launchagents_dir+set}" = set; then : 10953a73027baSmrg withval=$with_launchagents_dir; launchagentsdir="${withval}" 10954a73027baSmrgelse 10955a73027baSmrg launchagentsdir="/Library/LaunchAgents" 10956a73027baSmrgfi 10957a73027baSmrg 10958a73027baSmrg 1095921212451Smrg# Check whether --with-launchagent-xserver was given. 109606f02d4e9Smrgif test "${with_launchagent_xserver+set}" = set; then : 1096121212451Smrg withval=$with_launchagent_xserver; launchagentxserver="${withval}" 1096221212451Smrgelse 1096321212451Smrg launchagentxserver="no" 1096421212451Smrgfi 1096521212451Smrg 1096621212451Smrg 10967a73027baSmrg# Check whether --with-launchdaemons-dir was given. 109686f02d4e9Smrgif test "${with_launchdaemons_dir+set}" = set; then : 10969a73027baSmrg withval=$with_launchdaemons_dir; launchdaemonsdir="${withval}" 10970a73027baSmrgelse 10971a73027baSmrg launchdaemonsdir="/Library/LaunchDaemons" 10972a73027baSmrgfi 10973a73027baSmrg 10974a73027baSmrg 10975bf4a254eSmrg# Check whether --with-launchd-id-prefix was given. 109766f02d4e9Smrgif test "${with_launchd_id_prefix+set}" = set; then : 10977c81d8f5eSmrg withval=$with_launchd_id_prefix; bundleidprefix="${withval}" 10978bf4a254eSmrgelse 10979c81d8f5eSmrg bundleidprefix="org.x" 10980c81d8f5eSmrgfi 10981c81d8f5eSmrg 10982c81d8f5eSmrg 10983c81d8f5eSmrg# Check whether --with-bundle-id-prefix was given. 109846f02d4e9Smrgif test "${with_bundle_id_prefix+set}" = set; then : 10985c81d8f5eSmrg withval=$with_bundle_id_prefix; bundleidprefix="${withval}" 10986bf4a254eSmrgfi 10987bf4a254eSmrg 10988bf4a254eSmrg 10989a73027baSmrgif test "x$LAUNCHD" = "xauto"; then 10990a73027baSmrg unset LAUNCHD 1099172e81212Smrg # Extract the first word of "launchd", so it can be a program name with args. 10992a73027baSmrgset dummy launchd; ac_word=$2 109936f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 109946f02d4e9Smrg$as_echo_n "checking for $ac_word... " >&6; } 109956f02d4e9Smrgif ${ac_cv_prog_LAUNCHD+:} false; then : 109966f02d4e9Smrg $as_echo_n "(cached) " >&6 10997a73027baSmrgelse 10998a73027baSmrg if test -n "$LAUNCHD"; then 10999a73027baSmrg ac_cv_prog_LAUNCHD="$LAUNCHD" # Let the user override the test. 11000a73027baSmrgelse 11001a73027baSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1100229004570Smrgfor as_dir in $PATH$PATH_SEPARATOR/sbin 11003a73027baSmrgdo 11004a73027baSmrg IFS=$as_save_IFS 11005a73027baSmrg test -z "$as_dir" && as_dir=. 110066f02d4e9Smrg for ac_exec_ext in '' $ac_executable_extensions; do 110077253c0c7Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11008a73027baSmrg ac_cv_prog_LAUNCHD="yes" 110096f02d4e9Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11010a73027baSmrg break 2 11011a73027baSmrg fi 11012a73027baSmrgdone 110136f02d4e9Smrg done 11014a73027baSmrgIFS=$as_save_IFS 11015a73027baSmrg 11016a73027baSmrg test -z "$ac_cv_prog_LAUNCHD" && ac_cv_prog_LAUNCHD="no" 11017a73027baSmrgfi 11018a73027baSmrgfi 11019a73027baSmrgLAUNCHD=$ac_cv_prog_LAUNCHD 11020a73027baSmrgif test -n "$LAUNCHD"; then 110216f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LAUNCHD" >&5 110226f02d4e9Smrg$as_echo "$LAUNCHD" >&6; } 11023a73027baSmrgelse 110246f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 110256f02d4e9Smrg$as_echo "no" >&6; } 11026a73027baSmrgfi 11027a73027baSmrg 11028a73027baSmrg 11029a73027baSmrgfi 11030a73027baSmrg 1103172e81212SmrgTIGER_LAUNCHD=no 11032a73027baSmrgif test "x$LAUNCHD" = "xyes" ; then 11033a73027baSmrg 110346f02d4e9Smrg$as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h 11035a73027baSmrg 1103672e81212Smrg case $host_os in 1103772e81212Smrg darwin8*) 1103872e81212Smrg TIGER_LAUNCHD=yes 1103972e81212Smrg ;; 1104072e81212Smrg esac 110416f02d4e9Smrg ac_fn_c_check_func "$LINENO" "dispatch_async" "ac_cv_func_dispatch_async" 110426f02d4e9Smrgif test "x$ac_cv_func_dispatch_async" = xyes; then : 11043c81d8f5eSmrg 110446f02d4e9Smrg$as_echo "#define HAVE_LIBDISPATCH 1" >>confdefs.h 1104521212451Smrg 1104621212451Smrgfi 1104721212451Smrg 11048a73027baSmrgfi 11049a73027baSmrg 11050a73027baSmrg 11051bf4a254eSmrgcat >>confdefs.h <<_ACEOF 11052c81d8f5eSmrg#define BUNDLE_ID_PREFIX "$bundleidprefix" 11053bf4a254eSmrg_ACEOF 11054bf4a254eSmrg 11055bf4a254eSmrg 11056bf4a254eSmrg 11057bf4a254eSmrg 1105821212451Smrg 11059a73027baSmrg if test "x$LAUNCHD" = "xyes"; then 11060a73027baSmrg LAUNCHD_TRUE= 11061a73027baSmrg LAUNCHD_FALSE='#' 11062a73027baSmrgelse 11063a73027baSmrg LAUNCHD_TRUE='#' 11064a73027baSmrg LAUNCHD_FALSE= 11065a73027baSmrgfi 11066a73027baSmrg 1106772e81212Smrg if test "x$TIGER_LAUNCHD" = "xyes"; then 1106872e81212Smrg TIGER_LAUNCHD_TRUE= 1106972e81212Smrg TIGER_LAUNCHD_FALSE='#' 1107072e81212Smrgelse 1107172e81212Smrg TIGER_LAUNCHD_TRUE='#' 1107272e81212Smrg TIGER_LAUNCHD_FALSE= 1107372e81212Smrgfi 1107472e81212Smrg 1107521212451Smrg if test "x$launchagentxserver" != "xno"; then 1107621212451Smrg LAUNCHAGENT_XSERVER_TRUE= 1107721212451Smrg LAUNCHAGENT_XSERVER_FALSE='#' 1107821212451Smrgelse 1107921212451Smrg LAUNCHAGENT_XSERVER_TRUE='#' 1108021212451Smrg LAUNCHAGENT_XSERVER_FALSE= 1108121212451Smrgfi 1108221212451Smrg 11083a73027baSmrg 11084a73027baSmrg# Checks for pkg-config packages 11085a73027baSmrg 11086a73027baSmrgpkg_failed=no 110876f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XINIT" >&5 110886f02d4e9Smrg$as_echo_n "checking for XINIT... " >&6; } 11089a73027baSmrg 11090a73027baSmrgif test -n "$XINIT_CFLAGS"; then 11091a73027baSmrg pkg_cv_XINIT_CFLAGS="$XINIT_CFLAGS" 11092a73027baSmrg elif test -n "$PKG_CONFIG"; then 11093a73027baSmrg if test -n "$PKG_CONFIG" && \ 110946f02d4e9Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.17\""; } >&5 110956f02d4e9Smrg ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.17") 2>&5 11096a73027baSmrg ac_status=$? 110976f02d4e9Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 110986f02d4e9Smrg test $ac_status = 0; }; then 110996f02d4e9Smrg pkg_cv_XINIT_CFLAGS=`$PKG_CONFIG --cflags "x11 xproto >= 7.0.17" 2>/dev/null` 111007253c0c7Smrg test "x$?" != "x0" && pkg_failed=yes 11101a73027baSmrgelse 11102a73027baSmrg pkg_failed=yes 11103a73027baSmrgfi 11104a73027baSmrg else 11105a73027baSmrg pkg_failed=untried 11106a73027baSmrgfi 11107a73027baSmrgif test -n "$XINIT_LIBS"; then 11108a73027baSmrg pkg_cv_XINIT_LIBS="$XINIT_LIBS" 11109a73027baSmrg elif test -n "$PKG_CONFIG"; then 11110a73027baSmrg if test -n "$PKG_CONFIG" && \ 111116f02d4e9Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.17\""; } >&5 111126f02d4e9Smrg ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.17") 2>&5 11113a73027baSmrg ac_status=$? 111146f02d4e9Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 111156f02d4e9Smrg test $ac_status = 0; }; then 111166f02d4e9Smrg pkg_cv_XINIT_LIBS=`$PKG_CONFIG --libs "x11 xproto >= 7.0.17" 2>/dev/null` 111177253c0c7Smrg test "x$?" != "x0" && pkg_failed=yes 11118a73027baSmrgelse 11119a73027baSmrg pkg_failed=yes 11120a73027baSmrgfi 11121a73027baSmrg else 11122a73027baSmrg pkg_failed=untried 11123a73027baSmrgfi 11124a73027baSmrg 11125a73027baSmrg 11126a73027baSmrg 11127a73027baSmrgif test $pkg_failed = yes; then 111287253c0c7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 111297253c0c7Smrg$as_echo "no" >&6; } 11130a73027baSmrg 11131a73027baSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11132a73027baSmrg _pkg_short_errors_supported=yes 11133a73027baSmrgelse 11134a73027baSmrg _pkg_short_errors_supported=no 11135a73027baSmrgfi 11136a73027baSmrg if test $_pkg_short_errors_supported = yes; then 111377253c0c7Smrg XINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xproto >= 7.0.17" 2>&1` 11138a73027baSmrg else 111397253c0c7Smrg XINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xproto >= 7.0.17" 2>&1` 11140a73027baSmrg fi 11141a73027baSmrg # Put the nasty error message in config.log where it belongs 11142a73027baSmrg echo "$XINIT_PKG_ERRORS" >&5 11143a73027baSmrg 111446f02d4e9Smrg as_fn_error $? "Package requirements (x11 xproto >= 7.0.17) were not met: 11145a73027baSmrg 11146a73027baSmrg$XINIT_PKG_ERRORS 11147a73027baSmrg 11148a73027baSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 11149a73027baSmrginstalled software in a non-standard prefix. 11150a73027baSmrg 1115121212451SmrgAlternatively, you may set the environment variables XINIT_CFLAGS 1115221212451Smrgand XINIT_LIBS to avoid the need to call pkg-config. 111537253c0c7SmrgSee the pkg-config man page for more details." "$LINENO" 5 111546f02d4e9Smrgelif test $pkg_failed = untried; then 111557253c0c7Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 111567253c0c7Smrg$as_echo "no" >&6; } 111576f02d4e9Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 111586f02d4e9Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 111596f02d4e9Smrgas_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11160a73027baSmrgis in your PATH or set the PKG_CONFIG environment variable to the full 11161a73027baSmrgpath to pkg-config. 11162a73027baSmrg 11163a73027baSmrgAlternatively, you may set the environment variables XINIT_CFLAGS 11164a73027baSmrgand XINIT_LIBS to avoid the need to call pkg-config. 11165a73027baSmrgSee the pkg-config man page for more details. 11166a73027baSmrg 11167a73027baSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 111686f02d4e9SmrgSee \`config.log' for more details" "$LINENO" 5; } 11169a73027baSmrgelse 11170a73027baSmrg XINIT_CFLAGS=$pkg_cv_XINIT_CFLAGS 11171a73027baSmrg XINIT_LIBS=$pkg_cv_XINIT_LIBS 111726f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 111736f02d4e9Smrg$as_echo "yes" >&6; } 111747253c0c7Smrg 11175a73027baSmrgfi 11176a73027baSmrg 11177a73027baSmrgcase $host_os in 11178a73027baSmrg *bsd*) 11179a73027baSmrg XINIT_CFLAGS="$XINIT_CFLAGS -DCSRG_BASED" 11180a73027baSmrg ;; 11181a73027baSmrgesac 11182a73027baSmrg 11183a73027baSmrg 11184a73027baSmrgfor ac_prog in mcookie 11185a73027baSmrgdo 11186a73027baSmrg # Extract the first word of "$ac_prog", so it can be a program name with args. 11187a73027baSmrgset dummy $ac_prog; ac_word=$2 111886f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 111896f02d4e9Smrg$as_echo_n "checking for $ac_word... " >&6; } 111906f02d4e9Smrgif ${ac_cv_path_MCOOKIE+:} false; then : 111916f02d4e9Smrg $as_echo_n "(cached) " >&6 11192a73027baSmrgelse 11193a73027baSmrg case $MCOOKIE in 11194a73027baSmrg [\\/]* | ?:[\\/]*) 11195a73027baSmrg ac_cv_path_MCOOKIE="$MCOOKIE" # Let the user override the test with a path. 11196a73027baSmrg ;; 11197a73027baSmrg *) 11198a73027baSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11199a73027baSmrgas_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/local/bin" 11200a73027baSmrgfor as_dir in $as_dummy 11201a73027baSmrgdo 11202a73027baSmrg IFS=$as_save_IFS 11203a73027baSmrg test -z "$as_dir" && as_dir=. 112046f02d4e9Smrg for ac_exec_ext in '' $ac_executable_extensions; do 112057253c0c7Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11206a73027baSmrg ac_cv_path_MCOOKIE="$as_dir/$ac_word$ac_exec_ext" 112076f02d4e9Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11208a73027baSmrg break 2 11209a73027baSmrg fi 11210a73027baSmrgdone 112116f02d4e9Smrg done 11212a73027baSmrgIFS=$as_save_IFS 11213a73027baSmrg 11214a73027baSmrg ;; 11215a73027baSmrgesac 11216a73027baSmrgfi 11217a73027baSmrgMCOOKIE=$ac_cv_path_MCOOKIE 11218a73027baSmrgif test -n "$MCOOKIE"; then 112196f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCOOKIE" >&5 112206f02d4e9Smrg$as_echo "$MCOOKIE" >&6; } 11221a73027baSmrgelse 112226f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 112236f02d4e9Smrg$as_echo "no" >&6; } 11224a73027baSmrgfi 11225a73027baSmrg 11226a73027baSmrg 11227a73027baSmrg test -n "$MCOOKIE" && break 11228a73027baSmrgdone 11229a73027baSmrgtest -n "$MCOOKIE" || MCOOKIE="$MCOOKIE" 11230a73027baSmrg 11231a73027baSmrg 112326f02d4e9Smrg# If mcookie not found, try openssl, else per-system fallbacks 112336f02d4e9Smrgif test "x$MCOOKIE" = x ; then 112346f02d4e9Smrg for ac_prog in openssl 112356f02d4e9Smrgdo 112366f02d4e9Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 112376f02d4e9Smrgset dummy $ac_prog; ac_word=$2 112386f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 112396f02d4e9Smrg$as_echo_n "checking for $ac_word... " >&6; } 112406f02d4e9Smrgif ${ac_cv_path_OPENSSL+:} false; then : 112416f02d4e9Smrg $as_echo_n "(cached) " >&6 112426f02d4e9Smrgelse 112436f02d4e9Smrg case $OPENSSL in 112446f02d4e9Smrg [\\/]* | ?:[\\/]*) 112456f02d4e9Smrg ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path. 112466f02d4e9Smrg ;; 112476f02d4e9Smrg *) 112486f02d4e9Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 112496f02d4e9Smrgas_dummy="$PATH:/bin:/usr/bin:/usr/sbin:/usr/lib:/usr/libexec:/usr/local/bin" 112506f02d4e9Smrgfor as_dir in $as_dummy 112516f02d4e9Smrgdo 112526f02d4e9Smrg IFS=$as_save_IFS 112536f02d4e9Smrg test -z "$as_dir" && as_dir=. 112546f02d4e9Smrg for ac_exec_ext in '' $ac_executable_extensions; do 112557253c0c7Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 112566f02d4e9Smrg ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext" 112576f02d4e9Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 112586f02d4e9Smrg break 2 112596f02d4e9Smrg fi 112606f02d4e9Smrgdone 112616f02d4e9Smrg done 112626f02d4e9SmrgIFS=$as_save_IFS 112636f02d4e9Smrg 112646f02d4e9Smrg ;; 11265a73027baSmrgesac 112666f02d4e9Smrgfi 112676f02d4e9SmrgOPENSSL=$ac_cv_path_OPENSSL 112686f02d4e9Smrgif test -n "$OPENSSL"; then 112696f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5 112706f02d4e9Smrg$as_echo "$OPENSSL" >&6; } 112716f02d4e9Smrgelse 112726f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 112736f02d4e9Smrg$as_echo "no" >&6; } 112746f02d4e9Smrgfi 11275a73027baSmrg 112766f02d4e9Smrg 112776f02d4e9Smrg test -n "$OPENSSL" && break 112786f02d4e9Smrgdone 112796f02d4e9Smrgtest -n "$OPENSSL" || OPENSSL="$OPENSSL" 112806f02d4e9Smrg 112816f02d4e9Smrg if test "x$OPENSSL" != x ; then 112826f02d4e9Smrg MCOOKIE="$OPENSSL rand -hex 16" 112836f02d4e9Smrg else 112846f02d4e9Smrg case $host_os in 112856f02d4e9Smrg *solaris*) 112866f02d4e9Smrg MCOOKIE="/usr/bin/od -X -A n -N 16 /dev/urandom | /usr/bin/tr -d ' '" 112876f02d4e9Smrg ;; 112886f02d4e9Smrg esac 112896f02d4e9Smrg fi 112906f02d4e9Smrgfi 11291a73027baSmrgif test "x$MCOOKIE" != x ; then 11292a73027baSmrg STARTX_COOKIE_FLAGS='-DHAS_COOKIE_MAKER -DMK_COOKIE="$(MCOOKIE)"' 112936f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: startx will depend on \"$MCOOKIE\" to generate xauth cookies" >&5 112946f02d4e9Smrg$as_echo "$as_me: startx will depend on \"$MCOOKIE\" to generate xauth cookies" >&6;} 11295a73027baSmrgfi 11296a73027baSmrg 11297a73027baSmrg 11298a73027baSmrg# Additional substitutions in startx, xinitrc & man pages 11299bf4a254eSmrgSHELL_CMD="/bin/sh" 11300bf4a254eSmrgXSERVERNAME="Xorg" 11301bf4a254eSmrgXCONFIGFILE="xorg.conf" 11302c81d8f5eSmrgXCONFIGFILEMAN='${XCONFIGFILE} (${FILE_MAN_SUFFIX})' 11303a73027baSmrgcase $host_os in 11304bf4a254eSmrg cygwin*) 11305bf4a254eSmrg XSERVERNAME="XWin" 11306bf4a254eSmrg XCONFIGFILE="XWinrc" 11307bf4a254eSmrg ;; 11308bf4a254eSmrg darwin*) 11309bf4a254eSmrg XSERVERNAME="Xquartz" 11310bf4a254eSmrg XCONFIGFILE="defaults" 11311bf4a254eSmrg XCONFIGFILEMAN='defaults (1)' 11312bf4a254eSmrg ;; 11313a73027baSmrg *solaris*) 11314a73027baSmrg SHELL_CMD="/bin/ksh" 11315a73027baSmrg ;; 11316a73027baSmrgesac 11317a73027baSmrg 11318a73027baSmrg 11319a73027baSmrg 11320a73027baSmrg 11321a73027baSmrg 11322a73027baSmrg 11323a73027baSmrg 11324a73027baSmrg 11325a73027baSmrg 11326a73027baSmrg 11327a73027baSmrg 11328a73027baSmrg 11329a73027baSmrg 11330a73027baSmrg 11331a73027baSmrg 11332c81d8f5eSmrgac_config_files="$ac_config_files Makefile man/Makefile launchd/Makefile launchd/privileged_startx/Makefile launchd/user_startx/Makefile" 11333a73027baSmrg 11334a73027baSmrgcat >confcache <<\_ACEOF 11335a73027baSmrg# This file is a shell script that caches the results of configure 11336a73027baSmrg# tests run on this system so they can be shared between configure 11337a73027baSmrg# scripts and configure runs, see configure's option --config-cache. 11338a73027baSmrg# It is not useful on other systems. If it contains results you don't 11339a73027baSmrg# want to keep, you may remove or edit it. 11340a73027baSmrg# 11341a73027baSmrg# config.status only pays attention to the cache file if you give it 11342a73027baSmrg# the --recheck option to rerun configure. 11343a73027baSmrg# 11344a73027baSmrg# `ac_cv_env_foo' variables (set or unset) will be overridden when 11345a73027baSmrg# loading this file, other *unset* `ac_cv_foo' will be assigned the 11346a73027baSmrg# following values. 11347a73027baSmrg 11348a73027baSmrg_ACEOF 11349a73027baSmrg 11350a73027baSmrg# The following way of writing the cache mishandles newlines in values, 11351a73027baSmrg# but we know of no workaround that is simple, portable, and efficient. 11352a73027baSmrg# So, we kill variables containing newlines. 11353a73027baSmrg# Ultrix sh set writes to stderr and can't be redirected directly, 11354a73027baSmrg# and sets the high bit in the cache file unless we assign to the vars. 11355a73027baSmrg( 11356a73027baSmrg for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11357a73027baSmrg eval ac_val=\$$ac_var 11358a73027baSmrg case $ac_val in #( 11359a73027baSmrg *${as_nl}*) 11360a73027baSmrg case $ac_var in #( 113616f02d4e9Smrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 113626f02d4e9Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11363a73027baSmrg esac 11364a73027baSmrg case $ac_var in #( 11365a73027baSmrg _ | IFS | as_nl) ;; #( 113666f02d4e9Smrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 113676f02d4e9Smrg *) { eval $ac_var=; unset $ac_var;} ;; 11368a73027baSmrg esac ;; 11369a73027baSmrg esac 11370a73027baSmrg done 11371a73027baSmrg 11372a73027baSmrg (set) 2>&1 | 11373a73027baSmrg case $as_nl`(ac_space=' '; set) 2>&1` in #( 11374a73027baSmrg *${as_nl}ac_space=\ *) 113756f02d4e9Smrg # `set' does not quote correctly, so add quotes: double-quote 113766f02d4e9Smrg # substitution turns \\\\ into \\, and sed turns \\ into \. 11377a73027baSmrg sed -n \ 11378a73027baSmrg "s/'/'\\\\''/g; 11379a73027baSmrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11380a73027baSmrg ;; #( 11381a73027baSmrg *) 11382a73027baSmrg # `set' quotes correctly as required by POSIX, so do not add quotes. 11383a73027baSmrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11384a73027baSmrg ;; 11385a73027baSmrg esac | 11386a73027baSmrg sort 11387a73027baSmrg) | 11388a73027baSmrg sed ' 11389a73027baSmrg /^ac_cv_env_/b end 11390a73027baSmrg t clear 11391a73027baSmrg :clear 11392a73027baSmrg s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11393a73027baSmrg t end 11394a73027baSmrg s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11395a73027baSmrg :end' >>confcache 11396a73027baSmrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11397a73027baSmrg if test -w "$cache_file"; then 113986f02d4e9Smrg if test "x$cache_file" != "x/dev/null"; then 113996f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 114006f02d4e9Smrg$as_echo "$as_me: updating cache $cache_file" >&6;} 114016f02d4e9Smrg if test ! -f "$cache_file" || test -h "$cache_file"; then 114026f02d4e9Smrg cat confcache >"$cache_file" 114036f02d4e9Smrg else 114046f02d4e9Smrg case $cache_file in #( 114056f02d4e9Smrg */* | ?:*) 114066f02d4e9Smrg mv -f confcache "$cache_file"$$ && 114076f02d4e9Smrg mv -f "$cache_file"$$ "$cache_file" ;; #( 114086f02d4e9Smrg *) 114096f02d4e9Smrg mv -f confcache "$cache_file" ;; 114106f02d4e9Smrg esac 114116f02d4e9Smrg fi 114126f02d4e9Smrg fi 11413a73027baSmrg else 114146f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 114156f02d4e9Smrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11416a73027baSmrg fi 11417a73027baSmrgfi 11418a73027baSmrgrm -f confcache 11419a73027baSmrg 11420a73027baSmrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix 11421a73027baSmrg# Let make expand exec_prefix. 11422a73027baSmrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11423a73027baSmrg 11424a73027baSmrgDEFS=-DHAVE_CONFIG_H 11425a73027baSmrg 11426a73027baSmrgac_libobjs= 11427a73027baSmrgac_ltlibobjs= 114286f02d4e9SmrgU= 11429a73027baSmrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11430a73027baSmrg # 1. Remove the extension, and $U if already installed. 11431a73027baSmrg ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 114326f02d4e9Smrg ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11433a73027baSmrg # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11434a73027baSmrg # will be set to the directory where LIBOBJS objects are built. 114356f02d4e9Smrg as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 114366f02d4e9Smrg as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11437a73027baSmrgdone 11438a73027baSmrgLIBOBJS=$ac_libobjs 11439a73027baSmrg 11440a73027baSmrgLTLIBOBJS=$ac_ltlibobjs 11441a73027baSmrg 11442a73027baSmrg 114436f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 114446f02d4e9Smrg$as_echo_n "checking that generated files are newer than configure... " >&6; } 114456f02d4e9Smrg if test -n "$am_sleep_pid"; then 114466f02d4e9Smrg # Hide warnings about reused PIDs. 114476f02d4e9Smrg wait $am_sleep_pid 2>/dev/null 114486f02d4e9Smrg fi 114496f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 114506f02d4e9Smrg$as_echo "done" >&6; } 114516f02d4e9Smrg if test -n "$EXEEXT"; then 114526f02d4e9Smrg am__EXEEXT_TRUE= 114536f02d4e9Smrg am__EXEEXT_FALSE='#' 114546f02d4e9Smrgelse 114556f02d4e9Smrg am__EXEEXT_TRUE='#' 114566f02d4e9Smrg am__EXEEXT_FALSE= 114576f02d4e9Smrgfi 114586f02d4e9Smrg 11459a73027baSmrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 114606f02d4e9Smrg as_fn_error $? "conditional \"AMDEP\" was never defined. 114616f02d4e9SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 11462a73027baSmrgfi 11463a73027baSmrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 114646f02d4e9Smrg as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 114656f02d4e9SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 11466a73027baSmrgfi 11467a73027baSmrgif test -z "${LAUNCHD_TRUE}" && test -z "${LAUNCHD_FALSE}"; then 114686f02d4e9Smrg as_fn_error $? "conditional \"LAUNCHD\" was never defined. 114696f02d4e9SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 11470a73027baSmrgfi 1147172e81212Smrgif test -z "${TIGER_LAUNCHD_TRUE}" && test -z "${TIGER_LAUNCHD_FALSE}"; then 114726f02d4e9Smrg as_fn_error $? "conditional \"TIGER_LAUNCHD\" was never defined. 114736f02d4e9SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 1147421212451Smrgfi 1147521212451Smrgif test -z "${LAUNCHAGENT_XSERVER_TRUE}" && test -z "${LAUNCHAGENT_XSERVER_FALSE}"; then 114766f02d4e9Smrg as_fn_error $? "conditional \"LAUNCHAGENT_XSERVER\" was never defined. 114776f02d4e9SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 1147872e81212Smrgfi 11479a73027baSmrg 114806f02d4e9Smrg: "${CONFIG_STATUS=./config.status}" 114816f02d4e9Smrgac_write_fail=0 11482a73027baSmrgac_clean_files_save=$ac_clean_files 11483a73027baSmrgac_clean_files="$ac_clean_files $CONFIG_STATUS" 114846f02d4e9Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 114856f02d4e9Smrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 114866f02d4e9Smrgas_write_fail=0 114876f02d4e9Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11488a73027baSmrg#! $SHELL 11489a73027baSmrg# Generated by $as_me. 11490a73027baSmrg# Run this file to recreate the current configuration. 11491a73027baSmrg# Compiler output produced by configure, useful for debugging 11492a73027baSmrg# configure, is in config.log if it exists. 11493a73027baSmrg 11494a73027baSmrgdebug=false 11495a73027baSmrgac_cs_recheck=false 11496a73027baSmrgac_cs_silent=false 1149721212451Smrg 114986f02d4e9SmrgSHELL=\${CONFIG_SHELL-$SHELL} 114996f02d4e9Smrgexport SHELL 115006f02d4e9Smrg_ASEOF 115016f02d4e9Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 115026f02d4e9Smrg## -------------------- ## 115036f02d4e9Smrg## M4sh Initialization. ## 115046f02d4e9Smrg## -------------------- ## 11505a73027baSmrg 11506a73027baSmrg# Be more Bourne compatible 11507a73027baSmrgDUALCASE=1; export DUALCASE # for MKS sh 115086f02d4e9Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 11509a73027baSmrg emulate sh 11510a73027baSmrg NULLCMD=: 115116f02d4e9Smrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11512a73027baSmrg # is contrary to our usage. Disable this feature. 11513a73027baSmrg alias -g '${1+"$@"}'='"$@"' 11514a73027baSmrg setopt NO_GLOB_SUBST 11515a73027baSmrgelse 115166f02d4e9Smrg case `(set -o) 2>/dev/null` in #( 115176f02d4e9Smrg *posix*) : 115186f02d4e9Smrg set -o posix ;; #( 115196f02d4e9Smrg *) : 115206f02d4e9Smrg ;; 11521a73027baSmrgesac 11522a73027baSmrgfi 11523a73027baSmrg 11524a73027baSmrg 115256f02d4e9Smrgas_nl=' 115266f02d4e9Smrg' 115276f02d4e9Smrgexport as_nl 115286f02d4e9Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 115296f02d4e9Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 115306f02d4e9Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 115316f02d4e9Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 115326f02d4e9Smrg# Prefer a ksh shell builtin over an external printf program on Solaris, 115336f02d4e9Smrg# but without wasting forks for bash or zsh. 115346f02d4e9Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \ 115356f02d4e9Smrg && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 115366f02d4e9Smrg as_echo='print -r --' 115376f02d4e9Smrg as_echo_n='print -rn --' 115386f02d4e9Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 115396f02d4e9Smrg as_echo='printf %s\n' 115406f02d4e9Smrg as_echo_n='printf %s' 115416f02d4e9Smrgelse 115426f02d4e9Smrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 115436f02d4e9Smrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 115446f02d4e9Smrg as_echo_n='/usr/ucb/echo -n' 11545a73027baSmrg else 115466f02d4e9Smrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 115476f02d4e9Smrg as_echo_n_body='eval 115486f02d4e9Smrg arg=$1; 115496f02d4e9Smrg case $arg in #( 115506f02d4e9Smrg *"$as_nl"*) 115516f02d4e9Smrg expr "X$arg" : "X\\(.*\\)$as_nl"; 115526f02d4e9Smrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 115536f02d4e9Smrg esac; 115546f02d4e9Smrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 115556f02d4e9Smrg ' 115566f02d4e9Smrg export as_echo_n_body 115576f02d4e9Smrg as_echo_n='sh -c $as_echo_n_body as_echo' 11558a73027baSmrg fi 115596f02d4e9Smrg export as_echo_body 115606f02d4e9Smrg as_echo='sh -c $as_echo_body as_echo' 11561a73027baSmrgfi 11562a73027baSmrg 115636f02d4e9Smrg# The user is always right. 115646f02d4e9Smrgif test "${PATH_SEPARATOR+set}" != set; then 115656f02d4e9Smrg PATH_SEPARATOR=: 115666f02d4e9Smrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 115676f02d4e9Smrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 115686f02d4e9Smrg PATH_SEPARATOR=';' 115696f02d4e9Smrg } 11570a73027baSmrgfi 11571a73027baSmrg 11572a73027baSmrg 11573a73027baSmrg# IFS 11574a73027baSmrg# We need space, tab and new line, in precisely that order. Quoting is 11575a73027baSmrg# there to prevent editors from complaining about space-tab. 11576a73027baSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11577a73027baSmrg# splitting by setting IFS to empty value.) 11578a73027baSmrgIFS=" "" $as_nl" 11579a73027baSmrg 11580a73027baSmrg# Find who we are. Look in the path if we contain no directory separator. 115816f02d4e9Smrgas_myself= 115826f02d4e9Smrgcase $0 in #(( 11583a73027baSmrg *[\\/]* ) as_myself=$0 ;; 11584a73027baSmrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11585a73027baSmrgfor as_dir in $PATH 11586a73027baSmrgdo 11587a73027baSmrg IFS=$as_save_IFS 11588a73027baSmrg test -z "$as_dir" && as_dir=. 115896f02d4e9Smrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 115906f02d4e9Smrg done 11591a73027baSmrgIFS=$as_save_IFS 11592a73027baSmrg 11593a73027baSmrg ;; 11594a73027baSmrgesac 11595a73027baSmrg# We did not find ourselves, most probably we were run as `sh COMMAND' 11596a73027baSmrg# in which case we are not to be found in the path. 11597a73027baSmrgif test "x$as_myself" = x; then 11598a73027baSmrg as_myself=$0 11599a73027baSmrgfi 11600a73027baSmrgif test ! -f "$as_myself"; then 116016f02d4e9Smrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 116026f02d4e9Smrg exit 1 11603a73027baSmrgfi 11604a73027baSmrg 116056f02d4e9Smrg# Unset variables that we do not need and which cause bugs (e.g. in 116066f02d4e9Smrg# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116076f02d4e9Smrg# suppresses any "Segmentation fault" message there. '((' could 116086f02d4e9Smrg# trigger a bug in pdksh 5.2.14. 116096f02d4e9Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH 116106f02d4e9Smrgdo eval test x\${$as_var+set} = xset \ 116116f02d4e9Smrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11612a73027baSmrgdone 11613a73027baSmrgPS1='$ ' 11614a73027baSmrgPS2='> ' 11615a73027baSmrgPS4='+ ' 11616a73027baSmrg 11617a73027baSmrg# NLS nuisances. 116186f02d4e9SmrgLC_ALL=C 116196f02d4e9Smrgexport LC_ALL 116206f02d4e9SmrgLANGUAGE=C 116216f02d4e9Smrgexport LANGUAGE 116226f02d4e9Smrg 116236f02d4e9Smrg# CDPATH. 116246f02d4e9Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 116256f02d4e9Smrg 116266f02d4e9Smrg 116276f02d4e9Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 116286f02d4e9Smrg# ---------------------------------------- 116296f02d4e9Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 116306f02d4e9Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 116316f02d4e9Smrg# script with STATUS, using 1 if that was 0. 116326f02d4e9Smrgas_fn_error () 116336f02d4e9Smrg{ 116346f02d4e9Smrg as_status=$1; test $as_status -eq 0 && as_status=1 116356f02d4e9Smrg if test "$4"; then 116366f02d4e9Smrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 116376f02d4e9Smrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 1163821212451Smrg fi 116396f02d4e9Smrg $as_echo "$as_me: error: $2" >&2 116406f02d4e9Smrg as_fn_exit $as_status 116416f02d4e9Smrg} # as_fn_error 116426f02d4e9Smrg 116436f02d4e9Smrg 116446f02d4e9Smrg# as_fn_set_status STATUS 116456f02d4e9Smrg# ----------------------- 116466f02d4e9Smrg# Set $? to STATUS, without forking. 116476f02d4e9Smrgas_fn_set_status () 116486f02d4e9Smrg{ 116496f02d4e9Smrg return $1 116506f02d4e9Smrg} # as_fn_set_status 116516f02d4e9Smrg 116526f02d4e9Smrg# as_fn_exit STATUS 116536f02d4e9Smrg# ----------------- 116546f02d4e9Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 116556f02d4e9Smrgas_fn_exit () 116566f02d4e9Smrg{ 116576f02d4e9Smrg set +e 116586f02d4e9Smrg as_fn_set_status $1 116596f02d4e9Smrg exit $1 116606f02d4e9Smrg} # as_fn_exit 116616f02d4e9Smrg 116626f02d4e9Smrg# as_fn_unset VAR 116636f02d4e9Smrg# --------------- 116646f02d4e9Smrg# Portably unset VAR. 116656f02d4e9Smrgas_fn_unset () 116666f02d4e9Smrg{ 116676f02d4e9Smrg { eval $1=; unset $1;} 116686f02d4e9Smrg} 116696f02d4e9Smrgas_unset=as_fn_unset 116706f02d4e9Smrg# as_fn_append VAR VALUE 116716f02d4e9Smrg# ---------------------- 116726f02d4e9Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take 116736f02d4e9Smrg# advantage of any shell optimizations that allow amortized linear growth over 116746f02d4e9Smrg# repeated appends, instead of the typical quadratic growth present in naive 116756f02d4e9Smrg# implementations. 116766f02d4e9Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 116776f02d4e9Smrg eval 'as_fn_append () 116786f02d4e9Smrg { 116796f02d4e9Smrg eval $1+=\$2 116806f02d4e9Smrg }' 116816f02d4e9Smrgelse 116826f02d4e9Smrg as_fn_append () 116836f02d4e9Smrg { 116846f02d4e9Smrg eval $1=\$$1\$2 116856f02d4e9Smrg } 116866f02d4e9Smrgfi # as_fn_append 116876f02d4e9Smrg 116886f02d4e9Smrg# as_fn_arith ARG... 116896f02d4e9Smrg# ------------------ 116906f02d4e9Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the 116916f02d4e9Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 116926f02d4e9Smrg# must be portable across $(()) and expr. 116936f02d4e9Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 116946f02d4e9Smrg eval 'as_fn_arith () 116956f02d4e9Smrg { 116966f02d4e9Smrg as_val=$(( $* )) 116976f02d4e9Smrg }' 116986f02d4e9Smrgelse 116996f02d4e9Smrg as_fn_arith () 117006f02d4e9Smrg { 117016f02d4e9Smrg as_val=`expr "$@" || test $? -eq 1` 117026f02d4e9Smrg } 117036f02d4e9Smrgfi # as_fn_arith 117046f02d4e9Smrg 11705a73027baSmrg 11706a73027baSmrgif expr a : '\(a\)' >/dev/null 2>&1 && 11707a73027baSmrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 11708a73027baSmrg as_expr=expr 11709a73027baSmrgelse 11710a73027baSmrg as_expr=false 11711a73027baSmrgfi 11712a73027baSmrg 11713a73027baSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11714a73027baSmrg as_basename=basename 11715a73027baSmrgelse 11716a73027baSmrg as_basename=false 11717a73027baSmrgfi 11718a73027baSmrg 117196f02d4e9Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 117206f02d4e9Smrg as_dirname=dirname 117216f02d4e9Smrgelse 117226f02d4e9Smrg as_dirname=false 117236f02d4e9Smrgfi 11724a73027baSmrg 11725a73027baSmrgas_me=`$as_basename -- "$0" || 11726a73027baSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11727a73027baSmrg X"$0" : 'X\(//\)$' \| \ 11728a73027baSmrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 117296f02d4e9Smrg$as_echo X/"$0" | 11730a73027baSmrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 11731a73027baSmrg s//\1/ 11732a73027baSmrg q 11733a73027baSmrg } 11734a73027baSmrg /^X\/\(\/\/\)$/{ 11735a73027baSmrg s//\1/ 11736a73027baSmrg q 11737a73027baSmrg } 11738a73027baSmrg /^X\/\(\/\).*/{ 11739a73027baSmrg s//\1/ 11740a73027baSmrg q 11741a73027baSmrg } 11742a73027baSmrg s/.*/./; q'` 11743a73027baSmrg 117446f02d4e9Smrg# Avoid depending upon Character Ranges. 117456f02d4e9Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 117466f02d4e9Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 117476f02d4e9Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 117486f02d4e9Smrgas_cr_digits='0123456789' 117496f02d4e9Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits 11750a73027baSmrg 11751a73027baSmrgECHO_C= ECHO_N= ECHO_T= 117526f02d4e9Smrgcase `echo -n x` in #((((( 11753a73027baSmrg-n*) 117546f02d4e9Smrg case `echo 'xy\c'` in 11755a73027baSmrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 117566f02d4e9Smrg xy) ECHO_C='\c';; 117576f02d4e9Smrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 117586f02d4e9Smrg ECHO_T=' ';; 11759a73027baSmrg esac;; 11760a73027baSmrg*) 11761a73027baSmrg ECHO_N='-n';; 11762a73027baSmrgesac 11763a73027baSmrg 11764bf4a254eSmrgrm -f conf$$ conf$$.exe conf$$.file 11765bf4a254eSmrgif test -d conf$$.dir; then 11766bf4a254eSmrg rm -f conf$$.dir/conf$$.file 11767a73027baSmrgelse 11768bf4a254eSmrg rm -f conf$$.dir 117696f02d4e9Smrg mkdir conf$$.dir 2>/dev/null 117706f02d4e9Smrgfi 117716f02d4e9Smrgif (echo >conf$$.file) 2>/dev/null; then 117726f02d4e9Smrg if ln -s conf$$.file conf$$ 2>/dev/null; then 117736f02d4e9Smrg as_ln_s='ln -s' 117746f02d4e9Smrg # ... but there are two gotchas: 117756f02d4e9Smrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 117766f02d4e9Smrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 117777253c0c7Smrg # In both cases, we have to default to `cp -pR'. 117786f02d4e9Smrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 117797253c0c7Smrg as_ln_s='cp -pR' 117806f02d4e9Smrg elif ln conf$$.file conf$$ 2>/dev/null; then 117816f02d4e9Smrg as_ln_s=ln 117826f02d4e9Smrg else 117837253c0c7Smrg as_ln_s='cp -pR' 117846f02d4e9Smrg fi 11785bf4a254eSmrgelse 117867253c0c7Smrg as_ln_s='cp -pR' 11787a73027baSmrgfi 11788bf4a254eSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11789bf4a254eSmrgrmdir conf$$.dir 2>/dev/null 11790bf4a254eSmrg 117916f02d4e9Smrg 117926f02d4e9Smrg# as_fn_mkdir_p 117936f02d4e9Smrg# ------------- 117946f02d4e9Smrg# Create "$as_dir" as a directory, including parents if necessary. 117956f02d4e9Smrgas_fn_mkdir_p () 117966f02d4e9Smrg{ 117976f02d4e9Smrg 117986f02d4e9Smrg case $as_dir in #( 117996f02d4e9Smrg -*) as_dir=./$as_dir;; 118006f02d4e9Smrg esac 118016f02d4e9Smrg test -d "$as_dir" || eval $as_mkdir_p || { 118026f02d4e9Smrg as_dirs= 118036f02d4e9Smrg while :; do 118046f02d4e9Smrg case $as_dir in #( 118056f02d4e9Smrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 118066f02d4e9Smrg *) as_qdir=$as_dir;; 118076f02d4e9Smrg esac 118086f02d4e9Smrg as_dirs="'$as_qdir' $as_dirs" 118096f02d4e9Smrg as_dir=`$as_dirname -- "$as_dir" || 118106f02d4e9Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 118116f02d4e9Smrg X"$as_dir" : 'X\(//\)[^/]' \| \ 118126f02d4e9Smrg X"$as_dir" : 'X\(//\)$' \| \ 118136f02d4e9Smrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 118146f02d4e9Smrg$as_echo X"$as_dir" | 118156f02d4e9Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 118166f02d4e9Smrg s//\1/ 118176f02d4e9Smrg q 118186f02d4e9Smrg } 118196f02d4e9Smrg /^X\(\/\/\)[^/].*/{ 118206f02d4e9Smrg s//\1/ 118216f02d4e9Smrg q 118226f02d4e9Smrg } 118236f02d4e9Smrg /^X\(\/\/\)$/{ 118246f02d4e9Smrg s//\1/ 118256f02d4e9Smrg q 118266f02d4e9Smrg } 118276f02d4e9Smrg /^X\(\/\).*/{ 118286f02d4e9Smrg s//\1/ 118296f02d4e9Smrg q 118306f02d4e9Smrg } 118316f02d4e9Smrg s/.*/./; q'` 118326f02d4e9Smrg test -d "$as_dir" && break 118336f02d4e9Smrg done 118346f02d4e9Smrg test -z "$as_dirs" || eval "mkdir $as_dirs" 118356f02d4e9Smrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 118366f02d4e9Smrg 118376f02d4e9Smrg 118386f02d4e9Smrg} # as_fn_mkdir_p 11839a73027baSmrgif mkdir -p . 2>/dev/null; then 118406f02d4e9Smrg as_mkdir_p='mkdir -p "$as_dir"' 11841a73027baSmrgelse 11842a73027baSmrg test -d ./-p && rmdir ./-p 11843a73027baSmrg as_mkdir_p=false 11844a73027baSmrgfi 11845a73027baSmrg 118467253c0c7Smrg 118477253c0c7Smrg# as_fn_executable_p FILE 118487253c0c7Smrg# ----------------------- 118497253c0c7Smrg# Test if FILE is an executable regular file. 118507253c0c7Smrgas_fn_executable_p () 118517253c0c7Smrg{ 118527253c0c7Smrg test -f "$1" && test -x "$1" 118537253c0c7Smrg} # as_fn_executable_p 118547253c0c7Smrgas_test_x='test -x' 118557253c0c7Smrgas_executable_p=as_fn_executable_p 11856a73027baSmrg 11857a73027baSmrg# Sed expression to map a string onto a valid CPP name. 11858a73027baSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11859a73027baSmrg 11860a73027baSmrg# Sed expression to map a string onto a valid variable name. 11861a73027baSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11862a73027baSmrg 11863a73027baSmrg 11864a73027baSmrgexec 6>&1 118656f02d4e9Smrg## ----------------------------------- ## 118666f02d4e9Smrg## Main body of $CONFIG_STATUS script. ## 118676f02d4e9Smrg## ----------------------------------- ## 118686f02d4e9Smrg_ASEOF 118696f02d4e9Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11870a73027baSmrg 118716f02d4e9Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 118726f02d4e9Smrg# Save the log message, to keep $0 and so on meaningful, and to 11873a73027baSmrg# report actual input values of CONFIG_FILES etc. instead of their 11874a73027baSmrg# values after options handling. 11875a73027baSmrgac_log=" 11876d73e0b87SmrgThis file was extended by xinit $as_me 1.4.0, which was 118777253c0c7Smrggenerated by GNU Autoconf 2.69. Invocation command line was 11878a73027baSmrg 11879a73027baSmrg CONFIG_FILES = $CONFIG_FILES 11880a73027baSmrg CONFIG_HEADERS = $CONFIG_HEADERS 11881a73027baSmrg CONFIG_LINKS = $CONFIG_LINKS 11882a73027baSmrg CONFIG_COMMANDS = $CONFIG_COMMANDS 11883a73027baSmrg $ $0 $@ 11884a73027baSmrg 11885a73027baSmrgon `(hostname || uname -n) 2>/dev/null | sed 1q` 11886a73027baSmrg" 11887a73027baSmrg 11888a73027baSmrg_ACEOF 11889a73027baSmrg 118906f02d4e9Smrgcase $ac_config_files in *" 118916f02d4e9Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;; 118926f02d4e9Smrgesac 118936f02d4e9Smrg 118946f02d4e9Smrgcase $ac_config_headers in *" 118956f02d4e9Smrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 118966f02d4e9Smrgesac 118976f02d4e9Smrg 118986f02d4e9Smrg 118996f02d4e9Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11900a73027baSmrg# Files that config.status was made for. 11901a73027baSmrgconfig_files="$ac_config_files" 11902a73027baSmrgconfig_headers="$ac_config_headers" 11903a73027baSmrgconfig_commands="$ac_config_commands" 11904a73027baSmrg 11905a73027baSmrg_ACEOF 11906a73027baSmrg 119076f02d4e9Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11908a73027baSmrgac_cs_usage="\ 119096f02d4e9Smrg\`$as_me' instantiates files and other configuration actions 119106f02d4e9Smrgfrom templates according to the current configuration. Unless the files 119116f02d4e9Smrgand actions are specified as TAGs, all are instantiated by default. 11912a73027baSmrg 119136f02d4e9SmrgUsage: $0 [OPTION]... [TAG]... 11914a73027baSmrg 11915a73027baSmrg -h, --help print this help, then exit 11916a73027baSmrg -V, --version print version number and configuration settings, then exit 119176f02d4e9Smrg --config print configuration, then exit 119186f02d4e9Smrg -q, --quiet, --silent 119196f02d4e9Smrg do not print progress messages 11920a73027baSmrg -d, --debug don't remove temporary files 11921a73027baSmrg --recheck update $as_me by reconfiguring in the same conditions 119226f02d4e9Smrg --file=FILE[:TEMPLATE] 119236f02d4e9Smrg instantiate the configuration file FILE 119246f02d4e9Smrg --header=FILE[:TEMPLATE] 119256f02d4e9Smrg instantiate the configuration header FILE 11926a73027baSmrg 11927a73027baSmrgConfiguration files: 11928a73027baSmrg$config_files 11929a73027baSmrg 11930a73027baSmrgConfiguration headers: 11931a73027baSmrg$config_headers 11932a73027baSmrg 11933a73027baSmrgConfiguration commands: 11934a73027baSmrg$config_commands 11935a73027baSmrg 119366f02d4e9SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 11937a73027baSmrg 11938a73027baSmrg_ACEOF 119396f02d4e9Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 119406f02d4e9Smrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11941a73027baSmrgac_cs_version="\\ 11942d73e0b87Smrgxinit config.status 1.4.0 119437253c0c7Smrgconfigured by $0, generated by GNU Autoconf 2.69, 119446f02d4e9Smrg with options \\"\$ac_cs_config\\" 11945a73027baSmrg 119467253c0c7SmrgCopyright (C) 2012 Free Software Foundation, Inc. 11947a73027baSmrgThis config.status script is free software; the Free Software Foundation 11948a73027baSmrggives unlimited permission to copy, distribute and modify it." 11949a73027baSmrg 11950a73027baSmrgac_pwd='$ac_pwd' 11951a73027baSmrgsrcdir='$srcdir' 11952a73027baSmrgINSTALL='$INSTALL' 11953a73027baSmrgMKDIR_P='$MKDIR_P' 119546f02d4e9SmrgAWK='$AWK' 119556f02d4e9Smrgtest -n "\$AWK" || AWK=awk 11956a73027baSmrg_ACEOF 11957a73027baSmrg 119586f02d4e9Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 119596f02d4e9Smrg# The default lists apply if the user does not specify any file. 11960a73027baSmrgac_need_defaults=: 11961a73027baSmrgwhile test $# != 0 11962a73027baSmrgdo 11963a73027baSmrg case $1 in 119646f02d4e9Smrg --*=?*) 11965a73027baSmrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 11966a73027baSmrg ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11967a73027baSmrg ac_shift=: 11968a73027baSmrg ;; 119696f02d4e9Smrg --*=) 119706f02d4e9Smrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 119716f02d4e9Smrg ac_optarg= 119726f02d4e9Smrg ac_shift=: 119736f02d4e9Smrg ;; 11974a73027baSmrg *) 11975a73027baSmrg ac_option=$1 11976a73027baSmrg ac_optarg=$2 11977a73027baSmrg ac_shift=shift 11978a73027baSmrg ;; 11979a73027baSmrg esac 11980a73027baSmrg 11981a73027baSmrg case $ac_option in 11982a73027baSmrg # Handling of the options. 11983a73027baSmrg -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11984a73027baSmrg ac_cs_recheck=: ;; 11985a73027baSmrg --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 119866f02d4e9Smrg $as_echo "$ac_cs_version"; exit ;; 119876f02d4e9Smrg --config | --confi | --conf | --con | --co | --c ) 119886f02d4e9Smrg $as_echo "$ac_cs_config"; exit ;; 11989a73027baSmrg --debug | --debu | --deb | --de | --d | -d ) 11990a73027baSmrg debug=: ;; 11991a73027baSmrg --file | --fil | --fi | --f ) 11992a73027baSmrg $ac_shift 119936f02d4e9Smrg case $ac_optarg in 119946f02d4e9Smrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 119956f02d4e9Smrg '') as_fn_error $? "missing file argument" ;; 119966f02d4e9Smrg esac 119976f02d4e9Smrg as_fn_append CONFIG_FILES " '$ac_optarg'" 11998a73027baSmrg ac_need_defaults=false;; 11999a73027baSmrg --header | --heade | --head | --hea ) 12000a73027baSmrg $ac_shift 120016f02d4e9Smrg case $ac_optarg in 120026f02d4e9Smrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 120036f02d4e9Smrg esac 120046f02d4e9Smrg as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12005a73027baSmrg ac_need_defaults=false;; 12006a73027baSmrg --he | --h) 12007a73027baSmrg # Conflict between --help and --header 120086f02d4e9Smrg as_fn_error $? "ambiguous option: \`$1' 120096f02d4e9SmrgTry \`$0 --help' for more information.";; 12010a73027baSmrg --help | --hel | -h ) 120116f02d4e9Smrg $as_echo "$ac_cs_usage"; exit ;; 12012a73027baSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12013a73027baSmrg | -silent | --silent | --silen | --sile | --sil | --si | --s) 12014a73027baSmrg ac_cs_silent=: ;; 12015a73027baSmrg 12016a73027baSmrg # This is an error. 120176f02d4e9Smrg -*) as_fn_error $? "unrecognized option: \`$1' 120186f02d4e9SmrgTry \`$0 --help' for more information." ;; 12019a73027baSmrg 120206f02d4e9Smrg *) as_fn_append ac_config_targets " $1" 12021a73027baSmrg ac_need_defaults=false ;; 12022a73027baSmrg 12023a73027baSmrg esac 12024a73027baSmrg shift 12025a73027baSmrgdone 12026a73027baSmrg 12027a73027baSmrgac_configure_extra_args= 12028a73027baSmrg 12029a73027baSmrgif $ac_cs_silent; then 12030a73027baSmrg exec 6>/dev/null 12031a73027baSmrg ac_configure_extra_args="$ac_configure_extra_args --silent" 12032a73027baSmrgfi 12033a73027baSmrg 12034a73027baSmrg_ACEOF 120356f02d4e9Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12036a73027baSmrgif \$ac_cs_recheck; then 120377253c0c7Smrg set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 120386f02d4e9Smrg shift 120396f02d4e9Smrg \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 120406f02d4e9Smrg CONFIG_SHELL='$SHELL' 12041a73027baSmrg export CONFIG_SHELL 120426f02d4e9Smrg exec "\$@" 12043a73027baSmrgfi 12044a73027baSmrg 12045a73027baSmrg_ACEOF 120466f02d4e9Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12047a73027baSmrgexec 5>>config.log 12048a73027baSmrg{ 12049a73027baSmrg echo 12050a73027baSmrg sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12051a73027baSmrg## Running $as_me. ## 12052a73027baSmrg_ASBOX 120536f02d4e9Smrg $as_echo "$ac_log" 12054a73027baSmrg} >&5 12055a73027baSmrg 12056a73027baSmrg_ACEOF 120576f02d4e9Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12058a73027baSmrg# 12059a73027baSmrg# INIT-COMMANDS 12060a73027baSmrg# 12061a73027baSmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 12062a73027baSmrg 12063a73027baSmrg_ACEOF 12064a73027baSmrg 120656f02d4e9Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12066a73027baSmrg 12067a73027baSmrg# Handling of arguments. 12068a73027baSmrgfor ac_config_target in $ac_config_targets 12069a73027baSmrgdo 12070a73027baSmrg case $ac_config_target in 12071bf4a254eSmrg "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12072a73027baSmrg "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12073a73027baSmrg "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12074c81d8f5eSmrg "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12075c81d8f5eSmrg "launchd/Makefile") CONFIG_FILES="$CONFIG_FILES launchd/Makefile" ;; 12076c81d8f5eSmrg "launchd/privileged_startx/Makefile") CONFIG_FILES="$CONFIG_FILES launchd/privileged_startx/Makefile" ;; 12077c81d8f5eSmrg "launchd/user_startx/Makefile") CONFIG_FILES="$CONFIG_FILES launchd/user_startx/Makefile" ;; 12078a73027baSmrg 120796f02d4e9Smrg *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 12080a73027baSmrg esac 12081a73027baSmrgdone 12082a73027baSmrg 12083a73027baSmrg 12084a73027baSmrg# If the user did not use the arguments to specify the items to instantiate, 12085a73027baSmrg# then the envvar interface is used. Set only those that are not. 12086a73027baSmrg# We use the long form for the default assignment because of an extremely 12087a73027baSmrg# bizarre bug on SunOS 4.1.3. 12088a73027baSmrgif $ac_need_defaults; then 12089a73027baSmrg test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 12090a73027baSmrg test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 12091a73027baSmrg test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 12092a73027baSmrgfi 12093a73027baSmrg 12094a73027baSmrg# Have a temporary directory for convenience. Make it in the build tree 12095a73027baSmrg# simply because there is no reason against having it here, and in addition, 12096a73027baSmrg# creating and moving files from /tmp can sometimes cause problems. 12097a73027baSmrg# Hook for its removal unless debugging. 12098a73027baSmrg# Note that there is a small window in which the directory will not be cleaned: 12099a73027baSmrg# after its creation but before its name has been assigned to `$tmp'. 12100a73027baSmrg$debug || 12101a73027baSmrg{ 121026f02d4e9Smrg tmp= ac_tmp= 12103a73027baSmrg trap 'exit_status=$? 121046f02d4e9Smrg : "${ac_tmp:=$tmp}" 121056f02d4e9Smrg { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12106a73027baSmrg' 0 121076f02d4e9Smrg trap 'as_fn_exit 1' 1 2 13 15 12108a73027baSmrg} 12109a73027baSmrg# Create a (secure) tmp directory for tmp files. 12110a73027baSmrg 12111a73027baSmrg{ 12112a73027baSmrg tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 121136f02d4e9Smrg test -d "$tmp" 12114a73027baSmrg} || 12115a73027baSmrg{ 12116a73027baSmrg tmp=./conf$$-$RANDOM 12117a73027baSmrg (umask 077 && mkdir "$tmp") 121186f02d4e9Smrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 121196f02d4e9Smrgac_tmp=$tmp 12120a73027baSmrg 121216f02d4e9Smrg# Set up the scripts for CONFIG_FILES section. 121226f02d4e9Smrg# No need to generate them if there are no CONFIG_FILES. 121236f02d4e9Smrg# This happens for instance with `./config.status config.h'. 1212421212451Smrgif test -n "$CONFIG_FILES"; then 12125a73027baSmrg 12126a73027baSmrg 121276f02d4e9Smrgac_cr=`echo X | tr X '\015'` 121286f02d4e9Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr. 121296f02d4e9Smrg# But we know of no other shell where ac_cr would be empty at this 121306f02d4e9Smrg# point, so we can use a bashism as a fallback. 121316f02d4e9Smrgif test "x$ac_cr" = x; then 121326f02d4e9Smrg eval ac_cr=\$\'\\r\' 121336f02d4e9Smrgfi 121346f02d4e9Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 121356f02d4e9Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 121366f02d4e9Smrg ac_cs_awk_cr='\\r' 121376f02d4e9Smrgelse 121386f02d4e9Smrg ac_cs_awk_cr=$ac_cr 1213921212451Smrgfi 12140a73027baSmrg 121416f02d4e9Smrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" && 12142a73027baSmrg_ACEOF 12143a73027baSmrg 12144a73027baSmrg 121456f02d4e9Smrg{ 121466f02d4e9Smrg echo "cat >conf$$subs.awk <<_ACEOF" && 121476f02d4e9Smrg echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 121486f02d4e9Smrg echo "_ACEOF" 121496f02d4e9Smrg} >conf$$subs.sh || 121506f02d4e9Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 121516f02d4e9Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 1215221212451Smrgac_delim='%!_!# ' 1215321212451Smrgfor ac_last_try in false false false false false :; do 121546f02d4e9Smrg . ./conf$$subs.sh || 121556f02d4e9Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 121566f02d4e9Smrg 121576f02d4e9Smrg ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 121586f02d4e9Smrg if test $ac_delim_n = $ac_delim_num; then 12159bf4a254eSmrg break 12160bf4a254eSmrg elif $ac_last_try; then 121616f02d4e9Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12162bf4a254eSmrg else 12163bf4a254eSmrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12164bf4a254eSmrg fi 12165bf4a254eSmrgdone 121666f02d4e9Smrgrm -f conf$$subs.sh 121676f02d4e9Smrg 121686f02d4e9Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 121696f02d4e9Smrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 121706f02d4e9Smrg_ACEOF 121716f02d4e9Smrgsed -n ' 121726f02d4e9Smrgh 121736f02d4e9Smrgs/^/S["/; s/!.*/"]=/ 121746f02d4e9Smrgp 121756f02d4e9Smrgg 121766f02d4e9Smrgs/^[^!]*!// 121776f02d4e9Smrg:repl 121786f02d4e9Smrgt repl 121796f02d4e9Smrgs/'"$ac_delim"'$// 121806f02d4e9Smrgt delim 121816f02d4e9Smrg:nl 121826f02d4e9Smrgh 121836f02d4e9Smrgs/\(.\{148\}\)..*/\1/ 121846f02d4e9Smrgt more1 121856f02d4e9Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 121866f02d4e9Smrgp 121876f02d4e9Smrgn 121886f02d4e9Smrgb repl 121896f02d4e9Smrg:more1 121906f02d4e9Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 121916f02d4e9Smrgp 121926f02d4e9Smrgg 121936f02d4e9Smrgs/.\{148\}// 121946f02d4e9Smrgt nl 121956f02d4e9Smrg:delim 121966f02d4e9Smrgh 121976f02d4e9Smrgs/\(.\{148\}\)..*/\1/ 121986f02d4e9Smrgt more2 121996f02d4e9Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/ 122006f02d4e9Smrgp 122016f02d4e9Smrgb 122026f02d4e9Smrg:more2 122036f02d4e9Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 122046f02d4e9Smrgp 122056f02d4e9Smrgg 122066f02d4e9Smrgs/.\{148\}// 122076f02d4e9Smrgt delim 122086f02d4e9Smrg' <conf$$subs.awk | sed ' 122096f02d4e9Smrg/^[^""]/{ 122106f02d4e9Smrg N 122116f02d4e9Smrg s/\n// 122126f02d4e9Smrg} 122136f02d4e9Smrg' >>$CONFIG_STATUS || ac_write_fail=1 122146f02d4e9Smrgrm -f conf$$subs.awk 122156f02d4e9Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 122166f02d4e9Smrg_ACAWK 122176f02d4e9Smrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 122186f02d4e9Smrg for (key in S) S_is_set[key] = 1 122196f02d4e9Smrg FS = "" 12220bf4a254eSmrg 122216f02d4e9Smrg} 122226f02d4e9Smrg{ 122236f02d4e9Smrg line = $ 0 122246f02d4e9Smrg nfields = split(line, field, "@") 122256f02d4e9Smrg substed = 0 122266f02d4e9Smrg len = length(field[1]) 122276f02d4e9Smrg for (i = 2; i < nfields; i++) { 122286f02d4e9Smrg key = field[i] 122296f02d4e9Smrg keylen = length(key) 122306f02d4e9Smrg if (S_is_set[key]) { 122316f02d4e9Smrg value = S[key] 122326f02d4e9Smrg line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 122336f02d4e9Smrg len += length(value) + length(field[++i]) 122346f02d4e9Smrg substed = 1 122356f02d4e9Smrg } else 122366f02d4e9Smrg len += 1 + keylen 122376f02d4e9Smrg } 122386f02d4e9Smrg 122396f02d4e9Smrg print line 122406f02d4e9Smrg} 12241bf4a254eSmrg 122426f02d4e9Smrg_ACAWK 1224321212451Smrg_ACEOF 122446f02d4e9Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 122456f02d4e9Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 122466f02d4e9Smrg sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 122476f02d4e9Smrgelse 122486f02d4e9Smrg cat 122496f02d4e9Smrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 122506f02d4e9Smrg || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12251bf4a254eSmrg_ACEOF 12252bf4a254eSmrg 122536f02d4e9Smrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 122546f02d4e9Smrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 1225521212451Smrg# trailing colons and then remove the whole line if VPATH becomes empty 1225621212451Smrg# (actually we leave an empty line to preserve line numbers). 1225721212451Smrgif test "x$srcdir" = x.; then 122586f02d4e9Smrg ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 122596f02d4e9Smrgh 122606f02d4e9Smrgs/// 122616f02d4e9Smrgs/^/:/ 122626f02d4e9Smrgs/[ ]*$/:/ 122636f02d4e9Smrgs/:\$(srcdir):/:/g 122646f02d4e9Smrgs/:\${srcdir}:/:/g 122656f02d4e9Smrgs/:@srcdir@:/:/g 122666f02d4e9Smrgs/^:*// 1226721212451Smrgs/:*$// 122686f02d4e9Smrgx 122696f02d4e9Smrgs/\(=[ ]*\).*/\1/ 122706f02d4e9SmrgG 122716f02d4e9Smrgs/\n// 1227221212451Smrgs/^[^=]*=[ ]*$// 1227321212451Smrg}' 1227421212451Smrgfi 1227521212451Smrg 122766f02d4e9Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 1227721212451Smrgfi # test -n "$CONFIG_FILES" 1227821212451Smrg 122796f02d4e9Smrg# Set up the scripts for CONFIG_HEADERS section. 122806f02d4e9Smrg# No need to generate them if there are no CONFIG_HEADERS. 122816f02d4e9Smrg# This happens for instance with `./config.status Makefile'. 122826f02d4e9Smrgif test -n "$CONFIG_HEADERS"; then 122836f02d4e9Smrgcat >"$ac_tmp/defines.awk" <<\_ACAWK || 122846f02d4e9SmrgBEGIN { 122856f02d4e9Smrg_ACEOF 122866f02d4e9Smrg 122876f02d4e9Smrg# Transform confdefs.h into an awk script `defines.awk', embedded as 122886f02d4e9Smrg# here-document in config.status, that substitutes the proper values into 122896f02d4e9Smrg# config.h.in to produce config.h. 122906f02d4e9Smrg 122916f02d4e9Smrg# Create a delimiter string that does not exist in confdefs.h, to ease 122926f02d4e9Smrg# handling of long lines. 122936f02d4e9Smrgac_delim='%!_!# ' 122946f02d4e9Smrgfor ac_last_try in false false :; do 122956f02d4e9Smrg ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 122966f02d4e9Smrg if test -z "$ac_tt"; then 122976f02d4e9Smrg break 122986f02d4e9Smrg elif $ac_last_try; then 122996f02d4e9Smrg as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 123006f02d4e9Smrg else 123016f02d4e9Smrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 123026f02d4e9Smrg fi 123036f02d4e9Smrgdone 123046f02d4e9Smrg 123056f02d4e9Smrg# For the awk script, D is an array of macro values keyed by name, 123066f02d4e9Smrg# likewise P contains macro parameters if any. Preserve backslash 123076f02d4e9Smrg# newline sequences. 123086f02d4e9Smrg 123096f02d4e9Smrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 123106f02d4e9Smrgsed -n ' 123116f02d4e9Smrgs/.\{148\}/&'"$ac_delim"'/g 123126f02d4e9Smrgt rset 123136f02d4e9Smrg:rset 123146f02d4e9Smrgs/^[ ]*#[ ]*define[ ][ ]*/ / 123156f02d4e9Smrgt def 123166f02d4e9Smrgd 123176f02d4e9Smrg:def 123186f02d4e9Smrgs/\\$// 123196f02d4e9Smrgt bsnl 123206f02d4e9Smrgs/["\\]/\\&/g 123216f02d4e9Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 123226f02d4e9SmrgD["\1"]=" \3"/p 123236f02d4e9Smrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 123246f02d4e9Smrgd 123256f02d4e9Smrg:bsnl 123266f02d4e9Smrgs/["\\]/\\&/g 123276f02d4e9Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 123286f02d4e9SmrgD["\1"]=" \3\\\\\\n"\\/p 123296f02d4e9Smrgt cont 123306f02d4e9Smrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 123316f02d4e9Smrgt cont 123326f02d4e9Smrgd 123336f02d4e9Smrg:cont 123346f02d4e9Smrgn 123356f02d4e9Smrgs/.\{148\}/&'"$ac_delim"'/g 123366f02d4e9Smrgt clear 123376f02d4e9Smrg:clear 123386f02d4e9Smrgs/\\$// 123396f02d4e9Smrgt bsnlc 123406f02d4e9Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/p 123416f02d4e9Smrgd 123426f02d4e9Smrg:bsnlc 123436f02d4e9Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 123446f02d4e9Smrgb cont 123456f02d4e9Smrg' <confdefs.h | sed ' 123466f02d4e9Smrgs/'"$ac_delim"'/"\\\ 123476f02d4e9Smrg"/g' >>$CONFIG_STATUS || ac_write_fail=1 123486f02d4e9Smrg 123496f02d4e9Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 123506f02d4e9Smrg for (key in D) D_is_set[key] = 1 123516f02d4e9Smrg FS = "" 123526f02d4e9Smrg} 123536f02d4e9Smrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 123546f02d4e9Smrg line = \$ 0 123556f02d4e9Smrg split(line, arg, " ") 123566f02d4e9Smrg if (arg[1] == "#") { 123576f02d4e9Smrg defundef = arg[2] 123586f02d4e9Smrg mac1 = arg[3] 123596f02d4e9Smrg } else { 123606f02d4e9Smrg defundef = substr(arg[1], 2) 123616f02d4e9Smrg mac1 = arg[2] 123626f02d4e9Smrg } 123636f02d4e9Smrg split(mac1, mac2, "(") #) 123646f02d4e9Smrg macro = mac2[1] 123656f02d4e9Smrg prefix = substr(line, 1, index(line, defundef) - 1) 123666f02d4e9Smrg if (D_is_set[macro]) { 123676f02d4e9Smrg # Preserve the white space surrounding the "#". 123686f02d4e9Smrg print prefix "define", macro P[macro] D[macro] 123696f02d4e9Smrg next 123706f02d4e9Smrg } else { 123716f02d4e9Smrg # Replace #undef with comments. This is necessary, for example, 123726f02d4e9Smrg # in the case of _POSIX_SOURCE, which is predefined and required 123736f02d4e9Smrg # on some systems where configure will not decide to define it. 123746f02d4e9Smrg if (defundef == "undef") { 123756f02d4e9Smrg print "/*", prefix defundef, macro, "*/" 123766f02d4e9Smrg next 123776f02d4e9Smrg } 123786f02d4e9Smrg } 123796f02d4e9Smrg} 123806f02d4e9Smrg{ print } 123816f02d4e9Smrg_ACAWK 123826f02d4e9Smrg_ACEOF 123836f02d4e9Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 123846f02d4e9Smrg as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 123856f02d4e9Smrgfi # test -n "$CONFIG_HEADERS" 123866f02d4e9Smrg 1238721212451Smrg 123886f02d4e9Smrgeval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 123896f02d4e9Smrgshift 123906f02d4e9Smrgfor ac_tag 12391a73027baSmrgdo 12392a73027baSmrg case $ac_tag in 12393a73027baSmrg :[FHLC]) ac_mode=$ac_tag; continue;; 12394a73027baSmrg esac 12395a73027baSmrg case $ac_mode$ac_tag in 12396a73027baSmrg :[FHL]*:*);; 123976f02d4e9Smrg :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12398a73027baSmrg :[FH]-) ac_tag=-:-;; 12399a73027baSmrg :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12400a73027baSmrg esac 12401a73027baSmrg ac_save_IFS=$IFS 12402a73027baSmrg IFS=: 12403a73027baSmrg set x $ac_tag 12404a73027baSmrg IFS=$ac_save_IFS 12405a73027baSmrg shift 12406a73027baSmrg ac_file=$1 12407a73027baSmrg shift 12408a73027baSmrg 12409a73027baSmrg case $ac_mode in 12410a73027baSmrg :L) ac_source=$1;; 12411a73027baSmrg :[FH]) 12412a73027baSmrg ac_file_inputs= 12413a73027baSmrg for ac_f 12414a73027baSmrg do 12415a73027baSmrg case $ac_f in 124166f02d4e9Smrg -) ac_f="$ac_tmp/stdin";; 12417a73027baSmrg *) # Look for the file first in the build tree, then in the source tree 12418a73027baSmrg # (if the path is not absolute). The absolute path cannot be DOS-style, 12419a73027baSmrg # because $ac_f cannot contain `:'. 12420a73027baSmrg test -f "$ac_f" || 12421a73027baSmrg case $ac_f in 12422a73027baSmrg [\\/$]*) false;; 12423a73027baSmrg *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12424a73027baSmrg esac || 124256f02d4e9Smrg as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12426a73027baSmrg esac 124276f02d4e9Smrg case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 124286f02d4e9Smrg as_fn_append ac_file_inputs " '$ac_f'" 12429a73027baSmrg done 12430a73027baSmrg 12431a73027baSmrg # Let's still pretend it is `configure' which instantiates (i.e., don't 12432a73027baSmrg # use $as_me), people would be surprised to read: 12433a73027baSmrg # /* config.h. Generated by config.status. */ 124346f02d4e9Smrg configure_input='Generated from '` 124356f02d4e9Smrg $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 124366f02d4e9Smrg `' by configure.' 12437a73027baSmrg if test x"$ac_file" != x-; then 12438a73027baSmrg configure_input="$ac_file. $configure_input" 124396f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 124406f02d4e9Smrg$as_echo "$as_me: creating $ac_file" >&6;} 12441a73027baSmrg fi 124426f02d4e9Smrg # Neutralize special characters interpreted by sed in replacement strings. 124436f02d4e9Smrg case $configure_input in #( 124446f02d4e9Smrg *\&* | *\|* | *\\* ) 124456f02d4e9Smrg ac_sed_conf_input=`$as_echo "$configure_input" | 124466f02d4e9Smrg sed 's/[\\\\&|]/\\\\&/g'`;; #( 124476f02d4e9Smrg *) ac_sed_conf_input=$configure_input;; 124486f02d4e9Smrg esac 12449a73027baSmrg 12450a73027baSmrg case $ac_tag in 124516f02d4e9Smrg *:-:* | *:-) cat >"$ac_tmp/stdin" \ 124526f02d4e9Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12453a73027baSmrg esac 12454a73027baSmrg ;; 12455a73027baSmrg esac 12456a73027baSmrg 12457a73027baSmrg ac_dir=`$as_dirname -- "$ac_file" || 12458a73027baSmrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12459a73027baSmrg X"$ac_file" : 'X\(//\)[^/]' \| \ 12460a73027baSmrg X"$ac_file" : 'X\(//\)$' \| \ 12461a73027baSmrg X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 124626f02d4e9Smrg$as_echo X"$ac_file" | 12463a73027baSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12464a73027baSmrg s//\1/ 12465a73027baSmrg q 12466a73027baSmrg } 12467a73027baSmrg /^X\(\/\/\)[^/].*/{ 12468a73027baSmrg s//\1/ 12469a73027baSmrg q 12470a73027baSmrg } 12471a73027baSmrg /^X\(\/\/\)$/{ 12472a73027baSmrg s//\1/ 12473a73027baSmrg q 12474a73027baSmrg } 12475a73027baSmrg /^X\(\/\).*/{ 12476a73027baSmrg s//\1/ 12477a73027baSmrg q 12478a73027baSmrg } 12479a73027baSmrg s/.*/./; q'` 124806f02d4e9Smrg as_dir="$ac_dir"; as_fn_mkdir_p 12481a73027baSmrg ac_builddir=. 12482a73027baSmrg 12483a73027baSmrgcase "$ac_dir" in 12484a73027baSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12485a73027baSmrg*) 124866f02d4e9Smrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 12487a73027baSmrg # A ".." for each directory in $ac_dir_suffix. 124886f02d4e9Smrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12489a73027baSmrg case $ac_top_builddir_sub in 12490a73027baSmrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12491a73027baSmrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12492a73027baSmrg esac ;; 12493a73027baSmrgesac 12494a73027baSmrgac_abs_top_builddir=$ac_pwd 12495a73027baSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix 12496a73027baSmrg# for backward compatibility: 12497a73027baSmrgac_top_builddir=$ac_top_build_prefix 12498a73027baSmrg 12499a73027baSmrgcase $srcdir in 12500a73027baSmrg .) # We are building in place. 12501a73027baSmrg ac_srcdir=. 12502a73027baSmrg ac_top_srcdir=$ac_top_builddir_sub 12503a73027baSmrg ac_abs_top_srcdir=$ac_pwd ;; 12504a73027baSmrg [\\/]* | ?:[\\/]* ) # Absolute name. 12505a73027baSmrg ac_srcdir=$srcdir$ac_dir_suffix; 12506a73027baSmrg ac_top_srcdir=$srcdir 12507a73027baSmrg ac_abs_top_srcdir=$srcdir ;; 12508a73027baSmrg *) # Relative name. 12509a73027baSmrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12510a73027baSmrg ac_top_srcdir=$ac_top_build_prefix$srcdir 12511a73027baSmrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12512a73027baSmrgesac 12513a73027baSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12514a73027baSmrg 12515a73027baSmrg 12516a73027baSmrg case $ac_mode in 12517a73027baSmrg :F) 12518a73027baSmrg # 12519a73027baSmrg # CONFIG_FILE 12520a73027baSmrg # 12521a73027baSmrg 12522a73027baSmrg case $INSTALL in 12523a73027baSmrg [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12524a73027baSmrg *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12525a73027baSmrg esac 12526a73027baSmrg ac_MKDIR_P=$MKDIR_P 12527a73027baSmrg case $MKDIR_P in 12528a73027baSmrg [\\/$]* | ?:[\\/]* ) ;; 12529a73027baSmrg */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12530a73027baSmrg esac 12531a73027baSmrg_ACEOF 12532a73027baSmrg 125336f02d4e9Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12534a73027baSmrg# If the template does not know about datarootdir, expand it. 12535a73027baSmrg# FIXME: This hack should be removed a few years after 2.60. 12536a73027baSmrgac_datarootdir_hack=; ac_datarootdir_seen= 125376f02d4e9Smrgac_sed_dataroot=' 125386f02d4e9Smrg/datarootdir/ { 12539a73027baSmrg p 12540a73027baSmrg q 12541a73027baSmrg} 12542a73027baSmrg/@datadir@/p 12543a73027baSmrg/@docdir@/p 12544a73027baSmrg/@infodir@/p 12545a73027baSmrg/@localedir@/p 125466f02d4e9Smrg/@mandir@/p' 125476f02d4e9Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12548a73027baSmrg*datarootdir*) ac_datarootdir_seen=yes;; 12549a73027baSmrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 125506f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 125516f02d4e9Smrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12552a73027baSmrg_ACEOF 125536f02d4e9Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12554a73027baSmrg ac_datarootdir_hack=' 12555a73027baSmrg s&@datadir@&$datadir&g 12556a73027baSmrg s&@docdir@&$docdir&g 12557a73027baSmrg s&@infodir@&$infodir&g 12558a73027baSmrg s&@localedir@&$localedir&g 12559a73027baSmrg s&@mandir@&$mandir&g 125606f02d4e9Smrg s&\\\${datarootdir}&$datarootdir&g' ;; 12561a73027baSmrgesac 12562a73027baSmrg_ACEOF 12563a73027baSmrg 12564a73027baSmrg# Neutralize VPATH when `$srcdir' = `.'. 12565a73027baSmrg# Shell code in configure.ac might set extrasub. 12566a73027baSmrg# FIXME: do we really want to maintain this feature? 125676f02d4e9Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 125686f02d4e9Smrgac_sed_extra="$ac_vpsub 12569a73027baSmrg$extrasub 12570a73027baSmrg_ACEOF 125716f02d4e9Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12572a73027baSmrg:t 12573a73027baSmrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 125746f02d4e9Smrgs|@configure_input@|$ac_sed_conf_input|;t t 12575a73027baSmrgs&@top_builddir@&$ac_top_builddir_sub&;t t 125766f02d4e9Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t 12577a73027baSmrgs&@srcdir@&$ac_srcdir&;t t 12578a73027baSmrgs&@abs_srcdir@&$ac_abs_srcdir&;t t 12579a73027baSmrgs&@top_srcdir@&$ac_top_srcdir&;t t 12580a73027baSmrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12581a73027baSmrgs&@builddir@&$ac_builddir&;t t 12582a73027baSmrgs&@abs_builddir@&$ac_abs_builddir&;t t 12583a73027baSmrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12584a73027baSmrgs&@INSTALL@&$ac_INSTALL&;t t 12585a73027baSmrgs&@MKDIR_P@&$ac_MKDIR_P&;t t 12586a73027baSmrg$ac_datarootdir_hack 125876f02d4e9Smrg" 125886f02d4e9Smrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 125896f02d4e9Smrg >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12590a73027baSmrg 12591a73027baSmrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 125926f02d4e9Smrg { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 125936f02d4e9Smrg { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 125946f02d4e9Smrg "$ac_tmp/out"`; test -z "$ac_out"; } && 125956f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 125966f02d4e9Smrgwhich seems to be undefined. Please make sure it is defined" >&5 125976f02d4e9Smrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 125986f02d4e9Smrgwhich seems to be undefined. Please make sure it is defined" >&2;} 125996f02d4e9Smrg 126006f02d4e9Smrg rm -f "$ac_tmp/stdin" 12601a73027baSmrg case $ac_file in 126026f02d4e9Smrg -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 126036f02d4e9Smrg *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 126046f02d4e9Smrg esac \ 126056f02d4e9Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12606a73027baSmrg ;; 12607a73027baSmrg :H) 12608a73027baSmrg # 12609a73027baSmrg # CONFIG_HEADER 12610a73027baSmrg # 12611a73027baSmrg if test x"$ac_file" != x-; then 126126f02d4e9Smrg { 126136f02d4e9Smrg $as_echo "/* $configure_input */" \ 126146f02d4e9Smrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 126156f02d4e9Smrg } >"$ac_tmp/config.h" \ 126166f02d4e9Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 126176f02d4e9Smrg if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 126186f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 126196f02d4e9Smrg$as_echo "$as_me: $ac_file is unchanged" >&6;} 12620a73027baSmrg else 126216f02d4e9Smrg rm -f "$ac_file" 126226f02d4e9Smrg mv "$ac_tmp/config.h" "$ac_file" \ 126236f02d4e9Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12624a73027baSmrg fi 12625a73027baSmrg else 126266f02d4e9Smrg $as_echo "/* $configure_input */" \ 126276f02d4e9Smrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 126286f02d4e9Smrg || as_fn_error $? "could not create -" "$LINENO" 5 12629a73027baSmrg fi 126306f02d4e9Smrg# Compute "$ac_file"'s index in $config_headers. 126316f02d4e9Smrg_am_arg="$ac_file" 12632a73027baSmrg_am_stamp_count=1 12633a73027baSmrgfor _am_header in $config_headers :; do 12634a73027baSmrg case $_am_header in 126356f02d4e9Smrg $_am_arg | $_am_arg:* ) 12636a73027baSmrg break ;; 12637a73027baSmrg * ) 12638a73027baSmrg _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12639a73027baSmrg esac 12640a73027baSmrgdone 126416f02d4e9Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 126426f02d4e9Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 126436f02d4e9Smrg X"$_am_arg" : 'X\(//\)[^/]' \| \ 126446f02d4e9Smrg X"$_am_arg" : 'X\(//\)$' \| \ 126456f02d4e9Smrg X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 126466f02d4e9Smrg$as_echo X"$_am_arg" | 12647a73027baSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12648a73027baSmrg s//\1/ 12649a73027baSmrg q 12650a73027baSmrg } 12651a73027baSmrg /^X\(\/\/\)[^/].*/{ 12652a73027baSmrg s//\1/ 12653a73027baSmrg q 12654a73027baSmrg } 12655a73027baSmrg /^X\(\/\/\)$/{ 12656a73027baSmrg s//\1/ 12657a73027baSmrg q 12658a73027baSmrg } 12659a73027baSmrg /^X\(\/\).*/{ 12660a73027baSmrg s//\1/ 12661a73027baSmrg q 12662a73027baSmrg } 12663a73027baSmrg s/.*/./; q'`/stamp-h$_am_stamp_count 12664a73027baSmrg ;; 12665a73027baSmrg 126666f02d4e9Smrg :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 126676f02d4e9Smrg$as_echo "$as_me: executing $ac_file commands" >&6;} 12668a73027baSmrg ;; 12669a73027baSmrg esac 12670a73027baSmrg 12671a73027baSmrg 12672a73027baSmrg case $ac_file$ac_mode in 126736f02d4e9Smrg "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 126746f02d4e9Smrg # Older Autoconf quotes --file arguments for eval, but not when files 126756f02d4e9Smrg # are listed without --file. Let's play safe and only enable the eval 126766f02d4e9Smrg # if we detect the quoting. 126776f02d4e9Smrg case $CONFIG_FILES in 126786f02d4e9Smrg *\'*) eval set x "$CONFIG_FILES" ;; 126796f02d4e9Smrg *) set x $CONFIG_FILES ;; 126806f02d4e9Smrg esac 126816f02d4e9Smrg shift 126826f02d4e9Smrg for mf 126836f02d4e9Smrg do 126846f02d4e9Smrg # Strip MF so we end up with the name of the file. 126856f02d4e9Smrg mf=`echo "$mf" | sed -e 's/:.*$//'` 126866f02d4e9Smrg # Check whether this is an Automake generated Makefile or not. 126876f02d4e9Smrg # We used to match only the files named 'Makefile.in', but 126886f02d4e9Smrg # some people rename them; so instead we look at the file content. 126896f02d4e9Smrg # Grep'ing the first line is not enough: some people post-process 126906f02d4e9Smrg # each Makefile.in and add a new line on top of each file to say so. 126916f02d4e9Smrg # Grep'ing the whole file is not good either: AIX grep has a line 126926f02d4e9Smrg # limit of 2048, but all sed's we know have understand at least 4000. 126936f02d4e9Smrg if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 126946f02d4e9Smrg dirpart=`$as_dirname -- "$mf" || 12695a73027baSmrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12696a73027baSmrg X"$mf" : 'X\(//\)[^/]' \| \ 12697a73027baSmrg X"$mf" : 'X\(//\)$' \| \ 12698a73027baSmrg X"$mf" : 'X\(/\)' \| . 2>/dev/null || 126996f02d4e9Smrg$as_echo X"$mf" | 12700a73027baSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12701a73027baSmrg s//\1/ 12702a73027baSmrg q 12703a73027baSmrg } 12704a73027baSmrg /^X\(\/\/\)[^/].*/{ 12705a73027baSmrg s//\1/ 12706a73027baSmrg q 12707a73027baSmrg } 12708a73027baSmrg /^X\(\/\/\)$/{ 12709a73027baSmrg s//\1/ 12710a73027baSmrg q 12711a73027baSmrg } 12712a73027baSmrg /^X\(\/\).*/{ 12713a73027baSmrg s//\1/ 12714a73027baSmrg q 12715a73027baSmrg } 12716a73027baSmrg s/.*/./; q'` 127176f02d4e9Smrg else 127186f02d4e9Smrg continue 127196f02d4e9Smrg fi 127206f02d4e9Smrg # Extract the definition of DEPDIR, am__include, and am__quote 127216f02d4e9Smrg # from the Makefile without running 'make'. 127226f02d4e9Smrg DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 127236f02d4e9Smrg test -z "$DEPDIR" && continue 127246f02d4e9Smrg am__include=`sed -n 's/^am__include = //p' < "$mf"` 127256f02d4e9Smrg test -z "$am__include" && continue 127266f02d4e9Smrg am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 127276f02d4e9Smrg # Find all dependency output files, they are included files with 127286f02d4e9Smrg # $(DEPDIR) in their names. We invoke sed twice because it is the 127296f02d4e9Smrg # simplest approach to changing $(DEPDIR) to its actual value in the 127306f02d4e9Smrg # expansion. 127316f02d4e9Smrg for file in `sed -n " 127326f02d4e9Smrg s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 127336f02d4e9Smrg sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 127346f02d4e9Smrg # Make sure the directory exists. 127356f02d4e9Smrg test -f "$dirpart/$file" && continue 127366f02d4e9Smrg fdir=`$as_dirname -- "$file" || 12737a73027baSmrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12738a73027baSmrg X"$file" : 'X\(//\)[^/]' \| \ 12739a73027baSmrg X"$file" : 'X\(//\)$' \| \ 12740a73027baSmrg X"$file" : 'X\(/\)' \| . 2>/dev/null || 127416f02d4e9Smrg$as_echo X"$file" | 12742a73027baSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12743a73027baSmrg s//\1/ 12744a73027baSmrg q 12745a73027baSmrg } 12746a73027baSmrg /^X\(\/\/\)[^/].*/{ 12747a73027baSmrg s//\1/ 12748a73027baSmrg q 12749a73027baSmrg } 12750a73027baSmrg /^X\(\/\/\)$/{ 12751a73027baSmrg s//\1/ 12752a73027baSmrg q 12753a73027baSmrg } 12754a73027baSmrg /^X\(\/\).*/{ 12755a73027baSmrg s//\1/ 12756a73027baSmrg q 12757a73027baSmrg } 12758a73027baSmrg s/.*/./; q'` 127596f02d4e9Smrg as_dir=$dirpart/$fdir; as_fn_mkdir_p 127606f02d4e9Smrg # echo "creating $dirpart/$file" 127616f02d4e9Smrg echo '# dummy' > "$dirpart/$file" 12762a73027baSmrg done 12763a73027baSmrg done 127646f02d4e9Smrg} 12765a73027baSmrg ;; 12766a73027baSmrg 12767a73027baSmrg esac 12768a73027baSmrgdone # for ac_tag 12769a73027baSmrg 12770a73027baSmrg 127716f02d4e9Smrgas_fn_exit 0 12772a73027baSmrg_ACEOF 12773a73027baSmrgac_clean_files=$ac_clean_files_save 12774a73027baSmrg 127756f02d4e9Smrgtest $ac_write_fail = 0 || 127766f02d4e9Smrg as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 127776f02d4e9Smrg 12778a73027baSmrg 12779a73027baSmrg# configure is writing to config.log, and then calls config.status. 12780a73027baSmrg# config.status does its own redirection, appending to config.log. 12781a73027baSmrg# Unfortunately, on DOS this fails, as config.log is still kept open 12782a73027baSmrg# by configure, so config.status won't be able to write to it; its 12783a73027baSmrg# output is simply discarded. So we exec the FD to /dev/null, 12784a73027baSmrg# effectively closing config.log, so it can be properly (re)opened and 12785a73027baSmrg# appended to by config.status. When coming back to configure, we 12786a73027baSmrg# need to make the FD available again. 12787a73027baSmrgif test "$no_create" != yes; then 12788a73027baSmrg ac_cs_success=: 12789a73027baSmrg ac_config_status_args= 12790a73027baSmrg test "$silent" = yes && 12791a73027baSmrg ac_config_status_args="$ac_config_status_args --quiet" 12792a73027baSmrg exec 5>/dev/null 12793a73027baSmrg $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12794a73027baSmrg exec 5>>config.log 12795a73027baSmrg # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12796a73027baSmrg # would make configure fail if this is the last instruction. 127976f02d4e9Smrg $ac_cs_success || as_fn_exit 1 127986f02d4e9Smrgfi 127996f02d4e9Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 128006f02d4e9Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 128016f02d4e9Smrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12802a73027baSmrgfi 12803a73027baSmrg 12804