1ba0eab60Smacallan#! /bin/sh 2ba0eab60Smacallan# Guess values for system-dependent variables and create Makefiles. 3aee7dae4Smrg# Generated by GNU Autoconf 2.69 for xf86-video-newport 0.2.4. 4ba0eab60Smacallan# 5ba0eab60Smacallan# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6ba0eab60Smacallan# 7aee7dae4Smrg# 8aee7dae4Smrg# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9aee7dae4Smrg# 10aee7dae4Smrg# 11ba0eab60Smacallan# This configure script is free software; the Free Software Foundation 12ba0eab60Smacallan# gives unlimited permission to copy, distribute and modify it. 13aee7dae4Smrg## -------------------- ## 14aee7dae4Smrg## M4sh Initialization. ## 15aee7dae4Smrg## -------------------- ## 16ba0eab60Smacallan 17aee7dae4Smrg# Be more Bourne compatible 18aee7dae4SmrgDUALCASE=1; export DUALCASE # for MKS sh 19aee7dae4Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20ba0eab60Smacallan emulate sh 21ba0eab60Smacallan NULLCMD=: 22aee7dae4Smrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23ba0eab60Smacallan # is contrary to our usage. Disable this feature. 24ba0eab60Smacallan alias -g '${1+"$@"}'='"$@"' 25aee7dae4Smrg setopt NO_GLOB_SUBST 26aee7dae4Smrgelse 27aee7dae4Smrg case `(set -o) 2>/dev/null` in #( 28aee7dae4Smrg *posix*) : 29aee7dae4Smrg set -o posix ;; #( 30aee7dae4Smrg *) : 31aee7dae4Smrg ;; 32aee7dae4Smrgesac 33ba0eab60Smacallanfi 34ba0eab60Smacallan 35aee7dae4Smrg 36aee7dae4Smrgas_nl=' 37aee7dae4Smrg' 38aee7dae4Smrgexport as_nl 39aee7dae4Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 40aee7dae4Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41aee7dae4Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42aee7dae4Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43aee7dae4Smrg# Prefer a ksh shell builtin over an external printf program on Solaris, 44aee7dae4Smrg# but without wasting forks for bash or zsh. 45aee7dae4Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \ 46aee7dae4Smrg && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47aee7dae4Smrg as_echo='print -r --' 48aee7dae4Smrg as_echo_n='print -rn --' 49aee7dae4Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50aee7dae4Smrg as_echo='printf %s\n' 51aee7dae4Smrg as_echo_n='printf %s' 52aee7dae4Smrgelse 53aee7dae4Smrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54aee7dae4Smrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55aee7dae4Smrg as_echo_n='/usr/ucb/echo -n' 56aee7dae4Smrg else 57aee7dae4Smrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58aee7dae4Smrg as_echo_n_body='eval 59aee7dae4Smrg arg=$1; 60aee7dae4Smrg case $arg in #( 61aee7dae4Smrg *"$as_nl"*) 62aee7dae4Smrg expr "X$arg" : "X\\(.*\\)$as_nl"; 63aee7dae4Smrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64aee7dae4Smrg esac; 65aee7dae4Smrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66aee7dae4Smrg ' 67aee7dae4Smrg export as_echo_n_body 68aee7dae4Smrg as_echo_n='sh -c $as_echo_n_body as_echo' 69aee7dae4Smrg fi 70aee7dae4Smrg export as_echo_body 71aee7dae4Smrg as_echo='sh -c $as_echo_body as_echo' 72aee7dae4Smrgfi 73aee7dae4Smrg 74aee7dae4Smrg# The user is always right. 75aee7dae4Smrgif test "${PATH_SEPARATOR+set}" != set; then 76aee7dae4Smrg PATH_SEPARATOR=: 77aee7dae4Smrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78aee7dae4Smrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79aee7dae4Smrg PATH_SEPARATOR=';' 80aee7dae4Smrg } 81ba0eab60Smacallanfi 82ba0eab60Smacallan 83ba0eab60Smacallan 84aee7dae4Smrg# IFS 85aee7dae4Smrg# We need space, tab and new line, in precisely that order. Quoting is 86aee7dae4Smrg# there to prevent editors from complaining about space-tab. 87aee7dae4Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88aee7dae4Smrg# splitting by setting IFS to empty value.) 89aee7dae4SmrgIFS=" "" $as_nl" 90aee7dae4Smrg 91aee7dae4Smrg# Find who we are. Look in the path if we contain no directory separator. 92aee7dae4Smrgas_myself= 93aee7dae4Smrgcase $0 in #(( 94aee7dae4Smrg *[\\/]* ) as_myself=$0 ;; 95aee7dae4Smrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96aee7dae4Smrgfor as_dir in $PATH 97aee7dae4Smrgdo 98aee7dae4Smrg IFS=$as_save_IFS 99aee7dae4Smrg test -z "$as_dir" && as_dir=. 100aee7dae4Smrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101aee7dae4Smrg done 102aee7dae4SmrgIFS=$as_save_IFS 103aee7dae4Smrg 104aee7dae4Smrg ;; 105aee7dae4Smrgesac 106aee7dae4Smrg# We did not find ourselves, most probably we were run as `sh COMMAND' 107aee7dae4Smrg# in which case we are not to be found in the path. 108aee7dae4Smrgif test "x$as_myself" = x; then 109aee7dae4Smrg as_myself=$0 110aee7dae4Smrgfi 111aee7dae4Smrgif test ! -f "$as_myself"; then 112aee7dae4Smrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113aee7dae4Smrg exit 1 114aee7dae4Smrgfi 115aee7dae4Smrg 116aee7dae4Smrg# Unset variables that we do not need and which cause bugs (e.g. in 117aee7dae4Smrg# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118aee7dae4Smrg# suppresses any "Segmentation fault" message there. '((' could 119aee7dae4Smrg# trigger a bug in pdksh 5.2.14. 120aee7dae4Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH 121aee7dae4Smrgdo eval test x\${$as_var+set} = xset \ 122aee7dae4Smrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123aee7dae4Smrgdone 124ba0eab60SmacallanPS1='$ ' 125ba0eab60SmacallanPS2='> ' 126ba0eab60SmacallanPS4='+ ' 127ba0eab60Smacallan 128ba0eab60Smacallan# NLS nuisances. 129aee7dae4SmrgLC_ALL=C 130aee7dae4Smrgexport LC_ALL 131aee7dae4SmrgLANGUAGE=C 132aee7dae4Smrgexport LANGUAGE 133aee7dae4Smrg 134aee7dae4Smrg# CDPATH. 135aee7dae4Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136aee7dae4Smrg 137aee7dae4Smrg# Use a proper internal environment variable to ensure we don't fall 138aee7dae4Smrg # into an infinite loop, continuously re-executing ourselves. 139aee7dae4Smrg if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140aee7dae4Smrg _as_can_reexec=no; export _as_can_reexec; 141aee7dae4Smrg # We cannot yet assume a decent shell, so we have to provide a 142aee7dae4Smrg# neutralization value for shells without unset; and this also 143aee7dae4Smrg# works around shells that cannot unset nonexistent variables. 144aee7dae4Smrg# Preserve -v and -x to the replacement shell. 145aee7dae4SmrgBASH_ENV=/dev/null 146aee7dae4SmrgENV=/dev/null 147aee7dae4Smrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148aee7dae4Smrgcase $- in # (((( 149aee7dae4Smrg *v*x* | *x*v* ) as_opts=-vx ;; 150aee7dae4Smrg *v* ) as_opts=-v ;; 151aee7dae4Smrg *x* ) as_opts=-x ;; 152aee7dae4Smrg * ) as_opts= ;; 153aee7dae4Smrgesac 154aee7dae4Smrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155aee7dae4Smrg# Admittedly, this is quite paranoid, since all the known shells bail 156aee7dae4Smrg# out after a failed `exec'. 157aee7dae4Smrg$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158aee7dae4Smrgas_fn_exit 255 159aee7dae4Smrg fi 160aee7dae4Smrg # We don't want this to propagate to other subprocesses. 161aee7dae4Smrg { _as_can_reexec=; unset _as_can_reexec;} 162aee7dae4Smrgif test "x$CONFIG_SHELL" = x; then 163aee7dae4Smrg as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164aee7dae4Smrg emulate sh 165aee7dae4Smrg NULLCMD=: 166aee7dae4Smrg # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167aee7dae4Smrg # is contrary to our usage. Disable this feature. 168aee7dae4Smrg alias -g '\${1+\"\$@\"}'='\"\$@\"' 169aee7dae4Smrg setopt NO_GLOB_SUBST 170aee7dae4Smrgelse 171aee7dae4Smrg case \`(set -o) 2>/dev/null\` in #( 172aee7dae4Smrg *posix*) : 173aee7dae4Smrg set -o posix ;; #( 174aee7dae4Smrg *) : 175aee7dae4Smrg ;; 176aee7dae4Smrgesac 177aee7dae4Smrgfi 178aee7dae4Smrg" 179aee7dae4Smrg as_required="as_fn_return () { (exit \$1); } 180aee7dae4Smrgas_fn_success () { as_fn_return 0; } 181aee7dae4Smrgas_fn_failure () { as_fn_return 1; } 182aee7dae4Smrgas_fn_ret_success () { return 0; } 183aee7dae4Smrgas_fn_ret_failure () { return 1; } 184aee7dae4Smrg 185aee7dae4Smrgexitcode=0 186aee7dae4Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; } 187aee7dae4Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188aee7dae4Smrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189aee7dae4Smrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190aee7dae4Smrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191aee7dae4Smrg 192aee7dae4Smrgelse 193aee7dae4Smrg exitcode=1; echo positional parameters were not saved. 194aee7dae4Smrgfi 195aee7dae4Smrgtest x\$exitcode = x0 || exit 1 196aee7dae4Smrgtest -x / || exit 1" 197aee7dae4Smrg as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198aee7dae4Smrg as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199aee7dae4Smrg eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200aee7dae4Smrg test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201aee7dae4Smrgtest \$(( 1 + 1 )) = 2 || exit 1 202aee7dae4Smrg 203aee7dae4Smrg test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204aee7dae4Smrg ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205aee7dae4Smrg ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206aee7dae4Smrg ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207aee7dae4Smrg PATH=/empty FPATH=/empty; export PATH FPATH 208aee7dae4Smrg test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209aee7dae4Smrg || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210aee7dae4Smrg if (eval "$as_required") 2>/dev/null; then : 211aee7dae4Smrg as_have_required=yes 212aee7dae4Smrgelse 213aee7dae4Smrg as_have_required=no 214aee7dae4Smrgfi 215aee7dae4Smrg if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216aee7dae4Smrg 217aee7dae4Smrgelse 218aee7dae4Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219aee7dae4Smrgas_found=false 220aee7dae4Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221ba0eab60Smacallando 222aee7dae4Smrg IFS=$as_save_IFS 223aee7dae4Smrg test -z "$as_dir" && as_dir=. 224aee7dae4Smrg as_found=: 225aee7dae4Smrg case $as_dir in #( 226aee7dae4Smrg /*) 227aee7dae4Smrg for as_base in sh bash ksh sh5; do 228aee7dae4Smrg # Try only shells that exist, to save several forks. 229aee7dae4Smrg as_shell=$as_dir/$as_base 230aee7dae4Smrg if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231aee7dae4Smrg { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232aee7dae4Smrg CONFIG_SHELL=$as_shell as_have_required=yes 233aee7dae4Smrg if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234aee7dae4Smrg break 2 235aee7dae4Smrgfi 236aee7dae4Smrgfi 237aee7dae4Smrg done;; 238aee7dae4Smrg esac 239aee7dae4Smrg as_found=false 240aee7dae4Smrgdone 241aee7dae4Smrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242aee7dae4Smrg { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243aee7dae4Smrg CONFIG_SHELL=$SHELL as_have_required=yes 244aee7dae4Smrgfi; } 245aee7dae4SmrgIFS=$as_save_IFS 246aee7dae4Smrg 247aee7dae4Smrg 248aee7dae4Smrg if test "x$CONFIG_SHELL" != x; then : 249aee7dae4Smrg export CONFIG_SHELL 250aee7dae4Smrg # We cannot yet assume a decent shell, so we have to provide a 251aee7dae4Smrg# neutralization value for shells without unset; and this also 252aee7dae4Smrg# works around shells that cannot unset nonexistent variables. 253aee7dae4Smrg# Preserve -v and -x to the replacement shell. 254aee7dae4SmrgBASH_ENV=/dev/null 255aee7dae4SmrgENV=/dev/null 256aee7dae4Smrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257aee7dae4Smrgcase $- in # (((( 258aee7dae4Smrg *v*x* | *x*v* ) as_opts=-vx ;; 259aee7dae4Smrg *v* ) as_opts=-v ;; 260aee7dae4Smrg *x* ) as_opts=-x ;; 261aee7dae4Smrg * ) as_opts= ;; 262aee7dae4Smrgesac 263aee7dae4Smrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264aee7dae4Smrg# Admittedly, this is quite paranoid, since all the known shells bail 265aee7dae4Smrg# out after a failed `exec'. 266aee7dae4Smrg$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267aee7dae4Smrgexit 255 268aee7dae4Smrgfi 269aee7dae4Smrg 270aee7dae4Smrg if test x$as_have_required = xno; then : 271aee7dae4Smrg $as_echo "$0: This script requires a shell more modern than all" 272aee7dae4Smrg $as_echo "$0: the shells that I found on your system." 273aee7dae4Smrg if test x${ZSH_VERSION+set} = xset ; then 274aee7dae4Smrg $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275aee7dae4Smrg $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276ba0eab60Smacallan else 277aee7dae4Smrg $as_echo "$0: Please tell bug-autoconf@gnu.org and 278aee7dae4Smrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 279aee7dae4Smrg$0: about your system, including any error possibly output 280aee7dae4Smrg$0: before this message. Then install a modern shell, or 281aee7dae4Smrg$0: manually run the script under such a shell if you do 282aee7dae4Smrg$0: have one." 283ba0eab60Smacallan fi 284aee7dae4Smrg exit 1 285aee7dae4Smrgfi 286aee7dae4Smrgfi 287aee7dae4Smrgfi 288aee7dae4SmrgSHELL=${CONFIG_SHELL-/bin/sh} 289aee7dae4Smrgexport SHELL 290aee7dae4Smrg# Unset more variables known to interfere with behavior of common tools. 291aee7dae4SmrgCLICOLOR_FORCE= GREP_OPTIONS= 292aee7dae4Smrgunset CLICOLOR_FORCE GREP_OPTIONS 293aee7dae4Smrg 294aee7dae4Smrg## --------------------- ## 295aee7dae4Smrg## M4sh Shell Functions. ## 296aee7dae4Smrg## --------------------- ## 297aee7dae4Smrg# as_fn_unset VAR 298aee7dae4Smrg# --------------- 299aee7dae4Smrg# Portably unset VAR. 300aee7dae4Smrgas_fn_unset () 301aee7dae4Smrg{ 302aee7dae4Smrg { eval $1=; unset $1;} 303aee7dae4Smrg} 304aee7dae4Smrgas_unset=as_fn_unset 305aee7dae4Smrg 306aee7dae4Smrg# as_fn_set_status STATUS 307aee7dae4Smrg# ----------------------- 308aee7dae4Smrg# Set $? to STATUS, without forking. 309aee7dae4Smrgas_fn_set_status () 310aee7dae4Smrg{ 311aee7dae4Smrg return $1 312aee7dae4Smrg} # as_fn_set_status 313aee7dae4Smrg 314aee7dae4Smrg# as_fn_exit STATUS 315aee7dae4Smrg# ----------------- 316aee7dae4Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 317aee7dae4Smrgas_fn_exit () 318aee7dae4Smrg{ 319aee7dae4Smrg set +e 320aee7dae4Smrg as_fn_set_status $1 321aee7dae4Smrg exit $1 322aee7dae4Smrg} # as_fn_exit 323aee7dae4Smrg 324aee7dae4Smrg# as_fn_mkdir_p 325aee7dae4Smrg# ------------- 326aee7dae4Smrg# Create "$as_dir" as a directory, including parents if necessary. 327aee7dae4Smrgas_fn_mkdir_p () 328aee7dae4Smrg{ 329aee7dae4Smrg 330aee7dae4Smrg case $as_dir in #( 331aee7dae4Smrg -*) as_dir=./$as_dir;; 332aee7dae4Smrg esac 333aee7dae4Smrg test -d "$as_dir" || eval $as_mkdir_p || { 334aee7dae4Smrg as_dirs= 335aee7dae4Smrg while :; do 336aee7dae4Smrg case $as_dir in #( 337aee7dae4Smrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 338aee7dae4Smrg *) as_qdir=$as_dir;; 339aee7dae4Smrg esac 340aee7dae4Smrg as_dirs="'$as_qdir' $as_dirs" 341aee7dae4Smrg as_dir=`$as_dirname -- "$as_dir" || 342aee7dae4Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 343aee7dae4Smrg X"$as_dir" : 'X\(//\)[^/]' \| \ 344aee7dae4Smrg X"$as_dir" : 'X\(//\)$' \| \ 345aee7dae4Smrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 346aee7dae4Smrg$as_echo X"$as_dir" | 347aee7dae4Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 348aee7dae4Smrg s//\1/ 349aee7dae4Smrg q 350aee7dae4Smrg } 351aee7dae4Smrg /^X\(\/\/\)[^/].*/{ 352aee7dae4Smrg s//\1/ 353aee7dae4Smrg q 354aee7dae4Smrg } 355aee7dae4Smrg /^X\(\/\/\)$/{ 356aee7dae4Smrg s//\1/ 357aee7dae4Smrg q 358aee7dae4Smrg } 359aee7dae4Smrg /^X\(\/\).*/{ 360aee7dae4Smrg s//\1/ 361aee7dae4Smrg q 362aee7dae4Smrg } 363aee7dae4Smrg s/.*/./; q'` 364aee7dae4Smrg test -d "$as_dir" && break 365aee7dae4Smrg done 366aee7dae4Smrg test -z "$as_dirs" || eval "mkdir $as_dirs" 367aee7dae4Smrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 368aee7dae4Smrg 369aee7dae4Smrg 370aee7dae4Smrg} # as_fn_mkdir_p 371aee7dae4Smrg 372aee7dae4Smrg# as_fn_executable_p FILE 373aee7dae4Smrg# ----------------------- 374aee7dae4Smrg# Test if FILE is an executable regular file. 375aee7dae4Smrgas_fn_executable_p () 376aee7dae4Smrg{ 377aee7dae4Smrg test -f "$1" && test -x "$1" 378aee7dae4Smrg} # as_fn_executable_p 379aee7dae4Smrg# as_fn_append VAR VALUE 380aee7dae4Smrg# ---------------------- 381aee7dae4Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take 382aee7dae4Smrg# advantage of any shell optimizations that allow amortized linear growth over 383aee7dae4Smrg# repeated appends, instead of the typical quadratic growth present in naive 384aee7dae4Smrg# implementations. 385aee7dae4Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 386aee7dae4Smrg eval 'as_fn_append () 387aee7dae4Smrg { 388aee7dae4Smrg eval $1+=\$2 389aee7dae4Smrg }' 390aee7dae4Smrgelse 391aee7dae4Smrg as_fn_append () 392aee7dae4Smrg { 393aee7dae4Smrg eval $1=\$$1\$2 394aee7dae4Smrg } 395aee7dae4Smrgfi # as_fn_append 396aee7dae4Smrg 397aee7dae4Smrg# as_fn_arith ARG... 398aee7dae4Smrg# ------------------ 399aee7dae4Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the 400aee7dae4Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 401aee7dae4Smrg# must be portable across $(()) and expr. 402aee7dae4Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 403aee7dae4Smrg eval 'as_fn_arith () 404aee7dae4Smrg { 405aee7dae4Smrg as_val=$(( $* )) 406aee7dae4Smrg }' 407aee7dae4Smrgelse 408aee7dae4Smrg as_fn_arith () 409aee7dae4Smrg { 410aee7dae4Smrg as_val=`expr "$@" || test $? -eq 1` 411aee7dae4Smrg } 412aee7dae4Smrgfi # as_fn_arith 413aee7dae4Smrg 414aee7dae4Smrg 415aee7dae4Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 416aee7dae4Smrg# ---------------------------------------- 417aee7dae4Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 418aee7dae4Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 419aee7dae4Smrg# script with STATUS, using 1 if that was 0. 420aee7dae4Smrgas_fn_error () 421aee7dae4Smrg{ 422aee7dae4Smrg as_status=$1; test $as_status -eq 0 && as_status=1 423aee7dae4Smrg if test "$4"; then 424aee7dae4Smrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 425aee7dae4Smrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 426aee7dae4Smrg fi 427aee7dae4Smrg $as_echo "$as_me: error: $2" >&2 428aee7dae4Smrg as_fn_exit $as_status 429aee7dae4Smrg} # as_fn_error 430ba0eab60Smacallan 431aee7dae4Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 432aee7dae4Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 433ba0eab60Smacallan as_expr=expr 434ba0eab60Smacallanelse 435ba0eab60Smacallan as_expr=false 436ba0eab60Smacallanfi 437ba0eab60Smacallan 438aee7dae4Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 439ba0eab60Smacallan as_basename=basename 440ba0eab60Smacallanelse 441ba0eab60Smacallan as_basename=false 442ba0eab60Smacallanfi 443ba0eab60Smacallan 444aee7dae4Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 445aee7dae4Smrg as_dirname=dirname 446aee7dae4Smrgelse 447aee7dae4Smrg as_dirname=false 448aee7dae4Smrgfi 449ba0eab60Smacallan 450aee7dae4Smrgas_me=`$as_basename -- "$0" || 451ba0eab60Smacallan$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 452ba0eab60Smacallan X"$0" : 'X\(//\)$' \| \ 453aee7dae4Smrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 454aee7dae4Smrg$as_echo X/"$0" | 455aee7dae4Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 456aee7dae4Smrg s//\1/ 457aee7dae4Smrg q 458aee7dae4Smrg } 459aee7dae4Smrg /^X\/\(\/\/\)$/{ 460aee7dae4Smrg s//\1/ 461aee7dae4Smrg q 462aee7dae4Smrg } 463aee7dae4Smrg /^X\/\(\/\).*/{ 464aee7dae4Smrg s//\1/ 465aee7dae4Smrg q 466aee7dae4Smrg } 467aee7dae4Smrg s/.*/./; q'` 468ba0eab60Smacallan 469ba0eab60Smacallan# Avoid depending upon Character Ranges. 470ba0eab60Smacallanas_cr_letters='abcdefghijklmnopqrstuvwxyz' 471ba0eab60Smacallanas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 472ba0eab60Smacallanas_cr_Letters=$as_cr_letters$as_cr_LETTERS 473ba0eab60Smacallanas_cr_digits='0123456789' 474ba0eab60Smacallanas_cr_alnum=$as_cr_Letters$as_cr_digits 475ba0eab60Smacallan 476ba0eab60Smacallan 477aee7dae4Smrg as_lineno_1=$LINENO as_lineno_1a=$LINENO 478aee7dae4Smrg as_lineno_2=$LINENO as_lineno_2a=$LINENO 479aee7dae4Smrg eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 480aee7dae4Smrg test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 481aee7dae4Smrg # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 482aee7dae4Smrg sed -n ' 483aee7dae4Smrg p 484aee7dae4Smrg /[$]LINENO/= 485aee7dae4Smrg ' <$as_myself | 486ba0eab60Smacallan sed ' 487aee7dae4Smrg s/[$]LINENO.*/&-/ 488aee7dae4Smrg t lineno 489aee7dae4Smrg b 490aee7dae4Smrg :lineno 491ba0eab60Smacallan N 492aee7dae4Smrg :loop 493aee7dae4Smrg s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 494ba0eab60Smacallan t loop 495aee7dae4Smrg s/-\n.*// 496ba0eab60Smacallan ' >$as_me.lineno && 497aee7dae4Smrg chmod +x "$as_me.lineno" || 498aee7dae4Smrg { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 499ba0eab60Smacallan 500aee7dae4Smrg # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 501aee7dae4Smrg # already done that, so ensure we don't try to do so again and fall 502aee7dae4Smrg # in an infinite loop. This has already happened in practice. 503aee7dae4Smrg _as_can_reexec=no; export _as_can_reexec 504ba0eab60Smacallan # Don't try to exec as it changes $[0], causing all sort of problems 505ba0eab60Smacallan # (the dirname of $[0] is not the place where we might find the 506aee7dae4Smrg # original and so on. Autoconf is especially sensitive to this). 507aee7dae4Smrg . "./$as_me.lineno" 508ba0eab60Smacallan # Exit status is that of the last command. 509ba0eab60Smacallan exit 510ba0eab60Smacallan} 511ba0eab60Smacallan 512aee7dae4SmrgECHO_C= ECHO_N= ECHO_T= 513aee7dae4Smrgcase `echo -n x` in #((((( 514aee7dae4Smrg-n*) 515aee7dae4Smrg case `echo 'xy\c'` in 516aee7dae4Smrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 517aee7dae4Smrg xy) ECHO_C='\c';; 518aee7dae4Smrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 519aee7dae4Smrg ECHO_T=' ';; 520aee7dae4Smrg esac;; 521aee7dae4Smrg*) 522aee7dae4Smrg ECHO_N='-n';; 523ba0eab60Smacallanesac 524ba0eab60Smacallan 525aee7dae4Smrgrm -f conf$$ conf$$.exe conf$$.file 526aee7dae4Smrgif test -d conf$$.dir; then 527aee7dae4Smrg rm -f conf$$.dir/conf$$.file 528ba0eab60Smacallanelse 529aee7dae4Smrg rm -f conf$$.dir 530aee7dae4Smrg mkdir conf$$.dir 2>/dev/null 531ba0eab60Smacallanfi 532aee7dae4Smrgif (echo >conf$$.file) 2>/dev/null; then 533aee7dae4Smrg if ln -s conf$$.file conf$$ 2>/dev/null; then 534ba0eab60Smacallan as_ln_s='ln -s' 535aee7dae4Smrg # ... but there are two gotchas: 536aee7dae4Smrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 537aee7dae4Smrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 538aee7dae4Smrg # In both cases, we have to default to `cp -pR'. 539aee7dae4Smrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 540aee7dae4Smrg as_ln_s='cp -pR' 541aee7dae4Smrg elif ln conf$$.file conf$$ 2>/dev/null; then 542aee7dae4Smrg as_ln_s=ln 543aee7dae4Smrg else 544aee7dae4Smrg as_ln_s='cp -pR' 545ba0eab60Smacallan fi 546ba0eab60Smacallanelse 547aee7dae4Smrg as_ln_s='cp -pR' 548ba0eab60Smacallanfi 549aee7dae4Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 550aee7dae4Smrgrmdir conf$$.dir 2>/dev/null 551ba0eab60Smacallan 552ba0eab60Smacallanif mkdir -p . 2>/dev/null; then 553aee7dae4Smrg as_mkdir_p='mkdir -p "$as_dir"' 554ba0eab60Smacallanelse 555ba0eab60Smacallan test -d ./-p && rmdir ./-p 556ba0eab60Smacallan as_mkdir_p=false 557ba0eab60Smacallanfi 558ba0eab60Smacallan 559aee7dae4Smrgas_test_x='test -x' 560aee7dae4Smrgas_executable_p=as_fn_executable_p 561ba0eab60Smacallan 562ba0eab60Smacallan# Sed expression to map a string onto a valid CPP name. 563ba0eab60Smacallanas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 564ba0eab60Smacallan 565ba0eab60Smacallan# Sed expression to map a string onto a valid variable name. 566ba0eab60Smacallanas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 567ba0eab60Smacallan 568ba0eab60SmacallanSHELL=${CONFIG_SHELL-/bin/sh} 569ba0eab60Smacallan 570ba0eab60Smacallan 571aee7dae4Smrgtest -n "$DJDIR" || exec 7<&0 </dev/null 572aee7dae4Smrgexec 6>&1 573ba0eab60Smacallan 574ba0eab60Smacallan# Name of the host. 575aee7dae4Smrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 576ba0eab60Smacallan# so uname gets run too. 577ba0eab60Smacallanac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 578ba0eab60Smacallan 579ba0eab60Smacallan# 580ba0eab60Smacallan# Initializations. 581ba0eab60Smacallan# 582ba0eab60Smacallanac_default_prefix=/usr/local 583aee7dae4Smrgac_clean_files= 584ba0eab60Smacallanac_config_libobj_dir=. 585aee7dae4SmrgLIBOBJS= 586ba0eab60Smacallancross_compiling=no 587ba0eab60Smacallansubdirs= 588ba0eab60SmacallanMFLAGS= 589ba0eab60SmacallanMAKEFLAGS= 590ba0eab60Smacallan 591ba0eab60Smacallan# Identity of this package. 592ba0eab60SmacallanPACKAGE_NAME='xf86-video-newport' 593ba0eab60SmacallanPACKAGE_TARNAME='xf86-video-newport' 594aee7dae4SmrgPACKAGE_VERSION='0.2.4' 595aee7dae4SmrgPACKAGE_STRING='xf86-video-newport 0.2.4' 596ba0eab60SmacallanPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 597aee7dae4SmrgPACKAGE_URL='' 598ba0eab60Smacallan 599ba0eab60Smacallanac_unique_file="Makefile.am" 600ba0eab60Smacallan# Factoring default headers for most tests. 601ba0eab60Smacallanac_includes_default="\ 602ba0eab60Smacallan#include <stdio.h> 603aee7dae4Smrg#ifdef HAVE_SYS_TYPES_H 604ba0eab60Smacallan# include <sys/types.h> 605ba0eab60Smacallan#endif 606aee7dae4Smrg#ifdef HAVE_SYS_STAT_H 607ba0eab60Smacallan# include <sys/stat.h> 608ba0eab60Smacallan#endif 609aee7dae4Smrg#ifdef STDC_HEADERS 610ba0eab60Smacallan# include <stdlib.h> 611ba0eab60Smacallan# include <stddef.h> 612ba0eab60Smacallan#else 613aee7dae4Smrg# ifdef HAVE_STDLIB_H 614ba0eab60Smacallan# include <stdlib.h> 615ba0eab60Smacallan# endif 616ba0eab60Smacallan#endif 617aee7dae4Smrg#ifdef HAVE_STRING_H 618aee7dae4Smrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 619ba0eab60Smacallan# include <memory.h> 620ba0eab60Smacallan# endif 621ba0eab60Smacallan# include <string.h> 622ba0eab60Smacallan#endif 623aee7dae4Smrg#ifdef HAVE_STRINGS_H 624ba0eab60Smacallan# include <strings.h> 625ba0eab60Smacallan#endif 626aee7dae4Smrg#ifdef HAVE_INTTYPES_H 627ba0eab60Smacallan# include <inttypes.h> 628ba0eab60Smacallan#endif 629aee7dae4Smrg#ifdef HAVE_STDINT_H 630aee7dae4Smrg# include <stdint.h> 631aee7dae4Smrg#endif 632aee7dae4Smrg#ifdef HAVE_UNISTD_H 633ba0eab60Smacallan# include <unistd.h> 634ba0eab60Smacallan#endif" 635ba0eab60Smacallan 636aee7dae4Smrgac_subst_vars='am__EXEEXT_FALSE 637aee7dae4Smrgam__EXEEXT_TRUE 638aee7dae4SmrgLTLIBOBJS 639aee7dae4SmrgLIBOBJS 640aee7dae4SmrgDRIVER_NAME 641aee7dae4Smrgmoduledir 642aee7dae4SmrgXORG_LIBS 643aee7dae4SmrgXORG_CFLAGS 644aee7dae4SmrgOTOOL64 645aee7dae4SmrgOTOOL 646aee7dae4SmrgLIPO 647aee7dae4SmrgNMEDIT 648aee7dae4SmrgDSYMUTIL 649aee7dae4SmrgMANIFEST_TOOL 650aee7dae4SmrgRANLIB 651aee7dae4Smrgac_ct_AR 652aee7dae4SmrgAR 653aee7dae4SmrgDLLTOOL 654aee7dae4SmrgOBJDUMP 655aee7dae4SmrgLN_S 656aee7dae4SmrgNM 657aee7dae4Smrgac_ct_DUMPBIN 658aee7dae4SmrgDUMPBIN 659aee7dae4SmrgLD 660aee7dae4SmrgFGREP 661aee7dae4SmrgLIBTOOL 662aee7dae4SmrgAM_BACKSLASH 663aee7dae4SmrgAM_DEFAULT_VERBOSITY 664aee7dae4SmrgAM_DEFAULT_V 665aee7dae4SmrgAM_V 666aee7dae4SmrgMAN_SUBSTS 667aee7dae4SmrgXORG_MAN_PAGE 668aee7dae4SmrgADMIN_MAN_DIR 669aee7dae4SmrgDRIVER_MAN_DIR 670aee7dae4SmrgMISC_MAN_DIR 671aee7dae4SmrgFILE_MAN_DIR 672aee7dae4SmrgLIB_MAN_DIR 673aee7dae4SmrgAPP_MAN_DIR 674aee7dae4SmrgADMIN_MAN_SUFFIX 675aee7dae4SmrgDRIVER_MAN_SUFFIX 676aee7dae4SmrgMISC_MAN_SUFFIX 677aee7dae4SmrgFILE_MAN_SUFFIX 678aee7dae4SmrgLIB_MAN_SUFFIX 679aee7dae4SmrgAPP_MAN_SUFFIX 680aee7dae4SmrgSED 681aee7dae4Smrghost_os 682aee7dae4Smrghost_vendor 683aee7dae4Smrghost_cpu 684aee7dae4Smrghost 685aee7dae4Smrgbuild_os 686aee7dae4Smrgbuild_vendor 687aee7dae4Smrgbuild_cpu 688aee7dae4Smrgbuild 689aee7dae4SmrgINSTALL_CMD 690aee7dae4SmrgPKG_CONFIG_LIBDIR 691aee7dae4SmrgPKG_CONFIG_PATH 692aee7dae4SmrgPKG_CONFIG 693aee7dae4SmrgCHANGELOG_CMD 694aee7dae4SmrgSTRICT_CFLAGS 695aee7dae4SmrgCWARNFLAGS 696aee7dae4SmrgBASE_CFLAGS 697aee7dae4SmrgEGREP 698aee7dae4SmrgGREP 699aee7dae4SmrgCPP 700aee7dae4Smrgam__fastdepCC_FALSE 701aee7dae4Smrgam__fastdepCC_TRUE 702aee7dae4SmrgCCDEPMODE 703aee7dae4Smrgam__nodep 704aee7dae4SmrgAMDEPBACKSLASH 705aee7dae4SmrgAMDEP_FALSE 706aee7dae4SmrgAMDEP_TRUE 707aee7dae4Smrgam__quote 708aee7dae4Smrgam__include 709aee7dae4SmrgDEPDIR 710aee7dae4SmrgOBJEXT 711aee7dae4SmrgEXEEXT 712aee7dae4Smrgac_ct_CC 713aee7dae4SmrgCPPFLAGS 714aee7dae4SmrgLDFLAGS 715aee7dae4SmrgCFLAGS 716aee7dae4SmrgCC 717aee7dae4SmrgMAINT 718aee7dae4SmrgMAINTAINER_MODE_FALSE 719aee7dae4SmrgMAINTAINER_MODE_TRUE 720aee7dae4Smrgam__untar 721aee7dae4Smrgam__tar 722aee7dae4SmrgAMTAR 723aee7dae4Smrgam__leading_dot 724aee7dae4SmrgSET_MAKE 725aee7dae4SmrgAWK 726aee7dae4Smrgmkdir_p 727aee7dae4SmrgMKDIR_P 728aee7dae4SmrgINSTALL_STRIP_PROGRAM 729aee7dae4SmrgSTRIP 730aee7dae4Smrginstall_sh 731aee7dae4SmrgMAKEINFO 732aee7dae4SmrgAUTOHEADER 733aee7dae4SmrgAUTOMAKE 734aee7dae4SmrgAUTOCONF 735aee7dae4SmrgACLOCAL 736aee7dae4SmrgVERSION 737aee7dae4SmrgPACKAGE 738aee7dae4SmrgCYGPATH_W 739aee7dae4Smrgam__isrc 740aee7dae4SmrgINSTALL_DATA 741aee7dae4SmrgINSTALL_SCRIPT 742aee7dae4SmrgINSTALL_PROGRAM 743aee7dae4Smrgtarget_alias 744aee7dae4Smrghost_alias 745aee7dae4Smrgbuild_alias 746aee7dae4SmrgLIBS 747aee7dae4SmrgECHO_T 748aee7dae4SmrgECHO_N 749aee7dae4SmrgECHO_C 750aee7dae4SmrgDEFS 751aee7dae4Smrgmandir 752aee7dae4Smrglocaledir 753aee7dae4Smrglibdir 754aee7dae4Smrgpsdir 755aee7dae4Smrgpdfdir 756aee7dae4Smrgdvidir 757aee7dae4Smrghtmldir 758aee7dae4Smrginfodir 759aee7dae4Smrgdocdir 760aee7dae4Smrgoldincludedir 761aee7dae4Smrgincludedir 762aee7dae4Smrglocalstatedir 763aee7dae4Smrgsharedstatedir 764aee7dae4Smrgsysconfdir 765aee7dae4Smrgdatadir 766aee7dae4Smrgdatarootdir 767aee7dae4Smrglibexecdir 768aee7dae4Smrgsbindir 769aee7dae4Smrgbindir 770aee7dae4Smrgprogram_transform_name 771aee7dae4Smrgprefix 772aee7dae4Smrgexec_prefix 773aee7dae4SmrgPACKAGE_URL 774aee7dae4SmrgPACKAGE_BUGREPORT 775aee7dae4SmrgPACKAGE_STRING 776aee7dae4SmrgPACKAGE_VERSION 777aee7dae4SmrgPACKAGE_TARNAME 778aee7dae4SmrgPACKAGE_NAME 779aee7dae4SmrgPATH_SEPARATOR 780aee7dae4SmrgSHELL' 781ba0eab60Smacallanac_subst_files='' 782aee7dae4Smrgac_user_opts=' 783aee7dae4Smrgenable_option_checking 784aee7dae4Smrgenable_maintainer_mode 785aee7dae4Smrgenable_dependency_tracking 786aee7dae4Smrgenable_selective_werror 787aee7dae4Smrgenable_strict_compilation 788aee7dae4Smrgenable_silent_rules 789aee7dae4Smrgenable_static 790aee7dae4Smrgenable_shared 791aee7dae4Smrgwith_pic 792aee7dae4Smrgenable_fast_install 793aee7dae4Smrgwith_gnu_ld 794aee7dae4Smrgwith_sysroot 795aee7dae4Smrgenable_libtool_lock 796aee7dae4Smrgwith_xorg_module_dir 797aee7dae4Smrg' 798aee7dae4Smrg ac_precious_vars='build_alias 799aee7dae4Smrghost_alias 800aee7dae4Smrgtarget_alias 801aee7dae4SmrgCC 802aee7dae4SmrgCFLAGS 803aee7dae4SmrgLDFLAGS 804aee7dae4SmrgLIBS 805aee7dae4SmrgCPPFLAGS 806aee7dae4SmrgCPP 807aee7dae4SmrgPKG_CONFIG 808aee7dae4SmrgPKG_CONFIG_PATH 809aee7dae4SmrgPKG_CONFIG_LIBDIR 810aee7dae4SmrgXORG_CFLAGS 811aee7dae4SmrgXORG_LIBS' 812aee7dae4Smrg 813ba0eab60Smacallan 814ba0eab60Smacallan# Initialize some variables set by options. 815ba0eab60Smacallanac_init_help= 816ba0eab60Smacallanac_init_version=false 817aee7dae4Smrgac_unrecognized_opts= 818aee7dae4Smrgac_unrecognized_sep= 819ba0eab60Smacallan# The variables have the same names as the options, with 820ba0eab60Smacallan# dashes changed to underlines. 821ba0eab60Smacallancache_file=/dev/null 822ba0eab60Smacallanexec_prefix=NONE 823ba0eab60Smacallanno_create= 824ba0eab60Smacallanno_recursion= 825ba0eab60Smacallanprefix=NONE 826ba0eab60Smacallanprogram_prefix=NONE 827ba0eab60Smacallanprogram_suffix=NONE 828ba0eab60Smacallanprogram_transform_name=s,x,x, 829ba0eab60Smacallansilent= 830ba0eab60Smacallansite= 831ba0eab60Smacallansrcdir= 832ba0eab60Smacallanverbose= 833ba0eab60Smacallanx_includes=NONE 834ba0eab60Smacallanx_libraries=NONE 835ba0eab60Smacallan 836ba0eab60Smacallan# Installation directory options. 837ba0eab60Smacallan# These are left unexpanded so users can "make install exec_prefix=/foo" 838ba0eab60Smacallan# and all the variables that are supposed to be based on exec_prefix 839ba0eab60Smacallan# by default will actually change. 840ba0eab60Smacallan# Use braces instead of parens because sh, perl, etc. also accept them. 841aee7dae4Smrg# (The list follows the same order as the GNU Coding Standards.) 842ba0eab60Smacallanbindir='${exec_prefix}/bin' 843ba0eab60Smacallansbindir='${exec_prefix}/sbin' 844ba0eab60Smacallanlibexecdir='${exec_prefix}/libexec' 845aee7dae4Smrgdatarootdir='${prefix}/share' 846aee7dae4Smrgdatadir='${datarootdir}' 847ba0eab60Smacallansysconfdir='${prefix}/etc' 848ba0eab60Smacallansharedstatedir='${prefix}/com' 849ba0eab60Smacallanlocalstatedir='${prefix}/var' 850ba0eab60Smacallanincludedir='${prefix}/include' 851ba0eab60Smacallanoldincludedir='/usr/include' 852aee7dae4Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 853aee7dae4Smrginfodir='${datarootdir}/info' 854aee7dae4Smrghtmldir='${docdir}' 855aee7dae4Smrgdvidir='${docdir}' 856aee7dae4Smrgpdfdir='${docdir}' 857aee7dae4Smrgpsdir='${docdir}' 858aee7dae4Smrglibdir='${exec_prefix}/lib' 859aee7dae4Smrglocaledir='${datarootdir}/locale' 860aee7dae4Smrgmandir='${datarootdir}/man' 861ba0eab60Smacallan 862ba0eab60Smacallanac_prev= 863aee7dae4Smrgac_dashdash= 864ba0eab60Smacallanfor ac_option 865ba0eab60Smacallando 866ba0eab60Smacallan # If the previous option needs an argument, assign it. 867ba0eab60Smacallan if test -n "$ac_prev"; then 868aee7dae4Smrg eval $ac_prev=\$ac_option 869ba0eab60Smacallan ac_prev= 870ba0eab60Smacallan continue 871ba0eab60Smacallan fi 872ba0eab60Smacallan 873aee7dae4Smrg case $ac_option in 874aee7dae4Smrg *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 875aee7dae4Smrg *=) ac_optarg= ;; 876aee7dae4Smrg *) ac_optarg=yes ;; 877aee7dae4Smrg esac 878ba0eab60Smacallan 879ba0eab60Smacallan # Accept the important Cygnus configure options, so we can diagnose typos. 880ba0eab60Smacallan 881aee7dae4Smrg case $ac_dashdash$ac_option in 882aee7dae4Smrg --) 883aee7dae4Smrg ac_dashdash=yes ;; 884ba0eab60Smacallan 885ba0eab60Smacallan -bindir | --bindir | --bindi | --bind | --bin | --bi) 886ba0eab60Smacallan ac_prev=bindir ;; 887ba0eab60Smacallan -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 888ba0eab60Smacallan bindir=$ac_optarg ;; 889ba0eab60Smacallan 890ba0eab60Smacallan -build | --build | --buil | --bui | --bu) 891ba0eab60Smacallan ac_prev=build_alias ;; 892ba0eab60Smacallan -build=* | --build=* | --buil=* | --bui=* | --bu=*) 893ba0eab60Smacallan build_alias=$ac_optarg ;; 894ba0eab60Smacallan 895ba0eab60Smacallan -cache-file | --cache-file | --cache-fil | --cache-fi \ 896ba0eab60Smacallan | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 897ba0eab60Smacallan ac_prev=cache_file ;; 898ba0eab60Smacallan -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 899ba0eab60Smacallan | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 900ba0eab60Smacallan cache_file=$ac_optarg ;; 901ba0eab60Smacallan 902ba0eab60Smacallan --config-cache | -C) 903ba0eab60Smacallan cache_file=config.cache ;; 904ba0eab60Smacallan 905aee7dae4Smrg -datadir | --datadir | --datadi | --datad) 906ba0eab60Smacallan ac_prev=datadir ;; 907aee7dae4Smrg -datadir=* | --datadir=* | --datadi=* | --datad=*) 908ba0eab60Smacallan datadir=$ac_optarg ;; 909ba0eab60Smacallan 910aee7dae4Smrg -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 911aee7dae4Smrg | --dataroo | --dataro | --datar) 912aee7dae4Smrg ac_prev=datarootdir ;; 913aee7dae4Smrg -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 914aee7dae4Smrg | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 915aee7dae4Smrg datarootdir=$ac_optarg ;; 916aee7dae4Smrg 917ba0eab60Smacallan -disable-* | --disable-*) 918aee7dae4Smrg ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 919ba0eab60Smacallan # Reject names that are not valid shell variable names. 920aee7dae4Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 921aee7dae4Smrg as_fn_error $? "invalid feature name: $ac_useropt" 922aee7dae4Smrg ac_useropt_orig=$ac_useropt 923aee7dae4Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 924aee7dae4Smrg case $ac_user_opts in 925aee7dae4Smrg *" 926aee7dae4Smrg"enable_$ac_useropt" 927aee7dae4Smrg"*) ;; 928aee7dae4Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 929aee7dae4Smrg ac_unrecognized_sep=', ';; 930aee7dae4Smrg esac 931aee7dae4Smrg eval enable_$ac_useropt=no ;; 932aee7dae4Smrg 933aee7dae4Smrg -docdir | --docdir | --docdi | --doc | --do) 934aee7dae4Smrg ac_prev=docdir ;; 935aee7dae4Smrg -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 936aee7dae4Smrg docdir=$ac_optarg ;; 937aee7dae4Smrg 938aee7dae4Smrg -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 939aee7dae4Smrg ac_prev=dvidir ;; 940aee7dae4Smrg -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 941aee7dae4Smrg dvidir=$ac_optarg ;; 942ba0eab60Smacallan 943ba0eab60Smacallan -enable-* | --enable-*) 944aee7dae4Smrg ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 945ba0eab60Smacallan # Reject names that are not valid shell variable names. 946aee7dae4Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 947aee7dae4Smrg as_fn_error $? "invalid feature name: $ac_useropt" 948aee7dae4Smrg ac_useropt_orig=$ac_useropt 949aee7dae4Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 950aee7dae4Smrg case $ac_user_opts in 951aee7dae4Smrg *" 952aee7dae4Smrg"enable_$ac_useropt" 953aee7dae4Smrg"*) ;; 954aee7dae4Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 955aee7dae4Smrg ac_unrecognized_sep=', ';; 956ba0eab60Smacallan esac 957aee7dae4Smrg eval enable_$ac_useropt=\$ac_optarg ;; 958ba0eab60Smacallan 959ba0eab60Smacallan -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 960ba0eab60Smacallan | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 961ba0eab60Smacallan | --exec | --exe | --ex) 962ba0eab60Smacallan ac_prev=exec_prefix ;; 963ba0eab60Smacallan -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 964ba0eab60Smacallan | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 965ba0eab60Smacallan | --exec=* | --exe=* | --ex=*) 966ba0eab60Smacallan exec_prefix=$ac_optarg ;; 967ba0eab60Smacallan 968ba0eab60Smacallan -gas | --gas | --ga | --g) 969ba0eab60Smacallan # Obsolete; use --with-gas. 970ba0eab60Smacallan with_gas=yes ;; 971ba0eab60Smacallan 972ba0eab60Smacallan -help | --help | --hel | --he | -h) 973ba0eab60Smacallan ac_init_help=long ;; 974ba0eab60Smacallan -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 975ba0eab60Smacallan ac_init_help=recursive ;; 976ba0eab60Smacallan -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 977ba0eab60Smacallan ac_init_help=short ;; 978ba0eab60Smacallan 979ba0eab60Smacallan -host | --host | --hos | --ho) 980ba0eab60Smacallan ac_prev=host_alias ;; 981ba0eab60Smacallan -host=* | --host=* | --hos=* | --ho=*) 982ba0eab60Smacallan host_alias=$ac_optarg ;; 983ba0eab60Smacallan 984aee7dae4Smrg -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 985aee7dae4Smrg ac_prev=htmldir ;; 986aee7dae4Smrg -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 987aee7dae4Smrg | --ht=*) 988aee7dae4Smrg htmldir=$ac_optarg ;; 989aee7dae4Smrg 990ba0eab60Smacallan -includedir | --includedir | --includedi | --included | --include \ 991ba0eab60Smacallan | --includ | --inclu | --incl | --inc) 992ba0eab60Smacallan ac_prev=includedir ;; 993ba0eab60Smacallan -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 994ba0eab60Smacallan | --includ=* | --inclu=* | --incl=* | --inc=*) 995ba0eab60Smacallan includedir=$ac_optarg ;; 996ba0eab60Smacallan 997ba0eab60Smacallan -infodir | --infodir | --infodi | --infod | --info | --inf) 998ba0eab60Smacallan ac_prev=infodir ;; 999ba0eab60Smacallan -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1000ba0eab60Smacallan infodir=$ac_optarg ;; 1001ba0eab60Smacallan 1002ba0eab60Smacallan -libdir | --libdir | --libdi | --libd) 1003ba0eab60Smacallan ac_prev=libdir ;; 1004ba0eab60Smacallan -libdir=* | --libdir=* | --libdi=* | --libd=*) 1005ba0eab60Smacallan libdir=$ac_optarg ;; 1006ba0eab60Smacallan 1007ba0eab60Smacallan -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1008ba0eab60Smacallan | --libexe | --libex | --libe) 1009ba0eab60Smacallan ac_prev=libexecdir ;; 1010ba0eab60Smacallan -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1011ba0eab60Smacallan | --libexe=* | --libex=* | --libe=*) 1012ba0eab60Smacallan libexecdir=$ac_optarg ;; 1013ba0eab60Smacallan 1014aee7dae4Smrg -localedir | --localedir | --localedi | --localed | --locale) 1015aee7dae4Smrg ac_prev=localedir ;; 1016aee7dae4Smrg -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1017aee7dae4Smrg localedir=$ac_optarg ;; 1018aee7dae4Smrg 1019ba0eab60Smacallan -localstatedir | --localstatedir | --localstatedi | --localstated \ 1020aee7dae4Smrg | --localstate | --localstat | --localsta | --localst | --locals) 1021ba0eab60Smacallan ac_prev=localstatedir ;; 1022ba0eab60Smacallan -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1023aee7dae4Smrg | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1024ba0eab60Smacallan localstatedir=$ac_optarg ;; 1025ba0eab60Smacallan 1026ba0eab60Smacallan -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1027ba0eab60Smacallan ac_prev=mandir ;; 1028ba0eab60Smacallan -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1029ba0eab60Smacallan mandir=$ac_optarg ;; 1030ba0eab60Smacallan 1031ba0eab60Smacallan -nfp | --nfp | --nf) 1032ba0eab60Smacallan # Obsolete; use --without-fp. 1033ba0eab60Smacallan with_fp=no ;; 1034ba0eab60Smacallan 1035ba0eab60Smacallan -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1036ba0eab60Smacallan | --no-cr | --no-c | -n) 1037ba0eab60Smacallan no_create=yes ;; 1038ba0eab60Smacallan 1039ba0eab60Smacallan -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1040ba0eab60Smacallan | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1041ba0eab60Smacallan no_recursion=yes ;; 1042ba0eab60Smacallan 1043ba0eab60Smacallan -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1044ba0eab60Smacallan | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1045ba0eab60Smacallan | --oldin | --oldi | --old | --ol | --o) 1046ba0eab60Smacallan ac_prev=oldincludedir ;; 1047ba0eab60Smacallan -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1048ba0eab60Smacallan | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1049ba0eab60Smacallan | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1050ba0eab60Smacallan oldincludedir=$ac_optarg ;; 1051ba0eab60Smacallan 1052ba0eab60Smacallan -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1053ba0eab60Smacallan ac_prev=prefix ;; 1054ba0eab60Smacallan -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1055ba0eab60Smacallan prefix=$ac_optarg ;; 1056ba0eab60Smacallan 1057ba0eab60Smacallan -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1058ba0eab60Smacallan | --program-pre | --program-pr | --program-p) 1059ba0eab60Smacallan ac_prev=program_prefix ;; 1060ba0eab60Smacallan -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1061ba0eab60Smacallan | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1062ba0eab60Smacallan program_prefix=$ac_optarg ;; 1063ba0eab60Smacallan 1064ba0eab60Smacallan -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1065ba0eab60Smacallan | --program-suf | --program-su | --program-s) 1066ba0eab60Smacallan ac_prev=program_suffix ;; 1067ba0eab60Smacallan -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1068ba0eab60Smacallan | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1069ba0eab60Smacallan program_suffix=$ac_optarg ;; 1070ba0eab60Smacallan 1071ba0eab60Smacallan -program-transform-name | --program-transform-name \ 1072ba0eab60Smacallan | --program-transform-nam | --program-transform-na \ 1073ba0eab60Smacallan | --program-transform-n | --program-transform- \ 1074ba0eab60Smacallan | --program-transform | --program-transfor \ 1075ba0eab60Smacallan | --program-transfo | --program-transf \ 1076ba0eab60Smacallan | --program-trans | --program-tran \ 1077ba0eab60Smacallan | --progr-tra | --program-tr | --program-t) 1078ba0eab60Smacallan ac_prev=program_transform_name ;; 1079ba0eab60Smacallan -program-transform-name=* | --program-transform-name=* \ 1080ba0eab60Smacallan | --program-transform-nam=* | --program-transform-na=* \ 1081ba0eab60Smacallan | --program-transform-n=* | --program-transform-=* \ 1082ba0eab60Smacallan | --program-transform=* | --program-transfor=* \ 1083ba0eab60Smacallan | --program-transfo=* | --program-transf=* \ 1084ba0eab60Smacallan | --program-trans=* | --program-tran=* \ 1085ba0eab60Smacallan | --progr-tra=* | --program-tr=* | --program-t=*) 1086ba0eab60Smacallan program_transform_name=$ac_optarg ;; 1087ba0eab60Smacallan 1088aee7dae4Smrg -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1089aee7dae4Smrg ac_prev=pdfdir ;; 1090aee7dae4Smrg -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1091aee7dae4Smrg pdfdir=$ac_optarg ;; 1092aee7dae4Smrg 1093aee7dae4Smrg -psdir | --psdir | --psdi | --psd | --ps) 1094aee7dae4Smrg ac_prev=psdir ;; 1095aee7dae4Smrg -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1096aee7dae4Smrg psdir=$ac_optarg ;; 1097aee7dae4Smrg 1098ba0eab60Smacallan -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1099ba0eab60Smacallan | -silent | --silent | --silen | --sile | --sil) 1100ba0eab60Smacallan silent=yes ;; 1101ba0eab60Smacallan 1102ba0eab60Smacallan -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1103ba0eab60Smacallan ac_prev=sbindir ;; 1104ba0eab60Smacallan -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1105ba0eab60Smacallan | --sbi=* | --sb=*) 1106ba0eab60Smacallan sbindir=$ac_optarg ;; 1107ba0eab60Smacallan 1108ba0eab60Smacallan -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1109ba0eab60Smacallan | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1110ba0eab60Smacallan | --sharedst | --shareds | --shared | --share | --shar \ 1111ba0eab60Smacallan | --sha | --sh) 1112ba0eab60Smacallan ac_prev=sharedstatedir ;; 1113ba0eab60Smacallan -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1114ba0eab60Smacallan | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1115ba0eab60Smacallan | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1116ba0eab60Smacallan | --sha=* | --sh=*) 1117ba0eab60Smacallan sharedstatedir=$ac_optarg ;; 1118ba0eab60Smacallan 1119ba0eab60Smacallan -site | --site | --sit) 1120ba0eab60Smacallan ac_prev=site ;; 1121ba0eab60Smacallan -site=* | --site=* | --sit=*) 1122ba0eab60Smacallan site=$ac_optarg ;; 1123ba0eab60Smacallan 1124ba0eab60Smacallan -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1125ba0eab60Smacallan ac_prev=srcdir ;; 1126ba0eab60Smacallan -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1127ba0eab60Smacallan srcdir=$ac_optarg ;; 1128ba0eab60Smacallan 1129ba0eab60Smacallan -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1130ba0eab60Smacallan | --syscon | --sysco | --sysc | --sys | --sy) 1131ba0eab60Smacallan ac_prev=sysconfdir ;; 1132ba0eab60Smacallan -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1133ba0eab60Smacallan | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1134ba0eab60Smacallan sysconfdir=$ac_optarg ;; 1135ba0eab60Smacallan 1136ba0eab60Smacallan -target | --target | --targe | --targ | --tar | --ta | --t) 1137ba0eab60Smacallan ac_prev=target_alias ;; 1138ba0eab60Smacallan -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1139ba0eab60Smacallan target_alias=$ac_optarg ;; 1140ba0eab60Smacallan 1141ba0eab60Smacallan -v | -verbose | --verbose | --verbos | --verbo | --verb) 1142ba0eab60Smacallan verbose=yes ;; 1143ba0eab60Smacallan 1144ba0eab60Smacallan -version | --version | --versio | --versi | --vers | -V) 1145ba0eab60Smacallan ac_init_version=: ;; 1146ba0eab60Smacallan 1147ba0eab60Smacallan -with-* | --with-*) 1148aee7dae4Smrg ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1149ba0eab60Smacallan # Reject names that are not valid shell variable names. 1150aee7dae4Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1151aee7dae4Smrg as_fn_error $? "invalid package name: $ac_useropt" 1152aee7dae4Smrg ac_useropt_orig=$ac_useropt 1153aee7dae4Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1154aee7dae4Smrg case $ac_user_opts in 1155aee7dae4Smrg *" 1156aee7dae4Smrg"with_$ac_useropt" 1157aee7dae4Smrg"*) ;; 1158aee7dae4Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1159aee7dae4Smrg ac_unrecognized_sep=', ';; 1160ba0eab60Smacallan esac 1161aee7dae4Smrg eval with_$ac_useropt=\$ac_optarg ;; 1162ba0eab60Smacallan 1163ba0eab60Smacallan -without-* | --without-*) 1164aee7dae4Smrg ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1165ba0eab60Smacallan # Reject names that are not valid shell variable names. 1166aee7dae4Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1167aee7dae4Smrg as_fn_error $? "invalid package name: $ac_useropt" 1168aee7dae4Smrg ac_useropt_orig=$ac_useropt 1169aee7dae4Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1170aee7dae4Smrg case $ac_user_opts in 1171aee7dae4Smrg *" 1172aee7dae4Smrg"with_$ac_useropt" 1173aee7dae4Smrg"*) ;; 1174aee7dae4Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1175aee7dae4Smrg ac_unrecognized_sep=', ';; 1176aee7dae4Smrg esac 1177aee7dae4Smrg eval with_$ac_useropt=no ;; 1178ba0eab60Smacallan 1179ba0eab60Smacallan --x) 1180ba0eab60Smacallan # Obsolete; use --with-x. 1181ba0eab60Smacallan with_x=yes ;; 1182ba0eab60Smacallan 1183ba0eab60Smacallan -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1184ba0eab60Smacallan | --x-incl | --x-inc | --x-in | --x-i) 1185ba0eab60Smacallan ac_prev=x_includes ;; 1186ba0eab60Smacallan -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1187ba0eab60Smacallan | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1188ba0eab60Smacallan x_includes=$ac_optarg ;; 1189ba0eab60Smacallan 1190ba0eab60Smacallan -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1191ba0eab60Smacallan | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1192ba0eab60Smacallan ac_prev=x_libraries ;; 1193ba0eab60Smacallan -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1194ba0eab60Smacallan | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1195ba0eab60Smacallan x_libraries=$ac_optarg ;; 1196ba0eab60Smacallan 1197aee7dae4Smrg -*) as_fn_error $? "unrecognized option: \`$ac_option' 1198aee7dae4SmrgTry \`$0 --help' for more information" 1199ba0eab60Smacallan ;; 1200ba0eab60Smacallan 1201ba0eab60Smacallan *=*) 1202ba0eab60Smacallan ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1203ba0eab60Smacallan # Reject names that are not valid shell variable names. 1204aee7dae4Smrg case $ac_envvar in #( 1205aee7dae4Smrg '' | [0-9]* | *[!_$as_cr_alnum]* ) 1206aee7dae4Smrg as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1207aee7dae4Smrg esac 1208aee7dae4Smrg eval $ac_envvar=\$ac_optarg 1209ba0eab60Smacallan export $ac_envvar ;; 1210ba0eab60Smacallan 1211ba0eab60Smacallan *) 1212ba0eab60Smacallan # FIXME: should be removed in autoconf 3.0. 1213aee7dae4Smrg $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1214ba0eab60Smacallan expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1215aee7dae4Smrg $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1216aee7dae4Smrg : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1217ba0eab60Smacallan ;; 1218ba0eab60Smacallan 1219ba0eab60Smacallan esac 1220ba0eab60Smacallandone 1221ba0eab60Smacallan 1222ba0eab60Smacallanif test -n "$ac_prev"; then 1223ba0eab60Smacallan ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1224aee7dae4Smrg as_fn_error $? "missing argument to $ac_option" 1225ba0eab60Smacallanfi 1226ba0eab60Smacallan 1227aee7dae4Smrgif test -n "$ac_unrecognized_opts"; then 1228aee7dae4Smrg case $enable_option_checking in 1229aee7dae4Smrg no) ;; 1230aee7dae4Smrg fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1231aee7dae4Smrg *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1232ba0eab60Smacallan esac 1233aee7dae4Smrgfi 1234ba0eab60Smacallan 1235aee7dae4Smrg# Check all directory arguments for consistency. 1236aee7dae4Smrgfor ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1237aee7dae4Smrg datadir sysconfdir sharedstatedir localstatedir includedir \ 1238aee7dae4Smrg oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1239aee7dae4Smrg libdir localedir mandir 1240ba0eab60Smacallando 1241aee7dae4Smrg eval ac_val=\$$ac_var 1242aee7dae4Smrg # Remove trailing slashes. 1243aee7dae4Smrg case $ac_val in 1244aee7dae4Smrg */ ) 1245aee7dae4Smrg ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1246aee7dae4Smrg eval $ac_var=\$ac_val;; 1247aee7dae4Smrg esac 1248aee7dae4Smrg # Be sure to have absolute directory names. 1249ba0eab60Smacallan case $ac_val in 1250aee7dae4Smrg [\\/$]* | ?:[\\/]* ) continue;; 1251aee7dae4Smrg NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1252ba0eab60Smacallan esac 1253aee7dae4Smrg as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1254ba0eab60Smacallandone 1255ba0eab60Smacallan 1256ba0eab60Smacallan# There might be people who depend on the old broken behavior: `$host' 1257ba0eab60Smacallan# used to hold the argument of --host etc. 1258ba0eab60Smacallan# FIXME: To remove some day. 1259ba0eab60Smacallanbuild=$build_alias 1260ba0eab60Smacallanhost=$host_alias 1261ba0eab60Smacallantarget=$target_alias 1262ba0eab60Smacallan 1263ba0eab60Smacallan# FIXME: To remove some day. 1264ba0eab60Smacallanif test "x$host_alias" != x; then 1265ba0eab60Smacallan if test "x$build_alias" = x; then 1266ba0eab60Smacallan cross_compiling=maybe 1267ba0eab60Smacallan elif test "x$build_alias" != "x$host_alias"; then 1268ba0eab60Smacallan cross_compiling=yes 1269ba0eab60Smacallan fi 1270ba0eab60Smacallanfi 1271ba0eab60Smacallan 1272ba0eab60Smacallanac_tool_prefix= 1273ba0eab60Smacallantest -n "$host_alias" && ac_tool_prefix=$host_alias- 1274ba0eab60Smacallan 1275ba0eab60Smacallantest "$silent" = yes && exec 6>/dev/null 1276ba0eab60Smacallan 1277ba0eab60Smacallan 1278aee7dae4Smrgac_pwd=`pwd` && test -n "$ac_pwd" && 1279aee7dae4Smrgac_ls_di=`ls -di .` && 1280aee7dae4Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1281aee7dae4Smrg as_fn_error $? "working directory cannot be determined" 1282aee7dae4Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1283aee7dae4Smrg as_fn_error $? "pwd does not report name of working directory" 1284aee7dae4Smrg 1285aee7dae4Smrg 1286ba0eab60Smacallan# Find the source files, if location was not specified. 1287ba0eab60Smacallanif test -z "$srcdir"; then 1288ba0eab60Smacallan ac_srcdir_defaulted=yes 1289aee7dae4Smrg # Try the directory containing this script, then the parent directory. 1290aee7dae4Smrg ac_confdir=`$as_dirname -- "$as_myself" || 1291aee7dae4Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1292aee7dae4Smrg X"$as_myself" : 'X\(//\)[^/]' \| \ 1293aee7dae4Smrg X"$as_myself" : 'X\(//\)$' \| \ 1294aee7dae4Smrg X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1295aee7dae4Smrg$as_echo X"$as_myself" | 1296aee7dae4Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1297aee7dae4Smrg s//\1/ 1298aee7dae4Smrg q 1299aee7dae4Smrg } 1300aee7dae4Smrg /^X\(\/\/\)[^/].*/{ 1301aee7dae4Smrg s//\1/ 1302aee7dae4Smrg q 1303aee7dae4Smrg } 1304aee7dae4Smrg /^X\(\/\/\)$/{ 1305aee7dae4Smrg s//\1/ 1306aee7dae4Smrg q 1307aee7dae4Smrg } 1308aee7dae4Smrg /^X\(\/\).*/{ 1309aee7dae4Smrg s//\1/ 1310aee7dae4Smrg q 1311aee7dae4Smrg } 1312aee7dae4Smrg s/.*/./; q'` 1313ba0eab60Smacallan srcdir=$ac_confdir 1314aee7dae4Smrg if test ! -r "$srcdir/$ac_unique_file"; then 1315ba0eab60Smacallan srcdir=.. 1316ba0eab60Smacallan fi 1317ba0eab60Smacallanelse 1318ba0eab60Smacallan ac_srcdir_defaulted=no 1319ba0eab60Smacallanfi 1320aee7dae4Smrgif test ! -r "$srcdir/$ac_unique_file"; then 1321aee7dae4Smrg test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1322aee7dae4Smrg as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1323aee7dae4Smrgfi 1324aee7dae4Smrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1325aee7dae4Smrgac_abs_confdir=`( 1326aee7dae4Smrg cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1327aee7dae4Smrg pwd)` 1328aee7dae4Smrg# When building in place, set srcdir=. 1329aee7dae4Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then 1330aee7dae4Smrg srcdir=. 1331aee7dae4Smrgfi 1332aee7dae4Smrg# Remove unnecessary trailing slashes from srcdir. 1333aee7dae4Smrg# Double slashes in file names in object file debugging info 1334aee7dae4Smrg# mess up M-x gdb in Emacs. 1335aee7dae4Smrgcase $srcdir in 1336aee7dae4Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1337aee7dae4Smrgesac 1338aee7dae4Smrgfor ac_var in $ac_precious_vars; do 1339aee7dae4Smrg eval ac_env_${ac_var}_set=\${${ac_var}+set} 1340aee7dae4Smrg eval ac_env_${ac_var}_value=\$${ac_var} 1341aee7dae4Smrg eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1342aee7dae4Smrg eval ac_cv_env_${ac_var}_value=\$${ac_var} 1343aee7dae4Smrgdone 1344ba0eab60Smacallan 1345ba0eab60Smacallan# 1346ba0eab60Smacallan# Report the --help message. 1347ba0eab60Smacallan# 1348ba0eab60Smacallanif test "$ac_init_help" = "long"; then 1349ba0eab60Smacallan # Omit some internal or obsolete options to make the list less imposing. 1350ba0eab60Smacallan # This message is too long to be a string in the A/UX 3.1 sh. 1351ba0eab60Smacallan cat <<_ACEOF 1352aee7dae4Smrg\`configure' configures xf86-video-newport 0.2.4 to adapt to many kinds of systems. 1353ba0eab60Smacallan 1354ba0eab60SmacallanUsage: $0 [OPTION]... [VAR=VALUE]... 1355ba0eab60Smacallan 1356ba0eab60SmacallanTo assign environment variables (e.g., CC, CFLAGS...), specify them as 1357ba0eab60SmacallanVAR=VALUE. See below for descriptions of some of the useful variables. 1358ba0eab60Smacallan 1359ba0eab60SmacallanDefaults for the options are specified in brackets. 1360ba0eab60Smacallan 1361ba0eab60SmacallanConfiguration: 1362ba0eab60Smacallan -h, --help display this help and exit 1363ba0eab60Smacallan --help=short display options specific to this package 1364ba0eab60Smacallan --help=recursive display the short help of all the included packages 1365ba0eab60Smacallan -V, --version display version information and exit 1366aee7dae4Smrg -q, --quiet, --silent do not print \`checking ...' messages 1367ba0eab60Smacallan --cache-file=FILE cache test results in FILE [disabled] 1368ba0eab60Smacallan -C, --config-cache alias for \`--cache-file=config.cache' 1369ba0eab60Smacallan -n, --no-create do not create output files 1370ba0eab60Smacallan --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1371ba0eab60Smacallan 1372ba0eab60SmacallanInstallation directories: 1373ba0eab60Smacallan --prefix=PREFIX install architecture-independent files in PREFIX 1374aee7dae4Smrg [$ac_default_prefix] 1375ba0eab60Smacallan --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1376aee7dae4Smrg [PREFIX] 1377ba0eab60Smacallan 1378ba0eab60SmacallanBy default, \`make install' will install all the files in 1379ba0eab60Smacallan\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1380ba0eab60Smacallanan installation prefix other than \`$ac_default_prefix' using \`--prefix', 1381ba0eab60Smacallanfor instance \`--prefix=\$HOME'. 1382ba0eab60Smacallan 1383ba0eab60SmacallanFor better control, use the options below. 1384ba0eab60Smacallan 1385ba0eab60SmacallanFine tuning of the installation directories: 1386aee7dae4Smrg --bindir=DIR user executables [EPREFIX/bin] 1387aee7dae4Smrg --sbindir=DIR system admin executables [EPREFIX/sbin] 1388aee7dae4Smrg --libexecdir=DIR program executables [EPREFIX/libexec] 1389aee7dae4Smrg --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1390aee7dae4Smrg --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1391aee7dae4Smrg --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1392aee7dae4Smrg --libdir=DIR object code libraries [EPREFIX/lib] 1393aee7dae4Smrg --includedir=DIR C header files [PREFIX/include] 1394aee7dae4Smrg --oldincludedir=DIR C header files for non-gcc [/usr/include] 1395aee7dae4Smrg --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1396aee7dae4Smrg --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1397aee7dae4Smrg --infodir=DIR info documentation [DATAROOTDIR/info] 1398aee7dae4Smrg --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1399aee7dae4Smrg --mandir=DIR man documentation [DATAROOTDIR/man] 1400aee7dae4Smrg --docdir=DIR documentation root 1401aee7dae4Smrg [DATAROOTDIR/doc/xf86-video-newport] 1402aee7dae4Smrg --htmldir=DIR html documentation [DOCDIR] 1403aee7dae4Smrg --dvidir=DIR dvi documentation [DOCDIR] 1404aee7dae4Smrg --pdfdir=DIR pdf documentation [DOCDIR] 1405aee7dae4Smrg --psdir=DIR ps documentation [DOCDIR] 1406ba0eab60Smacallan_ACEOF 1407ba0eab60Smacallan 1408ba0eab60Smacallan cat <<\_ACEOF 1409ba0eab60Smacallan 1410ba0eab60SmacallanProgram names: 1411ba0eab60Smacallan --program-prefix=PREFIX prepend PREFIX to installed program names 1412ba0eab60Smacallan --program-suffix=SUFFIX append SUFFIX to installed program names 1413ba0eab60Smacallan --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1414ba0eab60Smacallan 1415ba0eab60SmacallanSystem types: 1416ba0eab60Smacallan --build=BUILD configure for building on BUILD [guessed] 1417ba0eab60Smacallan --host=HOST cross-compile to build programs to run on HOST [BUILD] 1418ba0eab60Smacallan_ACEOF 1419ba0eab60Smacallanfi 1420ba0eab60Smacallan 1421ba0eab60Smacallanif test -n "$ac_init_help"; then 1422ba0eab60Smacallan case $ac_init_help in 1423aee7dae4Smrg short | recursive ) echo "Configuration of xf86-video-newport 0.2.4:";; 1424ba0eab60Smacallan esac 1425ba0eab60Smacallan cat <<\_ACEOF 1426ba0eab60Smacallan 1427ba0eab60SmacallanOptional Features: 1428aee7dae4Smrg --disable-option-checking ignore unrecognized --enable/--with options 1429ba0eab60Smacallan --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1430ba0eab60Smacallan --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1431ba0eab60Smacallan --enable-maintainer-mode enable make rules and dependencies not useful 1432ba0eab60Smacallan (and sometimes confusing) to the casual installer 1433ba0eab60Smacallan --disable-dependency-tracking speeds up one-time build 1434ba0eab60Smacallan --enable-dependency-tracking do not reject slow dependency extractors 1435aee7dae4Smrg --disable-selective-werror 1436aee7dae4Smrg Turn off selective compiler errors. (default: 1437aee7dae4Smrg enabled) 1438aee7dae4Smrg --enable-strict-compilation 1439aee7dae4Smrg Enable all warnings from compiler and make them 1440aee7dae4Smrg errors (default: disabled) 1441aee7dae4Smrg --enable-silent-rules less verbose build output (undo: `make V=1') 1442aee7dae4Smrg --disable-silent-rules verbose build output (undo: `make V=0') 1443aee7dae4Smrg --enable-static[=PKGS] build static libraries [default=no] 1444aee7dae4Smrg --enable-shared[=PKGS] build shared libraries [default=yes] 1445aee7dae4Smrg --enable-fast-install[=PKGS] 1446aee7dae4Smrg optimize for fast installation [default=yes] 1447ba0eab60Smacallan --disable-libtool-lock avoid locking (might break parallel builds) 1448ba0eab60Smacallan 1449ba0eab60SmacallanOptional Packages: 1450ba0eab60Smacallan --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1451ba0eab60Smacallan --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1452aee7dae4Smrg --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1453ba0eab60Smacallan both] 1454aee7dae4Smrg --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1455aee7dae4Smrg --with-sysroot=DIR Search for dependent libraries within DIR 1456aee7dae4Smrg (or the compiler's sysroot if not specified). 1457ba0eab60Smacallan --with-xorg-module-dir=DIR 1458ba0eab60Smacallan Default xorg module directory 1459aee7dae4Smrg [[default=$libdir/xorg/modules]] 1460ba0eab60Smacallan 1461ba0eab60SmacallanSome influential environment variables: 1462ba0eab60Smacallan CC C compiler command 1463ba0eab60Smacallan CFLAGS C compiler flags 1464ba0eab60Smacallan LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1465ba0eab60Smacallan nonstandard directory <lib dir> 1466aee7dae4Smrg LIBS libraries to pass to the linker, e.g. -l<library> 1467aee7dae4Smrg CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1468aee7dae4Smrg you have headers in a nonstandard directory <include dir> 1469ba0eab60Smacallan CPP C preprocessor 1470ba0eab60Smacallan PKG_CONFIG path to pkg-config utility 1471aee7dae4Smrg PKG_CONFIG_PATH 1472aee7dae4Smrg directories to add to pkg-config's search path 1473aee7dae4Smrg PKG_CONFIG_LIBDIR 1474aee7dae4Smrg path overriding pkg-config's built-in search path 1475ba0eab60Smacallan XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1476ba0eab60Smacallan XORG_LIBS linker flags for XORG, overriding pkg-config 1477ba0eab60Smacallan 1478ba0eab60SmacallanUse these variables to override the choices made by `configure' or to help 1479ba0eab60Smacallanit to find libraries and programs with nonstandard names/locations. 1480ba0eab60Smacallan 1481ba0eab60SmacallanReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1482ba0eab60Smacallan_ACEOF 1483aee7dae4Smrgac_status=$? 1484ba0eab60Smacallanfi 1485ba0eab60Smacallan 1486ba0eab60Smacallanif test "$ac_init_help" = "recursive"; then 1487ba0eab60Smacallan # If there are subdirs, report their specific --help. 1488ba0eab60Smacallan for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1489aee7dae4Smrg test -d "$ac_dir" || 1490aee7dae4Smrg { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1491aee7dae4Smrg continue 1492ba0eab60Smacallan ac_builddir=. 1493ba0eab60Smacallan 1494aee7dae4Smrgcase "$ac_dir" in 1495aee7dae4Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1496aee7dae4Smrg*) 1497aee7dae4Smrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1498aee7dae4Smrg # A ".." for each directory in $ac_dir_suffix. 1499aee7dae4Smrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1500aee7dae4Smrg case $ac_top_builddir_sub in 1501aee7dae4Smrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1502aee7dae4Smrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1503aee7dae4Smrg esac ;; 1504aee7dae4Smrgesac 1505aee7dae4Smrgac_abs_top_builddir=$ac_pwd 1506aee7dae4Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix 1507aee7dae4Smrg# for backward compatibility: 1508aee7dae4Smrgac_top_builddir=$ac_top_build_prefix 1509aee7dae4Smrg 1510ba0eab60Smacallancase $srcdir in 1511aee7dae4Smrg .) # We are building in place. 1512ba0eab60Smacallan ac_srcdir=. 1513aee7dae4Smrg ac_top_srcdir=$ac_top_builddir_sub 1514aee7dae4Smrg ac_abs_top_srcdir=$ac_pwd ;; 1515aee7dae4Smrg [\\/]* | ?:[\\/]* ) # Absolute name. 1516ba0eab60Smacallan ac_srcdir=$srcdir$ac_dir_suffix; 1517aee7dae4Smrg ac_top_srcdir=$srcdir 1518aee7dae4Smrg ac_abs_top_srcdir=$srcdir ;; 1519aee7dae4Smrg *) # Relative name. 1520aee7dae4Smrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1521aee7dae4Smrg ac_top_srcdir=$ac_top_build_prefix$srcdir 1522aee7dae4Smrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1523ba0eab60Smacallanesac 1524aee7dae4Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1525aee7dae4Smrg 1526aee7dae4Smrg cd "$ac_dir" || { ac_status=$?; continue; } 1527aee7dae4Smrg # Check for guested configure. 1528aee7dae4Smrg if test -f "$ac_srcdir/configure.gnu"; then 1529aee7dae4Smrg echo && 1530aee7dae4Smrg $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1531aee7dae4Smrg elif test -f "$ac_srcdir/configure"; then 1532aee7dae4Smrg echo && 1533aee7dae4Smrg $SHELL "$ac_srcdir/configure" --help=recursive 1534ba0eab60Smacallan else 1535aee7dae4Smrg $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1536aee7dae4Smrg fi || ac_status=$? 1537aee7dae4Smrg cd "$ac_pwd" || { ac_status=$?; break; } 1538ba0eab60Smacallan done 1539ba0eab60Smacallanfi 1540ba0eab60Smacallan 1541aee7dae4Smrgtest -n "$ac_init_help" && exit $ac_status 1542ba0eab60Smacallanif $ac_init_version; then 1543ba0eab60Smacallan cat <<\_ACEOF 1544aee7dae4Smrgxf86-video-newport configure 0.2.4 1545aee7dae4Smrggenerated by GNU Autoconf 2.69 1546ba0eab60Smacallan 1547aee7dae4SmrgCopyright (C) 2012 Free Software Foundation, Inc. 1548ba0eab60SmacallanThis configure script is free software; the Free Software Foundation 1549ba0eab60Smacallangives unlimited permission to copy, distribute and modify it. 1550ba0eab60Smacallan_ACEOF 1551aee7dae4Smrg exit 1552ba0eab60Smacallanfi 1553aee7dae4Smrg 1554aee7dae4Smrg## ------------------------ ## 1555aee7dae4Smrg## Autoconf initialization. ## 1556aee7dae4Smrg## ------------------------ ## 1557aee7dae4Smrg 1558aee7dae4Smrg# ac_fn_c_try_compile LINENO 1559aee7dae4Smrg# -------------------------- 1560aee7dae4Smrg# Try to compile conftest.$ac_ext, and return whether this succeeded. 1561aee7dae4Smrgac_fn_c_try_compile () 1562aee7dae4Smrg{ 1563aee7dae4Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1564aee7dae4Smrg rm -f conftest.$ac_objext 1565aee7dae4Smrg if { { ac_try="$ac_compile" 1566aee7dae4Smrgcase "(($ac_try" in 1567aee7dae4Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1568aee7dae4Smrg *) ac_try_echo=$ac_try;; 1569aee7dae4Smrgesac 1570aee7dae4Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1571aee7dae4Smrg$as_echo "$ac_try_echo"; } >&5 1572aee7dae4Smrg (eval "$ac_compile") 2>conftest.err 1573aee7dae4Smrg ac_status=$? 1574aee7dae4Smrg if test -s conftest.err; then 1575aee7dae4Smrg grep -v '^ *+' conftest.err >conftest.er1 1576aee7dae4Smrg cat conftest.er1 >&5 1577aee7dae4Smrg mv -f conftest.er1 conftest.err 1578aee7dae4Smrg fi 1579aee7dae4Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1580aee7dae4Smrg test $ac_status = 0; } && { 1581aee7dae4Smrg test -z "$ac_c_werror_flag" || 1582aee7dae4Smrg test ! -s conftest.err 1583aee7dae4Smrg } && test -s conftest.$ac_objext; then : 1584aee7dae4Smrg ac_retval=0 1585aee7dae4Smrgelse 1586aee7dae4Smrg $as_echo "$as_me: failed program was:" >&5 1587aee7dae4Smrgsed 's/^/| /' conftest.$ac_ext >&5 1588aee7dae4Smrg 1589aee7dae4Smrg ac_retval=1 1590aee7dae4Smrgfi 1591aee7dae4Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1592aee7dae4Smrg as_fn_set_status $ac_retval 1593aee7dae4Smrg 1594aee7dae4Smrg} # ac_fn_c_try_compile 1595aee7dae4Smrg 1596aee7dae4Smrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1597aee7dae4Smrg# --------------------------------------------- 1598aee7dae4Smrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1599aee7dae4Smrg# accordingly. 1600aee7dae4Smrgac_fn_c_check_decl () 1601aee7dae4Smrg{ 1602aee7dae4Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1603aee7dae4Smrg as_decl_name=`echo $2|sed 's/ *(.*//'` 1604aee7dae4Smrg as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1605aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1606aee7dae4Smrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1607aee7dae4Smrgif eval \${$3+:} false; then : 1608aee7dae4Smrg $as_echo_n "(cached) " >&6 1609aee7dae4Smrgelse 1610aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1611aee7dae4Smrg/* end confdefs.h. */ 1612aee7dae4Smrg$4 1613aee7dae4Smrgint 1614aee7dae4Smrgmain () 1615aee7dae4Smrg{ 1616aee7dae4Smrg#ifndef $as_decl_name 1617aee7dae4Smrg#ifdef __cplusplus 1618aee7dae4Smrg (void) $as_decl_use; 1619aee7dae4Smrg#else 1620aee7dae4Smrg (void) $as_decl_name; 1621aee7dae4Smrg#endif 1622aee7dae4Smrg#endif 1623aee7dae4Smrg 1624aee7dae4Smrg ; 1625aee7dae4Smrg return 0; 1626aee7dae4Smrg} 1627aee7dae4Smrg_ACEOF 1628aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 1629aee7dae4Smrg eval "$3=yes" 1630aee7dae4Smrgelse 1631aee7dae4Smrg eval "$3=no" 1632aee7dae4Smrgfi 1633aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1634aee7dae4Smrgfi 1635aee7dae4Smrgeval ac_res=\$$3 1636aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1637aee7dae4Smrg$as_echo "$ac_res" >&6; } 1638aee7dae4Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1639aee7dae4Smrg 1640aee7dae4Smrg} # ac_fn_c_check_decl 1641aee7dae4Smrg 1642aee7dae4Smrg# ac_fn_c_try_cpp LINENO 1643aee7dae4Smrg# ---------------------- 1644aee7dae4Smrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1645aee7dae4Smrgac_fn_c_try_cpp () 1646aee7dae4Smrg{ 1647aee7dae4Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1648aee7dae4Smrg if { { ac_try="$ac_cpp conftest.$ac_ext" 1649aee7dae4Smrgcase "(($ac_try" in 1650aee7dae4Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1651aee7dae4Smrg *) ac_try_echo=$ac_try;; 1652aee7dae4Smrgesac 1653aee7dae4Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1654aee7dae4Smrg$as_echo "$ac_try_echo"; } >&5 1655aee7dae4Smrg (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1656aee7dae4Smrg ac_status=$? 1657aee7dae4Smrg if test -s conftest.err; then 1658aee7dae4Smrg grep -v '^ *+' conftest.err >conftest.er1 1659aee7dae4Smrg cat conftest.er1 >&5 1660aee7dae4Smrg mv -f conftest.er1 conftest.err 1661aee7dae4Smrg fi 1662aee7dae4Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1663aee7dae4Smrg test $ac_status = 0; } > conftest.i && { 1664aee7dae4Smrg test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1665aee7dae4Smrg test ! -s conftest.err 1666aee7dae4Smrg }; then : 1667aee7dae4Smrg ac_retval=0 1668aee7dae4Smrgelse 1669aee7dae4Smrg $as_echo "$as_me: failed program was:" >&5 1670aee7dae4Smrgsed 's/^/| /' conftest.$ac_ext >&5 1671aee7dae4Smrg 1672aee7dae4Smrg ac_retval=1 1673aee7dae4Smrgfi 1674aee7dae4Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1675aee7dae4Smrg as_fn_set_status $ac_retval 1676aee7dae4Smrg 1677aee7dae4Smrg} # ac_fn_c_try_cpp 1678aee7dae4Smrg 1679aee7dae4Smrg# ac_fn_c_try_run LINENO 1680aee7dae4Smrg# ---------------------- 1681aee7dae4Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1682aee7dae4Smrg# that executables *can* be run. 1683aee7dae4Smrgac_fn_c_try_run () 1684aee7dae4Smrg{ 1685aee7dae4Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1686aee7dae4Smrg if { { ac_try="$ac_link" 1687aee7dae4Smrgcase "(($ac_try" in 1688aee7dae4Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1689aee7dae4Smrg *) ac_try_echo=$ac_try;; 1690aee7dae4Smrgesac 1691aee7dae4Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1692aee7dae4Smrg$as_echo "$ac_try_echo"; } >&5 1693aee7dae4Smrg (eval "$ac_link") 2>&5 1694aee7dae4Smrg ac_status=$? 1695aee7dae4Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1696aee7dae4Smrg test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1697aee7dae4Smrg { { case "(($ac_try" in 1698aee7dae4Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1699aee7dae4Smrg *) ac_try_echo=$ac_try;; 1700aee7dae4Smrgesac 1701aee7dae4Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1702aee7dae4Smrg$as_echo "$ac_try_echo"; } >&5 1703aee7dae4Smrg (eval "$ac_try") 2>&5 1704aee7dae4Smrg ac_status=$? 1705aee7dae4Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1706aee7dae4Smrg test $ac_status = 0; }; }; then : 1707aee7dae4Smrg ac_retval=0 1708aee7dae4Smrgelse 1709aee7dae4Smrg $as_echo "$as_me: program exited with status $ac_status" >&5 1710aee7dae4Smrg $as_echo "$as_me: failed program was:" >&5 1711aee7dae4Smrgsed 's/^/| /' conftest.$ac_ext >&5 1712aee7dae4Smrg 1713aee7dae4Smrg ac_retval=$ac_status 1714aee7dae4Smrgfi 1715aee7dae4Smrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1716aee7dae4Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1717aee7dae4Smrg as_fn_set_status $ac_retval 1718aee7dae4Smrg 1719aee7dae4Smrg} # ac_fn_c_try_run 1720aee7dae4Smrg 1721aee7dae4Smrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1722aee7dae4Smrg# ------------------------------------------------------- 1723aee7dae4Smrg# Tests whether HEADER exists and can be compiled using the include files in 1724aee7dae4Smrg# INCLUDES, setting the cache variable VAR accordingly. 1725aee7dae4Smrgac_fn_c_check_header_compile () 1726aee7dae4Smrg{ 1727aee7dae4Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1728aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1729aee7dae4Smrg$as_echo_n "checking for $2... " >&6; } 1730aee7dae4Smrgif eval \${$3+:} false; then : 1731aee7dae4Smrg $as_echo_n "(cached) " >&6 1732aee7dae4Smrgelse 1733aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1734aee7dae4Smrg/* end confdefs.h. */ 1735aee7dae4Smrg$4 1736aee7dae4Smrg#include <$2> 1737aee7dae4Smrg_ACEOF 1738aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 1739aee7dae4Smrg eval "$3=yes" 1740aee7dae4Smrgelse 1741aee7dae4Smrg eval "$3=no" 1742aee7dae4Smrgfi 1743aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1744aee7dae4Smrgfi 1745aee7dae4Smrgeval ac_res=\$$3 1746aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1747aee7dae4Smrg$as_echo "$ac_res" >&6; } 1748aee7dae4Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1749aee7dae4Smrg 1750aee7dae4Smrg} # ac_fn_c_check_header_compile 1751aee7dae4Smrg 1752aee7dae4Smrg# ac_fn_c_try_link LINENO 1753aee7dae4Smrg# ----------------------- 1754aee7dae4Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. 1755aee7dae4Smrgac_fn_c_try_link () 1756aee7dae4Smrg{ 1757aee7dae4Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1758aee7dae4Smrg rm -f conftest.$ac_objext conftest$ac_exeext 1759aee7dae4Smrg if { { ac_try="$ac_link" 1760aee7dae4Smrgcase "(($ac_try" in 1761aee7dae4Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1762aee7dae4Smrg *) ac_try_echo=$ac_try;; 1763aee7dae4Smrgesac 1764aee7dae4Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1765aee7dae4Smrg$as_echo "$ac_try_echo"; } >&5 1766aee7dae4Smrg (eval "$ac_link") 2>conftest.err 1767aee7dae4Smrg ac_status=$? 1768aee7dae4Smrg if test -s conftest.err; then 1769aee7dae4Smrg grep -v '^ *+' conftest.err >conftest.er1 1770aee7dae4Smrg cat conftest.er1 >&5 1771aee7dae4Smrg mv -f conftest.er1 conftest.err 1772aee7dae4Smrg fi 1773aee7dae4Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1774aee7dae4Smrg test $ac_status = 0; } && { 1775aee7dae4Smrg test -z "$ac_c_werror_flag" || 1776aee7dae4Smrg test ! -s conftest.err 1777aee7dae4Smrg } && test -s conftest$ac_exeext && { 1778aee7dae4Smrg test "$cross_compiling" = yes || 1779aee7dae4Smrg test -x conftest$ac_exeext 1780aee7dae4Smrg }; then : 1781aee7dae4Smrg ac_retval=0 1782aee7dae4Smrgelse 1783aee7dae4Smrg $as_echo "$as_me: failed program was:" >&5 1784aee7dae4Smrgsed 's/^/| /' conftest.$ac_ext >&5 1785aee7dae4Smrg 1786aee7dae4Smrg ac_retval=1 1787aee7dae4Smrgfi 1788aee7dae4Smrg # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1789aee7dae4Smrg # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1790aee7dae4Smrg # interfere with the next link command; also delete a directory that is 1791aee7dae4Smrg # left behind by Apple's compiler. We do this before executing the actions. 1792aee7dae4Smrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1793aee7dae4Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1794aee7dae4Smrg as_fn_set_status $ac_retval 1795aee7dae4Smrg 1796aee7dae4Smrg} # ac_fn_c_try_link 1797aee7dae4Smrg 1798aee7dae4Smrg# ac_fn_c_check_func LINENO FUNC VAR 1799aee7dae4Smrg# ---------------------------------- 1800aee7dae4Smrg# Tests whether FUNC exists, setting the cache variable VAR accordingly 1801aee7dae4Smrgac_fn_c_check_func () 1802aee7dae4Smrg{ 1803aee7dae4Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1804aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1805aee7dae4Smrg$as_echo_n "checking for $2... " >&6; } 1806aee7dae4Smrgif eval \${$3+:} false; then : 1807aee7dae4Smrg $as_echo_n "(cached) " >&6 1808aee7dae4Smrgelse 1809aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1810aee7dae4Smrg/* end confdefs.h. */ 1811aee7dae4Smrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1812aee7dae4Smrg For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1813aee7dae4Smrg#define $2 innocuous_$2 1814aee7dae4Smrg 1815aee7dae4Smrg/* System header to define __stub macros and hopefully few prototypes, 1816aee7dae4Smrg which can conflict with char $2 (); below. 1817aee7dae4Smrg Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1818aee7dae4Smrg <limits.h> exists even on freestanding compilers. */ 1819aee7dae4Smrg 1820aee7dae4Smrg#ifdef __STDC__ 1821aee7dae4Smrg# include <limits.h> 1822aee7dae4Smrg#else 1823aee7dae4Smrg# include <assert.h> 1824aee7dae4Smrg#endif 1825aee7dae4Smrg 1826aee7dae4Smrg#undef $2 1827aee7dae4Smrg 1828aee7dae4Smrg/* Override any GCC internal prototype to avoid an error. 1829aee7dae4Smrg Use char because int might match the return type of a GCC 1830aee7dae4Smrg builtin and then its argument prototype would still apply. */ 1831aee7dae4Smrg#ifdef __cplusplus 1832aee7dae4Smrgextern "C" 1833aee7dae4Smrg#endif 1834aee7dae4Smrgchar $2 (); 1835aee7dae4Smrg/* The GNU C library defines this for functions which it implements 1836aee7dae4Smrg to always fail with ENOSYS. Some functions are actually named 1837aee7dae4Smrg something starting with __ and the normal name is an alias. */ 1838aee7dae4Smrg#if defined __stub_$2 || defined __stub___$2 1839aee7dae4Smrgchoke me 1840aee7dae4Smrg#endif 1841aee7dae4Smrg 1842aee7dae4Smrgint 1843aee7dae4Smrgmain () 1844aee7dae4Smrg{ 1845aee7dae4Smrgreturn $2 (); 1846aee7dae4Smrg ; 1847aee7dae4Smrg return 0; 1848aee7dae4Smrg} 1849aee7dae4Smrg_ACEOF 1850aee7dae4Smrgif ac_fn_c_try_link "$LINENO"; then : 1851aee7dae4Smrg eval "$3=yes" 1852aee7dae4Smrgelse 1853aee7dae4Smrg eval "$3=no" 1854aee7dae4Smrgfi 1855aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext \ 1856aee7dae4Smrg conftest$ac_exeext conftest.$ac_ext 1857aee7dae4Smrgfi 1858aee7dae4Smrgeval ac_res=\$$3 1859aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1860aee7dae4Smrg$as_echo "$ac_res" >&6; } 1861aee7dae4Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1862aee7dae4Smrg 1863aee7dae4Smrg} # ac_fn_c_check_func 1864aee7dae4Smrgcat >config.log <<_ACEOF 1865ba0eab60SmacallanThis file contains any messages produced by compilers while 1866ba0eab60Smacallanrunning configure, to aid debugging if configure makes a mistake. 1867ba0eab60Smacallan 1868aee7dae4SmrgIt was created by xf86-video-newport $as_me 0.2.4, which was 1869aee7dae4Smrggenerated by GNU Autoconf 2.69. Invocation command line was 1870ba0eab60Smacallan 1871ba0eab60Smacallan $ $0 $@ 1872ba0eab60Smacallan 1873ba0eab60Smacallan_ACEOF 1874aee7dae4Smrgexec 5>>config.log 1875ba0eab60Smacallan{ 1876ba0eab60Smacallancat <<_ASUNAME 1877ba0eab60Smacallan## --------- ## 1878ba0eab60Smacallan## Platform. ## 1879ba0eab60Smacallan## --------- ## 1880ba0eab60Smacallan 1881ba0eab60Smacallanhostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1882ba0eab60Smacallanuname -m = `(uname -m) 2>/dev/null || echo unknown` 1883ba0eab60Smacallanuname -r = `(uname -r) 2>/dev/null || echo unknown` 1884ba0eab60Smacallanuname -s = `(uname -s) 2>/dev/null || echo unknown` 1885ba0eab60Smacallanuname -v = `(uname -v) 2>/dev/null || echo unknown` 1886ba0eab60Smacallan 1887ba0eab60Smacallan/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1888ba0eab60Smacallan/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1889ba0eab60Smacallan 1890ba0eab60Smacallan/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1891ba0eab60Smacallan/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1892ba0eab60Smacallan/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1893aee7dae4Smrg/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1894ba0eab60Smacallan/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1895ba0eab60Smacallan/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1896ba0eab60Smacallan/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1897ba0eab60Smacallan 1898ba0eab60Smacallan_ASUNAME 1899ba0eab60Smacallan 1900ba0eab60Smacallanas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1901ba0eab60Smacallanfor as_dir in $PATH 1902ba0eab60Smacallando 1903ba0eab60Smacallan IFS=$as_save_IFS 1904ba0eab60Smacallan test -z "$as_dir" && as_dir=. 1905aee7dae4Smrg $as_echo "PATH: $as_dir" 1906aee7dae4Smrg done 1907aee7dae4SmrgIFS=$as_save_IFS 1908ba0eab60Smacallan 1909ba0eab60Smacallan} >&5 1910ba0eab60Smacallan 1911ba0eab60Smacallancat >&5 <<_ACEOF 1912ba0eab60Smacallan 1913ba0eab60Smacallan 1914ba0eab60Smacallan## ----------- ## 1915ba0eab60Smacallan## Core tests. ## 1916ba0eab60Smacallan## ----------- ## 1917ba0eab60Smacallan 1918ba0eab60Smacallan_ACEOF 1919ba0eab60Smacallan 1920ba0eab60Smacallan 1921ba0eab60Smacallan# Keep a trace of the command line. 1922ba0eab60Smacallan# Strip out --no-create and --no-recursion so they do not pile up. 1923ba0eab60Smacallan# Strip out --silent because we don't want to record it for future runs. 1924ba0eab60Smacallan# Also quote any args containing shell meta-characters. 1925ba0eab60Smacallan# Make two passes to allow for proper duplicate-argument suppression. 1926ba0eab60Smacallanac_configure_args= 1927ba0eab60Smacallanac_configure_args0= 1928ba0eab60Smacallanac_configure_args1= 1929ba0eab60Smacallanac_must_keep_next=false 1930ba0eab60Smacallanfor ac_pass in 1 2 1931ba0eab60Smacallando 1932ba0eab60Smacallan for ac_arg 1933ba0eab60Smacallan do 1934ba0eab60Smacallan case $ac_arg in 1935ba0eab60Smacallan -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1936ba0eab60Smacallan -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1937ba0eab60Smacallan | -silent | --silent | --silen | --sile | --sil) 1938ba0eab60Smacallan continue ;; 1939aee7dae4Smrg *\'*) 1940aee7dae4Smrg ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1941ba0eab60Smacallan esac 1942ba0eab60Smacallan case $ac_pass in 1943aee7dae4Smrg 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1944ba0eab60Smacallan 2) 1945aee7dae4Smrg as_fn_append ac_configure_args1 " '$ac_arg'" 1946ba0eab60Smacallan if test $ac_must_keep_next = true; then 1947ba0eab60Smacallan ac_must_keep_next=false # Got value, back to normal. 1948ba0eab60Smacallan else 1949ba0eab60Smacallan case $ac_arg in 1950ba0eab60Smacallan *=* | --config-cache | -C | -disable-* | --disable-* \ 1951ba0eab60Smacallan | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1952ba0eab60Smacallan | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1953ba0eab60Smacallan | -with-* | --with-* | -without-* | --without-* | --x) 1954ba0eab60Smacallan case "$ac_configure_args0 " in 1955ba0eab60Smacallan "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1956ba0eab60Smacallan esac 1957ba0eab60Smacallan ;; 1958ba0eab60Smacallan -* ) ac_must_keep_next=true ;; 1959ba0eab60Smacallan esac 1960ba0eab60Smacallan fi 1961aee7dae4Smrg as_fn_append ac_configure_args " '$ac_arg'" 1962ba0eab60Smacallan ;; 1963ba0eab60Smacallan esac 1964ba0eab60Smacallan done 1965ba0eab60Smacallandone 1966aee7dae4Smrg{ ac_configure_args0=; unset ac_configure_args0;} 1967aee7dae4Smrg{ ac_configure_args1=; unset ac_configure_args1;} 1968ba0eab60Smacallan 1969ba0eab60Smacallan# When interrupted or exit'd, cleanup temporary files, and complete 1970ba0eab60Smacallan# config.log. We remove comments because anyway the quotes in there 1971ba0eab60Smacallan# would cause problems or look ugly. 1972aee7dae4Smrg# WARNING: Use '\'' to represent an apostrophe within the trap. 1973aee7dae4Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1974ba0eab60Smacallantrap 'exit_status=$? 1975ba0eab60Smacallan # Save into config.log some information that might help in debugging. 1976ba0eab60Smacallan { 1977ba0eab60Smacallan echo 1978ba0eab60Smacallan 1979aee7dae4Smrg $as_echo "## ---------------- ## 1980ba0eab60Smacallan## Cache variables. ## 1981aee7dae4Smrg## ---------------- ##" 1982ba0eab60Smacallan echo 1983ba0eab60Smacallan # The following way of writing the cache mishandles newlines in values, 1984aee7dae4Smrg( 1985aee7dae4Smrg for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1986aee7dae4Smrg eval ac_val=\$$ac_var 1987aee7dae4Smrg case $ac_val in #( 1988aee7dae4Smrg *${as_nl}*) 1989aee7dae4Smrg case $ac_var in #( 1990aee7dae4Smrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1991aee7dae4Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1992aee7dae4Smrg esac 1993aee7dae4Smrg case $ac_var in #( 1994aee7dae4Smrg _ | IFS | as_nl) ;; #( 1995aee7dae4Smrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1996aee7dae4Smrg *) { eval $ac_var=; unset $ac_var;} ;; 1997aee7dae4Smrg esac ;; 1998aee7dae4Smrg esac 1999aee7dae4Smrg done 2000ba0eab60Smacallan (set) 2>&1 | 2001aee7dae4Smrg case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2002aee7dae4Smrg *${as_nl}ac_space=\ *) 2003ba0eab60Smacallan sed -n \ 2004aee7dae4Smrg "s/'\''/'\''\\\\'\'''\''/g; 2005aee7dae4Smrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2006aee7dae4Smrg ;; #( 2007ba0eab60Smacallan *) 2008aee7dae4Smrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2009ba0eab60Smacallan ;; 2010aee7dae4Smrg esac | 2011aee7dae4Smrg sort 2012aee7dae4Smrg) 2013ba0eab60Smacallan echo 2014ba0eab60Smacallan 2015aee7dae4Smrg $as_echo "## ----------------- ## 2016ba0eab60Smacallan## Output variables. ## 2017aee7dae4Smrg## ----------------- ##" 2018ba0eab60Smacallan echo 2019ba0eab60Smacallan for ac_var in $ac_subst_vars 2020ba0eab60Smacallan do 2021aee7dae4Smrg eval ac_val=\$$ac_var 2022aee7dae4Smrg case $ac_val in 2023aee7dae4Smrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2024aee7dae4Smrg esac 2025aee7dae4Smrg $as_echo "$ac_var='\''$ac_val'\''" 2026ba0eab60Smacallan done | sort 2027ba0eab60Smacallan echo 2028ba0eab60Smacallan 2029ba0eab60Smacallan if test -n "$ac_subst_files"; then 2030aee7dae4Smrg $as_echo "## ------------------- ## 2031aee7dae4Smrg## File substitutions. ## 2032aee7dae4Smrg## ------------------- ##" 2033ba0eab60Smacallan echo 2034ba0eab60Smacallan for ac_var in $ac_subst_files 2035ba0eab60Smacallan do 2036aee7dae4Smrg eval ac_val=\$$ac_var 2037aee7dae4Smrg case $ac_val in 2038aee7dae4Smrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2039aee7dae4Smrg esac 2040aee7dae4Smrg $as_echo "$ac_var='\''$ac_val'\''" 2041ba0eab60Smacallan done | sort 2042ba0eab60Smacallan echo 2043ba0eab60Smacallan fi 2044ba0eab60Smacallan 2045ba0eab60Smacallan if test -s confdefs.h; then 2046aee7dae4Smrg $as_echo "## ----------- ## 2047ba0eab60Smacallan## confdefs.h. ## 2048aee7dae4Smrg## ----------- ##" 2049ba0eab60Smacallan echo 2050aee7dae4Smrg cat confdefs.h 2051ba0eab60Smacallan echo 2052ba0eab60Smacallan fi 2053ba0eab60Smacallan test "$ac_signal" != 0 && 2054aee7dae4Smrg $as_echo "$as_me: caught signal $ac_signal" 2055aee7dae4Smrg $as_echo "$as_me: exit $exit_status" 2056ba0eab60Smacallan } >&5 2057aee7dae4Smrg rm -f core *.core core.conftest.* && 2058aee7dae4Smrg rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2059ba0eab60Smacallan exit $exit_status 2060aee7dae4Smrg' 0 2061ba0eab60Smacallanfor ac_signal in 1 2 13 15; do 2062aee7dae4Smrg trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2063ba0eab60Smacallandone 2064ba0eab60Smacallanac_signal=0 2065ba0eab60Smacallan 2066ba0eab60Smacallan# confdefs.h avoids OS command line length limits that DEFS can exceed. 2067aee7dae4Smrgrm -f -r conftest* confdefs.h 2068aee7dae4Smrg 2069aee7dae4Smrg$as_echo "/* confdefs.h */" > confdefs.h 2070ba0eab60Smacallan 2071ba0eab60Smacallan# Predefined preprocessor variables. 2072ba0eab60Smacallan 2073ba0eab60Smacallancat >>confdefs.h <<_ACEOF 2074ba0eab60Smacallan#define PACKAGE_NAME "$PACKAGE_NAME" 2075ba0eab60Smacallan_ACEOF 2076ba0eab60Smacallan 2077ba0eab60Smacallancat >>confdefs.h <<_ACEOF 2078ba0eab60Smacallan#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2079ba0eab60Smacallan_ACEOF 2080ba0eab60Smacallan 2081ba0eab60Smacallancat >>confdefs.h <<_ACEOF 2082ba0eab60Smacallan#define PACKAGE_VERSION "$PACKAGE_VERSION" 2083ba0eab60Smacallan_ACEOF 2084ba0eab60Smacallan 2085ba0eab60Smacallancat >>confdefs.h <<_ACEOF 2086ba0eab60Smacallan#define PACKAGE_STRING "$PACKAGE_STRING" 2087ba0eab60Smacallan_ACEOF 2088ba0eab60Smacallan 2089ba0eab60Smacallancat >>confdefs.h <<_ACEOF 2090ba0eab60Smacallan#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2091ba0eab60Smacallan_ACEOF 2092ba0eab60Smacallan 2093aee7dae4Smrgcat >>confdefs.h <<_ACEOF 2094aee7dae4Smrg#define PACKAGE_URL "$PACKAGE_URL" 2095aee7dae4Smrg_ACEOF 2096aee7dae4Smrg 2097ba0eab60Smacallan 2098ba0eab60Smacallan# Let the site file select an alternate cache file if it wants to. 2099aee7dae4Smrg# Prefer an explicitly selected file to automatically selected ones. 2100aee7dae4Smrgac_site_file1=NONE 2101aee7dae4Smrgac_site_file2=NONE 2102aee7dae4Smrgif test -n "$CONFIG_SITE"; then 2103aee7dae4Smrg # We do not want a PATH search for config.site. 2104aee7dae4Smrg case $CONFIG_SITE in #(( 2105aee7dae4Smrg -*) ac_site_file1=./$CONFIG_SITE;; 2106aee7dae4Smrg */*) ac_site_file1=$CONFIG_SITE;; 2107aee7dae4Smrg *) ac_site_file1=./$CONFIG_SITE;; 2108aee7dae4Smrg esac 2109aee7dae4Smrgelif test "x$prefix" != xNONE; then 2110aee7dae4Smrg ac_site_file1=$prefix/share/config.site 2111aee7dae4Smrg ac_site_file2=$prefix/etc/config.site 2112aee7dae4Smrgelse 2113aee7dae4Smrg ac_site_file1=$ac_default_prefix/share/config.site 2114aee7dae4Smrg ac_site_file2=$ac_default_prefix/etc/config.site 2115ba0eab60Smacallanfi 2116aee7dae4Smrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2" 2117aee7dae4Smrgdo 2118aee7dae4Smrg test "x$ac_site_file" = xNONE && continue 2119aee7dae4Smrg if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2120aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2121aee7dae4Smrg$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2122ba0eab60Smacallan sed 's/^/| /' "$ac_site_file" >&5 2123aee7dae4Smrg . "$ac_site_file" \ 2124aee7dae4Smrg || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2125aee7dae4Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2126aee7dae4Smrgas_fn_error $? "failed to load site script $ac_site_file 2127aee7dae4SmrgSee \`config.log' for more details" "$LINENO" 5; } 2128ba0eab60Smacallan fi 2129ba0eab60Smacallandone 2130ba0eab60Smacallan 2131ba0eab60Smacallanif test -r "$cache_file"; then 2132aee7dae4Smrg # Some versions of bash will fail to source /dev/null (special files 2133aee7dae4Smrg # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2134aee7dae4Smrg if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2135aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2136aee7dae4Smrg$as_echo "$as_me: loading cache $cache_file" >&6;} 2137ba0eab60Smacallan case $cache_file in 2138aee7dae4Smrg [\\/]* | ?:[\\/]* ) . "$cache_file";; 2139aee7dae4Smrg *) . "./$cache_file";; 2140ba0eab60Smacallan esac 2141ba0eab60Smacallan fi 2142ba0eab60Smacallanelse 2143aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2144aee7dae4Smrg$as_echo "$as_me: creating cache $cache_file" >&6;} 2145ba0eab60Smacallan >$cache_file 2146ba0eab60Smacallanfi 2147ba0eab60Smacallan 2148ba0eab60Smacallan# Check that the precious variables saved in the cache have kept the same 2149ba0eab60Smacallan# value. 2150ba0eab60Smacallanac_cache_corrupted=false 2151aee7dae4Smrgfor ac_var in $ac_precious_vars; do 2152ba0eab60Smacallan eval ac_old_set=\$ac_cv_env_${ac_var}_set 2153ba0eab60Smacallan eval ac_new_set=\$ac_env_${ac_var}_set 2154aee7dae4Smrg eval ac_old_val=\$ac_cv_env_${ac_var}_value 2155aee7dae4Smrg eval ac_new_val=\$ac_env_${ac_var}_value 2156ba0eab60Smacallan case $ac_old_set,$ac_new_set in 2157ba0eab60Smacallan set,) 2158aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2159aee7dae4Smrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2160ba0eab60Smacallan ac_cache_corrupted=: ;; 2161ba0eab60Smacallan ,set) 2162aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2163aee7dae4Smrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2164ba0eab60Smacallan ac_cache_corrupted=: ;; 2165ba0eab60Smacallan ,);; 2166ba0eab60Smacallan *) 2167ba0eab60Smacallan if test "x$ac_old_val" != "x$ac_new_val"; then 2168aee7dae4Smrg # differences in whitespace do not lead to failure. 2169aee7dae4Smrg ac_old_val_w=`echo x $ac_old_val` 2170aee7dae4Smrg ac_new_val_w=`echo x $ac_new_val` 2171aee7dae4Smrg if test "$ac_old_val_w" != "$ac_new_val_w"; then 2172aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2173aee7dae4Smrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2174aee7dae4Smrg ac_cache_corrupted=: 2175aee7dae4Smrg else 2176aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2177aee7dae4Smrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2178aee7dae4Smrg eval $ac_var=\$ac_old_val 2179aee7dae4Smrg fi 2180aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2181aee7dae4Smrg$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2182aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2183aee7dae4Smrg$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2184ba0eab60Smacallan fi;; 2185ba0eab60Smacallan esac 2186ba0eab60Smacallan # Pass precious variables to config.status. 2187ba0eab60Smacallan if test "$ac_new_set" = set; then 2188ba0eab60Smacallan case $ac_new_val in 2189aee7dae4Smrg *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2190ba0eab60Smacallan *) ac_arg=$ac_var=$ac_new_val ;; 2191ba0eab60Smacallan esac 2192ba0eab60Smacallan case " $ac_configure_args " in 2193ba0eab60Smacallan *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2194aee7dae4Smrg *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2195ba0eab60Smacallan esac 2196ba0eab60Smacallan fi 2197ba0eab60Smacallandone 2198ba0eab60Smacallanif $ac_cache_corrupted; then 2199aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2200aee7dae4Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2201aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2202aee7dae4Smrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2203aee7dae4Smrg as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2204ba0eab60Smacallanfi 2205aee7dae4Smrg## -------------------- ## 2206aee7dae4Smrg## Main body of script. ## 2207aee7dae4Smrg## -------------------- ## 2208ba0eab60Smacallan 2209ba0eab60Smacallanac_ext=c 2210ba0eab60Smacallanac_cpp='$CPP $CPPFLAGS' 2211ba0eab60Smacallanac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2212ba0eab60Smacallanac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2213ba0eab60Smacallanac_compiler_gnu=$ac_cv_c_compiler_gnu 2214ba0eab60Smacallan 2215ba0eab60Smacallan 2216ba0eab60Smacallan 2217aee7dae4Smrgac_config_headers="$ac_config_headers config.h" 2218ba0eab60Smacallan 2219ba0eab60Smacallanac_aux_dir= 2220aee7dae4Smrgfor ac_dir in . "$srcdir"/.; do 2221aee7dae4Smrg if test -f "$ac_dir/install-sh"; then 2222ba0eab60Smacallan ac_aux_dir=$ac_dir 2223ba0eab60Smacallan ac_install_sh="$ac_aux_dir/install-sh -c" 2224ba0eab60Smacallan break 2225aee7dae4Smrg elif test -f "$ac_dir/install.sh"; then 2226ba0eab60Smacallan ac_aux_dir=$ac_dir 2227ba0eab60Smacallan ac_install_sh="$ac_aux_dir/install.sh -c" 2228ba0eab60Smacallan break 2229aee7dae4Smrg elif test -f "$ac_dir/shtool"; then 2230ba0eab60Smacallan ac_aux_dir=$ac_dir 2231ba0eab60Smacallan ac_install_sh="$ac_aux_dir/shtool install -c" 2232ba0eab60Smacallan break 2233ba0eab60Smacallan fi 2234ba0eab60Smacallandone 2235ba0eab60Smacallanif test -z "$ac_aux_dir"; then 2236aee7dae4Smrg as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 2237ba0eab60Smacallanfi 2238aee7dae4Smrg 2239aee7dae4Smrg# These three variables are undocumented and unsupported, 2240aee7dae4Smrg# and are intended to be withdrawn in a future Autoconf release. 2241aee7dae4Smrg# They can cause serious problems if a builder's source tree is in a directory 2242aee7dae4Smrg# whose full name contains unusual characters. 2243aee7dae4Smrgac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2244aee7dae4Smrgac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2245aee7dae4Smrgac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2246aee7dae4Smrg 2247ba0eab60Smacallan 2248ba0eab60Smacallan 2249aee7dae4Smrg# Initialize Automake 2250aee7dae4Smrgam__api_version='1.11' 2251aee7dae4Smrg 2252ba0eab60Smacallan# Find a good install program. We prefer a C program (faster), 2253ba0eab60Smacallan# so one script is as good as another. But avoid the broken or 2254ba0eab60Smacallan# incompatible versions: 2255ba0eab60Smacallan# SysV /etc/install, /usr/sbin/install 2256ba0eab60Smacallan# SunOS /usr/etc/install 2257ba0eab60Smacallan# IRIX /sbin/install 2258ba0eab60Smacallan# AIX /bin/install 2259ba0eab60Smacallan# AmigaOS /C/install, which installs bootblocks on floppy discs 2260ba0eab60Smacallan# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2261ba0eab60Smacallan# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2262ba0eab60Smacallan# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2263ba0eab60Smacallan# OS/2's system install, which has a completely different semantic 2264ba0eab60Smacallan# ./install, which can be erroneously created by make from ./install.sh. 2265aee7dae4Smrg# Reject install programs that cannot install multiple files. 2266aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2267aee7dae4Smrg$as_echo_n "checking for a BSD-compatible install... " >&6; } 2268ba0eab60Smacallanif test -z "$INSTALL"; then 2269aee7dae4Smrgif ${ac_cv_path_install+:} false; then : 2270aee7dae4Smrg $as_echo_n "(cached) " >&6 2271ba0eab60Smacallanelse 2272ba0eab60Smacallan as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2273ba0eab60Smacallanfor as_dir in $PATH 2274ba0eab60Smacallando 2275ba0eab60Smacallan IFS=$as_save_IFS 2276ba0eab60Smacallan test -z "$as_dir" && as_dir=. 2277aee7dae4Smrg # Account for people who put trailing slashes in PATH elements. 2278aee7dae4Smrgcase $as_dir/ in #(( 2279aee7dae4Smrg ./ | .// | /[cC]/* | \ 2280ba0eab60Smacallan /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2281aee7dae4Smrg ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2282ba0eab60Smacallan /usr/ucb/* ) ;; 2283ba0eab60Smacallan *) 2284ba0eab60Smacallan # OSF1 and SCO ODT 3.0 have their own names for install. 2285ba0eab60Smacallan # Don't use installbsd from OSF since it installs stuff as root 2286ba0eab60Smacallan # by default. 2287ba0eab60Smacallan for ac_prog in ginstall scoinst install; do 2288ba0eab60Smacallan for ac_exec_ext in '' $ac_executable_extensions; do 2289aee7dae4Smrg if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2290ba0eab60Smacallan if test $ac_prog = install && 2291ba0eab60Smacallan grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2292ba0eab60Smacallan # AIX install. It has an incompatible calling convention. 2293ba0eab60Smacallan : 2294ba0eab60Smacallan elif test $ac_prog = install && 2295ba0eab60Smacallan grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2296ba0eab60Smacallan # program-specific install script used by HP pwplus--don't use. 2297ba0eab60Smacallan : 2298ba0eab60Smacallan else 2299aee7dae4Smrg rm -rf conftest.one conftest.two conftest.dir 2300aee7dae4Smrg echo one > conftest.one 2301aee7dae4Smrg echo two > conftest.two 2302aee7dae4Smrg mkdir conftest.dir 2303aee7dae4Smrg if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2304aee7dae4Smrg test -s conftest.one && test -s conftest.two && 2305aee7dae4Smrg test -s conftest.dir/conftest.one && 2306aee7dae4Smrg test -s conftest.dir/conftest.two 2307aee7dae4Smrg then 2308aee7dae4Smrg ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2309aee7dae4Smrg break 3 2310aee7dae4Smrg fi 2311ba0eab60Smacallan fi 2312ba0eab60Smacallan fi 2313ba0eab60Smacallan done 2314ba0eab60Smacallan done 2315ba0eab60Smacallan ;; 2316ba0eab60Smacallanesac 2317ba0eab60Smacallan 2318aee7dae4Smrg done 2319aee7dae4SmrgIFS=$as_save_IFS 2320aee7dae4Smrg 2321aee7dae4Smrgrm -rf conftest.one conftest.two conftest.dir 2322ba0eab60Smacallan 2323ba0eab60Smacallanfi 2324ba0eab60Smacallan if test "${ac_cv_path_install+set}" = set; then 2325ba0eab60Smacallan INSTALL=$ac_cv_path_install 2326ba0eab60Smacallan else 2327aee7dae4Smrg # As a last resort, use the slow shell script. Don't cache a 2328aee7dae4Smrg # value for INSTALL within a source directory, because that will 2329ba0eab60Smacallan # break other packages using the cache if that directory is 2330aee7dae4Smrg # removed, or if the value is a relative name. 2331ba0eab60Smacallan INSTALL=$ac_install_sh 2332ba0eab60Smacallan fi 2333ba0eab60Smacallanfi 2334aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2335aee7dae4Smrg$as_echo "$INSTALL" >&6; } 2336ba0eab60Smacallan 2337ba0eab60Smacallan# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2338ba0eab60Smacallan# It thinks the first close brace ends the variable substitution. 2339ba0eab60Smacallantest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2340ba0eab60Smacallan 2341ba0eab60Smacallantest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2342ba0eab60Smacallan 2343ba0eab60Smacallantest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2344ba0eab60Smacallan 2345aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2346aee7dae4Smrg$as_echo_n "checking whether build environment is sane... " >&6; } 2347ba0eab60Smacallan# Just in case 2348ba0eab60Smacallansleep 1 2349ba0eab60Smacallanecho timestamp > conftest.file 2350aee7dae4Smrg# Reject unsafe characters in $srcdir or the absolute working directory 2351aee7dae4Smrg# name. Accept space and tab only in the latter. 2352aee7dae4Smrgam_lf=' 2353aee7dae4Smrg' 2354aee7dae4Smrgcase `pwd` in 2355aee7dae4Smrg *[\\\"\#\$\&\'\`$am_lf]*) 2356aee7dae4Smrg as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2357aee7dae4Smrgesac 2358aee7dae4Smrgcase $srcdir in 2359aee7dae4Smrg *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2360aee7dae4Smrg as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2361aee7dae4Smrgesac 2362aee7dae4Smrg 2363ba0eab60Smacallan# Do `set' in a subshell so we don't clobber the current shell's 2364ba0eab60Smacallan# arguments. Must try -L first in case configure is actually a 2365ba0eab60Smacallan# symlink; some systems play weird games with the mod time of symlinks 2366ba0eab60Smacallan# (eg FreeBSD returns the mod time of the symlink's containing 2367ba0eab60Smacallan# directory). 2368ba0eab60Smacallanif ( 2369aee7dae4Smrg set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2370ba0eab60Smacallan if test "$*" = "X"; then 2371ba0eab60Smacallan # -L didn't work. 2372aee7dae4Smrg set X `ls -t "$srcdir/configure" conftest.file` 2373ba0eab60Smacallan fi 2374ba0eab60Smacallan rm -f conftest.file 2375ba0eab60Smacallan if test "$*" != "X $srcdir/configure conftest.file" \ 2376ba0eab60Smacallan && test "$*" != "X conftest.file $srcdir/configure"; then 2377ba0eab60Smacallan 2378ba0eab60Smacallan # If neither matched, then we have a broken ls. This can happen 2379ba0eab60Smacallan # if, for instance, CONFIG_SHELL is bash and it inherits a 2380ba0eab60Smacallan # broken ls alias from the environment. This has actually 2381ba0eab60Smacallan # happened. Such a system could not be considered "sane". 2382aee7dae4Smrg as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2383aee7dae4Smrgalias in your environment" "$LINENO" 5 2384ba0eab60Smacallan fi 2385ba0eab60Smacallan 2386ba0eab60Smacallan test "$2" = conftest.file 2387ba0eab60Smacallan ) 2388ba0eab60Smacallanthen 2389ba0eab60Smacallan # Ok. 2390ba0eab60Smacallan : 2391ba0eab60Smacallanelse 2392aee7dae4Smrg as_fn_error $? "newly created file is older than distributed files! 2393aee7dae4SmrgCheck your system clock" "$LINENO" 5 2394ba0eab60Smacallanfi 2395aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2396aee7dae4Smrg$as_echo "yes" >&6; } 2397ba0eab60Smacallantest "$program_prefix" != NONE && 2398aee7dae4Smrg program_transform_name="s&^&$program_prefix&;$program_transform_name" 2399ba0eab60Smacallan# Use a double $ so make ignores it. 2400ba0eab60Smacallantest "$program_suffix" != NONE && 2401aee7dae4Smrg program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2402aee7dae4Smrg# Double any \ or $. 2403ba0eab60Smacallan# By default was `s,x,x', remove it if useless. 2404aee7dae4Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2405aee7dae4Smrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2406ba0eab60Smacallan 2407ba0eab60Smacallan# expand $ac_aux_dir to an absolute path 2408ba0eab60Smacallanam_aux_dir=`cd $ac_aux_dir && pwd` 2409ba0eab60Smacallan 2410aee7dae4Smrgif test x"${MISSING+set}" != xset; then 2411aee7dae4Smrg case $am_aux_dir in 2412aee7dae4Smrg *\ * | *\ *) 2413aee7dae4Smrg MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2414aee7dae4Smrg *) 2415aee7dae4Smrg MISSING="\${SHELL} $am_aux_dir/missing" ;; 2416aee7dae4Smrg esac 2417aee7dae4Smrgfi 2418ba0eab60Smacallan# Use eval to expand $SHELL 2419ba0eab60Smacallanif eval "$MISSING --run true"; then 2420ba0eab60Smacallan am_missing_run="$MISSING --run " 2421ba0eab60Smacallanelse 2422ba0eab60Smacallan am_missing_run= 2423aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2424aee7dae4Smrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2425ba0eab60Smacallanfi 2426ba0eab60Smacallan 2427aee7dae4Smrgif test x"${install_sh}" != xset; then 2428aee7dae4Smrg case $am_aux_dir in 2429aee7dae4Smrg *\ * | *\ *) 2430aee7dae4Smrg install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2431aee7dae4Smrg *) 2432aee7dae4Smrg install_sh="\${SHELL} $am_aux_dir/install-sh" 2433aee7dae4Smrg esac 2434aee7dae4Smrgfi 2435aee7dae4Smrg 2436aee7dae4Smrg# Installed binaries are usually stripped using `strip' when the user 2437aee7dae4Smrg# run `make install-strip'. However `strip' might not be the right 2438aee7dae4Smrg# tool to use in cross-compilation environments, therefore Automake 2439aee7dae4Smrg# will honor the `STRIP' environment variable to overrule this program. 2440aee7dae4Smrgif test "$cross_compiling" != no; then 2441aee7dae4Smrg if test -n "$ac_tool_prefix"; then 2442aee7dae4Smrg # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2443aee7dae4Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2 2444aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2445aee7dae4Smrg$as_echo_n "checking for $ac_word... " >&6; } 2446aee7dae4Smrgif ${ac_cv_prog_STRIP+:} false; then : 2447aee7dae4Smrg $as_echo_n "(cached) " >&6 2448ba0eab60Smacallanelse 2449aee7dae4Smrg if test -n "$STRIP"; then 2450aee7dae4Smrg ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2451ba0eab60Smacallanelse 2452ba0eab60Smacallanas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2453ba0eab60Smacallanfor as_dir in $PATH 2454ba0eab60Smacallando 2455ba0eab60Smacallan IFS=$as_save_IFS 2456ba0eab60Smacallan test -z "$as_dir" && as_dir=. 2457aee7dae4Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2458aee7dae4Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2459aee7dae4Smrg ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2460aee7dae4Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2461ba0eab60Smacallan break 2 2462ba0eab60Smacallan fi 2463ba0eab60Smacallandone 2464aee7dae4Smrg done 2465aee7dae4SmrgIFS=$as_save_IFS 2466ba0eab60Smacallan 2467ba0eab60Smacallanfi 2468ba0eab60Smacallanfi 2469aee7dae4SmrgSTRIP=$ac_cv_prog_STRIP 2470aee7dae4Smrgif test -n "$STRIP"; then 2471aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2472aee7dae4Smrg$as_echo "$STRIP" >&6; } 2473ba0eab60Smacallanelse 2474aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2475aee7dae4Smrg$as_echo "no" >&6; } 2476ba0eab60Smacallanfi 2477ba0eab60Smacallan 2478ba0eab60Smacallan 2479ba0eab60Smacallanfi 2480aee7dae4Smrgif test -z "$ac_cv_prog_STRIP"; then 2481aee7dae4Smrg ac_ct_STRIP=$STRIP 2482aee7dae4Smrg # Extract the first word of "strip", so it can be a program name with args. 2483aee7dae4Smrgset dummy strip; ac_word=$2 2484aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2485aee7dae4Smrg$as_echo_n "checking for $ac_word... " >&6; } 2486aee7dae4Smrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2487aee7dae4Smrg $as_echo_n "(cached) " >&6 2488aee7dae4Smrgelse 2489aee7dae4Smrg if test -n "$ac_ct_STRIP"; then 2490aee7dae4Smrg ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2491aee7dae4Smrgelse 2492aee7dae4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2493aee7dae4Smrgfor as_dir in $PATH 2494aee7dae4Smrgdo 2495aee7dae4Smrg IFS=$as_save_IFS 2496aee7dae4Smrg test -z "$as_dir" && as_dir=. 2497aee7dae4Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2498aee7dae4Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2499aee7dae4Smrg ac_cv_prog_ac_ct_STRIP="strip" 2500aee7dae4Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2501aee7dae4Smrg break 2 2502aee7dae4Smrg fi 2503aee7dae4Smrgdone 2504aee7dae4Smrg done 2505aee7dae4SmrgIFS=$as_save_IFS 2506aee7dae4Smrg 2507aee7dae4Smrgfi 2508aee7dae4Smrgfi 2509aee7dae4Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2510aee7dae4Smrgif test -n "$ac_ct_STRIP"; then 2511aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2512aee7dae4Smrg$as_echo "$ac_ct_STRIP" >&6; } 2513aee7dae4Smrgelse 2514aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2515aee7dae4Smrg$as_echo "no" >&6; } 2516aee7dae4Smrgfi 2517aee7dae4Smrg 2518aee7dae4Smrg if test "x$ac_ct_STRIP" = x; then 2519aee7dae4Smrg STRIP=":" 2520aee7dae4Smrg else 2521aee7dae4Smrg case $cross_compiling:$ac_tool_warned in 2522aee7dae4Smrgyes:) 2523aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2524aee7dae4Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2525aee7dae4Smrgac_tool_warned=yes ;; 2526aee7dae4Smrgesac 2527aee7dae4Smrg STRIP=$ac_ct_STRIP 2528aee7dae4Smrg fi 2529aee7dae4Smrgelse 2530aee7dae4Smrg STRIP="$ac_cv_prog_STRIP" 2531aee7dae4Smrgfi 2532aee7dae4Smrg 2533aee7dae4Smrgfi 2534aee7dae4SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2535aee7dae4Smrg 2536aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2537aee7dae4Smrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2538aee7dae4Smrgif test -z "$MKDIR_P"; then 2539aee7dae4Smrg if ${ac_cv_path_mkdir+:} false; then : 2540aee7dae4Smrg $as_echo_n "(cached) " >&6 2541aee7dae4Smrgelse 2542aee7dae4Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2543aee7dae4Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2544aee7dae4Smrgdo 2545aee7dae4Smrg IFS=$as_save_IFS 2546aee7dae4Smrg test -z "$as_dir" && as_dir=. 2547aee7dae4Smrg for ac_prog in mkdir gmkdir; do 2548aee7dae4Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2549aee7dae4Smrg as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2550aee7dae4Smrg case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2551aee7dae4Smrg 'mkdir (GNU coreutils) '* | \ 2552aee7dae4Smrg 'mkdir (coreutils) '* | \ 2553aee7dae4Smrg 'mkdir (fileutils) '4.1*) 2554aee7dae4Smrg ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2555aee7dae4Smrg break 3;; 2556aee7dae4Smrg esac 2557aee7dae4Smrg done 2558aee7dae4Smrg done 2559aee7dae4Smrg done 2560aee7dae4SmrgIFS=$as_save_IFS 2561aee7dae4Smrg 2562aee7dae4Smrgfi 2563aee7dae4Smrg 2564aee7dae4Smrg test -d ./--version && rmdir ./--version 2565aee7dae4Smrg if test "${ac_cv_path_mkdir+set}" = set; then 2566aee7dae4Smrg MKDIR_P="$ac_cv_path_mkdir -p" 2567aee7dae4Smrg else 2568aee7dae4Smrg # As a last resort, use the slow shell script. Don't cache a 2569aee7dae4Smrg # value for MKDIR_P within a source directory, because that will 2570aee7dae4Smrg # break other packages using the cache if that directory is 2571aee7dae4Smrg # removed, or if the value is a relative name. 2572aee7dae4Smrg MKDIR_P="$ac_install_sh -d" 2573aee7dae4Smrg fi 2574aee7dae4Smrgfi 2575aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2576aee7dae4Smrg$as_echo "$MKDIR_P" >&6; } 2577aee7dae4Smrg 2578aee7dae4Smrgmkdir_p="$MKDIR_P" 2579aee7dae4Smrgcase $mkdir_p in 2580aee7dae4Smrg [\\/$]* | ?:[\\/]*) ;; 2581aee7dae4Smrg */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2582aee7dae4Smrgesac 2583aee7dae4Smrg 2584aee7dae4Smrgfor ac_prog in gawk mawk nawk awk 2585aee7dae4Smrgdo 2586aee7dae4Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 2587aee7dae4Smrgset dummy $ac_prog; ac_word=$2 2588aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2589aee7dae4Smrg$as_echo_n "checking for $ac_word... " >&6; } 2590aee7dae4Smrgif ${ac_cv_prog_AWK+:} false; then : 2591aee7dae4Smrg $as_echo_n "(cached) " >&6 2592aee7dae4Smrgelse 2593aee7dae4Smrg if test -n "$AWK"; then 2594aee7dae4Smrg ac_cv_prog_AWK="$AWK" # Let the user override the test. 2595aee7dae4Smrgelse 2596aee7dae4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2597aee7dae4Smrgfor as_dir in $PATH 2598aee7dae4Smrgdo 2599aee7dae4Smrg IFS=$as_save_IFS 2600aee7dae4Smrg test -z "$as_dir" && as_dir=. 2601aee7dae4Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2602aee7dae4Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2603aee7dae4Smrg ac_cv_prog_AWK="$ac_prog" 2604aee7dae4Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2605aee7dae4Smrg break 2 2606aee7dae4Smrg fi 2607aee7dae4Smrgdone 2608aee7dae4Smrg done 2609aee7dae4SmrgIFS=$as_save_IFS 2610aee7dae4Smrg 2611aee7dae4Smrgfi 2612aee7dae4Smrgfi 2613aee7dae4SmrgAWK=$ac_cv_prog_AWK 2614aee7dae4Smrgif test -n "$AWK"; then 2615aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2616aee7dae4Smrg$as_echo "$AWK" >&6; } 2617aee7dae4Smrgelse 2618aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2619aee7dae4Smrg$as_echo "no" >&6; } 2620aee7dae4Smrgfi 2621aee7dae4Smrg 2622aee7dae4Smrg 2623aee7dae4Smrg test -n "$AWK" && break 2624aee7dae4Smrgdone 2625aee7dae4Smrg 2626aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2627aee7dae4Smrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2628aee7dae4Smrgset x ${MAKE-make} 2629aee7dae4Smrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2630aee7dae4Smrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2631aee7dae4Smrg $as_echo_n "(cached) " >&6 2632aee7dae4Smrgelse 2633aee7dae4Smrg cat >conftest.make <<\_ACEOF 2634aee7dae4SmrgSHELL = /bin/sh 2635aee7dae4Smrgall: 2636aee7dae4Smrg @echo '@@@%%%=$(MAKE)=@@@%%%' 2637aee7dae4Smrg_ACEOF 2638aee7dae4Smrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2639aee7dae4Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in 2640aee7dae4Smrg *@@@%%%=?*=@@@%%%*) 2641aee7dae4Smrg eval ac_cv_prog_make_${ac_make}_set=yes;; 2642aee7dae4Smrg *) 2643aee7dae4Smrg eval ac_cv_prog_make_${ac_make}_set=no;; 2644aee7dae4Smrgesac 2645aee7dae4Smrgrm -f conftest.make 2646aee7dae4Smrgfi 2647aee7dae4Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2648aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2649aee7dae4Smrg$as_echo "yes" >&6; } 2650aee7dae4Smrg SET_MAKE= 2651ba0eab60Smacallanelse 2652aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2653aee7dae4Smrg$as_echo "no" >&6; } 2654ba0eab60Smacallan SET_MAKE="MAKE=${MAKE-make}" 2655ba0eab60Smacallanfi 2656ba0eab60Smacallan 2657ba0eab60Smacallanrm -rf .tst 2>/dev/null 2658ba0eab60Smacallanmkdir .tst 2>/dev/null 2659ba0eab60Smacallanif test -d .tst; then 2660ba0eab60Smacallan am__leading_dot=. 2661ba0eab60Smacallanelse 2662ba0eab60Smacallan am__leading_dot=_ 2663ba0eab60Smacallanfi 2664ba0eab60Smacallanrmdir .tst 2>/dev/null 2665ba0eab60Smacallan 2666aee7dae4Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then 2667aee7dae4Smrg # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2668aee7dae4Smrg # is not polluted with repeated "-I." 2669aee7dae4Smrg am__isrc=' -I$(srcdir)' 2670aee7dae4Smrg # test to see if srcdir already configured 2671aee7dae4Smrg if test -f $srcdir/config.status; then 2672aee7dae4Smrg as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2673aee7dae4Smrg fi 2674ba0eab60Smacallanfi 2675ba0eab60Smacallan 2676ba0eab60Smacallan# test whether we have cygpath 2677ba0eab60Smacallanif test -z "$CYGPATH_W"; then 2678ba0eab60Smacallan if (cygpath --version) >/dev/null 2>/dev/null; then 2679ba0eab60Smacallan CYGPATH_W='cygpath -w' 2680ba0eab60Smacallan else 2681ba0eab60Smacallan CYGPATH_W=echo 2682ba0eab60Smacallan fi 2683ba0eab60Smacallanfi 2684ba0eab60Smacallan 2685ba0eab60Smacallan 2686ba0eab60Smacallan# Define the identity of the package. 2687ba0eab60Smacallan PACKAGE='xf86-video-newport' 2688aee7dae4Smrg VERSION='0.2.4' 2689ba0eab60Smacallan 2690ba0eab60Smacallan 2691ba0eab60Smacallancat >>confdefs.h <<_ACEOF 2692ba0eab60Smacallan#define PACKAGE "$PACKAGE" 2693ba0eab60Smacallan_ACEOF 2694ba0eab60Smacallan 2695ba0eab60Smacallan 2696ba0eab60Smacallancat >>confdefs.h <<_ACEOF 2697ba0eab60Smacallan#define VERSION "$VERSION" 2698ba0eab60Smacallan_ACEOF 2699ba0eab60Smacallan 2700ba0eab60Smacallan# Some tools Automake needs. 2701ba0eab60Smacallan 2702ba0eab60SmacallanACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2703ba0eab60Smacallan 2704ba0eab60Smacallan 2705ba0eab60SmacallanAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2706ba0eab60Smacallan 2707ba0eab60Smacallan 2708ba0eab60SmacallanAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2709ba0eab60Smacallan 2710ba0eab60Smacallan 2711ba0eab60SmacallanAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2712ba0eab60Smacallan 2713ba0eab60Smacallan 2714ba0eab60SmacallanMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2715ba0eab60Smacallan 2716ba0eab60Smacallan# We need awk for the "check" target. The system "awk" is bad on 2717ba0eab60Smacallan# some platforms. 2718aee7dae4Smrg# Always define AMTAR for backward compatibility. Yes, it's still used 2719aee7dae4Smrg# in the wild :-( We should find a proper way to deprecate it ... 2720aee7dae4SmrgAMTAR='$${TAR-tar}' 2721ba0eab60Smacallan 2722aee7dae4Smrgam__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2723ba0eab60Smacallan 2724ba0eab60Smacallan 2725ba0eab60Smacallan 2726ba0eab60Smacallan 2727ba0eab60Smacallan 2728ba0eab60Smacallan 2729aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2730aee7dae4Smrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2731aee7dae4Smrg # Check whether --enable-maintainer-mode was given. 2732aee7dae4Smrgif test "${enable_maintainer_mode+set}" = set; then : 2733aee7dae4Smrg enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2734ba0eab60Smacallanelse 2735ba0eab60Smacallan USE_MAINTAINER_MODE=no 2736aee7dae4Smrgfi 2737ba0eab60Smacallan 2738aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2739aee7dae4Smrg$as_echo "$USE_MAINTAINER_MODE" >&6; } 2740aee7dae4Smrg if test $USE_MAINTAINER_MODE = yes; then 2741ba0eab60Smacallan MAINTAINER_MODE_TRUE= 2742ba0eab60Smacallan MAINTAINER_MODE_FALSE='#' 2743ba0eab60Smacallanelse 2744ba0eab60Smacallan MAINTAINER_MODE_TRUE='#' 2745ba0eab60Smacallan MAINTAINER_MODE_FALSE= 2746ba0eab60Smacallanfi 2747ba0eab60Smacallan 2748ba0eab60Smacallan MAINT=$MAINTAINER_MODE_TRUE 2749ba0eab60Smacallan 2750ba0eab60Smacallan 2751ba0eab60Smacallan 2752aee7dae4Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2753aee7dae4Smrg 2754aee7dae4Smrg 2755ba0eab60Smacallan 2756ba0eab60Smacallan 2757ba0eab60Smacallan 2758ba0eab60Smacallan 2759ba0eab60Smacallan 2760ba0eab60Smacallan 2761ba0eab60Smacallan 2762ba0eab60Smacallan 2763ba0eab60Smacallan 2764ba0eab60SmacallanDEPDIR="${am__leading_dot}deps" 2765ba0eab60Smacallan 2766aee7dae4Smrgac_config_commands="$ac_config_commands depfiles" 2767ba0eab60Smacallan 2768ba0eab60Smacallan 2769ba0eab60Smacallanam_make=${MAKE-make} 2770ba0eab60Smacallancat > confinc << 'END' 2771ba0eab60Smacallanam__doit: 2772aee7dae4Smrg @echo this is the am__doit target 2773ba0eab60Smacallan.PHONY: am__doit 2774ba0eab60SmacallanEND 2775ba0eab60Smacallan# If we don't find an include directive, just comment out the code. 2776aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2777aee7dae4Smrg$as_echo_n "checking for style of include used by $am_make... " >&6; } 2778ba0eab60Smacallanam__include="#" 2779ba0eab60Smacallanam__quote= 2780ba0eab60Smacallan_am_result=none 2781ba0eab60Smacallan# First try GNU make style include. 2782ba0eab60Smacallanecho "include confinc" > confmf 2783aee7dae4Smrg# Ignore all kinds of additional output from `make'. 2784aee7dae4Smrgcase `$am_make -s -f confmf 2> /dev/null` in #( 2785aee7dae4Smrg*the\ am__doit\ target*) 2786aee7dae4Smrg am__include=include 2787aee7dae4Smrg am__quote= 2788aee7dae4Smrg _am_result=GNU 2789aee7dae4Smrg ;; 2790aee7dae4Smrgesac 2791ba0eab60Smacallan# Now try BSD make style include. 2792ba0eab60Smacallanif test "$am__include" = "#"; then 2793ba0eab60Smacallan echo '.include "confinc"' > confmf 2794aee7dae4Smrg case `$am_make -s -f confmf 2> /dev/null` in #( 2795aee7dae4Smrg *the\ am__doit\ target*) 2796aee7dae4Smrg am__include=.include 2797aee7dae4Smrg am__quote="\"" 2798aee7dae4Smrg _am_result=BSD 2799aee7dae4Smrg ;; 2800aee7dae4Smrg esac 2801ba0eab60Smacallanfi 2802ba0eab60Smacallan 2803ba0eab60Smacallan 2804aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2805aee7dae4Smrg$as_echo "$_am_result" >&6; } 2806ba0eab60Smacallanrm -f confinc confmf 2807ba0eab60Smacallan 2808aee7dae4Smrg# Check whether --enable-dependency-tracking was given. 2809aee7dae4Smrgif test "${enable_dependency_tracking+set}" = set; then : 2810aee7dae4Smrg enableval=$enable_dependency_tracking; 2811aee7dae4Smrgfi 2812ba0eab60Smacallan 2813ba0eab60Smacallanif test "x$enable_dependency_tracking" != xno; then 2814ba0eab60Smacallan am_depcomp="$ac_aux_dir/depcomp" 2815ba0eab60Smacallan AMDEPBACKSLASH='\' 2816aee7dae4Smrg am__nodep='_no' 2817ba0eab60Smacallanfi 2818aee7dae4Smrg if test "x$enable_dependency_tracking" != xno; then 2819ba0eab60Smacallan AMDEP_TRUE= 2820ba0eab60Smacallan AMDEP_FALSE='#' 2821ba0eab60Smacallanelse 2822ba0eab60Smacallan AMDEP_TRUE='#' 2823ba0eab60Smacallan AMDEP_FALSE= 2824ba0eab60Smacallanfi 2825ba0eab60Smacallan 2826ba0eab60Smacallan 2827ba0eab60Smacallanac_ext=c 2828ba0eab60Smacallanac_cpp='$CPP $CPPFLAGS' 2829ba0eab60Smacallanac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2830ba0eab60Smacallanac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2831ba0eab60Smacallanac_compiler_gnu=$ac_cv_c_compiler_gnu 2832ba0eab60Smacallanif test -n "$ac_tool_prefix"; then 2833ba0eab60Smacallan # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2834ba0eab60Smacallanset dummy ${ac_tool_prefix}gcc; ac_word=$2 2835aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2836aee7dae4Smrg$as_echo_n "checking for $ac_word... " >&6; } 2837aee7dae4Smrgif ${ac_cv_prog_CC+:} false; then : 2838aee7dae4Smrg $as_echo_n "(cached) " >&6 2839ba0eab60Smacallanelse 2840ba0eab60Smacallan if test -n "$CC"; then 2841ba0eab60Smacallan ac_cv_prog_CC="$CC" # Let the user override the test. 2842ba0eab60Smacallanelse 2843ba0eab60Smacallanas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2844ba0eab60Smacallanfor as_dir in $PATH 2845ba0eab60Smacallando 2846ba0eab60Smacallan IFS=$as_save_IFS 2847ba0eab60Smacallan test -z "$as_dir" && as_dir=. 2848aee7dae4Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2849aee7dae4Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2850ba0eab60Smacallan ac_cv_prog_CC="${ac_tool_prefix}gcc" 2851aee7dae4Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2852ba0eab60Smacallan break 2 2853ba0eab60Smacallan fi 2854ba0eab60Smacallandone 2855aee7dae4Smrg done 2856aee7dae4SmrgIFS=$as_save_IFS 2857ba0eab60Smacallan 2858ba0eab60Smacallanfi 2859ba0eab60Smacallanfi 2860ba0eab60SmacallanCC=$ac_cv_prog_CC 2861ba0eab60Smacallanif test -n "$CC"; then 2862aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2863aee7dae4Smrg$as_echo "$CC" >&6; } 2864ba0eab60Smacallanelse 2865aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2866aee7dae4Smrg$as_echo "no" >&6; } 2867ba0eab60Smacallanfi 2868ba0eab60Smacallan 2869aee7dae4Smrg 2870ba0eab60Smacallanfi 2871ba0eab60Smacallanif test -z "$ac_cv_prog_CC"; then 2872ba0eab60Smacallan ac_ct_CC=$CC 2873ba0eab60Smacallan # Extract the first word of "gcc", so it can be a program name with args. 2874ba0eab60Smacallanset dummy gcc; ac_word=$2 2875aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2876aee7dae4Smrg$as_echo_n "checking for $ac_word... " >&6; } 2877aee7dae4Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then : 2878aee7dae4Smrg $as_echo_n "(cached) " >&6 2879ba0eab60Smacallanelse 2880ba0eab60Smacallan if test -n "$ac_ct_CC"; then 2881ba0eab60Smacallan ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2882ba0eab60Smacallanelse 2883ba0eab60Smacallanas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2884ba0eab60Smacallanfor as_dir in $PATH 2885ba0eab60Smacallando 2886ba0eab60Smacallan IFS=$as_save_IFS 2887ba0eab60Smacallan test -z "$as_dir" && as_dir=. 2888aee7dae4Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2889aee7dae4Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2890ba0eab60Smacallan ac_cv_prog_ac_ct_CC="gcc" 2891aee7dae4Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2892ba0eab60Smacallan break 2 2893ba0eab60Smacallan fi 2894ba0eab60Smacallandone 2895aee7dae4Smrg done 2896aee7dae4SmrgIFS=$as_save_IFS 2897ba0eab60Smacallan 2898ba0eab60Smacallanfi 2899ba0eab60Smacallanfi 2900ba0eab60Smacallanac_ct_CC=$ac_cv_prog_ac_ct_CC 2901ba0eab60Smacallanif test -n "$ac_ct_CC"; then 2902aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2903aee7dae4Smrg$as_echo "$ac_ct_CC" >&6; } 2904ba0eab60Smacallanelse 2905aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2906aee7dae4Smrg$as_echo "no" >&6; } 2907ba0eab60Smacallanfi 2908ba0eab60Smacallan 2909aee7dae4Smrg if test "x$ac_ct_CC" = x; then 2910aee7dae4Smrg CC="" 2911aee7dae4Smrg else 2912aee7dae4Smrg case $cross_compiling:$ac_tool_warned in 2913aee7dae4Smrgyes:) 2914aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2915aee7dae4Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2916aee7dae4Smrgac_tool_warned=yes ;; 2917aee7dae4Smrgesac 2918aee7dae4Smrg CC=$ac_ct_CC 2919aee7dae4Smrg fi 2920ba0eab60Smacallanelse 2921ba0eab60Smacallan CC="$ac_cv_prog_CC" 2922ba0eab60Smacallanfi 2923ba0eab60Smacallan 2924ba0eab60Smacallanif test -z "$CC"; then 2925aee7dae4Smrg if test -n "$ac_tool_prefix"; then 2926aee7dae4Smrg # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2927ba0eab60Smacallanset dummy ${ac_tool_prefix}cc; ac_word=$2 2928aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2929aee7dae4Smrg$as_echo_n "checking for $ac_word... " >&6; } 2930aee7dae4Smrgif ${ac_cv_prog_CC+:} false; then : 2931aee7dae4Smrg $as_echo_n "(cached) " >&6 2932ba0eab60Smacallanelse 2933ba0eab60Smacallan if test -n "$CC"; then 2934ba0eab60Smacallan ac_cv_prog_CC="$CC" # Let the user override the test. 2935ba0eab60Smacallanelse 2936ba0eab60Smacallanas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2937ba0eab60Smacallanfor as_dir in $PATH 2938ba0eab60Smacallando 2939ba0eab60Smacallan IFS=$as_save_IFS 2940ba0eab60Smacallan test -z "$as_dir" && as_dir=. 2941aee7dae4Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2942aee7dae4Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2943ba0eab60Smacallan ac_cv_prog_CC="${ac_tool_prefix}cc" 2944aee7dae4Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2945ba0eab60Smacallan break 2 2946ba0eab60Smacallan fi 2947ba0eab60Smacallandone 2948aee7dae4Smrg done 2949aee7dae4SmrgIFS=$as_save_IFS 2950ba0eab60Smacallan 2951ba0eab60Smacallanfi 2952ba0eab60Smacallanfi 2953ba0eab60SmacallanCC=$ac_cv_prog_CC 2954ba0eab60Smacallanif test -n "$CC"; then 2955aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2956aee7dae4Smrg$as_echo "$CC" >&6; } 2957ba0eab60Smacallanelse 2958aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2959aee7dae4Smrg$as_echo "no" >&6; } 2960ba0eab60Smacallanfi 2961ba0eab60Smacallan 2962aee7dae4Smrg 2963aee7dae4Smrg fi 2964ba0eab60Smacallanfi 2965ba0eab60Smacallanif test -z "$CC"; then 2966ba0eab60Smacallan # Extract the first word of "cc", so it can be a program name with args. 2967ba0eab60Smacallanset dummy cc; ac_word=$2 2968aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2969aee7dae4Smrg$as_echo_n "checking for $ac_word... " >&6; } 2970aee7dae4Smrgif ${ac_cv_prog_CC+:} false; then : 2971aee7dae4Smrg $as_echo_n "(cached) " >&6 2972ba0eab60Smacallanelse 2973ba0eab60Smacallan if test -n "$CC"; then 2974ba0eab60Smacallan ac_cv_prog_CC="$CC" # Let the user override the test. 2975ba0eab60Smacallanelse 2976ba0eab60Smacallan ac_prog_rejected=no 2977ba0eab60Smacallanas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2978ba0eab60Smacallanfor as_dir in $PATH 2979ba0eab60Smacallando 2980ba0eab60Smacallan IFS=$as_save_IFS 2981ba0eab60Smacallan test -z "$as_dir" && as_dir=. 2982aee7dae4Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2983aee7dae4Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2984ba0eab60Smacallan if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2985ba0eab60Smacallan ac_prog_rejected=yes 2986ba0eab60Smacallan continue 2987ba0eab60Smacallan fi 2988ba0eab60Smacallan ac_cv_prog_CC="cc" 2989aee7dae4Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2990ba0eab60Smacallan break 2 2991ba0eab60Smacallan fi 2992ba0eab60Smacallandone 2993aee7dae4Smrg done 2994aee7dae4SmrgIFS=$as_save_IFS 2995ba0eab60Smacallan 2996ba0eab60Smacallanif test $ac_prog_rejected = yes; then 2997ba0eab60Smacallan # We found a bogon in the path, so make sure we never use it. 2998ba0eab60Smacallan set dummy $ac_cv_prog_CC 2999ba0eab60Smacallan shift 3000ba0eab60Smacallan if test $# != 0; then 3001ba0eab60Smacallan # We chose a different compiler from the bogus one. 3002ba0eab60Smacallan # However, it has the same basename, so the bogon will be chosen 3003ba0eab60Smacallan # first if we set CC to just the basename; use the full file name. 3004ba0eab60Smacallan shift 3005ba0eab60Smacallan ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3006ba0eab60Smacallan fi 3007ba0eab60Smacallanfi 3008ba0eab60Smacallanfi 3009ba0eab60Smacallanfi 3010ba0eab60SmacallanCC=$ac_cv_prog_CC 3011ba0eab60Smacallanif test -n "$CC"; then 3012aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3013aee7dae4Smrg$as_echo "$CC" >&6; } 3014ba0eab60Smacallanelse 3015aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3016aee7dae4Smrg$as_echo "no" >&6; } 3017ba0eab60Smacallanfi 3018ba0eab60Smacallan 3019aee7dae4Smrg 3020ba0eab60Smacallanfi 3021ba0eab60Smacallanif test -z "$CC"; then 3022ba0eab60Smacallan if test -n "$ac_tool_prefix"; then 3023aee7dae4Smrg for ac_prog in cl.exe 3024ba0eab60Smacallan do 3025ba0eab60Smacallan # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3026ba0eab60Smacallanset dummy $ac_tool_prefix$ac_prog; ac_word=$2 3027aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3028aee7dae4Smrg$as_echo_n "checking for $ac_word... " >&6; } 3029aee7dae4Smrgif ${ac_cv_prog_CC+:} false; then : 3030aee7dae4Smrg $as_echo_n "(cached) " >&6 3031ba0eab60Smacallanelse 3032ba0eab60Smacallan if test -n "$CC"; then 3033ba0eab60Smacallan ac_cv_prog_CC="$CC" # Let the user override the test. 3034ba0eab60Smacallanelse 3035ba0eab60Smacallanas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3036ba0eab60Smacallanfor as_dir in $PATH 3037ba0eab60Smacallando 3038ba0eab60Smacallan IFS=$as_save_IFS 3039ba0eab60Smacallan test -z "$as_dir" && as_dir=. 3040aee7dae4Smrg for ac_exec_ext in '' $ac_executable_extensions; do 3041aee7dae4Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3042ba0eab60Smacallan ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3043aee7dae4Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3044ba0eab60Smacallan break 2 3045ba0eab60Smacallan fi 3046ba0eab60Smacallandone 3047aee7dae4Smrg done 3048aee7dae4SmrgIFS=$as_save_IFS 3049ba0eab60Smacallan 3050ba0eab60Smacallanfi 3051ba0eab60Smacallanfi 3052ba0eab60SmacallanCC=$ac_cv_prog_CC 3053ba0eab60Smacallanif test -n "$CC"; then 3054aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3055aee7dae4Smrg$as_echo "$CC" >&6; } 3056ba0eab60Smacallanelse 3057aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3058aee7dae4Smrg$as_echo "no" >&6; } 3059ba0eab60Smacallanfi 3060ba0eab60Smacallan 3061aee7dae4Smrg 3062ba0eab60Smacallan test -n "$CC" && break 3063ba0eab60Smacallan done 3064ba0eab60Smacallanfi 3065ba0eab60Smacallanif test -z "$CC"; then 3066ba0eab60Smacallan ac_ct_CC=$CC 3067aee7dae4Smrg for ac_prog in cl.exe 3068ba0eab60Smacallando 3069ba0eab60Smacallan # Extract the first word of "$ac_prog", so it can be a program name with args. 3070ba0eab60Smacallanset dummy $ac_prog; ac_word=$2 3071aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3072aee7dae4Smrg$as_echo_n "checking for $ac_word... " >&6; } 3073aee7dae4Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then : 3074aee7dae4Smrg $as_echo_n "(cached) " >&6 3075ba0eab60Smacallanelse 3076ba0eab60Smacallan if test -n "$ac_ct_CC"; then 3077ba0eab60Smacallan ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3078ba0eab60Smacallanelse 3079ba0eab60Smacallanas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3080ba0eab60Smacallanfor as_dir in $PATH 3081ba0eab60Smacallando 3082ba0eab60Smacallan IFS=$as_save_IFS 3083ba0eab60Smacallan test -z "$as_dir" && as_dir=. 3084aee7dae4Smrg for ac_exec_ext in '' $ac_executable_extensions; do 3085aee7dae4Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3086ba0eab60Smacallan ac_cv_prog_ac_ct_CC="$ac_prog" 3087aee7dae4Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3088ba0eab60Smacallan break 2 3089ba0eab60Smacallan fi 3090ba0eab60Smacallandone 3091aee7dae4Smrg done 3092aee7dae4SmrgIFS=$as_save_IFS 3093ba0eab60Smacallan 3094ba0eab60Smacallanfi 3095ba0eab60Smacallanfi 3096ba0eab60Smacallanac_ct_CC=$ac_cv_prog_ac_ct_CC 3097ba0eab60Smacallanif test -n "$ac_ct_CC"; then 3098aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3099aee7dae4Smrg$as_echo "$ac_ct_CC" >&6; } 3100ba0eab60Smacallanelse 3101aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3102aee7dae4Smrg$as_echo "no" >&6; } 3103ba0eab60Smacallanfi 3104ba0eab60Smacallan 3105aee7dae4Smrg 3106ba0eab60Smacallan test -n "$ac_ct_CC" && break 3107ba0eab60Smacallandone 3108ba0eab60Smacallan 3109aee7dae4Smrg if test "x$ac_ct_CC" = x; then 3110aee7dae4Smrg CC="" 3111aee7dae4Smrg else 3112aee7dae4Smrg case $cross_compiling:$ac_tool_warned in 3113aee7dae4Smrgyes:) 3114aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3115aee7dae4Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3116aee7dae4Smrgac_tool_warned=yes ;; 3117aee7dae4Smrgesac 3118aee7dae4Smrg CC=$ac_ct_CC 3119aee7dae4Smrg fi 3120ba0eab60Smacallanfi 3121ba0eab60Smacallan 3122ba0eab60Smacallanfi 3123ba0eab60Smacallan 3124ba0eab60Smacallan 3125aee7dae4Smrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3126aee7dae4Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3127aee7dae4Smrgas_fn_error $? "no acceptable C compiler found in \$PATH 3128aee7dae4SmrgSee \`config.log' for more details" "$LINENO" 5; } 3129ba0eab60Smacallan 3130ba0eab60Smacallan# Provide some information about the compiler. 3131aee7dae4Smrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3132aee7dae4Smrgset X $ac_compile 3133aee7dae4Smrgac_compiler=$2 3134aee7dae4Smrgfor ac_option in --version -v -V -qversion; do 3135aee7dae4Smrg { { ac_try="$ac_compiler $ac_option >&5" 3136aee7dae4Smrgcase "(($ac_try" in 3137aee7dae4Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3138aee7dae4Smrg *) ac_try_echo=$ac_try;; 3139aee7dae4Smrgesac 3140aee7dae4Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3141aee7dae4Smrg$as_echo "$ac_try_echo"; } >&5 3142aee7dae4Smrg (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3143ba0eab60Smacallan ac_status=$? 3144aee7dae4Smrg if test -s conftest.err; then 3145aee7dae4Smrg sed '10a\ 3146aee7dae4Smrg... rest of stderr output deleted ... 3147aee7dae4Smrg 10q' conftest.err >conftest.er1 3148aee7dae4Smrg cat conftest.er1 >&5 3149aee7dae4Smrg fi 3150aee7dae4Smrg rm -f conftest.er1 conftest.err 3151aee7dae4Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3152aee7dae4Smrg test $ac_status = 0; } 3153aee7dae4Smrgdone 3154ba0eab60Smacallan 3155aee7dae4Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3156ba0eab60Smacallan/* end confdefs.h. */ 3157ba0eab60Smacallan 3158ba0eab60Smacallanint 3159ba0eab60Smacallanmain () 3160ba0eab60Smacallan{ 3161ba0eab60Smacallan 3162ba0eab60Smacallan ; 3163ba0eab60Smacallan return 0; 3164ba0eab60Smacallan} 3165ba0eab60Smacallan_ACEOF 3166ba0eab60Smacallanac_clean_files_save=$ac_clean_files 3167aee7dae4Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3168ba0eab60Smacallan# Try to create an executable without -o first, disregard a.out. 3169ba0eab60Smacallan# It will help us diagnose broken compilers, and finding out an intuition 3170ba0eab60Smacallan# of exeext. 3171aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3172aee7dae4Smrg$as_echo_n "checking whether the C compiler works... " >&6; } 3173aee7dae4Smrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3174aee7dae4Smrg 3175aee7dae4Smrg# The possible output files: 3176aee7dae4Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3177aee7dae4Smrg 3178aee7dae4Smrgac_rmfiles= 3179aee7dae4Smrgfor ac_file in $ac_files 3180aee7dae4Smrgdo 3181aee7dae4Smrg case $ac_file in 3182aee7dae4Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3183aee7dae4Smrg * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3184aee7dae4Smrg esac 3185aee7dae4Smrgdone 3186aee7dae4Smrgrm -f $ac_rmfiles 3187aee7dae4Smrg 3188aee7dae4Smrgif { { ac_try="$ac_link_default" 3189aee7dae4Smrgcase "(($ac_try" in 3190aee7dae4Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3191aee7dae4Smrg *) ac_try_echo=$ac_try;; 3192aee7dae4Smrgesac 3193aee7dae4Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3194aee7dae4Smrg$as_echo "$ac_try_echo"; } >&5 3195aee7dae4Smrg (eval "$ac_link_default") 2>&5 3196ba0eab60Smacallan ac_status=$? 3197aee7dae4Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3198aee7dae4Smrg test $ac_status = 0; }; then : 3199aee7dae4Smrg # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3200aee7dae4Smrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3201aee7dae4Smrg# in a Makefile. We should not override ac_cv_exeext if it was cached, 3202aee7dae4Smrg# so that the user can short-circuit this test for compilers unknown to 3203aee7dae4Smrg# Autoconf. 3204aee7dae4Smrgfor ac_file in $ac_files '' 3205ba0eab60Smacallando 3206ba0eab60Smacallan test -f "$ac_file" || continue 3207ba0eab60Smacallan case $ac_file in 3208aee7dae4Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3209ba0eab60Smacallan ;; 3210ba0eab60Smacallan [ab].out ) 3211ba0eab60Smacallan # We found the default executable, but exeext='' is most 3212ba0eab60Smacallan # certainly right. 3213ba0eab60Smacallan break;; 3214ba0eab60Smacallan *.* ) 3215aee7dae4Smrg if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3216aee7dae4Smrg then :; else 3217aee7dae4Smrg ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3218aee7dae4Smrg fi 3219aee7dae4Smrg # We set ac_cv_exeext here because the later test for it is not 3220aee7dae4Smrg # safe: cross compilers may not add the suffix if given an `-o' 3221aee7dae4Smrg # argument, so we may need to know it at that point already. 3222aee7dae4Smrg # Even if this section looks crufty: it has the advantage of 3223aee7dae4Smrg # actually working. 3224ba0eab60Smacallan break;; 3225ba0eab60Smacallan * ) 3226ba0eab60Smacallan break;; 3227ba0eab60Smacallan esac 3228ba0eab60Smacallandone 3229aee7dae4Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext= 3230aee7dae4Smrg 3231ba0eab60Smacallanelse 3232aee7dae4Smrg ac_file='' 3233aee7dae4Smrgfi 3234aee7dae4Smrgif test -z "$ac_file"; then : 3235aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3236aee7dae4Smrg$as_echo "no" >&6; } 3237aee7dae4Smrg$as_echo "$as_me: failed program was:" >&5 3238ba0eab60Smacallansed 's/^/| /' conftest.$ac_ext >&5 3239ba0eab60Smacallan 3240aee7dae4Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3241aee7dae4Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3242aee7dae4Smrgas_fn_error 77 "C compiler cannot create executables 3243aee7dae4SmrgSee \`config.log' for more details" "$LINENO" 5; } 3244aee7dae4Smrgelse 3245aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3246aee7dae4Smrg$as_echo "yes" >&6; } 3247ba0eab60Smacallanfi 3248aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3249aee7dae4Smrg$as_echo_n "checking for C compiler default output file name... " >&6; } 3250aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3251aee7dae4Smrg$as_echo "$ac_file" >&6; } 3252ba0eab60Smacallanac_exeext=$ac_cv_exeext 3253ba0eab60Smacallan 3254aee7dae4Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3255ba0eab60Smacallanac_clean_files=$ac_clean_files_save 3256aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3257aee7dae4Smrg$as_echo_n "checking for suffix of executables... " >&6; } 3258aee7dae4Smrgif { { ac_try="$ac_link" 3259aee7dae4Smrgcase "(($ac_try" in 3260aee7dae4Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3261aee7dae4Smrg *) ac_try_echo=$ac_try;; 3262aee7dae4Smrgesac 3263aee7dae4Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3264aee7dae4Smrg$as_echo "$ac_try_echo"; } >&5 3265aee7dae4Smrg (eval "$ac_link") 2>&5 3266ba0eab60Smacallan ac_status=$? 3267aee7dae4Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3268aee7dae4Smrg test $ac_status = 0; }; then : 3269ba0eab60Smacallan # If both `conftest.exe' and `conftest' are `present' (well, observable) 3270ba0eab60Smacallan# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3271ba0eab60Smacallan# work properly (i.e., refer to `conftest.exe'), while it won't with 3272ba0eab60Smacallan# `rm'. 3273ba0eab60Smacallanfor ac_file in conftest.exe conftest conftest.*; do 3274ba0eab60Smacallan test -f "$ac_file" || continue 3275ba0eab60Smacallan case $ac_file in 3276aee7dae4Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3277ba0eab60Smacallan *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3278ba0eab60Smacallan break;; 3279ba0eab60Smacallan * ) break;; 3280ba0eab60Smacallan esac 3281ba0eab60Smacallandone 3282ba0eab60Smacallanelse 3283aee7dae4Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3284aee7dae4Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3285aee7dae4Smrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link 3286aee7dae4SmrgSee \`config.log' for more details" "$LINENO" 5; } 3287ba0eab60Smacallanfi 3288aee7dae4Smrgrm -f conftest conftest$ac_cv_exeext 3289aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3290aee7dae4Smrg$as_echo "$ac_cv_exeext" >&6; } 3291ba0eab60Smacallan 3292ba0eab60Smacallanrm -f conftest.$ac_ext 3293ba0eab60SmacallanEXEEXT=$ac_cv_exeext 3294ba0eab60Smacallanac_exeext=$EXEEXT 3295aee7dae4Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3296aee7dae4Smrg/* end confdefs.h. */ 3297aee7dae4Smrg#include <stdio.h> 3298aee7dae4Smrgint 3299aee7dae4Smrgmain () 3300aee7dae4Smrg{ 3301aee7dae4SmrgFILE *f = fopen ("conftest.out", "w"); 3302aee7dae4Smrg return ferror (f) || fclose (f) != 0; 3303aee7dae4Smrg 3304aee7dae4Smrg ; 3305aee7dae4Smrg return 0; 3306aee7dae4Smrg} 3307ba0eab60Smacallan_ACEOF 3308aee7dae4Smrgac_clean_files="$ac_clean_files conftest.out" 3309aee7dae4Smrg# Check that the compiler produces executables we can run. If not, either 3310aee7dae4Smrg# the compiler is broken, or we cross compile. 3311aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3312aee7dae4Smrg$as_echo_n "checking whether we are cross compiling... " >&6; } 3313aee7dae4Smrgif test "$cross_compiling" != yes; then 3314aee7dae4Smrg { { ac_try="$ac_link" 3315aee7dae4Smrgcase "(($ac_try" in 3316aee7dae4Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3317aee7dae4Smrg *) ac_try_echo=$ac_try;; 3318aee7dae4Smrgesac 3319aee7dae4Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3320aee7dae4Smrg$as_echo "$ac_try_echo"; } >&5 3321aee7dae4Smrg (eval "$ac_link") 2>&5 3322aee7dae4Smrg ac_status=$? 3323aee7dae4Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3324aee7dae4Smrg test $ac_status = 0; } 3325aee7dae4Smrg if { ac_try='./conftest$ac_cv_exeext' 3326aee7dae4Smrg { { case "(($ac_try" in 3327aee7dae4Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3328aee7dae4Smrg *) ac_try_echo=$ac_try;; 3329aee7dae4Smrgesac 3330aee7dae4Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3331aee7dae4Smrg$as_echo "$ac_try_echo"; } >&5 3332aee7dae4Smrg (eval "$ac_try") 2>&5 3333aee7dae4Smrg ac_status=$? 3334aee7dae4Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3335aee7dae4Smrg test $ac_status = 0; }; }; then 3336aee7dae4Smrg cross_compiling=no 3337aee7dae4Smrg else 3338aee7dae4Smrg if test "$cross_compiling" = maybe; then 3339aee7dae4Smrg cross_compiling=yes 3340aee7dae4Smrg else 3341aee7dae4Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3342aee7dae4Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3343aee7dae4Smrgas_fn_error $? "cannot run C compiled programs. 3344aee7dae4SmrgIf you meant to cross compile, use \`--host'. 3345aee7dae4SmrgSee \`config.log' for more details" "$LINENO" 5; } 3346aee7dae4Smrg fi 3347aee7dae4Smrg fi 3348aee7dae4Smrgfi 3349aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3350aee7dae4Smrg$as_echo "$cross_compiling" >&6; } 3351aee7dae4Smrg 3352aee7dae4Smrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3353aee7dae4Smrgac_clean_files=$ac_clean_files_save 3354aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3355aee7dae4Smrg$as_echo_n "checking for suffix of object files... " >&6; } 3356aee7dae4Smrgif ${ac_cv_objext+:} false; then : 3357aee7dae4Smrg $as_echo_n "(cached) " >&6 3358aee7dae4Smrgelse 3359aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3360ba0eab60Smacallan/* end confdefs.h. */ 3361ba0eab60Smacallan 3362ba0eab60Smacallanint 3363ba0eab60Smacallanmain () 3364ba0eab60Smacallan{ 3365ba0eab60Smacallan 3366ba0eab60Smacallan ; 3367ba0eab60Smacallan return 0; 3368ba0eab60Smacallan} 3369ba0eab60Smacallan_ACEOF 3370ba0eab60Smacallanrm -f conftest.o conftest.obj 3371aee7dae4Smrgif { { ac_try="$ac_compile" 3372aee7dae4Smrgcase "(($ac_try" in 3373aee7dae4Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3374aee7dae4Smrg *) ac_try_echo=$ac_try;; 3375aee7dae4Smrgesac 3376aee7dae4Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3377aee7dae4Smrg$as_echo "$ac_try_echo"; } >&5 3378aee7dae4Smrg (eval "$ac_compile") 2>&5 3379ba0eab60Smacallan ac_status=$? 3380aee7dae4Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3381aee7dae4Smrg test $ac_status = 0; }; then : 3382aee7dae4Smrg for ac_file in conftest.o conftest.obj conftest.*; do 3383aee7dae4Smrg test -f "$ac_file" || continue; 3384ba0eab60Smacallan case $ac_file in 3385aee7dae4Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3386ba0eab60Smacallan *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3387ba0eab60Smacallan break;; 3388ba0eab60Smacallan esac 3389ba0eab60Smacallandone 3390ba0eab60Smacallanelse 3391aee7dae4Smrg $as_echo "$as_me: failed program was:" >&5 3392ba0eab60Smacallansed 's/^/| /' conftest.$ac_ext >&5 3393ba0eab60Smacallan 3394aee7dae4Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3395aee7dae4Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3396aee7dae4Smrgas_fn_error $? "cannot compute suffix of object files: cannot compile 3397aee7dae4SmrgSee \`config.log' for more details" "$LINENO" 5; } 3398ba0eab60Smacallanfi 3399ba0eab60Smacallanrm -f conftest.$ac_cv_objext conftest.$ac_ext 3400ba0eab60Smacallanfi 3401aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3402aee7dae4Smrg$as_echo "$ac_cv_objext" >&6; } 3403ba0eab60SmacallanOBJEXT=$ac_cv_objext 3404ba0eab60Smacallanac_objext=$OBJEXT 3405aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3406aee7dae4Smrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3407aee7dae4Smrgif ${ac_cv_c_compiler_gnu+:} false; then : 3408aee7dae4Smrg $as_echo_n "(cached) " >&6 3409ba0eab60Smacallanelse 3410aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3411ba0eab60Smacallan/* end confdefs.h. */ 3412ba0eab60Smacallan 3413ba0eab60Smacallanint 3414ba0eab60Smacallanmain () 3415ba0eab60Smacallan{ 3416ba0eab60Smacallan#ifndef __GNUC__ 3417ba0eab60Smacallan choke me 3418ba0eab60Smacallan#endif 3419ba0eab60Smacallan 3420ba0eab60Smacallan ; 3421ba0eab60Smacallan return 0; 3422ba0eab60Smacallan} 3423ba0eab60Smacallan_ACEOF 3424aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 3425ba0eab60Smacallan ac_compiler_gnu=yes 3426ba0eab60Smacallanelse 3427aee7dae4Smrg ac_compiler_gnu=no 3428ba0eab60Smacallanfi 3429aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3430ba0eab60Smacallanac_cv_c_compiler_gnu=$ac_compiler_gnu 3431ba0eab60Smacallan 3432ba0eab60Smacallanfi 3433aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3434aee7dae4Smrg$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3435aee7dae4Smrgif test $ac_compiler_gnu = yes; then 3436aee7dae4Smrg GCC=yes 3437aee7dae4Smrgelse 3438aee7dae4Smrg GCC= 3439aee7dae4Smrgfi 3440ba0eab60Smacallanac_test_CFLAGS=${CFLAGS+set} 3441ba0eab60Smacallanac_save_CFLAGS=$CFLAGS 3442aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3443aee7dae4Smrg$as_echo_n "checking whether $CC accepts -g... " >&6; } 3444aee7dae4Smrgif ${ac_cv_prog_cc_g+:} false; then : 3445aee7dae4Smrg $as_echo_n "(cached) " >&6 3446aee7dae4Smrgelse 3447aee7dae4Smrg ac_save_c_werror_flag=$ac_c_werror_flag 3448aee7dae4Smrg ac_c_werror_flag=yes 3449aee7dae4Smrg ac_cv_prog_cc_g=no 3450aee7dae4Smrg CFLAGS="-g" 3451aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3452ba0eab60Smacallan/* end confdefs.h. */ 3453ba0eab60Smacallan 3454ba0eab60Smacallanint 3455ba0eab60Smacallanmain () 3456ba0eab60Smacallan{ 3457ba0eab60Smacallan 3458ba0eab60Smacallan ; 3459ba0eab60Smacallan return 0; 3460ba0eab60Smacallan} 3461ba0eab60Smacallan_ACEOF 3462aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 3463ba0eab60Smacallan ac_cv_prog_cc_g=yes 3464ba0eab60Smacallanelse 3465aee7dae4Smrg CFLAGS="" 3466aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3467aee7dae4Smrg/* end confdefs.h. */ 3468aee7dae4Smrg 3469aee7dae4Smrgint 3470aee7dae4Smrgmain () 3471aee7dae4Smrg{ 3472aee7dae4Smrg 3473aee7dae4Smrg ; 3474aee7dae4Smrg return 0; 3475aee7dae4Smrg} 3476aee7dae4Smrg_ACEOF 3477aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 3478aee7dae4Smrg 3479aee7dae4Smrgelse 3480aee7dae4Smrg ac_c_werror_flag=$ac_save_c_werror_flag 3481aee7dae4Smrg CFLAGS="-g" 3482aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3483aee7dae4Smrg/* end confdefs.h. */ 3484aee7dae4Smrg 3485aee7dae4Smrgint 3486aee7dae4Smrgmain () 3487aee7dae4Smrg{ 3488ba0eab60Smacallan 3489aee7dae4Smrg ; 3490aee7dae4Smrg return 0; 3491aee7dae4Smrg} 3492aee7dae4Smrg_ACEOF 3493aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 3494aee7dae4Smrg ac_cv_prog_cc_g=yes 3495aee7dae4Smrgfi 3496aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3497aee7dae4Smrgfi 3498aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3499ba0eab60Smacallanfi 3500aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3501aee7dae4Smrg ac_c_werror_flag=$ac_save_c_werror_flag 3502ba0eab60Smacallanfi 3503aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3504aee7dae4Smrg$as_echo "$ac_cv_prog_cc_g" >&6; } 3505ba0eab60Smacallanif test "$ac_test_CFLAGS" = set; then 3506ba0eab60Smacallan CFLAGS=$ac_save_CFLAGS 3507ba0eab60Smacallanelif test $ac_cv_prog_cc_g = yes; then 3508ba0eab60Smacallan if test "$GCC" = yes; then 3509ba0eab60Smacallan CFLAGS="-g -O2" 3510ba0eab60Smacallan else 3511ba0eab60Smacallan CFLAGS="-g" 3512ba0eab60Smacallan fi 3513ba0eab60Smacallanelse 3514ba0eab60Smacallan if test "$GCC" = yes; then 3515ba0eab60Smacallan CFLAGS="-O2" 3516ba0eab60Smacallan else 3517ba0eab60Smacallan CFLAGS= 3518ba0eab60Smacallan fi 3519ba0eab60Smacallanfi 3520aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3521aee7dae4Smrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3522aee7dae4Smrgif ${ac_cv_prog_cc_c89+:} false; then : 3523aee7dae4Smrg $as_echo_n "(cached) " >&6 3524ba0eab60Smacallanelse 3525aee7dae4Smrg ac_cv_prog_cc_c89=no 3526ba0eab60Smacallanac_save_CC=$CC 3527aee7dae4Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3528ba0eab60Smacallan/* end confdefs.h. */ 3529ba0eab60Smacallan#include <stdarg.h> 3530ba0eab60Smacallan#include <stdio.h> 3531aee7dae4Smrgstruct stat; 3532ba0eab60Smacallan/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3533ba0eab60Smacallanstruct buf { int x; }; 3534ba0eab60SmacallanFILE * (*rcsopen) (struct buf *, struct stat *, int); 3535ba0eab60Smacallanstatic char *e (p, i) 3536ba0eab60Smacallan char **p; 3537ba0eab60Smacallan int i; 3538ba0eab60Smacallan{ 3539ba0eab60Smacallan return p[i]; 3540ba0eab60Smacallan} 3541ba0eab60Smacallanstatic char *f (char * (*g) (char **, int), char **p, ...) 3542ba0eab60Smacallan{ 3543ba0eab60Smacallan char *s; 3544ba0eab60Smacallan va_list v; 3545ba0eab60Smacallan va_start (v,p); 3546ba0eab60Smacallan s = g (p, va_arg (v,int)); 3547ba0eab60Smacallan va_end (v); 3548ba0eab60Smacallan return s; 3549ba0eab60Smacallan} 3550ba0eab60Smacallan 3551ba0eab60Smacallan/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3552ba0eab60Smacallan function prototypes and stuff, but not '\xHH' hex character constants. 3553ba0eab60Smacallan These don't provoke an error unfortunately, instead are silently treated 3554aee7dae4Smrg as 'x'. The following induces an error, until -std is added to get 3555ba0eab60Smacallan proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3556ba0eab60Smacallan array size at least. It's necessary to write '\x00'==0 to get something 3557aee7dae4Smrg that's true only with -std. */ 3558ba0eab60Smacallanint osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3559ba0eab60Smacallan 3560aee7dae4Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3561aee7dae4Smrg inside strings and character constants. */ 3562aee7dae4Smrg#define FOO(x) 'x' 3563aee7dae4Smrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3564aee7dae4Smrg 3565ba0eab60Smacallanint test (int i, double x); 3566ba0eab60Smacallanstruct s1 {int (*f) (int a);}; 3567ba0eab60Smacallanstruct s2 {int (*f) (double a);}; 3568ba0eab60Smacallanint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3569ba0eab60Smacallanint argc; 3570ba0eab60Smacallanchar **argv; 3571ba0eab60Smacallanint 3572ba0eab60Smacallanmain () 3573ba0eab60Smacallan{ 3574ba0eab60Smacallanreturn f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3575ba0eab60Smacallan ; 3576ba0eab60Smacallan return 0; 3577ba0eab60Smacallan} 3578ba0eab60Smacallan_ACEOF 3579aee7dae4Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3580aee7dae4Smrg -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3581ba0eab60Smacallando 3582ba0eab60Smacallan CC="$ac_save_CC $ac_arg" 3583aee7dae4Smrg if ac_fn_c_try_compile "$LINENO"; then : 3584aee7dae4Smrg ac_cv_prog_cc_c89=$ac_arg 3585ba0eab60Smacallanfi 3586aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext 3587aee7dae4Smrg test "x$ac_cv_prog_cc_c89" != "xno" && break 3588ba0eab60Smacallandone 3589aee7dae4Smrgrm -f conftest.$ac_ext 3590ba0eab60SmacallanCC=$ac_save_CC 3591ba0eab60Smacallan 3592ba0eab60Smacallanfi 3593aee7dae4Smrg# AC_CACHE_VAL 3594aee7dae4Smrgcase "x$ac_cv_prog_cc_c89" in 3595aee7dae4Smrg x) 3596aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3597aee7dae4Smrg$as_echo "none needed" >&6; } ;; 3598aee7dae4Smrg xno) 3599aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3600aee7dae4Smrg$as_echo "unsupported" >&6; } ;; 3601ba0eab60Smacallan *) 3602aee7dae4Smrg CC="$CC $ac_cv_prog_cc_c89" 3603aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3604aee7dae4Smrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3605ba0eab60Smacallanesac 3606aee7dae4Smrgif test "x$ac_cv_prog_cc_c89" != xno; then : 3607ba0eab60Smacallan 3608ba0eab60Smacallanfi 3609ba0eab60Smacallan 3610ba0eab60Smacallanac_ext=c 3611ba0eab60Smacallanac_cpp='$CPP $CPPFLAGS' 3612ba0eab60Smacallanac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3613ba0eab60Smacallanac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3614ba0eab60Smacallanac_compiler_gnu=$ac_cv_c_compiler_gnu 3615ba0eab60Smacallan 3616ba0eab60Smacallandepcc="$CC" am_compiler_list= 3617ba0eab60Smacallan 3618aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3619aee7dae4Smrg$as_echo_n "checking dependency style of $depcc... " >&6; } 3620aee7dae4Smrgif ${am_cv_CC_dependencies_compiler_type+:} false; then : 3621aee7dae4Smrg $as_echo_n "(cached) " >&6 3622ba0eab60Smacallanelse 3623ba0eab60Smacallan if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3624ba0eab60Smacallan # We make a subdir and do the tests there. Otherwise we can end up 3625ba0eab60Smacallan # making bogus files that we don't know about and never remove. For 3626ba0eab60Smacallan # instance it was reported that on HP-UX the gcc test will end up 3627ba0eab60Smacallan # making a dummy file named `D' -- because `-MD' means `put the output 3628ba0eab60Smacallan # in D'. 3629aee7dae4Smrg rm -rf conftest.dir 3630ba0eab60Smacallan mkdir conftest.dir 3631ba0eab60Smacallan # Copy depcomp to subdir because otherwise we won't find it if we're 3632ba0eab60Smacallan # using a relative directory. 3633ba0eab60Smacallan cp "$am_depcomp" conftest.dir 3634ba0eab60Smacallan cd conftest.dir 3635ba0eab60Smacallan # We will build objects and dependencies in a subdirectory because 3636ba0eab60Smacallan # it helps to detect inapplicable dependency modes. For instance 3637ba0eab60Smacallan # both Tru64's cc and ICC support -MD to output dependencies as a 3638ba0eab60Smacallan # side effect of compilation, but ICC will put the dependencies in 3639ba0eab60Smacallan # the current directory while Tru64 will put them in the object 3640ba0eab60Smacallan # directory. 3641ba0eab60Smacallan mkdir sub 3642ba0eab60Smacallan 3643ba0eab60Smacallan am_cv_CC_dependencies_compiler_type=none 3644ba0eab60Smacallan if test "$am_compiler_list" = ""; then 3645ba0eab60Smacallan am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3646ba0eab60Smacallan fi 3647aee7dae4Smrg am__universal=false 3648aee7dae4Smrg case " $depcc " in #( 3649aee7dae4Smrg *\ -arch\ *\ -arch\ *) am__universal=true ;; 3650aee7dae4Smrg esac 3651aee7dae4Smrg 3652ba0eab60Smacallan for depmode in $am_compiler_list; do 3653ba0eab60Smacallan # Setup a source with many dependencies, because some compilers 3654ba0eab60Smacallan # like to wrap large dependency lists on column 80 (with \), and 3655ba0eab60Smacallan # we should not choose a depcomp mode which is confused by this. 3656ba0eab60Smacallan # 3657ba0eab60Smacallan # We need to recreate these files for each test, as the compiler may 3658ba0eab60Smacallan # overwrite some of them when testing with obscure command lines. 3659ba0eab60Smacallan # This happens at least with the AIX C compiler. 3660ba0eab60Smacallan : > sub/conftest.c 3661ba0eab60Smacallan for i in 1 2 3 4 5 6; do 3662ba0eab60Smacallan echo '#include "conftst'$i'.h"' >> sub/conftest.c 3663ba0eab60Smacallan # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3664ba0eab60Smacallan # Solaris 8's {/usr,}/bin/sh. 3665ba0eab60Smacallan touch sub/conftst$i.h 3666ba0eab60Smacallan done 3667ba0eab60Smacallan echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3668ba0eab60Smacallan 3669aee7dae4Smrg # We check with `-c' and `-o' for the sake of the "dashmstdout" 3670aee7dae4Smrg # mode. It turns out that the SunPro C++ compiler does not properly 3671aee7dae4Smrg # handle `-M -o', and we need to detect this. Also, some Intel 3672aee7dae4Smrg # versions had trouble with output in subdirs 3673aee7dae4Smrg am__obj=sub/conftest.${OBJEXT-o} 3674aee7dae4Smrg am__minus_obj="-o $am__obj" 3675ba0eab60Smacallan case $depmode in 3676aee7dae4Smrg gcc) 3677aee7dae4Smrg # This depmode causes a compiler race in universal mode. 3678aee7dae4Smrg test "$am__universal" = false || continue 3679aee7dae4Smrg ;; 3680ba0eab60Smacallan nosideeffect) 3681ba0eab60Smacallan # after this tag, mechanisms are not by side-effect, so they'll 3682ba0eab60Smacallan # only be used when explicitly requested 3683ba0eab60Smacallan if test "x$enable_dependency_tracking" = xyes; then 3684ba0eab60Smacallan continue 3685ba0eab60Smacallan else 3686ba0eab60Smacallan break 3687ba0eab60Smacallan fi 3688ba0eab60Smacallan ;; 3689aee7dae4Smrg msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3690aee7dae4Smrg # This compiler won't grok `-c -o', but also, the minuso test has 3691aee7dae4Smrg # not run yet. These depmodes are late enough in the game, and 3692aee7dae4Smrg # so weak that their functioning should not be impacted. 3693aee7dae4Smrg am__obj=conftest.${OBJEXT-o} 3694aee7dae4Smrg am__minus_obj= 3695aee7dae4Smrg ;; 3696ba0eab60Smacallan none) break ;; 3697ba0eab60Smacallan esac 3698ba0eab60Smacallan if depmode=$depmode \ 3699aee7dae4Smrg source=sub/conftest.c object=$am__obj \ 3700ba0eab60Smacallan depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3701aee7dae4Smrg $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3702ba0eab60Smacallan >/dev/null 2>conftest.err && 3703aee7dae4Smrg grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3704ba0eab60Smacallan grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3705aee7dae4Smrg grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3706ba0eab60Smacallan ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3707ba0eab60Smacallan # icc doesn't choke on unknown options, it will just issue warnings 3708ba0eab60Smacallan # or remarks (even with -Werror). So we grep stderr for any message 3709ba0eab60Smacallan # that says an option was ignored or not supported. 3710ba0eab60Smacallan # When given -MP, icc 7.0 and 7.1 complain thusly: 3711ba0eab60Smacallan # icc: Command line warning: ignoring option '-M'; no argument required 3712ba0eab60Smacallan # The diagnosis changed in icc 8.0: 3713ba0eab60Smacallan # icc: Command line remark: option '-MP' not supported 3714ba0eab60Smacallan if (grep 'ignoring option' conftest.err || 3715ba0eab60Smacallan grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3716ba0eab60Smacallan am_cv_CC_dependencies_compiler_type=$depmode 3717ba0eab60Smacallan break 3718ba0eab60Smacallan fi 3719ba0eab60Smacallan fi 3720ba0eab60Smacallan done 3721ba0eab60Smacallan 3722ba0eab60Smacallan cd .. 3723ba0eab60Smacallan rm -rf conftest.dir 3724ba0eab60Smacallanelse 3725ba0eab60Smacallan am_cv_CC_dependencies_compiler_type=none 3726ba0eab60Smacallanfi 3727ba0eab60Smacallan 3728ba0eab60Smacallanfi 3729aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3730aee7dae4Smrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3731ba0eab60SmacallanCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3732ba0eab60Smacallan 3733aee7dae4Smrg if 3734ba0eab60Smacallan test "x$enable_dependency_tracking" != xno \ 3735ba0eab60Smacallan && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3736ba0eab60Smacallan am__fastdepCC_TRUE= 3737ba0eab60Smacallan am__fastdepCC_FALSE='#' 3738ba0eab60Smacallanelse 3739ba0eab60Smacallan am__fastdepCC_TRUE='#' 3740ba0eab60Smacallan am__fastdepCC_FALSE= 3741ba0eab60Smacallanfi 3742ba0eab60Smacallan 3743ba0eab60Smacallan 3744aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3745aee7dae4Smrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3746aee7dae4Smrgif ${ac_cv_prog_cc_c99+:} false; then : 3747aee7dae4Smrg $as_echo_n "(cached) " >&6 3748ba0eab60Smacallanelse 3749aee7dae4Smrg ac_cv_prog_cc_c99=no 3750aee7dae4Smrgac_save_CC=$CC 3751aee7dae4Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3752aee7dae4Smrg/* end confdefs.h. */ 3753aee7dae4Smrg#include <stdarg.h> 3754aee7dae4Smrg#include <stdbool.h> 3755aee7dae4Smrg#include <stdlib.h> 3756aee7dae4Smrg#include <wchar.h> 3757aee7dae4Smrg#include <stdio.h> 3758ba0eab60Smacallan 3759aee7dae4Smrg// Check varargs macros. These examples are taken from C99 6.10.3.5. 3760aee7dae4Smrg#define debug(...) fprintf (stderr, __VA_ARGS__) 3761aee7dae4Smrg#define showlist(...) puts (#__VA_ARGS__) 3762aee7dae4Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3763aee7dae4Smrgstatic void 3764aee7dae4Smrgtest_varargs_macros (void) 3765aee7dae4Smrg{ 3766aee7dae4Smrg int x = 1234; 3767aee7dae4Smrg int y = 5678; 3768aee7dae4Smrg debug ("Flag"); 3769aee7dae4Smrg debug ("X = %d\n", x); 3770aee7dae4Smrg showlist (The first, second, and third items.); 3771aee7dae4Smrg report (x>y, "x is %d but y is %d", x, y); 3772aee7dae4Smrg} 3773ba0eab60Smacallan 3774aee7dae4Smrg// Check long long types. 3775aee7dae4Smrg#define BIG64 18446744073709551615ull 3776aee7dae4Smrg#define BIG32 4294967295ul 3777aee7dae4Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3778aee7dae4Smrg#if !BIG_OK 3779aee7dae4Smrg your preprocessor is broken; 3780aee7dae4Smrg#endif 3781aee7dae4Smrg#if BIG_OK 3782aee7dae4Smrg#else 3783aee7dae4Smrg your preprocessor is broken; 3784aee7dae4Smrg#endif 3785aee7dae4Smrgstatic long long int bignum = -9223372036854775807LL; 3786aee7dae4Smrgstatic unsigned long long int ubignum = BIG64; 3787aee7dae4Smrg 3788aee7dae4Smrgstruct incomplete_array 3789aee7dae4Smrg{ 3790aee7dae4Smrg int datasize; 3791aee7dae4Smrg double data[]; 3792aee7dae4Smrg}; 3793aee7dae4Smrg 3794aee7dae4Smrgstruct named_init { 3795aee7dae4Smrg int number; 3796aee7dae4Smrg const wchar_t *name; 3797aee7dae4Smrg double average; 3798aee7dae4Smrg}; 3799aee7dae4Smrg 3800aee7dae4Smrgtypedef const char *ccp; 3801aee7dae4Smrg 3802aee7dae4Smrgstatic inline int 3803aee7dae4Smrgtest_restrict (ccp restrict text) 3804aee7dae4Smrg{ 3805aee7dae4Smrg // See if C++-style comments work. 3806aee7dae4Smrg // Iterate through items via the restricted pointer. 3807aee7dae4Smrg // Also check for declarations in for loops. 3808aee7dae4Smrg for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3809aee7dae4Smrg continue; 3810aee7dae4Smrg return 0; 3811aee7dae4Smrg} 3812aee7dae4Smrg 3813aee7dae4Smrg// Check varargs and va_copy. 3814aee7dae4Smrgstatic void 3815aee7dae4Smrgtest_varargs (const char *format, ...) 3816aee7dae4Smrg{ 3817aee7dae4Smrg va_list args; 3818aee7dae4Smrg va_start (args, format); 3819aee7dae4Smrg va_list args_copy; 3820aee7dae4Smrg va_copy (args_copy, args); 3821aee7dae4Smrg 3822aee7dae4Smrg const char *str; 3823aee7dae4Smrg int number; 3824aee7dae4Smrg float fnumber; 3825aee7dae4Smrg 3826aee7dae4Smrg while (*format) 3827aee7dae4Smrg { 3828aee7dae4Smrg switch (*format++) 3829aee7dae4Smrg { 3830aee7dae4Smrg case 's': // string 3831aee7dae4Smrg str = va_arg (args_copy, const char *); 3832aee7dae4Smrg break; 3833aee7dae4Smrg case 'd': // int 3834aee7dae4Smrg number = va_arg (args_copy, int); 3835aee7dae4Smrg break; 3836aee7dae4Smrg case 'f': // float 3837aee7dae4Smrg fnumber = va_arg (args_copy, double); 3838aee7dae4Smrg break; 3839aee7dae4Smrg default: 3840aee7dae4Smrg break; 3841aee7dae4Smrg } 3842aee7dae4Smrg } 3843aee7dae4Smrg va_end (args_copy); 3844aee7dae4Smrg va_end (args); 3845aee7dae4Smrg} 3846aee7dae4Smrg 3847aee7dae4Smrgint 3848aee7dae4Smrgmain () 3849aee7dae4Smrg{ 3850aee7dae4Smrg 3851aee7dae4Smrg // Check bool. 3852aee7dae4Smrg _Bool success = false; 3853aee7dae4Smrg 3854aee7dae4Smrg // Check restrict. 3855aee7dae4Smrg if (test_restrict ("String literal") == 0) 3856aee7dae4Smrg success = true; 3857aee7dae4Smrg char *restrict newvar = "Another string"; 3858aee7dae4Smrg 3859aee7dae4Smrg // Check varargs. 3860aee7dae4Smrg test_varargs ("s, d' f .", "string", 65, 34.234); 3861aee7dae4Smrg test_varargs_macros (); 3862aee7dae4Smrg 3863aee7dae4Smrg // Check flexible array members. 3864aee7dae4Smrg struct incomplete_array *ia = 3865aee7dae4Smrg malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3866aee7dae4Smrg ia->datasize = 10; 3867aee7dae4Smrg for (int i = 0; i < ia->datasize; ++i) 3868aee7dae4Smrg ia->data[i] = i * 1.234; 3869aee7dae4Smrg 3870aee7dae4Smrg // Check named initializers. 3871aee7dae4Smrg struct named_init ni = { 3872aee7dae4Smrg .number = 34, 3873aee7dae4Smrg .name = L"Test wide string", 3874aee7dae4Smrg .average = 543.34343, 3875aee7dae4Smrg }; 3876aee7dae4Smrg 3877aee7dae4Smrg ni.number = 58; 3878aee7dae4Smrg 3879aee7dae4Smrg int dynamic_array[ni.number]; 3880aee7dae4Smrg dynamic_array[ni.number - 1] = 543; 3881aee7dae4Smrg 3882aee7dae4Smrg // work around unused variable warnings 3883aee7dae4Smrg return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3884aee7dae4Smrg || dynamic_array[ni.number - 1] != 543); 3885aee7dae4Smrg 3886aee7dae4Smrg ; 3887aee7dae4Smrg return 0; 3888aee7dae4Smrg} 3889aee7dae4Smrg_ACEOF 3890aee7dae4Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 3891aee7dae4Smrgdo 3892aee7dae4Smrg CC="$ac_save_CC $ac_arg" 3893aee7dae4Smrg if ac_fn_c_try_compile "$LINENO"; then : 3894aee7dae4Smrg ac_cv_prog_cc_c99=$ac_arg 3895aee7dae4Smrgfi 3896aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext 3897aee7dae4Smrg test "x$ac_cv_prog_cc_c99" != "xno" && break 3898aee7dae4Smrgdone 3899aee7dae4Smrgrm -f conftest.$ac_ext 3900aee7dae4SmrgCC=$ac_save_CC 3901aee7dae4Smrg 3902aee7dae4Smrgfi 3903aee7dae4Smrg# AC_CACHE_VAL 3904aee7dae4Smrgcase "x$ac_cv_prog_cc_c99" in 3905aee7dae4Smrg x) 3906aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3907aee7dae4Smrg$as_echo "none needed" >&6; } ;; 3908aee7dae4Smrg xno) 3909aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3910aee7dae4Smrg$as_echo "unsupported" >&6; } ;; 3911aee7dae4Smrg *) 3912aee7dae4Smrg CC="$CC $ac_cv_prog_cc_c99" 3913aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3914aee7dae4Smrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 3915aee7dae4Smrgesac 3916aee7dae4Smrgif test "x$ac_cv_prog_cc_c99" != xno; then : 3917ba0eab60Smacallan 3918ba0eab60Smacallanfi 3919ba0eab60Smacallan 3920ba0eab60Smacallan 3921ba0eab60Smacallan 3922aee7dae4Smrgac_ext=c 3923aee7dae4Smrgac_cpp='$CPP $CPPFLAGS' 3924aee7dae4Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3925aee7dae4Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3926aee7dae4Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 3927aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3928aee7dae4Smrg$as_echo_n "checking how to run the C preprocessor... " >&6; } 3929aee7dae4Smrg# On Suns, sometimes $CPP names a directory. 3930aee7dae4Smrgif test -n "$CPP" && test -d "$CPP"; then 3931aee7dae4Smrg CPP= 3932aee7dae4Smrgfi 3933aee7dae4Smrgif test -z "$CPP"; then 3934aee7dae4Smrg if ${ac_cv_prog_CPP+:} false; then : 3935aee7dae4Smrg $as_echo_n "(cached) " >&6 3936ba0eab60Smacallanelse 3937aee7dae4Smrg # Double quotes because CPP needs to be expanded 3938aee7dae4Smrg for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3939aee7dae4Smrg do 3940aee7dae4Smrg ac_preproc_ok=false 3941aee7dae4Smrgfor ac_c_preproc_warn_flag in '' yes 3942aee7dae4Smrgdo 3943aee7dae4Smrg # Use a header file that comes with gcc, so configuring glibc 3944aee7dae4Smrg # with a fresh cross-compiler works. 3945aee7dae4Smrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3946aee7dae4Smrg # <limits.h> exists even on freestanding compilers. 3947aee7dae4Smrg # On the NeXT, cc -E runs the code through the compiler's parser, 3948aee7dae4Smrg # not just through cpp. "Syntax error" is here to catch this case. 3949aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3950aee7dae4Smrg/* end confdefs.h. */ 3951aee7dae4Smrg#ifdef __STDC__ 3952aee7dae4Smrg# include <limits.h> 3953aee7dae4Smrg#else 3954aee7dae4Smrg# include <assert.h> 3955aee7dae4Smrg#endif 3956aee7dae4Smrg Syntax error 3957aee7dae4Smrg_ACEOF 3958aee7dae4Smrgif ac_fn_c_try_cpp "$LINENO"; then : 3959aee7dae4Smrg 3960ba0eab60Smacallanelse 3961aee7dae4Smrg # Broken: fails on valid input. 3962aee7dae4Smrgcontinue 3963ba0eab60Smacallanfi 3964aee7dae4Smrgrm -f conftest.err conftest.i conftest.$ac_ext 3965aee7dae4Smrg 3966aee7dae4Smrg # OK, works on sane cases. Now check whether nonexistent headers 3967aee7dae4Smrg # can be detected and how. 3968aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3969aee7dae4Smrg/* end confdefs.h. */ 3970aee7dae4Smrg#include <ac_nonexistent.h> 3971aee7dae4Smrg_ACEOF 3972aee7dae4Smrgif ac_fn_c_try_cpp "$LINENO"; then : 3973aee7dae4Smrg # Broken: success on invalid input. 3974aee7dae4Smrgcontinue 3975ba0eab60Smacallanelse 3976aee7dae4Smrg # Passes both tests. 3977aee7dae4Smrgac_preproc_ok=: 3978aee7dae4Smrgbreak 3979aee7dae4Smrgfi 3980aee7dae4Smrgrm -f conftest.err conftest.i conftest.$ac_ext 3981aee7dae4Smrg 3982aee7dae4Smrgdone 3983aee7dae4Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3984aee7dae4Smrgrm -f conftest.i conftest.err conftest.$ac_ext 3985aee7dae4Smrgif $ac_preproc_ok; then : 3986aee7dae4Smrg break 3987aee7dae4Smrgfi 3988aee7dae4Smrg 3989aee7dae4Smrg done 3990aee7dae4Smrg ac_cv_prog_CPP=$CPP 3991aee7dae4Smrg 3992aee7dae4Smrgfi 3993aee7dae4Smrg CPP=$ac_cv_prog_CPP 3994ba0eab60Smacallanelse 3995aee7dae4Smrg ac_cv_prog_CPP=$CPP 3996aee7dae4Smrgfi 3997aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3998aee7dae4Smrg$as_echo "$CPP" >&6; } 3999aee7dae4Smrgac_preproc_ok=false 4000aee7dae4Smrgfor ac_c_preproc_warn_flag in '' yes 4001aee7dae4Smrgdo 4002aee7dae4Smrg # Use a header file that comes with gcc, so configuring glibc 4003aee7dae4Smrg # with a fresh cross-compiler works. 4004aee7dae4Smrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4005aee7dae4Smrg # <limits.h> exists even on freestanding compilers. 4006aee7dae4Smrg # On the NeXT, cc -E runs the code through the compiler's parser, 4007aee7dae4Smrg # not just through cpp. "Syntax error" is here to catch this case. 4008aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4009aee7dae4Smrg/* end confdefs.h. */ 4010aee7dae4Smrg#ifdef __STDC__ 4011aee7dae4Smrg# include <limits.h> 4012aee7dae4Smrg#else 4013aee7dae4Smrg# include <assert.h> 4014aee7dae4Smrg#endif 4015aee7dae4Smrg Syntax error 4016aee7dae4Smrg_ACEOF 4017aee7dae4Smrgif ac_fn_c_try_cpp "$LINENO"; then : 4018aee7dae4Smrg 4019aee7dae4Smrgelse 4020aee7dae4Smrg # Broken: fails on valid input. 4021aee7dae4Smrgcontinue 4022ba0eab60Smacallanfi 4023aee7dae4Smrgrm -f conftest.err conftest.i conftest.$ac_ext 4024aee7dae4Smrg 4025aee7dae4Smrg # OK, works on sane cases. Now check whether nonexistent headers 4026aee7dae4Smrg # can be detected and how. 4027aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4028aee7dae4Smrg/* end confdefs.h. */ 4029aee7dae4Smrg#include <ac_nonexistent.h> 4030aee7dae4Smrg_ACEOF 4031aee7dae4Smrgif ac_fn_c_try_cpp "$LINENO"; then : 4032aee7dae4Smrg # Broken: success on invalid input. 4033aee7dae4Smrgcontinue 4034aee7dae4Smrgelse 4035aee7dae4Smrg # Passes both tests. 4036aee7dae4Smrgac_preproc_ok=: 4037aee7dae4Smrgbreak 4038ba0eab60Smacallanfi 4039aee7dae4Smrgrm -f conftest.err conftest.i conftest.$ac_ext 4040aee7dae4Smrg 4041aee7dae4Smrgdone 4042aee7dae4Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4043aee7dae4Smrgrm -f conftest.i conftest.err conftest.$ac_ext 4044aee7dae4Smrgif $ac_preproc_ok; then : 4045ba0eab60Smacallan 4046ba0eab60Smacallanelse 4047aee7dae4Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4048aee7dae4Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4049aee7dae4Smrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4050aee7dae4SmrgSee \`config.log' for more details" "$LINENO" 5; } 4051ba0eab60Smacallanfi 4052aee7dae4Smrg 4053aee7dae4Smrgac_ext=c 4054aee7dae4Smrgac_cpp='$CPP $CPPFLAGS' 4055aee7dae4Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4056aee7dae4Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4057aee7dae4Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 4058aee7dae4Smrg 4059aee7dae4Smrg 4060aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4061aee7dae4Smrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4062aee7dae4Smrgif ${ac_cv_path_GREP+:} false; then : 4063aee7dae4Smrg $as_echo_n "(cached) " >&6 4064ba0eab60Smacallanelse 4065aee7dae4Smrg if test -z "$GREP"; then 4066aee7dae4Smrg ac_path_GREP_found=false 4067aee7dae4Smrg # Loop through the user's path and test for each of PROGNAME-LIST 4068aee7dae4Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4069aee7dae4Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4070aee7dae4Smrgdo 4071aee7dae4Smrg IFS=$as_save_IFS 4072aee7dae4Smrg test -z "$as_dir" && as_dir=. 4073aee7dae4Smrg for ac_prog in grep ggrep; do 4074aee7dae4Smrg for ac_exec_ext in '' $ac_executable_extensions; do 4075aee7dae4Smrg ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4076aee7dae4Smrg as_fn_executable_p "$ac_path_GREP" || continue 4077aee7dae4Smrg# Check for GNU ac_path_GREP and select it if it is found. 4078aee7dae4Smrg # Check for GNU $ac_path_GREP 4079aee7dae4Smrgcase `"$ac_path_GREP" --version 2>&1` in 4080aee7dae4Smrg*GNU*) 4081aee7dae4Smrg ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4082ba0eab60Smacallan*) 4083aee7dae4Smrg ac_count=0 4084aee7dae4Smrg $as_echo_n 0123456789 >"conftest.in" 4085aee7dae4Smrg while : 4086aee7dae4Smrg do 4087aee7dae4Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 4088aee7dae4Smrg mv "conftest.tmp" "conftest.in" 4089aee7dae4Smrg cp "conftest.in" "conftest.nl" 4090aee7dae4Smrg $as_echo 'GREP' >> "conftest.nl" 4091aee7dae4Smrg "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4092aee7dae4Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4093aee7dae4Smrg as_fn_arith $ac_count + 1 && ac_count=$as_val 4094aee7dae4Smrg if test $ac_count -gt ${ac_path_GREP_max-0}; then 4095aee7dae4Smrg # Best one so far, save it but keep looking for a better one 4096aee7dae4Smrg ac_cv_path_GREP="$ac_path_GREP" 4097aee7dae4Smrg ac_path_GREP_max=$ac_count 4098aee7dae4Smrg fi 4099aee7dae4Smrg # 10*(2^10) chars as input seems more than enough 4100aee7dae4Smrg test $ac_count -gt 10 && break 4101aee7dae4Smrg done 4102aee7dae4Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4103ba0eab60Smacallanesac 4104aee7dae4Smrg 4105aee7dae4Smrg $ac_path_GREP_found && break 3 4106aee7dae4Smrg done 4107aee7dae4Smrg done 4108aee7dae4Smrg done 4109aee7dae4SmrgIFS=$as_save_IFS 4110aee7dae4Smrg if test -z "$ac_cv_path_GREP"; then 4111aee7dae4Smrg as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4112aee7dae4Smrg fi 4113aee7dae4Smrgelse 4114aee7dae4Smrg ac_cv_path_GREP=$GREP 4115ba0eab60Smacallanfi 4116aee7dae4Smrg 4117aee7dae4Smrgfi 4118aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4119aee7dae4Smrg$as_echo "$ac_cv_path_GREP" >&6; } 4120aee7dae4Smrg GREP="$ac_cv_path_GREP" 4121ba0eab60Smacallan 4122ba0eab60Smacallan 4123aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4124aee7dae4Smrg$as_echo_n "checking for egrep... " >&6; } 4125aee7dae4Smrgif ${ac_cv_path_EGREP+:} false; then : 4126aee7dae4Smrg $as_echo_n "(cached) " >&6 4127ba0eab60Smacallanelse 4128aee7dae4Smrg if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4129aee7dae4Smrg then ac_cv_path_EGREP="$GREP -E" 4130aee7dae4Smrg else 4131aee7dae4Smrg if test -z "$EGREP"; then 4132aee7dae4Smrg ac_path_EGREP_found=false 4133aee7dae4Smrg # Loop through the user's path and test for each of PROGNAME-LIST 4134aee7dae4Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4135aee7dae4Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4136aee7dae4Smrgdo 4137aee7dae4Smrg IFS=$as_save_IFS 4138aee7dae4Smrg test -z "$as_dir" && as_dir=. 4139aee7dae4Smrg for ac_prog in egrep; do 4140aee7dae4Smrg for ac_exec_ext in '' $ac_executable_extensions; do 4141aee7dae4Smrg ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4142aee7dae4Smrg as_fn_executable_p "$ac_path_EGREP" || continue 4143aee7dae4Smrg# Check for GNU ac_path_EGREP and select it if it is found. 4144aee7dae4Smrg # Check for GNU $ac_path_EGREP 4145aee7dae4Smrgcase `"$ac_path_EGREP" --version 2>&1` in 4146aee7dae4Smrg*GNU*) 4147aee7dae4Smrg ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4148aee7dae4Smrg*) 4149aee7dae4Smrg ac_count=0 4150aee7dae4Smrg $as_echo_n 0123456789 >"conftest.in" 4151aee7dae4Smrg while : 4152aee7dae4Smrg do 4153aee7dae4Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 4154aee7dae4Smrg mv "conftest.tmp" "conftest.in" 4155aee7dae4Smrg cp "conftest.in" "conftest.nl" 4156aee7dae4Smrg $as_echo 'EGREP' >> "conftest.nl" 4157aee7dae4Smrg "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4158aee7dae4Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4159aee7dae4Smrg as_fn_arith $ac_count + 1 && ac_count=$as_val 4160aee7dae4Smrg if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4161aee7dae4Smrg # Best one so far, save it but keep looking for a better one 4162aee7dae4Smrg ac_cv_path_EGREP="$ac_path_EGREP" 4163aee7dae4Smrg ac_path_EGREP_max=$ac_count 4164ba0eab60Smacallan fi 4165aee7dae4Smrg # 10*(2^10) chars as input seems more than enough 4166aee7dae4Smrg test $ac_count -gt 10 && break 4167aee7dae4Smrg done 4168aee7dae4Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4169ba0eab60Smacallanesac 4170ba0eab60Smacallan 4171aee7dae4Smrg $ac_path_EGREP_found && break 3 4172aee7dae4Smrg done 4173aee7dae4Smrg done 4174aee7dae4Smrg done 4175aee7dae4SmrgIFS=$as_save_IFS 4176aee7dae4Smrg if test -z "$ac_cv_path_EGREP"; then 4177aee7dae4Smrg as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4178aee7dae4Smrg fi 4179ba0eab60Smacallanelse 4180aee7dae4Smrg ac_cv_path_EGREP=$EGREP 4181aee7dae4Smrgfi 4182aee7dae4Smrg 4183aee7dae4Smrg fi 4184aee7dae4Smrgfi 4185aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4186aee7dae4Smrg$as_echo "$ac_cv_path_EGREP" >&6; } 4187aee7dae4Smrg EGREP="$ac_cv_path_EGREP" 4188aee7dae4Smrg 4189aee7dae4Smrg 4190aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4191aee7dae4Smrg$as_echo_n "checking for ANSI C header files... " >&6; } 4192aee7dae4Smrgif ${ac_cv_header_stdc+:} false; then : 4193aee7dae4Smrg $as_echo_n "(cached) " >&6 4194ba0eab60Smacallanelse 4195aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4196aee7dae4Smrg/* end confdefs.h. */ 4197aee7dae4Smrg#include <stdlib.h> 4198aee7dae4Smrg#include <stdarg.h> 4199aee7dae4Smrg#include <string.h> 4200aee7dae4Smrg#include <float.h> 4201aee7dae4Smrg 4202aee7dae4Smrgint 4203aee7dae4Smrgmain () 4204aee7dae4Smrg{ 4205aee7dae4Smrg 4206aee7dae4Smrg ; 4207aee7dae4Smrg return 0; 4208aee7dae4Smrg} 4209aee7dae4Smrg_ACEOF 4210aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 4211aee7dae4Smrg ac_cv_header_stdc=yes 4212aee7dae4Smrgelse 4213aee7dae4Smrg ac_cv_header_stdc=no 4214aee7dae4Smrgfi 4215aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4216aee7dae4Smrg 4217aee7dae4Smrgif test $ac_cv_header_stdc = yes; then 4218aee7dae4Smrg # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4219aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4220aee7dae4Smrg/* end confdefs.h. */ 4221aee7dae4Smrg#include <string.h> 4222aee7dae4Smrg 4223aee7dae4Smrg_ACEOF 4224aee7dae4Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4225aee7dae4Smrg $EGREP "memchr" >/dev/null 2>&1; then : 4226aee7dae4Smrg 4227aee7dae4Smrgelse 4228aee7dae4Smrg ac_cv_header_stdc=no 4229ba0eab60Smacallanfi 4230aee7dae4Smrgrm -f conftest* 4231aee7dae4Smrg 4232ba0eab60Smacallanfi 4233ba0eab60Smacallan 4234aee7dae4Smrgif test $ac_cv_header_stdc = yes; then 4235aee7dae4Smrg # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4236aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4237aee7dae4Smrg/* end confdefs.h. */ 4238aee7dae4Smrg#include <stdlib.h> 4239aee7dae4Smrg 4240aee7dae4Smrg_ACEOF 4241aee7dae4Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4242aee7dae4Smrg $EGREP "free" >/dev/null 2>&1; then : 4243aee7dae4Smrg 4244ba0eab60Smacallanelse 4245aee7dae4Smrg ac_cv_header_stdc=no 4246aee7dae4Smrgfi 4247aee7dae4Smrgrm -f conftest* 4248aee7dae4Smrg 4249ba0eab60Smacallanfi 4250ba0eab60Smacallan 4251aee7dae4Smrgif test $ac_cv_header_stdc = yes; then 4252aee7dae4Smrg # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4253aee7dae4Smrg if test "$cross_compiling" = yes; then : 4254aee7dae4Smrg : 4255ba0eab60Smacallanelse 4256aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4257aee7dae4Smrg/* end confdefs.h. */ 4258aee7dae4Smrg#include <ctype.h> 4259aee7dae4Smrg#include <stdlib.h> 4260aee7dae4Smrg#if ((' ' & 0x0FF) == 0x020) 4261aee7dae4Smrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4262aee7dae4Smrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4263aee7dae4Smrg#else 4264aee7dae4Smrg# define ISLOWER(c) \ 4265aee7dae4Smrg (('a' <= (c) && (c) <= 'i') \ 4266aee7dae4Smrg || ('j' <= (c) && (c) <= 'r') \ 4267aee7dae4Smrg || ('s' <= (c) && (c) <= 'z')) 4268aee7dae4Smrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4269aee7dae4Smrg#endif 4270ba0eab60Smacallan 4271aee7dae4Smrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4272aee7dae4Smrgint 4273aee7dae4Smrgmain () 4274aee7dae4Smrg{ 4275aee7dae4Smrg int i; 4276aee7dae4Smrg for (i = 0; i < 256; i++) 4277aee7dae4Smrg if (XOR (islower (i), ISLOWER (i)) 4278aee7dae4Smrg || toupper (i) != TOUPPER (i)) 4279aee7dae4Smrg return 2; 4280aee7dae4Smrg return 0; 4281aee7dae4Smrg} 4282aee7dae4Smrg_ACEOF 4283aee7dae4Smrgif ac_fn_c_try_run "$LINENO"; then : 4284ba0eab60Smacallan 4285aee7dae4Smrgelse 4286aee7dae4Smrg ac_cv_header_stdc=no 4287aee7dae4Smrgfi 4288aee7dae4Smrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4289aee7dae4Smrg conftest.$ac_objext conftest.beam conftest.$ac_ext 4290aee7dae4Smrgfi 4291ba0eab60Smacallan 4292aee7dae4Smrgfi 4293aee7dae4Smrgfi 4294aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4295aee7dae4Smrg$as_echo "$ac_cv_header_stdc" >&6; } 4296aee7dae4Smrgif test $ac_cv_header_stdc = yes; then 4297ba0eab60Smacallan 4298aee7dae4Smrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4299ba0eab60Smacallan 4300aee7dae4Smrgfi 4301ba0eab60Smacallan 4302aee7dae4Smrg# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4303aee7dae4Smrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4304aee7dae4Smrg inttypes.h stdint.h unistd.h 4305aee7dae4Smrgdo : 4306aee7dae4Smrg as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4307aee7dae4Smrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4308aee7dae4Smrg" 4309aee7dae4Smrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4310aee7dae4Smrg cat >>confdefs.h <<_ACEOF 4311aee7dae4Smrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4312aee7dae4Smrg_ACEOF 4313ba0eab60Smacallan 4314aee7dae4Smrgfi 4315ba0eab60Smacallan 4316aee7dae4Smrgdone 4317ba0eab60Smacallan 4318ba0eab60Smacallan 4319ba0eab60Smacallan 4320ba0eab60Smacallan 4321ba0eab60Smacallan 4322ba0eab60Smacallan 4323aee7dae4Smrgac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4324aee7dae4Smrgif test "x$ac_cv_have_decl___clang__" = xyes; then : 4325aee7dae4Smrg CLANGCC="yes" 4326aee7dae4Smrgelse 4327aee7dae4Smrg CLANGCC="no" 4328aee7dae4Smrgfi 4329ba0eab60Smacallan 4330aee7dae4Smrgac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4331aee7dae4Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4332aee7dae4Smrg INTELCC="yes" 4333aee7dae4Smrgelse 4334aee7dae4Smrg INTELCC="no" 4335aee7dae4Smrgfi 4336ba0eab60Smacallan 4337aee7dae4Smrgac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4338aee7dae4Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4339aee7dae4Smrg SUNCC="yes" 4340aee7dae4Smrgelse 4341aee7dae4Smrg SUNCC="no" 4342aee7dae4Smrgfi 4343ba0eab60Smacallan 4344ba0eab60Smacallan 4345ba0eab60Smacallan 4346aee7dae4Smrg 4347aee7dae4Smrg 4348aee7dae4Smrg 4349aee7dae4Smrg 4350aee7dae4Smrg 4351aee7dae4Smrg 4352aee7dae4Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4353aee7dae4Smrg if test -n "$ac_tool_prefix"; then 4354aee7dae4Smrg # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4355aee7dae4Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4356aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4357aee7dae4Smrg$as_echo_n "checking for $ac_word... " >&6; } 4358aee7dae4Smrgif ${ac_cv_path_PKG_CONFIG+:} false; then : 4359aee7dae4Smrg $as_echo_n "(cached) " >&6 4360aee7dae4Smrgelse 4361aee7dae4Smrg case $PKG_CONFIG in 4362aee7dae4Smrg [\\/]* | ?:[\\/]*) 4363aee7dae4Smrg ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4364ba0eab60Smacallan ;; 4365aee7dae4Smrg *) 4366aee7dae4Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4367aee7dae4Smrgfor as_dir in $PATH 4368aee7dae4Smrgdo 4369aee7dae4Smrg IFS=$as_save_IFS 4370aee7dae4Smrg test -z "$as_dir" && as_dir=. 4371aee7dae4Smrg for ac_exec_ext in '' $ac_executable_extensions; do 4372aee7dae4Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4373aee7dae4Smrg ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4374aee7dae4Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4375aee7dae4Smrg break 2 4376aee7dae4Smrg fi 4377aee7dae4Smrgdone 4378aee7dae4Smrg done 4379aee7dae4SmrgIFS=$as_save_IFS 4380ba0eab60Smacallan 4381ba0eab60Smacallan ;; 4382ba0eab60Smacallanesac 4383aee7dae4Smrgfi 4384aee7dae4SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG 4385aee7dae4Smrgif test -n "$PKG_CONFIG"; then 4386aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4387aee7dae4Smrg$as_echo "$PKG_CONFIG" >&6; } 4388aee7dae4Smrgelse 4389aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4390aee7dae4Smrg$as_echo "no" >&6; } 4391aee7dae4Smrgfi 4392aee7dae4Smrg 4393ba0eab60Smacallan 4394ba0eab60Smacallanfi 4395aee7dae4Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then 4396aee7dae4Smrg ac_pt_PKG_CONFIG=$PKG_CONFIG 4397aee7dae4Smrg # Extract the first word of "pkg-config", so it can be a program name with args. 4398aee7dae4Smrgset dummy pkg-config; ac_word=$2 4399aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4400aee7dae4Smrg$as_echo_n "checking for $ac_word... " >&6; } 4401aee7dae4Smrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4402aee7dae4Smrg $as_echo_n "(cached) " >&6 4403aee7dae4Smrgelse 4404aee7dae4Smrg case $ac_pt_PKG_CONFIG in 4405aee7dae4Smrg [\\/]* | ?:[\\/]*) 4406aee7dae4Smrg ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4407aee7dae4Smrg ;; 4408aee7dae4Smrg *) 4409aee7dae4Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4410aee7dae4Smrgfor as_dir in $PATH 4411aee7dae4Smrgdo 4412aee7dae4Smrg IFS=$as_save_IFS 4413aee7dae4Smrg test -z "$as_dir" && as_dir=. 4414aee7dae4Smrg for ac_exec_ext in '' $ac_executable_extensions; do 4415aee7dae4Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4416aee7dae4Smrg ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4417aee7dae4Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4418aee7dae4Smrg break 2 4419aee7dae4Smrg fi 4420aee7dae4Smrgdone 4421aee7dae4Smrg done 4422aee7dae4SmrgIFS=$as_save_IFS 4423aee7dae4Smrg 4424aee7dae4Smrg ;; 4425aee7dae4Smrgesac 4426aee7dae4Smrgfi 4427aee7dae4Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4428aee7dae4Smrgif test -n "$ac_pt_PKG_CONFIG"; then 4429aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4430aee7dae4Smrg$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4431aee7dae4Smrgelse 4432aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4433aee7dae4Smrg$as_echo "no" >&6; } 4434aee7dae4Smrgfi 4435ba0eab60Smacallan 4436aee7dae4Smrg if test "x$ac_pt_PKG_CONFIG" = x; then 4437aee7dae4Smrg PKG_CONFIG="" 4438aee7dae4Smrg else 4439aee7dae4Smrg case $cross_compiling:$ac_tool_warned in 4440aee7dae4Smrgyes:) 4441aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4442aee7dae4Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4443aee7dae4Smrgac_tool_warned=yes ;; 4444aee7dae4Smrgesac 4445aee7dae4Smrg PKG_CONFIG=$ac_pt_PKG_CONFIG 4446aee7dae4Smrg fi 4447aee7dae4Smrgelse 4448aee7dae4Smrg PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4449aee7dae4Smrgfi 4450ba0eab60Smacallan 4451aee7dae4Smrgfi 4452aee7dae4Smrgif test -n "$PKG_CONFIG"; then 4453aee7dae4Smrg _pkg_min_version=0.9.0 4454aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4455aee7dae4Smrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4456aee7dae4Smrg if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4457aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4458aee7dae4Smrg$as_echo "yes" >&6; } 4459aee7dae4Smrg else 4460aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4461aee7dae4Smrg$as_echo "no" >&6; } 4462aee7dae4Smrg PKG_CONFIG="" 4463aee7dae4Smrg fi 4464aee7dae4Smrgfi 4465aee7dae4Smrg# Make sure we can run config.sub. 4466aee7dae4Smrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4467aee7dae4Smrg as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4468aee7dae4Smrg 4469aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4470aee7dae4Smrg$as_echo_n "checking build system type... " >&6; } 4471aee7dae4Smrgif ${ac_cv_build+:} false; then : 4472aee7dae4Smrg $as_echo_n "(cached) " >&6 4473aee7dae4Smrgelse 4474aee7dae4Smrg ac_build_alias=$build_alias 4475aee7dae4Smrgtest "x$ac_build_alias" = x && 4476aee7dae4Smrg ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4477aee7dae4Smrgtest "x$ac_build_alias" = x && 4478aee7dae4Smrg as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4479aee7dae4Smrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4480aee7dae4Smrg as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4481aee7dae4Smrg 4482aee7dae4Smrgfi 4483aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4484aee7dae4Smrg$as_echo "$ac_cv_build" >&6; } 4485aee7dae4Smrgcase $ac_cv_build in 4486aee7dae4Smrg*-*-*) ;; 4487aee7dae4Smrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4488aee7dae4Smrgesac 4489aee7dae4Smrgbuild=$ac_cv_build 4490aee7dae4Smrgac_save_IFS=$IFS; IFS='-' 4491aee7dae4Smrgset x $ac_cv_build 4492aee7dae4Smrgshift 4493aee7dae4Smrgbuild_cpu=$1 4494aee7dae4Smrgbuild_vendor=$2 4495aee7dae4Smrgshift; shift 4496aee7dae4Smrg# Remember, the first character of IFS is used to create $*, 4497aee7dae4Smrg# except with old shells: 4498aee7dae4Smrgbuild_os=$* 4499aee7dae4SmrgIFS=$ac_save_IFS 4500aee7dae4Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4501ba0eab60Smacallan 4502ba0eab60Smacallan 4503aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4504aee7dae4Smrg$as_echo_n "checking host system type... " >&6; } 4505aee7dae4Smrgif ${ac_cv_host+:} false; then : 4506aee7dae4Smrg $as_echo_n "(cached) " >&6 4507aee7dae4Smrgelse 4508aee7dae4Smrg if test "x$host_alias" = x; then 4509aee7dae4Smrg ac_cv_host=$ac_cv_build 4510aee7dae4Smrgelse 4511aee7dae4Smrg ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4512aee7dae4Smrg as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4513aee7dae4Smrgfi 4514ba0eab60Smacallan 4515aee7dae4Smrgfi 4516aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4517aee7dae4Smrg$as_echo "$ac_cv_host" >&6; } 4518aee7dae4Smrgcase $ac_cv_host in 4519aee7dae4Smrg*-*-*) ;; 4520aee7dae4Smrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4521aee7dae4Smrgesac 4522aee7dae4Smrghost=$ac_cv_host 4523aee7dae4Smrgac_save_IFS=$IFS; IFS='-' 4524aee7dae4Smrgset x $ac_cv_host 4525aee7dae4Smrgshift 4526aee7dae4Smrghost_cpu=$1 4527aee7dae4Smrghost_vendor=$2 4528aee7dae4Smrgshift; shift 4529aee7dae4Smrg# Remember, the first character of IFS is used to create $*, 4530aee7dae4Smrg# except with old shells: 4531aee7dae4Smrghost_os=$* 4532aee7dae4SmrgIFS=$ac_save_IFS 4533aee7dae4Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4534aee7dae4Smrg 4535aee7dae4Smrg 4536aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4537aee7dae4Smrg$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4538aee7dae4Smrgif ${ac_cv_path_SED+:} false; then : 4539aee7dae4Smrg $as_echo_n "(cached) " >&6 4540aee7dae4Smrgelse 4541aee7dae4Smrg ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4542aee7dae4Smrg for ac_i in 1 2 3 4 5 6 7; do 4543aee7dae4Smrg ac_script="$ac_script$as_nl$ac_script" 4544aee7dae4Smrg done 4545aee7dae4Smrg echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4546aee7dae4Smrg { ac_script=; unset ac_script;} 4547aee7dae4Smrg if test -z "$SED"; then 4548aee7dae4Smrg ac_path_SED_found=false 4549aee7dae4Smrg # Loop through the user's path and test for each of PROGNAME-LIST 4550aee7dae4Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4551aee7dae4Smrgfor as_dir in $PATH 4552aee7dae4Smrgdo 4553aee7dae4Smrg IFS=$as_save_IFS 4554aee7dae4Smrg test -z "$as_dir" && as_dir=. 4555aee7dae4Smrg for ac_prog in sed gsed; do 4556aee7dae4Smrg for ac_exec_ext in '' $ac_executable_extensions; do 4557aee7dae4Smrg ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4558aee7dae4Smrg as_fn_executable_p "$ac_path_SED" || continue 4559aee7dae4Smrg# Check for GNU ac_path_SED and select it if it is found. 4560aee7dae4Smrg # Check for GNU $ac_path_SED 4561aee7dae4Smrgcase `"$ac_path_SED" --version 2>&1` in 4562aee7dae4Smrg*GNU*) 4563aee7dae4Smrg ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4564aee7dae4Smrg*) 4565aee7dae4Smrg ac_count=0 4566aee7dae4Smrg $as_echo_n 0123456789 >"conftest.in" 4567aee7dae4Smrg while : 4568aee7dae4Smrg do 4569aee7dae4Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 4570aee7dae4Smrg mv "conftest.tmp" "conftest.in" 4571aee7dae4Smrg cp "conftest.in" "conftest.nl" 4572aee7dae4Smrg $as_echo '' >> "conftest.nl" 4573aee7dae4Smrg "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4574aee7dae4Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4575aee7dae4Smrg as_fn_arith $ac_count + 1 && ac_count=$as_val 4576aee7dae4Smrg if test $ac_count -gt ${ac_path_SED_max-0}; then 4577aee7dae4Smrg # Best one so far, save it but keep looking for a better one 4578aee7dae4Smrg ac_cv_path_SED="$ac_path_SED" 4579aee7dae4Smrg ac_path_SED_max=$ac_count 4580aee7dae4Smrg fi 4581aee7dae4Smrg # 10*(2^10) chars as input seems more than enough 4582aee7dae4Smrg test $ac_count -gt 10 && break 4583aee7dae4Smrg done 4584aee7dae4Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4585aee7dae4Smrgesac 4586ba0eab60Smacallan 4587aee7dae4Smrg $ac_path_SED_found && break 3 4588aee7dae4Smrg done 4589aee7dae4Smrg done 4590aee7dae4Smrg done 4591aee7dae4SmrgIFS=$as_save_IFS 4592aee7dae4Smrg if test -z "$ac_cv_path_SED"; then 4593aee7dae4Smrg as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4594aee7dae4Smrg fi 4595aee7dae4Smrgelse 4596aee7dae4Smrg ac_cv_path_SED=$SED 4597aee7dae4Smrgfi 4598ba0eab60Smacallan 4599aee7dae4Smrgfi 4600aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4601aee7dae4Smrg$as_echo "$ac_cv_path_SED" >&6; } 4602aee7dae4Smrg SED="$ac_cv_path_SED" 4603aee7dae4Smrg rm -f conftest.sed 4604ba0eab60Smacallan 4605ba0eab60Smacallan 4606ba0eab60Smacallan 4607ba0eab60Smacallan 4608ba0eab60Smacallan 4609aee7dae4Smrg 4610aee7dae4Smrg# Check whether --enable-selective-werror was given. 4611aee7dae4Smrgif test "${enable_selective_werror+set}" = set; then : 4612aee7dae4Smrg enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4613ba0eab60Smacallanelse 4614aee7dae4Smrg SELECTIVE_WERROR=yes 4615aee7dae4Smrgfi 4616aee7dae4Smrg 4617aee7dae4Smrg 4618aee7dae4Smrg 4619aee7dae4Smrg 4620aee7dae4Smrg 4621aee7dae4Smrg# -v is too short to test reliably with XORG_TESTSET_CFLAG 4622aee7dae4Smrgif test "x$SUNCC" = "xyes"; then 4623aee7dae4Smrg BASE_CFLAGS="-v" 4624aee7dae4Smrgelse 4625aee7dae4Smrg BASE_CFLAGS="" 4626aee7dae4Smrgfi 4627aee7dae4Smrg 4628aee7dae4Smrg# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4629aee7dae4Smrg 4630aee7dae4Smrg 4631aee7dae4Smrg 4632aee7dae4Smrg 4633aee7dae4Smrg 4634aee7dae4Smrg 4635aee7dae4Smrg 4636aee7dae4Smrg 4637aee7dae4Smrg 4638aee7dae4Smrg 4639aee7dae4Smrg 4640aee7dae4Smrg 4641aee7dae4Smrg 4642aee7dae4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 4643ba0eab60Smacallan 4644aee7dae4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4645aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4646aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4647aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4648aee7dae4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4649aee7dae4Smrg $as_echo_n "(cached) " >&6 4650aee7dae4Smrgelse 4651aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4652aee7dae4Smrg/* end confdefs.h. */ 4653aee7dae4Smrgint i; 4654ba0eab60Smacallan_ACEOF 4655aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 4656aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 4657aee7dae4Smrgelse 4658aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=no 4659aee7dae4Smrgfi 4660aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4661aee7dae4Smrgfi 4662aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4663aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4664aee7dae4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4665aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 4666aee7dae4Smrgfi 4667aee7dae4Smrg 4668aee7dae4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4669aee7dae4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4670aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4671aee7dae4Smrg fi 4672aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4673aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4674aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4675aee7dae4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4676aee7dae4Smrg $as_echo_n "(cached) " >&6 4677aee7dae4Smrgelse 4678aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4679ba0eab60Smacallan/* end confdefs.h. */ 4680aee7dae4Smrgint i; 4681aee7dae4Smrg_ACEOF 4682aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 4683aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 4684aee7dae4Smrgelse 4685aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 4686aee7dae4Smrgfi 4687aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4688aee7dae4Smrgfi 4689aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4690aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4691aee7dae4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4692aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 4693aee7dae4Smrgfi 4694aee7dae4Smrg 4695aee7dae4Smrgfound="no" 4696aee7dae4Smrg 4697aee7dae4Smrg if test $found = "no" ; then 4698aee7dae4Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4699aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4700aee7dae4Smrg fi 4701ba0eab60Smacallan 4702aee7dae4Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4703aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4704aee7dae4Smrg fi 4705aee7dae4Smrg 4706aee7dae4Smrg CFLAGS="$CFLAGS -Wall" 4707aee7dae4Smrg 4708aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wall" >&5 4709aee7dae4Smrg$as_echo_n "checking if $CC supports-Wall... " >&6; } 4710aee7dae4Smrg cacheid=xorg_cv_cc_flag__Wall 4711aee7dae4Smrg if eval \${$cacheid+:} false; then : 4712aee7dae4Smrg $as_echo_n "(cached) " >&6 4713aee7dae4Smrgelse 4714aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4715aee7dae4Smrg/* end confdefs.h. */ 4716aee7dae4Smrgint i; 4717ba0eab60Smacallanint 4718ba0eab60Smacallanmain () 4719ba0eab60Smacallan{ 4720ba0eab60Smacallan 4721ba0eab60Smacallan ; 4722ba0eab60Smacallan return 0; 4723ba0eab60Smacallan} 4724ba0eab60Smacallan_ACEOF 4725aee7dae4Smrgif ac_fn_c_try_link "$LINENO"; then : 4726aee7dae4Smrg eval $cacheid=yes 4727ba0eab60Smacallanelse 4728aee7dae4Smrg eval $cacheid=no 4729ba0eab60Smacallanfi 4730aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext \ 4731aee7dae4Smrg conftest$ac_exeext conftest.$ac_ext 4732ba0eab60Smacallanfi 4733ba0eab60Smacallan 4734ba0eab60Smacallan 4735aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 4736ba0eab60Smacallan 4737aee7dae4Smrg eval supported=\$$cacheid 4738aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4739aee7dae4Smrg$as_echo "$supported" >&6; } 4740aee7dae4Smrg if test "$supported" = "yes" ; then 4741aee7dae4Smrg BASE_CFLAGS="$BASE_CFLAGS -Wall" 4742aee7dae4Smrg found="yes" 4743aee7dae4Smrg fi 4744aee7dae4Smrg fi 4745ba0eab60Smacallan 4746ba0eab60Smacallan 4747aee7dae4Smrg 4748aee7dae4Smrg 4749aee7dae4Smrg 4750aee7dae4Smrg 4751aee7dae4Smrg 4752aee7dae4Smrg 4753aee7dae4Smrg 4754aee7dae4Smrg 4755aee7dae4Smrg 4756aee7dae4Smrg 4757aee7dae4Smrg 4758aee7dae4Smrg 4759aee7dae4Smrg 4760aee7dae4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 4761aee7dae4Smrg 4762aee7dae4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4763aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4764aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4765aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4766aee7dae4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4767aee7dae4Smrg $as_echo_n "(cached) " >&6 4768ba0eab60Smacallanelse 4769aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4770ba0eab60Smacallan/* end confdefs.h. */ 4771aee7dae4Smrgint i; 4772ba0eab60Smacallan_ACEOF 4773aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 4774aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 4775ba0eab60Smacallanelse 4776aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=no 4777ba0eab60Smacallanfi 4778aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4779aee7dae4Smrgfi 4780aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4781aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4782aee7dae4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4783aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 4784ba0eab60Smacallanfi 4785ba0eab60Smacallan 4786aee7dae4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4787aee7dae4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4788aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4789aee7dae4Smrg fi 4790aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4791aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4792aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4793aee7dae4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4794aee7dae4Smrg $as_echo_n "(cached) " >&6 4795aee7dae4Smrgelse 4796aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4797ba0eab60Smacallan/* end confdefs.h. */ 4798aee7dae4Smrgint i; 4799ba0eab60Smacallan_ACEOF 4800aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 4801aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 4802ba0eab60Smacallanelse 4803aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 4804ba0eab60Smacallanfi 4805aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4806ba0eab60Smacallanfi 4807aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4808aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4809aee7dae4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4810aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 4811ba0eab60Smacallanfi 4812ba0eab60Smacallan 4813aee7dae4Smrgfound="no" 4814ba0eab60Smacallan 4815aee7dae4Smrg if test $found = "no" ; then 4816aee7dae4Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4817aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4818aee7dae4Smrg fi 4819aee7dae4Smrg 4820aee7dae4Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4821aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4822aee7dae4Smrg fi 4823aee7dae4Smrg 4824aee7dae4Smrg CFLAGS="$CFLAGS -Wpointer-arith" 4825aee7dae4Smrg 4826aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-arith" >&5 4827aee7dae4Smrg$as_echo_n "checking if $CC supports-Wpointer-arith... " >&6; } 4828aee7dae4Smrg cacheid=xorg_cv_cc_flag__Wpointer_arith 4829aee7dae4Smrg if eval \${$cacheid+:} false; then : 4830aee7dae4Smrg $as_echo_n "(cached) " >&6 4831ba0eab60Smacallanelse 4832aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4833ba0eab60Smacallan/* end confdefs.h. */ 4834aee7dae4Smrgint i; 4835aee7dae4Smrgint 4836aee7dae4Smrgmain () 4837aee7dae4Smrg{ 4838aee7dae4Smrg 4839aee7dae4Smrg ; 4840aee7dae4Smrg return 0; 4841aee7dae4Smrg} 4842ba0eab60Smacallan_ACEOF 4843aee7dae4Smrgif ac_fn_c_try_link "$LINENO"; then : 4844aee7dae4Smrg eval $cacheid=yes 4845ba0eab60Smacallanelse 4846aee7dae4Smrg eval $cacheid=no 4847ba0eab60Smacallanfi 4848aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext \ 4849aee7dae4Smrg conftest$ac_exeext conftest.$ac_ext 4850ba0eab60Smacallanfi 4851ba0eab60Smacallan 4852aee7dae4Smrg 4853aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 4854aee7dae4Smrg 4855aee7dae4Smrg eval supported=\$$cacheid 4856aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4857aee7dae4Smrg$as_echo "$supported" >&6; } 4858aee7dae4Smrg if test "$supported" = "yes" ; then 4859aee7dae4Smrg BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 4860aee7dae4Smrg found="yes" 4861aee7dae4Smrg fi 4862aee7dae4Smrg fi 4863aee7dae4Smrg 4864aee7dae4Smrg 4865aee7dae4Smrg 4866aee7dae4Smrg 4867aee7dae4Smrg 4868aee7dae4Smrg 4869aee7dae4Smrg 4870aee7dae4Smrg 4871aee7dae4Smrg 4872aee7dae4Smrg 4873aee7dae4Smrg 4874aee7dae4Smrg 4875aee7dae4Smrg 4876aee7dae4Smrg 4877aee7dae4Smrg 4878aee7dae4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 4879aee7dae4Smrg 4880aee7dae4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4881aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4882aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4883aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4884aee7dae4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4885aee7dae4Smrg $as_echo_n "(cached) " >&6 4886aee7dae4Smrgelse 4887aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4888ba0eab60Smacallan/* end confdefs.h. */ 4889aee7dae4Smrgint i; 4890ba0eab60Smacallan_ACEOF 4891aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 4892aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 4893ba0eab60Smacallanelse 4894aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=no 4895ba0eab60Smacallanfi 4896aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4897aee7dae4Smrgfi 4898aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4899aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4900aee7dae4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4901aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 4902ba0eab60Smacallanfi 4903ba0eab60Smacallan 4904aee7dae4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4905aee7dae4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4906aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4907aee7dae4Smrg fi 4908aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4909aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4910aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4911aee7dae4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4912aee7dae4Smrg $as_echo_n "(cached) " >&6 4913aee7dae4Smrgelse 4914aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4915aee7dae4Smrg/* end confdefs.h. */ 4916aee7dae4Smrgint i; 4917aee7dae4Smrg_ACEOF 4918aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 4919aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 4920ba0eab60Smacallanelse 4921aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 4922aee7dae4Smrgfi 4923aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4924aee7dae4Smrgfi 4925aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4926aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4927aee7dae4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4928aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 4929ba0eab60Smacallanfi 4930ba0eab60Smacallan 4931aee7dae4Smrgfound="no" 4932aee7dae4Smrg 4933aee7dae4Smrg if test $found = "no" ; then 4934aee7dae4Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4935aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4936aee7dae4Smrg fi 4937ba0eab60Smacallan 4938aee7dae4Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4939aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4940aee7dae4Smrg fi 4941ba0eab60Smacallan 4942aee7dae4Smrg CFLAGS="$CFLAGS -Wmissing-declarations" 4943aee7dae4Smrg 4944aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-declarations" >&5 4945aee7dae4Smrg$as_echo_n "checking if $CC supports-Wmissing-declarations... " >&6; } 4946aee7dae4Smrg cacheid=xorg_cv_cc_flag__Wmissing_declarations 4947aee7dae4Smrg if eval \${$cacheid+:} false; then : 4948aee7dae4Smrg $as_echo_n "(cached) " >&6 4949ba0eab60Smacallanelse 4950aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4951ba0eab60Smacallan/* end confdefs.h. */ 4952aee7dae4Smrgint i; 4953ba0eab60Smacallanint 4954ba0eab60Smacallanmain () 4955ba0eab60Smacallan{ 4956ba0eab60Smacallan 4957ba0eab60Smacallan ; 4958ba0eab60Smacallan return 0; 4959ba0eab60Smacallan} 4960ba0eab60Smacallan_ACEOF 4961aee7dae4Smrgif ac_fn_c_try_link "$LINENO"; then : 4962aee7dae4Smrg eval $cacheid=yes 4963ba0eab60Smacallanelse 4964aee7dae4Smrg eval $cacheid=no 4965aee7dae4Smrgfi 4966aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext \ 4967aee7dae4Smrg conftest$ac_exeext conftest.$ac_ext 4968ba0eab60Smacallanfi 4969ba0eab60Smacallan 4970ba0eab60Smacallan 4971aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 4972aee7dae4Smrg 4973aee7dae4Smrg eval supported=\$$cacheid 4974aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4975aee7dae4Smrg$as_echo "$supported" >&6; } 4976aee7dae4Smrg if test "$supported" = "yes" ; then 4977aee7dae4Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 4978aee7dae4Smrg found="yes" 4979aee7dae4Smrg fi 4980aee7dae4Smrg fi 4981aee7dae4Smrg 4982aee7dae4Smrg 4983aee7dae4Smrg 4984aee7dae4Smrg 4985aee7dae4Smrg 4986aee7dae4Smrg 4987aee7dae4Smrg 4988aee7dae4Smrg 4989aee7dae4Smrg 4990aee7dae4Smrg 4991aee7dae4Smrg 4992aee7dae4Smrg 4993aee7dae4Smrg 4994aee7dae4Smrg 4995aee7dae4Smrg 4996aee7dae4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 4997aee7dae4Smrg 4998aee7dae4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4999aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5000aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5001aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5002aee7dae4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5003aee7dae4Smrg $as_echo_n "(cached) " >&6 5004aee7dae4Smrgelse 5005aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5006aee7dae4Smrg/* end confdefs.h. */ 5007aee7dae4Smrgint i; 5008ba0eab60Smacallan_ACEOF 5009aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 5010aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 5011ba0eab60Smacallanelse 5012aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=no 5013ba0eab60Smacallanfi 5014aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5015aee7dae4Smrgfi 5016aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5017aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5018aee7dae4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5019aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5020ba0eab60Smacallanfi 5021ba0eab60Smacallan 5022aee7dae4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5023aee7dae4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5024aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5025aee7dae4Smrg fi 5026aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5027aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5028aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5029aee7dae4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5030aee7dae4Smrg $as_echo_n "(cached) " >&6 5031aee7dae4Smrgelse 5032aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5033ba0eab60Smacallan/* end confdefs.h. */ 5034aee7dae4Smrgint i; 5035ba0eab60Smacallan_ACEOF 5036aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 5037aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 5038ba0eab60Smacallanelse 5039aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 5040ba0eab60Smacallanfi 5041aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5042aee7dae4Smrgfi 5043aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5044aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5045aee7dae4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5046aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5047ba0eab60Smacallanfi 5048ba0eab60Smacallan 5049aee7dae4Smrgfound="no" 5050aee7dae4Smrg 5051aee7dae4Smrg if test $found = "no" ; then 5052aee7dae4Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5053aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5054aee7dae4Smrg fi 5055aee7dae4Smrg 5056aee7dae4Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5057aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5058aee7dae4Smrg fi 5059aee7dae4Smrg 5060aee7dae4Smrg CFLAGS="$CFLAGS -Wformat=2" 5061aee7dae4Smrg 5062aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat=2" >&5 5063aee7dae4Smrg$as_echo_n "checking if $CC supports-Wformat=2... " >&6; } 5064aee7dae4Smrg cacheid=xorg_cv_cc_flag__Wformat_2 5065aee7dae4Smrg if eval \${$cacheid+:} false; then : 5066aee7dae4Smrg $as_echo_n "(cached) " >&6 5067ba0eab60Smacallanelse 5068aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5069ba0eab60Smacallan/* end confdefs.h. */ 5070aee7dae4Smrgint i; 5071ba0eab60Smacallanint 5072ba0eab60Smacallanmain () 5073ba0eab60Smacallan{ 5074aee7dae4Smrg 5075aee7dae4Smrg ; 5076aee7dae4Smrg return 0; 5077ba0eab60Smacallan} 5078ba0eab60Smacallan_ACEOF 5079aee7dae4Smrgif ac_fn_c_try_link "$LINENO"; then : 5080aee7dae4Smrg eval $cacheid=yes 5081ba0eab60Smacallanelse 5082aee7dae4Smrg eval $cacheid=no 5083ba0eab60Smacallanfi 5084aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext \ 5085aee7dae4Smrg conftest$ac_exeext conftest.$ac_ext 5086ba0eab60Smacallanfi 5087aee7dae4Smrg 5088aee7dae4Smrg 5089aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5090aee7dae4Smrg 5091aee7dae4Smrg eval supported=\$$cacheid 5092aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5093aee7dae4Smrg$as_echo "$supported" >&6; } 5094aee7dae4Smrg if test "$supported" = "yes" ; then 5095aee7dae4Smrg BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5096aee7dae4Smrg found="yes" 5097aee7dae4Smrg fi 5098aee7dae4Smrg fi 5099aee7dae4Smrg 5100aee7dae4Smrg if test $found = "no" ; then 5101aee7dae4Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5102aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5103aee7dae4Smrg fi 5104aee7dae4Smrg 5105aee7dae4Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5106aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5107aee7dae4Smrg fi 5108aee7dae4Smrg 5109aee7dae4Smrg CFLAGS="$CFLAGS -Wformat" 5110aee7dae4Smrg 5111aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat" >&5 5112aee7dae4Smrg$as_echo_n "checking if $CC supports-Wformat... " >&6; } 5113aee7dae4Smrg cacheid=xorg_cv_cc_flag__Wformat 5114aee7dae4Smrg if eval \${$cacheid+:} false; then : 5115aee7dae4Smrg $as_echo_n "(cached) " >&6 5116aee7dae4Smrgelse 5117aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5118aee7dae4Smrg/* end confdefs.h. */ 5119aee7dae4Smrgint i; 5120aee7dae4Smrgint 5121aee7dae4Smrgmain () 5122aee7dae4Smrg{ 5123aee7dae4Smrg 5124aee7dae4Smrg ; 5125aee7dae4Smrg return 0; 5126aee7dae4Smrg} 5127aee7dae4Smrg_ACEOF 5128aee7dae4Smrgif ac_fn_c_try_link "$LINENO"; then : 5129aee7dae4Smrg eval $cacheid=yes 5130aee7dae4Smrgelse 5131aee7dae4Smrg eval $cacheid=no 5132ba0eab60Smacallanfi 5133aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext \ 5134aee7dae4Smrg conftest$ac_exeext conftest.$ac_ext 5135ba0eab60Smacallanfi 5136ba0eab60Smacallan 5137ba0eab60Smacallan 5138aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5139ba0eab60Smacallan 5140aee7dae4Smrg eval supported=\$$cacheid 5141aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5142aee7dae4Smrg$as_echo "$supported" >&6; } 5143aee7dae4Smrg if test "$supported" = "yes" ; then 5144aee7dae4Smrg BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5145aee7dae4Smrg found="yes" 5146aee7dae4Smrg fi 5147aee7dae4Smrg fi 5148ba0eab60Smacallan 5149ba0eab60Smacallan 5150ba0eab60Smacallan 5151ba0eab60Smacallan 5152ba0eab60Smacallan 5153ba0eab60Smacallan 5154ba0eab60Smacallan 5155ba0eab60Smacallan 5156ba0eab60Smacallan 5157ba0eab60Smacallan 5158ba0eab60Smacallan 5159ba0eab60Smacallan 5160ba0eab60Smacallan 5161ba0eab60Smacallan 5162ba0eab60Smacallan 5163ba0eab60Smacallan 5164aee7dae4Smrg 5165aee7dae4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 5166aee7dae4Smrg 5167aee7dae4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5168aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5169aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5170aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5171aee7dae4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5172aee7dae4Smrg $as_echo_n "(cached) " >&6 5173aee7dae4Smrgelse 5174aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5175ba0eab60Smacallan/* end confdefs.h. */ 5176aee7dae4Smrgint i; 5177ba0eab60Smacallan_ACEOF 5178aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 5179aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 5180ba0eab60Smacallanelse 5181aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=no 5182aee7dae4Smrgfi 5183aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5184aee7dae4Smrgfi 5185aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5186aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5187aee7dae4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5188aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5189ba0eab60Smacallanfi 5190ba0eab60Smacallan 5191aee7dae4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5192aee7dae4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5193aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5194aee7dae4Smrg fi 5195aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5196aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5197aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5198aee7dae4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5199aee7dae4Smrg $as_echo_n "(cached) " >&6 5200aee7dae4Smrgelse 5201aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5202ba0eab60Smacallan/* end confdefs.h. */ 5203aee7dae4Smrgint i; 5204ba0eab60Smacallan_ACEOF 5205aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 5206aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 5207ba0eab60Smacallanelse 5208aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 5209ba0eab60Smacallanfi 5210aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5211aee7dae4Smrgfi 5212aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5213aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5214aee7dae4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5215aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5216ba0eab60Smacallanfi 5217ba0eab60Smacallan 5218aee7dae4Smrgfound="no" 5219aee7dae4Smrg 5220aee7dae4Smrg if test $found = "no" ; then 5221aee7dae4Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5222aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5223aee7dae4Smrg fi 5224aee7dae4Smrg 5225aee7dae4Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5226aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5227aee7dae4Smrg fi 5228aee7dae4Smrg 5229aee7dae4Smrg CFLAGS="$CFLAGS -Wstrict-prototypes" 5230aee7dae4Smrg 5231aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wstrict-prototypes" >&5 5232aee7dae4Smrg$as_echo_n "checking if $CC supports-Wstrict-prototypes... " >&6; } 5233aee7dae4Smrg cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5234aee7dae4Smrg if eval \${$cacheid+:} false; then : 5235aee7dae4Smrg $as_echo_n "(cached) " >&6 5236ba0eab60Smacallanelse 5237aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5238aee7dae4Smrg/* end confdefs.h. */ 5239aee7dae4Smrgint i; 5240aee7dae4Smrgint 5241aee7dae4Smrgmain () 5242aee7dae4Smrg{ 5243ba0eab60Smacallan 5244aee7dae4Smrg ; 5245aee7dae4Smrg return 0; 5246aee7dae4Smrg} 5247ba0eab60Smacallan_ACEOF 5248aee7dae4Smrgif ac_fn_c_try_link "$LINENO"; then : 5249aee7dae4Smrg eval $cacheid=yes 5250aee7dae4Smrgelse 5251aee7dae4Smrg eval $cacheid=no 5252aee7dae4Smrgfi 5253aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext \ 5254aee7dae4Smrg conftest$ac_exeext conftest.$ac_ext 5255ba0eab60Smacallanfi 5256ba0eab60Smacallan 5257ba0eab60Smacallan 5258aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5259aee7dae4Smrg 5260aee7dae4Smrg eval supported=\$$cacheid 5261aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5262aee7dae4Smrg$as_echo "$supported" >&6; } 5263aee7dae4Smrg if test "$supported" = "yes" ; then 5264aee7dae4Smrg BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5265aee7dae4Smrg found="yes" 5266aee7dae4Smrg fi 5267aee7dae4Smrg fi 5268aee7dae4Smrg 5269aee7dae4Smrg 5270aee7dae4Smrg 5271aee7dae4Smrg 5272aee7dae4Smrg 5273aee7dae4Smrg 5274aee7dae4Smrg 5275aee7dae4Smrg 5276aee7dae4Smrg 5277aee7dae4Smrg 5278aee7dae4Smrg 5279aee7dae4Smrg 5280aee7dae4Smrg 5281aee7dae4Smrg 5282aee7dae4Smrg 5283aee7dae4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 5284aee7dae4Smrg 5285aee7dae4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5286aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5287aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5288aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5289aee7dae4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5290aee7dae4Smrg $as_echo_n "(cached) " >&6 5291ba0eab60Smacallanelse 5292aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5293aee7dae4Smrg/* end confdefs.h. */ 5294aee7dae4Smrgint i; 5295aee7dae4Smrg_ACEOF 5296aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 5297aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 5298ba0eab60Smacallanelse 5299aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=no 5300ba0eab60Smacallanfi 5301aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5302ba0eab60Smacallanfi 5303aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5304aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5305aee7dae4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5306aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5307ba0eab60Smacallanfi 5308ba0eab60Smacallan 5309aee7dae4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5310aee7dae4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5311aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5312aee7dae4Smrg fi 5313aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5314aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5315aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5316aee7dae4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5317aee7dae4Smrg $as_echo_n "(cached) " >&6 5318ba0eab60Smacallanelse 5319aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5320aee7dae4Smrg/* end confdefs.h. */ 5321aee7dae4Smrgint i; 5322aee7dae4Smrg_ACEOF 5323aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 5324aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 5325ba0eab60Smacallanelse 5326aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 5327ba0eab60Smacallanfi 5328aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5329ba0eab60Smacallanfi 5330aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5331aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5332aee7dae4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5333aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5334ba0eab60Smacallanfi 5335ba0eab60Smacallan 5336aee7dae4Smrgfound="no" 5337ba0eab60Smacallan 5338aee7dae4Smrg if test $found = "no" ; then 5339aee7dae4Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5340aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5341aee7dae4Smrg fi 5342ba0eab60Smacallan 5343aee7dae4Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5344aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5345aee7dae4Smrg fi 5346ba0eab60Smacallan 5347aee7dae4Smrg CFLAGS="$CFLAGS -Wmissing-prototypes" 5348ba0eab60Smacallan 5349aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-prototypes" >&5 5350aee7dae4Smrg$as_echo_n "checking if $CC supports-Wmissing-prototypes... " >&6; } 5351aee7dae4Smrg cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5352aee7dae4Smrg if eval \${$cacheid+:} false; then : 5353aee7dae4Smrg $as_echo_n "(cached) " >&6 5354ba0eab60Smacallanelse 5355aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5356ba0eab60Smacallan/* end confdefs.h. */ 5357aee7dae4Smrgint i; 5358ba0eab60Smacallanint 5359ba0eab60Smacallanmain () 5360ba0eab60Smacallan{ 5361ba0eab60Smacallan 5362ba0eab60Smacallan ; 5363ba0eab60Smacallan return 0; 5364ba0eab60Smacallan} 5365ba0eab60Smacallan_ACEOF 5366aee7dae4Smrgif ac_fn_c_try_link "$LINENO"; then : 5367aee7dae4Smrg eval $cacheid=yes 5368ba0eab60Smacallanelse 5369aee7dae4Smrg eval $cacheid=no 5370ba0eab60Smacallanfi 5371aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext \ 5372aee7dae4Smrg conftest$ac_exeext conftest.$ac_ext 5373ba0eab60Smacallanfi 5374ba0eab60Smacallan 5375ba0eab60Smacallan 5376aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5377aee7dae4Smrg 5378aee7dae4Smrg eval supported=\$$cacheid 5379aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5380aee7dae4Smrg$as_echo "$supported" >&6; } 5381aee7dae4Smrg if test "$supported" = "yes" ; then 5382aee7dae4Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5383aee7dae4Smrg found="yes" 5384aee7dae4Smrg fi 5385aee7dae4Smrg fi 5386aee7dae4Smrg 5387aee7dae4Smrg 5388aee7dae4Smrg 5389aee7dae4Smrg 5390aee7dae4Smrg 5391aee7dae4Smrg 5392aee7dae4Smrg 5393aee7dae4Smrg 5394aee7dae4Smrg 5395aee7dae4Smrg 5396aee7dae4Smrg 5397aee7dae4Smrg 5398aee7dae4Smrg 5399aee7dae4Smrg 5400aee7dae4Smrg 5401aee7dae4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 5402aee7dae4Smrg 5403aee7dae4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5404aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5405aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5406aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5407aee7dae4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5408aee7dae4Smrg $as_echo_n "(cached) " >&6 5409aee7dae4Smrgelse 5410aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5411aee7dae4Smrg/* end confdefs.h. */ 5412aee7dae4Smrgint i; 5413ba0eab60Smacallan_ACEOF 5414aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 5415aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 5416ba0eab60Smacallanelse 5417aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=no 5418ba0eab60Smacallanfi 5419aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5420ba0eab60Smacallanfi 5421aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5422aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5423aee7dae4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5424aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5425ba0eab60Smacallanfi 5426aee7dae4Smrg 5427aee7dae4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5428aee7dae4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5429aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5430aee7dae4Smrg fi 5431aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5432aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5433aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5434aee7dae4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5435aee7dae4Smrg $as_echo_n "(cached) " >&6 5436aee7dae4Smrgelse 5437aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5438aee7dae4Smrg/* end confdefs.h. */ 5439aee7dae4Smrgint i; 5440ba0eab60Smacallan_ACEOF 5441aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 5442aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 5443aee7dae4Smrgelse 5444aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 5445aee7dae4Smrgfi 5446aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5447aee7dae4Smrgfi 5448aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5449aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5450aee7dae4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5451aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5452aee7dae4Smrgfi 5453aee7dae4Smrg 5454aee7dae4Smrgfound="no" 5455aee7dae4Smrg 5456aee7dae4Smrg if test $found = "no" ; then 5457aee7dae4Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5458aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5459aee7dae4Smrg fi 5460aee7dae4Smrg 5461aee7dae4Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5462aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5463aee7dae4Smrg fi 5464aee7dae4Smrg 5465aee7dae4Smrg CFLAGS="$CFLAGS -Wnested-externs" 5466aee7dae4Smrg 5467aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnested-externs" >&5 5468aee7dae4Smrg$as_echo_n "checking if $CC supports-Wnested-externs... " >&6; } 5469aee7dae4Smrg cacheid=xorg_cv_cc_flag__Wnested_externs 5470aee7dae4Smrg if eval \${$cacheid+:} false; then : 5471aee7dae4Smrg $as_echo_n "(cached) " >&6 5472aee7dae4Smrgelse 5473aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5474ba0eab60Smacallan/* end confdefs.h. */ 5475aee7dae4Smrgint i; 5476ba0eab60Smacallanint 5477ba0eab60Smacallanmain () 5478ba0eab60Smacallan{ 5479aee7dae4Smrg 5480ba0eab60Smacallan ; 5481ba0eab60Smacallan return 0; 5482ba0eab60Smacallan} 5483ba0eab60Smacallan_ACEOF 5484aee7dae4Smrgif ac_fn_c_try_link "$LINENO"; then : 5485aee7dae4Smrg eval $cacheid=yes 5486ba0eab60Smacallanelse 5487aee7dae4Smrg eval $cacheid=no 5488aee7dae4Smrgfi 5489aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext \ 5490aee7dae4Smrg conftest$ac_exeext conftest.$ac_ext 5491aee7dae4Smrgfi 5492ba0eab60Smacallan 5493aee7dae4Smrg 5494aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5495aee7dae4Smrg 5496aee7dae4Smrg eval supported=\$$cacheid 5497aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5498aee7dae4Smrg$as_echo "$supported" >&6; } 5499aee7dae4Smrg if test "$supported" = "yes" ; then 5500aee7dae4Smrg BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5501aee7dae4Smrg found="yes" 5502aee7dae4Smrg fi 5503aee7dae4Smrg fi 5504aee7dae4Smrg 5505aee7dae4Smrg 5506aee7dae4Smrg 5507aee7dae4Smrg 5508aee7dae4Smrg 5509aee7dae4Smrg 5510aee7dae4Smrg 5511aee7dae4Smrg 5512aee7dae4Smrg 5513aee7dae4Smrg 5514aee7dae4Smrg 5515aee7dae4Smrg 5516aee7dae4Smrg 5517aee7dae4Smrg 5518aee7dae4Smrg 5519aee7dae4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 5520aee7dae4Smrg 5521aee7dae4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5522aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5523aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5524aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5525aee7dae4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5526aee7dae4Smrg $as_echo_n "(cached) " >&6 5527aee7dae4Smrgelse 5528aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5529aee7dae4Smrg/* end confdefs.h. */ 5530aee7dae4Smrgint i; 5531aee7dae4Smrg_ACEOF 5532aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 5533aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 5534aee7dae4Smrgelse 5535aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=no 5536aee7dae4Smrgfi 5537aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5538ba0eab60Smacallanfi 5539aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5540aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5541aee7dae4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5542aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5543aee7dae4Smrgfi 5544aee7dae4Smrg 5545aee7dae4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5546aee7dae4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5547aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5548aee7dae4Smrg fi 5549aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5550aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5551aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5552aee7dae4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5553aee7dae4Smrg $as_echo_n "(cached) " >&6 5554aee7dae4Smrgelse 5555aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5556aee7dae4Smrg/* end confdefs.h. */ 5557aee7dae4Smrgint i; 5558ba0eab60Smacallan_ACEOF 5559aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 5560aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 5561aee7dae4Smrgelse 5562aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 5563aee7dae4Smrgfi 5564aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5565aee7dae4Smrgfi 5566aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5567aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5568aee7dae4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5569aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5570aee7dae4Smrgfi 5571aee7dae4Smrg 5572aee7dae4Smrgfound="no" 5573aee7dae4Smrg 5574aee7dae4Smrg if test $found = "no" ; then 5575aee7dae4Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5576aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5577aee7dae4Smrg fi 5578aee7dae4Smrg 5579aee7dae4Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5580aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5581aee7dae4Smrg fi 5582aee7dae4Smrg 5583aee7dae4Smrg CFLAGS="$CFLAGS -Wbad-function-cast" 5584aee7dae4Smrg 5585aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wbad-function-cast" >&5 5586aee7dae4Smrg$as_echo_n "checking if $CC supports-Wbad-function-cast... " >&6; } 5587aee7dae4Smrg cacheid=xorg_cv_cc_flag__Wbad_function_cast 5588aee7dae4Smrg if eval \${$cacheid+:} false; then : 5589aee7dae4Smrg $as_echo_n "(cached) " >&6 5590aee7dae4Smrgelse 5591aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5592ba0eab60Smacallan/* end confdefs.h. */ 5593aee7dae4Smrgint i; 5594ba0eab60Smacallanint 5595ba0eab60Smacallanmain () 5596ba0eab60Smacallan{ 5597aee7dae4Smrg 5598ba0eab60Smacallan ; 5599ba0eab60Smacallan return 0; 5600ba0eab60Smacallan} 5601ba0eab60Smacallan_ACEOF 5602aee7dae4Smrgif ac_fn_c_try_link "$LINENO"; then : 5603aee7dae4Smrg eval $cacheid=yes 5604ba0eab60Smacallanelse 5605aee7dae4Smrg eval $cacheid=no 5606ba0eab60Smacallanfi 5607aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext \ 5608aee7dae4Smrg conftest$ac_exeext conftest.$ac_ext 5609ba0eab60Smacallanfi 5610ba0eab60Smacallan 5611ba0eab60Smacallan 5612aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5613aee7dae4Smrg 5614aee7dae4Smrg eval supported=\$$cacheid 5615aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5616aee7dae4Smrg$as_echo "$supported" >&6; } 5617aee7dae4Smrg if test "$supported" = "yes" ; then 5618aee7dae4Smrg BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5619aee7dae4Smrg found="yes" 5620aee7dae4Smrg fi 5621aee7dae4Smrg fi 5622aee7dae4Smrg 5623aee7dae4Smrg 5624aee7dae4Smrg 5625ba0eab60Smacallan 5626ba0eab60Smacallan 5627ba0eab60Smacallan 5628ba0eab60Smacallan 5629ba0eab60Smacallan 5630ba0eab60Smacallan 5631ba0eab60Smacallan 5632ba0eab60Smacallan 5633ba0eab60Smacallan 5634ba0eab60Smacallan 5635ba0eab60Smacallan 5636ba0eab60Smacallan 5637aee7dae4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 5638aee7dae4Smrg 5639aee7dae4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5640aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5641aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5642aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5643aee7dae4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5644aee7dae4Smrg $as_echo_n "(cached) " >&6 5645ba0eab60Smacallanelse 5646aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5647ba0eab60Smacallan/* end confdefs.h. */ 5648aee7dae4Smrgint i; 5649ba0eab60Smacallan_ACEOF 5650aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 5651aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 5652ba0eab60Smacallanelse 5653aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=no 5654ba0eab60Smacallanfi 5655aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5656aee7dae4Smrgfi 5657aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5658aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5659aee7dae4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5660aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5661ba0eab60Smacallanfi 5662ba0eab60Smacallan 5663aee7dae4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5664aee7dae4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5665aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5666aee7dae4Smrg fi 5667aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5668aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5669aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5670aee7dae4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5671aee7dae4Smrg $as_echo_n "(cached) " >&6 5672aee7dae4Smrgelse 5673aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5674ba0eab60Smacallan/* end confdefs.h. */ 5675aee7dae4Smrgint i; 5676ba0eab60Smacallan_ACEOF 5677aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 5678aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 5679ba0eab60Smacallanelse 5680aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 5681ba0eab60Smacallanfi 5682aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5683ba0eab60Smacallanfi 5684aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5685aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5686aee7dae4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5687aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5688ba0eab60Smacallanfi 5689ba0eab60Smacallan 5690aee7dae4Smrgfound="no" 5691ba0eab60Smacallan 5692aee7dae4Smrg if test $found = "no" ; then 5693aee7dae4Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5694aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5695aee7dae4Smrg fi 5696aee7dae4Smrg 5697aee7dae4Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5698aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5699aee7dae4Smrg fi 5700aee7dae4Smrg 5701aee7dae4Smrg CFLAGS="$CFLAGS -Wold-style-definition" 5702aee7dae4Smrg 5703aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wold-style-definition" >&5 5704aee7dae4Smrg$as_echo_n "checking if $CC supports-Wold-style-definition... " >&6; } 5705aee7dae4Smrg cacheid=xorg_cv_cc_flag__Wold_style_definition 5706aee7dae4Smrg if eval \${$cacheid+:} false; then : 5707aee7dae4Smrg $as_echo_n "(cached) " >&6 5708ba0eab60Smacallanelse 5709aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5710ba0eab60Smacallan/* end confdefs.h. */ 5711aee7dae4Smrgint i; 5712aee7dae4Smrgint 5713aee7dae4Smrgmain () 5714aee7dae4Smrg{ 5715aee7dae4Smrg 5716aee7dae4Smrg ; 5717aee7dae4Smrg return 0; 5718aee7dae4Smrg} 5719ba0eab60Smacallan_ACEOF 5720aee7dae4Smrgif ac_fn_c_try_link "$LINENO"; then : 5721aee7dae4Smrg eval $cacheid=yes 5722ba0eab60Smacallanelse 5723aee7dae4Smrg eval $cacheid=no 5724ba0eab60Smacallanfi 5725aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext \ 5726aee7dae4Smrg conftest$ac_exeext conftest.$ac_ext 5727ba0eab60Smacallanfi 5728ba0eab60Smacallan 5729ba0eab60Smacallan 5730aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5731ba0eab60Smacallan 5732aee7dae4Smrg eval supported=\$$cacheid 5733aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5734aee7dae4Smrg$as_echo "$supported" >&6; } 5735aee7dae4Smrg if test "$supported" = "yes" ; then 5736aee7dae4Smrg BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5737aee7dae4Smrg found="yes" 5738aee7dae4Smrg fi 5739aee7dae4Smrg fi 5740ba0eab60Smacallan 5741ba0eab60Smacallan 5742ba0eab60Smacallan 5743ba0eab60Smacallan 5744aee7dae4Smrg 5745aee7dae4Smrg 5746aee7dae4Smrg 5747aee7dae4Smrg 5748aee7dae4Smrg 5749aee7dae4Smrg 5750aee7dae4Smrg 5751aee7dae4Smrg 5752aee7dae4Smrg 5753aee7dae4Smrg 5754aee7dae4Smrg 5755aee7dae4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 5756aee7dae4Smrg 5757aee7dae4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5758aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5759aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5760aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5761aee7dae4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5762aee7dae4Smrg $as_echo_n "(cached) " >&6 5763ba0eab60Smacallanelse 5764aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5765aee7dae4Smrg/* end confdefs.h. */ 5766aee7dae4Smrgint i; 5767aee7dae4Smrg_ACEOF 5768aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 5769aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 5770ba0eab60Smacallanelse 5771aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=no 5772ba0eab60Smacallanfi 5773aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5774ba0eab60Smacallanfi 5775aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5776aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5777aee7dae4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5778aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5779ba0eab60Smacallanfi 5780ba0eab60Smacallan 5781aee7dae4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5782aee7dae4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5783aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5784aee7dae4Smrg fi 5785aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5786aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5787aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5788aee7dae4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5789aee7dae4Smrg $as_echo_n "(cached) " >&6 5790ba0eab60Smacallanelse 5791aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5792aee7dae4Smrg/* end confdefs.h. */ 5793aee7dae4Smrgint i; 5794aee7dae4Smrg_ACEOF 5795aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 5796aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 5797ba0eab60Smacallanelse 5798aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 5799ba0eab60Smacallanfi 5800aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5801ba0eab60Smacallanfi 5802aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5803aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5804aee7dae4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5805aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5806ba0eab60Smacallanfi 5807ba0eab60Smacallan 5808aee7dae4Smrgfound="no" 5809ba0eab60Smacallan 5810aee7dae4Smrg if test $found = "no" ; then 5811aee7dae4Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5812aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5813aee7dae4Smrg fi 5814ba0eab60Smacallan 5815aee7dae4Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5816aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5817aee7dae4Smrg fi 5818ba0eab60Smacallan 5819aee7dae4Smrg CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5820ba0eab60Smacallan 5821aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wdeclaration-after-statement" >&5 5822aee7dae4Smrg$as_echo_n "checking if $CC supports-Wdeclaration-after-statement... " >&6; } 5823aee7dae4Smrg cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 5824aee7dae4Smrg if eval \${$cacheid+:} false; then : 5825aee7dae4Smrg $as_echo_n "(cached) " >&6 5826ba0eab60Smacallanelse 5827aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5828aee7dae4Smrg/* end confdefs.h. */ 5829aee7dae4Smrgint i; 5830aee7dae4Smrgint 5831aee7dae4Smrgmain () 5832aee7dae4Smrg{ 5833ba0eab60Smacallan 5834aee7dae4Smrg ; 5835aee7dae4Smrg return 0; 5836aee7dae4Smrg} 5837aee7dae4Smrg_ACEOF 5838aee7dae4Smrgif ac_fn_c_try_link "$LINENO"; then : 5839aee7dae4Smrg eval $cacheid=yes 5840aee7dae4Smrgelse 5841aee7dae4Smrg eval $cacheid=no 5842ba0eab60Smacallanfi 5843aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext \ 5844aee7dae4Smrg conftest$ac_exeext conftest.$ac_ext 5845ba0eab60Smacallanfi 5846ba0eab60Smacallan 5847aee7dae4Smrg 5848aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5849aee7dae4Smrg 5850aee7dae4Smrg eval supported=\$$cacheid 5851aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5852aee7dae4Smrg$as_echo "$supported" >&6; } 5853aee7dae4Smrg if test "$supported" = "yes" ; then 5854aee7dae4Smrg BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 5855aee7dae4Smrg found="yes" 5856aee7dae4Smrg fi 5857aee7dae4Smrg fi 5858aee7dae4Smrg 5859aee7dae4Smrg 5860aee7dae4Smrg 5861aee7dae4Smrg 5862aee7dae4Smrg 5863aee7dae4Smrg# This chunk adds additional warnings that could catch undesired effects. 5864aee7dae4Smrg 5865aee7dae4Smrg 5866aee7dae4Smrg 5867aee7dae4Smrg 5868aee7dae4Smrg 5869aee7dae4Smrg 5870aee7dae4Smrg 5871aee7dae4Smrg 5872aee7dae4Smrg 5873aee7dae4Smrg 5874aee7dae4Smrg 5875aee7dae4Smrg 5876aee7dae4Smrg 5877aee7dae4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 5878aee7dae4Smrg 5879aee7dae4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5880aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5881aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5882aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5883aee7dae4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5884aee7dae4Smrg $as_echo_n "(cached) " >&6 5885aee7dae4Smrgelse 5886aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5887aee7dae4Smrg/* end confdefs.h. */ 5888aee7dae4Smrgint i; 5889ba0eab60Smacallan_ACEOF 5890aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 5891aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 5892ba0eab60Smacallanelse 5893aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=no 5894ba0eab60Smacallanfi 5895aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5896ba0eab60Smacallanfi 5897aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5898aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5899aee7dae4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5900aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5901aee7dae4Smrgfi 5902aee7dae4Smrg 5903aee7dae4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5904aee7dae4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5905aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5906aee7dae4Smrg fi 5907aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5908aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5909aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5910aee7dae4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5911aee7dae4Smrg $as_echo_n "(cached) " >&6 5912ba0eab60Smacallanelse 5913aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5914aee7dae4Smrg/* end confdefs.h. */ 5915aee7dae4Smrgint i; 5916aee7dae4Smrg_ACEOF 5917aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 5918aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 5919aee7dae4Smrgelse 5920aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 5921aee7dae4Smrgfi 5922aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5923aee7dae4Smrgfi 5924aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5925aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5926aee7dae4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5927aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5928ba0eab60Smacallanfi 5929ba0eab60Smacallan 5930aee7dae4Smrgfound="no" 5931ba0eab60Smacallan 5932aee7dae4Smrg if test $found = "no" ; then 5933aee7dae4Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5934aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5935aee7dae4Smrg fi 5936ba0eab60Smacallan 5937aee7dae4Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5938aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5939aee7dae4Smrg fi 5940ba0eab60Smacallan 5941aee7dae4Smrg CFLAGS="$CFLAGS -Wunused" 5942ba0eab60Smacallan 5943aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wunused" >&5 5944aee7dae4Smrg$as_echo_n "checking if $CC supports-Wunused... " >&6; } 5945aee7dae4Smrg cacheid=xorg_cv_cc_flag__Wunused 5946aee7dae4Smrg if eval \${$cacheid+:} false; then : 5947aee7dae4Smrg $as_echo_n "(cached) " >&6 5948ba0eab60Smacallanelse 5949aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5950aee7dae4Smrg/* end confdefs.h. */ 5951aee7dae4Smrgint i; 5952aee7dae4Smrgint 5953aee7dae4Smrgmain () 5954aee7dae4Smrg{ 5955ba0eab60Smacallan 5956aee7dae4Smrg ; 5957aee7dae4Smrg return 0; 5958aee7dae4Smrg} 5959aee7dae4Smrg_ACEOF 5960aee7dae4Smrgif ac_fn_c_try_link "$LINENO"; then : 5961aee7dae4Smrg eval $cacheid=yes 5962aee7dae4Smrgelse 5963aee7dae4Smrg eval $cacheid=no 5964aee7dae4Smrgfi 5965aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext \ 5966aee7dae4Smrg conftest$ac_exeext conftest.$ac_ext 5967aee7dae4Smrgfi 5968ba0eab60Smacallan 5969ba0eab60Smacallan 5970aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 5971ba0eab60Smacallan 5972aee7dae4Smrg eval supported=\$$cacheid 5973aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5974aee7dae4Smrg$as_echo "$supported" >&6; } 5975aee7dae4Smrg if test "$supported" = "yes" ; then 5976aee7dae4Smrg BASE_CFLAGS="$BASE_CFLAGS -Wunused" 5977aee7dae4Smrg found="yes" 5978aee7dae4Smrg fi 5979aee7dae4Smrg fi 5980ba0eab60Smacallan 5981ba0eab60Smacallan 5982ba0eab60Smacallan 5983ba0eab60Smacallan 5984aee7dae4Smrg 5985aee7dae4Smrg 5986aee7dae4Smrg 5987aee7dae4Smrg 5988aee7dae4Smrg 5989aee7dae4Smrg 5990aee7dae4Smrg 5991aee7dae4Smrg 5992aee7dae4Smrg 5993aee7dae4Smrg 5994aee7dae4Smrg 5995aee7dae4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 5996aee7dae4Smrg 5997aee7dae4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5998aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5999aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6000aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6001aee7dae4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6002aee7dae4Smrg $as_echo_n "(cached) " >&6 6003aee7dae4Smrgelse 6004aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6005aee7dae4Smrg/* end confdefs.h. */ 6006aee7dae4Smrgint i; 6007aee7dae4Smrg_ACEOF 6008aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 6009aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 6010aee7dae4Smrgelse 6011aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=no 6012aee7dae4Smrgfi 6013aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6014aee7dae4Smrgfi 6015aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6016aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6017aee7dae4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6018aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6019ba0eab60Smacallanfi 6020ba0eab60Smacallan 6021aee7dae4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6022aee7dae4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6023aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6024aee7dae4Smrg fi 6025aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6026aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6027aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6028aee7dae4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6029aee7dae4Smrg $as_echo_n "(cached) " >&6 6030ba0eab60Smacallanelse 6031aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6032aee7dae4Smrg/* end confdefs.h. */ 6033aee7dae4Smrgint i; 6034aee7dae4Smrg_ACEOF 6035aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 6036aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 6037aee7dae4Smrgelse 6038aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 6039aee7dae4Smrgfi 6040aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6041aee7dae4Smrgfi 6042aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6043aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6044aee7dae4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6045aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6046ba0eab60Smacallanfi 6047ba0eab60Smacallan 6048aee7dae4Smrgfound="no" 6049ba0eab60Smacallan 6050aee7dae4Smrg if test $found = "no" ; then 6051aee7dae4Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6052aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6053aee7dae4Smrg fi 6054ba0eab60Smacallan 6055aee7dae4Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6056aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6057aee7dae4Smrg fi 6058ba0eab60Smacallan 6059aee7dae4Smrg CFLAGS="$CFLAGS -Wuninitialized" 6060aee7dae4Smrg 6061aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wuninitialized" >&5 6062aee7dae4Smrg$as_echo_n "checking if $CC supports-Wuninitialized... " >&6; } 6063aee7dae4Smrg cacheid=xorg_cv_cc_flag__Wuninitialized 6064aee7dae4Smrg if eval \${$cacheid+:} false; then : 6065aee7dae4Smrg $as_echo_n "(cached) " >&6 6066ba0eab60Smacallanelse 6067aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6068aee7dae4Smrg/* end confdefs.h. */ 6069aee7dae4Smrgint i; 6070aee7dae4Smrgint 6071aee7dae4Smrgmain () 6072aee7dae4Smrg{ 6073ba0eab60Smacallan 6074aee7dae4Smrg ; 6075aee7dae4Smrg return 0; 6076aee7dae4Smrg} 6077aee7dae4Smrg_ACEOF 6078aee7dae4Smrgif ac_fn_c_try_link "$LINENO"; then : 6079aee7dae4Smrg eval $cacheid=yes 6080aee7dae4Smrgelse 6081aee7dae4Smrg eval $cacheid=no 6082aee7dae4Smrgfi 6083aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext \ 6084aee7dae4Smrg conftest$ac_exeext conftest.$ac_ext 6085aee7dae4Smrgfi 6086ba0eab60Smacallan 6087ba0eab60Smacallan 6088aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6089ba0eab60Smacallan 6090aee7dae4Smrg eval supported=\$$cacheid 6091aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6092aee7dae4Smrg$as_echo "$supported" >&6; } 6093aee7dae4Smrg if test "$supported" = "yes" ; then 6094aee7dae4Smrg BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6095aee7dae4Smrg found="yes" 6096aee7dae4Smrg fi 6097aee7dae4Smrg fi 6098ba0eab60Smacallan 6099ba0eab60Smacallan 6100ba0eab60Smacallan 6101ba0eab60Smacallan 6102ba0eab60Smacallan 6103ba0eab60Smacallan 6104ba0eab60Smacallan 6105ba0eab60Smacallan 6106ba0eab60Smacallan 6107ba0eab60Smacallan 6108ba0eab60Smacallan 6109ba0eab60Smacallan 6110ba0eab60Smacallan 6111ba0eab60Smacallan 6112ba0eab60Smacallan 6113aee7dae4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 6114ba0eab60Smacallan 6115aee7dae4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6116aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6117aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6118aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6119aee7dae4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6120aee7dae4Smrg $as_echo_n "(cached) " >&6 6121aee7dae4Smrgelse 6122aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6123aee7dae4Smrg/* end confdefs.h. */ 6124aee7dae4Smrgint i; 6125aee7dae4Smrg_ACEOF 6126aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 6127aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 6128aee7dae4Smrgelse 6129aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=no 6130ba0eab60Smacallanfi 6131aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6132ba0eab60Smacallanfi 6133aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6134aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6135aee7dae4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6136aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6137aee7dae4Smrgfi 6138aee7dae4Smrg 6139aee7dae4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6140aee7dae4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6141aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6142aee7dae4Smrg fi 6143aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6144aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6145aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6146aee7dae4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6147aee7dae4Smrg $as_echo_n "(cached) " >&6 6148aee7dae4Smrgelse 6149aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6150aee7dae4Smrg/* end confdefs.h. */ 6151aee7dae4Smrgint i; 6152aee7dae4Smrg_ACEOF 6153aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 6154aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 6155ba0eab60Smacallanelse 6156aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 6157ba0eab60Smacallanfi 6158aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6159aee7dae4Smrgfi 6160aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6161aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6162aee7dae4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6163aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6164aee7dae4Smrgfi 6165aee7dae4Smrg 6166aee7dae4Smrgfound="no" 6167aee7dae4Smrg 6168aee7dae4Smrg if test $found = "no" ; then 6169aee7dae4Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6170aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6171aee7dae4Smrg fi 6172ba0eab60Smacallan 6173aee7dae4Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6174aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6175aee7dae4Smrg fi 6176aee7dae4Smrg 6177aee7dae4Smrg CFLAGS="$CFLAGS -Wshadow" 6178aee7dae4Smrg 6179aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wshadow" >&5 6180aee7dae4Smrg$as_echo_n "checking if $CC supports-Wshadow... " >&6; } 6181aee7dae4Smrg cacheid=xorg_cv_cc_flag__Wshadow 6182aee7dae4Smrg if eval \${$cacheid+:} false; then : 6183aee7dae4Smrg $as_echo_n "(cached) " >&6 6184ba0eab60Smacallanelse 6185aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6186aee7dae4Smrg/* end confdefs.h. */ 6187aee7dae4Smrgint i; 6188aee7dae4Smrgint 6189aee7dae4Smrgmain () 6190aee7dae4Smrg{ 6191aee7dae4Smrg 6192aee7dae4Smrg ; 6193aee7dae4Smrg return 0; 6194aee7dae4Smrg} 6195aee7dae4Smrg_ACEOF 6196aee7dae4Smrgif ac_fn_c_try_link "$LINENO"; then : 6197aee7dae4Smrg eval $cacheid=yes 6198ba0eab60Smacallanelse 6199aee7dae4Smrg eval $cacheid=no 6200ba0eab60Smacallanfi 6201aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext \ 6202aee7dae4Smrg conftest$ac_exeext conftest.$ac_ext 6203ba0eab60Smacallanfi 6204ba0eab60Smacallan 6205ba0eab60Smacallan 6206aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6207ba0eab60Smacallan 6208aee7dae4Smrg eval supported=\$$cacheid 6209aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6210aee7dae4Smrg$as_echo "$supported" >&6; } 6211aee7dae4Smrg if test "$supported" = "yes" ; then 6212aee7dae4Smrg BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6213aee7dae4Smrg found="yes" 6214aee7dae4Smrg fi 6215aee7dae4Smrg fi 6216ba0eab60Smacallan 6217ba0eab60Smacallan 6218ba0eab60Smacallan 6219ba0eab60Smacallan 6220ba0eab60Smacallan 6221ba0eab60Smacallan 6222ba0eab60Smacallan 6223ba0eab60Smacallan 6224ba0eab60Smacallan 6225ba0eab60Smacallan 6226aee7dae4Smrg 6227aee7dae4Smrg 6228aee7dae4Smrg 6229aee7dae4Smrg 6230aee7dae4Smrg 6231aee7dae4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 6232aee7dae4Smrg 6233aee7dae4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6234aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6235aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6236aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6237aee7dae4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6238aee7dae4Smrg $as_echo_n "(cached) " >&6 6239ba0eab60Smacallanelse 6240aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6241aee7dae4Smrg/* end confdefs.h. */ 6242aee7dae4Smrgint i; 6243aee7dae4Smrg_ACEOF 6244aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 6245aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 6246ba0eab60Smacallanelse 6247aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=no 6248ba0eab60Smacallanfi 6249aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6250ba0eab60Smacallanfi 6251aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6252aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6253aee7dae4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6254aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6255ba0eab60Smacallanfi 6256ba0eab60Smacallan 6257aee7dae4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6258aee7dae4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6259aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6260aee7dae4Smrg fi 6261aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6262aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6263aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6264aee7dae4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6265aee7dae4Smrg $as_echo_n "(cached) " >&6 6266ba0eab60Smacallanelse 6267aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6268aee7dae4Smrg/* end confdefs.h. */ 6269aee7dae4Smrgint i; 6270aee7dae4Smrg_ACEOF 6271aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 6272aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 6273ba0eab60Smacallanelse 6274aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 6275ba0eab60Smacallanfi 6276aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6277ba0eab60Smacallanfi 6278aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6279aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6280aee7dae4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6281aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6282ba0eab60Smacallanfi 6283ba0eab60Smacallan 6284aee7dae4Smrgfound="no" 6285ba0eab60Smacallan 6286aee7dae4Smrg if test $found = "no" ; then 6287aee7dae4Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6288aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6289aee7dae4Smrg fi 6290aee7dae4Smrg 6291aee7dae4Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6292aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6293aee7dae4Smrg fi 6294aee7dae4Smrg 6295aee7dae4Smrg CFLAGS="$CFLAGS -Wcast-qual" 6296aee7dae4Smrg 6297aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wcast-qual" >&5 6298aee7dae4Smrg$as_echo_n "checking if $CC supports-Wcast-qual... " >&6; } 6299aee7dae4Smrg cacheid=xorg_cv_cc_flag__Wcast_qual 6300aee7dae4Smrg if eval \${$cacheid+:} false; then : 6301aee7dae4Smrg $as_echo_n "(cached) " >&6 6302ba0eab60Smacallanelse 6303aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6304aee7dae4Smrg/* end confdefs.h. */ 6305aee7dae4Smrgint i; 6306aee7dae4Smrgint 6307aee7dae4Smrgmain () 6308aee7dae4Smrg{ 6309ba0eab60Smacallan 6310aee7dae4Smrg ; 6311aee7dae4Smrg return 0; 6312aee7dae4Smrg} 6313aee7dae4Smrg_ACEOF 6314aee7dae4Smrgif ac_fn_c_try_link "$LINENO"; then : 6315aee7dae4Smrg eval $cacheid=yes 6316ba0eab60Smacallanelse 6317aee7dae4Smrg eval $cacheid=no 6318ba0eab60Smacallanfi 6319aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext \ 6320aee7dae4Smrg conftest$ac_exeext conftest.$ac_ext 6321ba0eab60Smacallanfi 6322ba0eab60Smacallan 6323ba0eab60Smacallan 6324aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6325ba0eab60Smacallan 6326aee7dae4Smrg eval supported=\$$cacheid 6327aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6328aee7dae4Smrg$as_echo "$supported" >&6; } 6329aee7dae4Smrg if test "$supported" = "yes" ; then 6330aee7dae4Smrg BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 6331aee7dae4Smrg found="yes" 6332aee7dae4Smrg fi 6333aee7dae4Smrg fi 6334ba0eab60Smacallan 6335ba0eab60Smacallan 6336ba0eab60Smacallan 6337ba0eab60Smacallan 6338ba0eab60Smacallan 6339ba0eab60Smacallan 6340ba0eab60Smacallan 6341ba0eab60Smacallan 6342ba0eab60Smacallan 6343ba0eab60Smacallan 6344ba0eab60Smacallan 6345ba0eab60Smacallan 6346ba0eab60Smacallan 6347ba0eab60Smacallan 6348ba0eab60Smacallan 6349aee7dae4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 6350aee7dae4Smrg 6351aee7dae4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6352aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6353aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6354aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6355aee7dae4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6356aee7dae4Smrg $as_echo_n "(cached) " >&6 6357aee7dae4Smrgelse 6358aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6359aee7dae4Smrg/* end confdefs.h. */ 6360aee7dae4Smrgint i; 6361aee7dae4Smrg_ACEOF 6362aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 6363aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 6364ba0eab60Smacallanelse 6365aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=no 6366aee7dae4Smrgfi 6367aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6368aee7dae4Smrgfi 6369aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6370aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6371aee7dae4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6372aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6373ba0eab60Smacallanfi 6374ba0eab60Smacallan 6375aee7dae4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6376aee7dae4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6377aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6378aee7dae4Smrg fi 6379aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6380aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6381aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6382aee7dae4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6383aee7dae4Smrg $as_echo_n "(cached) " >&6 6384ba0eab60Smacallanelse 6385aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6386aee7dae4Smrg/* end confdefs.h. */ 6387aee7dae4Smrgint i; 6388aee7dae4Smrg_ACEOF 6389aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 6390aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 6391aee7dae4Smrgelse 6392aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 6393aee7dae4Smrgfi 6394aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6395aee7dae4Smrgfi 6396aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6397aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6398aee7dae4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6399aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6400aee7dae4Smrgfi 6401ba0eab60Smacallan 6402aee7dae4Smrgfound="no" 6403ba0eab60Smacallan 6404aee7dae4Smrg if test $found = "no" ; then 6405aee7dae4Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6406aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6407aee7dae4Smrg fi 6408ba0eab60Smacallan 6409aee7dae4Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6410aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6411aee7dae4Smrg fi 6412aee7dae4Smrg 6413aee7dae4Smrg CFLAGS="$CFLAGS -Wmissing-noreturn" 6414aee7dae4Smrg 6415aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-noreturn" >&5 6416aee7dae4Smrg$as_echo_n "checking if $CC supports-Wmissing-noreturn... " >&6; } 6417aee7dae4Smrg cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6418aee7dae4Smrg if eval \${$cacheid+:} false; then : 6419aee7dae4Smrg $as_echo_n "(cached) " >&6 6420ba0eab60Smacallanelse 6421aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6422aee7dae4Smrg/* end confdefs.h. */ 6423aee7dae4Smrgint i; 6424aee7dae4Smrgint 6425aee7dae4Smrgmain () 6426aee7dae4Smrg{ 6427ba0eab60Smacallan 6428aee7dae4Smrg ; 6429aee7dae4Smrg return 0; 6430aee7dae4Smrg} 6431aee7dae4Smrg_ACEOF 6432aee7dae4Smrgif ac_fn_c_try_link "$LINENO"; then : 6433aee7dae4Smrg eval $cacheid=yes 6434aee7dae4Smrgelse 6435aee7dae4Smrg eval $cacheid=no 6436aee7dae4Smrgfi 6437aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext \ 6438aee7dae4Smrg conftest$ac_exeext conftest.$ac_ext 6439ba0eab60Smacallanfi 6440ba0eab60Smacallan 6441ba0eab60Smacallan 6442aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6443ba0eab60Smacallan 6444aee7dae4Smrg eval supported=\$$cacheid 6445aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6446aee7dae4Smrg$as_echo "$supported" >&6; } 6447aee7dae4Smrg if test "$supported" = "yes" ; then 6448aee7dae4Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6449aee7dae4Smrg found="yes" 6450aee7dae4Smrg fi 6451aee7dae4Smrg fi 6452ba0eab60Smacallan 6453ba0eab60Smacallan 6454ba0eab60Smacallan 6455ba0eab60Smacallan 6456ba0eab60Smacallan 6457ba0eab60Smacallan 6458ba0eab60Smacallan 6459ba0eab60Smacallan 6460ba0eab60Smacallan 6461ba0eab60Smacallan 6462ba0eab60Smacallan 6463ba0eab60Smacallan 6464ba0eab60Smacallan 6465ba0eab60Smacallan 6466ba0eab60Smacallan 6467aee7dae4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 6468ba0eab60Smacallan 6469aee7dae4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6470aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6471aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6472aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6473aee7dae4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6474aee7dae4Smrg $as_echo_n "(cached) " >&6 6475aee7dae4Smrgelse 6476aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6477aee7dae4Smrg/* end confdefs.h. */ 6478aee7dae4Smrgint i; 6479aee7dae4Smrg_ACEOF 6480aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 6481aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 6482aee7dae4Smrgelse 6483aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=no 6484aee7dae4Smrgfi 6485aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6486aee7dae4Smrgfi 6487aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6488aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6489aee7dae4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6490aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6491aee7dae4Smrgfi 6492ba0eab60Smacallan 6493aee7dae4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6494aee7dae4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6495aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6496aee7dae4Smrg fi 6497aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6498aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6499aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6500aee7dae4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6501aee7dae4Smrg $as_echo_n "(cached) " >&6 6502aee7dae4Smrgelse 6503aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6504aee7dae4Smrg/* end confdefs.h. */ 6505aee7dae4Smrgint i; 6506aee7dae4Smrg_ACEOF 6507aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 6508aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 6509aee7dae4Smrgelse 6510aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 6511aee7dae4Smrgfi 6512aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6513aee7dae4Smrgfi 6514aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6515aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6516aee7dae4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6517aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6518aee7dae4Smrgfi 6519ba0eab60Smacallan 6520aee7dae4Smrgfound="no" 6521ba0eab60Smacallan 6522aee7dae4Smrg if test $found = "no" ; then 6523aee7dae4Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6524aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6525aee7dae4Smrg fi 6526ba0eab60Smacallan 6527aee7dae4Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6528aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6529aee7dae4Smrg fi 6530ba0eab60Smacallan 6531aee7dae4Smrg CFLAGS="$CFLAGS -Wmissing-format-attribute" 6532ba0eab60Smacallan 6533aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-format-attribute" >&5 6534aee7dae4Smrg$as_echo_n "checking if $CC supports-Wmissing-format-attribute... " >&6; } 6535aee7dae4Smrg cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6536aee7dae4Smrg if eval \${$cacheid+:} false; then : 6537aee7dae4Smrg $as_echo_n "(cached) " >&6 6538ba0eab60Smacallanelse 6539aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6540aee7dae4Smrg/* end confdefs.h. */ 6541aee7dae4Smrgint i; 6542aee7dae4Smrgint 6543aee7dae4Smrgmain () 6544aee7dae4Smrg{ 6545ba0eab60Smacallan 6546aee7dae4Smrg ; 6547aee7dae4Smrg return 0; 6548aee7dae4Smrg} 6549aee7dae4Smrg_ACEOF 6550aee7dae4Smrgif ac_fn_c_try_link "$LINENO"; then : 6551aee7dae4Smrg eval $cacheid=yes 6552ba0eab60Smacallanelse 6553aee7dae4Smrg eval $cacheid=no 6554ba0eab60Smacallanfi 6555aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext \ 6556aee7dae4Smrg conftest$ac_exeext conftest.$ac_ext 6557ba0eab60Smacallanfi 6558ba0eab60Smacallan 6559ba0eab60Smacallan 6560aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6561ba0eab60Smacallan 6562aee7dae4Smrg eval supported=\$$cacheid 6563aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6564aee7dae4Smrg$as_echo "$supported" >&6; } 6565aee7dae4Smrg if test "$supported" = "yes" ; then 6566aee7dae4Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6567aee7dae4Smrg found="yes" 6568aee7dae4Smrg fi 6569aee7dae4Smrg fi 6570ba0eab60Smacallan 6571ba0eab60Smacallan 6572ba0eab60Smacallan 6573ba0eab60Smacallan 6574ba0eab60Smacallan 6575ba0eab60Smacallan 6576ba0eab60Smacallan 6577ba0eab60Smacallan 6578ba0eab60Smacallan 6579ba0eab60Smacallan 6580ba0eab60Smacallan 6581ba0eab60Smacallan 6582ba0eab60Smacallan 6583ba0eab60Smacallan 6584ba0eab60Smacallan 6585aee7dae4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 6586ba0eab60Smacallan 6587aee7dae4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6588aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6589aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6590aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6591aee7dae4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6592aee7dae4Smrg $as_echo_n "(cached) " >&6 6593aee7dae4Smrgelse 6594aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6595aee7dae4Smrg/* end confdefs.h. */ 6596aee7dae4Smrgint i; 6597aee7dae4Smrg_ACEOF 6598aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 6599aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 6600aee7dae4Smrgelse 6601aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=no 6602aee7dae4Smrgfi 6603aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6604aee7dae4Smrgfi 6605aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6606aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6607aee7dae4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6608aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6609aee7dae4Smrgfi 6610ba0eab60Smacallan 6611aee7dae4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6612aee7dae4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6613aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6614aee7dae4Smrg fi 6615aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6616aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6617aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6618aee7dae4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6619aee7dae4Smrg $as_echo_n "(cached) " >&6 6620aee7dae4Smrgelse 6621aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6622aee7dae4Smrg/* end confdefs.h. */ 6623aee7dae4Smrgint i; 6624aee7dae4Smrg_ACEOF 6625aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 6626aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 6627aee7dae4Smrgelse 6628aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 6629aee7dae4Smrgfi 6630aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6631aee7dae4Smrgfi 6632aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6633aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6634aee7dae4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6635aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6636aee7dae4Smrgfi 6637ba0eab60Smacallan 6638aee7dae4Smrgfound="no" 6639ba0eab60Smacallan 6640aee7dae4Smrg if test $found = "no" ; then 6641aee7dae4Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6642aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6643aee7dae4Smrg fi 6644ba0eab60Smacallan 6645aee7dae4Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6646aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6647aee7dae4Smrg fi 6648ba0eab60Smacallan 6649aee7dae4Smrg CFLAGS="$CFLAGS -Wredundant-decls" 6650ba0eab60Smacallan 6651aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wredundant-decls" >&5 6652aee7dae4Smrg$as_echo_n "checking if $CC supports-Wredundant-decls... " >&6; } 6653aee7dae4Smrg cacheid=xorg_cv_cc_flag__Wredundant_decls 6654aee7dae4Smrg if eval \${$cacheid+:} false; then : 6655aee7dae4Smrg $as_echo_n "(cached) " >&6 6656aee7dae4Smrgelse 6657aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6658aee7dae4Smrg/* end confdefs.h. */ 6659aee7dae4Smrgint i; 6660aee7dae4Smrgint 6661aee7dae4Smrgmain () 6662aee7dae4Smrg{ 6663ba0eab60Smacallan 6664aee7dae4Smrg ; 6665aee7dae4Smrg return 0; 6666aee7dae4Smrg} 6667aee7dae4Smrg_ACEOF 6668aee7dae4Smrgif ac_fn_c_try_link "$LINENO"; then : 6669aee7dae4Smrg eval $cacheid=yes 6670aee7dae4Smrgelse 6671aee7dae4Smrg eval $cacheid=no 6672aee7dae4Smrgfi 6673aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext \ 6674aee7dae4Smrg conftest$ac_exeext conftest.$ac_ext 6675aee7dae4Smrgfi 6676ba0eab60Smacallan 6677ba0eab60Smacallan 6678aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6679ba0eab60Smacallan 6680aee7dae4Smrg eval supported=\$$cacheid 6681aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6682aee7dae4Smrg$as_echo "$supported" >&6; } 6683aee7dae4Smrg if test "$supported" = "yes" ; then 6684aee7dae4Smrg BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6685aee7dae4Smrg found="yes" 6686aee7dae4Smrg fi 6687aee7dae4Smrg fi 6688ba0eab60Smacallan 6689ba0eab60Smacallan 6690ba0eab60Smacallan 6691aee7dae4Smrg# These are currently disabled because they are noisy. They will be enabled 6692aee7dae4Smrg# in the future once the codebase is sufficiently modernized to silence 6693aee7dae4Smrg# them. For now, I don't want them to drown out the other warnings. 6694aee7dae4Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 6695aee7dae4Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6696aee7dae4Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6697aee7dae4Smrg 6698aee7dae4Smrg# Turn some warnings into errors, so we don't accidently get successful builds 6699aee7dae4Smrg# when there are problems that should be fixed. 6700aee7dae4Smrg 6701aee7dae4Smrgif test "x$SELECTIVE_WERROR" = "xyes" ; then 6702aee7dae4Smrg 6703aee7dae4Smrg 6704aee7dae4Smrg 6705aee7dae4Smrg 6706aee7dae4Smrg 6707aee7dae4Smrg 6708aee7dae4Smrg 6709aee7dae4Smrg 6710aee7dae4Smrg 6711aee7dae4Smrg 6712aee7dae4Smrg 6713aee7dae4Smrg 6714aee7dae4Smrg 6715aee7dae4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 6716aee7dae4Smrg 6717aee7dae4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6718aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6719aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6720aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6721aee7dae4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6722aee7dae4Smrg $as_echo_n "(cached) " >&6 6723ba0eab60Smacallanelse 6724aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6725aee7dae4Smrg/* end confdefs.h. */ 6726aee7dae4Smrgint i; 6727aee7dae4Smrg_ACEOF 6728aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 6729aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 6730aee7dae4Smrgelse 6731aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=no 6732ba0eab60Smacallanfi 6733aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6734aee7dae4Smrgfi 6735aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6736aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6737aee7dae4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6738aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6739ba0eab60Smacallanfi 6740ba0eab60Smacallan 6741aee7dae4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6742aee7dae4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6743aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6744aee7dae4Smrg fi 6745aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6746aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6747aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6748aee7dae4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6749aee7dae4Smrg $as_echo_n "(cached) " >&6 6750ba0eab60Smacallanelse 6751aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6752aee7dae4Smrg/* end confdefs.h. */ 6753aee7dae4Smrgint i; 6754aee7dae4Smrg_ACEOF 6755aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 6756aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 6757aee7dae4Smrgelse 6758aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 6759aee7dae4Smrgfi 6760aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6761aee7dae4Smrgfi 6762aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6763aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6764aee7dae4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6765aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6766ba0eab60Smacallanfi 6767ba0eab60Smacallan 6768aee7dae4Smrgfound="no" 6769aee7dae4Smrg 6770aee7dae4Smrg if test $found = "no" ; then 6771aee7dae4Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6772aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6773aee7dae4Smrg fi 6774aee7dae4Smrg 6775aee7dae4Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6776aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6777aee7dae4Smrg fi 6778aee7dae4Smrg 6779aee7dae4Smrg CFLAGS="$CFLAGS -Werror=implicit" 6780aee7dae4Smrg 6781aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=implicit" >&5 6782aee7dae4Smrg$as_echo_n "checking if $CC supports-Werror=implicit... " >&6; } 6783aee7dae4Smrg cacheid=xorg_cv_cc_flag__Werror_implicit 6784aee7dae4Smrg if eval \${$cacheid+:} false; then : 6785aee7dae4Smrg $as_echo_n "(cached) " >&6 6786ba0eab60Smacallanelse 6787aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6788aee7dae4Smrg/* end confdefs.h. */ 6789aee7dae4Smrgint i; 6790aee7dae4Smrgint 6791aee7dae4Smrgmain () 6792aee7dae4Smrg{ 6793aee7dae4Smrg 6794aee7dae4Smrg ; 6795aee7dae4Smrg return 0; 6796aee7dae4Smrg} 6797aee7dae4Smrg_ACEOF 6798aee7dae4Smrgif ac_fn_c_try_link "$LINENO"; then : 6799aee7dae4Smrg eval $cacheid=yes 6800aee7dae4Smrgelse 6801aee7dae4Smrg eval $cacheid=no 6802aee7dae4Smrgfi 6803aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext \ 6804aee7dae4Smrg conftest$ac_exeext conftest.$ac_ext 6805ba0eab60Smacallanfi 6806ba0eab60Smacallan 6807ba0eab60Smacallan 6808aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6809ba0eab60Smacallan 6810aee7dae4Smrg eval supported=\$$cacheid 6811aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6812aee7dae4Smrg$as_echo "$supported" >&6; } 6813aee7dae4Smrg if test "$supported" = "yes" ; then 6814aee7dae4Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 6815aee7dae4Smrg found="yes" 6816aee7dae4Smrg fi 6817aee7dae4Smrg fi 6818ba0eab60Smacallan 6819aee7dae4Smrg if test $found = "no" ; then 6820aee7dae4Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6821aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6822aee7dae4Smrg fi 6823ba0eab60Smacallan 6824aee7dae4Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6825aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6826aee7dae4Smrg fi 6827ba0eab60Smacallan 6828aee7dae4Smrg CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6829aee7dae4Smrg 6830aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 6831aee7dae4Smrg$as_echo_n "checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 6832aee7dae4Smrg cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 6833aee7dae4Smrg if eval \${$cacheid+:} false; then : 6834aee7dae4Smrg $as_echo_n "(cached) " >&6 6835ba0eab60Smacallanelse 6836aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6837aee7dae4Smrg/* end confdefs.h. */ 6838aee7dae4Smrgint i; 6839aee7dae4Smrgint 6840aee7dae4Smrgmain () 6841aee7dae4Smrg{ 6842aee7dae4Smrg 6843aee7dae4Smrg ; 6844aee7dae4Smrg return 0; 6845aee7dae4Smrg} 6846aee7dae4Smrg_ACEOF 6847aee7dae4Smrgif ac_fn_c_try_link "$LINENO"; then : 6848aee7dae4Smrg eval $cacheid=yes 6849aee7dae4Smrgelse 6850aee7dae4Smrg eval $cacheid=no 6851aee7dae4Smrgfi 6852aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext \ 6853aee7dae4Smrg conftest$ac_exeext conftest.$ac_ext 6854ba0eab60Smacallanfi 6855ba0eab60Smacallan 6856ba0eab60Smacallan 6857aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6858ba0eab60Smacallan 6859aee7dae4Smrg eval supported=\$$cacheid 6860aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6861aee7dae4Smrg$as_echo "$supported" >&6; } 6862aee7dae4Smrg if test "$supported" = "yes" ; then 6863aee7dae4Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6864aee7dae4Smrg found="yes" 6865aee7dae4Smrg fi 6866aee7dae4Smrg fi 6867ba0eab60Smacallan 6868ba0eab60Smacallan 6869ba0eab60Smacallan 6870ba0eab60Smacallan 6871ba0eab60Smacallan 6872ba0eab60Smacallan 6873ba0eab60Smacallan 6874ba0eab60Smacallan 6875ba0eab60Smacallan 6876ba0eab60Smacallan 6877ba0eab60Smacallan 6878ba0eab60Smacallan 6879ba0eab60Smacallan 6880ba0eab60Smacallan 6881ba0eab60Smacallan 6882aee7dae4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 6883ba0eab60Smacallan 6884aee7dae4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6885aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6886aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6887aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6888aee7dae4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6889aee7dae4Smrg $as_echo_n "(cached) " >&6 6890aee7dae4Smrgelse 6891aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6892aee7dae4Smrg/* end confdefs.h. */ 6893aee7dae4Smrgint i; 6894aee7dae4Smrg_ACEOF 6895aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 6896aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 6897aee7dae4Smrgelse 6898aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=no 6899aee7dae4Smrgfi 6900aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6901aee7dae4Smrgfi 6902aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6903aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6904aee7dae4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6905aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6906aee7dae4Smrgfi 6907ba0eab60Smacallan 6908aee7dae4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6909aee7dae4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6910aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6911aee7dae4Smrg fi 6912aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6913aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6914aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6915aee7dae4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6916aee7dae4Smrg $as_echo_n "(cached) " >&6 6917aee7dae4Smrgelse 6918aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6919aee7dae4Smrg/* end confdefs.h. */ 6920aee7dae4Smrgint i; 6921aee7dae4Smrg_ACEOF 6922aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 6923aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 6924aee7dae4Smrgelse 6925aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 6926aee7dae4Smrgfi 6927aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6928aee7dae4Smrgfi 6929aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6930aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6931aee7dae4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6932aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6933aee7dae4Smrgfi 6934ba0eab60Smacallan 6935aee7dae4Smrgfound="no" 6936ba0eab60Smacallan 6937aee7dae4Smrg if test $found = "no" ; then 6938aee7dae4Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6939aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6940aee7dae4Smrg fi 6941ba0eab60Smacallan 6942aee7dae4Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6943aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6944aee7dae4Smrg fi 6945ba0eab60Smacallan 6946aee7dae4Smrg CFLAGS="$CFLAGS -Werror=nonnull" 6947ba0eab60Smacallan 6948aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=nonnull" >&5 6949aee7dae4Smrg$as_echo_n "checking if $CC supports-Werror=nonnull... " >&6; } 6950aee7dae4Smrg cacheid=xorg_cv_cc_flag__Werror_nonnull 6951aee7dae4Smrg if eval \${$cacheid+:} false; then : 6952aee7dae4Smrg $as_echo_n "(cached) " >&6 6953aee7dae4Smrgelse 6954aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6955aee7dae4Smrg/* end confdefs.h. */ 6956aee7dae4Smrgint i; 6957aee7dae4Smrgint 6958aee7dae4Smrgmain () 6959aee7dae4Smrg{ 6960ba0eab60Smacallan 6961aee7dae4Smrg ; 6962aee7dae4Smrg return 0; 6963aee7dae4Smrg} 6964aee7dae4Smrg_ACEOF 6965aee7dae4Smrgif ac_fn_c_try_link "$LINENO"; then : 6966aee7dae4Smrg eval $cacheid=yes 6967aee7dae4Smrgelse 6968aee7dae4Smrg eval $cacheid=no 6969aee7dae4Smrgfi 6970aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext \ 6971aee7dae4Smrg conftest$ac_exeext conftest.$ac_ext 6972aee7dae4Smrgfi 6973ba0eab60Smacallan 6974aee7dae4Smrg 6975aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 6976aee7dae4Smrg 6977aee7dae4Smrg eval supported=\$$cacheid 6978aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6979aee7dae4Smrg$as_echo "$supported" >&6; } 6980aee7dae4Smrg if test "$supported" = "yes" ; then 6981aee7dae4Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 6982aee7dae4Smrg found="yes" 6983aee7dae4Smrg fi 6984ba0eab60Smacallan fi 6985ba0eab60Smacallan 6986ba0eab60Smacallan 6987ba0eab60Smacallan 6988ba0eab60Smacallan 6989ba0eab60Smacallan 6990ba0eab60Smacallan 6991aee7dae4Smrg 6992aee7dae4Smrg 6993aee7dae4Smrg 6994aee7dae4Smrg 6995aee7dae4Smrg 6996aee7dae4Smrg 6997aee7dae4Smrg 6998aee7dae4Smrg 6999aee7dae4Smrg 7000aee7dae4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 7001aee7dae4Smrg 7002aee7dae4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7003aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7004aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7005aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7006aee7dae4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7007aee7dae4Smrg $as_echo_n "(cached) " >&6 7008aee7dae4Smrgelse 7009aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7010aee7dae4Smrg/* end confdefs.h. */ 7011aee7dae4Smrgint i; 7012ba0eab60Smacallan_ACEOF 7013aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 7014aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 7015aee7dae4Smrgelse 7016aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=no 7017aee7dae4Smrgfi 7018aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7019aee7dae4Smrgfi 7020aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7021aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7022aee7dae4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7023aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7024aee7dae4Smrgfi 7025aee7dae4Smrg 7026aee7dae4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7027aee7dae4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7028aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7029aee7dae4Smrg fi 7030aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7031aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7032aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7033aee7dae4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7034aee7dae4Smrg $as_echo_n "(cached) " >&6 7035aee7dae4Smrgelse 7036aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7037ba0eab60Smacallan/* end confdefs.h. */ 7038aee7dae4Smrgint i; 7039aee7dae4Smrg_ACEOF 7040aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 7041aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 7042aee7dae4Smrgelse 7043aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 7044aee7dae4Smrgfi 7045aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7046aee7dae4Smrgfi 7047aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7048aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7049aee7dae4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7050aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7051aee7dae4Smrgfi 7052ba0eab60Smacallan 7053aee7dae4Smrgfound="no" 7054aee7dae4Smrg 7055aee7dae4Smrg if test $found = "no" ; then 7056aee7dae4Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7057aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7058aee7dae4Smrg fi 7059aee7dae4Smrg 7060aee7dae4Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7061aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7062aee7dae4Smrg fi 7063aee7dae4Smrg 7064aee7dae4Smrg CFLAGS="$CFLAGS -Werror=init-self" 7065aee7dae4Smrg 7066aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=init-self" >&5 7067aee7dae4Smrg$as_echo_n "checking if $CC supports-Werror=init-self... " >&6; } 7068aee7dae4Smrg cacheid=xorg_cv_cc_flag__Werror_init_self 7069aee7dae4Smrg if eval \${$cacheid+:} false; then : 7070aee7dae4Smrg $as_echo_n "(cached) " >&6 7071aee7dae4Smrgelse 7072aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7073aee7dae4Smrg/* end confdefs.h. */ 7074aee7dae4Smrgint i; 7075ba0eab60Smacallanint 7076ba0eab60Smacallanmain () 7077ba0eab60Smacallan{ 7078ba0eab60Smacallan 7079ba0eab60Smacallan ; 7080ba0eab60Smacallan return 0; 7081ba0eab60Smacallan} 7082ba0eab60Smacallan_ACEOF 7083aee7dae4Smrgif ac_fn_c_try_link "$LINENO"; then : 7084aee7dae4Smrg eval $cacheid=yes 7085ba0eab60Smacallanelse 7086aee7dae4Smrg eval $cacheid=no 7087aee7dae4Smrgfi 7088aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext \ 7089aee7dae4Smrg conftest$ac_exeext conftest.$ac_ext 7090ba0eab60Smacallanfi 7091ba0eab60Smacallan 7092aee7dae4Smrg 7093aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7094aee7dae4Smrg 7095aee7dae4Smrg eval supported=\$$cacheid 7096aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7097aee7dae4Smrg$as_echo "$supported" >&6; } 7098aee7dae4Smrg if test "$supported" = "yes" ; then 7099aee7dae4Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7100aee7dae4Smrg found="yes" 7101aee7dae4Smrg fi 7102aee7dae4Smrg fi 7103aee7dae4Smrg 7104aee7dae4Smrg 7105aee7dae4Smrg 7106aee7dae4Smrg 7107aee7dae4Smrg 7108aee7dae4Smrg 7109aee7dae4Smrg 7110aee7dae4Smrg 7111aee7dae4Smrg 7112aee7dae4Smrg 7113aee7dae4Smrg 7114aee7dae4Smrg 7115aee7dae4Smrg 7116aee7dae4Smrg 7117aee7dae4Smrg 7118aee7dae4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 7119aee7dae4Smrg 7120aee7dae4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7121aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7122aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7123aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7124aee7dae4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7125aee7dae4Smrg $as_echo_n "(cached) " >&6 7126aee7dae4Smrgelse 7127aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7128aee7dae4Smrg/* end confdefs.h. */ 7129aee7dae4Smrgint i; 7130ba0eab60Smacallan_ACEOF 7131aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 7132aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 7133aee7dae4Smrgelse 7134aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=no 7135aee7dae4Smrgfi 7136aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7137aee7dae4Smrgfi 7138aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7139aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7140aee7dae4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7141aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7142aee7dae4Smrgfi 7143aee7dae4Smrg 7144aee7dae4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7145aee7dae4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7146aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7147aee7dae4Smrg fi 7148aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7149aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7150aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7151aee7dae4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7152aee7dae4Smrg $as_echo_n "(cached) " >&6 7153aee7dae4Smrgelse 7154aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7155ba0eab60Smacallan/* end confdefs.h. */ 7156aee7dae4Smrgint i; 7157aee7dae4Smrg_ACEOF 7158aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 7159aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 7160aee7dae4Smrgelse 7161aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 7162aee7dae4Smrgfi 7163aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7164aee7dae4Smrgfi 7165aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7166aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7167aee7dae4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7168aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7169aee7dae4Smrgfi 7170aee7dae4Smrg 7171aee7dae4Smrgfound="no" 7172aee7dae4Smrg 7173aee7dae4Smrg if test $found = "no" ; then 7174aee7dae4Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7175aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7176aee7dae4Smrg fi 7177aee7dae4Smrg 7178aee7dae4Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7179aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7180aee7dae4Smrg fi 7181ba0eab60Smacallan 7182aee7dae4Smrg CFLAGS="$CFLAGS -Werror=main" 7183aee7dae4Smrg 7184aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=main" >&5 7185aee7dae4Smrg$as_echo_n "checking if $CC supports-Werror=main... " >&6; } 7186aee7dae4Smrg cacheid=xorg_cv_cc_flag__Werror_main 7187aee7dae4Smrg if eval \${$cacheid+:} false; then : 7188aee7dae4Smrg $as_echo_n "(cached) " >&6 7189aee7dae4Smrgelse 7190aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7191aee7dae4Smrg/* end confdefs.h. */ 7192aee7dae4Smrgint i; 7193ba0eab60Smacallanint 7194ba0eab60Smacallanmain () 7195ba0eab60Smacallan{ 7196ba0eab60Smacallan 7197ba0eab60Smacallan ; 7198ba0eab60Smacallan return 0; 7199ba0eab60Smacallan} 7200ba0eab60Smacallan_ACEOF 7201aee7dae4Smrgif ac_fn_c_try_link "$LINENO"; then : 7202aee7dae4Smrg eval $cacheid=yes 7203ba0eab60Smacallanelse 7204aee7dae4Smrg eval $cacheid=no 7205aee7dae4Smrgfi 7206aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext \ 7207aee7dae4Smrg conftest$ac_exeext conftest.$ac_ext 7208ba0eab60Smacallanfi 7209ba0eab60Smacallan 7210ba0eab60Smacallan 7211aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7212ba0eab60Smacallan 7213aee7dae4Smrg eval supported=\$$cacheid 7214aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7215aee7dae4Smrg$as_echo "$supported" >&6; } 7216aee7dae4Smrg if test "$supported" = "yes" ; then 7217aee7dae4Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7218aee7dae4Smrg found="yes" 7219aee7dae4Smrg fi 7220aee7dae4Smrg fi 7221ba0eab60Smacallan 7222ba0eab60Smacallan 7223ba0eab60Smacallan 7224ba0eab60Smacallan 7225ba0eab60Smacallan 7226ba0eab60Smacallan 7227ba0eab60Smacallan 7228ba0eab60Smacallan 7229ba0eab60Smacallan 7230ba0eab60Smacallan 7231ba0eab60Smacallan 7232ba0eab60Smacallan 7233ba0eab60Smacallan 7234ba0eab60Smacallan 7235ba0eab60Smacallan 7236aee7dae4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 7237ba0eab60Smacallan 7238aee7dae4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7239aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7240aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7241aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7242aee7dae4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7243aee7dae4Smrg $as_echo_n "(cached) " >&6 7244aee7dae4Smrgelse 7245aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7246aee7dae4Smrg/* end confdefs.h. */ 7247aee7dae4Smrgint i; 7248aee7dae4Smrg_ACEOF 7249aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 7250aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 7251aee7dae4Smrgelse 7252aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=no 7253aee7dae4Smrgfi 7254aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7255aee7dae4Smrgfi 7256aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7257aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7258aee7dae4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7259aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7260aee7dae4Smrgfi 7261ba0eab60Smacallan 7262aee7dae4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7263aee7dae4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7264aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7265aee7dae4Smrg fi 7266aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7267aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7268aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7269aee7dae4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7270aee7dae4Smrg $as_echo_n "(cached) " >&6 7271aee7dae4Smrgelse 7272aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7273aee7dae4Smrg/* end confdefs.h. */ 7274aee7dae4Smrgint i; 7275aee7dae4Smrg_ACEOF 7276aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 7277aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 7278aee7dae4Smrgelse 7279aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 7280aee7dae4Smrgfi 7281aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7282aee7dae4Smrgfi 7283aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7284aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7285aee7dae4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7286aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7287aee7dae4Smrgfi 7288ba0eab60Smacallan 7289aee7dae4Smrgfound="no" 7290ba0eab60Smacallan 7291aee7dae4Smrg if test $found = "no" ; then 7292aee7dae4Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7293aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7294aee7dae4Smrg fi 7295ba0eab60Smacallan 7296aee7dae4Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7297aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7298aee7dae4Smrg fi 7299ba0eab60Smacallan 7300aee7dae4Smrg CFLAGS="$CFLAGS -Werror=missing-braces" 7301ba0eab60Smacallan 7302aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=missing-braces" >&5 7303aee7dae4Smrg$as_echo_n "checking if $CC supports-Werror=missing-braces... " >&6; } 7304aee7dae4Smrg cacheid=xorg_cv_cc_flag__Werror_missing_braces 7305aee7dae4Smrg if eval \${$cacheid+:} false; then : 7306aee7dae4Smrg $as_echo_n "(cached) " >&6 7307aee7dae4Smrgelse 7308aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7309aee7dae4Smrg/* end confdefs.h. */ 7310aee7dae4Smrgint i; 7311aee7dae4Smrgint 7312aee7dae4Smrgmain () 7313aee7dae4Smrg{ 7314ba0eab60Smacallan 7315aee7dae4Smrg ; 7316aee7dae4Smrg return 0; 7317aee7dae4Smrg} 7318aee7dae4Smrg_ACEOF 7319aee7dae4Smrgif ac_fn_c_try_link "$LINENO"; then : 7320aee7dae4Smrg eval $cacheid=yes 7321aee7dae4Smrgelse 7322aee7dae4Smrg eval $cacheid=no 7323aee7dae4Smrgfi 7324aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext \ 7325aee7dae4Smrg conftest$ac_exeext conftest.$ac_ext 7326aee7dae4Smrgfi 7327ba0eab60Smacallan 7328ba0eab60Smacallan 7329aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7330ba0eab60Smacallan 7331aee7dae4Smrg eval supported=\$$cacheid 7332aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7333aee7dae4Smrg$as_echo "$supported" >&6; } 7334aee7dae4Smrg if test "$supported" = "yes" ; then 7335aee7dae4Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7336aee7dae4Smrg found="yes" 7337aee7dae4Smrg fi 7338aee7dae4Smrg fi 7339ba0eab60Smacallan 7340ba0eab60Smacallan 7341ba0eab60Smacallan 7342ba0eab60Smacallan 7343ba0eab60Smacallan 7344ba0eab60Smacallan 7345ba0eab60Smacallan 7346ba0eab60Smacallan 7347ba0eab60Smacallan 7348ba0eab60Smacallan 7349ba0eab60Smacallan 7350ba0eab60Smacallan 7351aee7dae4Smrg 7352aee7dae4Smrg 7353aee7dae4Smrg 7354aee7dae4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 7355aee7dae4Smrg 7356aee7dae4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7357aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7358aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7359aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7360aee7dae4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7361aee7dae4Smrg $as_echo_n "(cached) " >&6 7362ba0eab60Smacallanelse 7363aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7364aee7dae4Smrg/* end confdefs.h. */ 7365aee7dae4Smrgint i; 7366aee7dae4Smrg_ACEOF 7367aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 7368aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 7369aee7dae4Smrgelse 7370aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=no 7371aee7dae4Smrgfi 7372aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7373aee7dae4Smrgfi 7374aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7375aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7376aee7dae4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7377aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7378ba0eab60Smacallanfi 7379ba0eab60Smacallan 7380aee7dae4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7381aee7dae4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7382aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7383aee7dae4Smrg fi 7384aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7385aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7386aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7387aee7dae4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7388aee7dae4Smrg $as_echo_n "(cached) " >&6 7389aee7dae4Smrgelse 7390aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7391aee7dae4Smrg/* end confdefs.h. */ 7392aee7dae4Smrgint i; 7393aee7dae4Smrg_ACEOF 7394aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 7395aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 7396aee7dae4Smrgelse 7397aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 7398aee7dae4Smrgfi 7399aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7400aee7dae4Smrgfi 7401aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7402aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7403aee7dae4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7404aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7405aee7dae4Smrgfi 7406ba0eab60Smacallan 7407aee7dae4Smrgfound="no" 7408ba0eab60Smacallan 7409aee7dae4Smrg if test $found = "no" ; then 7410aee7dae4Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7411aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7412aee7dae4Smrg fi 7413ba0eab60Smacallan 7414aee7dae4Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7415aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7416aee7dae4Smrg fi 7417ba0eab60Smacallan 7418aee7dae4Smrg CFLAGS="$CFLAGS -Werror=sequence-point" 7419ba0eab60Smacallan 7420aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=sequence-point" >&5 7421aee7dae4Smrg$as_echo_n "checking if $CC supports-Werror=sequence-point... " >&6; } 7422aee7dae4Smrg cacheid=xorg_cv_cc_flag__Werror_sequence_point 7423aee7dae4Smrg if eval \${$cacheid+:} false; then : 7424aee7dae4Smrg $as_echo_n "(cached) " >&6 7425aee7dae4Smrgelse 7426aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7427aee7dae4Smrg/* end confdefs.h. */ 7428aee7dae4Smrgint i; 7429aee7dae4Smrgint 7430aee7dae4Smrgmain () 7431aee7dae4Smrg{ 7432ba0eab60Smacallan 7433aee7dae4Smrg ; 7434aee7dae4Smrg return 0; 7435aee7dae4Smrg} 7436aee7dae4Smrg_ACEOF 7437aee7dae4Smrgif ac_fn_c_try_link "$LINENO"; then : 7438aee7dae4Smrg eval $cacheid=yes 7439aee7dae4Smrgelse 7440aee7dae4Smrg eval $cacheid=no 7441aee7dae4Smrgfi 7442aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext \ 7443aee7dae4Smrg conftest$ac_exeext conftest.$ac_ext 7444aee7dae4Smrgfi 7445ba0eab60Smacallan 7446ba0eab60Smacallan 7447aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7448ba0eab60Smacallan 7449aee7dae4Smrg eval supported=\$$cacheid 7450aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7451aee7dae4Smrg$as_echo "$supported" >&6; } 7452aee7dae4Smrg if test "$supported" = "yes" ; then 7453aee7dae4Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7454aee7dae4Smrg found="yes" 7455aee7dae4Smrg fi 7456aee7dae4Smrg fi 7457ba0eab60Smacallan 7458ba0eab60Smacallan 7459ba0eab60Smacallan 7460ba0eab60Smacallan 7461ba0eab60Smacallan 7462ba0eab60Smacallan 7463ba0eab60Smacallan 7464ba0eab60Smacallan 7465ba0eab60Smacallan 7466ba0eab60Smacallan 7467ba0eab60Smacallan 7468ba0eab60Smacallan 7469ba0eab60Smacallan 7470ba0eab60Smacallan 7471ba0eab60Smacallan 7472aee7dae4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 7473ba0eab60Smacallan 7474aee7dae4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7475aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7476aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7477aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7478aee7dae4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7479aee7dae4Smrg $as_echo_n "(cached) " >&6 7480aee7dae4Smrgelse 7481aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7482aee7dae4Smrg/* end confdefs.h. */ 7483aee7dae4Smrgint i; 7484aee7dae4Smrg_ACEOF 7485aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 7486aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 7487aee7dae4Smrgelse 7488aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=no 7489aee7dae4Smrgfi 7490aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7491aee7dae4Smrgfi 7492aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7493aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7494aee7dae4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7495aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7496aee7dae4Smrgfi 7497ba0eab60Smacallan 7498aee7dae4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7499aee7dae4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7500aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7501aee7dae4Smrg fi 7502aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7503aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7504aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7505aee7dae4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7506aee7dae4Smrg $as_echo_n "(cached) " >&6 7507aee7dae4Smrgelse 7508aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7509aee7dae4Smrg/* end confdefs.h. */ 7510aee7dae4Smrgint i; 7511aee7dae4Smrg_ACEOF 7512aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 7513aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 7514aee7dae4Smrgelse 7515aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 7516aee7dae4Smrgfi 7517aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7518aee7dae4Smrgfi 7519aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7520aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7521aee7dae4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7522aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7523aee7dae4Smrgfi 7524ba0eab60Smacallan 7525aee7dae4Smrgfound="no" 7526ba0eab60Smacallan 7527aee7dae4Smrg if test $found = "no" ; then 7528aee7dae4Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7529aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7530aee7dae4Smrg fi 7531ba0eab60Smacallan 7532aee7dae4Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7533aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7534aee7dae4Smrg fi 7535ba0eab60Smacallan 7536aee7dae4Smrg CFLAGS="$CFLAGS -Werror=return-type" 7537ba0eab60Smacallan 7538aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=return-type" >&5 7539aee7dae4Smrg$as_echo_n "checking if $CC supports-Werror=return-type... " >&6; } 7540aee7dae4Smrg cacheid=xorg_cv_cc_flag__Werror_return_type 7541aee7dae4Smrg if eval \${$cacheid+:} false; then : 7542aee7dae4Smrg $as_echo_n "(cached) " >&6 7543aee7dae4Smrgelse 7544aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7545aee7dae4Smrg/* end confdefs.h. */ 7546aee7dae4Smrgint i; 7547aee7dae4Smrgint 7548aee7dae4Smrgmain () 7549aee7dae4Smrg{ 7550ba0eab60Smacallan 7551aee7dae4Smrg ; 7552aee7dae4Smrg return 0; 7553aee7dae4Smrg} 7554aee7dae4Smrg_ACEOF 7555aee7dae4Smrgif ac_fn_c_try_link "$LINENO"; then : 7556aee7dae4Smrg eval $cacheid=yes 7557aee7dae4Smrgelse 7558aee7dae4Smrg eval $cacheid=no 7559aee7dae4Smrgfi 7560aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext \ 7561aee7dae4Smrg conftest$ac_exeext conftest.$ac_ext 7562aee7dae4Smrgfi 7563ba0eab60Smacallan 7564ba0eab60Smacallan 7565aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7566ba0eab60Smacallan 7567aee7dae4Smrg eval supported=\$$cacheid 7568aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7569aee7dae4Smrg$as_echo "$supported" >&6; } 7570aee7dae4Smrg if test "$supported" = "yes" ; then 7571aee7dae4Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7572aee7dae4Smrg found="yes" 7573aee7dae4Smrg fi 7574aee7dae4Smrg fi 7575ba0eab60Smacallan 7576aee7dae4Smrg if test $found = "no" ; then 7577aee7dae4Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7578aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7579aee7dae4Smrg fi 7580ba0eab60Smacallan 7581aee7dae4Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7582aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7583aee7dae4Smrg fi 7584ba0eab60Smacallan 7585aee7dae4Smrg CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7586ba0eab60Smacallan 7587aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7588aee7dae4Smrg$as_echo_n "checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7589aee7dae4Smrg cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7590aee7dae4Smrg if eval \${$cacheid+:} false; then : 7591aee7dae4Smrg $as_echo_n "(cached) " >&6 7592aee7dae4Smrgelse 7593aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7594aee7dae4Smrg/* end confdefs.h. */ 7595aee7dae4Smrgint i; 7596aee7dae4Smrgint 7597aee7dae4Smrgmain () 7598aee7dae4Smrg{ 7599ba0eab60Smacallan 7600aee7dae4Smrg ; 7601aee7dae4Smrg return 0; 7602aee7dae4Smrg} 7603aee7dae4Smrg_ACEOF 7604aee7dae4Smrgif ac_fn_c_try_link "$LINENO"; then : 7605aee7dae4Smrg eval $cacheid=yes 7606ba0eab60Smacallanelse 7607aee7dae4Smrg eval $cacheid=no 7608ba0eab60Smacallanfi 7609aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext \ 7610aee7dae4Smrg conftest$ac_exeext conftest.$ac_ext 7611ba0eab60Smacallanfi 7612ba0eab60Smacallan 7613ba0eab60Smacallan 7614aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7615ba0eab60Smacallan 7616aee7dae4Smrg eval supported=\$$cacheid 7617aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7618aee7dae4Smrg$as_echo "$supported" >&6; } 7619aee7dae4Smrg if test "$supported" = "yes" ; then 7620aee7dae4Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7621aee7dae4Smrg found="yes" 7622aee7dae4Smrg fi 7623aee7dae4Smrg fi 7624ba0eab60Smacallan 7625ba0eab60Smacallan 7626ba0eab60Smacallan 7627ba0eab60Smacallan 7628ba0eab60Smacallan 7629ba0eab60Smacallan 7630ba0eab60Smacallan 7631ba0eab60Smacallan 7632ba0eab60Smacallan 7633ba0eab60Smacallan 7634ba0eab60Smacallan 7635ba0eab60Smacallan 7636ba0eab60Smacallan 7637ba0eab60Smacallan 7638aee7dae4Smrg 7639aee7dae4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 7640aee7dae4Smrg 7641aee7dae4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7642aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7643aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7644aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7645aee7dae4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7646aee7dae4Smrg $as_echo_n "(cached) " >&6 7647aee7dae4Smrgelse 7648aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7649aee7dae4Smrg/* end confdefs.h. */ 7650aee7dae4Smrgint i; 7651ba0eab60Smacallan_ACEOF 7652aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 7653aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 7654ba0eab60Smacallanelse 7655aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=no 7656ba0eab60Smacallanfi 7657aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7658ba0eab60Smacallanfi 7659aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7660aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7661aee7dae4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7662aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7663aee7dae4Smrgfi 7664aee7dae4Smrg 7665aee7dae4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7666aee7dae4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7667aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7668aee7dae4Smrg fi 7669aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7670aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7671aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7672aee7dae4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7673aee7dae4Smrg $as_echo_n "(cached) " >&6 7674ba0eab60Smacallanelse 7675aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7676ba0eab60Smacallan/* end confdefs.h. */ 7677aee7dae4Smrgint i; 7678ba0eab60Smacallan_ACEOF 7679aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 7680aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 7681ba0eab60Smacallanelse 7682aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 7683ba0eab60Smacallanfi 7684aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7685aee7dae4Smrgfi 7686aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7687aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7688aee7dae4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7689aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7690ba0eab60Smacallanfi 7691ba0eab60Smacallan 7692aee7dae4Smrgfound="no" 7693ba0eab60Smacallan 7694aee7dae4Smrg if test $found = "no" ; then 7695aee7dae4Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7696aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7697aee7dae4Smrg fi 7698ba0eab60Smacallan 7699aee7dae4Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7700aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7701aee7dae4Smrg fi 7702ba0eab60Smacallan 7703aee7dae4Smrg CFLAGS="$CFLAGS -Werror=trigraphs" 7704ba0eab60Smacallan 7705aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=trigraphs" >&5 7706aee7dae4Smrg$as_echo_n "checking if $CC supports-Werror=trigraphs... " >&6; } 7707aee7dae4Smrg cacheid=xorg_cv_cc_flag__Werror_trigraphs 7708aee7dae4Smrg if eval \${$cacheid+:} false; then : 7709aee7dae4Smrg $as_echo_n "(cached) " >&6 7710aee7dae4Smrgelse 7711aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7712aee7dae4Smrg/* end confdefs.h. */ 7713aee7dae4Smrgint i; 7714ba0eab60Smacallanint 7715ba0eab60Smacallanmain () 7716ba0eab60Smacallan{ 7717aee7dae4Smrg 7718ba0eab60Smacallan ; 7719ba0eab60Smacallan return 0; 7720ba0eab60Smacallan} 7721ba0eab60Smacallan_ACEOF 7722aee7dae4Smrgif ac_fn_c_try_link "$LINENO"; then : 7723aee7dae4Smrg eval $cacheid=yes 7724ba0eab60Smacallanelse 7725aee7dae4Smrg eval $cacheid=no 7726ba0eab60Smacallanfi 7727aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext \ 7728aee7dae4Smrg conftest$ac_exeext conftest.$ac_ext 7729ba0eab60Smacallanfi 7730aee7dae4Smrg 7731aee7dae4Smrg 7732aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7733aee7dae4Smrg 7734aee7dae4Smrg eval supported=\$$cacheid 7735aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7736aee7dae4Smrg$as_echo "$supported" >&6; } 7737aee7dae4Smrg if test "$supported" = "yes" ; then 7738aee7dae4Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7739aee7dae4Smrg found="yes" 7740aee7dae4Smrg fi 7741aee7dae4Smrg fi 7742aee7dae4Smrg 7743aee7dae4Smrg 7744aee7dae4Smrg 7745aee7dae4Smrg 7746aee7dae4Smrg 7747aee7dae4Smrg 7748aee7dae4Smrg 7749aee7dae4Smrg 7750aee7dae4Smrg 7751aee7dae4Smrg 7752aee7dae4Smrg 7753aee7dae4Smrg 7754aee7dae4Smrg 7755aee7dae4Smrg 7756aee7dae4Smrg 7757aee7dae4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 7758aee7dae4Smrg 7759aee7dae4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7760aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7761aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7762aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7763aee7dae4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7764aee7dae4Smrg $as_echo_n "(cached) " >&6 7765ba0eab60Smacallanelse 7766aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7767ba0eab60Smacallan/* end confdefs.h. */ 7768aee7dae4Smrgint i; 7769ba0eab60Smacallan_ACEOF 7770aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 7771aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 7772ba0eab60Smacallanelse 7773aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=no 7774ba0eab60Smacallanfi 7775aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7776ba0eab60Smacallanfi 7777aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7778aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7779aee7dae4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7780aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7781aee7dae4Smrgfi 7782aee7dae4Smrg 7783aee7dae4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7784aee7dae4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7785aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7786aee7dae4Smrg fi 7787aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7788aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7789aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7790aee7dae4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7791aee7dae4Smrg $as_echo_n "(cached) " >&6 7792ba0eab60Smacallanelse 7793aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7794ba0eab60Smacallan/* end confdefs.h. */ 7795aee7dae4Smrgint i; 7796ba0eab60Smacallan_ACEOF 7797aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 7798aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 7799ba0eab60Smacallanelse 7800aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 7801ba0eab60Smacallanfi 7802aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7803ba0eab60Smacallanfi 7804aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7805aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7806aee7dae4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7807aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7808aee7dae4Smrgfi 7809aee7dae4Smrg 7810aee7dae4Smrgfound="no" 7811aee7dae4Smrg 7812aee7dae4Smrg if test $found = "no" ; then 7813aee7dae4Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7814aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7815aee7dae4Smrg fi 7816aee7dae4Smrg 7817aee7dae4Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7818aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7819aee7dae4Smrg fi 7820aee7dae4Smrg 7821aee7dae4Smrg CFLAGS="$CFLAGS -Werror=array-bounds" 7822aee7dae4Smrg 7823aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=array-bounds" >&5 7824aee7dae4Smrg$as_echo_n "checking if $CC supports-Werror=array-bounds... " >&6; } 7825aee7dae4Smrg cacheid=xorg_cv_cc_flag__Werror_array_bounds 7826aee7dae4Smrg if eval \${$cacheid+:} false; then : 7827aee7dae4Smrg $as_echo_n "(cached) " >&6 7828ba0eab60Smacallanelse 7829aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7830ba0eab60Smacallan/* end confdefs.h. */ 7831aee7dae4Smrgint i; 7832ba0eab60Smacallanint 7833ba0eab60Smacallanmain () 7834ba0eab60Smacallan{ 7835aee7dae4Smrg 7836ba0eab60Smacallan ; 7837ba0eab60Smacallan return 0; 7838ba0eab60Smacallan} 7839ba0eab60Smacallan_ACEOF 7840aee7dae4Smrgif ac_fn_c_try_link "$LINENO"; then : 7841aee7dae4Smrg eval $cacheid=yes 7842ba0eab60Smacallanelse 7843aee7dae4Smrg eval $cacheid=no 7844ba0eab60Smacallanfi 7845aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext \ 7846aee7dae4Smrg conftest$ac_exeext conftest.$ac_ext 7847ba0eab60Smacallanfi 7848ba0eab60Smacallan 7849ba0eab60Smacallan 7850aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7851ba0eab60Smacallan 7852aee7dae4Smrg eval supported=\$$cacheid 7853aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7854aee7dae4Smrg$as_echo "$supported" >&6; } 7855aee7dae4Smrg if test "$supported" = "yes" ; then 7856aee7dae4Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 7857aee7dae4Smrg found="yes" 7858aee7dae4Smrg fi 7859aee7dae4Smrg fi 7860ba0eab60Smacallan 7861ba0eab60Smacallan 7862ba0eab60Smacallan 7863ba0eab60Smacallan 7864ba0eab60Smacallan 7865ba0eab60Smacallan 7866ba0eab60Smacallan 7867ba0eab60Smacallan 7868ba0eab60Smacallan 7869ba0eab60Smacallan 7870ba0eab60Smacallan 7871ba0eab60Smacallan 7872ba0eab60Smacallan 7873aee7dae4Smrg 7874aee7dae4Smrg 7875aee7dae4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 7876aee7dae4Smrg 7877aee7dae4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7878aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7879aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7880aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7881aee7dae4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7882aee7dae4Smrg $as_echo_n "(cached) " >&6 7883ba0eab60Smacallanelse 7884aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7885aee7dae4Smrg/* end confdefs.h. */ 7886aee7dae4Smrgint i; 7887aee7dae4Smrg_ACEOF 7888aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 7889aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 7890ba0eab60Smacallanelse 7891aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=no 7892aee7dae4Smrgfi 7893aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7894aee7dae4Smrgfi 7895aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7896aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7897aee7dae4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7898aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7899aee7dae4Smrgfi 7900ba0eab60Smacallan 7901aee7dae4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7902aee7dae4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7903aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7904aee7dae4Smrg fi 7905aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7906aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7907aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7908aee7dae4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7909aee7dae4Smrg $as_echo_n "(cached) " >&6 7910aee7dae4Smrgelse 7911aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7912aee7dae4Smrg/* end confdefs.h. */ 7913aee7dae4Smrgint i; 7914aee7dae4Smrg_ACEOF 7915aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 7916aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 7917aee7dae4Smrgelse 7918aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 7919aee7dae4Smrgfi 7920aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7921aee7dae4Smrgfi 7922aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7923aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7924aee7dae4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7925aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7926aee7dae4Smrgfi 7927ba0eab60Smacallan 7928aee7dae4Smrgfound="no" 7929ba0eab60Smacallan 7930aee7dae4Smrg if test $found = "no" ; then 7931aee7dae4Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7932aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7933aee7dae4Smrg fi 7934ba0eab60Smacallan 7935aee7dae4Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7936aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7937aee7dae4Smrg fi 7938ba0eab60Smacallan 7939aee7dae4Smrg CFLAGS="$CFLAGS -Werror=write-strings" 7940ba0eab60Smacallan 7941aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=write-strings" >&5 7942aee7dae4Smrg$as_echo_n "checking if $CC supports-Werror=write-strings... " >&6; } 7943aee7dae4Smrg cacheid=xorg_cv_cc_flag__Werror_write_strings 7944aee7dae4Smrg if eval \${$cacheid+:} false; then : 7945aee7dae4Smrg $as_echo_n "(cached) " >&6 7946aee7dae4Smrgelse 7947aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7948aee7dae4Smrg/* end confdefs.h. */ 7949aee7dae4Smrgint i; 7950aee7dae4Smrgint 7951aee7dae4Smrgmain () 7952ba0eab60Smacallan{ 7953ba0eab60Smacallan 7954aee7dae4Smrg ; 7955aee7dae4Smrg return 0; 7956ba0eab60Smacallan} 7957aee7dae4Smrg_ACEOF 7958aee7dae4Smrgif ac_fn_c_try_link "$LINENO"; then : 7959aee7dae4Smrg eval $cacheid=yes 7960aee7dae4Smrgelse 7961aee7dae4Smrg eval $cacheid=no 7962aee7dae4Smrgfi 7963aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext \ 7964aee7dae4Smrg conftest$ac_exeext conftest.$ac_ext 7965ba0eab60Smacallanfi 7966ba0eab60Smacallan 7967ba0eab60Smacallan 7968aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 7969ba0eab60Smacallan 7970aee7dae4Smrg eval supported=\$$cacheid 7971aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7972aee7dae4Smrg$as_echo "$supported" >&6; } 7973aee7dae4Smrg if test "$supported" = "yes" ; then 7974aee7dae4Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 7975aee7dae4Smrg found="yes" 7976aee7dae4Smrg fi 7977aee7dae4Smrg fi 7978ba0eab60Smacallan 7979ba0eab60Smacallan 7980ba0eab60Smacallan 7981ba0eab60Smacallan 7982ba0eab60Smacallan 7983ba0eab60Smacallan 7984ba0eab60Smacallan 7985ba0eab60Smacallan 7986ba0eab60Smacallan 7987ba0eab60Smacallan 7988ba0eab60Smacallan 7989ba0eab60Smacallan 7990ba0eab60Smacallan 7991aee7dae4Smrg 7992aee7dae4Smrg 7993aee7dae4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 7994aee7dae4Smrg 7995aee7dae4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7996aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7997aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7998aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7999aee7dae4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8000aee7dae4Smrg $as_echo_n "(cached) " >&6 8001aee7dae4Smrgelse 8002aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8003aee7dae4Smrg/* end confdefs.h. */ 8004aee7dae4Smrgint i; 8005aee7dae4Smrg_ACEOF 8006aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 8007aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 8008aee7dae4Smrgelse 8009aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=no 8010aee7dae4Smrgfi 8011aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8012aee7dae4Smrgfi 8013aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8014aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8015aee7dae4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8016aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8017ba0eab60Smacallanfi 8018ba0eab60Smacallan 8019aee7dae4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8020aee7dae4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8021aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8022aee7dae4Smrg fi 8023aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8024aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8025aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8026aee7dae4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8027aee7dae4Smrg $as_echo_n "(cached) " >&6 8028aee7dae4Smrgelse 8029aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8030aee7dae4Smrg/* end confdefs.h. */ 8031aee7dae4Smrgint i; 8032aee7dae4Smrg_ACEOF 8033aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 8034aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 8035aee7dae4Smrgelse 8036aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 8037aee7dae4Smrgfi 8038aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8039aee7dae4Smrgfi 8040aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8041aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8042aee7dae4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8043aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8044aee7dae4Smrgfi 8045ba0eab60Smacallan 8046aee7dae4Smrgfound="no" 8047ba0eab60Smacallan 8048aee7dae4Smrg if test $found = "no" ; then 8049aee7dae4Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8050aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8051aee7dae4Smrg fi 8052ba0eab60Smacallan 8053aee7dae4Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8054aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8055aee7dae4Smrg fi 8056ba0eab60Smacallan 8057aee7dae4Smrg CFLAGS="$CFLAGS -Werror=address" 8058ba0eab60Smacallan 8059aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=address" >&5 8060aee7dae4Smrg$as_echo_n "checking if $CC supports-Werror=address... " >&6; } 8061aee7dae4Smrg cacheid=xorg_cv_cc_flag__Werror_address 8062aee7dae4Smrg if eval \${$cacheid+:} false; then : 8063aee7dae4Smrg $as_echo_n "(cached) " >&6 8064aee7dae4Smrgelse 8065aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8066aee7dae4Smrg/* end confdefs.h. */ 8067aee7dae4Smrgint i; 8068aee7dae4Smrgint 8069aee7dae4Smrgmain () 8070aee7dae4Smrg{ 8071ba0eab60Smacallan 8072aee7dae4Smrg ; 8073aee7dae4Smrg return 0; 8074aee7dae4Smrg} 8075aee7dae4Smrg_ACEOF 8076aee7dae4Smrgif ac_fn_c_try_link "$LINENO"; then : 8077aee7dae4Smrg eval $cacheid=yes 8078aee7dae4Smrgelse 8079aee7dae4Smrg eval $cacheid=no 8080aee7dae4Smrgfi 8081aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext \ 8082aee7dae4Smrg conftest$ac_exeext conftest.$ac_ext 8083aee7dae4Smrgfi 8084ba0eab60Smacallan 8085ba0eab60Smacallan 8086aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8087ba0eab60Smacallan 8088aee7dae4Smrg eval supported=\$$cacheid 8089aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8090aee7dae4Smrg$as_echo "$supported" >&6; } 8091aee7dae4Smrg if test "$supported" = "yes" ; then 8092aee7dae4Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8093aee7dae4Smrg found="yes" 8094aee7dae4Smrg fi 8095aee7dae4Smrg fi 8096ba0eab60Smacallan 8097ba0eab60Smacallan 8098ba0eab60Smacallan 8099ba0eab60Smacallan 8100ba0eab60Smacallan 8101ba0eab60Smacallan 8102ba0eab60Smacallan 8103ba0eab60Smacallan 8104ba0eab60Smacallan 8105ba0eab60Smacallan 8106ba0eab60Smacallan 8107ba0eab60Smacallan 8108ba0eab60Smacallan 8109ba0eab60Smacallan 8110ba0eab60Smacallan 8111aee7dae4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 8112ba0eab60Smacallan 8113aee7dae4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8114aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8115aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8116aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8117aee7dae4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8118aee7dae4Smrg $as_echo_n "(cached) " >&6 8119aee7dae4Smrgelse 8120aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8121aee7dae4Smrg/* end confdefs.h. */ 8122aee7dae4Smrgint i; 8123aee7dae4Smrg_ACEOF 8124aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 8125aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 8126aee7dae4Smrgelse 8127aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=no 8128aee7dae4Smrgfi 8129aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8130aee7dae4Smrgfi 8131aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8132aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8133aee7dae4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8134aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8135aee7dae4Smrgfi 8136ba0eab60Smacallan 8137aee7dae4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8138aee7dae4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8139aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8140aee7dae4Smrg fi 8141aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8142aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8143aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8144aee7dae4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8145aee7dae4Smrg $as_echo_n "(cached) " >&6 8146aee7dae4Smrgelse 8147aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8148aee7dae4Smrg/* end confdefs.h. */ 8149aee7dae4Smrgint i; 8150aee7dae4Smrg_ACEOF 8151aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 8152aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 8153aee7dae4Smrgelse 8154aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 8155aee7dae4Smrgfi 8156aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8157aee7dae4Smrgfi 8158aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8159aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8160aee7dae4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8161aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8162aee7dae4Smrgfi 8163ba0eab60Smacallan 8164aee7dae4Smrgfound="no" 8165ba0eab60Smacallan 8166aee7dae4Smrg if test $found = "no" ; then 8167aee7dae4Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8168aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8169aee7dae4Smrg fi 8170ba0eab60Smacallan 8171aee7dae4Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8172aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8173aee7dae4Smrg fi 8174ba0eab60Smacallan 8175aee7dae4Smrg CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8176ba0eab60Smacallan 8177aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=int-to-pointer-cast" >&5 8178aee7dae4Smrg$as_echo_n "checking if $CC supports-Werror=int-to-pointer-cast... " >&6; } 8179aee7dae4Smrg cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8180aee7dae4Smrg if eval \${$cacheid+:} false; then : 8181aee7dae4Smrg $as_echo_n "(cached) " >&6 8182aee7dae4Smrgelse 8183aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8184aee7dae4Smrg/* end confdefs.h. */ 8185aee7dae4Smrgint i; 8186aee7dae4Smrgint 8187aee7dae4Smrgmain () 8188aee7dae4Smrg{ 8189ba0eab60Smacallan 8190aee7dae4Smrg ; 8191aee7dae4Smrg return 0; 8192aee7dae4Smrg} 8193aee7dae4Smrg_ACEOF 8194aee7dae4Smrgif ac_fn_c_try_link "$LINENO"; then : 8195aee7dae4Smrg eval $cacheid=yes 8196aee7dae4Smrgelse 8197aee7dae4Smrg eval $cacheid=no 8198aee7dae4Smrgfi 8199aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext \ 8200aee7dae4Smrg conftest$ac_exeext conftest.$ac_ext 8201aee7dae4Smrgfi 8202ba0eab60Smacallan 8203ba0eab60Smacallan 8204aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8205ba0eab60Smacallan 8206aee7dae4Smrg eval supported=\$$cacheid 8207aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8208aee7dae4Smrg$as_echo "$supported" >&6; } 8209aee7dae4Smrg if test "$supported" = "yes" ; then 8210aee7dae4Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8211aee7dae4Smrg found="yes" 8212aee7dae4Smrg fi 8213aee7dae4Smrg fi 8214ba0eab60Smacallan 8215aee7dae4Smrg if test $found = "no" ; then 8216aee7dae4Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8217aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8218aee7dae4Smrg fi 8219ba0eab60Smacallan 8220aee7dae4Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8221aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8222aee7dae4Smrg fi 8223ba0eab60Smacallan 8224aee7dae4Smrg CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8225ba0eab60Smacallan 8226aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8227aee7dae4Smrg$as_echo_n "checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8228aee7dae4Smrg cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8229aee7dae4Smrg if eval \${$cacheid+:} false; then : 8230aee7dae4Smrg $as_echo_n "(cached) " >&6 8231aee7dae4Smrgelse 8232aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8233aee7dae4Smrg/* end confdefs.h. */ 8234aee7dae4Smrgint i; 8235aee7dae4Smrgint 8236aee7dae4Smrgmain () 8237aee7dae4Smrg{ 8238ba0eab60Smacallan 8239aee7dae4Smrg ; 8240aee7dae4Smrg return 0; 8241aee7dae4Smrg} 8242aee7dae4Smrg_ACEOF 8243aee7dae4Smrgif ac_fn_c_try_link "$LINENO"; then : 8244aee7dae4Smrg eval $cacheid=yes 8245aee7dae4Smrgelse 8246aee7dae4Smrg eval $cacheid=no 8247aee7dae4Smrgfi 8248aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext \ 8249aee7dae4Smrg conftest$ac_exeext conftest.$ac_ext 8250aee7dae4Smrgfi 8251ba0eab60Smacallan 8252ba0eab60Smacallan 8253aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8254ba0eab60Smacallan 8255aee7dae4Smrg eval supported=\$$cacheid 8256aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8257aee7dae4Smrg$as_echo "$supported" >&6; } 8258aee7dae4Smrg if test "$supported" = "yes" ; then 8259aee7dae4Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8260aee7dae4Smrg found="yes" 8261aee7dae4Smrg fi 8262aee7dae4Smrg fi 8263ba0eab60Smacallan 8264ba0eab60Smacallan 8265ba0eab60Smacallan 8266ba0eab60Smacallan 8267ba0eab60Smacallan 8268ba0eab60Smacallan 8269ba0eab60Smacallan 8270ba0eab60Smacallan 8271ba0eab60Smacallan 8272ba0eab60Smacallan 8273ba0eab60Smacallan 8274ba0eab60Smacallan 8275ba0eab60Smacallan 8276ba0eab60Smacallan 8277ba0eab60Smacallan 8278aee7dae4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 8279ba0eab60Smacallan 8280aee7dae4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8281aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8282aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8283aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8284aee7dae4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8285aee7dae4Smrg $as_echo_n "(cached) " >&6 8286aee7dae4Smrgelse 8287aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8288aee7dae4Smrg/* end confdefs.h. */ 8289aee7dae4Smrgint i; 8290aee7dae4Smrg_ACEOF 8291aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 8292aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 8293aee7dae4Smrgelse 8294aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=no 8295aee7dae4Smrgfi 8296aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8297aee7dae4Smrgfi 8298aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8299aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8300aee7dae4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8301aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8302aee7dae4Smrgfi 8303ba0eab60Smacallan 8304aee7dae4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8305aee7dae4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8306aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8307aee7dae4Smrg fi 8308aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8309aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8310aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8311aee7dae4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8312aee7dae4Smrg $as_echo_n "(cached) " >&6 8313aee7dae4Smrgelse 8314aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8315aee7dae4Smrg/* end confdefs.h. */ 8316aee7dae4Smrgint i; 8317aee7dae4Smrg_ACEOF 8318aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 8319aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 8320aee7dae4Smrgelse 8321aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 8322aee7dae4Smrgfi 8323aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8324aee7dae4Smrgfi 8325aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8326aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8327aee7dae4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8328aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8329aee7dae4Smrgfi 8330ba0eab60Smacallan 8331aee7dae4Smrgfound="no" 8332ba0eab60Smacallan 8333aee7dae4Smrg if test $found = "no" ; then 8334aee7dae4Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8335aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8336aee7dae4Smrg fi 8337ba0eab60Smacallan 8338aee7dae4Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8339aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8340aee7dae4Smrg fi 8341ba0eab60Smacallan 8342aee7dae4Smrg CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8343ba0eab60Smacallan 8344aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=pointer-to-int-cast" >&5 8345aee7dae4Smrg$as_echo_n "checking if $CC supports-Werror=pointer-to-int-cast... " >&6; } 8346aee7dae4Smrg cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8347aee7dae4Smrg if eval \${$cacheid+:} false; then : 8348aee7dae4Smrg $as_echo_n "(cached) " >&6 8349aee7dae4Smrgelse 8350aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8351aee7dae4Smrg/* end confdefs.h. */ 8352aee7dae4Smrgint i; 8353aee7dae4Smrgint 8354aee7dae4Smrgmain () 8355aee7dae4Smrg{ 8356ba0eab60Smacallan 8357aee7dae4Smrg ; 8358aee7dae4Smrg return 0; 8359aee7dae4Smrg} 8360aee7dae4Smrg_ACEOF 8361aee7dae4Smrgif ac_fn_c_try_link "$LINENO"; then : 8362aee7dae4Smrg eval $cacheid=yes 8363aee7dae4Smrgelse 8364aee7dae4Smrg eval $cacheid=no 8365aee7dae4Smrgfi 8366aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext \ 8367aee7dae4Smrg conftest$ac_exeext conftest.$ac_ext 8368aee7dae4Smrgfi 8369ba0eab60Smacallan 8370ba0eab60Smacallan 8371aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8372ba0eab60Smacallan 8373aee7dae4Smrg eval supported=\$$cacheid 8374aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8375aee7dae4Smrg$as_echo "$supported" >&6; } 8376aee7dae4Smrg if test "$supported" = "yes" ; then 8377aee7dae4Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8378aee7dae4Smrg found="yes" 8379aee7dae4Smrg fi 8380aee7dae4Smrg fi 8381ba0eab60Smacallan 8382aee7dae4Smrg # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8383aee7dae4Smrgelse 8384aee7dae4Smrg{ $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 8385aee7dae4Smrg$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;} 8386ba0eab60Smacallan 8387ba0eab60Smacallan 8388ba0eab60Smacallan 8389ba0eab60Smacallan 8390ba0eab60Smacallan 8391ba0eab60Smacallan 8392ba0eab60Smacallan 8393ba0eab60Smacallan 8394ba0eab60Smacallan 8395ba0eab60Smacallan 8396ba0eab60Smacallan 8397ba0eab60Smacallan 8398ba0eab60Smacallan 8399aee7dae4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 8400ba0eab60Smacallan 8401aee7dae4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8402aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8403aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8404aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8405aee7dae4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8406aee7dae4Smrg $as_echo_n "(cached) " >&6 8407aee7dae4Smrgelse 8408aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8409aee7dae4Smrg/* end confdefs.h. */ 8410aee7dae4Smrgint i; 8411aee7dae4Smrg_ACEOF 8412aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 8413aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 8414aee7dae4Smrgelse 8415aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=no 8416aee7dae4Smrgfi 8417aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8418aee7dae4Smrgfi 8419aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8420aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8421aee7dae4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8422aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8423aee7dae4Smrgfi 8424ba0eab60Smacallan 8425aee7dae4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8426aee7dae4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8427aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8428aee7dae4Smrg fi 8429aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8430aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8431aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8432aee7dae4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8433aee7dae4Smrg $as_echo_n "(cached) " >&6 8434aee7dae4Smrgelse 8435aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8436aee7dae4Smrg/* end confdefs.h. */ 8437aee7dae4Smrgint i; 8438aee7dae4Smrg_ACEOF 8439aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 8440aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 8441aee7dae4Smrgelse 8442aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 8443aee7dae4Smrgfi 8444aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8445aee7dae4Smrgfi 8446aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8447aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8448aee7dae4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8449aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8450aee7dae4Smrgfi 8451ba0eab60Smacallan 8452aee7dae4Smrgfound="no" 8453ba0eab60Smacallan 8454aee7dae4Smrg if test $found = "no" ; then 8455aee7dae4Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8456aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8457aee7dae4Smrg fi 8458ba0eab60Smacallan 8459aee7dae4Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8460aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8461aee7dae4Smrg fi 8462ba0eab60Smacallan 8463aee7dae4Smrg CFLAGS="$CFLAGS -Wimplicit" 8464ba0eab60Smacallan 8465aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wimplicit" >&5 8466aee7dae4Smrg$as_echo_n "checking if $CC supports-Wimplicit... " >&6; } 8467aee7dae4Smrg cacheid=xorg_cv_cc_flag__Wimplicit 8468aee7dae4Smrg if eval \${$cacheid+:} false; then : 8469aee7dae4Smrg $as_echo_n "(cached) " >&6 8470aee7dae4Smrgelse 8471aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8472aee7dae4Smrg/* end confdefs.h. */ 8473aee7dae4Smrgint i; 8474aee7dae4Smrgint 8475aee7dae4Smrgmain () 8476aee7dae4Smrg{ 8477ba0eab60Smacallan 8478aee7dae4Smrg ; 8479aee7dae4Smrg return 0; 8480aee7dae4Smrg} 8481aee7dae4Smrg_ACEOF 8482aee7dae4Smrgif ac_fn_c_try_link "$LINENO"; then : 8483aee7dae4Smrg eval $cacheid=yes 8484aee7dae4Smrgelse 8485aee7dae4Smrg eval $cacheid=no 8486aee7dae4Smrgfi 8487aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext \ 8488aee7dae4Smrg conftest$ac_exeext conftest.$ac_ext 8489aee7dae4Smrgfi 8490ba0eab60Smacallan 8491ba0eab60Smacallan 8492aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8493ba0eab60Smacallan 8494aee7dae4Smrg eval supported=\$$cacheid 8495aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8496aee7dae4Smrg$as_echo "$supported" >&6; } 8497aee7dae4Smrg if test "$supported" = "yes" ; then 8498aee7dae4Smrg BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8499aee7dae4Smrg found="yes" 8500aee7dae4Smrg fi 8501aee7dae4Smrg fi 8502ba0eab60Smacallan 8503ba0eab60Smacallan 8504ba0eab60Smacallan 8505ba0eab60Smacallan 8506ba0eab60Smacallan 8507ba0eab60Smacallan 8508ba0eab60Smacallan 8509ba0eab60Smacallan 8510ba0eab60Smacallan 8511ba0eab60Smacallan 8512ba0eab60Smacallan 8513ba0eab60Smacallan 8514ba0eab60Smacallan 8515ba0eab60Smacallan 8516ba0eab60Smacallan 8517aee7dae4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 8518ba0eab60Smacallan 8519aee7dae4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8520aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8521aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8522aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8523aee7dae4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8524aee7dae4Smrg $as_echo_n "(cached) " >&6 8525aee7dae4Smrgelse 8526aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8527aee7dae4Smrg/* end confdefs.h. */ 8528aee7dae4Smrgint i; 8529aee7dae4Smrg_ACEOF 8530aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 8531aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 8532aee7dae4Smrgelse 8533aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=no 8534aee7dae4Smrgfi 8535aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8536aee7dae4Smrgfi 8537aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8538aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8539aee7dae4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8540aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8541ba0eab60Smacallanfi 8542ba0eab60Smacallan 8543aee7dae4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8544aee7dae4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8545aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8546aee7dae4Smrg fi 8547aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8548aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8549aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8550aee7dae4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8551aee7dae4Smrg $as_echo_n "(cached) " >&6 8552ba0eab60Smacallanelse 8553aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8554aee7dae4Smrg/* end confdefs.h. */ 8555aee7dae4Smrgint i; 8556aee7dae4Smrg_ACEOF 8557aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 8558aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 8559aee7dae4Smrgelse 8560aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 8561aee7dae4Smrgfi 8562aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8563aee7dae4Smrgfi 8564aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8565aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8566aee7dae4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8567aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8568ba0eab60Smacallanfi 8569ba0eab60Smacallan 8570aee7dae4Smrgfound="no" 8571ba0eab60Smacallan 8572aee7dae4Smrg if test $found = "no" ; then 8573aee7dae4Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8574aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8575aee7dae4Smrg fi 8576ba0eab60Smacallan 8577aee7dae4Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8578aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8579aee7dae4Smrg fi 8580ba0eab60Smacallan 8581aee7dae4Smrg CFLAGS="$CFLAGS -Wnonnull" 8582ba0eab60Smacallan 8583aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnonnull" >&5 8584aee7dae4Smrg$as_echo_n "checking if $CC supports-Wnonnull... " >&6; } 8585aee7dae4Smrg cacheid=xorg_cv_cc_flag__Wnonnull 8586aee7dae4Smrg if eval \${$cacheid+:} false; then : 8587aee7dae4Smrg $as_echo_n "(cached) " >&6 8588aee7dae4Smrgelse 8589aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8590aee7dae4Smrg/* end confdefs.h. */ 8591aee7dae4Smrgint i; 8592aee7dae4Smrgint 8593aee7dae4Smrgmain () 8594aee7dae4Smrg{ 8595ba0eab60Smacallan 8596aee7dae4Smrg ; 8597aee7dae4Smrg return 0; 8598aee7dae4Smrg} 8599aee7dae4Smrg_ACEOF 8600aee7dae4Smrgif ac_fn_c_try_link "$LINENO"; then : 8601aee7dae4Smrg eval $cacheid=yes 8602aee7dae4Smrgelse 8603aee7dae4Smrg eval $cacheid=no 8604aee7dae4Smrgfi 8605aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext \ 8606aee7dae4Smrg conftest$ac_exeext conftest.$ac_ext 8607aee7dae4Smrgfi 8608ba0eab60Smacallan 8609ba0eab60Smacallan 8610aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8611ba0eab60Smacallan 8612aee7dae4Smrg eval supported=\$$cacheid 8613aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8614aee7dae4Smrg$as_echo "$supported" >&6; } 8615aee7dae4Smrg if test "$supported" = "yes" ; then 8616aee7dae4Smrg BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8617aee7dae4Smrg found="yes" 8618aee7dae4Smrg fi 8619aee7dae4Smrg fi 8620ba0eab60Smacallan 8621ba0eab60Smacallan 8622ba0eab60Smacallan 8623ba0eab60Smacallan 8624ba0eab60Smacallan 8625ba0eab60Smacallan 8626ba0eab60Smacallan 8627ba0eab60Smacallan 8628ba0eab60Smacallan 8629ba0eab60Smacallan 8630ba0eab60Smacallan 8631ba0eab60Smacallan 8632ba0eab60Smacallan 8633ba0eab60Smacallan 8634ba0eab60Smacallan 8635aee7dae4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 8636ba0eab60Smacallan 8637aee7dae4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8638aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8639aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8640aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8641aee7dae4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8642aee7dae4Smrg $as_echo_n "(cached) " >&6 8643ba0eab60Smacallanelse 8644aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8645aee7dae4Smrg/* end confdefs.h. */ 8646aee7dae4Smrgint i; 8647aee7dae4Smrg_ACEOF 8648aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 8649aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 8650ba0eab60Smacallanelse 8651aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=no 8652aee7dae4Smrgfi 8653aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8654aee7dae4Smrgfi 8655aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8656aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8657aee7dae4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8658aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8659ba0eab60Smacallanfi 8660aee7dae4Smrg 8661aee7dae4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8662aee7dae4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8663aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8664aee7dae4Smrg fi 8665aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8666aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8667aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8668aee7dae4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8669aee7dae4Smrg $as_echo_n "(cached) " >&6 8670ba0eab60Smacallanelse 8671aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8672aee7dae4Smrg/* end confdefs.h. */ 8673aee7dae4Smrgint i; 8674aee7dae4Smrg_ACEOF 8675aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 8676aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 8677ba0eab60Smacallanelse 8678aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 8679ba0eab60Smacallanfi 8680aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8681aee7dae4Smrgfi 8682aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8683aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8684aee7dae4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8685aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8686ba0eab60Smacallanfi 8687ba0eab60Smacallan 8688aee7dae4Smrgfound="no" 8689aee7dae4Smrg 8690aee7dae4Smrg if test $found = "no" ; then 8691aee7dae4Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8692aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8693aee7dae4Smrg fi 8694aee7dae4Smrg 8695aee7dae4Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8696aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8697aee7dae4Smrg fi 8698aee7dae4Smrg 8699aee7dae4Smrg CFLAGS="$CFLAGS -Winit-self" 8700aee7dae4Smrg 8701aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Winit-self" >&5 8702aee7dae4Smrg$as_echo_n "checking if $CC supports-Winit-self... " >&6; } 8703aee7dae4Smrg cacheid=xorg_cv_cc_flag__Winit_self 8704aee7dae4Smrg if eval \${$cacheid+:} false; then : 8705aee7dae4Smrg $as_echo_n "(cached) " >&6 8706ba0eab60Smacallanelse 8707aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8708aee7dae4Smrg/* end confdefs.h. */ 8709aee7dae4Smrgint i; 8710aee7dae4Smrgint 8711aee7dae4Smrgmain () 8712aee7dae4Smrg{ 8713aee7dae4Smrg 8714aee7dae4Smrg ; 8715aee7dae4Smrg return 0; 8716aee7dae4Smrg} 8717aee7dae4Smrg_ACEOF 8718aee7dae4Smrgif ac_fn_c_try_link "$LINENO"; then : 8719aee7dae4Smrg eval $cacheid=yes 8720ba0eab60Smacallanelse 8721aee7dae4Smrg eval $cacheid=no 8722aee7dae4Smrgfi 8723aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext \ 8724aee7dae4Smrg conftest$ac_exeext conftest.$ac_ext 8725ba0eab60Smacallanfi 8726ba0eab60Smacallan 8727ba0eab60Smacallan 8728aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8729ba0eab60Smacallan 8730aee7dae4Smrg eval supported=\$$cacheid 8731aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8732aee7dae4Smrg$as_echo "$supported" >&6; } 8733aee7dae4Smrg if test "$supported" = "yes" ; then 8734aee7dae4Smrg BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8735aee7dae4Smrg found="yes" 8736aee7dae4Smrg fi 8737aee7dae4Smrg fi 8738ba0eab60Smacallan 8739ba0eab60Smacallan 8740ba0eab60Smacallan 8741ba0eab60Smacallan 8742ba0eab60Smacallan 8743ba0eab60Smacallan 8744ba0eab60Smacallan 8745ba0eab60Smacallan 8746ba0eab60Smacallan 8747ba0eab60Smacallan 8748ba0eab60Smacallan 8749ba0eab60Smacallan 8750ba0eab60Smacallan 8751ba0eab60Smacallan 8752ba0eab60Smacallan 8753aee7dae4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 8754aee7dae4Smrg 8755aee7dae4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8756aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8757aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8758aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8759aee7dae4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8760aee7dae4Smrg $as_echo_n "(cached) " >&6 8761aee7dae4Smrgelse 8762aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8763aee7dae4Smrg/* end confdefs.h. */ 8764aee7dae4Smrgint i; 8765ba0eab60Smacallan_ACEOF 8766aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 8767aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 8768aee7dae4Smrgelse 8769aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=no 8770aee7dae4Smrgfi 8771aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8772aee7dae4Smrgfi 8773aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8774aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8775aee7dae4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8776aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8777aee7dae4Smrgfi 8778aee7dae4Smrg 8779aee7dae4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8780aee7dae4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8781aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8782aee7dae4Smrg fi 8783aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8784aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8785aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8786aee7dae4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8787aee7dae4Smrg $as_echo_n "(cached) " >&6 8788aee7dae4Smrgelse 8789aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8790ba0eab60Smacallan/* end confdefs.h. */ 8791aee7dae4Smrgint i; 8792aee7dae4Smrg_ACEOF 8793aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 8794aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 8795aee7dae4Smrgelse 8796aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 8797aee7dae4Smrgfi 8798aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8799aee7dae4Smrgfi 8800aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8801aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8802aee7dae4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8803aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8804aee7dae4Smrgfi 8805aee7dae4Smrg 8806aee7dae4Smrgfound="no" 8807ba0eab60Smacallan 8808aee7dae4Smrg if test $found = "no" ; then 8809aee7dae4Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8810aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8811aee7dae4Smrg fi 8812aee7dae4Smrg 8813aee7dae4Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8814aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8815aee7dae4Smrg fi 8816aee7dae4Smrg 8817aee7dae4Smrg CFLAGS="$CFLAGS -Wmain" 8818aee7dae4Smrg 8819aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmain" >&5 8820aee7dae4Smrg$as_echo_n "checking if $CC supports-Wmain... " >&6; } 8821aee7dae4Smrg cacheid=xorg_cv_cc_flag__Wmain 8822aee7dae4Smrg if eval \${$cacheid+:} false; then : 8823aee7dae4Smrg $as_echo_n "(cached) " >&6 8824aee7dae4Smrgelse 8825aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8826aee7dae4Smrg/* end confdefs.h. */ 8827aee7dae4Smrgint i; 8828ba0eab60Smacallanint 8829ba0eab60Smacallanmain () 8830ba0eab60Smacallan{ 8831ba0eab60Smacallan 8832ba0eab60Smacallan ; 8833ba0eab60Smacallan return 0; 8834ba0eab60Smacallan} 8835ba0eab60Smacallan_ACEOF 8836aee7dae4Smrgif ac_fn_c_try_link "$LINENO"; then : 8837aee7dae4Smrg eval $cacheid=yes 8838ba0eab60Smacallanelse 8839aee7dae4Smrg eval $cacheid=no 8840aee7dae4Smrgfi 8841aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext \ 8842aee7dae4Smrg conftest$ac_exeext conftest.$ac_ext 8843ba0eab60Smacallanfi 8844ba0eab60Smacallan 8845ba0eab60Smacallan 8846aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8847ba0eab60Smacallan 8848aee7dae4Smrg eval supported=\$$cacheid 8849aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8850aee7dae4Smrg$as_echo "$supported" >&6; } 8851aee7dae4Smrg if test "$supported" = "yes" ; then 8852aee7dae4Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmain" 8853aee7dae4Smrg found="yes" 8854aee7dae4Smrg fi 8855aee7dae4Smrg fi 8856ba0eab60Smacallan 8857ba0eab60Smacallan 8858ba0eab60Smacallan 8859ba0eab60Smacallan 8860ba0eab60Smacallan 8861ba0eab60Smacallan 8862ba0eab60Smacallan 8863ba0eab60Smacallan 8864ba0eab60Smacallan 8865ba0eab60Smacallan 8866ba0eab60Smacallan 8867ba0eab60Smacallan 8868ba0eab60Smacallan 8869aee7dae4Smrg 8870aee7dae4Smrg 8871aee7dae4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 8872aee7dae4Smrg 8873aee7dae4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8874aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8875aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8876aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8877aee7dae4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8878aee7dae4Smrg $as_echo_n "(cached) " >&6 8879aee7dae4Smrgelse 8880aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8881aee7dae4Smrg/* end confdefs.h. */ 8882aee7dae4Smrgint i; 8883aee7dae4Smrg_ACEOF 8884aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 8885aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 8886aee7dae4Smrgelse 8887aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=no 8888aee7dae4Smrgfi 8889aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8890aee7dae4Smrgfi 8891aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8892aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8893aee7dae4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8894aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8895aee7dae4Smrgfi 8896aee7dae4Smrg 8897aee7dae4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8898aee7dae4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8899aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8900ba0eab60Smacallan fi 8901aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8902aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8903aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8904aee7dae4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8905aee7dae4Smrg $as_echo_n "(cached) " >&6 8906aee7dae4Smrgelse 8907aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8908aee7dae4Smrg/* end confdefs.h. */ 8909aee7dae4Smrgint i; 8910aee7dae4Smrg_ACEOF 8911aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 8912aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 8913aee7dae4Smrgelse 8914aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 8915aee7dae4Smrgfi 8916aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8917aee7dae4Smrgfi 8918aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8919aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8920aee7dae4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8921aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8922aee7dae4Smrgfi 8923ba0eab60Smacallan 8924aee7dae4Smrgfound="no" 8925ba0eab60Smacallan 8926aee7dae4Smrg if test $found = "no" ; then 8927aee7dae4Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8928aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8929aee7dae4Smrg fi 8930ba0eab60Smacallan 8931aee7dae4Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8932aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8933aee7dae4Smrg fi 8934ba0eab60Smacallan 8935aee7dae4Smrg CFLAGS="$CFLAGS -Wmissing-braces" 8936ba0eab60Smacallan 8937aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-braces" >&5 8938aee7dae4Smrg$as_echo_n "checking if $CC supports-Wmissing-braces... " >&6; } 8939aee7dae4Smrg cacheid=xorg_cv_cc_flag__Wmissing_braces 8940aee7dae4Smrg if eval \${$cacheid+:} false; then : 8941aee7dae4Smrg $as_echo_n "(cached) " >&6 8942aee7dae4Smrgelse 8943aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8944aee7dae4Smrg/* end confdefs.h. */ 8945aee7dae4Smrgint i; 8946aee7dae4Smrgint 8947aee7dae4Smrgmain () 8948aee7dae4Smrg{ 8949ba0eab60Smacallan 8950aee7dae4Smrg ; 8951aee7dae4Smrg return 0; 8952aee7dae4Smrg} 8953aee7dae4Smrg_ACEOF 8954aee7dae4Smrgif ac_fn_c_try_link "$LINENO"; then : 8955aee7dae4Smrg eval $cacheid=yes 8956aee7dae4Smrgelse 8957aee7dae4Smrg eval $cacheid=no 8958aee7dae4Smrgfi 8959aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext \ 8960aee7dae4Smrg conftest$ac_exeext conftest.$ac_ext 8961aee7dae4Smrgfi 8962aee7dae4Smrg 8963aee7dae4Smrg 8964aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 8965aee7dae4Smrg 8966aee7dae4Smrg eval supported=\$$cacheid 8967aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8968aee7dae4Smrg$as_echo "$supported" >&6; } 8969aee7dae4Smrg if test "$supported" = "yes" ; then 8970aee7dae4Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 8971aee7dae4Smrg found="yes" 8972aee7dae4Smrg fi 8973ba0eab60Smacallan fi 8974ba0eab60Smacallan 8975ba0eab60Smacallan 8976ba0eab60Smacallan 8977ba0eab60Smacallan 8978ba0eab60Smacallan 8979ba0eab60Smacallan 8980ba0eab60Smacallan 8981ba0eab60Smacallan 8982ba0eab60Smacallan 8983ba0eab60Smacallan 8984ba0eab60Smacallan 8985ba0eab60Smacallan 8986ba0eab60Smacallan 8987ba0eab60Smacallan 8988ba0eab60Smacallan 8989aee7dae4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 8990aee7dae4Smrg 8991aee7dae4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8992aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8993aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8994aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8995aee7dae4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8996aee7dae4Smrg $as_echo_n "(cached) " >&6 8997aee7dae4Smrgelse 8998aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8999aee7dae4Smrg/* end confdefs.h. */ 9000aee7dae4Smrgint i; 9001aee7dae4Smrg_ACEOF 9002aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 9003aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 9004ba0eab60Smacallanelse 9005aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=no 9006aee7dae4Smrgfi 9007aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9008aee7dae4Smrgfi 9009aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9010aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9011aee7dae4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9012aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9013ba0eab60Smacallanfi 9014ba0eab60Smacallan 9015aee7dae4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9016aee7dae4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9017aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9018aee7dae4Smrg fi 9019aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9020aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9021aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9022aee7dae4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9023aee7dae4Smrg $as_echo_n "(cached) " >&6 9024aee7dae4Smrgelse 9025aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9026aee7dae4Smrg/* end confdefs.h. */ 9027aee7dae4Smrgint i; 9028aee7dae4Smrg_ACEOF 9029aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 9030aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 9031aee7dae4Smrgelse 9032aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 9033aee7dae4Smrgfi 9034aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9035aee7dae4Smrgfi 9036aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9037aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9038aee7dae4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9039aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9040aee7dae4Smrgfi 9041ba0eab60Smacallan 9042aee7dae4Smrgfound="no" 9043ba0eab60Smacallan 9044aee7dae4Smrg if test $found = "no" ; then 9045aee7dae4Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9046aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9047aee7dae4Smrg fi 9048ba0eab60Smacallan 9049aee7dae4Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9050aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9051aee7dae4Smrg fi 9052ba0eab60Smacallan 9053aee7dae4Smrg CFLAGS="$CFLAGS -Wsequence-point" 9054ba0eab60Smacallan 9055aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wsequence-point" >&5 9056aee7dae4Smrg$as_echo_n "checking if $CC supports-Wsequence-point... " >&6; } 9057aee7dae4Smrg cacheid=xorg_cv_cc_flag__Wsequence_point 9058aee7dae4Smrg if eval \${$cacheid+:} false; then : 9059aee7dae4Smrg $as_echo_n "(cached) " >&6 9060aee7dae4Smrgelse 9061aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9062aee7dae4Smrg/* end confdefs.h. */ 9063aee7dae4Smrgint i; 9064aee7dae4Smrgint 9065aee7dae4Smrgmain () 9066aee7dae4Smrg{ 9067ba0eab60Smacallan 9068aee7dae4Smrg ; 9069aee7dae4Smrg return 0; 9070aee7dae4Smrg} 9071aee7dae4Smrg_ACEOF 9072aee7dae4Smrgif ac_fn_c_try_link "$LINENO"; then : 9073aee7dae4Smrg eval $cacheid=yes 9074aee7dae4Smrgelse 9075aee7dae4Smrg eval $cacheid=no 9076aee7dae4Smrgfi 9077aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext \ 9078aee7dae4Smrg conftest$ac_exeext conftest.$ac_ext 9079aee7dae4Smrgfi 9080aee7dae4Smrg 9081aee7dae4Smrg 9082aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9083aee7dae4Smrg 9084aee7dae4Smrg eval supported=\$$cacheid 9085aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9086aee7dae4Smrg$as_echo "$supported" >&6; } 9087aee7dae4Smrg if test "$supported" = "yes" ; then 9088aee7dae4Smrg BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9089aee7dae4Smrg found="yes" 9090aee7dae4Smrg fi 9091ba0eab60Smacallan fi 9092ba0eab60Smacallan 9093ba0eab60Smacallan 9094ba0eab60Smacallan 9095ba0eab60Smacallan 9096ba0eab60Smacallan 9097ba0eab60Smacallan 9098ba0eab60Smacallan 9099ba0eab60Smacallan 9100ba0eab60Smacallan 9101ba0eab60Smacallan 9102ba0eab60Smacallan 9103ba0eab60Smacallan 9104ba0eab60Smacallan 9105ba0eab60Smacallan 9106ba0eab60Smacallan 9107aee7dae4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 9108aee7dae4Smrg 9109aee7dae4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9110aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9111aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9112aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9113aee7dae4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9114aee7dae4Smrg $as_echo_n "(cached) " >&6 9115ba0eab60Smacallanelse 9116aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9117aee7dae4Smrg/* end confdefs.h. */ 9118aee7dae4Smrgint i; 9119aee7dae4Smrg_ACEOF 9120aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 9121aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 9122aee7dae4Smrgelse 9123aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=no 9124aee7dae4Smrgfi 9125aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9126aee7dae4Smrgfi 9127aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9128aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9129aee7dae4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9130aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9131ba0eab60Smacallanfi 9132ba0eab60Smacallan 9133aee7dae4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9134aee7dae4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9135aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9136aee7dae4Smrg fi 9137aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9138aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9139aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9140aee7dae4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9141aee7dae4Smrg $as_echo_n "(cached) " >&6 9142aee7dae4Smrgelse 9143aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9144aee7dae4Smrg/* end confdefs.h. */ 9145aee7dae4Smrgint i; 9146aee7dae4Smrg_ACEOF 9147aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 9148aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 9149aee7dae4Smrgelse 9150aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 9151aee7dae4Smrgfi 9152aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9153aee7dae4Smrgfi 9154aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9155aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9156aee7dae4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9157aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9158aee7dae4Smrgfi 9159ba0eab60Smacallan 9160aee7dae4Smrgfound="no" 9161ba0eab60Smacallan 9162aee7dae4Smrg if test $found = "no" ; then 9163aee7dae4Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9164aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9165aee7dae4Smrg fi 9166ba0eab60Smacallan 9167aee7dae4Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9168aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9169aee7dae4Smrg fi 9170ba0eab60Smacallan 9171aee7dae4Smrg CFLAGS="$CFLAGS -Wreturn-type" 9172ba0eab60Smacallan 9173aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wreturn-type" >&5 9174aee7dae4Smrg$as_echo_n "checking if $CC supports-Wreturn-type... " >&6; } 9175aee7dae4Smrg cacheid=xorg_cv_cc_flag__Wreturn_type 9176aee7dae4Smrg if eval \${$cacheid+:} false; then : 9177aee7dae4Smrg $as_echo_n "(cached) " >&6 9178aee7dae4Smrgelse 9179aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9180aee7dae4Smrg/* end confdefs.h. */ 9181aee7dae4Smrgint i; 9182aee7dae4Smrgint 9183aee7dae4Smrgmain () 9184aee7dae4Smrg{ 9185ba0eab60Smacallan 9186aee7dae4Smrg ; 9187aee7dae4Smrg return 0; 9188aee7dae4Smrg} 9189aee7dae4Smrg_ACEOF 9190aee7dae4Smrgif ac_fn_c_try_link "$LINENO"; then : 9191aee7dae4Smrg eval $cacheid=yes 9192ba0eab60Smacallanelse 9193aee7dae4Smrg eval $cacheid=no 9194aee7dae4Smrgfi 9195aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext \ 9196aee7dae4Smrg conftest$ac_exeext conftest.$ac_ext 9197ba0eab60Smacallanfi 9198ba0eab60Smacallan 9199ba0eab60Smacallan 9200aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9201ba0eab60Smacallan 9202aee7dae4Smrg eval supported=\$$cacheid 9203aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9204aee7dae4Smrg$as_echo "$supported" >&6; } 9205aee7dae4Smrg if test "$supported" = "yes" ; then 9206aee7dae4Smrg BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9207aee7dae4Smrg found="yes" 9208aee7dae4Smrg fi 9209aee7dae4Smrg fi 9210ba0eab60Smacallan 9211ba0eab60Smacallan 9212ba0eab60Smacallan 9213ba0eab60Smacallan 9214ba0eab60Smacallan 9215ba0eab60Smacallan 9216ba0eab60Smacallan 9217ba0eab60Smacallan 9218ba0eab60Smacallan 9219ba0eab60Smacallan 9220ba0eab60Smacallan 9221ba0eab60Smacallan 9222ba0eab60Smacallan 9223ba0eab60Smacallan 9224ba0eab60Smacallan 9225aee7dae4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 9226aee7dae4Smrg 9227aee7dae4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9228aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9229aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9230aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9231aee7dae4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9232aee7dae4Smrg $as_echo_n "(cached) " >&6 9233aee7dae4Smrgelse 9234aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9235aee7dae4Smrg/* end confdefs.h. */ 9236aee7dae4Smrgint i; 9237aee7dae4Smrg_ACEOF 9238aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 9239aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 9240aee7dae4Smrgelse 9241aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=no 9242aee7dae4Smrgfi 9243aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9244aee7dae4Smrgfi 9245aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9246aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9247aee7dae4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9248aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9249aee7dae4Smrgfi 9250aee7dae4Smrg 9251aee7dae4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9252aee7dae4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9253aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9254aee7dae4Smrg fi 9255aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9256aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9257aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9258aee7dae4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9259aee7dae4Smrg $as_echo_n "(cached) " >&6 9260aee7dae4Smrgelse 9261aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9262aee7dae4Smrg/* end confdefs.h. */ 9263aee7dae4Smrgint i; 9264aee7dae4Smrg_ACEOF 9265aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 9266aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 9267aee7dae4Smrgelse 9268aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 9269aee7dae4Smrgfi 9270aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9271aee7dae4Smrgfi 9272aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9273aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9274aee7dae4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9275aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9276aee7dae4Smrgfi 9277aee7dae4Smrg 9278aee7dae4Smrgfound="no" 9279aee7dae4Smrg 9280aee7dae4Smrg if test $found = "no" ; then 9281aee7dae4Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9282aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9283aee7dae4Smrg fi 9284aee7dae4Smrg 9285aee7dae4Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9286aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9287aee7dae4Smrg fi 9288aee7dae4Smrg 9289aee7dae4Smrg CFLAGS="$CFLAGS -Wtrigraphs" 9290aee7dae4Smrg 9291aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wtrigraphs" >&5 9292aee7dae4Smrg$as_echo_n "checking if $CC supports-Wtrigraphs... " >&6; } 9293aee7dae4Smrg cacheid=xorg_cv_cc_flag__Wtrigraphs 9294aee7dae4Smrg if eval \${$cacheid+:} false; then : 9295aee7dae4Smrg $as_echo_n "(cached) " >&6 9296aee7dae4Smrgelse 9297aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9298aee7dae4Smrg/* end confdefs.h. */ 9299aee7dae4Smrgint i; 9300aee7dae4Smrgint 9301aee7dae4Smrgmain () 9302aee7dae4Smrg{ 9303aee7dae4Smrg 9304aee7dae4Smrg ; 9305aee7dae4Smrg return 0; 9306aee7dae4Smrg} 9307aee7dae4Smrg_ACEOF 9308aee7dae4Smrgif ac_fn_c_try_link "$LINENO"; then : 9309aee7dae4Smrg eval $cacheid=yes 9310aee7dae4Smrgelse 9311aee7dae4Smrg eval $cacheid=no 9312aee7dae4Smrgfi 9313aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext \ 9314aee7dae4Smrg conftest$ac_exeext conftest.$ac_ext 9315aee7dae4Smrgfi 9316aee7dae4Smrg 9317aee7dae4Smrg 9318aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9319aee7dae4Smrg 9320aee7dae4Smrg eval supported=\$$cacheid 9321aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9322aee7dae4Smrg$as_echo "$supported" >&6; } 9323aee7dae4Smrg if test "$supported" = "yes" ; then 9324aee7dae4Smrg BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9325aee7dae4Smrg found="yes" 9326aee7dae4Smrg fi 9327aee7dae4Smrg fi 9328aee7dae4Smrg 9329aee7dae4Smrg 9330aee7dae4Smrg 9331aee7dae4Smrg 9332aee7dae4Smrg 9333aee7dae4Smrg 9334aee7dae4Smrg 9335aee7dae4Smrg 9336aee7dae4Smrg 9337aee7dae4Smrg 9338aee7dae4Smrg 9339aee7dae4Smrg 9340aee7dae4Smrg 9341aee7dae4Smrg 9342aee7dae4Smrg 9343aee7dae4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 9344aee7dae4Smrg 9345aee7dae4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9346aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9347aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9348aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9349aee7dae4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9350aee7dae4Smrg $as_echo_n "(cached) " >&6 9351aee7dae4Smrgelse 9352aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9353aee7dae4Smrg/* end confdefs.h. */ 9354aee7dae4Smrgint i; 9355aee7dae4Smrg_ACEOF 9356aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 9357aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 9358aee7dae4Smrgelse 9359aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=no 9360aee7dae4Smrgfi 9361aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9362aee7dae4Smrgfi 9363aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9364aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9365aee7dae4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9366aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9367aee7dae4Smrgfi 9368aee7dae4Smrg 9369aee7dae4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9370aee7dae4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9371aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9372aee7dae4Smrg fi 9373aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9374aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9375aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9376aee7dae4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9377aee7dae4Smrg $as_echo_n "(cached) " >&6 9378aee7dae4Smrgelse 9379aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9380aee7dae4Smrg/* end confdefs.h. */ 9381aee7dae4Smrgint i; 9382aee7dae4Smrg_ACEOF 9383aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 9384aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 9385aee7dae4Smrgelse 9386aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 9387aee7dae4Smrgfi 9388aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9389aee7dae4Smrgfi 9390aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9391aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9392aee7dae4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9393aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9394aee7dae4Smrgfi 9395aee7dae4Smrg 9396aee7dae4Smrgfound="no" 9397aee7dae4Smrg 9398aee7dae4Smrg if test $found = "no" ; then 9399aee7dae4Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9400aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9401aee7dae4Smrg fi 9402aee7dae4Smrg 9403aee7dae4Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9404aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9405aee7dae4Smrg fi 9406aee7dae4Smrg 9407aee7dae4Smrg CFLAGS="$CFLAGS -Warray-bounds" 9408aee7dae4Smrg 9409aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Warray-bounds" >&5 9410aee7dae4Smrg$as_echo_n "checking if $CC supports-Warray-bounds... " >&6; } 9411aee7dae4Smrg cacheid=xorg_cv_cc_flag__Warray_bounds 9412aee7dae4Smrg if eval \${$cacheid+:} false; then : 9413aee7dae4Smrg $as_echo_n "(cached) " >&6 9414aee7dae4Smrgelse 9415aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9416aee7dae4Smrg/* end confdefs.h. */ 9417aee7dae4Smrgint i; 9418aee7dae4Smrgint 9419aee7dae4Smrgmain () 9420aee7dae4Smrg{ 9421aee7dae4Smrg 9422aee7dae4Smrg ; 9423aee7dae4Smrg return 0; 9424aee7dae4Smrg} 9425aee7dae4Smrg_ACEOF 9426aee7dae4Smrgif ac_fn_c_try_link "$LINENO"; then : 9427aee7dae4Smrg eval $cacheid=yes 9428aee7dae4Smrgelse 9429aee7dae4Smrg eval $cacheid=no 9430aee7dae4Smrgfi 9431aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext \ 9432aee7dae4Smrg conftest$ac_exeext conftest.$ac_ext 9433aee7dae4Smrgfi 9434aee7dae4Smrg 9435aee7dae4Smrg 9436aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9437aee7dae4Smrg 9438aee7dae4Smrg eval supported=\$$cacheid 9439aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9440aee7dae4Smrg$as_echo "$supported" >&6; } 9441aee7dae4Smrg if test "$supported" = "yes" ; then 9442aee7dae4Smrg BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9443aee7dae4Smrg found="yes" 9444aee7dae4Smrg fi 9445aee7dae4Smrg fi 9446aee7dae4Smrg 9447aee7dae4Smrg 9448aee7dae4Smrg 9449aee7dae4Smrg 9450aee7dae4Smrg 9451aee7dae4Smrg 9452aee7dae4Smrg 9453aee7dae4Smrg 9454aee7dae4Smrg 9455aee7dae4Smrg 9456aee7dae4Smrg 9457aee7dae4Smrg 9458aee7dae4Smrg 9459aee7dae4Smrg 9460aee7dae4Smrg 9461aee7dae4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 9462aee7dae4Smrg 9463aee7dae4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9464aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9465aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9466aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9467aee7dae4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9468aee7dae4Smrg $as_echo_n "(cached) " >&6 9469aee7dae4Smrgelse 9470aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9471aee7dae4Smrg/* end confdefs.h. */ 9472aee7dae4Smrgint i; 9473aee7dae4Smrg_ACEOF 9474aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 9475aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 9476aee7dae4Smrgelse 9477aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=no 9478aee7dae4Smrgfi 9479aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9480aee7dae4Smrgfi 9481aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9482aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9483aee7dae4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9484aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9485aee7dae4Smrgfi 9486aee7dae4Smrg 9487aee7dae4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9488aee7dae4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9489aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9490aee7dae4Smrg fi 9491aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9492aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9493aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9494aee7dae4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9495aee7dae4Smrg $as_echo_n "(cached) " >&6 9496aee7dae4Smrgelse 9497aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9498aee7dae4Smrg/* end confdefs.h. */ 9499aee7dae4Smrgint i; 9500aee7dae4Smrg_ACEOF 9501aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 9502aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 9503aee7dae4Smrgelse 9504aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 9505aee7dae4Smrgfi 9506aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9507aee7dae4Smrgfi 9508aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9509aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9510aee7dae4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9511aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9512aee7dae4Smrgfi 9513aee7dae4Smrg 9514aee7dae4Smrgfound="no" 9515aee7dae4Smrg 9516aee7dae4Smrg if test $found = "no" ; then 9517aee7dae4Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9518aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9519aee7dae4Smrg fi 9520aee7dae4Smrg 9521aee7dae4Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9522aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9523aee7dae4Smrg fi 9524aee7dae4Smrg 9525aee7dae4Smrg CFLAGS="$CFLAGS -Wwrite-strings" 9526aee7dae4Smrg 9527aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wwrite-strings" >&5 9528aee7dae4Smrg$as_echo_n "checking if $CC supports-Wwrite-strings... " >&6; } 9529aee7dae4Smrg cacheid=xorg_cv_cc_flag__Wwrite_strings 9530aee7dae4Smrg if eval \${$cacheid+:} false; then : 9531aee7dae4Smrg $as_echo_n "(cached) " >&6 9532aee7dae4Smrgelse 9533aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9534aee7dae4Smrg/* end confdefs.h. */ 9535aee7dae4Smrgint i; 9536aee7dae4Smrgint 9537aee7dae4Smrgmain () 9538aee7dae4Smrg{ 9539aee7dae4Smrg 9540aee7dae4Smrg ; 9541aee7dae4Smrg return 0; 9542aee7dae4Smrg} 9543aee7dae4Smrg_ACEOF 9544aee7dae4Smrgif ac_fn_c_try_link "$LINENO"; then : 9545aee7dae4Smrg eval $cacheid=yes 9546aee7dae4Smrgelse 9547aee7dae4Smrg eval $cacheid=no 9548aee7dae4Smrgfi 9549aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext \ 9550aee7dae4Smrg conftest$ac_exeext conftest.$ac_ext 9551aee7dae4Smrgfi 9552aee7dae4Smrg 9553aee7dae4Smrg 9554aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9555aee7dae4Smrg 9556aee7dae4Smrg eval supported=\$$cacheid 9557aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9558aee7dae4Smrg$as_echo "$supported" >&6; } 9559aee7dae4Smrg if test "$supported" = "yes" ; then 9560aee7dae4Smrg BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9561aee7dae4Smrg found="yes" 9562aee7dae4Smrg fi 9563aee7dae4Smrg fi 9564aee7dae4Smrg 9565aee7dae4Smrg 9566aee7dae4Smrg 9567aee7dae4Smrg 9568aee7dae4Smrg 9569aee7dae4Smrg 9570aee7dae4Smrg 9571aee7dae4Smrg 9572aee7dae4Smrg 9573aee7dae4Smrg 9574aee7dae4Smrg 9575aee7dae4Smrg 9576aee7dae4Smrg 9577aee7dae4Smrg 9578aee7dae4Smrg 9579aee7dae4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 9580aee7dae4Smrg 9581aee7dae4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9582aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9583aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9584aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9585aee7dae4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9586aee7dae4Smrg $as_echo_n "(cached) " >&6 9587aee7dae4Smrgelse 9588aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9589aee7dae4Smrg/* end confdefs.h. */ 9590aee7dae4Smrgint i; 9591aee7dae4Smrg_ACEOF 9592aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 9593aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 9594aee7dae4Smrgelse 9595aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=no 9596aee7dae4Smrgfi 9597aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9598aee7dae4Smrgfi 9599aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9600aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9601aee7dae4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9602aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9603aee7dae4Smrgfi 9604aee7dae4Smrg 9605aee7dae4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9606aee7dae4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9607aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9608aee7dae4Smrg fi 9609aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9610aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9611aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9612aee7dae4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9613aee7dae4Smrg $as_echo_n "(cached) " >&6 9614aee7dae4Smrgelse 9615aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9616aee7dae4Smrg/* end confdefs.h. */ 9617aee7dae4Smrgint i; 9618aee7dae4Smrg_ACEOF 9619aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 9620aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 9621aee7dae4Smrgelse 9622aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 9623aee7dae4Smrgfi 9624aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9625aee7dae4Smrgfi 9626aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9627aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9628aee7dae4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9629aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9630aee7dae4Smrgfi 9631aee7dae4Smrg 9632aee7dae4Smrgfound="no" 9633aee7dae4Smrg 9634aee7dae4Smrg if test $found = "no" ; then 9635aee7dae4Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9636aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9637aee7dae4Smrg fi 9638aee7dae4Smrg 9639aee7dae4Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9640aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9641aee7dae4Smrg fi 9642aee7dae4Smrg 9643aee7dae4Smrg CFLAGS="$CFLAGS -Waddress" 9644aee7dae4Smrg 9645aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Waddress" >&5 9646aee7dae4Smrg$as_echo_n "checking if $CC supports-Waddress... " >&6; } 9647aee7dae4Smrg cacheid=xorg_cv_cc_flag__Waddress 9648aee7dae4Smrg if eval \${$cacheid+:} false; then : 9649aee7dae4Smrg $as_echo_n "(cached) " >&6 9650aee7dae4Smrgelse 9651aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9652aee7dae4Smrg/* end confdefs.h. */ 9653aee7dae4Smrgint i; 9654aee7dae4Smrgint 9655aee7dae4Smrgmain () 9656aee7dae4Smrg{ 9657aee7dae4Smrg 9658aee7dae4Smrg ; 9659aee7dae4Smrg return 0; 9660aee7dae4Smrg} 9661aee7dae4Smrg_ACEOF 9662aee7dae4Smrgif ac_fn_c_try_link "$LINENO"; then : 9663aee7dae4Smrg eval $cacheid=yes 9664aee7dae4Smrgelse 9665aee7dae4Smrg eval $cacheid=no 9666aee7dae4Smrgfi 9667aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext \ 9668aee7dae4Smrg conftest$ac_exeext conftest.$ac_ext 9669aee7dae4Smrgfi 9670aee7dae4Smrg 9671aee7dae4Smrg 9672aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9673aee7dae4Smrg 9674aee7dae4Smrg eval supported=\$$cacheid 9675aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9676aee7dae4Smrg$as_echo "$supported" >&6; } 9677aee7dae4Smrg if test "$supported" = "yes" ; then 9678aee7dae4Smrg BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9679aee7dae4Smrg found="yes" 9680aee7dae4Smrg fi 9681aee7dae4Smrg fi 9682aee7dae4Smrg 9683aee7dae4Smrg 9684aee7dae4Smrg 9685aee7dae4Smrg 9686aee7dae4Smrg 9687aee7dae4Smrg 9688aee7dae4Smrg 9689aee7dae4Smrg 9690aee7dae4Smrg 9691aee7dae4Smrg 9692aee7dae4Smrg 9693aee7dae4Smrg 9694aee7dae4Smrg 9695aee7dae4Smrg 9696aee7dae4Smrg 9697aee7dae4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 9698aee7dae4Smrg 9699aee7dae4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9700aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9701aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9702aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9703aee7dae4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9704aee7dae4Smrg $as_echo_n "(cached) " >&6 9705aee7dae4Smrgelse 9706aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9707aee7dae4Smrg/* end confdefs.h. */ 9708aee7dae4Smrgint i; 9709aee7dae4Smrg_ACEOF 9710aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 9711aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 9712aee7dae4Smrgelse 9713aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=no 9714aee7dae4Smrgfi 9715aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9716aee7dae4Smrgfi 9717aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9718aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9719aee7dae4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9720aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9721aee7dae4Smrgfi 9722aee7dae4Smrg 9723aee7dae4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9724aee7dae4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9725aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9726aee7dae4Smrg fi 9727aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9728aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9729aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9730aee7dae4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9731aee7dae4Smrg $as_echo_n "(cached) " >&6 9732aee7dae4Smrgelse 9733aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9734aee7dae4Smrg/* end confdefs.h. */ 9735aee7dae4Smrgint i; 9736aee7dae4Smrg_ACEOF 9737aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 9738aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 9739aee7dae4Smrgelse 9740aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 9741aee7dae4Smrgfi 9742aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9743aee7dae4Smrgfi 9744aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9745aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9746aee7dae4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9747aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9748aee7dae4Smrgfi 9749aee7dae4Smrg 9750aee7dae4Smrgfound="no" 9751aee7dae4Smrg 9752aee7dae4Smrg if test $found = "no" ; then 9753aee7dae4Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9754aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9755aee7dae4Smrg fi 9756aee7dae4Smrg 9757aee7dae4Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9758aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9759aee7dae4Smrg fi 9760aee7dae4Smrg 9761aee7dae4Smrg CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9762aee7dae4Smrg 9763aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wint-to-pointer-cast" >&5 9764aee7dae4Smrg$as_echo_n "checking if $CC supports-Wint-to-pointer-cast... " >&6; } 9765aee7dae4Smrg cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9766aee7dae4Smrg if eval \${$cacheid+:} false; then : 9767aee7dae4Smrg $as_echo_n "(cached) " >&6 9768aee7dae4Smrgelse 9769aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9770aee7dae4Smrg/* end confdefs.h. */ 9771aee7dae4Smrgint i; 9772aee7dae4Smrgint 9773aee7dae4Smrgmain () 9774aee7dae4Smrg{ 9775aee7dae4Smrg 9776aee7dae4Smrg ; 9777aee7dae4Smrg return 0; 9778aee7dae4Smrg} 9779aee7dae4Smrg_ACEOF 9780aee7dae4Smrgif ac_fn_c_try_link "$LINENO"; then : 9781aee7dae4Smrg eval $cacheid=yes 9782aee7dae4Smrgelse 9783aee7dae4Smrg eval $cacheid=no 9784aee7dae4Smrgfi 9785aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext \ 9786aee7dae4Smrg conftest$ac_exeext conftest.$ac_ext 9787aee7dae4Smrgfi 9788aee7dae4Smrg 9789aee7dae4Smrg 9790aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9791aee7dae4Smrg 9792aee7dae4Smrg eval supported=\$$cacheid 9793aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9794aee7dae4Smrg$as_echo "$supported" >&6; } 9795aee7dae4Smrg if test "$supported" = "yes" ; then 9796aee7dae4Smrg BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9797aee7dae4Smrg found="yes" 9798aee7dae4Smrg fi 9799aee7dae4Smrg fi 9800aee7dae4Smrg 9801aee7dae4Smrg 9802aee7dae4Smrg 9803aee7dae4Smrg 9804aee7dae4Smrg 9805aee7dae4Smrg 9806aee7dae4Smrg 9807aee7dae4Smrg 9808aee7dae4Smrg 9809aee7dae4Smrg 9810aee7dae4Smrg 9811aee7dae4Smrg 9812aee7dae4Smrg 9813aee7dae4Smrg 9814aee7dae4Smrg 9815aee7dae4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 9816aee7dae4Smrg 9817aee7dae4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9818aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9819aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9820aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9821aee7dae4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9822aee7dae4Smrg $as_echo_n "(cached) " >&6 9823aee7dae4Smrgelse 9824aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9825aee7dae4Smrg/* end confdefs.h. */ 9826aee7dae4Smrgint i; 9827aee7dae4Smrg_ACEOF 9828aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 9829aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 9830aee7dae4Smrgelse 9831aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=no 9832aee7dae4Smrgfi 9833aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9834aee7dae4Smrgfi 9835aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9836aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9837aee7dae4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9838aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9839aee7dae4Smrgfi 9840aee7dae4Smrg 9841aee7dae4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9842aee7dae4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9843aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9844aee7dae4Smrg fi 9845aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9846aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9847aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9848aee7dae4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9849aee7dae4Smrg $as_echo_n "(cached) " >&6 9850aee7dae4Smrgelse 9851aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9852aee7dae4Smrg/* end confdefs.h. */ 9853aee7dae4Smrgint i; 9854aee7dae4Smrg_ACEOF 9855aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 9856aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 9857aee7dae4Smrgelse 9858aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 9859aee7dae4Smrgfi 9860aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9861aee7dae4Smrgfi 9862aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9863aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9864aee7dae4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9865aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9866aee7dae4Smrgfi 9867aee7dae4Smrg 9868aee7dae4Smrgfound="no" 9869aee7dae4Smrg 9870aee7dae4Smrg if test $found = "no" ; then 9871aee7dae4Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9872aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9873aee7dae4Smrg fi 9874aee7dae4Smrg 9875aee7dae4Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9876aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9877aee7dae4Smrg fi 9878aee7dae4Smrg 9879aee7dae4Smrg CFLAGS="$CFLAGS -Wpointer-to-int-cast" 9880aee7dae4Smrg 9881aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-to-int-cast" >&5 9882aee7dae4Smrg$as_echo_n "checking if $CC supports-Wpointer-to-int-cast... " >&6; } 9883aee7dae4Smrg cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 9884aee7dae4Smrg if eval \${$cacheid+:} false; then : 9885aee7dae4Smrg $as_echo_n "(cached) " >&6 9886aee7dae4Smrgelse 9887aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9888aee7dae4Smrg/* end confdefs.h. */ 9889aee7dae4Smrgint i; 9890aee7dae4Smrgint 9891aee7dae4Smrgmain () 9892aee7dae4Smrg{ 9893aee7dae4Smrg 9894aee7dae4Smrg ; 9895aee7dae4Smrg return 0; 9896aee7dae4Smrg} 9897aee7dae4Smrg_ACEOF 9898aee7dae4Smrgif ac_fn_c_try_link "$LINENO"; then : 9899aee7dae4Smrg eval $cacheid=yes 9900aee7dae4Smrgelse 9901aee7dae4Smrg eval $cacheid=no 9902aee7dae4Smrgfi 9903aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext \ 9904aee7dae4Smrg conftest$ac_exeext conftest.$ac_ext 9905aee7dae4Smrgfi 9906aee7dae4Smrg 9907aee7dae4Smrg 9908aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9909aee7dae4Smrg 9910aee7dae4Smrg eval supported=\$$cacheid 9911aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9912aee7dae4Smrg$as_echo "$supported" >&6; } 9913aee7dae4Smrg if test "$supported" = "yes" ; then 9914aee7dae4Smrg BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 9915aee7dae4Smrg found="yes" 9916aee7dae4Smrg fi 9917aee7dae4Smrg fi 9918aee7dae4Smrg 9919aee7dae4Smrg 9920aee7dae4Smrgfi 9921aee7dae4Smrg 9922aee7dae4Smrg 9923aee7dae4Smrg 9924aee7dae4Smrg 9925aee7dae4Smrg 9926aee7dae4Smrg 9927aee7dae4Smrg 9928aee7dae4Smrg CWARNFLAGS="$BASE_CFLAGS" 9929aee7dae4Smrg if test "x$GCC" = xyes ; then 9930aee7dae4Smrg CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 9931aee7dae4Smrg fi 9932aee7dae4Smrg 9933aee7dae4Smrg 9934aee7dae4Smrg 9935aee7dae4Smrg 9936aee7dae4Smrg 9937aee7dae4Smrg 9938aee7dae4Smrg 9939aee7dae4Smrg 9940aee7dae4Smrg# Check whether --enable-strict-compilation was given. 9941aee7dae4Smrgif test "${enable_strict_compilation+set}" = set; then : 9942aee7dae4Smrg enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 9943aee7dae4Smrgelse 9944aee7dae4Smrg STRICT_COMPILE=no 9945aee7dae4Smrgfi 9946aee7dae4Smrg 9947aee7dae4Smrg 9948aee7dae4Smrg 9949aee7dae4Smrg 9950aee7dae4Smrg 9951aee7dae4Smrg 9952aee7dae4SmrgSTRICT_CFLAGS="" 9953aee7dae4Smrg 9954aee7dae4Smrg 9955aee7dae4Smrg 9956aee7dae4Smrg 9957aee7dae4Smrg 9958aee7dae4Smrg 9959aee7dae4Smrg 9960aee7dae4Smrg 9961aee7dae4Smrg 9962aee7dae4Smrg 9963aee7dae4Smrg 9964aee7dae4Smrg 9965aee7dae4Smrg 9966aee7dae4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 9967aee7dae4Smrg 9968aee7dae4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9969aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9970aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9971aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9972aee7dae4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9973aee7dae4Smrg $as_echo_n "(cached) " >&6 9974aee7dae4Smrgelse 9975aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9976aee7dae4Smrg/* end confdefs.h. */ 9977aee7dae4Smrgint i; 9978aee7dae4Smrg_ACEOF 9979aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 9980aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 9981aee7dae4Smrgelse 9982aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=no 9983aee7dae4Smrgfi 9984aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9985aee7dae4Smrgfi 9986aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9987aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9988aee7dae4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9989aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 9990aee7dae4Smrgfi 9991aee7dae4Smrg 9992aee7dae4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9993aee7dae4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9994aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9995aee7dae4Smrg fi 9996aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9997aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9998aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9999aee7dae4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10000aee7dae4Smrg $as_echo_n "(cached) " >&6 10001aee7dae4Smrgelse 10002aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10003aee7dae4Smrg/* end confdefs.h. */ 10004aee7dae4Smrgint i; 10005aee7dae4Smrg_ACEOF 10006aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 10007aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 10008aee7dae4Smrgelse 10009aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 10010aee7dae4Smrgfi 10011aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10012aee7dae4Smrgfi 10013aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10014aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10015aee7dae4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10016aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10017aee7dae4Smrgfi 10018aee7dae4Smrg 10019aee7dae4Smrgfound="no" 10020aee7dae4Smrg 10021aee7dae4Smrg if test $found = "no" ; then 10022aee7dae4Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10023aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10024aee7dae4Smrg fi 10025aee7dae4Smrg 10026aee7dae4Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10027aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10028aee7dae4Smrg fi 10029aee7dae4Smrg 10030aee7dae4Smrg CFLAGS="$CFLAGS -pedantic" 10031aee7dae4Smrg 10032aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-pedantic" >&5 10033aee7dae4Smrg$as_echo_n "checking if $CC supports-pedantic... " >&6; } 10034aee7dae4Smrg cacheid=xorg_cv_cc_flag__pedantic 10035aee7dae4Smrg if eval \${$cacheid+:} false; then : 10036aee7dae4Smrg $as_echo_n "(cached) " >&6 10037aee7dae4Smrgelse 10038aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10039aee7dae4Smrg/* end confdefs.h. */ 10040aee7dae4Smrgint i; 10041aee7dae4Smrgint 10042aee7dae4Smrgmain () 10043aee7dae4Smrg{ 10044aee7dae4Smrg 10045aee7dae4Smrg ; 10046aee7dae4Smrg return 0; 10047aee7dae4Smrg} 10048aee7dae4Smrg_ACEOF 10049aee7dae4Smrgif ac_fn_c_try_link "$LINENO"; then : 10050aee7dae4Smrg eval $cacheid=yes 10051aee7dae4Smrgelse 10052aee7dae4Smrg eval $cacheid=no 10053aee7dae4Smrgfi 10054aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext \ 10055aee7dae4Smrg conftest$ac_exeext conftest.$ac_ext 10056aee7dae4Smrgfi 10057aee7dae4Smrg 10058aee7dae4Smrg 10059aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10060aee7dae4Smrg 10061aee7dae4Smrg eval supported=\$$cacheid 10062aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10063aee7dae4Smrg$as_echo "$supported" >&6; } 10064aee7dae4Smrg if test "$supported" = "yes" ; then 10065aee7dae4Smrg STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10066aee7dae4Smrg found="yes" 10067aee7dae4Smrg fi 10068aee7dae4Smrg fi 10069aee7dae4Smrg 10070aee7dae4Smrg 10071aee7dae4Smrg 10072aee7dae4Smrg 10073aee7dae4Smrg 10074aee7dae4Smrg 10075aee7dae4Smrg 10076aee7dae4Smrg 10077aee7dae4Smrg 10078aee7dae4Smrg 10079aee7dae4Smrg 10080aee7dae4Smrg 10081aee7dae4Smrg 10082aee7dae4Smrg 10083aee7dae4Smrg 10084aee7dae4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 10085aee7dae4Smrg 10086aee7dae4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10087aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10088aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10089aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10090aee7dae4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10091aee7dae4Smrg $as_echo_n "(cached) " >&6 10092aee7dae4Smrgelse 10093aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10094aee7dae4Smrg/* end confdefs.h. */ 10095aee7dae4Smrgint i; 10096aee7dae4Smrg_ACEOF 10097aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 10098aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 10099aee7dae4Smrgelse 10100aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=no 10101aee7dae4Smrgfi 10102aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10103aee7dae4Smrgfi 10104aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10105aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10106aee7dae4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10107aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10108aee7dae4Smrgfi 10109aee7dae4Smrg 10110aee7dae4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10111aee7dae4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10112aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10113aee7dae4Smrg fi 10114aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10115aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10116aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10117aee7dae4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10118aee7dae4Smrg $as_echo_n "(cached) " >&6 10119aee7dae4Smrgelse 10120aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10121aee7dae4Smrg/* end confdefs.h. */ 10122aee7dae4Smrgint i; 10123aee7dae4Smrg_ACEOF 10124aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 10125aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 10126aee7dae4Smrgelse 10127aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 10128aee7dae4Smrgfi 10129aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10130aee7dae4Smrgfi 10131aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10132aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10133aee7dae4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10134aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10135aee7dae4Smrgfi 10136aee7dae4Smrg 10137aee7dae4Smrgfound="no" 10138aee7dae4Smrg 10139aee7dae4Smrg if test $found = "no" ; then 10140aee7dae4Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10141aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10142aee7dae4Smrg fi 10143aee7dae4Smrg 10144aee7dae4Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10145aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10146aee7dae4Smrg fi 10147aee7dae4Smrg 10148aee7dae4Smrg CFLAGS="$CFLAGS -Werror" 10149aee7dae4Smrg 10150aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror" >&5 10151aee7dae4Smrg$as_echo_n "checking if $CC supports-Werror... " >&6; } 10152aee7dae4Smrg cacheid=xorg_cv_cc_flag__Werror 10153aee7dae4Smrg if eval \${$cacheid+:} false; then : 10154aee7dae4Smrg $as_echo_n "(cached) " >&6 10155aee7dae4Smrgelse 10156aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10157aee7dae4Smrg/* end confdefs.h. */ 10158aee7dae4Smrgint i; 10159aee7dae4Smrgint 10160aee7dae4Smrgmain () 10161aee7dae4Smrg{ 10162aee7dae4Smrg 10163aee7dae4Smrg ; 10164aee7dae4Smrg return 0; 10165aee7dae4Smrg} 10166aee7dae4Smrg_ACEOF 10167aee7dae4Smrgif ac_fn_c_try_link "$LINENO"; then : 10168aee7dae4Smrg eval $cacheid=yes 10169aee7dae4Smrgelse 10170aee7dae4Smrg eval $cacheid=no 10171aee7dae4Smrgfi 10172aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext \ 10173aee7dae4Smrg conftest$ac_exeext conftest.$ac_ext 10174aee7dae4Smrgfi 10175aee7dae4Smrg 10176aee7dae4Smrg 10177aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10178aee7dae4Smrg 10179aee7dae4Smrg eval supported=\$$cacheid 10180aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10181aee7dae4Smrg$as_echo "$supported" >&6; } 10182aee7dae4Smrg if test "$supported" = "yes" ; then 10183aee7dae4Smrg STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10184aee7dae4Smrg found="yes" 10185aee7dae4Smrg fi 10186aee7dae4Smrg fi 10187aee7dae4Smrg 10188aee7dae4Smrg if test $found = "no" ; then 10189aee7dae4Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10190aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10191aee7dae4Smrg fi 10192aee7dae4Smrg 10193aee7dae4Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10194aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10195aee7dae4Smrg fi 10196aee7dae4Smrg 10197aee7dae4Smrg CFLAGS="$CFLAGS -errwarn" 10198aee7dae4Smrg 10199aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn" >&5 10200aee7dae4Smrg$as_echo_n "checking if $CC supports-errwarn... " >&6; } 10201aee7dae4Smrg cacheid=xorg_cv_cc_flag__errwarn 10202aee7dae4Smrg if eval \${$cacheid+:} false; then : 10203aee7dae4Smrg $as_echo_n "(cached) " >&6 10204aee7dae4Smrgelse 10205aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10206aee7dae4Smrg/* end confdefs.h. */ 10207aee7dae4Smrgint i; 10208aee7dae4Smrgint 10209aee7dae4Smrgmain () 10210aee7dae4Smrg{ 10211aee7dae4Smrg 10212aee7dae4Smrg ; 10213aee7dae4Smrg return 0; 10214aee7dae4Smrg} 10215aee7dae4Smrg_ACEOF 10216aee7dae4Smrgif ac_fn_c_try_link "$LINENO"; then : 10217aee7dae4Smrg eval $cacheid=yes 10218aee7dae4Smrgelse 10219aee7dae4Smrg eval $cacheid=no 10220aee7dae4Smrgfi 10221aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext \ 10222aee7dae4Smrg conftest$ac_exeext conftest.$ac_ext 10223aee7dae4Smrgfi 10224aee7dae4Smrg 10225aee7dae4Smrg 10226aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10227aee7dae4Smrg 10228aee7dae4Smrg eval supported=\$$cacheid 10229aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10230aee7dae4Smrg$as_echo "$supported" >&6; } 10231aee7dae4Smrg if test "$supported" = "yes" ; then 10232aee7dae4Smrg STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10233aee7dae4Smrg found="yes" 10234aee7dae4Smrg fi 10235aee7dae4Smrg fi 10236aee7dae4Smrg 10237aee7dae4Smrg 10238aee7dae4Smrg 10239aee7dae4Smrg# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10240aee7dae4Smrg# activate it with -Werror, so we add it here explicitly. 10241aee7dae4Smrg 10242aee7dae4Smrg 10243aee7dae4Smrg 10244aee7dae4Smrg 10245aee7dae4Smrg 10246aee7dae4Smrg 10247aee7dae4Smrg 10248aee7dae4Smrg 10249aee7dae4Smrg 10250aee7dae4Smrg 10251aee7dae4Smrg 10252aee7dae4Smrg 10253aee7dae4Smrg 10254aee7dae4Smrgxorg_testset_save_CFLAGS="$CFLAGS" 10255aee7dae4Smrg 10256aee7dae4Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10257aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10258aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10259aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10260aee7dae4Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10261aee7dae4Smrg $as_echo_n "(cached) " >&6 10262aee7dae4Smrgelse 10263aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10264aee7dae4Smrg/* end confdefs.h. */ 10265aee7dae4Smrgint i; 10266aee7dae4Smrg_ACEOF 10267aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 10268aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=yes 10269aee7dae4Smrgelse 10270aee7dae4Smrg xorg_cv_cc_flag_unknown_warning_option=no 10271aee7dae4Smrgfi 10272aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10273aee7dae4Smrgfi 10274aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10275aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10276aee7dae4Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10277aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10278aee7dae4Smrgfi 10279aee7dae4Smrg 10280aee7dae4Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10281aee7dae4Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10282aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10283aee7dae4Smrg fi 10284aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10285aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10286aee7dae4Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10287aee7dae4Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10288aee7dae4Smrg $as_echo_n "(cached) " >&6 10289aee7dae4Smrgelse 10290aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10291aee7dae4Smrg/* end confdefs.h. */ 10292aee7dae4Smrgint i; 10293aee7dae4Smrg_ACEOF 10294aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 10295aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 10296aee7dae4Smrgelse 10297aee7dae4Smrg xorg_cv_cc_flag_unused_command_line_argument=no 10298aee7dae4Smrgfi 10299aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10300aee7dae4Smrgfi 10301aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10302aee7dae4Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10303aee7dae4Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10304aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10305aee7dae4Smrgfi 10306aee7dae4Smrg 10307aee7dae4Smrgfound="no" 10308aee7dae4Smrg 10309aee7dae4Smrg if test $found = "no" ; then 10310aee7dae4Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10311aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10312aee7dae4Smrg fi 10313aee7dae4Smrg 10314aee7dae4Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10315aee7dae4Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10316aee7dae4Smrg fi 10317aee7dae4Smrg 10318aee7dae4Smrg CFLAGS="$CFLAGS -Werror=attributes" 10319aee7dae4Smrg 10320aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=attributes" >&5 10321aee7dae4Smrg$as_echo_n "checking if $CC supports-Werror=attributes... " >&6; } 10322aee7dae4Smrg cacheid=xorg_cv_cc_flag__Werror_attributes 10323aee7dae4Smrg if eval \${$cacheid+:} false; then : 10324aee7dae4Smrg $as_echo_n "(cached) " >&6 10325aee7dae4Smrgelse 10326aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10327aee7dae4Smrg/* end confdefs.h. */ 10328aee7dae4Smrgint i; 10329aee7dae4Smrgint 10330aee7dae4Smrgmain () 10331aee7dae4Smrg{ 10332aee7dae4Smrg 10333aee7dae4Smrg ; 10334aee7dae4Smrg return 0; 10335aee7dae4Smrg} 10336aee7dae4Smrg_ACEOF 10337aee7dae4Smrgif ac_fn_c_try_link "$LINENO"; then : 10338aee7dae4Smrg eval $cacheid=yes 10339aee7dae4Smrgelse 10340aee7dae4Smrg eval $cacheid=no 10341aee7dae4Smrgfi 10342aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext \ 10343aee7dae4Smrg conftest$ac_exeext conftest.$ac_ext 10344aee7dae4Smrgfi 10345aee7dae4Smrg 10346aee7dae4Smrg 10347aee7dae4Smrg CFLAGS="$xorg_testset_save_CFLAGS" 10348aee7dae4Smrg 10349aee7dae4Smrg eval supported=\$$cacheid 10350aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10351aee7dae4Smrg$as_echo "$supported" >&6; } 10352aee7dae4Smrg if test "$supported" = "yes" ; then 10353aee7dae4Smrg STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10354aee7dae4Smrg found="yes" 10355aee7dae4Smrg fi 10356aee7dae4Smrg fi 10357aee7dae4Smrg 10358aee7dae4Smrg 10359aee7dae4Smrg 10360aee7dae4Smrgif test "x$STRICT_COMPILE" = "xyes"; then 10361aee7dae4Smrg BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10362aee7dae4Smrg CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10363aee7dae4Smrgfi 10364aee7dae4Smrg 10365aee7dae4Smrg 10366aee7dae4Smrg 10367aee7dae4Smrg 10368aee7dae4Smrg 10369aee7dae4Smrg 10370aee7dae4Smrgcat >>confdefs.h <<_ACEOF 10371aee7dae4Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10372aee7dae4Smrg_ACEOF 10373aee7dae4Smrg 10374aee7dae4Smrg PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10375aee7dae4Smrg if test "x$PVM" = "x"; then 10376aee7dae4Smrg PVM="0" 10377aee7dae4Smrg fi 10378aee7dae4Smrg 10379aee7dae4Smrgcat >>confdefs.h <<_ACEOF 10380aee7dae4Smrg#define PACKAGE_VERSION_MINOR $PVM 10381aee7dae4Smrg_ACEOF 10382aee7dae4Smrg 10383aee7dae4Smrg PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10384aee7dae4Smrg if test "x$PVP" = "x"; then 10385aee7dae4Smrg PVP="0" 10386aee7dae4Smrg fi 10387aee7dae4Smrg 10388aee7dae4Smrgcat >>confdefs.h <<_ACEOF 10389aee7dae4Smrg#define PACKAGE_VERSION_PATCHLEVEL $PVP 10390aee7dae4Smrg_ACEOF 10391aee7dae4Smrg 10392aee7dae4Smrg 10393aee7dae4Smrg 10394aee7dae4SmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10395aee7dae4Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10396aee7dae4Smrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10397aee7dae4Smrgecho 'git directory not found: installing possibly empty changelog.' >&2)" 10398aee7dae4Smrg 10399aee7dae4Smrg 10400aee7dae4Smrg 10401aee7dae4Smrg 10402aee7dae4Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10403aee7dae4SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10404aee7dae4Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10405aee7dae4Smrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10406aee7dae4Smrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10407aee7dae4Smrg 10408aee7dae4Smrg 10409aee7dae4Smrg 10410aee7dae4Smrg 10411aee7dae4Smrg 10412aee7dae4Smrg 10413aee7dae4Smrgif test x$APP_MAN_SUFFIX = x ; then 10414aee7dae4Smrg APP_MAN_SUFFIX=1 10415aee7dae4Smrgfi 10416aee7dae4Smrgif test x$APP_MAN_DIR = x ; then 10417aee7dae4Smrg APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10418aee7dae4Smrgfi 10419aee7dae4Smrg 10420aee7dae4Smrgif test x$LIB_MAN_SUFFIX = x ; then 10421aee7dae4Smrg LIB_MAN_SUFFIX=3 10422aee7dae4Smrgfi 10423aee7dae4Smrgif test x$LIB_MAN_DIR = x ; then 10424aee7dae4Smrg LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10425aee7dae4Smrgfi 10426aee7dae4Smrg 10427aee7dae4Smrgif test x$FILE_MAN_SUFFIX = x ; then 10428aee7dae4Smrg case $host_os in 10429aee7dae4Smrg solaris*) FILE_MAN_SUFFIX=4 ;; 10430aee7dae4Smrg *) FILE_MAN_SUFFIX=5 ;; 10431aee7dae4Smrg esac 10432aee7dae4Smrgfi 10433aee7dae4Smrgif test x$FILE_MAN_DIR = x ; then 10434aee7dae4Smrg FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10435aee7dae4Smrgfi 10436aee7dae4Smrg 10437aee7dae4Smrgif test x$MISC_MAN_SUFFIX = x ; then 10438aee7dae4Smrg case $host_os in 10439aee7dae4Smrg solaris*) MISC_MAN_SUFFIX=5 ;; 10440aee7dae4Smrg *) MISC_MAN_SUFFIX=7 ;; 10441aee7dae4Smrg esac 10442aee7dae4Smrgfi 10443aee7dae4Smrgif test x$MISC_MAN_DIR = x ; then 10444aee7dae4Smrg MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10445aee7dae4Smrgfi 10446aee7dae4Smrg 10447aee7dae4Smrgif test x$DRIVER_MAN_SUFFIX = x ; then 10448aee7dae4Smrg case $host_os in 10449aee7dae4Smrg solaris*) DRIVER_MAN_SUFFIX=7 ;; 10450aee7dae4Smrg *) DRIVER_MAN_SUFFIX=4 ;; 10451aee7dae4Smrg esac 10452aee7dae4Smrgfi 10453aee7dae4Smrgif test x$DRIVER_MAN_DIR = x ; then 10454aee7dae4Smrg DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10455aee7dae4Smrgfi 10456aee7dae4Smrg 10457aee7dae4Smrgif test x$ADMIN_MAN_SUFFIX = x ; then 10458aee7dae4Smrg case $host_os in 10459aee7dae4Smrg solaris*) ADMIN_MAN_SUFFIX=1m ;; 10460aee7dae4Smrg *) ADMIN_MAN_SUFFIX=8 ;; 10461aee7dae4Smrg esac 10462aee7dae4Smrgfi 10463aee7dae4Smrgif test x$ADMIN_MAN_DIR = x ; then 10464aee7dae4Smrg ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10465aee7dae4Smrgfi 10466aee7dae4Smrg 10467aee7dae4Smrg 10468aee7dae4Smrg 10469aee7dae4Smrg 10470aee7dae4Smrg 10471aee7dae4Smrg 10472aee7dae4Smrg 10473aee7dae4Smrg 10474aee7dae4Smrg 10475aee7dae4Smrg 10476aee7dae4Smrg 10477aee7dae4Smrg 10478aee7dae4Smrg 10479aee7dae4Smrg 10480aee7dae4Smrg 10481aee7dae4SmrgXORG_MAN_PAGE="X Version 11" 10482aee7dae4Smrg 10483aee7dae4SmrgMAN_SUBSTS="\ 10484aee7dae4Smrg -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10485aee7dae4Smrg -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10486aee7dae4Smrg -e 's|__xservername__|Xorg|g' \ 10487aee7dae4Smrg -e 's|__xconfigfile__|xorg.conf|g' \ 10488aee7dae4Smrg -e 's|__projectroot__|\$(prefix)|g' \ 10489aee7dae4Smrg -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10490aee7dae4Smrg -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10491aee7dae4Smrg -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10492aee7dae4Smrg -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10493aee7dae4Smrg -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10494aee7dae4Smrg -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10495aee7dae4Smrg -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10496aee7dae4Smrg 10497aee7dae4Smrg 10498aee7dae4Smrg 10499aee7dae4Smrg# Check whether --enable-silent-rules was given. 10500aee7dae4Smrgif test "${enable_silent_rules+set}" = set; then : 10501aee7dae4Smrg enableval=$enable_silent_rules; 10502aee7dae4Smrgfi 10503aee7dae4Smrg 10504aee7dae4Smrgcase $enable_silent_rules in 10505aee7dae4Smrgyes) AM_DEFAULT_VERBOSITY=0;; 10506aee7dae4Smrgno) AM_DEFAULT_VERBOSITY=1;; 10507aee7dae4Smrg*) AM_DEFAULT_VERBOSITY=0;; 10508aee7dae4Smrgesac 10509aee7dae4Smrgam_make=${MAKE-make} 10510aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10511aee7dae4Smrg$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10512aee7dae4Smrgif ${am_cv_make_support_nested_variables+:} false; then : 10513aee7dae4Smrg $as_echo_n "(cached) " >&6 10514aee7dae4Smrgelse 10515aee7dae4Smrg if $as_echo 'TRUE=$(BAR$(V)) 10516aee7dae4SmrgBAR0=false 10517aee7dae4SmrgBAR1=true 10518aee7dae4SmrgV=1 10519aee7dae4Smrgam__doit: 10520aee7dae4Smrg @$(TRUE) 10521aee7dae4Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10522aee7dae4Smrg am_cv_make_support_nested_variables=yes 10523aee7dae4Smrgelse 10524aee7dae4Smrg am_cv_make_support_nested_variables=no 10525aee7dae4Smrgfi 10526aee7dae4Smrgfi 10527aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10528aee7dae4Smrg$as_echo "$am_cv_make_support_nested_variables" >&6; } 10529aee7dae4Smrgif test $am_cv_make_support_nested_variables = yes; then 10530aee7dae4Smrg AM_V='$(V)' 10531aee7dae4Smrg AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10532aee7dae4Smrgelse 10533aee7dae4Smrg AM_V=$AM_DEFAULT_VERBOSITY 10534aee7dae4Smrg AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10535aee7dae4Smrgfi 10536aee7dae4SmrgAM_BACKSLASH='\' 10537aee7dae4Smrg 10538aee7dae4Smrg 10539aee7dae4Smrg 10540aee7dae4Smrg# Initialize libtool 10541aee7dae4Smrg# Check whether --enable-static was given. 10542aee7dae4Smrgif test "${enable_static+set}" = set; then : 10543aee7dae4Smrg enableval=$enable_static; p=${PACKAGE-default} 10544aee7dae4Smrg case $enableval in 10545aee7dae4Smrg yes) enable_static=yes ;; 10546aee7dae4Smrg no) enable_static=no ;; 10547aee7dae4Smrg *) 10548aee7dae4Smrg enable_static=no 10549aee7dae4Smrg # Look at the argument we got. We use all the common list separators. 10550aee7dae4Smrg lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10551aee7dae4Smrg for pkg in $enableval; do 10552aee7dae4Smrg IFS="$lt_save_ifs" 10553aee7dae4Smrg if test "X$pkg" = "X$p"; then 10554aee7dae4Smrg enable_static=yes 10555aee7dae4Smrg fi 10556aee7dae4Smrg done 10557aee7dae4Smrg IFS="$lt_save_ifs" 10558aee7dae4Smrg ;; 10559aee7dae4Smrg esac 10560aee7dae4Smrgelse 10561aee7dae4Smrg enable_static=no 10562aee7dae4Smrgfi 10563aee7dae4Smrg 10564aee7dae4Smrg 10565aee7dae4Smrg 10566aee7dae4Smrg 10567aee7dae4Smrg 10568aee7dae4Smrg 10569aee7dae4Smrg 10570aee7dae4Smrg 10571aee7dae4Smrg 10572aee7dae4Smrgcase `pwd` in 10573aee7dae4Smrg *\ * | *\ *) 10574aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 10575aee7dae4Smrg$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 10576aee7dae4Smrgesac 10577aee7dae4Smrg 10578aee7dae4Smrg 10579aee7dae4Smrg 10580aee7dae4Smrgmacro_version='2.4.2' 10581aee7dae4Smrgmacro_revision='1.3337' 10582aee7dae4Smrg 10583aee7dae4Smrg 10584aee7dae4Smrg 10585aee7dae4Smrg 10586aee7dae4Smrg 10587aee7dae4Smrg 10588aee7dae4Smrg 10589aee7dae4Smrg 10590aee7dae4Smrg 10591aee7dae4Smrg 10592aee7dae4Smrg 10593aee7dae4Smrg 10594aee7dae4Smrg 10595aee7dae4Smrgltmain="$ac_aux_dir/ltmain.sh" 10596aee7dae4Smrg 10597aee7dae4Smrg# Backslashify metacharacters that are still active within 10598aee7dae4Smrg# double-quoted strings. 10599aee7dae4Smrgsed_quote_subst='s/\(["`$\\]\)/\\\1/g' 10600aee7dae4Smrg 10601aee7dae4Smrg# Same as above, but do not quote variable references. 10602aee7dae4Smrgdouble_quote_subst='s/\(["`\\]\)/\\\1/g' 10603aee7dae4Smrg 10604aee7dae4Smrg# Sed substitution to delay expansion of an escaped shell variable in a 10605aee7dae4Smrg# double_quote_subst'ed string. 10606aee7dae4Smrgdelay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 10607aee7dae4Smrg 10608aee7dae4Smrg# Sed substitution to delay expansion of an escaped single quote. 10609aee7dae4Smrgdelay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 10610aee7dae4Smrg 10611aee7dae4Smrg# Sed substitution to avoid accidental globbing in evaled expressions 10612aee7dae4Smrgno_glob_subst='s/\*/\\\*/g' 10613aee7dae4Smrg 10614aee7dae4SmrgECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 10615aee7dae4SmrgECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 10616aee7dae4SmrgECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 10617aee7dae4Smrg 10618aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 10619aee7dae4Smrg$as_echo_n "checking how to print strings... " >&6; } 10620aee7dae4Smrg# Test print first, because it will be a builtin if present. 10621aee7dae4Smrgif test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 10622aee7dae4Smrg test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 10623aee7dae4Smrg ECHO='print -r --' 10624aee7dae4Smrgelif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 10625aee7dae4Smrg ECHO='printf %s\n' 10626aee7dae4Smrgelse 10627aee7dae4Smrg # Use this function as a fallback that always works. 10628aee7dae4Smrg func_fallback_echo () 10629aee7dae4Smrg { 10630aee7dae4Smrg eval 'cat <<_LTECHO_EOF 10631aee7dae4Smrg$1 10632aee7dae4Smrg_LTECHO_EOF' 10633aee7dae4Smrg } 10634aee7dae4Smrg ECHO='func_fallback_echo' 10635aee7dae4Smrgfi 10636aee7dae4Smrg 10637aee7dae4Smrg# func_echo_all arg... 10638aee7dae4Smrg# Invoke $ECHO with all args, space-separated. 10639aee7dae4Smrgfunc_echo_all () 10640aee7dae4Smrg{ 10641aee7dae4Smrg $ECHO "" 10642aee7dae4Smrg} 10643aee7dae4Smrg 10644aee7dae4Smrgcase "$ECHO" in 10645aee7dae4Smrg printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 10646aee7dae4Smrg$as_echo "printf" >&6; } ;; 10647aee7dae4Smrg print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 10648aee7dae4Smrg$as_echo "print -r" >&6; } ;; 10649aee7dae4Smrg *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 10650aee7dae4Smrg$as_echo "cat" >&6; } ;; 10651aee7dae4Smrgesac 10652aee7dae4Smrg 10653aee7dae4Smrg 10654aee7dae4Smrg 10655aee7dae4Smrg 10656aee7dae4Smrg 10657aee7dae4Smrg 10658aee7dae4Smrg 10659aee7dae4Smrg 10660aee7dae4Smrg 10661aee7dae4Smrg 10662aee7dae4Smrg 10663aee7dae4Smrg 10664aee7dae4Smrg 10665aee7dae4Smrg 10666aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 10667aee7dae4Smrg$as_echo_n "checking for a sed that does not truncate output... " >&6; } 10668aee7dae4Smrgif ${ac_cv_path_SED+:} false; then : 10669aee7dae4Smrg $as_echo_n "(cached) " >&6 10670aee7dae4Smrgelse 10671aee7dae4Smrg ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 10672aee7dae4Smrg for ac_i in 1 2 3 4 5 6 7; do 10673aee7dae4Smrg ac_script="$ac_script$as_nl$ac_script" 10674aee7dae4Smrg done 10675aee7dae4Smrg echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 10676aee7dae4Smrg { ac_script=; unset ac_script;} 10677aee7dae4Smrg if test -z "$SED"; then 10678aee7dae4Smrg ac_path_SED_found=false 10679aee7dae4Smrg # Loop through the user's path and test for each of PROGNAME-LIST 10680aee7dae4Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10681aee7dae4Smrgfor as_dir in $PATH 10682aee7dae4Smrgdo 10683aee7dae4Smrg IFS=$as_save_IFS 10684aee7dae4Smrg test -z "$as_dir" && as_dir=. 10685aee7dae4Smrg for ac_prog in sed gsed; do 10686aee7dae4Smrg for ac_exec_ext in '' $ac_executable_extensions; do 10687aee7dae4Smrg ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 10688aee7dae4Smrg as_fn_executable_p "$ac_path_SED" || continue 10689aee7dae4Smrg# Check for GNU ac_path_SED and select it if it is found. 10690aee7dae4Smrg # Check for GNU $ac_path_SED 10691aee7dae4Smrgcase `"$ac_path_SED" --version 2>&1` in 10692aee7dae4Smrg*GNU*) 10693aee7dae4Smrg ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 10694aee7dae4Smrg*) 10695aee7dae4Smrg ac_count=0 10696aee7dae4Smrg $as_echo_n 0123456789 >"conftest.in" 10697aee7dae4Smrg while : 10698aee7dae4Smrg do 10699aee7dae4Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 10700aee7dae4Smrg mv "conftest.tmp" "conftest.in" 10701aee7dae4Smrg cp "conftest.in" "conftest.nl" 10702aee7dae4Smrg $as_echo '' >> "conftest.nl" 10703aee7dae4Smrg "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 10704aee7dae4Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 10705aee7dae4Smrg as_fn_arith $ac_count + 1 && ac_count=$as_val 10706aee7dae4Smrg if test $ac_count -gt ${ac_path_SED_max-0}; then 10707aee7dae4Smrg # Best one so far, save it but keep looking for a better one 10708aee7dae4Smrg ac_cv_path_SED="$ac_path_SED" 10709aee7dae4Smrg ac_path_SED_max=$ac_count 10710aee7dae4Smrg fi 10711aee7dae4Smrg # 10*(2^10) chars as input seems more than enough 10712aee7dae4Smrg test $ac_count -gt 10 && break 10713aee7dae4Smrg done 10714aee7dae4Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 10715aee7dae4Smrgesac 10716aee7dae4Smrg 10717aee7dae4Smrg $ac_path_SED_found && break 3 10718aee7dae4Smrg done 10719aee7dae4Smrg done 10720aee7dae4Smrg done 10721aee7dae4SmrgIFS=$as_save_IFS 10722aee7dae4Smrg if test -z "$ac_cv_path_SED"; then 10723aee7dae4Smrg as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 10724aee7dae4Smrg fi 10725aee7dae4Smrgelse 10726aee7dae4Smrg ac_cv_path_SED=$SED 10727aee7dae4Smrgfi 10728aee7dae4Smrg 10729aee7dae4Smrgfi 10730aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 10731aee7dae4Smrg$as_echo "$ac_cv_path_SED" >&6; } 10732aee7dae4Smrg SED="$ac_cv_path_SED" 10733aee7dae4Smrg rm -f conftest.sed 10734aee7dae4Smrg 10735aee7dae4Smrgtest -z "$SED" && SED=sed 10736aee7dae4SmrgXsed="$SED -e 1s/^X//" 10737aee7dae4Smrg 10738aee7dae4Smrg 10739aee7dae4Smrg 10740aee7dae4Smrg 10741aee7dae4Smrg 10742aee7dae4Smrg 10743aee7dae4Smrg 10744aee7dae4Smrg 10745aee7dae4Smrg 10746aee7dae4Smrg 10747aee7dae4Smrg 10748aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 10749aee7dae4Smrg$as_echo_n "checking for fgrep... " >&6; } 10750aee7dae4Smrgif ${ac_cv_path_FGREP+:} false; then : 10751aee7dae4Smrg $as_echo_n "(cached) " >&6 10752aee7dae4Smrgelse 10753aee7dae4Smrg if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 10754aee7dae4Smrg then ac_cv_path_FGREP="$GREP -F" 10755aee7dae4Smrg else 10756aee7dae4Smrg if test -z "$FGREP"; then 10757aee7dae4Smrg ac_path_FGREP_found=false 10758aee7dae4Smrg # Loop through the user's path and test for each of PROGNAME-LIST 10759aee7dae4Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10760aee7dae4Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 10761aee7dae4Smrgdo 10762aee7dae4Smrg IFS=$as_save_IFS 10763aee7dae4Smrg test -z "$as_dir" && as_dir=. 10764aee7dae4Smrg for ac_prog in fgrep; do 10765aee7dae4Smrg for ac_exec_ext in '' $ac_executable_extensions; do 10766aee7dae4Smrg ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 10767aee7dae4Smrg as_fn_executable_p "$ac_path_FGREP" || continue 10768aee7dae4Smrg# Check for GNU ac_path_FGREP and select it if it is found. 10769aee7dae4Smrg # Check for GNU $ac_path_FGREP 10770aee7dae4Smrgcase `"$ac_path_FGREP" --version 2>&1` in 10771aee7dae4Smrg*GNU*) 10772aee7dae4Smrg ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 10773aee7dae4Smrg*) 10774aee7dae4Smrg ac_count=0 10775aee7dae4Smrg $as_echo_n 0123456789 >"conftest.in" 10776aee7dae4Smrg while : 10777aee7dae4Smrg do 10778aee7dae4Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 10779aee7dae4Smrg mv "conftest.tmp" "conftest.in" 10780aee7dae4Smrg cp "conftest.in" "conftest.nl" 10781aee7dae4Smrg $as_echo 'FGREP' >> "conftest.nl" 10782aee7dae4Smrg "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 10783aee7dae4Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 10784aee7dae4Smrg as_fn_arith $ac_count + 1 && ac_count=$as_val 10785aee7dae4Smrg if test $ac_count -gt ${ac_path_FGREP_max-0}; then 10786aee7dae4Smrg # Best one so far, save it but keep looking for a better one 10787aee7dae4Smrg ac_cv_path_FGREP="$ac_path_FGREP" 10788aee7dae4Smrg ac_path_FGREP_max=$ac_count 10789aee7dae4Smrg fi 10790aee7dae4Smrg # 10*(2^10) chars as input seems more than enough 10791aee7dae4Smrg test $ac_count -gt 10 && break 10792aee7dae4Smrg done 10793aee7dae4Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 10794aee7dae4Smrgesac 10795aee7dae4Smrg 10796aee7dae4Smrg $ac_path_FGREP_found && break 3 10797aee7dae4Smrg done 10798aee7dae4Smrg done 10799aee7dae4Smrg done 10800aee7dae4SmrgIFS=$as_save_IFS 10801aee7dae4Smrg if test -z "$ac_cv_path_FGREP"; then 10802aee7dae4Smrg as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 10803aee7dae4Smrg fi 10804aee7dae4Smrgelse 10805aee7dae4Smrg ac_cv_path_FGREP=$FGREP 10806aee7dae4Smrgfi 10807aee7dae4Smrg 10808aee7dae4Smrg fi 10809aee7dae4Smrgfi 10810aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 10811aee7dae4Smrg$as_echo "$ac_cv_path_FGREP" >&6; } 10812aee7dae4Smrg FGREP="$ac_cv_path_FGREP" 10813aee7dae4Smrg 10814aee7dae4Smrg 10815aee7dae4Smrgtest -z "$GREP" && GREP=grep 10816aee7dae4Smrg 10817aee7dae4Smrg 10818aee7dae4Smrg 10819aee7dae4Smrg 10820aee7dae4Smrg 10821aee7dae4Smrg 10822aee7dae4Smrg 10823aee7dae4Smrg 10824aee7dae4Smrg 10825aee7dae4Smrg 10826aee7dae4Smrg 10827aee7dae4Smrg 10828aee7dae4Smrg 10829aee7dae4Smrg 10830aee7dae4Smrg 10831aee7dae4Smrg 10832aee7dae4Smrg 10833aee7dae4Smrg 10834aee7dae4Smrg 10835aee7dae4Smrg# Check whether --with-gnu-ld was given. 10836aee7dae4Smrgif test "${with_gnu_ld+set}" = set; then : 10837aee7dae4Smrg withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 10838aee7dae4Smrgelse 10839aee7dae4Smrg with_gnu_ld=no 10840aee7dae4Smrgfi 10841aee7dae4Smrg 10842aee7dae4Smrgac_prog=ld 10843aee7dae4Smrgif test "$GCC" = yes; then 10844aee7dae4Smrg # Check if gcc -print-prog-name=ld gives a path. 10845aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 10846aee7dae4Smrg$as_echo_n "checking for ld used by $CC... " >&6; } 10847aee7dae4Smrg case $host in 10848aee7dae4Smrg *-*-mingw*) 10849aee7dae4Smrg # gcc leaves a trailing carriage return which upsets mingw 10850aee7dae4Smrg ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 10851aee7dae4Smrg *) 10852aee7dae4Smrg ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 10853aee7dae4Smrg esac 10854aee7dae4Smrg case $ac_prog in 10855aee7dae4Smrg # Accept absolute paths. 10856aee7dae4Smrg [\\/]* | ?:[\\/]*) 10857aee7dae4Smrg re_direlt='/[^/][^/]*/\.\./' 10858aee7dae4Smrg # Canonicalize the pathname of ld 10859aee7dae4Smrg ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 10860aee7dae4Smrg while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 10861aee7dae4Smrg ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 10862aee7dae4Smrg done 10863aee7dae4Smrg test -z "$LD" && LD="$ac_prog" 10864aee7dae4Smrg ;; 10865aee7dae4Smrg "") 10866aee7dae4Smrg # If it fails, then pretend we aren't using GCC. 10867aee7dae4Smrg ac_prog=ld 10868aee7dae4Smrg ;; 10869aee7dae4Smrg *) 10870aee7dae4Smrg # If it is relative, then search for the first ld in PATH. 10871aee7dae4Smrg with_gnu_ld=unknown 10872aee7dae4Smrg ;; 10873aee7dae4Smrg esac 10874aee7dae4Smrgelif test "$with_gnu_ld" = yes; then 10875aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 10876aee7dae4Smrg$as_echo_n "checking for GNU ld... " >&6; } 10877aee7dae4Smrgelse 10878aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 10879aee7dae4Smrg$as_echo_n "checking for non-GNU ld... " >&6; } 10880aee7dae4Smrgfi 10881aee7dae4Smrgif ${lt_cv_path_LD+:} false; then : 10882aee7dae4Smrg $as_echo_n "(cached) " >&6 10883aee7dae4Smrgelse 10884aee7dae4Smrg if test -z "$LD"; then 10885aee7dae4Smrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10886aee7dae4Smrg for ac_dir in $PATH; do 10887aee7dae4Smrg IFS="$lt_save_ifs" 10888aee7dae4Smrg test -z "$ac_dir" && ac_dir=. 10889aee7dae4Smrg if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 10890aee7dae4Smrg lt_cv_path_LD="$ac_dir/$ac_prog" 10891aee7dae4Smrg # Check to see if the program is GNU ld. I'd rather use --version, 10892aee7dae4Smrg # but apparently some variants of GNU ld only accept -v. 10893aee7dae4Smrg # Break only if it was the GNU/non-GNU ld that we prefer. 10894aee7dae4Smrg case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 10895aee7dae4Smrg *GNU* | *'with BFD'*) 10896aee7dae4Smrg test "$with_gnu_ld" != no && break 10897aee7dae4Smrg ;; 10898aee7dae4Smrg *) 10899aee7dae4Smrg test "$with_gnu_ld" != yes && break 10900aee7dae4Smrg ;; 10901aee7dae4Smrg esac 10902aee7dae4Smrg fi 10903aee7dae4Smrg done 10904aee7dae4Smrg IFS="$lt_save_ifs" 10905aee7dae4Smrgelse 10906aee7dae4Smrg lt_cv_path_LD="$LD" # Let the user override the test with a path. 10907aee7dae4Smrgfi 10908aee7dae4Smrgfi 10909aee7dae4Smrg 10910aee7dae4SmrgLD="$lt_cv_path_LD" 10911aee7dae4Smrgif test -n "$LD"; then 10912aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 10913aee7dae4Smrg$as_echo "$LD" >&6; } 10914aee7dae4Smrgelse 10915aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10916aee7dae4Smrg$as_echo "no" >&6; } 10917aee7dae4Smrgfi 10918aee7dae4Smrgtest -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 10919aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 10920aee7dae4Smrg$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 10921aee7dae4Smrgif ${lt_cv_prog_gnu_ld+:} false; then : 10922aee7dae4Smrg $as_echo_n "(cached) " >&6 10923aee7dae4Smrgelse 10924aee7dae4Smrg # I'd rather use --version here, but apparently some GNU lds only accept -v. 10925aee7dae4Smrgcase `$LD -v 2>&1 </dev/null` in 10926aee7dae4Smrg*GNU* | *'with BFD'*) 10927aee7dae4Smrg lt_cv_prog_gnu_ld=yes 10928aee7dae4Smrg ;; 10929aee7dae4Smrg*) 10930aee7dae4Smrg lt_cv_prog_gnu_ld=no 10931aee7dae4Smrg ;; 10932aee7dae4Smrgesac 10933aee7dae4Smrgfi 10934aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 10935aee7dae4Smrg$as_echo "$lt_cv_prog_gnu_ld" >&6; } 10936aee7dae4Smrgwith_gnu_ld=$lt_cv_prog_gnu_ld 10937aee7dae4Smrg 10938aee7dae4Smrg 10939aee7dae4Smrg 10940aee7dae4Smrg 10941aee7dae4Smrg 10942aee7dae4Smrg 10943aee7dae4Smrg 10944aee7dae4Smrg 10945aee7dae4Smrg 10946aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 10947aee7dae4Smrg$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 10948aee7dae4Smrgif ${lt_cv_path_NM+:} false; then : 10949aee7dae4Smrg $as_echo_n "(cached) " >&6 10950aee7dae4Smrgelse 10951aee7dae4Smrg if test -n "$NM"; then 10952aee7dae4Smrg # Let the user override the test. 10953aee7dae4Smrg lt_cv_path_NM="$NM" 10954aee7dae4Smrgelse 10955aee7dae4Smrg lt_nm_to_check="${ac_tool_prefix}nm" 10956aee7dae4Smrg if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 10957aee7dae4Smrg lt_nm_to_check="$lt_nm_to_check nm" 10958aee7dae4Smrg fi 10959aee7dae4Smrg for lt_tmp_nm in $lt_nm_to_check; do 10960aee7dae4Smrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10961aee7dae4Smrg for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 10962aee7dae4Smrg IFS="$lt_save_ifs" 10963aee7dae4Smrg test -z "$ac_dir" && ac_dir=. 10964aee7dae4Smrg tmp_nm="$ac_dir/$lt_tmp_nm" 10965aee7dae4Smrg if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 10966aee7dae4Smrg # Check to see if the nm accepts a BSD-compat flag. 10967aee7dae4Smrg # Adding the `sed 1q' prevents false positives on HP-UX, which says: 10968aee7dae4Smrg # nm: unknown option "B" ignored 10969aee7dae4Smrg # Tru64's nm complains that /dev/null is an invalid object file 10970aee7dae4Smrg case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 10971aee7dae4Smrg */dev/null* | *'Invalid file or object type'*) 10972aee7dae4Smrg lt_cv_path_NM="$tmp_nm -B" 10973aee7dae4Smrg break 10974aee7dae4Smrg ;; 10975aee7dae4Smrg *) 10976aee7dae4Smrg case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 10977aee7dae4Smrg */dev/null*) 10978aee7dae4Smrg lt_cv_path_NM="$tmp_nm -p" 10979aee7dae4Smrg break 10980aee7dae4Smrg ;; 10981aee7dae4Smrg *) 10982aee7dae4Smrg lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 10983aee7dae4Smrg continue # so that we can try to find one that supports BSD flags 10984aee7dae4Smrg ;; 10985aee7dae4Smrg esac 10986aee7dae4Smrg ;; 10987aee7dae4Smrg esac 10988aee7dae4Smrg fi 10989aee7dae4Smrg done 10990aee7dae4Smrg IFS="$lt_save_ifs" 10991aee7dae4Smrg done 10992aee7dae4Smrg : ${lt_cv_path_NM=no} 10993aee7dae4Smrgfi 10994aee7dae4Smrgfi 10995aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 10996aee7dae4Smrg$as_echo "$lt_cv_path_NM" >&6; } 10997aee7dae4Smrgif test "$lt_cv_path_NM" != "no"; then 10998aee7dae4Smrg NM="$lt_cv_path_NM" 10999aee7dae4Smrgelse 11000aee7dae4Smrg # Didn't find any BSD compatible name lister, look for dumpbin. 11001aee7dae4Smrg if test -n "$DUMPBIN"; then : 11002aee7dae4Smrg # Let the user override the test. 11003aee7dae4Smrg else 11004aee7dae4Smrg if test -n "$ac_tool_prefix"; then 11005aee7dae4Smrg for ac_prog in dumpbin "link -dump" 11006aee7dae4Smrg do 11007aee7dae4Smrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11008aee7dae4Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2 11009aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11010aee7dae4Smrg$as_echo_n "checking for $ac_word... " >&6; } 11011aee7dae4Smrgif ${ac_cv_prog_DUMPBIN+:} false; then : 11012aee7dae4Smrg $as_echo_n "(cached) " >&6 11013aee7dae4Smrgelse 11014aee7dae4Smrg if test -n "$DUMPBIN"; then 11015aee7dae4Smrg ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 11016aee7dae4Smrgelse 11017aee7dae4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11018aee7dae4Smrgfor as_dir in $PATH 11019aee7dae4Smrgdo 11020aee7dae4Smrg IFS=$as_save_IFS 11021aee7dae4Smrg test -z "$as_dir" && as_dir=. 11022aee7dae4Smrg for ac_exec_ext in '' $ac_executable_extensions; do 11023aee7dae4Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11024aee7dae4Smrg ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 11025aee7dae4Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11026aee7dae4Smrg break 2 11027aee7dae4Smrg fi 11028aee7dae4Smrgdone 11029aee7dae4Smrg done 11030aee7dae4SmrgIFS=$as_save_IFS 11031aee7dae4Smrg 11032aee7dae4Smrgfi 11033aee7dae4Smrgfi 11034aee7dae4SmrgDUMPBIN=$ac_cv_prog_DUMPBIN 11035aee7dae4Smrgif test -n "$DUMPBIN"; then 11036aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 11037aee7dae4Smrg$as_echo "$DUMPBIN" >&6; } 11038aee7dae4Smrgelse 11039aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11040aee7dae4Smrg$as_echo "no" >&6; } 11041aee7dae4Smrgfi 11042aee7dae4Smrg 11043aee7dae4Smrg 11044aee7dae4Smrg test -n "$DUMPBIN" && break 11045aee7dae4Smrg done 11046aee7dae4Smrgfi 11047aee7dae4Smrgif test -z "$DUMPBIN"; then 11048aee7dae4Smrg ac_ct_DUMPBIN=$DUMPBIN 11049aee7dae4Smrg for ac_prog in dumpbin "link -dump" 11050aee7dae4Smrgdo 11051aee7dae4Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 11052aee7dae4Smrgset dummy $ac_prog; ac_word=$2 11053aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11054aee7dae4Smrg$as_echo_n "checking for $ac_word... " >&6; } 11055aee7dae4Smrgif ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 11056aee7dae4Smrg $as_echo_n "(cached) " >&6 11057aee7dae4Smrgelse 11058aee7dae4Smrg if test -n "$ac_ct_DUMPBIN"; then 11059aee7dae4Smrg ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 11060aee7dae4Smrgelse 11061aee7dae4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11062aee7dae4Smrgfor as_dir in $PATH 11063aee7dae4Smrgdo 11064aee7dae4Smrg IFS=$as_save_IFS 11065aee7dae4Smrg test -z "$as_dir" && as_dir=. 11066aee7dae4Smrg for ac_exec_ext in '' $ac_executable_extensions; do 11067aee7dae4Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11068aee7dae4Smrg ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 11069aee7dae4Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11070aee7dae4Smrg break 2 11071aee7dae4Smrg fi 11072aee7dae4Smrgdone 11073aee7dae4Smrg done 11074aee7dae4SmrgIFS=$as_save_IFS 11075aee7dae4Smrg 11076aee7dae4Smrgfi 11077aee7dae4Smrgfi 11078aee7dae4Smrgac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 11079aee7dae4Smrgif test -n "$ac_ct_DUMPBIN"; then 11080aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 11081aee7dae4Smrg$as_echo "$ac_ct_DUMPBIN" >&6; } 11082aee7dae4Smrgelse 11083aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11084aee7dae4Smrg$as_echo "no" >&6; } 11085aee7dae4Smrgfi 11086aee7dae4Smrg 11087aee7dae4Smrg 11088aee7dae4Smrg test -n "$ac_ct_DUMPBIN" && break 11089aee7dae4Smrgdone 11090aee7dae4Smrg 11091aee7dae4Smrg if test "x$ac_ct_DUMPBIN" = x; then 11092aee7dae4Smrg DUMPBIN=":" 11093aee7dae4Smrg else 11094aee7dae4Smrg case $cross_compiling:$ac_tool_warned in 11095aee7dae4Smrgyes:) 11096aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11097aee7dae4Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11098aee7dae4Smrgac_tool_warned=yes ;; 11099aee7dae4Smrgesac 11100aee7dae4Smrg DUMPBIN=$ac_ct_DUMPBIN 11101aee7dae4Smrg fi 11102aee7dae4Smrgfi 11103aee7dae4Smrg 11104aee7dae4Smrg case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 11105aee7dae4Smrg *COFF*) 11106aee7dae4Smrg DUMPBIN="$DUMPBIN -symbols" 11107aee7dae4Smrg ;; 11108aee7dae4Smrg *) 11109aee7dae4Smrg DUMPBIN=: 11110aee7dae4Smrg ;; 11111aee7dae4Smrg esac 11112aee7dae4Smrg fi 11113aee7dae4Smrg 11114aee7dae4Smrg if test "$DUMPBIN" != ":"; then 11115aee7dae4Smrg NM="$DUMPBIN" 11116aee7dae4Smrg fi 11117aee7dae4Smrgfi 11118aee7dae4Smrgtest -z "$NM" && NM=nm 11119aee7dae4Smrg 11120aee7dae4Smrg 11121aee7dae4Smrg 11122aee7dae4Smrg 11123aee7dae4Smrg 11124aee7dae4Smrg 11125aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 11126aee7dae4Smrg$as_echo_n "checking the name lister ($NM) interface... " >&6; } 11127aee7dae4Smrgif ${lt_cv_nm_interface+:} false; then : 11128aee7dae4Smrg $as_echo_n "(cached) " >&6 11129aee7dae4Smrgelse 11130aee7dae4Smrg lt_cv_nm_interface="BSD nm" 11131aee7dae4Smrg echo "int some_variable = 0;" > conftest.$ac_ext 11132aee7dae4Smrg (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 11133aee7dae4Smrg (eval "$ac_compile" 2>conftest.err) 11134aee7dae4Smrg cat conftest.err >&5 11135aee7dae4Smrg (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 11136aee7dae4Smrg (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 11137aee7dae4Smrg cat conftest.err >&5 11138aee7dae4Smrg (eval echo "\"\$as_me:$LINENO: output\"" >&5) 11139aee7dae4Smrg cat conftest.out >&5 11140aee7dae4Smrg if $GREP 'External.*some_variable' conftest.out > /dev/null; then 11141aee7dae4Smrg lt_cv_nm_interface="MS dumpbin" 11142aee7dae4Smrg fi 11143aee7dae4Smrg rm -f conftest* 11144aee7dae4Smrgfi 11145aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 11146aee7dae4Smrg$as_echo "$lt_cv_nm_interface" >&6; } 11147aee7dae4Smrg 11148aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 11149aee7dae4Smrg$as_echo_n "checking whether ln -s works... " >&6; } 11150aee7dae4SmrgLN_S=$as_ln_s 11151aee7dae4Smrgif test "$LN_S" = "ln -s"; then 11152aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11153aee7dae4Smrg$as_echo "yes" >&6; } 11154aee7dae4Smrgelse 11155aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 11156aee7dae4Smrg$as_echo "no, using $LN_S" >&6; } 11157aee7dae4Smrgfi 11158aee7dae4Smrg 11159aee7dae4Smrg# find the maximum length of command line arguments 11160aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 11161aee7dae4Smrg$as_echo_n "checking the maximum length of command line arguments... " >&6; } 11162aee7dae4Smrgif ${lt_cv_sys_max_cmd_len+:} false; then : 11163aee7dae4Smrg $as_echo_n "(cached) " >&6 11164aee7dae4Smrgelse 11165aee7dae4Smrg i=0 11166aee7dae4Smrg teststring="ABCD" 11167aee7dae4Smrg 11168aee7dae4Smrg case $build_os in 11169aee7dae4Smrg msdosdjgpp*) 11170aee7dae4Smrg # On DJGPP, this test can blow up pretty badly due to problems in libc 11171aee7dae4Smrg # (any single argument exceeding 2000 bytes causes a buffer overrun 11172aee7dae4Smrg # during glob expansion). Even if it were fixed, the result of this 11173aee7dae4Smrg # check would be larger than it should be. 11174aee7dae4Smrg lt_cv_sys_max_cmd_len=12288; # 12K is about right 11175aee7dae4Smrg ;; 11176aee7dae4Smrg 11177aee7dae4Smrg gnu*) 11178aee7dae4Smrg # Under GNU Hurd, this test is not required because there is 11179aee7dae4Smrg # no limit to the length of command line arguments. 11180aee7dae4Smrg # Libtool will interpret -1 as no limit whatsoever 11181aee7dae4Smrg lt_cv_sys_max_cmd_len=-1; 11182aee7dae4Smrg ;; 11183aee7dae4Smrg 11184aee7dae4Smrg cygwin* | mingw* | cegcc*) 11185aee7dae4Smrg # On Win9x/ME, this test blows up -- it succeeds, but takes 11186aee7dae4Smrg # about 5 minutes as the teststring grows exponentially. 11187aee7dae4Smrg # Worse, since 9x/ME are not pre-emptively multitasking, 11188aee7dae4Smrg # you end up with a "frozen" computer, even though with patience 11189aee7dae4Smrg # the test eventually succeeds (with a max line length of 256k). 11190aee7dae4Smrg # Instead, let's just punt: use the minimum linelength reported by 11191aee7dae4Smrg # all of the supported platforms: 8192 (on NT/2K/XP). 11192aee7dae4Smrg lt_cv_sys_max_cmd_len=8192; 11193aee7dae4Smrg ;; 11194aee7dae4Smrg 11195aee7dae4Smrg mint*) 11196aee7dae4Smrg # On MiNT this can take a long time and run out of memory. 11197aee7dae4Smrg lt_cv_sys_max_cmd_len=8192; 11198aee7dae4Smrg ;; 11199aee7dae4Smrg 11200aee7dae4Smrg amigaos*) 11201aee7dae4Smrg # On AmigaOS with pdksh, this test takes hours, literally. 11202aee7dae4Smrg # So we just punt and use a minimum line length of 8192. 11203aee7dae4Smrg lt_cv_sys_max_cmd_len=8192; 11204aee7dae4Smrg ;; 11205aee7dae4Smrg 11206aee7dae4Smrg netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 11207aee7dae4Smrg # This has been around since 386BSD, at least. Likely further. 11208aee7dae4Smrg if test -x /sbin/sysctl; then 11209aee7dae4Smrg lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 11210aee7dae4Smrg elif test -x /usr/sbin/sysctl; then 11211aee7dae4Smrg lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 11212ba0eab60Smacallan else 11213aee7dae4Smrg lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 11214ba0eab60Smacallan fi 11215aee7dae4Smrg # And add a safety zone 11216aee7dae4Smrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 11217aee7dae4Smrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 11218ba0eab60Smacallan ;; 11219aee7dae4Smrg 11220aee7dae4Smrg interix*) 11221aee7dae4Smrg # We know the value 262144 and hardcode it with a safety zone (like BSD) 11222aee7dae4Smrg lt_cv_sys_max_cmd_len=196608 11223ba0eab60Smacallan ;; 11224ba0eab60Smacallan 11225aee7dae4Smrg os2*) 11226aee7dae4Smrg # The test takes a long time on OS/2. 11227aee7dae4Smrg lt_cv_sys_max_cmd_len=8192 11228aee7dae4Smrg ;; 11229ba0eab60Smacallan 11230aee7dae4Smrg osf*) 11231aee7dae4Smrg # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 11232aee7dae4Smrg # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 11233aee7dae4Smrg # nice to cause kernel panics so lets avoid the loop below. 11234aee7dae4Smrg # First set a reasonable default. 11235aee7dae4Smrg lt_cv_sys_max_cmd_len=16384 11236aee7dae4Smrg # 11237aee7dae4Smrg if test -x /sbin/sysconfig; then 11238aee7dae4Smrg case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 11239aee7dae4Smrg *1*) lt_cv_sys_max_cmd_len=-1 ;; 11240aee7dae4Smrg esac 11241aee7dae4Smrg fi 11242aee7dae4Smrg ;; 11243aee7dae4Smrg sco3.2v5*) 11244aee7dae4Smrg lt_cv_sys_max_cmd_len=102400 11245aee7dae4Smrg ;; 11246aee7dae4Smrg sysv5* | sco5v6* | sysv4.2uw2*) 11247aee7dae4Smrg kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 11248aee7dae4Smrg if test -n "$kargmax"; then 11249aee7dae4Smrg lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 11250aee7dae4Smrg else 11251aee7dae4Smrg lt_cv_sys_max_cmd_len=32768 11252aee7dae4Smrg fi 11253ba0eab60Smacallan ;; 11254ba0eab60Smacallan *) 11255aee7dae4Smrg lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 11256aee7dae4Smrg if test -n "$lt_cv_sys_max_cmd_len"; then 11257aee7dae4Smrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 11258aee7dae4Smrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 11259aee7dae4Smrg else 11260aee7dae4Smrg # Make teststring a little bigger before we do anything with it. 11261aee7dae4Smrg # a 1K string should be a reasonable start. 11262aee7dae4Smrg for i in 1 2 3 4 5 6 7 8 ; do 11263aee7dae4Smrg teststring=$teststring$teststring 11264aee7dae4Smrg done 11265aee7dae4Smrg SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 11266aee7dae4Smrg # If test is not a shell built-in, we'll probably end up computing a 11267aee7dae4Smrg # maximum length that is only half of the actual maximum length, but 11268aee7dae4Smrg # we can't tell. 11269aee7dae4Smrg while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 11270aee7dae4Smrg = "X$teststring$teststring"; } >/dev/null 2>&1 && 11271aee7dae4Smrg test $i != 17 # 1/2 MB should be enough 11272aee7dae4Smrg do 11273aee7dae4Smrg i=`expr $i + 1` 11274aee7dae4Smrg teststring=$teststring$teststring 11275aee7dae4Smrg done 11276aee7dae4Smrg # Only check the string length outside the loop. 11277aee7dae4Smrg lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 11278aee7dae4Smrg teststring= 11279aee7dae4Smrg # Add a significant safety factor because C++ compilers can tack on 11280aee7dae4Smrg # massive amounts of additional arguments before passing them to the 11281aee7dae4Smrg # linker. It appears as though 1/2 is a usable value. 11282aee7dae4Smrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 11283aee7dae4Smrg fi 11284ba0eab60Smacallan ;; 11285ba0eab60Smacallan esac 11286aee7dae4Smrg 11287aee7dae4Smrgfi 11288aee7dae4Smrg 11289aee7dae4Smrgif test -n $lt_cv_sys_max_cmd_len ; then 11290aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 11291aee7dae4Smrg$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 11292aee7dae4Smrgelse 11293aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 11294aee7dae4Smrg$as_echo "none" >&6; } 11295aee7dae4Smrgfi 11296aee7dae4Smrgmax_cmd_len=$lt_cv_sys_max_cmd_len 11297aee7dae4Smrg 11298aee7dae4Smrg 11299aee7dae4Smrg 11300aee7dae4Smrg 11301aee7dae4Smrg 11302aee7dae4Smrg 11303aee7dae4Smrg: ${CP="cp -f"} 11304aee7dae4Smrg: ${MV="mv -f"} 11305aee7dae4Smrg: ${RM="rm -f"} 11306aee7dae4Smrg 11307aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 11308aee7dae4Smrg$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 11309aee7dae4Smrg# Try some XSI features 11310aee7dae4Smrgxsi_shell=no 11311aee7dae4Smrg( _lt_dummy="a/b/c" 11312aee7dae4Smrg test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 11313aee7dae4Smrg = c,a/b,b/c, \ 11314aee7dae4Smrg && eval 'test $(( 1 + 1 )) -eq 2 \ 11315aee7dae4Smrg && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 11316aee7dae4Smrg && xsi_shell=yes 11317aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 11318aee7dae4Smrg$as_echo "$xsi_shell" >&6; } 11319aee7dae4Smrg 11320aee7dae4Smrg 11321aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 11322aee7dae4Smrg$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 11323aee7dae4Smrglt_shell_append=no 11324aee7dae4Smrg( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 11325aee7dae4Smrg >/dev/null 2>&1 \ 11326aee7dae4Smrg && lt_shell_append=yes 11327aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 11328aee7dae4Smrg$as_echo "$lt_shell_append" >&6; } 11329aee7dae4Smrg 11330aee7dae4Smrg 11331aee7dae4Smrgif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 11332aee7dae4Smrg lt_unset=unset 11333aee7dae4Smrgelse 11334aee7dae4Smrg lt_unset=false 11335aee7dae4Smrgfi 11336aee7dae4Smrg 11337aee7dae4Smrg 11338aee7dae4Smrg 11339aee7dae4Smrg 11340aee7dae4Smrg 11341aee7dae4Smrg# test EBCDIC or ASCII 11342aee7dae4Smrgcase `echo X|tr X '\101'` in 11343aee7dae4Smrg A) # ASCII based system 11344aee7dae4Smrg # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 11345aee7dae4Smrg lt_SP2NL='tr \040 \012' 11346aee7dae4Smrg lt_NL2SP='tr \015\012 \040\040' 11347aee7dae4Smrg ;; 11348aee7dae4Smrg *) # EBCDIC based system 11349aee7dae4Smrg lt_SP2NL='tr \100 \n' 11350aee7dae4Smrg lt_NL2SP='tr \r\n \100\100' 11351ba0eab60Smacallan ;; 11352aee7dae4Smrgesac 11353aee7dae4Smrg 11354aee7dae4Smrg 11355aee7dae4Smrg 11356aee7dae4Smrg 11357aee7dae4Smrg 11358aee7dae4Smrg 11359aee7dae4Smrg 11360aee7dae4Smrg 11361aee7dae4Smrg 11362aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 11363aee7dae4Smrg$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 11364aee7dae4Smrgif ${lt_cv_to_host_file_cmd+:} false; then : 11365aee7dae4Smrg $as_echo_n "(cached) " >&6 11366aee7dae4Smrgelse 11367aee7dae4Smrg case $host in 11368aee7dae4Smrg *-*-mingw* ) 11369aee7dae4Smrg case $build in 11370aee7dae4Smrg *-*-mingw* ) # actually msys 11371aee7dae4Smrg lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 11372aee7dae4Smrg ;; 11373aee7dae4Smrg *-*-cygwin* ) 11374aee7dae4Smrg lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 11375aee7dae4Smrg ;; 11376aee7dae4Smrg * ) # otherwise, assume *nix 11377aee7dae4Smrg lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 11378aee7dae4Smrg ;; 11379aee7dae4Smrg esac 11380aee7dae4Smrg ;; 11381aee7dae4Smrg *-*-cygwin* ) 11382aee7dae4Smrg case $build in 11383aee7dae4Smrg *-*-mingw* ) # actually msys 11384aee7dae4Smrg lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 11385aee7dae4Smrg ;; 11386aee7dae4Smrg *-*-cygwin* ) 11387aee7dae4Smrg lt_cv_to_host_file_cmd=func_convert_file_noop 11388aee7dae4Smrg ;; 11389aee7dae4Smrg * ) # otherwise, assume *nix 11390aee7dae4Smrg lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 11391aee7dae4Smrg ;; 11392aee7dae4Smrg esac 11393aee7dae4Smrg ;; 11394aee7dae4Smrg * ) # unhandled hosts (and "normal" native builds) 11395aee7dae4Smrg lt_cv_to_host_file_cmd=func_convert_file_noop 11396aee7dae4Smrg ;; 11397aee7dae4Smrgesac 11398aee7dae4Smrg 11399aee7dae4Smrgfi 11400aee7dae4Smrg 11401aee7dae4Smrgto_host_file_cmd=$lt_cv_to_host_file_cmd 11402aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 11403aee7dae4Smrg$as_echo "$lt_cv_to_host_file_cmd" >&6; } 11404aee7dae4Smrg 11405aee7dae4Smrg 11406aee7dae4Smrg 11407aee7dae4Smrg 11408aee7dae4Smrg 11409aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 11410aee7dae4Smrg$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 11411aee7dae4Smrgif ${lt_cv_to_tool_file_cmd+:} false; then : 11412aee7dae4Smrg $as_echo_n "(cached) " >&6 11413aee7dae4Smrgelse 11414aee7dae4Smrg #assume ordinary cross tools, or native build. 11415aee7dae4Smrglt_cv_to_tool_file_cmd=func_convert_file_noop 11416aee7dae4Smrgcase $host in 11417aee7dae4Smrg *-*-mingw* ) 11418aee7dae4Smrg case $build in 11419aee7dae4Smrg *-*-mingw* ) # actually msys 11420aee7dae4Smrg lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 11421aee7dae4Smrg ;; 11422aee7dae4Smrg esac 11423aee7dae4Smrg ;; 11424aee7dae4Smrgesac 11425aee7dae4Smrg 11426aee7dae4Smrgfi 11427aee7dae4Smrg 11428aee7dae4Smrgto_tool_file_cmd=$lt_cv_to_tool_file_cmd 11429aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 11430aee7dae4Smrg$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 11431aee7dae4Smrg 11432aee7dae4Smrg 11433aee7dae4Smrg 11434aee7dae4Smrg 11435aee7dae4Smrg 11436aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 11437aee7dae4Smrg$as_echo_n "checking for $LD option to reload object files... " >&6; } 11438aee7dae4Smrgif ${lt_cv_ld_reload_flag+:} false; then : 11439aee7dae4Smrg $as_echo_n "(cached) " >&6 11440aee7dae4Smrgelse 11441aee7dae4Smrg lt_cv_ld_reload_flag='-r' 11442aee7dae4Smrgfi 11443aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 11444aee7dae4Smrg$as_echo "$lt_cv_ld_reload_flag" >&6; } 11445aee7dae4Smrgreload_flag=$lt_cv_ld_reload_flag 11446aee7dae4Smrgcase $reload_flag in 11447aee7dae4Smrg"" | " "*) ;; 11448aee7dae4Smrg*) reload_flag=" $reload_flag" ;; 11449aee7dae4Smrgesac 11450aee7dae4Smrgreload_cmds='$LD$reload_flag -o $output$reload_objs' 11451aee7dae4Smrgcase $host_os in 11452aee7dae4Smrg cygwin* | mingw* | pw32* | cegcc*) 11453aee7dae4Smrg if test "$GCC" != yes; then 11454aee7dae4Smrg reload_cmds=false 11455aee7dae4Smrg fi 11456aee7dae4Smrg ;; 11457aee7dae4Smrg darwin*) 11458aee7dae4Smrg if test "$GCC" = yes; then 11459aee7dae4Smrg reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 11460aee7dae4Smrg else 11461aee7dae4Smrg reload_cmds='$LD$reload_flag -o $output$reload_objs' 11462aee7dae4Smrg fi 11463aee7dae4Smrg ;; 11464aee7dae4Smrgesac 11465aee7dae4Smrg 11466aee7dae4Smrg 11467aee7dae4Smrg 11468aee7dae4Smrg 11469aee7dae4Smrg 11470aee7dae4Smrg 11471aee7dae4Smrg 11472aee7dae4Smrg 11473aee7dae4Smrg 11474aee7dae4Smrgif test -n "$ac_tool_prefix"; then 11475aee7dae4Smrg # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 11476aee7dae4Smrgset dummy ${ac_tool_prefix}objdump; ac_word=$2 11477aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11478aee7dae4Smrg$as_echo_n "checking for $ac_word... " >&6; } 11479aee7dae4Smrgif ${ac_cv_prog_OBJDUMP+:} false; then : 11480aee7dae4Smrg $as_echo_n "(cached) " >&6 11481aee7dae4Smrgelse 11482aee7dae4Smrg if test -n "$OBJDUMP"; then 11483aee7dae4Smrg ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 11484aee7dae4Smrgelse 11485aee7dae4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11486aee7dae4Smrgfor as_dir in $PATH 11487aee7dae4Smrgdo 11488aee7dae4Smrg IFS=$as_save_IFS 11489aee7dae4Smrg test -z "$as_dir" && as_dir=. 11490aee7dae4Smrg for ac_exec_ext in '' $ac_executable_extensions; do 11491aee7dae4Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11492aee7dae4Smrg ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 11493aee7dae4Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11494aee7dae4Smrg break 2 11495aee7dae4Smrg fi 11496aee7dae4Smrgdone 11497aee7dae4Smrg done 11498aee7dae4SmrgIFS=$as_save_IFS 11499aee7dae4Smrg 11500aee7dae4Smrgfi 11501aee7dae4Smrgfi 11502aee7dae4SmrgOBJDUMP=$ac_cv_prog_OBJDUMP 11503aee7dae4Smrgif test -n "$OBJDUMP"; then 11504aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 11505aee7dae4Smrg$as_echo "$OBJDUMP" >&6; } 11506aee7dae4Smrgelse 11507aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11508aee7dae4Smrg$as_echo "no" >&6; } 11509aee7dae4Smrgfi 11510ba0eab60Smacallan 11511ba0eab60Smacallan 11512aee7dae4Smrgfi 11513aee7dae4Smrgif test -z "$ac_cv_prog_OBJDUMP"; then 11514aee7dae4Smrg ac_ct_OBJDUMP=$OBJDUMP 11515aee7dae4Smrg # Extract the first word of "objdump", so it can be a program name with args. 11516aee7dae4Smrgset dummy objdump; ac_word=$2 11517aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11518aee7dae4Smrg$as_echo_n "checking for $ac_word... " >&6; } 11519aee7dae4Smrgif ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 11520aee7dae4Smrg $as_echo_n "(cached) " >&6 11521aee7dae4Smrgelse 11522aee7dae4Smrg if test -n "$ac_ct_OBJDUMP"; then 11523aee7dae4Smrg ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 11524aee7dae4Smrgelse 11525aee7dae4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11526aee7dae4Smrgfor as_dir in $PATH 11527aee7dae4Smrgdo 11528aee7dae4Smrg IFS=$as_save_IFS 11529aee7dae4Smrg test -z "$as_dir" && as_dir=. 11530aee7dae4Smrg for ac_exec_ext in '' $ac_executable_extensions; do 11531aee7dae4Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11532aee7dae4Smrg ac_cv_prog_ac_ct_OBJDUMP="objdump" 11533aee7dae4Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11534aee7dae4Smrg break 2 11535aee7dae4Smrg fi 11536aee7dae4Smrgdone 11537aee7dae4Smrg done 11538aee7dae4SmrgIFS=$as_save_IFS 11539ba0eab60Smacallan 11540aee7dae4Smrgfi 11541aee7dae4Smrgfi 11542aee7dae4Smrgac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 11543aee7dae4Smrgif test -n "$ac_ct_OBJDUMP"; then 11544aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 11545aee7dae4Smrg$as_echo "$ac_ct_OBJDUMP" >&6; } 11546aee7dae4Smrgelse 11547aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11548aee7dae4Smrg$as_echo "no" >&6; } 11549aee7dae4Smrgfi 11550ba0eab60Smacallan 11551aee7dae4Smrg if test "x$ac_ct_OBJDUMP" = x; then 11552aee7dae4Smrg OBJDUMP="false" 11553aee7dae4Smrg else 11554aee7dae4Smrg case $cross_compiling:$ac_tool_warned in 11555aee7dae4Smrgyes:) 11556aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11557aee7dae4Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11558aee7dae4Smrgac_tool_warned=yes ;; 11559aee7dae4Smrgesac 11560aee7dae4Smrg OBJDUMP=$ac_ct_OBJDUMP 11561ba0eab60Smacallan fi 11562aee7dae4Smrgelse 11563aee7dae4Smrg OBJDUMP="$ac_cv_prog_OBJDUMP" 11564aee7dae4Smrgfi 11565ba0eab60Smacallan 11566aee7dae4Smrgtest -z "$OBJDUMP" && OBJDUMP=objdump 11567ba0eab60Smacallan 11568aee7dae4Smrg 11569aee7dae4Smrg 11570aee7dae4Smrg 11571aee7dae4Smrg 11572aee7dae4Smrg 11573aee7dae4Smrg 11574aee7dae4Smrg 11575aee7dae4Smrg 11576aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 11577aee7dae4Smrg$as_echo_n "checking how to recognize dependent libraries... " >&6; } 11578aee7dae4Smrgif ${lt_cv_deplibs_check_method+:} false; then : 11579aee7dae4Smrg $as_echo_n "(cached) " >&6 11580aee7dae4Smrgelse 11581aee7dae4Smrg lt_cv_file_magic_cmd='$MAGIC_CMD' 11582aee7dae4Smrglt_cv_file_magic_test_file= 11583aee7dae4Smrglt_cv_deplibs_check_method='unknown' 11584aee7dae4Smrg# Need to set the preceding variable on all platforms that support 11585aee7dae4Smrg# interlibrary dependencies. 11586aee7dae4Smrg# 'none' -- dependencies not supported. 11587aee7dae4Smrg# `unknown' -- same as none, but documents that we really don't know. 11588aee7dae4Smrg# 'pass_all' -- all dependencies passed with no checks. 11589aee7dae4Smrg# 'test_compile' -- check by making test program. 11590aee7dae4Smrg# 'file_magic [[regex]]' -- check by looking for files in library path 11591aee7dae4Smrg# which responds to the $file_magic_cmd with a given extended regex. 11592aee7dae4Smrg# If you have `file' or equivalent on your system and you're not sure 11593aee7dae4Smrg# whether `pass_all' will *always* work, you probably want this one. 11594aee7dae4Smrg 11595aee7dae4Smrgcase $host_os in 11596aee7dae4Smrgaix[4-9]*) 11597aee7dae4Smrg lt_cv_deplibs_check_method=pass_all 11598ba0eab60Smacallan ;; 11599ba0eab60Smacallan 11600aee7dae4Smrgbeos*) 11601aee7dae4Smrg lt_cv_deplibs_check_method=pass_all 11602ba0eab60Smacallan ;; 11603ba0eab60Smacallan 11604aee7dae4Smrgbsdi[45]*) 11605aee7dae4Smrg lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 11606aee7dae4Smrg lt_cv_file_magic_cmd='/usr/bin/file -L' 11607aee7dae4Smrg lt_cv_file_magic_test_file=/shlib/libc.so 11608ba0eab60Smacallan ;; 11609ba0eab60Smacallan 11610aee7dae4Smrgcygwin*) 11611aee7dae4Smrg # func_win32_libid is a shell function defined in ltmain.sh 11612aee7dae4Smrg lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 11613aee7dae4Smrg lt_cv_file_magic_cmd='func_win32_libid' 11614ba0eab60Smacallan ;; 11615ba0eab60Smacallan 11616aee7dae4Smrgmingw* | pw32*) 11617aee7dae4Smrg # Base MSYS/MinGW do not provide the 'file' command needed by 11618aee7dae4Smrg # func_win32_libid shell function, so use a weaker test based on 'objdump', 11619aee7dae4Smrg # unless we find 'file', for example because we are cross-compiling. 11620aee7dae4Smrg # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 11621aee7dae4Smrg if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 11622aee7dae4Smrg lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 11623aee7dae4Smrg lt_cv_file_magic_cmd='func_win32_libid' 11624ba0eab60Smacallan else 11625aee7dae4Smrg # Keep this pattern in sync with the one in func_win32_libid. 11626aee7dae4Smrg lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 11627aee7dae4Smrg lt_cv_file_magic_cmd='$OBJDUMP -f' 11628ba0eab60Smacallan fi 11629ba0eab60Smacallan ;; 11630ba0eab60Smacallan 11631aee7dae4Smrgcegcc*) 11632aee7dae4Smrg # use the weaker test based on 'objdump'. See mingw*. 11633aee7dae4Smrg lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 11634aee7dae4Smrg lt_cv_file_magic_cmd='$OBJDUMP -f' 11635ba0eab60Smacallan ;; 11636ba0eab60Smacallan 11637aee7dae4Smrgdarwin* | rhapsody*) 11638aee7dae4Smrg lt_cv_deplibs_check_method=pass_all 11639ba0eab60Smacallan ;; 11640ba0eab60Smacallan 11641aee7dae4Smrgfreebsd* | dragonfly*) 11642aee7dae4Smrg if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 11643aee7dae4Smrg case $host_cpu in 11644aee7dae4Smrg i*86 ) 11645aee7dae4Smrg # Not sure whether the presence of OpenBSD here was a mistake. 11646aee7dae4Smrg # Let's accept both of them until this is cleared up. 11647aee7dae4Smrg lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 11648aee7dae4Smrg lt_cv_file_magic_cmd=/usr/bin/file 11649aee7dae4Smrg lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 11650aee7dae4Smrg ;; 11651aee7dae4Smrg esac 11652aee7dae4Smrg else 11653aee7dae4Smrg lt_cv_deplibs_check_method=pass_all 11654ba0eab60Smacallan fi 11655ba0eab60Smacallan ;; 11656ba0eab60Smacallan 11657aee7dae4Smrggnu*) 11658aee7dae4Smrg lt_cv_deplibs_check_method=pass_all 11659ba0eab60Smacallan ;; 11660ba0eab60Smacallan 11661aee7dae4Smrghaiku*) 11662aee7dae4Smrg lt_cv_deplibs_check_method=pass_all 11663ba0eab60Smacallan ;; 11664ba0eab60Smacallan 11665aee7dae4Smrghpux10.20* | hpux11*) 11666aee7dae4Smrg lt_cv_file_magic_cmd=/usr/bin/file 11667aee7dae4Smrg case $host_cpu in 11668aee7dae4Smrg ia64*) 11669aee7dae4Smrg lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 11670aee7dae4Smrg lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 11671aee7dae4Smrg ;; 11672aee7dae4Smrg hppa*64*) 11673aee7dae4Smrg lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' 11674aee7dae4Smrg lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 11675aee7dae4Smrg ;; 11676aee7dae4Smrg *) 11677aee7dae4Smrg lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 11678aee7dae4Smrg lt_cv_file_magic_test_file=/usr/lib/libc.sl 11679aee7dae4Smrg ;; 11680aee7dae4Smrg esac 11681ba0eab60Smacallan ;; 11682ba0eab60Smacallan 11683aee7dae4Smrginterix[3-9]*) 11684aee7dae4Smrg # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 11685aee7dae4Smrg lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 11686ba0eab60Smacallan ;; 11687ba0eab60Smacallan 11688aee7dae4Smrgirix5* | irix6* | nonstopux*) 11689aee7dae4Smrg case $LD in 11690aee7dae4Smrg *-32|*"-32 ") libmagic=32-bit;; 11691aee7dae4Smrg *-n32|*"-n32 ") libmagic=N32;; 11692aee7dae4Smrg *-64|*"-64 ") libmagic=64-bit;; 11693aee7dae4Smrg *) libmagic=never-match;; 11694aee7dae4Smrg esac 11695aee7dae4Smrg lt_cv_deplibs_check_method=pass_all 11696ba0eab60Smacallan ;; 11697ba0eab60Smacallan 11698aee7dae4Smrg# This must be glibc/ELF. 11699aee7dae4Smrglinux* | k*bsd*-gnu | kopensolaris*-gnu) 11700aee7dae4Smrg lt_cv_deplibs_check_method=pass_all 11701aee7dae4Smrg ;; 11702ba0eab60Smacallan 11703aee7dae4Smrgnetbsd* | netbsdelf*-gnu) 11704aee7dae4Smrg if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 11705aee7dae4Smrg lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 11706ba0eab60Smacallan else 11707aee7dae4Smrg lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 11708ba0eab60Smacallan fi 11709aee7dae4Smrg ;; 11710ba0eab60Smacallan 11711aee7dae4Smrgnewos6*) 11712aee7dae4Smrg lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 11713aee7dae4Smrg lt_cv_file_magic_cmd=/usr/bin/file 11714aee7dae4Smrg lt_cv_file_magic_test_file=/usr/lib/libnls.so 11715aee7dae4Smrg ;; 11716ba0eab60Smacallan 11717aee7dae4Smrg*nto* | *qnx*) 11718aee7dae4Smrg lt_cv_deplibs_check_method=pass_all 11719aee7dae4Smrg ;; 11720ba0eab60Smacallan 11721aee7dae4Smrgopenbsd*) 11722aee7dae4Smrg if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11723aee7dae4Smrg lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 11724aee7dae4Smrg else 11725aee7dae4Smrg lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 11726ba0eab60Smacallan fi 11727aee7dae4Smrg ;; 11728ba0eab60Smacallan 11729aee7dae4Smrgosf3* | osf4* | osf5*) 11730aee7dae4Smrg lt_cv_deplibs_check_method=pass_all 11731aee7dae4Smrg ;; 11732ba0eab60Smacallan 11733aee7dae4Smrgrdos*) 11734aee7dae4Smrg lt_cv_deplibs_check_method=pass_all 11735aee7dae4Smrg ;; 11736ba0eab60Smacallan 11737aee7dae4Smrgsolaris*) 11738aee7dae4Smrg lt_cv_deplibs_check_method=pass_all 11739aee7dae4Smrg ;; 11740ba0eab60Smacallan 11741aee7dae4Smrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11742aee7dae4Smrg lt_cv_deplibs_check_method=pass_all 11743aee7dae4Smrg ;; 11744ba0eab60Smacallan 11745aee7dae4Smrgsysv4 | sysv4.3*) 11746aee7dae4Smrg case $host_vendor in 11747aee7dae4Smrg motorola) 11748aee7dae4Smrg lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' 11749aee7dae4Smrg lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 11750aee7dae4Smrg ;; 11751aee7dae4Smrg ncr) 11752aee7dae4Smrg lt_cv_deplibs_check_method=pass_all 11753aee7dae4Smrg ;; 11754aee7dae4Smrg sequent) 11755aee7dae4Smrg lt_cv_file_magic_cmd='/bin/file' 11756aee7dae4Smrg lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 11757aee7dae4Smrg ;; 11758aee7dae4Smrg sni) 11759aee7dae4Smrg lt_cv_file_magic_cmd='/bin/file' 11760aee7dae4Smrg lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 11761aee7dae4Smrg lt_cv_file_magic_test_file=/lib/libc.so 11762aee7dae4Smrg ;; 11763aee7dae4Smrg siemens) 11764aee7dae4Smrg lt_cv_deplibs_check_method=pass_all 11765aee7dae4Smrg ;; 11766aee7dae4Smrg pc) 11767aee7dae4Smrg lt_cv_deplibs_check_method=pass_all 11768aee7dae4Smrg ;; 11769aee7dae4Smrg esac 11770aee7dae4Smrg ;; 11771ba0eab60Smacallan 11772aee7dae4Smrgtpf*) 11773aee7dae4Smrg lt_cv_deplibs_check_method=pass_all 11774aee7dae4Smrg ;; 11775aee7dae4Smrgesac 11776ba0eab60Smacallan 11777aee7dae4Smrgfi 11778aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 11779aee7dae4Smrg$as_echo "$lt_cv_deplibs_check_method" >&6; } 11780ba0eab60Smacallan 11781aee7dae4Smrgfile_magic_glob= 11782aee7dae4Smrgwant_nocaseglob=no 11783aee7dae4Smrgif test "$build" = "$host"; then 11784aee7dae4Smrg case $host_os in 11785aee7dae4Smrg mingw* | pw32*) 11786aee7dae4Smrg if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 11787aee7dae4Smrg want_nocaseglob=yes 11788aee7dae4Smrg else 11789aee7dae4Smrg file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 11790aee7dae4Smrg fi 11791aee7dae4Smrg ;; 11792aee7dae4Smrg esac 11793aee7dae4Smrgfi 11794ba0eab60Smacallan 11795aee7dae4Smrgfile_magic_cmd=$lt_cv_file_magic_cmd 11796aee7dae4Smrgdeplibs_check_method=$lt_cv_deplibs_check_method 11797aee7dae4Smrgtest -z "$deplibs_check_method" && deplibs_check_method=unknown 11798ba0eab60Smacallan 11799ba0eab60Smacallan 11800ba0eab60Smacallan 11801ba0eab60Smacallan 11802ba0eab60Smacallan 11803ba0eab60Smacallan 11804ba0eab60Smacallan 11805ba0eab60Smacallan 11806ba0eab60Smacallan 11807ba0eab60Smacallan 11808ba0eab60Smacallan 11809ba0eab60Smacallan 11810ba0eab60Smacallan 11811ba0eab60Smacallan 11812ba0eab60Smacallan 11813ba0eab60Smacallan 11814ba0eab60Smacallan 11815ba0eab60Smacallan 11816ba0eab60Smacallan 11817ba0eab60Smacallan 11818ba0eab60Smacallan 11819ba0eab60Smacallan 11820aee7dae4Smrgif test -n "$ac_tool_prefix"; then 11821aee7dae4Smrg # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 11822aee7dae4Smrgset dummy ${ac_tool_prefix}dlltool; ac_word=$2 11823aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11824aee7dae4Smrg$as_echo_n "checking for $ac_word... " >&6; } 11825aee7dae4Smrgif ${ac_cv_prog_DLLTOOL+:} false; then : 11826aee7dae4Smrg $as_echo_n "(cached) " >&6 11827aee7dae4Smrgelse 11828aee7dae4Smrg if test -n "$DLLTOOL"; then 11829aee7dae4Smrg ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 11830aee7dae4Smrgelse 11831aee7dae4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11832aee7dae4Smrgfor as_dir in $PATH 11833aee7dae4Smrgdo 11834aee7dae4Smrg IFS=$as_save_IFS 11835aee7dae4Smrg test -z "$as_dir" && as_dir=. 11836aee7dae4Smrg for ac_exec_ext in '' $ac_executable_extensions; do 11837aee7dae4Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11838aee7dae4Smrg ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 11839aee7dae4Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11840aee7dae4Smrg break 2 11841aee7dae4Smrg fi 11842aee7dae4Smrgdone 11843aee7dae4Smrg done 11844aee7dae4SmrgIFS=$as_save_IFS 11845ba0eab60Smacallan 11846aee7dae4Smrgfi 11847aee7dae4Smrgfi 11848aee7dae4SmrgDLLTOOL=$ac_cv_prog_DLLTOOL 11849aee7dae4Smrgif test -n "$DLLTOOL"; then 11850aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 11851aee7dae4Smrg$as_echo "$DLLTOOL" >&6; } 11852aee7dae4Smrgelse 11853aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11854aee7dae4Smrg$as_echo "no" >&6; } 11855aee7dae4Smrgfi 11856ba0eab60Smacallan 11857ba0eab60Smacallan 11858aee7dae4Smrgfi 11859aee7dae4Smrgif test -z "$ac_cv_prog_DLLTOOL"; then 11860aee7dae4Smrg ac_ct_DLLTOOL=$DLLTOOL 11861aee7dae4Smrg # Extract the first word of "dlltool", so it can be a program name with args. 11862aee7dae4Smrgset dummy dlltool; ac_word=$2 11863aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11864aee7dae4Smrg$as_echo_n "checking for $ac_word... " >&6; } 11865aee7dae4Smrgif ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 11866aee7dae4Smrg $as_echo_n "(cached) " >&6 11867aee7dae4Smrgelse 11868aee7dae4Smrg if test -n "$ac_ct_DLLTOOL"; then 11869aee7dae4Smrg ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 11870aee7dae4Smrgelse 11871aee7dae4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11872aee7dae4Smrgfor as_dir in $PATH 11873aee7dae4Smrgdo 11874aee7dae4Smrg IFS=$as_save_IFS 11875aee7dae4Smrg test -z "$as_dir" && as_dir=. 11876aee7dae4Smrg for ac_exec_ext in '' $ac_executable_extensions; do 11877aee7dae4Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11878aee7dae4Smrg ac_cv_prog_ac_ct_DLLTOOL="dlltool" 11879aee7dae4Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11880aee7dae4Smrg break 2 11881aee7dae4Smrg fi 11882aee7dae4Smrgdone 11883aee7dae4Smrg done 11884aee7dae4SmrgIFS=$as_save_IFS 11885ba0eab60Smacallan 11886aee7dae4Smrgfi 11887aee7dae4Smrgfi 11888aee7dae4Smrgac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 11889aee7dae4Smrgif test -n "$ac_ct_DLLTOOL"; then 11890aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 11891aee7dae4Smrg$as_echo "$ac_ct_DLLTOOL" >&6; } 11892aee7dae4Smrgelse 11893aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11894aee7dae4Smrg$as_echo "no" >&6; } 11895aee7dae4Smrgfi 11896ba0eab60Smacallan 11897aee7dae4Smrg if test "x$ac_ct_DLLTOOL" = x; then 11898aee7dae4Smrg DLLTOOL="false" 11899aee7dae4Smrg else 11900aee7dae4Smrg case $cross_compiling:$ac_tool_warned in 11901aee7dae4Smrgyes:) 11902aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11903aee7dae4Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11904aee7dae4Smrgac_tool_warned=yes ;; 11905aee7dae4Smrgesac 11906aee7dae4Smrg DLLTOOL=$ac_ct_DLLTOOL 11907aee7dae4Smrg fi 11908aee7dae4Smrgelse 11909aee7dae4Smrg DLLTOOL="$ac_cv_prog_DLLTOOL" 11910aee7dae4Smrgfi 11911ba0eab60Smacallan 11912aee7dae4Smrgtest -z "$DLLTOOL" && DLLTOOL=dlltool 11913ba0eab60Smacallan 11914ba0eab60Smacallan 11915ba0eab60Smacallan 11916ba0eab60Smacallan 11917ba0eab60Smacallan 11918ba0eab60Smacallan 11919ba0eab60Smacallan 11920ba0eab60Smacallan 11921ba0eab60Smacallan 11922ba0eab60Smacallan 11923aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 11924aee7dae4Smrg$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 11925aee7dae4Smrgif ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 11926aee7dae4Smrg $as_echo_n "(cached) " >&6 11927aee7dae4Smrgelse 11928aee7dae4Smrg lt_cv_sharedlib_from_linklib_cmd='unknown' 11929ba0eab60Smacallan 11930aee7dae4Smrgcase $host_os in 11931aee7dae4Smrgcygwin* | mingw* | pw32* | cegcc*) 11932aee7dae4Smrg # two different shell functions defined in ltmain.sh 11933aee7dae4Smrg # decide which to use based on capabilities of $DLLTOOL 11934aee7dae4Smrg case `$DLLTOOL --help 2>&1` in 11935aee7dae4Smrg *--identify-strict*) 11936aee7dae4Smrg lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 11937aee7dae4Smrg ;; 11938aee7dae4Smrg *) 11939aee7dae4Smrg lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 11940aee7dae4Smrg ;; 11941aee7dae4Smrg esac 11942aee7dae4Smrg ;; 11943aee7dae4Smrg*) 11944aee7dae4Smrg # fallback: assume linklib IS sharedlib 11945aee7dae4Smrg lt_cv_sharedlib_from_linklib_cmd="$ECHO" 11946aee7dae4Smrg ;; 11947aee7dae4Smrgesac 11948ba0eab60Smacallan 11949aee7dae4Smrgfi 11950aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 11951aee7dae4Smrg$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 11952aee7dae4Smrgsharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 11953aee7dae4Smrgtest -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 11954ba0eab60Smacallan 11955ba0eab60Smacallan 11956ba0eab60Smacallan 11957ba0eab60Smacallan 11958ba0eab60Smacallan 11959ba0eab60Smacallan 11960ba0eab60Smacallan 11961aee7dae4Smrgif test -n "$ac_tool_prefix"; then 11962aee7dae4Smrg for ac_prog in ar 11963aee7dae4Smrg do 11964aee7dae4Smrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11965aee7dae4Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2 11966aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11967aee7dae4Smrg$as_echo_n "checking for $ac_word... " >&6; } 11968aee7dae4Smrgif ${ac_cv_prog_AR+:} false; then : 11969aee7dae4Smrg $as_echo_n "(cached) " >&6 11970aee7dae4Smrgelse 11971aee7dae4Smrg if test -n "$AR"; then 11972aee7dae4Smrg ac_cv_prog_AR="$AR" # Let the user override the test. 11973aee7dae4Smrgelse 11974aee7dae4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11975aee7dae4Smrgfor as_dir in $PATH 11976aee7dae4Smrgdo 11977aee7dae4Smrg IFS=$as_save_IFS 11978aee7dae4Smrg test -z "$as_dir" && as_dir=. 11979aee7dae4Smrg for ac_exec_ext in '' $ac_executable_extensions; do 11980aee7dae4Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11981aee7dae4Smrg ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 11982aee7dae4Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11983aee7dae4Smrg break 2 11984aee7dae4Smrg fi 11985aee7dae4Smrgdone 11986aee7dae4Smrg done 11987aee7dae4SmrgIFS=$as_save_IFS 11988ba0eab60Smacallan 11989aee7dae4Smrgfi 11990aee7dae4Smrgfi 11991aee7dae4SmrgAR=$ac_cv_prog_AR 11992aee7dae4Smrgif test -n "$AR"; then 11993aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 11994aee7dae4Smrg$as_echo "$AR" >&6; } 11995aee7dae4Smrgelse 11996aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11997aee7dae4Smrg$as_echo "no" >&6; } 11998aee7dae4Smrgfi 11999ba0eab60Smacallan 12000ba0eab60Smacallan 12001aee7dae4Smrg test -n "$AR" && break 12002aee7dae4Smrg done 12003aee7dae4Smrgfi 12004aee7dae4Smrgif test -z "$AR"; then 12005aee7dae4Smrg ac_ct_AR=$AR 12006aee7dae4Smrg for ac_prog in ar 12007aee7dae4Smrgdo 12008aee7dae4Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 12009aee7dae4Smrgset dummy $ac_prog; ac_word=$2 12010aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12011aee7dae4Smrg$as_echo_n "checking for $ac_word... " >&6; } 12012aee7dae4Smrgif ${ac_cv_prog_ac_ct_AR+:} false; then : 12013aee7dae4Smrg $as_echo_n "(cached) " >&6 12014aee7dae4Smrgelse 12015aee7dae4Smrg if test -n "$ac_ct_AR"; then 12016aee7dae4Smrg ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 12017aee7dae4Smrgelse 12018aee7dae4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12019aee7dae4Smrgfor as_dir in $PATH 12020aee7dae4Smrgdo 12021aee7dae4Smrg IFS=$as_save_IFS 12022aee7dae4Smrg test -z "$as_dir" && as_dir=. 12023aee7dae4Smrg for ac_exec_ext in '' $ac_executable_extensions; do 12024aee7dae4Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12025aee7dae4Smrg ac_cv_prog_ac_ct_AR="$ac_prog" 12026aee7dae4Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12027aee7dae4Smrg break 2 12028aee7dae4Smrg fi 12029aee7dae4Smrgdone 12030aee7dae4Smrg done 12031aee7dae4SmrgIFS=$as_save_IFS 12032ba0eab60Smacallan 12033aee7dae4Smrgfi 12034aee7dae4Smrgfi 12035aee7dae4Smrgac_ct_AR=$ac_cv_prog_ac_ct_AR 12036aee7dae4Smrgif test -n "$ac_ct_AR"; then 12037aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 12038aee7dae4Smrg$as_echo "$ac_ct_AR" >&6; } 12039aee7dae4Smrgelse 12040aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12041aee7dae4Smrg$as_echo "no" >&6; } 12042aee7dae4Smrgfi 12043ba0eab60Smacallan 12044ba0eab60Smacallan 12045aee7dae4Smrg test -n "$ac_ct_AR" && break 12046aee7dae4Smrgdone 12047ba0eab60Smacallan 12048aee7dae4Smrg if test "x$ac_ct_AR" = x; then 12049aee7dae4Smrg AR="false" 12050aee7dae4Smrg else 12051aee7dae4Smrg case $cross_compiling:$ac_tool_warned in 12052aee7dae4Smrgyes:) 12053aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12054aee7dae4Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12055aee7dae4Smrgac_tool_warned=yes ;; 12056aee7dae4Smrgesac 12057aee7dae4Smrg AR=$ac_ct_AR 12058aee7dae4Smrg fi 12059aee7dae4Smrgfi 12060ba0eab60Smacallan 12061aee7dae4Smrg: ${AR=ar} 12062aee7dae4Smrg: ${AR_FLAGS=cru} 12063ba0eab60Smacallan 12064ba0eab60Smacallan 12065ba0eab60Smacallan 12066ba0eab60Smacallan 12067ba0eab60Smacallan 12068ba0eab60Smacallan 12069ba0eab60Smacallan 12070ba0eab60Smacallan 12071ba0eab60Smacallan 12072ba0eab60Smacallan 12073ba0eab60Smacallan 12074aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 12075aee7dae4Smrg$as_echo_n "checking for archiver @FILE support... " >&6; } 12076aee7dae4Smrgif ${lt_cv_ar_at_file+:} false; then : 12077aee7dae4Smrg $as_echo_n "(cached) " >&6 12078aee7dae4Smrgelse 12079aee7dae4Smrg lt_cv_ar_at_file=no 12080aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12081aee7dae4Smrg/* end confdefs.h. */ 12082ba0eab60Smacallan 12083aee7dae4Smrgint 12084aee7dae4Smrgmain () 12085aee7dae4Smrg{ 12086ba0eab60Smacallan 12087aee7dae4Smrg ; 12088aee7dae4Smrg return 0; 12089aee7dae4Smrg} 12090aee7dae4Smrg_ACEOF 12091aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 12092aee7dae4Smrg echo conftest.$ac_objext > conftest.lst 12093aee7dae4Smrg lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 12094aee7dae4Smrg { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12095aee7dae4Smrg (eval $lt_ar_try) 2>&5 12096aee7dae4Smrg ac_status=$? 12097aee7dae4Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12098aee7dae4Smrg test $ac_status = 0; } 12099aee7dae4Smrg if test "$ac_status" -eq 0; then 12100aee7dae4Smrg # Ensure the archiver fails upon bogus file names. 12101aee7dae4Smrg rm -f conftest.$ac_objext libconftest.a 12102aee7dae4Smrg { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12103aee7dae4Smrg (eval $lt_ar_try) 2>&5 12104aee7dae4Smrg ac_status=$? 12105aee7dae4Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12106aee7dae4Smrg test $ac_status = 0; } 12107aee7dae4Smrg if test "$ac_status" -ne 0; then 12108aee7dae4Smrg lt_cv_ar_at_file=@ 12109aee7dae4Smrg fi 12110aee7dae4Smrg fi 12111aee7dae4Smrg rm -f conftest.* libconftest.a 12112ba0eab60Smacallan 12113aee7dae4Smrgfi 12114aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12115ba0eab60Smacallan 12116aee7dae4Smrgfi 12117aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 12118aee7dae4Smrg$as_echo "$lt_cv_ar_at_file" >&6; } 12119ba0eab60Smacallan 12120aee7dae4Smrgif test "x$lt_cv_ar_at_file" = xno; then 12121aee7dae4Smrg archiver_list_spec= 12122aee7dae4Smrgelse 12123aee7dae4Smrg archiver_list_spec=$lt_cv_ar_at_file 12124aee7dae4Smrgfi 12125ba0eab60Smacallan 12126ba0eab60Smacallan 12127ba0eab60Smacallan 12128ba0eab60Smacallan 12129ba0eab60Smacallan 12130ba0eab60Smacallan 12131ba0eab60Smacallan 12132aee7dae4Smrgif test -n "$ac_tool_prefix"; then 12133aee7dae4Smrg # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 12134aee7dae4Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2 12135aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12136aee7dae4Smrg$as_echo_n "checking for $ac_word... " >&6; } 12137aee7dae4Smrgif ${ac_cv_prog_STRIP+:} false; then : 12138aee7dae4Smrg $as_echo_n "(cached) " >&6 12139aee7dae4Smrgelse 12140aee7dae4Smrg if test -n "$STRIP"; then 12141aee7dae4Smrg ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 12142aee7dae4Smrgelse 12143aee7dae4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12144aee7dae4Smrgfor as_dir in $PATH 12145aee7dae4Smrgdo 12146aee7dae4Smrg IFS=$as_save_IFS 12147aee7dae4Smrg test -z "$as_dir" && as_dir=. 12148aee7dae4Smrg for ac_exec_ext in '' $ac_executable_extensions; do 12149aee7dae4Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12150aee7dae4Smrg ac_cv_prog_STRIP="${ac_tool_prefix}strip" 12151aee7dae4Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12152aee7dae4Smrg break 2 12153aee7dae4Smrg fi 12154aee7dae4Smrgdone 12155aee7dae4Smrg done 12156aee7dae4SmrgIFS=$as_save_IFS 12157ba0eab60Smacallan 12158aee7dae4Smrgfi 12159aee7dae4Smrgfi 12160aee7dae4SmrgSTRIP=$ac_cv_prog_STRIP 12161aee7dae4Smrgif test -n "$STRIP"; then 12162aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 12163aee7dae4Smrg$as_echo "$STRIP" >&6; } 12164aee7dae4Smrgelse 12165aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12166aee7dae4Smrg$as_echo "no" >&6; } 12167aee7dae4Smrgfi 12168ba0eab60Smacallan 12169ba0eab60Smacallan 12170aee7dae4Smrgfi 12171aee7dae4Smrgif test -z "$ac_cv_prog_STRIP"; then 12172aee7dae4Smrg ac_ct_STRIP=$STRIP 12173aee7dae4Smrg # Extract the first word of "strip", so it can be a program name with args. 12174aee7dae4Smrgset dummy strip; ac_word=$2 12175aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12176aee7dae4Smrg$as_echo_n "checking for $ac_word... " >&6; } 12177aee7dae4Smrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then : 12178aee7dae4Smrg $as_echo_n "(cached) " >&6 12179aee7dae4Smrgelse 12180aee7dae4Smrg if test -n "$ac_ct_STRIP"; then 12181aee7dae4Smrg ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 12182aee7dae4Smrgelse 12183aee7dae4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12184aee7dae4Smrgfor as_dir in $PATH 12185aee7dae4Smrgdo 12186aee7dae4Smrg IFS=$as_save_IFS 12187aee7dae4Smrg test -z "$as_dir" && as_dir=. 12188aee7dae4Smrg for ac_exec_ext in '' $ac_executable_extensions; do 12189aee7dae4Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12190aee7dae4Smrg ac_cv_prog_ac_ct_STRIP="strip" 12191aee7dae4Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12192aee7dae4Smrg break 2 12193aee7dae4Smrg fi 12194aee7dae4Smrgdone 12195aee7dae4Smrg done 12196aee7dae4SmrgIFS=$as_save_IFS 12197ba0eab60Smacallan 12198aee7dae4Smrgfi 12199aee7dae4Smrgfi 12200aee7dae4Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 12201aee7dae4Smrgif test -n "$ac_ct_STRIP"; then 12202aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 12203aee7dae4Smrg$as_echo "$ac_ct_STRIP" >&6; } 12204aee7dae4Smrgelse 12205aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12206aee7dae4Smrg$as_echo "no" >&6; } 12207aee7dae4Smrgfi 12208ba0eab60Smacallan 12209aee7dae4Smrg if test "x$ac_ct_STRIP" = x; then 12210aee7dae4Smrg STRIP=":" 12211aee7dae4Smrg else 12212aee7dae4Smrg case $cross_compiling:$ac_tool_warned in 12213aee7dae4Smrgyes:) 12214aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12215aee7dae4Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12216aee7dae4Smrgac_tool_warned=yes ;; 12217aee7dae4Smrgesac 12218aee7dae4Smrg STRIP=$ac_ct_STRIP 12219aee7dae4Smrg fi 12220aee7dae4Smrgelse 12221aee7dae4Smrg STRIP="$ac_cv_prog_STRIP" 12222aee7dae4Smrgfi 12223ba0eab60Smacallan 12224aee7dae4Smrgtest -z "$STRIP" && STRIP=: 12225ba0eab60Smacallan 12226ba0eab60Smacallan 12227ba0eab60Smacallan 12228ba0eab60Smacallan 12229ba0eab60Smacallan 12230ba0eab60Smacallan 12231aee7dae4Smrgif test -n "$ac_tool_prefix"; then 12232aee7dae4Smrg # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 12233aee7dae4Smrgset dummy ${ac_tool_prefix}ranlib; ac_word=$2 12234aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12235aee7dae4Smrg$as_echo_n "checking for $ac_word... " >&6; } 12236aee7dae4Smrgif ${ac_cv_prog_RANLIB+:} false; then : 12237aee7dae4Smrg $as_echo_n "(cached) " >&6 12238aee7dae4Smrgelse 12239aee7dae4Smrg if test -n "$RANLIB"; then 12240aee7dae4Smrg ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 12241ba0eab60Smacallanelse 12242aee7dae4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12243aee7dae4Smrgfor as_dir in $PATH 12244aee7dae4Smrgdo 12245aee7dae4Smrg IFS=$as_save_IFS 12246aee7dae4Smrg test -z "$as_dir" && as_dir=. 12247aee7dae4Smrg for ac_exec_ext in '' $ac_executable_extensions; do 12248aee7dae4Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12249aee7dae4Smrg ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 12250aee7dae4Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12251aee7dae4Smrg break 2 12252ba0eab60Smacallan fi 12253aee7dae4Smrgdone 12254aee7dae4Smrg done 12255aee7dae4SmrgIFS=$as_save_IFS 12256ba0eab60Smacallan 12257aee7dae4Smrgfi 12258aee7dae4Smrgfi 12259aee7dae4SmrgRANLIB=$ac_cv_prog_RANLIB 12260aee7dae4Smrgif test -n "$RANLIB"; then 12261aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 12262aee7dae4Smrg$as_echo "$RANLIB" >&6; } 12263aee7dae4Smrgelse 12264aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12265aee7dae4Smrg$as_echo "no" >&6; } 12266aee7dae4Smrgfi 12267ba0eab60Smacallan 12268ba0eab60Smacallan 12269aee7dae4Smrgfi 12270aee7dae4Smrgif test -z "$ac_cv_prog_RANLIB"; then 12271aee7dae4Smrg ac_ct_RANLIB=$RANLIB 12272aee7dae4Smrg # Extract the first word of "ranlib", so it can be a program name with args. 12273aee7dae4Smrgset dummy ranlib; ac_word=$2 12274aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12275aee7dae4Smrg$as_echo_n "checking for $ac_word... " >&6; } 12276aee7dae4Smrgif ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 12277aee7dae4Smrg $as_echo_n "(cached) " >&6 12278aee7dae4Smrgelse 12279aee7dae4Smrg if test -n "$ac_ct_RANLIB"; then 12280aee7dae4Smrg ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 12281aee7dae4Smrgelse 12282aee7dae4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12283aee7dae4Smrgfor as_dir in $PATH 12284aee7dae4Smrgdo 12285aee7dae4Smrg IFS=$as_save_IFS 12286aee7dae4Smrg test -z "$as_dir" && as_dir=. 12287aee7dae4Smrg for ac_exec_ext in '' $ac_executable_extensions; do 12288aee7dae4Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12289aee7dae4Smrg ac_cv_prog_ac_ct_RANLIB="ranlib" 12290aee7dae4Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12291aee7dae4Smrg break 2 12292aee7dae4Smrg fi 12293aee7dae4Smrgdone 12294aee7dae4Smrg done 12295aee7dae4SmrgIFS=$as_save_IFS 12296ba0eab60Smacallan 12297aee7dae4Smrgfi 12298aee7dae4Smrgfi 12299aee7dae4Smrgac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 12300aee7dae4Smrgif test -n "$ac_ct_RANLIB"; then 12301aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 12302aee7dae4Smrg$as_echo "$ac_ct_RANLIB" >&6; } 12303aee7dae4Smrgelse 12304aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12305aee7dae4Smrg$as_echo "no" >&6; } 12306aee7dae4Smrgfi 12307ba0eab60Smacallan 12308aee7dae4Smrg if test "x$ac_ct_RANLIB" = x; then 12309aee7dae4Smrg RANLIB=":" 12310aee7dae4Smrg else 12311aee7dae4Smrg case $cross_compiling:$ac_tool_warned in 12312aee7dae4Smrgyes:) 12313aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12314aee7dae4Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12315aee7dae4Smrgac_tool_warned=yes ;; 12316aee7dae4Smrgesac 12317aee7dae4Smrg RANLIB=$ac_ct_RANLIB 12318aee7dae4Smrg fi 12319aee7dae4Smrgelse 12320aee7dae4Smrg RANLIB="$ac_cv_prog_RANLIB" 12321aee7dae4Smrgfi 12322ba0eab60Smacallan 12323aee7dae4Smrgtest -z "$RANLIB" && RANLIB=: 12324ba0eab60Smacallan 12325ba0eab60Smacallan 12326ba0eab60Smacallan 12327ba0eab60Smacallan 12328ba0eab60Smacallan 12329ba0eab60Smacallan 12330aee7dae4Smrg# Determine commands to create old-style static archives. 12331aee7dae4Smrgold_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 12332aee7dae4Smrgold_postinstall_cmds='chmod 644 $oldlib' 12333aee7dae4Smrgold_postuninstall_cmds= 12334ba0eab60Smacallan 12335aee7dae4Smrgif test -n "$RANLIB"; then 12336aee7dae4Smrg case $host_os in 12337aee7dae4Smrg openbsd*) 12338aee7dae4Smrg old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 12339aee7dae4Smrg ;; 12340aee7dae4Smrg *) 12341aee7dae4Smrg old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 12342aee7dae4Smrg ;; 12343aee7dae4Smrg esac 12344aee7dae4Smrg old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 12345aee7dae4Smrgfi 12346ba0eab60Smacallan 12347aee7dae4Smrgcase $host_os in 12348aee7dae4Smrg darwin*) 12349aee7dae4Smrg lock_old_archive_extraction=yes ;; 12350aee7dae4Smrg *) 12351aee7dae4Smrg lock_old_archive_extraction=no ;; 12352aee7dae4Smrgesac 12353ba0eab60Smacallan 12354ba0eab60Smacallan 12355ba0eab60Smacallan 12356ba0eab60Smacallan 12357ba0eab60Smacallan 12358ba0eab60Smacallan 12359ba0eab60Smacallan 12360ba0eab60Smacallan 12361ba0eab60Smacallan 12362ba0eab60Smacallan 12363ba0eab60Smacallan 12364ba0eab60Smacallan 12365ba0eab60Smacallan 12366ba0eab60Smacallan 12367ba0eab60Smacallan 12368ba0eab60Smacallan 12369ba0eab60Smacallan 12370ba0eab60Smacallan 12371ba0eab60Smacallan 12372ba0eab60Smacallan 12373ba0eab60Smacallan 12374ba0eab60Smacallan 12375ba0eab60Smacallan 12376ba0eab60Smacallan 12377ba0eab60Smacallan 12378ba0eab60Smacallan 12379ba0eab60Smacallan 12380ba0eab60Smacallan 12381ba0eab60Smacallan 12382ba0eab60Smacallan 12383ba0eab60Smacallan 12384ba0eab60Smacallan 12385ba0eab60Smacallan 12386ba0eab60Smacallan 12387ba0eab60Smacallan 12388ba0eab60Smacallan 12389ba0eab60Smacallan 12390ba0eab60Smacallan 12391ba0eab60Smacallan 12392aee7dae4Smrg# If no C compiler was specified, use CC. 12393aee7dae4SmrgLTCC=${LTCC-"$CC"} 12394ba0eab60Smacallan 12395aee7dae4Smrg# If no C compiler flags were specified, use CFLAGS. 12396aee7dae4SmrgLTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12397ba0eab60Smacallan 12398aee7dae4Smrg# Allow CC to be a program name with arguments. 12399aee7dae4Smrgcompiler=$CC 12400ba0eab60Smacallan 12401ba0eab60Smacallan 12402aee7dae4Smrg# Check for command to grab the raw symbol name followed by C symbol from nm. 12403aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 12404aee7dae4Smrg$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 12405aee7dae4Smrgif ${lt_cv_sys_global_symbol_pipe+:} false; then : 12406aee7dae4Smrg $as_echo_n "(cached) " >&6 12407ba0eab60Smacallanelse 12408ba0eab60Smacallan 12409aee7dae4Smrg# These are sane defaults that work on at least a few old systems. 12410aee7dae4Smrg# [They come from Ultrix. What could be older than Ultrix?!! ;)] 12411ba0eab60Smacallan 12412aee7dae4Smrg# Character class describing NM global symbol codes. 12413aee7dae4Smrgsymcode='[BCDEGRST]' 12414ba0eab60Smacallan 12415aee7dae4Smrg# Regexp to match symbols that can be accessed directly from C. 12416aee7dae4Smrgsympat='\([_A-Za-z][_A-Za-z0-9]*\)' 12417aee7dae4Smrg 12418aee7dae4Smrg# Define system-specific variables. 12419aee7dae4Smrgcase $host_os in 12420aee7dae4Smrgaix*) 12421aee7dae4Smrg symcode='[BCDT]' 12422aee7dae4Smrg ;; 12423aee7dae4Smrgcygwin* | mingw* | pw32* | cegcc*) 12424aee7dae4Smrg symcode='[ABCDGISTW]' 12425aee7dae4Smrg ;; 12426aee7dae4Smrghpux*) 12427aee7dae4Smrg if test "$host_cpu" = ia64; then 12428aee7dae4Smrg symcode='[ABCDEGRST]' 12429aee7dae4Smrg fi 12430aee7dae4Smrg ;; 12431aee7dae4Smrgirix* | nonstopux*) 12432aee7dae4Smrg symcode='[BCDEGRST]' 12433aee7dae4Smrg ;; 12434aee7dae4Smrgosf*) 12435aee7dae4Smrg symcode='[BCDEGQRST]' 12436aee7dae4Smrg ;; 12437aee7dae4Smrgsolaris*) 12438aee7dae4Smrg symcode='[BDRT]' 12439aee7dae4Smrg ;; 12440aee7dae4Smrgsco3.2v5*) 12441aee7dae4Smrg symcode='[DT]' 12442aee7dae4Smrg ;; 12443aee7dae4Smrgsysv4.2uw2*) 12444aee7dae4Smrg symcode='[DT]' 12445aee7dae4Smrg ;; 12446aee7dae4Smrgsysv5* | sco5v6* | unixware* | OpenUNIX*) 12447aee7dae4Smrg symcode='[ABDT]' 12448aee7dae4Smrg ;; 12449aee7dae4Smrgsysv4) 12450aee7dae4Smrg symcode='[DFNSTU]' 12451aee7dae4Smrg ;; 12452aee7dae4Smrgesac 12453ba0eab60Smacallan 12454aee7dae4Smrg# If we're using GNU nm, then use its standard symbol codes. 12455aee7dae4Smrgcase `$NM -V 2>&1` in 12456aee7dae4Smrg*GNU* | *'with BFD'*) 12457aee7dae4Smrg symcode='[ABCDGIRSTW]' ;; 12458aee7dae4Smrgesac 12459ba0eab60Smacallan 12460aee7dae4Smrg# Transform an extracted symbol line into a proper C declaration. 12461aee7dae4Smrg# Some systems (esp. on ia64) link data and code symbols differently, 12462aee7dae4Smrg# so use this general approach. 12463aee7dae4Smrglt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 12464ba0eab60Smacallan 12465aee7dae4Smrg# Transform an extracted symbol line into symbol name and symbol address 12466aee7dae4Smrglt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 12467aee7dae4Smrglt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 12468ba0eab60Smacallan 12469aee7dae4Smrg# Handle CRLF in mingw tool chain 12470aee7dae4Smrgopt_cr= 12471aee7dae4Smrgcase $build_os in 12472aee7dae4Smrgmingw*) 12473aee7dae4Smrg opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 12474aee7dae4Smrg ;; 12475aee7dae4Smrgesac 12476ba0eab60Smacallan 12477aee7dae4Smrg# Try without a prefix underscore, then with it. 12478aee7dae4Smrgfor ac_symprfx in "" "_"; do 12479ba0eab60Smacallan 12480aee7dae4Smrg # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 12481aee7dae4Smrg symxfrm="\\1 $ac_symprfx\\2 \\2" 12482ba0eab60Smacallan 12483aee7dae4Smrg # Write the raw and C identifiers. 12484aee7dae4Smrg if test "$lt_cv_nm_interface" = "MS dumpbin"; then 12485aee7dae4Smrg # Fake it for dumpbin and say T for any non-static function 12486aee7dae4Smrg # and D for any global variable. 12487aee7dae4Smrg # Also find C++ and __fastcall symbols from MSVC++, 12488aee7dae4Smrg # which start with @ or ?. 12489aee7dae4Smrg lt_cv_sys_global_symbol_pipe="$AWK '"\ 12490aee7dae4Smrg" {last_section=section; section=\$ 3};"\ 12491aee7dae4Smrg" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 12492aee7dae4Smrg" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 12493aee7dae4Smrg" \$ 0!~/External *\|/{next};"\ 12494aee7dae4Smrg" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 12495aee7dae4Smrg" {if(hide[section]) next};"\ 12496aee7dae4Smrg" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 12497aee7dae4Smrg" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 12498aee7dae4Smrg" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 12499aee7dae4Smrg" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 12500aee7dae4Smrg" ' prfx=^$ac_symprfx" 12501aee7dae4Smrg else 12502aee7dae4Smrg lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 12503aee7dae4Smrg fi 12504aee7dae4Smrg lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 12505ba0eab60Smacallan 12506aee7dae4Smrg # Check to see that the pipe works correctly. 12507aee7dae4Smrg pipe_works=no 12508aee7dae4Smrg 12509aee7dae4Smrg rm -f conftest* 12510aee7dae4Smrg cat > conftest.$ac_ext <<_LT_EOF 12511aee7dae4Smrg#ifdef __cplusplus 12512aee7dae4Smrgextern "C" { 12513aee7dae4Smrg#endif 12514aee7dae4Smrgchar nm_test_var; 12515aee7dae4Smrgvoid nm_test_func(void); 12516aee7dae4Smrgvoid nm_test_func(void){} 12517aee7dae4Smrg#ifdef __cplusplus 12518aee7dae4Smrg} 12519aee7dae4Smrg#endif 12520aee7dae4Smrgint main(){nm_test_var='a';nm_test_func();return(0);} 12521aee7dae4Smrg_LT_EOF 12522aee7dae4Smrg 12523aee7dae4Smrg if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12524aee7dae4Smrg (eval $ac_compile) 2>&5 12525aee7dae4Smrg ac_status=$? 12526aee7dae4Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12527aee7dae4Smrg test $ac_status = 0; }; then 12528aee7dae4Smrg # Now try to grab the symbols. 12529aee7dae4Smrg nlist=conftest.nm 12530aee7dae4Smrg if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 12531aee7dae4Smrg (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 12532aee7dae4Smrg ac_status=$? 12533aee7dae4Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12534aee7dae4Smrg test $ac_status = 0; } && test -s "$nlist"; then 12535aee7dae4Smrg # Try sorting and uniquifying the output. 12536aee7dae4Smrg if sort "$nlist" | uniq > "$nlist"T; then 12537aee7dae4Smrg mv -f "$nlist"T "$nlist" 12538ba0eab60Smacallan else 12539aee7dae4Smrg rm -f "$nlist"T 12540aee7dae4Smrg fi 12541ba0eab60Smacallan 12542aee7dae4Smrg # Make sure that we snagged all the symbols we need. 12543aee7dae4Smrg if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 12544aee7dae4Smrg if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 12545aee7dae4Smrg cat <<_LT_EOF > conftest.$ac_ext 12546aee7dae4Smrg/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 12547aee7dae4Smrg#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 12548aee7dae4Smrg/* DATA imports from DLLs on WIN32 con't be const, because runtime 12549aee7dae4Smrg relocations are performed -- see ld's documentation on pseudo-relocs. */ 12550aee7dae4Smrg# define LT_DLSYM_CONST 12551aee7dae4Smrg#elif defined(__osf__) 12552aee7dae4Smrg/* This system does not cope well with relocations in const data. */ 12553aee7dae4Smrg# define LT_DLSYM_CONST 12554aee7dae4Smrg#else 12555aee7dae4Smrg# define LT_DLSYM_CONST const 12556aee7dae4Smrg#endif 12557ba0eab60Smacallan 12558aee7dae4Smrg#ifdef __cplusplus 12559aee7dae4Smrgextern "C" { 12560aee7dae4Smrg#endif 12561ba0eab60Smacallan 12562aee7dae4Smrg_LT_EOF 12563aee7dae4Smrg # Now generate the symbol file. 12564aee7dae4Smrg eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 12565ba0eab60Smacallan 12566aee7dae4Smrg cat <<_LT_EOF >> conftest.$ac_ext 12567ba0eab60Smacallan 12568aee7dae4Smrg/* The mapping between symbol names and symbols. */ 12569aee7dae4SmrgLT_DLSYM_CONST struct { 12570aee7dae4Smrg const char *name; 12571aee7dae4Smrg void *address; 12572aee7dae4Smrg} 12573aee7dae4Smrglt__PROGRAM__LTX_preloaded_symbols[] = 12574aee7dae4Smrg{ 12575aee7dae4Smrg { "@PROGRAM@", (void *) 0 }, 12576aee7dae4Smrg_LT_EOF 12577aee7dae4Smrg $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 12578aee7dae4Smrg cat <<\_LT_EOF >> conftest.$ac_ext 12579aee7dae4Smrg {0, (void *) 0} 12580aee7dae4Smrg}; 12581ba0eab60Smacallan 12582aee7dae4Smrg/* This works around a problem in FreeBSD linker */ 12583aee7dae4Smrg#ifdef FREEBSD_WORKAROUND 12584aee7dae4Smrgstatic const void *lt_preloaded_setup() { 12585aee7dae4Smrg return lt__PROGRAM__LTX_preloaded_symbols; 12586aee7dae4Smrg} 12587aee7dae4Smrg#endif 12588aee7dae4Smrg 12589aee7dae4Smrg#ifdef __cplusplus 12590aee7dae4Smrg} 12591aee7dae4Smrg#endif 12592aee7dae4Smrg_LT_EOF 12593aee7dae4Smrg # Now try linking the two files. 12594aee7dae4Smrg mv conftest.$ac_objext conftstm.$ac_objext 12595aee7dae4Smrg lt_globsym_save_LIBS=$LIBS 12596aee7dae4Smrg lt_globsym_save_CFLAGS=$CFLAGS 12597aee7dae4Smrg LIBS="conftstm.$ac_objext" 12598aee7dae4Smrg CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 12599aee7dae4Smrg if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12600aee7dae4Smrg (eval $ac_link) 2>&5 12601aee7dae4Smrg ac_status=$? 12602aee7dae4Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12603aee7dae4Smrg test $ac_status = 0; } && test -s conftest${ac_exeext}; then 12604aee7dae4Smrg pipe_works=yes 12605aee7dae4Smrg fi 12606aee7dae4Smrg LIBS=$lt_globsym_save_LIBS 12607aee7dae4Smrg CFLAGS=$lt_globsym_save_CFLAGS 12608ba0eab60Smacallan else 12609aee7dae4Smrg echo "cannot find nm_test_func in $nlist" >&5 12610aee7dae4Smrg fi 12611ba0eab60Smacallan else 12612aee7dae4Smrg echo "cannot find nm_test_var in $nlist" >&5 12613ba0eab60Smacallan fi 12614aee7dae4Smrg else 12615aee7dae4Smrg echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 12616aee7dae4Smrg fi 12617aee7dae4Smrg else 12618aee7dae4Smrg echo "$progname: failed program was:" >&5 12619aee7dae4Smrg cat conftest.$ac_ext >&5 12620aee7dae4Smrg fi 12621aee7dae4Smrg rm -rf conftest* conftst* 12622aee7dae4Smrg 12623aee7dae4Smrg # Do not use the global_symbol_pipe unless it works. 12624aee7dae4Smrg if test "$pipe_works" = yes; then 12625aee7dae4Smrg break 12626aee7dae4Smrg else 12627aee7dae4Smrg lt_cv_sys_global_symbol_pipe= 12628aee7dae4Smrg fi 12629aee7dae4Smrgdone 12630aee7dae4Smrg 12631aee7dae4Smrgfi 12632aee7dae4Smrg 12633aee7dae4Smrgif test -z "$lt_cv_sys_global_symbol_pipe"; then 12634aee7dae4Smrg lt_cv_sys_global_symbol_to_cdecl= 12635aee7dae4Smrgfi 12636aee7dae4Smrgif test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 12637aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 12638aee7dae4Smrg$as_echo "failed" >&6; } 12639aee7dae4Smrgelse 12640aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 12641aee7dae4Smrg$as_echo "ok" >&6; } 12642aee7dae4Smrgfi 12643aee7dae4Smrg 12644aee7dae4Smrg# Response file support. 12645aee7dae4Smrgif test "$lt_cv_nm_interface" = "MS dumpbin"; then 12646aee7dae4Smrg nm_file_list_spec='@' 12647aee7dae4Smrgelif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 12648aee7dae4Smrg nm_file_list_spec='@' 12649aee7dae4Smrgfi 12650aee7dae4Smrg 12651ba0eab60Smacallan 12652ba0eab60Smacallan 12653ba0eab60Smacallan 12654ba0eab60Smacallan 12655ba0eab60Smacallan 12656ba0eab60Smacallan 12657ba0eab60Smacallan 12658ba0eab60Smacallan 12659ba0eab60Smacallan 12660ba0eab60Smacallan 12661ba0eab60Smacallan 12662ba0eab60Smacallan 12663ba0eab60Smacallan 12664ba0eab60Smacallan 12665ba0eab60Smacallan 12666ba0eab60Smacallan 12667ba0eab60Smacallan 12668ba0eab60Smacallan 12669ba0eab60Smacallan 12670ba0eab60Smacallan 12671ba0eab60Smacallan 12672ba0eab60Smacallan 12673ba0eab60Smacallan 12674ba0eab60Smacallan 12675ba0eab60Smacallan 12676ba0eab60Smacallan 12677aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 12678aee7dae4Smrg$as_echo_n "checking for sysroot... " >&6; } 12679ba0eab60Smacallan 12680aee7dae4Smrg# Check whether --with-sysroot was given. 12681aee7dae4Smrgif test "${with_sysroot+set}" = set; then : 12682aee7dae4Smrg withval=$with_sysroot; 12683aee7dae4Smrgelse 12684aee7dae4Smrg with_sysroot=no 12685ba0eab60Smacallanfi 12686ba0eab60Smacallan 12687ba0eab60Smacallan 12688aee7dae4Smrglt_sysroot= 12689aee7dae4Smrgcase ${with_sysroot} in #( 12690aee7dae4Smrg yes) 12691aee7dae4Smrg if test "$GCC" = yes; then 12692aee7dae4Smrg lt_sysroot=`$CC --print-sysroot 2>/dev/null` 12693aee7dae4Smrg fi 12694aee7dae4Smrg ;; #( 12695aee7dae4Smrg /*) 12696aee7dae4Smrg lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 12697aee7dae4Smrg ;; #( 12698aee7dae4Smrg no|'') 12699aee7dae4Smrg ;; #( 12700aee7dae4Smrg *) 12701aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 12702aee7dae4Smrg$as_echo "${with_sysroot}" >&6; } 12703aee7dae4Smrg as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 12704aee7dae4Smrg ;; 12705aee7dae4Smrgesac 12706ba0eab60Smacallan 12707aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 12708aee7dae4Smrg$as_echo "${lt_sysroot:-no}" >&6; } 12709ba0eab60Smacallan 12710ba0eab60Smacallan 12711aee7dae4Smrg 12712aee7dae4Smrg 12713aee7dae4Smrg 12714aee7dae4Smrg# Check whether --enable-libtool-lock was given. 12715aee7dae4Smrgif test "${enable_libtool_lock+set}" = set; then : 12716aee7dae4Smrg enableval=$enable_libtool_lock; 12717aee7dae4Smrgfi 12718aee7dae4Smrg 12719aee7dae4Smrgtest "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 12720aee7dae4Smrg 12721aee7dae4Smrg# Some flags need to be propagated to the compiler or linker for good 12722aee7dae4Smrg# libtool support. 12723aee7dae4Smrgcase $host in 12724aee7dae4Smrgia64-*-hpux*) 12725aee7dae4Smrg # Find out which ABI we are using. 12726aee7dae4Smrg echo 'int i;' > conftest.$ac_ext 12727aee7dae4Smrg if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12728aee7dae4Smrg (eval $ac_compile) 2>&5 12729aee7dae4Smrg ac_status=$? 12730aee7dae4Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12731aee7dae4Smrg test $ac_status = 0; }; then 12732aee7dae4Smrg case `/usr/bin/file conftest.$ac_objext` in 12733aee7dae4Smrg *ELF-32*) 12734aee7dae4Smrg HPUX_IA64_MODE="32" 12735aee7dae4Smrg ;; 12736aee7dae4Smrg *ELF-64*) 12737aee7dae4Smrg HPUX_IA64_MODE="64" 12738aee7dae4Smrg ;; 12739aee7dae4Smrg esac 12740aee7dae4Smrg fi 12741aee7dae4Smrg rm -rf conftest* 12742aee7dae4Smrg ;; 12743aee7dae4Smrg*-*-irix6*) 12744aee7dae4Smrg # Find out which ABI we are using. 12745aee7dae4Smrg echo '#line '$LINENO' "configure"' > conftest.$ac_ext 12746aee7dae4Smrg if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12747aee7dae4Smrg (eval $ac_compile) 2>&5 12748aee7dae4Smrg ac_status=$? 12749aee7dae4Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12750aee7dae4Smrg test $ac_status = 0; }; then 12751aee7dae4Smrg if test "$lt_cv_prog_gnu_ld" = yes; then 12752aee7dae4Smrg case `/usr/bin/file conftest.$ac_objext` in 12753aee7dae4Smrg *32-bit*) 12754aee7dae4Smrg LD="${LD-ld} -melf32bsmip" 12755aee7dae4Smrg ;; 12756aee7dae4Smrg *N32*) 12757aee7dae4Smrg LD="${LD-ld} -melf32bmipn32" 12758aee7dae4Smrg ;; 12759aee7dae4Smrg *64-bit*) 12760aee7dae4Smrg LD="${LD-ld} -melf64bmip" 12761aee7dae4Smrg ;; 12762ba0eab60Smacallan esac 12763ba0eab60Smacallan else 12764aee7dae4Smrg case `/usr/bin/file conftest.$ac_objext` in 12765aee7dae4Smrg *32-bit*) 12766aee7dae4Smrg LD="${LD-ld} -32" 12767aee7dae4Smrg ;; 12768aee7dae4Smrg *N32*) 12769aee7dae4Smrg LD="${LD-ld} -n32" 12770aee7dae4Smrg ;; 12771aee7dae4Smrg *64-bit*) 12772aee7dae4Smrg LD="${LD-ld} -64" 12773aee7dae4Smrg ;; 12774ba0eab60Smacallan esac 12775ba0eab60Smacallan fi 12776aee7dae4Smrg fi 12777aee7dae4Smrg rm -rf conftest* 12778aee7dae4Smrg ;; 12779ba0eab60Smacallan 12780aee7dae4Smrgx86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 12781aee7dae4Smrgs390*-*linux*|s390*-*tpf*|sparc*-*linux*) 12782aee7dae4Smrg # Find out which ABI we are using. 12783aee7dae4Smrg echo 'int i;' > conftest.$ac_ext 12784aee7dae4Smrg if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12785aee7dae4Smrg (eval $ac_compile) 2>&5 12786aee7dae4Smrg ac_status=$? 12787aee7dae4Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12788aee7dae4Smrg test $ac_status = 0; }; then 12789aee7dae4Smrg case `/usr/bin/file conftest.o` in 12790aee7dae4Smrg *32-bit*) 12791aee7dae4Smrg case $host in 12792aee7dae4Smrg x86_64-*kfreebsd*-gnu) 12793aee7dae4Smrg LD="${LD-ld} -m elf_i386_fbsd" 12794aee7dae4Smrg ;; 12795aee7dae4Smrg x86_64-*linux*) 12796aee7dae4Smrg LD="${LD-ld} -m elf_i386" 12797aee7dae4Smrg ;; 12798aee7dae4Smrg ppc64-*linux*|powerpc64-*linux*) 12799aee7dae4Smrg LD="${LD-ld} -m elf32ppclinux" 12800aee7dae4Smrg ;; 12801aee7dae4Smrg s390x-*linux*) 12802aee7dae4Smrg LD="${LD-ld} -m elf_s390" 12803aee7dae4Smrg ;; 12804aee7dae4Smrg sparc64-*linux*) 12805aee7dae4Smrg LD="${LD-ld} -m elf32_sparc" 12806aee7dae4Smrg ;; 12807aee7dae4Smrg esac 12808aee7dae4Smrg ;; 12809aee7dae4Smrg *64-bit*) 12810aee7dae4Smrg case $host in 12811aee7dae4Smrg x86_64-*kfreebsd*-gnu) 12812aee7dae4Smrg LD="${LD-ld} -m elf_x86_64_fbsd" 12813aee7dae4Smrg ;; 12814aee7dae4Smrg x86_64-*linux*) 12815aee7dae4Smrg LD="${LD-ld} -m elf_x86_64" 12816aee7dae4Smrg ;; 12817aee7dae4Smrg ppc*-*linux*|powerpc*-*linux*) 12818aee7dae4Smrg LD="${LD-ld} -m elf64ppc" 12819aee7dae4Smrg ;; 12820aee7dae4Smrg s390*-*linux*|s390*-*tpf*) 12821aee7dae4Smrg LD="${LD-ld} -m elf64_s390" 12822aee7dae4Smrg ;; 12823aee7dae4Smrg sparc*-*linux*) 12824aee7dae4Smrg LD="${LD-ld} -m elf64_sparc" 12825aee7dae4Smrg ;; 12826aee7dae4Smrg esac 12827aee7dae4Smrg ;; 12828aee7dae4Smrg esac 12829aee7dae4Smrg fi 12830aee7dae4Smrg rm -rf conftest* 12831aee7dae4Smrg ;; 12832ba0eab60Smacallan 12833aee7dae4Smrg*-*-sco3.2v5*) 12834aee7dae4Smrg # On SCO OpenServer 5, we need -belf to get full-featured binaries. 12835aee7dae4Smrg SAVE_CFLAGS="$CFLAGS" 12836aee7dae4Smrg CFLAGS="$CFLAGS -belf" 12837aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 12838aee7dae4Smrg$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 12839aee7dae4Smrgif ${lt_cv_cc_needs_belf+:} false; then : 12840aee7dae4Smrg $as_echo_n "(cached) " >&6 12841aee7dae4Smrgelse 12842aee7dae4Smrg ac_ext=c 12843aee7dae4Smrgac_cpp='$CPP $CPPFLAGS' 12844aee7dae4Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12845aee7dae4Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12846aee7dae4Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 12847ba0eab60Smacallan 12848aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12849aee7dae4Smrg/* end confdefs.h. */ 12850ba0eab60Smacallan 12851aee7dae4Smrgint 12852aee7dae4Smrgmain () 12853aee7dae4Smrg{ 12854ba0eab60Smacallan 12855aee7dae4Smrg ; 12856aee7dae4Smrg return 0; 12857aee7dae4Smrg} 12858aee7dae4Smrg_ACEOF 12859aee7dae4Smrgif ac_fn_c_try_link "$LINENO"; then : 12860aee7dae4Smrg lt_cv_cc_needs_belf=yes 12861aee7dae4Smrgelse 12862aee7dae4Smrg lt_cv_cc_needs_belf=no 12863aee7dae4Smrgfi 12864aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext \ 12865aee7dae4Smrg conftest$ac_exeext conftest.$ac_ext 12866aee7dae4Smrg ac_ext=c 12867aee7dae4Smrgac_cpp='$CPP $CPPFLAGS' 12868aee7dae4Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12869aee7dae4Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12870aee7dae4Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 12871ba0eab60Smacallan 12872aee7dae4Smrgfi 12873aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 12874aee7dae4Smrg$as_echo "$lt_cv_cc_needs_belf" >&6; } 12875aee7dae4Smrg if test x"$lt_cv_cc_needs_belf" != x"yes"; then 12876aee7dae4Smrg # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 12877aee7dae4Smrg CFLAGS="$SAVE_CFLAGS" 12878aee7dae4Smrg fi 12879aee7dae4Smrg ;; 12880aee7dae4Smrg*-*solaris*) 12881aee7dae4Smrg # Find out which ABI we are using. 12882aee7dae4Smrg echo 'int i;' > conftest.$ac_ext 12883aee7dae4Smrg if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12884aee7dae4Smrg (eval $ac_compile) 2>&5 12885aee7dae4Smrg ac_status=$? 12886aee7dae4Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12887aee7dae4Smrg test $ac_status = 0; }; then 12888aee7dae4Smrg case `/usr/bin/file conftest.o` in 12889aee7dae4Smrg *64-bit*) 12890aee7dae4Smrg case $lt_cv_prog_gnu_ld in 12891aee7dae4Smrg yes*) 12892aee7dae4Smrg case $host in 12893aee7dae4Smrg i?86-*-solaris*) 12894aee7dae4Smrg LD="${LD-ld} -m elf_x86_64" 12895aee7dae4Smrg ;; 12896aee7dae4Smrg sparc*-*-solaris*) 12897aee7dae4Smrg LD="${LD-ld} -m elf64_sparc" 12898aee7dae4Smrg ;; 12899aee7dae4Smrg esac 12900aee7dae4Smrg # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 12901aee7dae4Smrg if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 12902aee7dae4Smrg LD="${LD-ld}_sol2" 12903aee7dae4Smrg fi 12904aee7dae4Smrg ;; 12905aee7dae4Smrg *) 12906aee7dae4Smrg if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 12907aee7dae4Smrg LD="${LD-ld} -64" 12908aee7dae4Smrg fi 12909aee7dae4Smrg ;; 12910aee7dae4Smrg esac 12911ba0eab60Smacallan ;; 12912aee7dae4Smrg esac 12913aee7dae4Smrg fi 12914aee7dae4Smrg rm -rf conftest* 12915aee7dae4Smrg ;; 12916aee7dae4Smrgesac 12917ba0eab60Smacallan 12918aee7dae4Smrgneed_locks="$enable_libtool_lock" 12919ba0eab60Smacallan 12920aee7dae4Smrgif test -n "$ac_tool_prefix"; then 12921aee7dae4Smrg # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 12922aee7dae4Smrgset dummy ${ac_tool_prefix}mt; ac_word=$2 12923aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12924aee7dae4Smrg$as_echo_n "checking for $ac_word... " >&6; } 12925aee7dae4Smrgif ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 12926aee7dae4Smrg $as_echo_n "(cached) " >&6 12927aee7dae4Smrgelse 12928aee7dae4Smrg if test -n "$MANIFEST_TOOL"; then 12929aee7dae4Smrg ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 12930aee7dae4Smrgelse 12931aee7dae4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12932aee7dae4Smrgfor as_dir in $PATH 12933aee7dae4Smrgdo 12934aee7dae4Smrg IFS=$as_save_IFS 12935aee7dae4Smrg test -z "$as_dir" && as_dir=. 12936aee7dae4Smrg for ac_exec_ext in '' $ac_executable_extensions; do 12937aee7dae4Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12938aee7dae4Smrg ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 12939aee7dae4Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12940aee7dae4Smrg break 2 12941aee7dae4Smrg fi 12942aee7dae4Smrgdone 12943aee7dae4Smrg done 12944aee7dae4SmrgIFS=$as_save_IFS 12945ba0eab60Smacallan 12946aee7dae4Smrgfi 12947aee7dae4Smrgfi 12948aee7dae4SmrgMANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 12949aee7dae4Smrgif test -n "$MANIFEST_TOOL"; then 12950aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 12951aee7dae4Smrg$as_echo "$MANIFEST_TOOL" >&6; } 12952aee7dae4Smrgelse 12953aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12954aee7dae4Smrg$as_echo "no" >&6; } 12955aee7dae4Smrgfi 12956ba0eab60Smacallan 12957ba0eab60Smacallan 12958aee7dae4Smrgfi 12959aee7dae4Smrgif test -z "$ac_cv_prog_MANIFEST_TOOL"; then 12960aee7dae4Smrg ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 12961aee7dae4Smrg # Extract the first word of "mt", so it can be a program name with args. 12962aee7dae4Smrgset dummy mt; ac_word=$2 12963aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12964aee7dae4Smrg$as_echo_n "checking for $ac_word... " >&6; } 12965aee7dae4Smrgif ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 12966aee7dae4Smrg $as_echo_n "(cached) " >&6 12967aee7dae4Smrgelse 12968aee7dae4Smrg if test -n "$ac_ct_MANIFEST_TOOL"; then 12969aee7dae4Smrg ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 12970aee7dae4Smrgelse 12971aee7dae4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12972aee7dae4Smrgfor as_dir in $PATH 12973aee7dae4Smrgdo 12974aee7dae4Smrg IFS=$as_save_IFS 12975aee7dae4Smrg test -z "$as_dir" && as_dir=. 12976aee7dae4Smrg for ac_exec_ext in '' $ac_executable_extensions; do 12977aee7dae4Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12978aee7dae4Smrg ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 12979aee7dae4Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12980aee7dae4Smrg break 2 12981aee7dae4Smrg fi 12982aee7dae4Smrgdone 12983aee7dae4Smrg done 12984aee7dae4SmrgIFS=$as_save_IFS 12985ba0eab60Smacallan 12986aee7dae4Smrgfi 12987aee7dae4Smrgfi 12988aee7dae4Smrgac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 12989aee7dae4Smrgif test -n "$ac_ct_MANIFEST_TOOL"; then 12990aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 12991aee7dae4Smrg$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 12992aee7dae4Smrgelse 12993aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12994aee7dae4Smrg$as_echo "no" >&6; } 12995aee7dae4Smrgfi 12996ba0eab60Smacallan 12997aee7dae4Smrg if test "x$ac_ct_MANIFEST_TOOL" = x; then 12998aee7dae4Smrg MANIFEST_TOOL=":" 12999aee7dae4Smrg else 13000aee7dae4Smrg case $cross_compiling:$ac_tool_warned in 13001aee7dae4Smrgyes:) 13002aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13003aee7dae4Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13004aee7dae4Smrgac_tool_warned=yes ;; 13005aee7dae4Smrgesac 13006aee7dae4Smrg MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 13007aee7dae4Smrg fi 13008aee7dae4Smrgelse 13009aee7dae4Smrg MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 13010aee7dae4Smrgfi 13011ba0eab60Smacallan 13012aee7dae4Smrgtest -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 13013aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 13014aee7dae4Smrg$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 13015aee7dae4Smrgif ${lt_cv_path_mainfest_tool+:} false; then : 13016aee7dae4Smrg $as_echo_n "(cached) " >&6 13017aee7dae4Smrgelse 13018aee7dae4Smrg lt_cv_path_mainfest_tool=no 13019aee7dae4Smrg echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 13020aee7dae4Smrg $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 13021aee7dae4Smrg cat conftest.err >&5 13022aee7dae4Smrg if $GREP 'Manifest Tool' conftest.out > /dev/null; then 13023aee7dae4Smrg lt_cv_path_mainfest_tool=yes 13024aee7dae4Smrg fi 13025aee7dae4Smrg rm -f conftest* 13026aee7dae4Smrgfi 13027aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 13028aee7dae4Smrg$as_echo "$lt_cv_path_mainfest_tool" >&6; } 13029aee7dae4Smrgif test "x$lt_cv_path_mainfest_tool" != xyes; then 13030aee7dae4Smrg MANIFEST_TOOL=: 13031aee7dae4Smrgfi 13032ba0eab60Smacallan 13033ba0eab60Smacallan 13034ba0eab60Smacallan 13035ba0eab60Smacallan 13036ba0eab60Smacallan 13037ba0eab60Smacallan 13038aee7dae4Smrg case $host_os in 13039aee7dae4Smrg rhapsody* | darwin*) 13040aee7dae4Smrg if test -n "$ac_tool_prefix"; then 13041aee7dae4Smrg # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 13042aee7dae4Smrgset dummy ${ac_tool_prefix}dsymutil; ac_word=$2 13043aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13044aee7dae4Smrg$as_echo_n "checking for $ac_word... " >&6; } 13045aee7dae4Smrgif ${ac_cv_prog_DSYMUTIL+:} false; then : 13046aee7dae4Smrg $as_echo_n "(cached) " >&6 13047aee7dae4Smrgelse 13048aee7dae4Smrg if test -n "$DSYMUTIL"; then 13049aee7dae4Smrg ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 13050aee7dae4Smrgelse 13051aee7dae4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13052aee7dae4Smrgfor as_dir in $PATH 13053aee7dae4Smrgdo 13054aee7dae4Smrg IFS=$as_save_IFS 13055aee7dae4Smrg test -z "$as_dir" && as_dir=. 13056aee7dae4Smrg for ac_exec_ext in '' $ac_executable_extensions; do 13057aee7dae4Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13058aee7dae4Smrg ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 13059aee7dae4Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13060aee7dae4Smrg break 2 13061aee7dae4Smrg fi 13062aee7dae4Smrgdone 13063aee7dae4Smrg done 13064aee7dae4SmrgIFS=$as_save_IFS 13065ba0eab60Smacallan 13066aee7dae4Smrgfi 13067aee7dae4Smrgfi 13068aee7dae4SmrgDSYMUTIL=$ac_cv_prog_DSYMUTIL 13069aee7dae4Smrgif test -n "$DSYMUTIL"; then 13070aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 13071aee7dae4Smrg$as_echo "$DSYMUTIL" >&6; } 13072aee7dae4Smrgelse 13073aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13074aee7dae4Smrg$as_echo "no" >&6; } 13075aee7dae4Smrgfi 13076ba0eab60Smacallan 13077ba0eab60Smacallan 13078aee7dae4Smrgfi 13079aee7dae4Smrgif test -z "$ac_cv_prog_DSYMUTIL"; then 13080aee7dae4Smrg ac_ct_DSYMUTIL=$DSYMUTIL 13081aee7dae4Smrg # Extract the first word of "dsymutil", so it can be a program name with args. 13082aee7dae4Smrgset dummy dsymutil; ac_word=$2 13083aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13084aee7dae4Smrg$as_echo_n "checking for $ac_word... " >&6; } 13085aee7dae4Smrgif ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 13086aee7dae4Smrg $as_echo_n "(cached) " >&6 13087aee7dae4Smrgelse 13088aee7dae4Smrg if test -n "$ac_ct_DSYMUTIL"; then 13089aee7dae4Smrg ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 13090aee7dae4Smrgelse 13091aee7dae4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13092aee7dae4Smrgfor as_dir in $PATH 13093aee7dae4Smrgdo 13094aee7dae4Smrg IFS=$as_save_IFS 13095aee7dae4Smrg test -z "$as_dir" && as_dir=. 13096aee7dae4Smrg for ac_exec_ext in '' $ac_executable_extensions; do 13097aee7dae4Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13098aee7dae4Smrg ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 13099aee7dae4Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13100aee7dae4Smrg break 2 13101aee7dae4Smrg fi 13102aee7dae4Smrgdone 13103aee7dae4Smrg done 13104aee7dae4SmrgIFS=$as_save_IFS 13105ba0eab60Smacallan 13106aee7dae4Smrgfi 13107aee7dae4Smrgfi 13108aee7dae4Smrgac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 13109aee7dae4Smrgif test -n "$ac_ct_DSYMUTIL"; then 13110aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 13111aee7dae4Smrg$as_echo "$ac_ct_DSYMUTIL" >&6; } 13112aee7dae4Smrgelse 13113aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13114aee7dae4Smrg$as_echo "no" >&6; } 13115aee7dae4Smrgfi 13116ba0eab60Smacallan 13117aee7dae4Smrg if test "x$ac_ct_DSYMUTIL" = x; then 13118aee7dae4Smrg DSYMUTIL=":" 13119aee7dae4Smrg else 13120aee7dae4Smrg case $cross_compiling:$ac_tool_warned in 13121aee7dae4Smrgyes:) 13122aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13123aee7dae4Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13124aee7dae4Smrgac_tool_warned=yes ;; 13125aee7dae4Smrgesac 13126aee7dae4Smrg DSYMUTIL=$ac_ct_DSYMUTIL 13127aee7dae4Smrg fi 13128aee7dae4Smrgelse 13129aee7dae4Smrg DSYMUTIL="$ac_cv_prog_DSYMUTIL" 13130aee7dae4Smrgfi 13131ba0eab60Smacallan 13132aee7dae4Smrg if test -n "$ac_tool_prefix"; then 13133aee7dae4Smrg # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 13134aee7dae4Smrgset dummy ${ac_tool_prefix}nmedit; ac_word=$2 13135aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13136aee7dae4Smrg$as_echo_n "checking for $ac_word... " >&6; } 13137aee7dae4Smrgif ${ac_cv_prog_NMEDIT+:} false; then : 13138aee7dae4Smrg $as_echo_n "(cached) " >&6 13139aee7dae4Smrgelse 13140aee7dae4Smrg if test -n "$NMEDIT"; then 13141aee7dae4Smrg ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 13142aee7dae4Smrgelse 13143aee7dae4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13144aee7dae4Smrgfor as_dir in $PATH 13145aee7dae4Smrgdo 13146aee7dae4Smrg IFS=$as_save_IFS 13147aee7dae4Smrg test -z "$as_dir" && as_dir=. 13148aee7dae4Smrg for ac_exec_ext in '' $ac_executable_extensions; do 13149aee7dae4Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13150aee7dae4Smrg ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 13151aee7dae4Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13152aee7dae4Smrg break 2 13153aee7dae4Smrg fi 13154aee7dae4Smrgdone 13155aee7dae4Smrg done 13156aee7dae4SmrgIFS=$as_save_IFS 13157ba0eab60Smacallan 13158aee7dae4Smrgfi 13159aee7dae4Smrgfi 13160aee7dae4SmrgNMEDIT=$ac_cv_prog_NMEDIT 13161aee7dae4Smrgif test -n "$NMEDIT"; then 13162aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 13163aee7dae4Smrg$as_echo "$NMEDIT" >&6; } 13164aee7dae4Smrgelse 13165aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13166aee7dae4Smrg$as_echo "no" >&6; } 13167aee7dae4Smrgfi 13168ba0eab60Smacallan 13169ba0eab60Smacallan 13170aee7dae4Smrgfi 13171aee7dae4Smrgif test -z "$ac_cv_prog_NMEDIT"; then 13172aee7dae4Smrg ac_ct_NMEDIT=$NMEDIT 13173aee7dae4Smrg # Extract the first word of "nmedit", so it can be a program name with args. 13174aee7dae4Smrgset dummy nmedit; ac_word=$2 13175aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13176aee7dae4Smrg$as_echo_n "checking for $ac_word... " >&6; } 13177aee7dae4Smrgif ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 13178aee7dae4Smrg $as_echo_n "(cached) " >&6 13179aee7dae4Smrgelse 13180aee7dae4Smrg if test -n "$ac_ct_NMEDIT"; then 13181aee7dae4Smrg ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 13182aee7dae4Smrgelse 13183aee7dae4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13184aee7dae4Smrgfor as_dir in $PATH 13185aee7dae4Smrgdo 13186aee7dae4Smrg IFS=$as_save_IFS 13187aee7dae4Smrg test -z "$as_dir" && as_dir=. 13188aee7dae4Smrg for ac_exec_ext in '' $ac_executable_extensions; do 13189aee7dae4Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13190aee7dae4Smrg ac_cv_prog_ac_ct_NMEDIT="nmedit" 13191aee7dae4Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13192aee7dae4Smrg break 2 13193aee7dae4Smrg fi 13194aee7dae4Smrgdone 13195aee7dae4Smrg done 13196aee7dae4SmrgIFS=$as_save_IFS 13197ba0eab60Smacallan 13198aee7dae4Smrgfi 13199aee7dae4Smrgfi 13200aee7dae4Smrgac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 13201aee7dae4Smrgif test -n "$ac_ct_NMEDIT"; then 13202aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 13203aee7dae4Smrg$as_echo "$ac_ct_NMEDIT" >&6; } 13204aee7dae4Smrgelse 13205aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13206aee7dae4Smrg$as_echo "no" >&6; } 13207aee7dae4Smrgfi 13208ba0eab60Smacallan 13209aee7dae4Smrg if test "x$ac_ct_NMEDIT" = x; then 13210aee7dae4Smrg NMEDIT=":" 13211aee7dae4Smrg else 13212aee7dae4Smrg case $cross_compiling:$ac_tool_warned in 13213aee7dae4Smrgyes:) 13214aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13215aee7dae4Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13216aee7dae4Smrgac_tool_warned=yes ;; 13217aee7dae4Smrgesac 13218aee7dae4Smrg NMEDIT=$ac_ct_NMEDIT 13219ba0eab60Smacallan fi 13220aee7dae4Smrgelse 13221aee7dae4Smrg NMEDIT="$ac_cv_prog_NMEDIT" 13222aee7dae4Smrgfi 13223ba0eab60Smacallan 13224aee7dae4Smrg if test -n "$ac_tool_prefix"; then 13225aee7dae4Smrg # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 13226aee7dae4Smrgset dummy ${ac_tool_prefix}lipo; ac_word=$2 13227aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13228aee7dae4Smrg$as_echo_n "checking for $ac_word... " >&6; } 13229aee7dae4Smrgif ${ac_cv_prog_LIPO+:} false; then : 13230aee7dae4Smrg $as_echo_n "(cached) " >&6 13231aee7dae4Smrgelse 13232aee7dae4Smrg if test -n "$LIPO"; then 13233aee7dae4Smrg ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 13234aee7dae4Smrgelse 13235aee7dae4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13236aee7dae4Smrgfor as_dir in $PATH 13237aee7dae4Smrgdo 13238aee7dae4Smrg IFS=$as_save_IFS 13239aee7dae4Smrg test -z "$as_dir" && as_dir=. 13240aee7dae4Smrg for ac_exec_ext in '' $ac_executable_extensions; do 13241aee7dae4Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13242aee7dae4Smrg ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 13243aee7dae4Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13244aee7dae4Smrg break 2 13245aee7dae4Smrg fi 13246aee7dae4Smrgdone 13247aee7dae4Smrg done 13248aee7dae4SmrgIFS=$as_save_IFS 13249ba0eab60Smacallan 13250aee7dae4Smrgfi 13251aee7dae4Smrgfi 13252aee7dae4SmrgLIPO=$ac_cv_prog_LIPO 13253aee7dae4Smrgif test -n "$LIPO"; then 13254aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 13255aee7dae4Smrg$as_echo "$LIPO" >&6; } 13256aee7dae4Smrgelse 13257aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13258aee7dae4Smrg$as_echo "no" >&6; } 13259aee7dae4Smrgfi 13260ba0eab60Smacallan 13261ba0eab60Smacallan 13262aee7dae4Smrgfi 13263aee7dae4Smrgif test -z "$ac_cv_prog_LIPO"; then 13264aee7dae4Smrg ac_ct_LIPO=$LIPO 13265aee7dae4Smrg # Extract the first word of "lipo", so it can be a program name with args. 13266aee7dae4Smrgset dummy lipo; ac_word=$2 13267aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13268aee7dae4Smrg$as_echo_n "checking for $ac_word... " >&6; } 13269aee7dae4Smrgif ${ac_cv_prog_ac_ct_LIPO+:} false; then : 13270aee7dae4Smrg $as_echo_n "(cached) " >&6 13271aee7dae4Smrgelse 13272aee7dae4Smrg if test -n "$ac_ct_LIPO"; then 13273aee7dae4Smrg ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 13274aee7dae4Smrgelse 13275aee7dae4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13276aee7dae4Smrgfor as_dir in $PATH 13277aee7dae4Smrgdo 13278aee7dae4Smrg IFS=$as_save_IFS 13279aee7dae4Smrg test -z "$as_dir" && as_dir=. 13280aee7dae4Smrg for ac_exec_ext in '' $ac_executable_extensions; do 13281aee7dae4Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13282aee7dae4Smrg ac_cv_prog_ac_ct_LIPO="lipo" 13283aee7dae4Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13284aee7dae4Smrg break 2 13285ba0eab60Smacallan fi 13286aee7dae4Smrgdone 13287aee7dae4Smrg done 13288aee7dae4SmrgIFS=$as_save_IFS 13289ba0eab60Smacallan 13290aee7dae4Smrgfi 13291aee7dae4Smrgfi 13292aee7dae4Smrgac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 13293aee7dae4Smrgif test -n "$ac_ct_LIPO"; then 13294aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 13295aee7dae4Smrg$as_echo "$ac_ct_LIPO" >&6; } 13296aee7dae4Smrgelse 13297aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13298aee7dae4Smrg$as_echo "no" >&6; } 13299aee7dae4Smrgfi 13300aee7dae4Smrg 13301aee7dae4Smrg if test "x$ac_ct_LIPO" = x; then 13302aee7dae4Smrg LIPO=":" 13303ba0eab60Smacallan else 13304aee7dae4Smrg case $cross_compiling:$ac_tool_warned in 13305aee7dae4Smrgyes:) 13306aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13307aee7dae4Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13308aee7dae4Smrgac_tool_warned=yes ;; 13309aee7dae4Smrgesac 13310aee7dae4Smrg LIPO=$ac_ct_LIPO 13311ba0eab60Smacallan fi 13312ba0eab60Smacallanelse 13313aee7dae4Smrg LIPO="$ac_cv_prog_LIPO" 13314ba0eab60Smacallanfi 13315ba0eab60Smacallan 13316aee7dae4Smrg if test -n "$ac_tool_prefix"; then 13317aee7dae4Smrg # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 13318aee7dae4Smrgset dummy ${ac_tool_prefix}otool; ac_word=$2 13319aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13320aee7dae4Smrg$as_echo_n "checking for $ac_word... " >&6; } 13321aee7dae4Smrgif ${ac_cv_prog_OTOOL+:} false; then : 13322aee7dae4Smrg $as_echo_n "(cached) " >&6 13323aee7dae4Smrgelse 13324aee7dae4Smrg if test -n "$OTOOL"; then 13325aee7dae4Smrg ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 13326aee7dae4Smrgelse 13327aee7dae4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13328aee7dae4Smrgfor as_dir in $PATH 13329aee7dae4Smrgdo 13330aee7dae4Smrg IFS=$as_save_IFS 13331aee7dae4Smrg test -z "$as_dir" && as_dir=. 13332aee7dae4Smrg for ac_exec_ext in '' $ac_executable_extensions; do 13333aee7dae4Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13334aee7dae4Smrg ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 13335aee7dae4Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13336aee7dae4Smrg break 2 13337aee7dae4Smrg fi 13338aee7dae4Smrgdone 13339aee7dae4Smrg done 13340aee7dae4SmrgIFS=$as_save_IFS 13341ba0eab60Smacallan 13342aee7dae4Smrgfi 13343aee7dae4Smrgfi 13344aee7dae4SmrgOTOOL=$ac_cv_prog_OTOOL 13345aee7dae4Smrgif test -n "$OTOOL"; then 13346aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 13347aee7dae4Smrg$as_echo "$OTOOL" >&6; } 13348aee7dae4Smrgelse 13349aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13350aee7dae4Smrg$as_echo "no" >&6; } 13351aee7dae4Smrgfi 13352ba0eab60Smacallan 13353ba0eab60Smacallan 13354aee7dae4Smrgfi 13355aee7dae4Smrgif test -z "$ac_cv_prog_OTOOL"; then 13356aee7dae4Smrg ac_ct_OTOOL=$OTOOL 13357aee7dae4Smrg # Extract the first word of "otool", so it can be a program name with args. 13358aee7dae4Smrgset dummy otool; ac_word=$2 13359aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13360aee7dae4Smrg$as_echo_n "checking for $ac_word... " >&6; } 13361aee7dae4Smrgif ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 13362aee7dae4Smrg $as_echo_n "(cached) " >&6 13363aee7dae4Smrgelse 13364aee7dae4Smrg if test -n "$ac_ct_OTOOL"; then 13365aee7dae4Smrg ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 13366aee7dae4Smrgelse 13367aee7dae4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13368aee7dae4Smrgfor as_dir in $PATH 13369aee7dae4Smrgdo 13370aee7dae4Smrg IFS=$as_save_IFS 13371aee7dae4Smrg test -z "$as_dir" && as_dir=. 13372aee7dae4Smrg for ac_exec_ext in '' $ac_executable_extensions; do 13373aee7dae4Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13374aee7dae4Smrg ac_cv_prog_ac_ct_OTOOL="otool" 13375aee7dae4Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13376aee7dae4Smrg break 2 13377ba0eab60Smacallan fi 13378aee7dae4Smrgdone 13379aee7dae4Smrg done 13380aee7dae4SmrgIFS=$as_save_IFS 13381ba0eab60Smacallan 13382aee7dae4Smrgfi 13383aee7dae4Smrgfi 13384aee7dae4Smrgac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 13385aee7dae4Smrgif test -n "$ac_ct_OTOOL"; then 13386aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 13387aee7dae4Smrg$as_echo "$ac_ct_OTOOL" >&6; } 13388aee7dae4Smrgelse 13389aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13390aee7dae4Smrg$as_echo "no" >&6; } 13391aee7dae4Smrgfi 13392ba0eab60Smacallan 13393aee7dae4Smrg if test "x$ac_ct_OTOOL" = x; then 13394aee7dae4Smrg OTOOL=":" 13395aee7dae4Smrg else 13396aee7dae4Smrg case $cross_compiling:$ac_tool_warned in 13397aee7dae4Smrgyes:) 13398aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13399aee7dae4Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13400aee7dae4Smrgac_tool_warned=yes ;; 13401aee7dae4Smrgesac 13402aee7dae4Smrg OTOOL=$ac_ct_OTOOL 13403aee7dae4Smrg fi 13404aee7dae4Smrgelse 13405aee7dae4Smrg OTOOL="$ac_cv_prog_OTOOL" 13406aee7dae4Smrgfi 13407ba0eab60Smacallan 13408aee7dae4Smrg if test -n "$ac_tool_prefix"; then 13409aee7dae4Smrg # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 13410aee7dae4Smrgset dummy ${ac_tool_prefix}otool64; ac_word=$2 13411aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13412aee7dae4Smrg$as_echo_n "checking for $ac_word... " >&6; } 13413aee7dae4Smrgif ${ac_cv_prog_OTOOL64+:} false; then : 13414aee7dae4Smrg $as_echo_n "(cached) " >&6 13415aee7dae4Smrgelse 13416aee7dae4Smrg if test -n "$OTOOL64"; then 13417aee7dae4Smrg ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 13418aee7dae4Smrgelse 13419aee7dae4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13420aee7dae4Smrgfor as_dir in $PATH 13421aee7dae4Smrgdo 13422aee7dae4Smrg IFS=$as_save_IFS 13423aee7dae4Smrg test -z "$as_dir" && as_dir=. 13424aee7dae4Smrg for ac_exec_ext in '' $ac_executable_extensions; do 13425aee7dae4Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13426aee7dae4Smrg ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 13427aee7dae4Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13428aee7dae4Smrg break 2 13429aee7dae4Smrg fi 13430aee7dae4Smrgdone 13431aee7dae4Smrg done 13432aee7dae4SmrgIFS=$as_save_IFS 13433ba0eab60Smacallan 13434aee7dae4Smrgfi 13435aee7dae4Smrgfi 13436aee7dae4SmrgOTOOL64=$ac_cv_prog_OTOOL64 13437aee7dae4Smrgif test -n "$OTOOL64"; then 13438aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 13439aee7dae4Smrg$as_echo "$OTOOL64" >&6; } 13440aee7dae4Smrgelse 13441aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13442aee7dae4Smrg$as_echo "no" >&6; } 13443aee7dae4Smrgfi 13444ba0eab60Smacallan 13445ba0eab60Smacallan 13446aee7dae4Smrgfi 13447aee7dae4Smrgif test -z "$ac_cv_prog_OTOOL64"; then 13448aee7dae4Smrg ac_ct_OTOOL64=$OTOOL64 13449aee7dae4Smrg # Extract the first word of "otool64", so it can be a program name with args. 13450aee7dae4Smrgset dummy otool64; ac_word=$2 13451aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13452aee7dae4Smrg$as_echo_n "checking for $ac_word... " >&6; } 13453aee7dae4Smrgif ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 13454aee7dae4Smrg $as_echo_n "(cached) " >&6 13455aee7dae4Smrgelse 13456aee7dae4Smrg if test -n "$ac_ct_OTOOL64"; then 13457aee7dae4Smrg ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 13458aee7dae4Smrgelse 13459aee7dae4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13460aee7dae4Smrgfor as_dir in $PATH 13461aee7dae4Smrgdo 13462aee7dae4Smrg IFS=$as_save_IFS 13463aee7dae4Smrg test -z "$as_dir" && as_dir=. 13464aee7dae4Smrg for ac_exec_ext in '' $ac_executable_extensions; do 13465aee7dae4Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13466aee7dae4Smrg ac_cv_prog_ac_ct_OTOOL64="otool64" 13467aee7dae4Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13468aee7dae4Smrg break 2 13469aee7dae4Smrg fi 13470aee7dae4Smrgdone 13471aee7dae4Smrg done 13472aee7dae4SmrgIFS=$as_save_IFS 13473ba0eab60Smacallan 13474aee7dae4Smrgfi 13475aee7dae4Smrgfi 13476aee7dae4Smrgac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 13477aee7dae4Smrgif test -n "$ac_ct_OTOOL64"; then 13478aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 13479aee7dae4Smrg$as_echo "$ac_ct_OTOOL64" >&6; } 13480aee7dae4Smrgelse 13481aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13482aee7dae4Smrg$as_echo "no" >&6; } 13483aee7dae4Smrgfi 13484aee7dae4Smrg 13485aee7dae4Smrg if test "x$ac_ct_OTOOL64" = x; then 13486aee7dae4Smrg OTOOL64=":" 13487ba0eab60Smacallan else 13488aee7dae4Smrg case $cross_compiling:$ac_tool_warned in 13489aee7dae4Smrgyes:) 13490aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13491aee7dae4Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13492aee7dae4Smrgac_tool_warned=yes ;; 13493aee7dae4Smrgesac 13494aee7dae4Smrg OTOOL64=$ac_ct_OTOOL64 13495ba0eab60Smacallan fi 13496aee7dae4Smrgelse 13497aee7dae4Smrg OTOOL64="$ac_cv_prog_OTOOL64" 13498aee7dae4Smrgfi 13499ba0eab60Smacallan 13500ba0eab60Smacallan 13501ba0eab60Smacallan 13502ba0eab60Smacallan 13503ba0eab60Smacallan 13504ba0eab60Smacallan 13505ba0eab60Smacallan 13506ba0eab60Smacallan 13507ba0eab60Smacallan 13508ba0eab60Smacallan 13509ba0eab60Smacallan 13510ba0eab60Smacallan 13511ba0eab60Smacallan 13512ba0eab60Smacallan 13513ba0eab60Smacallan 13514ba0eab60Smacallan 13515ba0eab60Smacallan 13516ba0eab60Smacallan 13517aee7dae4Smrg 13518aee7dae4Smrg 13519aee7dae4Smrg 13520aee7dae4Smrg 13521aee7dae4Smrg 13522aee7dae4Smrg 13523aee7dae4Smrg 13524aee7dae4Smrg 13525aee7dae4Smrg 13526aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 13527aee7dae4Smrg$as_echo_n "checking for -single_module linker flag... " >&6; } 13528aee7dae4Smrgif ${lt_cv_apple_cc_single_mod+:} false; then : 13529aee7dae4Smrg $as_echo_n "(cached) " >&6 13530aee7dae4Smrgelse 13531aee7dae4Smrg lt_cv_apple_cc_single_mod=no 13532aee7dae4Smrg if test -z "${LT_MULTI_MODULE}"; then 13533aee7dae4Smrg # By default we will add the -single_module flag. You can override 13534aee7dae4Smrg # by either setting the environment variable LT_MULTI_MODULE 13535aee7dae4Smrg # non-empty at configure time, or by adding -multi_module to the 13536aee7dae4Smrg # link flags. 13537aee7dae4Smrg rm -rf libconftest.dylib* 13538aee7dae4Smrg echo "int foo(void){return 1;}" > conftest.c 13539aee7dae4Smrg echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 13540aee7dae4Smrg-dynamiclib -Wl,-single_module conftest.c" >&5 13541aee7dae4Smrg $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 13542aee7dae4Smrg -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 13543aee7dae4Smrg _lt_result=$? 13544aee7dae4Smrg # If there is a non-empty error log, and "single_module" 13545aee7dae4Smrg # appears in it, assume the flag caused a linker warning 13546aee7dae4Smrg if test -s conftest.err && $GREP single_module conftest.err; then 13547aee7dae4Smrg cat conftest.err >&5 13548aee7dae4Smrg # Otherwise, if the output was created with a 0 exit code from 13549aee7dae4Smrg # the compiler, it worked. 13550aee7dae4Smrg elif test -f libconftest.dylib && test $_lt_result -eq 0; then 13551aee7dae4Smrg lt_cv_apple_cc_single_mod=yes 13552aee7dae4Smrg else 13553aee7dae4Smrg cat conftest.err >&5 13554aee7dae4Smrg fi 13555aee7dae4Smrg rm -rf libconftest.dylib* 13556aee7dae4Smrg rm -f conftest.* 13557aee7dae4Smrg fi 13558aee7dae4Smrgfi 13559aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 13560aee7dae4Smrg$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 13561aee7dae4Smrg 13562aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 13563aee7dae4Smrg$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 13564aee7dae4Smrgif ${lt_cv_ld_exported_symbols_list+:} false; then : 13565aee7dae4Smrg $as_echo_n "(cached) " >&6 13566aee7dae4Smrgelse 13567aee7dae4Smrg lt_cv_ld_exported_symbols_list=no 13568aee7dae4Smrg save_LDFLAGS=$LDFLAGS 13569aee7dae4Smrg echo "_main" > conftest.sym 13570aee7dae4Smrg LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 13571aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13572aee7dae4Smrg/* end confdefs.h. */ 13573aee7dae4Smrg 13574aee7dae4Smrgint 13575aee7dae4Smrgmain () 13576aee7dae4Smrg{ 13577aee7dae4Smrg 13578aee7dae4Smrg ; 13579aee7dae4Smrg return 0; 13580aee7dae4Smrg} 13581aee7dae4Smrg_ACEOF 13582aee7dae4Smrgif ac_fn_c_try_link "$LINENO"; then : 13583aee7dae4Smrg lt_cv_ld_exported_symbols_list=yes 13584aee7dae4Smrgelse 13585aee7dae4Smrg lt_cv_ld_exported_symbols_list=no 13586aee7dae4Smrgfi 13587aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext \ 13588aee7dae4Smrg conftest$ac_exeext conftest.$ac_ext 13589aee7dae4Smrg LDFLAGS="$save_LDFLAGS" 13590aee7dae4Smrg 13591aee7dae4Smrgfi 13592aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 13593aee7dae4Smrg$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 13594aee7dae4Smrg 13595aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 13596aee7dae4Smrg$as_echo_n "checking for -force_load linker flag... " >&6; } 13597aee7dae4Smrgif ${lt_cv_ld_force_load+:} false; then : 13598aee7dae4Smrg $as_echo_n "(cached) " >&6 13599aee7dae4Smrgelse 13600aee7dae4Smrg lt_cv_ld_force_load=no 13601aee7dae4Smrg cat > conftest.c << _LT_EOF 13602aee7dae4Smrgint forced_loaded() { return 2;} 13603aee7dae4Smrg_LT_EOF 13604aee7dae4Smrg echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 13605aee7dae4Smrg $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 13606aee7dae4Smrg echo "$AR cru libconftest.a conftest.o" >&5 13607aee7dae4Smrg $AR cru libconftest.a conftest.o 2>&5 13608aee7dae4Smrg echo "$RANLIB libconftest.a" >&5 13609aee7dae4Smrg $RANLIB libconftest.a 2>&5 13610aee7dae4Smrg cat > conftest.c << _LT_EOF 13611aee7dae4Smrgint main() { return 0;} 13612aee7dae4Smrg_LT_EOF 13613aee7dae4Smrg echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 13614aee7dae4Smrg $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 13615aee7dae4Smrg _lt_result=$? 13616aee7dae4Smrg if test -s conftest.err && $GREP force_load conftest.err; then 13617aee7dae4Smrg cat conftest.err >&5 13618aee7dae4Smrg elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 13619aee7dae4Smrg lt_cv_ld_force_load=yes 13620aee7dae4Smrg else 13621aee7dae4Smrg cat conftest.err >&5 13622aee7dae4Smrg fi 13623aee7dae4Smrg rm -f conftest.err libconftest.a conftest conftest.c 13624aee7dae4Smrg rm -rf conftest.dSYM 13625aee7dae4Smrg 13626aee7dae4Smrgfi 13627aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 13628aee7dae4Smrg$as_echo "$lt_cv_ld_force_load" >&6; } 13629ba0eab60Smacallan case $host_os in 13630aee7dae4Smrg rhapsody* | darwin1.[012]) 13631aee7dae4Smrg _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 13632aee7dae4Smrg darwin1.*) 13633aee7dae4Smrg _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 13634aee7dae4Smrg darwin*) # darwin 5.x on 13635aee7dae4Smrg # if running on 10.5 or later, the deployment target defaults 13636aee7dae4Smrg # to the OS version, if on x86, and 10.4, the deployment 13637aee7dae4Smrg # target defaults to 10.4. Don't you love it? 13638aee7dae4Smrg case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 13639aee7dae4Smrg 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 13640aee7dae4Smrg _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 13641aee7dae4Smrg 10.[012]*) 13642aee7dae4Smrg _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 13643aee7dae4Smrg 10.*) 13644aee7dae4Smrg _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 13645ba0eab60Smacallan esac 13646aee7dae4Smrg ;; 13647aee7dae4Smrg esac 13648aee7dae4Smrg if test "$lt_cv_apple_cc_single_mod" = "yes"; then 13649aee7dae4Smrg _lt_dar_single_mod='$single_module' 13650aee7dae4Smrg fi 13651aee7dae4Smrg if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 13652aee7dae4Smrg _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 13653aee7dae4Smrg else 13654aee7dae4Smrg _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 13655aee7dae4Smrg fi 13656aee7dae4Smrg if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 13657aee7dae4Smrg _lt_dsymutil='~$DSYMUTIL $lib || :' 13658aee7dae4Smrg else 13659aee7dae4Smrg _lt_dsymutil= 13660aee7dae4Smrg fi 13661aee7dae4Smrg ;; 13662aee7dae4Smrg esac 13663ba0eab60Smacallan 13664aee7dae4Smrgfor ac_header in dlfcn.h 13665aee7dae4Smrgdo : 13666aee7dae4Smrg ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 13667aee7dae4Smrg" 13668aee7dae4Smrgif test "x$ac_cv_header_dlfcn_h" = xyes; then : 13669aee7dae4Smrg cat >>confdefs.h <<_ACEOF 13670aee7dae4Smrg#define HAVE_DLFCN_H 1 13671aee7dae4Smrg_ACEOF 13672ba0eab60Smacallan 13673aee7dae4Smrgfi 13674ba0eab60Smacallan 13675aee7dae4Smrgdone 13676ba0eab60Smacallan 13677ba0eab60Smacallan 13678ba0eab60Smacallan 13679ba0eab60Smacallan 13680ba0eab60Smacallan 13681aee7dae4Smrg# Set options 13682ba0eab60Smacallan 13683ba0eab60Smacallan 13684ba0eab60Smacallan 13685aee7dae4Smrg enable_dlopen=no 13686ba0eab60Smacallan 13687ba0eab60Smacallan 13688aee7dae4Smrg enable_win32_dll=no 13689ba0eab60Smacallan 13690ba0eab60Smacallan 13691aee7dae4Smrg # Check whether --enable-shared was given. 13692aee7dae4Smrgif test "${enable_shared+set}" = set; then : 13693aee7dae4Smrg enableval=$enable_shared; p=${PACKAGE-default} 13694aee7dae4Smrg case $enableval in 13695aee7dae4Smrg yes) enable_shared=yes ;; 13696aee7dae4Smrg no) enable_shared=no ;; 13697ba0eab60Smacallan *) 13698aee7dae4Smrg enable_shared=no 13699aee7dae4Smrg # Look at the argument we got. We use all the common list separators. 13700aee7dae4Smrg lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 13701aee7dae4Smrg for pkg in $enableval; do 13702aee7dae4Smrg IFS="$lt_save_ifs" 13703aee7dae4Smrg if test "X$pkg" = "X$p"; then 13704aee7dae4Smrg enable_shared=yes 13705aee7dae4Smrg fi 13706aee7dae4Smrg done 13707aee7dae4Smrg IFS="$lt_save_ifs" 13708ba0eab60Smacallan ;; 13709ba0eab60Smacallan esac 13710aee7dae4Smrgelse 13711aee7dae4Smrg enable_shared=yes 13712aee7dae4Smrgfi 13713ba0eab60Smacallan 13714ba0eab60Smacallan 13715ba0eab60Smacallan 13716ba0eab60Smacallan 13717ba0eab60Smacallan 13718ba0eab60Smacallan 13719ba0eab60Smacallan 13720ba0eab60Smacallan 13721ba0eab60Smacallan 13722ba0eab60Smacallan 13723ba0eab60Smacallan 13724aee7dae4Smrg# Check whether --with-pic was given. 13725aee7dae4Smrgif test "${with_pic+set}" = set; then : 13726aee7dae4Smrg withval=$with_pic; lt_p=${PACKAGE-default} 13727aee7dae4Smrg case $withval in 13728aee7dae4Smrg yes|no) pic_mode=$withval ;; 13729aee7dae4Smrg *) 13730aee7dae4Smrg pic_mode=default 13731aee7dae4Smrg # Look at the argument we got. We use all the common list separators. 13732aee7dae4Smrg lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 13733aee7dae4Smrg for lt_pkg in $withval; do 13734aee7dae4Smrg IFS="$lt_save_ifs" 13735aee7dae4Smrg if test "X$lt_pkg" = "X$lt_p"; then 13736aee7dae4Smrg pic_mode=yes 13737aee7dae4Smrg fi 13738aee7dae4Smrg done 13739aee7dae4Smrg IFS="$lt_save_ifs" 13740aee7dae4Smrg ;; 13741aee7dae4Smrg esac 13742aee7dae4Smrgelse 13743aee7dae4Smrg pic_mode=default 13744aee7dae4Smrgfi 13745ba0eab60Smacallan 13746ba0eab60Smacallan 13747aee7dae4Smrgtest -z "$pic_mode" && pic_mode=default 13748aee7dae4Smrg 13749aee7dae4Smrg 13750aee7dae4Smrg 13751aee7dae4Smrg 13752aee7dae4Smrg 13753aee7dae4Smrg 13754aee7dae4Smrg 13755aee7dae4Smrg # Check whether --enable-fast-install was given. 13756aee7dae4Smrgif test "${enable_fast_install+set}" = set; then : 13757aee7dae4Smrg enableval=$enable_fast_install; p=${PACKAGE-default} 13758aee7dae4Smrg case $enableval in 13759aee7dae4Smrg yes) enable_fast_install=yes ;; 13760aee7dae4Smrg no) enable_fast_install=no ;; 13761aee7dae4Smrg *) 13762aee7dae4Smrg enable_fast_install=no 13763aee7dae4Smrg # Look at the argument we got. We use all the common list separators. 13764aee7dae4Smrg lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 13765aee7dae4Smrg for pkg in $enableval; do 13766aee7dae4Smrg IFS="$lt_save_ifs" 13767aee7dae4Smrg if test "X$pkg" = "X$p"; then 13768aee7dae4Smrg enable_fast_install=yes 13769aee7dae4Smrg fi 13770aee7dae4Smrg done 13771aee7dae4Smrg IFS="$lt_save_ifs" 13772aee7dae4Smrg ;; 13773aee7dae4Smrg esac 13774aee7dae4Smrgelse 13775aee7dae4Smrg enable_fast_install=yes 13776aee7dae4Smrgfi 13777aee7dae4Smrg 13778ba0eab60Smacallan 13779ba0eab60Smacallan 13780ba0eab60Smacallan 13781ba0eab60Smacallan 13782ba0eab60Smacallan 13783ba0eab60Smacallan 13784ba0eab60Smacallan 13785ba0eab60Smacallan 13786ba0eab60Smacallan 13787ba0eab60Smacallan 13788aee7dae4Smrg# This can be used to rebuild libtool when needed 13789aee7dae4SmrgLIBTOOL_DEPS="$ltmain" 13790ba0eab60Smacallan 13791aee7dae4Smrg# Always use our own libtool. 13792aee7dae4SmrgLIBTOOL='$(SHELL) $(top_builddir)/libtool' 13793ba0eab60Smacallan 13794ba0eab60Smacallan 13795ba0eab60Smacallan 13796ba0eab60Smacallan 13797ba0eab60Smacallan 13798ba0eab60Smacallan 13799ba0eab60Smacallan 13800ba0eab60Smacallan 13801ba0eab60Smacallan 13802ba0eab60Smacallan 13803ba0eab60Smacallan 13804ba0eab60Smacallan 13805ba0eab60Smacallan 13806ba0eab60Smacallan 13807ba0eab60Smacallan 13808ba0eab60Smacallan 13809ba0eab60Smacallan 13810ba0eab60Smacallan 13811ba0eab60Smacallan 13812ba0eab60Smacallan 13813ba0eab60Smacallan 13814ba0eab60Smacallan 13815ba0eab60Smacallan 13816ba0eab60Smacallan 13817ba0eab60Smacallan 13818ba0eab60Smacallan 13819ba0eab60Smacallan 13820ba0eab60Smacallan 13821ba0eab60Smacallan 13822ba0eab60Smacallan 13823aee7dae4Smrgtest -z "$LN_S" && LN_S="ln -s" 13824ba0eab60Smacallan 13825ba0eab60Smacallan 13826ba0eab60Smacallan 13827ba0eab60Smacallan 13828ba0eab60Smacallan 13829ba0eab60Smacallan 13830ba0eab60Smacallan 13831ba0eab60Smacallan 13832ba0eab60Smacallan 13833ba0eab60Smacallan 13834ba0eab60Smacallan 13835ba0eab60Smacallan 13836ba0eab60Smacallan 13837ba0eab60Smacallan 13838aee7dae4Smrgif test -n "${ZSH_VERSION+set}" ; then 13839aee7dae4Smrg setopt NO_GLOB_SUBST 13840aee7dae4Smrgfi 13841ba0eab60Smacallan 13842aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 13843aee7dae4Smrg$as_echo_n "checking for objdir... " >&6; } 13844aee7dae4Smrgif ${lt_cv_objdir+:} false; then : 13845aee7dae4Smrg $as_echo_n "(cached) " >&6 13846aee7dae4Smrgelse 13847aee7dae4Smrg rm -f .libs 2>/dev/null 13848aee7dae4Smrgmkdir .libs 2>/dev/null 13849aee7dae4Smrgif test -d .libs; then 13850aee7dae4Smrg lt_cv_objdir=.libs 13851aee7dae4Smrgelse 13852aee7dae4Smrg # MS-DOS does not allow filenames that begin with a dot. 13853aee7dae4Smrg lt_cv_objdir=_libs 13854aee7dae4Smrgfi 13855aee7dae4Smrgrmdir .libs 2>/dev/null 13856aee7dae4Smrgfi 13857aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 13858aee7dae4Smrg$as_echo "$lt_cv_objdir" >&6; } 13859aee7dae4Smrgobjdir=$lt_cv_objdir 13860ba0eab60Smacallan 13861ba0eab60Smacallan 13862ba0eab60Smacallan 13863ba0eab60Smacallan 13864ba0eab60Smacallan 13865aee7dae4Smrgcat >>confdefs.h <<_ACEOF 13866aee7dae4Smrg#define LT_OBJDIR "$lt_cv_objdir/" 13867aee7dae4Smrg_ACEOF 13868ba0eab60Smacallan 13869ba0eab60Smacallan 13870ba0eab60Smacallan 13871ba0eab60Smacallan 13872aee7dae4Smrgcase $host_os in 13873aee7dae4Smrgaix3*) 13874aee7dae4Smrg # AIX sometimes has problems with the GCC collect2 program. For some 13875aee7dae4Smrg # reason, if we set the COLLECT_NAMES environment variable, the problems 13876aee7dae4Smrg # vanish in a puff of smoke. 13877aee7dae4Smrg if test "X${COLLECT_NAMES+set}" != Xset; then 13878aee7dae4Smrg COLLECT_NAMES= 13879aee7dae4Smrg export COLLECT_NAMES 13880aee7dae4Smrg fi 13881aee7dae4Smrg ;; 13882aee7dae4Smrgesac 13883ba0eab60Smacallan 13884aee7dae4Smrg# Global variables: 13885aee7dae4Smrgofile=libtool 13886aee7dae4Smrgcan_build_shared=yes 13887ba0eab60Smacallan 13888aee7dae4Smrg# All known linkers require a `.a' archive for static linking (except MSVC, 13889aee7dae4Smrg# which needs '.lib'). 13890aee7dae4Smrglibext=a 13891ba0eab60Smacallan 13892aee7dae4Smrgwith_gnu_ld="$lt_cv_prog_gnu_ld" 13893ba0eab60Smacallan 13894aee7dae4Smrgold_CC="$CC" 13895aee7dae4Smrgold_CFLAGS="$CFLAGS" 13896ba0eab60Smacallan 13897aee7dae4Smrg# Set sane defaults for various variables 13898aee7dae4Smrgtest -z "$CC" && CC=cc 13899aee7dae4Smrgtest -z "$LTCC" && LTCC=$CC 13900aee7dae4Smrgtest -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 13901aee7dae4Smrgtest -z "$LD" && LD=ld 13902aee7dae4Smrgtest -z "$ac_objext" && ac_objext=o 13903ba0eab60Smacallan 13904aee7dae4Smrgfor cc_temp in $compiler""; do 13905aee7dae4Smrg case $cc_temp in 13906aee7dae4Smrg compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13907aee7dae4Smrg distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13908aee7dae4Smrg \-*) ;; 13909aee7dae4Smrg *) break;; 13910aee7dae4Smrg esac 13911aee7dae4Smrgdone 13912aee7dae4Smrgcc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 13913ba0eab60Smacallan 13914ba0eab60Smacallan 13915aee7dae4Smrg# Only perform the check for file, if the check method requires it 13916aee7dae4Smrgtest -z "$MAGIC_CMD" && MAGIC_CMD=file 13917aee7dae4Smrgcase $deplibs_check_method in 13918aee7dae4Smrgfile_magic*) 13919aee7dae4Smrg if test "$file_magic_cmd" = '$MAGIC_CMD'; then 13920aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 13921aee7dae4Smrg$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 13922aee7dae4Smrgif ${lt_cv_path_MAGIC_CMD+:} false; then : 13923aee7dae4Smrg $as_echo_n "(cached) " >&6 13924aee7dae4Smrgelse 13925aee7dae4Smrg case $MAGIC_CMD in 13926aee7dae4Smrg[\\/*] | ?:[\\/]*) 13927aee7dae4Smrg lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 13928aee7dae4Smrg ;; 13929aee7dae4Smrg*) 13930aee7dae4Smrg lt_save_MAGIC_CMD="$MAGIC_CMD" 13931aee7dae4Smrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 13932aee7dae4Smrg ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 13933aee7dae4Smrg for ac_dir in $ac_dummy; do 13934aee7dae4Smrg IFS="$lt_save_ifs" 13935aee7dae4Smrg test -z "$ac_dir" && ac_dir=. 13936aee7dae4Smrg if test -f $ac_dir/${ac_tool_prefix}file; then 13937aee7dae4Smrg lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 13938aee7dae4Smrg if test -n "$file_magic_test_file"; then 13939aee7dae4Smrg case $deplibs_check_method in 13940aee7dae4Smrg "file_magic "*) 13941aee7dae4Smrg file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 13942aee7dae4Smrg MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 13943aee7dae4Smrg if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 13944aee7dae4Smrg $EGREP "$file_magic_regex" > /dev/null; then 13945aee7dae4Smrg : 13946aee7dae4Smrg else 13947aee7dae4Smrg cat <<_LT_EOF 1>&2 13948ba0eab60Smacallan 13949aee7dae4Smrg*** Warning: the command libtool uses to detect shared libraries, 13950aee7dae4Smrg*** $file_magic_cmd, produces output that libtool cannot recognize. 13951aee7dae4Smrg*** The result is that libtool may fail to recognize shared libraries 13952aee7dae4Smrg*** as such. This will affect the creation of libtool libraries that 13953aee7dae4Smrg*** depend on shared libraries, but programs linked with such libtool 13954aee7dae4Smrg*** libraries will work regardless of this problem. Nevertheless, you 13955aee7dae4Smrg*** may want to report the problem to your system manager and/or to 13956aee7dae4Smrg*** bug-libtool@gnu.org 13957ba0eab60Smacallan 13958aee7dae4Smrg_LT_EOF 13959aee7dae4Smrg fi ;; 13960aee7dae4Smrg esac 13961aee7dae4Smrg fi 13962aee7dae4Smrg break 13963aee7dae4Smrg fi 13964aee7dae4Smrg done 13965aee7dae4Smrg IFS="$lt_save_ifs" 13966aee7dae4Smrg MAGIC_CMD="$lt_save_MAGIC_CMD" 13967aee7dae4Smrg ;; 13968aee7dae4Smrgesac 13969aee7dae4Smrgfi 13970ba0eab60Smacallan 13971aee7dae4SmrgMAGIC_CMD="$lt_cv_path_MAGIC_CMD" 13972aee7dae4Smrgif test -n "$MAGIC_CMD"; then 13973aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 13974aee7dae4Smrg$as_echo "$MAGIC_CMD" >&6; } 13975aee7dae4Smrgelse 13976aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13977aee7dae4Smrg$as_echo "no" >&6; } 13978aee7dae4Smrgfi 13979ba0eab60Smacallan 13980ba0eab60Smacallan 13981ba0eab60Smacallan 13982ba0eab60Smacallan 13983ba0eab60Smacallan 13984aee7dae4Smrgif test -z "$lt_cv_path_MAGIC_CMD"; then 13985aee7dae4Smrg if test -n "$ac_tool_prefix"; then 13986aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 13987aee7dae4Smrg$as_echo_n "checking for file... " >&6; } 13988aee7dae4Smrgif ${lt_cv_path_MAGIC_CMD+:} false; then : 13989aee7dae4Smrg $as_echo_n "(cached) " >&6 13990aee7dae4Smrgelse 13991aee7dae4Smrg case $MAGIC_CMD in 13992aee7dae4Smrg[\\/*] | ?:[\\/]*) 13993aee7dae4Smrg lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 13994aee7dae4Smrg ;; 13995aee7dae4Smrg*) 13996aee7dae4Smrg lt_save_MAGIC_CMD="$MAGIC_CMD" 13997aee7dae4Smrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 13998aee7dae4Smrg ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 13999aee7dae4Smrg for ac_dir in $ac_dummy; do 14000aee7dae4Smrg IFS="$lt_save_ifs" 14001aee7dae4Smrg test -z "$ac_dir" && ac_dir=. 14002aee7dae4Smrg if test -f $ac_dir/file; then 14003aee7dae4Smrg lt_cv_path_MAGIC_CMD="$ac_dir/file" 14004aee7dae4Smrg if test -n "$file_magic_test_file"; then 14005aee7dae4Smrg case $deplibs_check_method in 14006aee7dae4Smrg "file_magic "*) 14007aee7dae4Smrg file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 14008aee7dae4Smrg MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 14009aee7dae4Smrg if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 14010aee7dae4Smrg $EGREP "$file_magic_regex" > /dev/null; then 14011aee7dae4Smrg : 14012aee7dae4Smrg else 14013aee7dae4Smrg cat <<_LT_EOF 1>&2 14014ba0eab60Smacallan 14015aee7dae4Smrg*** Warning: the command libtool uses to detect shared libraries, 14016aee7dae4Smrg*** $file_magic_cmd, produces output that libtool cannot recognize. 14017aee7dae4Smrg*** The result is that libtool may fail to recognize shared libraries 14018aee7dae4Smrg*** as such. This will affect the creation of libtool libraries that 14019aee7dae4Smrg*** depend on shared libraries, but programs linked with such libtool 14020aee7dae4Smrg*** libraries will work regardless of this problem. Nevertheless, you 14021aee7dae4Smrg*** may want to report the problem to your system manager and/or to 14022aee7dae4Smrg*** bug-libtool@gnu.org 14023ba0eab60Smacallan 14024aee7dae4Smrg_LT_EOF 14025aee7dae4Smrg fi ;; 14026aee7dae4Smrg esac 14027aee7dae4Smrg fi 14028aee7dae4Smrg break 14029aee7dae4Smrg fi 14030aee7dae4Smrg done 14031aee7dae4Smrg IFS="$lt_save_ifs" 14032aee7dae4Smrg MAGIC_CMD="$lt_save_MAGIC_CMD" 14033aee7dae4Smrg ;; 14034aee7dae4Smrgesac 14035aee7dae4Smrgfi 14036ba0eab60Smacallan 14037aee7dae4SmrgMAGIC_CMD="$lt_cv_path_MAGIC_CMD" 14038aee7dae4Smrgif test -n "$MAGIC_CMD"; then 14039aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 14040aee7dae4Smrg$as_echo "$MAGIC_CMD" >&6; } 14041aee7dae4Smrgelse 14042aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14043aee7dae4Smrg$as_echo "no" >&6; } 14044aee7dae4Smrgfi 14045ba0eab60Smacallan 14046ba0eab60Smacallan 14047aee7dae4Smrg else 14048aee7dae4Smrg MAGIC_CMD=: 14049ba0eab60Smacallan fi 14050ba0eab60Smacallanfi 14051ba0eab60Smacallan 14052aee7dae4Smrg fi 14053aee7dae4Smrg ;; 14054aee7dae4Smrgesac 14055aee7dae4Smrg 14056aee7dae4Smrg# Use C for the default configuration in the libtool script 14057ba0eab60Smacallan 14058aee7dae4Smrglt_save_CC="$CC" 14059ba0eab60Smacallanac_ext=c 14060ba0eab60Smacallanac_cpp='$CPP $CPPFLAGS' 14061ba0eab60Smacallanac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14062ba0eab60Smacallanac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14063ba0eab60Smacallanac_compiler_gnu=$ac_cv_c_compiler_gnu 14064ba0eab60Smacallan 14065ba0eab60Smacallan 14066aee7dae4Smrg# Source file extension for C test sources. 14067aee7dae4Smrgac_ext=c 14068ba0eab60Smacallan 14069aee7dae4Smrg# Object file extension for compiled C test sources. 14070aee7dae4Smrgobjext=o 14071aee7dae4Smrgobjext=$objext 14072ba0eab60Smacallan 14073aee7dae4Smrg# Code to be used in simple compile tests 14074aee7dae4Smrglt_simple_compile_test_code="int some_variable = 0;" 14075aee7dae4Smrg 14076aee7dae4Smrg# Code to be used in simple link tests 14077aee7dae4Smrglt_simple_link_test_code='int main(){return(0);}' 14078ba0eab60Smacallan 14079ba0eab60Smacallan 14080ba0eab60Smacallan 14081ba0eab60Smacallan 14082ba0eab60Smacallan 14083ba0eab60Smacallan 14084ba0eab60Smacallan 14085ba0eab60Smacallan# If no C compiler was specified, use CC. 14086ba0eab60SmacallanLTCC=${LTCC-"$CC"} 14087ba0eab60Smacallan 14088ba0eab60Smacallan# If no C compiler flags were specified, use CFLAGS. 14089ba0eab60SmacallanLTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14090ba0eab60Smacallan 14091ba0eab60Smacallan# Allow CC to be a program name with arguments. 14092ba0eab60Smacallancompiler=$CC 14093ba0eab60Smacallan 14094aee7dae4Smrg# Save the default compiler, since it gets overwritten when the other 14095aee7dae4Smrg# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 14096aee7dae4Smrgcompiler_DEFAULT=$CC 14097ba0eab60Smacallan 14098ba0eab60Smacallan# save warnings/boilerplate of simple test code 14099ba0eab60Smacallanac_outfile=conftest.$ac_objext 14100aee7dae4Smrgecho "$lt_simple_compile_test_code" >conftest.$ac_ext 14101ba0eab60Smacallaneval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14102ba0eab60Smacallan_lt_compiler_boilerplate=`cat conftest.err` 14103aee7dae4Smrg$RM conftest* 14104ba0eab60Smacallan 14105ba0eab60Smacallanac_outfile=conftest.$ac_objext 14106aee7dae4Smrgecho "$lt_simple_link_test_code" >conftest.$ac_ext 14107ba0eab60Smacallaneval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14108ba0eab60Smacallan_lt_linker_boilerplate=`cat conftest.err` 14109aee7dae4Smrg$RM -r conftest* 14110ba0eab60Smacallan 14111ba0eab60Smacallan 14112aee7dae4Smrgif test -n "$compiler"; then 14113ba0eab60Smacallan 14114aee7dae4Smrglt_prog_compiler_no_builtin_flag= 14115ba0eab60Smacallan 14116ba0eab60Smacallanif test "$GCC" = yes; then 14117aee7dae4Smrg case $cc_basename in 14118aee7dae4Smrg nvcc*) 14119aee7dae4Smrg lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 14120aee7dae4Smrg *) 14121aee7dae4Smrg lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 14122aee7dae4Smrg esac 14123ba0eab60Smacallan 14124aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 14125aee7dae4Smrg$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 14126aee7dae4Smrgif ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 14127aee7dae4Smrg $as_echo_n "(cached) " >&6 14128ba0eab60Smacallanelse 14129ba0eab60Smacallan lt_cv_prog_compiler_rtti_exceptions=no 14130aee7dae4Smrg ac_outfile=conftest.$ac_objext 14131aee7dae4Smrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14132ba0eab60Smacallan lt_compiler_flag="-fno-rtti -fno-exceptions" 14133ba0eab60Smacallan # Insert the option either (1) after the last *FLAGS variable, or 14134ba0eab60Smacallan # (2) before a word containing "conftest.", or (3) at the end. 14135ba0eab60Smacallan # Note that $ac_compile itself does not contain backslashes and begins 14136ba0eab60Smacallan # with a dollar sign (not a hyphen), so the echo should work correctly. 14137ba0eab60Smacallan # The option is referenced via a variable to avoid confusing sed. 14138ba0eab60Smacallan lt_compile=`echo "$ac_compile" | $SED \ 14139ba0eab60Smacallan -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14140ba0eab60Smacallan -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14141ba0eab60Smacallan -e 's:$: $lt_compiler_flag:'` 14142aee7dae4Smrg (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14143ba0eab60Smacallan (eval "$lt_compile" 2>conftest.err) 14144ba0eab60Smacallan ac_status=$? 14145ba0eab60Smacallan cat conftest.err >&5 14146aee7dae4Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 14147ba0eab60Smacallan if (exit $ac_status) && test -s "$ac_outfile"; then 14148ba0eab60Smacallan # The compiler can only warn and ignore the option if not recognized 14149ba0eab60Smacallan # So say no if there are warnings other than the usual output. 14150aee7dae4Smrg $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14151ba0eab60Smacallan $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14152ba0eab60Smacallan if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14153ba0eab60Smacallan lt_cv_prog_compiler_rtti_exceptions=yes 14154ba0eab60Smacallan fi 14155ba0eab60Smacallan fi 14156aee7dae4Smrg $RM conftest* 14157ba0eab60Smacallan 14158ba0eab60Smacallanfi 14159aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 14160aee7dae4Smrg$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 14161ba0eab60Smacallan 14162ba0eab60Smacallanif test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 14163aee7dae4Smrg lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 14164ba0eab60Smacallanelse 14165ba0eab60Smacallan : 14166ba0eab60Smacallanfi 14167ba0eab60Smacallan 14168ba0eab60Smacallanfi 14169ba0eab60Smacallan 14170ba0eab60Smacallan 14171aee7dae4Smrg 14172aee7dae4Smrg 14173aee7dae4Smrg 14174aee7dae4Smrg 14175aee7dae4Smrg lt_prog_compiler_wl= 14176aee7dae4Smrglt_prog_compiler_pic= 14177aee7dae4Smrglt_prog_compiler_static= 14178aee7dae4Smrg 14179ba0eab60Smacallan 14180ba0eab60Smacallan if test "$GCC" = yes; then 14181aee7dae4Smrg lt_prog_compiler_wl='-Wl,' 14182aee7dae4Smrg lt_prog_compiler_static='-static' 14183ba0eab60Smacallan 14184ba0eab60Smacallan case $host_os in 14185ba0eab60Smacallan aix*) 14186ba0eab60Smacallan # All AIX code is PIC. 14187ba0eab60Smacallan if test "$host_cpu" = ia64; then 14188ba0eab60Smacallan # AIX 5 now supports IA64 processor 14189aee7dae4Smrg lt_prog_compiler_static='-Bstatic' 14190ba0eab60Smacallan fi 14191ba0eab60Smacallan ;; 14192ba0eab60Smacallan 14193ba0eab60Smacallan amigaos*) 14194aee7dae4Smrg case $host_cpu in 14195aee7dae4Smrg powerpc) 14196aee7dae4Smrg # see comment about AmigaOS4 .so support 14197aee7dae4Smrg lt_prog_compiler_pic='-fPIC' 14198aee7dae4Smrg ;; 14199aee7dae4Smrg m68k) 14200aee7dae4Smrg # FIXME: we need at least 68020 code to build shared libraries, but 14201aee7dae4Smrg # adding the `-m68020' flag to GCC prevents building anything better, 14202aee7dae4Smrg # like `-m68040'. 14203aee7dae4Smrg lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 14204aee7dae4Smrg ;; 14205aee7dae4Smrg esac 14206ba0eab60Smacallan ;; 14207ba0eab60Smacallan 14208aee7dae4Smrg beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14209ba0eab60Smacallan # PIC is the default for these OSes. 14210ba0eab60Smacallan ;; 14211ba0eab60Smacallan 14212aee7dae4Smrg mingw* | cygwin* | pw32* | os2* | cegcc*) 14213ba0eab60Smacallan # This hack is so that the source file can tell whether it is being 14214ba0eab60Smacallan # built for inclusion in a dll (and should export symbols for example). 14215aee7dae4Smrg # Although the cygwin gcc ignores -fPIC, still need this for old-style 14216aee7dae4Smrg # (--disable-auto-import) libraries 14217aee7dae4Smrg lt_prog_compiler_pic='-DDLL_EXPORT' 14218ba0eab60Smacallan ;; 14219ba0eab60Smacallan 14220ba0eab60Smacallan darwin* | rhapsody*) 14221ba0eab60Smacallan # PIC is the default on this platform 14222ba0eab60Smacallan # Common symbols not allowed in MH_DYLIB files 14223aee7dae4Smrg lt_prog_compiler_pic='-fno-common' 14224aee7dae4Smrg ;; 14225aee7dae4Smrg 14226aee7dae4Smrg haiku*) 14227aee7dae4Smrg # PIC is the default for Haiku. 14228aee7dae4Smrg # The "-static" flag exists, but is broken. 14229aee7dae4Smrg lt_prog_compiler_static= 14230aee7dae4Smrg ;; 14231aee7dae4Smrg 14232aee7dae4Smrg hpux*) 14233aee7dae4Smrg # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14234aee7dae4Smrg # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14235aee7dae4Smrg # sets the default TLS model and affects inlining. 14236aee7dae4Smrg case $host_cpu in 14237aee7dae4Smrg hppa*64*) 14238aee7dae4Smrg # +Z the default 14239aee7dae4Smrg ;; 14240aee7dae4Smrg *) 14241aee7dae4Smrg lt_prog_compiler_pic='-fPIC' 14242aee7dae4Smrg ;; 14243aee7dae4Smrg esac 14244ba0eab60Smacallan ;; 14245ba0eab60Smacallan 14246aee7dae4Smrg interix[3-9]*) 14247ba0eab60Smacallan # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14248ba0eab60Smacallan # Instead, we relocate shared libraries at runtime. 14249ba0eab60Smacallan ;; 14250ba0eab60Smacallan 14251ba0eab60Smacallan msdosdjgpp*) 14252ba0eab60Smacallan # Just because we use GCC doesn't mean we suddenly get shared libraries 14253ba0eab60Smacallan # on systems that don't support them. 14254aee7dae4Smrg lt_prog_compiler_can_build_shared=no 14255ba0eab60Smacallan enable_shared=no 14256ba0eab60Smacallan ;; 14257ba0eab60Smacallan 14258aee7dae4Smrg *nto* | *qnx*) 14259aee7dae4Smrg # QNX uses GNU C++, but need to define -shared option too, otherwise 14260aee7dae4Smrg # it will coredump. 14261aee7dae4Smrg lt_prog_compiler_pic='-fPIC -shared' 14262aee7dae4Smrg ;; 14263aee7dae4Smrg 14264ba0eab60Smacallan sysv4*MP*) 14265ba0eab60Smacallan if test -d /usr/nec; then 14266aee7dae4Smrg lt_prog_compiler_pic=-Kconform_pic 14267ba0eab60Smacallan fi 14268ba0eab60Smacallan ;; 14269ba0eab60Smacallan 14270aee7dae4Smrg *) 14271aee7dae4Smrg lt_prog_compiler_pic='-fPIC' 14272ba0eab60Smacallan ;; 14273aee7dae4Smrg esac 14274ba0eab60Smacallan 14275aee7dae4Smrg case $cc_basename in 14276aee7dae4Smrg nvcc*) # Cuda Compiler Driver 2.2 14277aee7dae4Smrg lt_prog_compiler_wl='-Xlinker ' 14278aee7dae4Smrg if test -n "$lt_prog_compiler_pic"; then 14279aee7dae4Smrg lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 14280aee7dae4Smrg fi 14281ba0eab60Smacallan ;; 14282ba0eab60Smacallan esac 14283ba0eab60Smacallan else 14284ba0eab60Smacallan # PORTME Check for flag to pass linker flags through the system compiler. 14285ba0eab60Smacallan case $host_os in 14286ba0eab60Smacallan aix*) 14287aee7dae4Smrg lt_prog_compiler_wl='-Wl,' 14288ba0eab60Smacallan if test "$host_cpu" = ia64; then 14289ba0eab60Smacallan # AIX 5 now supports IA64 processor 14290aee7dae4Smrg lt_prog_compiler_static='-Bstatic' 14291ba0eab60Smacallan else 14292aee7dae4Smrg lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 14293ba0eab60Smacallan fi 14294ba0eab60Smacallan ;; 14295ba0eab60Smacallan 14296aee7dae4Smrg mingw* | cygwin* | pw32* | os2* | cegcc*) 14297ba0eab60Smacallan # This hack is so that the source file can tell whether it is being 14298ba0eab60Smacallan # built for inclusion in a dll (and should export symbols for example). 14299aee7dae4Smrg lt_prog_compiler_pic='-DDLL_EXPORT' 14300ba0eab60Smacallan ;; 14301ba0eab60Smacallan 14302ba0eab60Smacallan hpux9* | hpux10* | hpux11*) 14303aee7dae4Smrg lt_prog_compiler_wl='-Wl,' 14304ba0eab60Smacallan # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14305ba0eab60Smacallan # not for PA HP-UX. 14306ba0eab60Smacallan case $host_cpu in 14307ba0eab60Smacallan hppa*64*|ia64*) 14308ba0eab60Smacallan # +Z the default 14309ba0eab60Smacallan ;; 14310ba0eab60Smacallan *) 14311aee7dae4Smrg lt_prog_compiler_pic='+Z' 14312ba0eab60Smacallan ;; 14313ba0eab60Smacallan esac 14314ba0eab60Smacallan # Is there a better lt_prog_compiler_static that works with the bundled CC? 14315aee7dae4Smrg lt_prog_compiler_static='${wl}-a ${wl}archive' 14316ba0eab60Smacallan ;; 14317ba0eab60Smacallan 14318ba0eab60Smacallan irix5* | irix6* | nonstopux*) 14319aee7dae4Smrg lt_prog_compiler_wl='-Wl,' 14320ba0eab60Smacallan # PIC (with -KPIC) is the default. 14321aee7dae4Smrg lt_prog_compiler_static='-non_shared' 14322ba0eab60Smacallan ;; 14323ba0eab60Smacallan 14324aee7dae4Smrg linux* | k*bsd*-gnu | kopensolaris*-gnu) 14325ba0eab60Smacallan case $cc_basename in 14326aee7dae4Smrg # old Intel for x86_64 which still supported -KPIC. 14327aee7dae4Smrg ecc*) 14328aee7dae4Smrg lt_prog_compiler_wl='-Wl,' 14329aee7dae4Smrg lt_prog_compiler_pic='-KPIC' 14330aee7dae4Smrg lt_prog_compiler_static='-static' 14331aee7dae4Smrg ;; 14332aee7dae4Smrg # icc used to be incompatible with GCC. 14333aee7dae4Smrg # ICC 10 doesn't accept -KPIC any more. 14334aee7dae4Smrg icc* | ifort*) 14335aee7dae4Smrg lt_prog_compiler_wl='-Wl,' 14336aee7dae4Smrg lt_prog_compiler_pic='-fPIC' 14337aee7dae4Smrg lt_prog_compiler_static='-static' 14338ba0eab60Smacallan ;; 14339aee7dae4Smrg # Lahey Fortran 8.1. 14340aee7dae4Smrg lf95*) 14341aee7dae4Smrg lt_prog_compiler_wl='-Wl,' 14342aee7dae4Smrg lt_prog_compiler_pic='--shared' 14343aee7dae4Smrg lt_prog_compiler_static='--static' 14344aee7dae4Smrg ;; 14345aee7dae4Smrg nagfor*) 14346aee7dae4Smrg # NAG Fortran compiler 14347aee7dae4Smrg lt_prog_compiler_wl='-Wl,-Wl,,' 14348aee7dae4Smrg lt_prog_compiler_pic='-PIC' 14349aee7dae4Smrg lt_prog_compiler_static='-Bstatic' 14350aee7dae4Smrg ;; 14351aee7dae4Smrg pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 14352ba0eab60Smacallan # Portland Group compilers (*not* the Pentium gcc compiler, 14353ba0eab60Smacallan # which looks to be a dead project) 14354aee7dae4Smrg lt_prog_compiler_wl='-Wl,' 14355aee7dae4Smrg lt_prog_compiler_pic='-fpic' 14356aee7dae4Smrg lt_prog_compiler_static='-Bstatic' 14357ba0eab60Smacallan ;; 14358ba0eab60Smacallan ccc*) 14359aee7dae4Smrg lt_prog_compiler_wl='-Wl,' 14360ba0eab60Smacallan # All Alpha code is PIC. 14361aee7dae4Smrg lt_prog_compiler_static='-non_shared' 14362ba0eab60Smacallan ;; 14363aee7dae4Smrg xl* | bgxl* | bgf* | mpixl*) 14364aee7dae4Smrg # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 14365aee7dae4Smrg lt_prog_compiler_wl='-Wl,' 14366aee7dae4Smrg lt_prog_compiler_pic='-qpic' 14367aee7dae4Smrg lt_prog_compiler_static='-qstaticlink' 14368aee7dae4Smrg ;; 14369aee7dae4Smrg *) 14370aee7dae4Smrg case `$CC -V 2>&1 | sed 5q` in 14371aee7dae4Smrg *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 14372aee7dae4Smrg # Sun Fortran 8.3 passes all unrecognized flags to the linker 14373aee7dae4Smrg lt_prog_compiler_pic='-KPIC' 14374aee7dae4Smrg lt_prog_compiler_static='-Bstatic' 14375aee7dae4Smrg lt_prog_compiler_wl='' 14376aee7dae4Smrg ;; 14377aee7dae4Smrg *Sun\ F* | *Sun*Fortran*) 14378aee7dae4Smrg lt_prog_compiler_pic='-KPIC' 14379aee7dae4Smrg lt_prog_compiler_static='-Bstatic' 14380aee7dae4Smrg lt_prog_compiler_wl='-Qoption ld ' 14381aee7dae4Smrg ;; 14382aee7dae4Smrg *Sun\ C*) 14383aee7dae4Smrg # Sun C 5.9 14384aee7dae4Smrg lt_prog_compiler_pic='-KPIC' 14385aee7dae4Smrg lt_prog_compiler_static='-Bstatic' 14386aee7dae4Smrg lt_prog_compiler_wl='-Wl,' 14387aee7dae4Smrg ;; 14388aee7dae4Smrg *Intel*\ [CF]*Compiler*) 14389aee7dae4Smrg lt_prog_compiler_wl='-Wl,' 14390aee7dae4Smrg lt_prog_compiler_pic='-fPIC' 14391aee7dae4Smrg lt_prog_compiler_static='-static' 14392aee7dae4Smrg ;; 14393aee7dae4Smrg *Portland\ Group*) 14394aee7dae4Smrg lt_prog_compiler_wl='-Wl,' 14395aee7dae4Smrg lt_prog_compiler_pic='-fpic' 14396aee7dae4Smrg lt_prog_compiler_static='-Bstatic' 14397aee7dae4Smrg ;; 14398aee7dae4Smrg esac 14399aee7dae4Smrg ;; 14400ba0eab60Smacallan esac 14401ba0eab60Smacallan ;; 14402ba0eab60Smacallan 14403aee7dae4Smrg newsos6) 14404aee7dae4Smrg lt_prog_compiler_pic='-KPIC' 14405aee7dae4Smrg lt_prog_compiler_static='-Bstatic' 14406aee7dae4Smrg ;; 14407aee7dae4Smrg 14408aee7dae4Smrg *nto* | *qnx*) 14409aee7dae4Smrg # QNX uses GNU C++, but need to define -shared option too, otherwise 14410aee7dae4Smrg # it will coredump. 14411aee7dae4Smrg lt_prog_compiler_pic='-fPIC -shared' 14412aee7dae4Smrg ;; 14413aee7dae4Smrg 14414ba0eab60Smacallan osf3* | osf4* | osf5*) 14415aee7dae4Smrg lt_prog_compiler_wl='-Wl,' 14416ba0eab60Smacallan # All OSF/1 code is PIC. 14417aee7dae4Smrg lt_prog_compiler_static='-non_shared' 14418aee7dae4Smrg ;; 14419aee7dae4Smrg 14420aee7dae4Smrg rdos*) 14421aee7dae4Smrg lt_prog_compiler_static='-non_shared' 14422ba0eab60Smacallan ;; 14423ba0eab60Smacallan 14424ba0eab60Smacallan solaris*) 14425aee7dae4Smrg lt_prog_compiler_pic='-KPIC' 14426aee7dae4Smrg lt_prog_compiler_static='-Bstatic' 14427ba0eab60Smacallan case $cc_basename in 14428aee7dae4Smrg f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 14429aee7dae4Smrg lt_prog_compiler_wl='-Qoption ld ';; 14430ba0eab60Smacallan *) 14431aee7dae4Smrg lt_prog_compiler_wl='-Wl,';; 14432ba0eab60Smacallan esac 14433ba0eab60Smacallan ;; 14434ba0eab60Smacallan 14435ba0eab60Smacallan sunos4*) 14436aee7dae4Smrg lt_prog_compiler_wl='-Qoption ld ' 14437aee7dae4Smrg lt_prog_compiler_pic='-PIC' 14438aee7dae4Smrg lt_prog_compiler_static='-Bstatic' 14439ba0eab60Smacallan ;; 14440ba0eab60Smacallan 14441ba0eab60Smacallan sysv4 | sysv4.2uw2* | sysv4.3*) 14442aee7dae4Smrg lt_prog_compiler_wl='-Wl,' 14443aee7dae4Smrg lt_prog_compiler_pic='-KPIC' 14444aee7dae4Smrg lt_prog_compiler_static='-Bstatic' 14445ba0eab60Smacallan ;; 14446ba0eab60Smacallan 14447ba0eab60Smacallan sysv4*MP*) 14448ba0eab60Smacallan if test -d /usr/nec ;then 14449aee7dae4Smrg lt_prog_compiler_pic='-Kconform_pic' 14450aee7dae4Smrg lt_prog_compiler_static='-Bstatic' 14451ba0eab60Smacallan fi 14452ba0eab60Smacallan ;; 14453ba0eab60Smacallan 14454ba0eab60Smacallan sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14455aee7dae4Smrg lt_prog_compiler_wl='-Wl,' 14456aee7dae4Smrg lt_prog_compiler_pic='-KPIC' 14457aee7dae4Smrg lt_prog_compiler_static='-Bstatic' 14458ba0eab60Smacallan ;; 14459ba0eab60Smacallan 14460ba0eab60Smacallan unicos*) 14461aee7dae4Smrg lt_prog_compiler_wl='-Wl,' 14462aee7dae4Smrg lt_prog_compiler_can_build_shared=no 14463ba0eab60Smacallan ;; 14464ba0eab60Smacallan 14465ba0eab60Smacallan uts4*) 14466aee7dae4Smrg lt_prog_compiler_pic='-pic' 14467aee7dae4Smrg lt_prog_compiler_static='-Bstatic' 14468ba0eab60Smacallan ;; 14469ba0eab60Smacallan 14470ba0eab60Smacallan *) 14471aee7dae4Smrg lt_prog_compiler_can_build_shared=no 14472ba0eab60Smacallan ;; 14473ba0eab60Smacallan esac 14474ba0eab60Smacallan fi 14475ba0eab60Smacallan 14476aee7dae4Smrgcase $host_os in 14477aee7dae4Smrg # For platforms which do not support PIC, -DPIC is meaningless: 14478aee7dae4Smrg *djgpp*) 14479aee7dae4Smrg lt_prog_compiler_pic= 14480aee7dae4Smrg ;; 14481aee7dae4Smrg *) 14482aee7dae4Smrg lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 14483aee7dae4Smrg ;; 14484aee7dae4Smrgesac 14485aee7dae4Smrg 14486aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 14487aee7dae4Smrg$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14488aee7dae4Smrgif ${lt_cv_prog_compiler_pic+:} false; then : 14489aee7dae4Smrg $as_echo_n "(cached) " >&6 14490aee7dae4Smrgelse 14491aee7dae4Smrg lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 14492aee7dae4Smrgfi 14493aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 14494aee7dae4Smrg$as_echo "$lt_cv_prog_compiler_pic" >&6; } 14495aee7dae4Smrglt_prog_compiler_pic=$lt_cv_prog_compiler_pic 14496ba0eab60Smacallan 14497ba0eab60Smacallan# 14498ba0eab60Smacallan# Check to make sure the PIC flag actually works. 14499ba0eab60Smacallan# 14500aee7dae4Smrgif test -n "$lt_prog_compiler_pic"; then 14501aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 14502aee7dae4Smrg$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 14503aee7dae4Smrgif ${lt_cv_prog_compiler_pic_works+:} false; then : 14504aee7dae4Smrg $as_echo_n "(cached) " >&6 14505aee7dae4Smrgelse 14506aee7dae4Smrg lt_cv_prog_compiler_pic_works=no 14507aee7dae4Smrg ac_outfile=conftest.$ac_objext 14508aee7dae4Smrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14509aee7dae4Smrg lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 14510ba0eab60Smacallan # Insert the option either (1) after the last *FLAGS variable, or 14511ba0eab60Smacallan # (2) before a word containing "conftest.", or (3) at the end. 14512ba0eab60Smacallan # Note that $ac_compile itself does not contain backslashes and begins 14513ba0eab60Smacallan # with a dollar sign (not a hyphen), so the echo should work correctly. 14514ba0eab60Smacallan # The option is referenced via a variable to avoid confusing sed. 14515ba0eab60Smacallan lt_compile=`echo "$ac_compile" | $SED \ 14516ba0eab60Smacallan -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14517ba0eab60Smacallan -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14518ba0eab60Smacallan -e 's:$: $lt_compiler_flag:'` 14519aee7dae4Smrg (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14520ba0eab60Smacallan (eval "$lt_compile" 2>conftest.err) 14521ba0eab60Smacallan ac_status=$? 14522ba0eab60Smacallan cat conftest.err >&5 14523aee7dae4Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 14524ba0eab60Smacallan if (exit $ac_status) && test -s "$ac_outfile"; then 14525ba0eab60Smacallan # The compiler can only warn and ignore the option if not recognized 14526ba0eab60Smacallan # So say no if there are warnings other than the usual output. 14527aee7dae4Smrg $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14528ba0eab60Smacallan $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14529ba0eab60Smacallan if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14530aee7dae4Smrg lt_cv_prog_compiler_pic_works=yes 14531aee7dae4Smrg fi 14532aee7dae4Smrg fi 14533aee7dae4Smrg $RM conftest* 14534aee7dae4Smrg 14535aee7dae4Smrgfi 14536aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 14537aee7dae4Smrg$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 14538aee7dae4Smrg 14539aee7dae4Smrgif test x"$lt_cv_prog_compiler_pic_works" = xyes; then 14540aee7dae4Smrg case $lt_prog_compiler_pic in 14541aee7dae4Smrg "" | " "*) ;; 14542aee7dae4Smrg *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 14543aee7dae4Smrg esac 14544aee7dae4Smrgelse 14545aee7dae4Smrg lt_prog_compiler_pic= 14546aee7dae4Smrg lt_prog_compiler_can_build_shared=no 14547aee7dae4Smrgfi 14548aee7dae4Smrg 14549aee7dae4Smrgfi 14550aee7dae4Smrg 14551aee7dae4Smrg 14552aee7dae4Smrg 14553aee7dae4Smrg 14554aee7dae4Smrg 14555aee7dae4Smrg 14556aee7dae4Smrg 14557aee7dae4Smrg 14558aee7dae4Smrg 14559aee7dae4Smrg 14560aee7dae4Smrg 14561aee7dae4Smrg# 14562aee7dae4Smrg# Check to make sure the static flag actually works. 14563aee7dae4Smrg# 14564aee7dae4Smrgwl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 14565aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14566aee7dae4Smrg$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14567aee7dae4Smrgif ${lt_cv_prog_compiler_static_works+:} false; then : 14568aee7dae4Smrg $as_echo_n "(cached) " >&6 14569aee7dae4Smrgelse 14570aee7dae4Smrg lt_cv_prog_compiler_static_works=no 14571aee7dae4Smrg save_LDFLAGS="$LDFLAGS" 14572aee7dae4Smrg LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14573aee7dae4Smrg echo "$lt_simple_link_test_code" > conftest.$ac_ext 14574aee7dae4Smrg if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14575aee7dae4Smrg # The linker can only warn and ignore the option if not recognized 14576aee7dae4Smrg # So say no if there are warnings 14577aee7dae4Smrg if test -s conftest.err; then 14578aee7dae4Smrg # Append any errors to the config.log. 14579aee7dae4Smrg cat conftest.err 1>&5 14580aee7dae4Smrg $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 14581aee7dae4Smrg $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14582aee7dae4Smrg if diff conftest.exp conftest.er2 >/dev/null; then 14583aee7dae4Smrg lt_cv_prog_compiler_static_works=yes 14584aee7dae4Smrg fi 14585aee7dae4Smrg else 14586aee7dae4Smrg lt_cv_prog_compiler_static_works=yes 14587aee7dae4Smrg fi 14588aee7dae4Smrg fi 14589aee7dae4Smrg $RM -r conftest* 14590aee7dae4Smrg LDFLAGS="$save_LDFLAGS" 14591aee7dae4Smrg 14592aee7dae4Smrgfi 14593aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 14594aee7dae4Smrg$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 14595aee7dae4Smrg 14596aee7dae4Smrgif test x"$lt_cv_prog_compiler_static_works" = xyes; then 14597aee7dae4Smrg : 14598aee7dae4Smrgelse 14599aee7dae4Smrg lt_prog_compiler_static= 14600aee7dae4Smrgfi 14601aee7dae4Smrg 14602aee7dae4Smrg 14603aee7dae4Smrg 14604aee7dae4Smrg 14605aee7dae4Smrg 14606aee7dae4Smrg 14607aee7dae4Smrg 14608aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14609aee7dae4Smrg$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14610aee7dae4Smrgif ${lt_cv_prog_compiler_c_o+:} false; then : 14611aee7dae4Smrg $as_echo_n "(cached) " >&6 14612aee7dae4Smrgelse 14613aee7dae4Smrg lt_cv_prog_compiler_c_o=no 14614aee7dae4Smrg $RM -r conftest 2>/dev/null 14615aee7dae4Smrg mkdir conftest 14616aee7dae4Smrg cd conftest 14617aee7dae4Smrg mkdir out 14618aee7dae4Smrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14619aee7dae4Smrg 14620aee7dae4Smrg lt_compiler_flag="-o out/conftest2.$ac_objext" 14621aee7dae4Smrg # Insert the option either (1) after the last *FLAGS variable, or 14622aee7dae4Smrg # (2) before a word containing "conftest.", or (3) at the end. 14623aee7dae4Smrg # Note that $ac_compile itself does not contain backslashes and begins 14624aee7dae4Smrg # with a dollar sign (not a hyphen), so the echo should work correctly. 14625aee7dae4Smrg lt_compile=`echo "$ac_compile" | $SED \ 14626aee7dae4Smrg -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14627aee7dae4Smrg -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14628aee7dae4Smrg -e 's:$: $lt_compiler_flag:'` 14629aee7dae4Smrg (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14630aee7dae4Smrg (eval "$lt_compile" 2>out/conftest.err) 14631aee7dae4Smrg ac_status=$? 14632aee7dae4Smrg cat out/conftest.err >&5 14633aee7dae4Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 14634aee7dae4Smrg if (exit $ac_status) && test -s out/conftest2.$ac_objext 14635aee7dae4Smrg then 14636aee7dae4Smrg # The compiler can only warn and ignore the option if not recognized 14637aee7dae4Smrg # So say no if there are warnings 14638aee7dae4Smrg $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14639aee7dae4Smrg $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14640aee7dae4Smrg if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14641aee7dae4Smrg lt_cv_prog_compiler_c_o=yes 14642ba0eab60Smacallan fi 14643ba0eab60Smacallan fi 14644aee7dae4Smrg chmod u+w . 2>&5 14645aee7dae4Smrg $RM conftest* 14646aee7dae4Smrg # SGI C++ compiler will create directory out/ii_files/ for 14647aee7dae4Smrg # template instantiation 14648aee7dae4Smrg test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14649aee7dae4Smrg $RM out/* && rmdir out 14650aee7dae4Smrg cd .. 14651aee7dae4Smrg $RM -r conftest 14652aee7dae4Smrg $RM conftest* 14653ba0eab60Smacallan 14654ba0eab60Smacallanfi 14655aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 14656aee7dae4Smrg$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 14657ba0eab60Smacallan 14658ba0eab60Smacallan 14659ba0eab60Smacallan 14660ba0eab60Smacallan 14661ba0eab60Smacallan 14662ba0eab60Smacallan 14663aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14664aee7dae4Smrg$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14665aee7dae4Smrgif ${lt_cv_prog_compiler_c_o+:} false; then : 14666aee7dae4Smrg $as_echo_n "(cached) " >&6 14667ba0eab60Smacallanelse 14668aee7dae4Smrg lt_cv_prog_compiler_c_o=no 14669aee7dae4Smrg $RM -r conftest 2>/dev/null 14670ba0eab60Smacallan mkdir conftest 14671ba0eab60Smacallan cd conftest 14672ba0eab60Smacallan mkdir out 14673aee7dae4Smrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14674ba0eab60Smacallan 14675ba0eab60Smacallan lt_compiler_flag="-o out/conftest2.$ac_objext" 14676ba0eab60Smacallan # Insert the option either (1) after the last *FLAGS variable, or 14677ba0eab60Smacallan # (2) before a word containing "conftest.", or (3) at the end. 14678ba0eab60Smacallan # Note that $ac_compile itself does not contain backslashes and begins 14679ba0eab60Smacallan # with a dollar sign (not a hyphen), so the echo should work correctly. 14680ba0eab60Smacallan lt_compile=`echo "$ac_compile" | $SED \ 14681ba0eab60Smacallan -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14682ba0eab60Smacallan -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14683ba0eab60Smacallan -e 's:$: $lt_compiler_flag:'` 14684aee7dae4Smrg (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14685ba0eab60Smacallan (eval "$lt_compile" 2>out/conftest.err) 14686ba0eab60Smacallan ac_status=$? 14687ba0eab60Smacallan cat out/conftest.err >&5 14688aee7dae4Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 14689ba0eab60Smacallan if (exit $ac_status) && test -s out/conftest2.$ac_objext 14690ba0eab60Smacallan then 14691ba0eab60Smacallan # The compiler can only warn and ignore the option if not recognized 14692ba0eab60Smacallan # So say no if there are warnings 14693aee7dae4Smrg $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14694ba0eab60Smacallan $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14695ba0eab60Smacallan if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14696aee7dae4Smrg lt_cv_prog_compiler_c_o=yes 14697ba0eab60Smacallan fi 14698ba0eab60Smacallan fi 14699ba0eab60Smacallan chmod u+w . 2>&5 14700aee7dae4Smrg $RM conftest* 14701ba0eab60Smacallan # SGI C++ compiler will create directory out/ii_files/ for 14702ba0eab60Smacallan # template instantiation 14703aee7dae4Smrg test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14704aee7dae4Smrg $RM out/* && rmdir out 14705ba0eab60Smacallan cd .. 14706aee7dae4Smrg $RM -r conftest 14707aee7dae4Smrg $RM conftest* 14708ba0eab60Smacallan 14709ba0eab60Smacallanfi 14710aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 14711aee7dae4Smrg$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 14712aee7dae4Smrg 14713aee7dae4Smrg 14714ba0eab60Smacallan 14715ba0eab60Smacallan 14716ba0eab60Smacallanhard_links="nottested" 14717aee7dae4Smrgif test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 14718ba0eab60Smacallan # do not overwrite the value of need_locks provided by the user 14719aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 14720aee7dae4Smrg$as_echo_n "checking if we can lock with hard links... " >&6; } 14721ba0eab60Smacallan hard_links=yes 14722aee7dae4Smrg $RM conftest* 14723ba0eab60Smacallan ln conftest.a conftest.b 2>/dev/null && hard_links=no 14724ba0eab60Smacallan touch conftest.a 14725ba0eab60Smacallan ln conftest.a conftest.b 2>&5 || hard_links=no 14726ba0eab60Smacallan ln conftest.a conftest.b 2>/dev/null && hard_links=no 14727aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 14728aee7dae4Smrg$as_echo "$hard_links" >&6; } 14729ba0eab60Smacallan if test "$hard_links" = no; then 14730aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14731aee7dae4Smrg$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14732ba0eab60Smacallan need_locks=warn 14733ba0eab60Smacallan fi 14734ba0eab60Smacallanelse 14735ba0eab60Smacallan need_locks=no 14736ba0eab60Smacallanfi 14737ba0eab60Smacallan 14738aee7dae4Smrg 14739aee7dae4Smrg 14740aee7dae4Smrg 14741aee7dae4Smrg 14742aee7dae4Smrg 14743aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14744aee7dae4Smrg$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14745ba0eab60Smacallan 14746ba0eab60Smacallan runpath_var= 14747aee7dae4Smrg allow_undefined_flag= 14748aee7dae4Smrg always_export_symbols=no 14749aee7dae4Smrg archive_cmds= 14750aee7dae4Smrg archive_expsym_cmds= 14751aee7dae4Smrg compiler_needs_object=no 14752aee7dae4Smrg enable_shared_with_static_runtimes=no 14753aee7dae4Smrg export_dynamic_flag_spec= 14754aee7dae4Smrg export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14755aee7dae4Smrg hardcode_automatic=no 14756aee7dae4Smrg hardcode_direct=no 14757aee7dae4Smrg hardcode_direct_absolute=no 14758aee7dae4Smrg hardcode_libdir_flag_spec= 14759aee7dae4Smrg hardcode_libdir_separator= 14760aee7dae4Smrg hardcode_minus_L=no 14761aee7dae4Smrg hardcode_shlibpath_var=unsupported 14762aee7dae4Smrg inherit_rpath=no 14763aee7dae4Smrg link_all_deplibs=unknown 14764aee7dae4Smrg module_cmds= 14765aee7dae4Smrg module_expsym_cmds= 14766aee7dae4Smrg old_archive_from_new_cmds= 14767aee7dae4Smrg old_archive_from_expsyms_cmds= 14768aee7dae4Smrg thread_safe_flag_spec= 14769aee7dae4Smrg whole_archive_flag_spec= 14770ba0eab60Smacallan # include_expsyms should be a list of space-separated symbols to be *always* 14771ba0eab60Smacallan # included in the symbol list 14772aee7dae4Smrg include_expsyms= 14773ba0eab60Smacallan # exclude_expsyms can be an extended regexp of symbols to exclude 14774ba0eab60Smacallan # it will be wrapped by ` (' and `)$', so one must not match beginning or 14775ba0eab60Smacallan # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14776ba0eab60Smacallan # as well as any symbol that contains `d'. 14777aee7dae4Smrg exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14778ba0eab60Smacallan # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14779ba0eab60Smacallan # platforms (ab)use it in PIC code, but their linkers get confused if 14780ba0eab60Smacallan # the symbol is explicitly referenced. Since portable code cannot 14781ba0eab60Smacallan # rely on this symbol name, it's probably fine to never include it in 14782ba0eab60Smacallan # preloaded symbol tables. 14783aee7dae4Smrg # Exclude shared library initialization/finalization symbols. 14784ba0eab60Smacallan extract_expsyms_cmds= 14785ba0eab60Smacallan 14786ba0eab60Smacallan case $host_os in 14787aee7dae4Smrg cygwin* | mingw* | pw32* | cegcc*) 14788ba0eab60Smacallan # FIXME: the MSVC++ port hasn't been tested in a loooong time 14789ba0eab60Smacallan # When not using gcc, we currently assume that we are using 14790ba0eab60Smacallan # Microsoft Visual C++. 14791ba0eab60Smacallan if test "$GCC" != yes; then 14792ba0eab60Smacallan with_gnu_ld=no 14793ba0eab60Smacallan fi 14794ba0eab60Smacallan ;; 14795ba0eab60Smacallan interix*) 14796ba0eab60Smacallan # we just hope/assume this is gcc and not c89 (= MSVC++) 14797ba0eab60Smacallan with_gnu_ld=yes 14798ba0eab60Smacallan ;; 14799ba0eab60Smacallan openbsd*) 14800ba0eab60Smacallan with_gnu_ld=no 14801ba0eab60Smacallan ;; 14802aee7dae4Smrg linux* | k*bsd*-gnu | gnu*) 14803aee7dae4Smrg link_all_deplibs=no 14804aee7dae4Smrg ;; 14805ba0eab60Smacallan esac 14806ba0eab60Smacallan 14807aee7dae4Smrg ld_shlibs=yes 14808aee7dae4Smrg 14809aee7dae4Smrg # On some targets, GNU ld is compatible enough with the native linker 14810aee7dae4Smrg # that we're better off using the native interface for both. 14811aee7dae4Smrg lt_use_gnu_ld_interface=no 14812ba0eab60Smacallan if test "$with_gnu_ld" = yes; then 14813aee7dae4Smrg case $host_os in 14814aee7dae4Smrg aix*) 14815aee7dae4Smrg # The AIX port of GNU ld has always aspired to compatibility 14816aee7dae4Smrg # with the native linker. However, as the warning in the GNU ld 14817aee7dae4Smrg # block says, versions before 2.19.5* couldn't really create working 14818aee7dae4Smrg # shared libraries, regardless of the interface used. 14819aee7dae4Smrg case `$LD -v 2>&1` in 14820aee7dae4Smrg *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 14821aee7dae4Smrg *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 14822aee7dae4Smrg *\ \(GNU\ Binutils\)\ [3-9]*) ;; 14823aee7dae4Smrg *) 14824aee7dae4Smrg lt_use_gnu_ld_interface=yes 14825aee7dae4Smrg ;; 14826aee7dae4Smrg esac 14827aee7dae4Smrg ;; 14828aee7dae4Smrg *) 14829aee7dae4Smrg lt_use_gnu_ld_interface=yes 14830aee7dae4Smrg ;; 14831aee7dae4Smrg esac 14832aee7dae4Smrg fi 14833aee7dae4Smrg 14834aee7dae4Smrg if test "$lt_use_gnu_ld_interface" = yes; then 14835ba0eab60Smacallan # If archive_cmds runs LD, not CC, wlarc should be empty 14836ba0eab60Smacallan wlarc='${wl}' 14837ba0eab60Smacallan 14838ba0eab60Smacallan # Set some defaults for GNU ld with shared library support. These 14839ba0eab60Smacallan # are reset later if shared libraries are not supported. Putting them 14840ba0eab60Smacallan # here allows them to be overridden if necessary. 14841ba0eab60Smacallan runpath_var=LD_RUN_PATH 14842aee7dae4Smrg hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 14843aee7dae4Smrg export_dynamic_flag_spec='${wl}--export-dynamic' 14844ba0eab60Smacallan # ancient GNU ld didn't support --whole-archive et. al. 14845aee7dae4Smrg if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 14846aee7dae4Smrg whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14847aee7dae4Smrg else 14848aee7dae4Smrg whole_archive_flag_spec= 14849ba0eab60Smacallan fi 14850ba0eab60Smacallan supports_anon_versioning=no 14851aee7dae4Smrg case `$LD -v 2>&1` in 14852aee7dae4Smrg *GNU\ gold*) supports_anon_versioning=yes ;; 14853ba0eab60Smacallan *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14854ba0eab60Smacallan *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14855ba0eab60Smacallan *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14856ba0eab60Smacallan *\ 2.11.*) ;; # other 2.11 versions 14857ba0eab60Smacallan *) supports_anon_versioning=yes ;; 14858ba0eab60Smacallan esac 14859ba0eab60Smacallan 14860ba0eab60Smacallan # See if GNU ld supports shared libraries. 14861ba0eab60Smacallan case $host_os in 14862aee7dae4Smrg aix[3-9]*) 14863ba0eab60Smacallan # On AIX/PPC, the GNU linker is very broken 14864ba0eab60Smacallan if test "$host_cpu" != ia64; then 14865aee7dae4Smrg ld_shlibs=no 14866aee7dae4Smrg cat <<_LT_EOF 1>&2 14867ba0eab60Smacallan 14868aee7dae4Smrg*** Warning: the GNU linker, at least up to release 2.19, is reported 14869ba0eab60Smacallan*** to be unable to reliably create shared libraries on AIX. 14870ba0eab60Smacallan*** Therefore, libtool is disabling shared libraries support. If you 14871aee7dae4Smrg*** really care for shared libraries, you may want to install binutils 14872aee7dae4Smrg*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 14873aee7dae4Smrg*** You will then need to restart the configuration process. 14874ba0eab60Smacallan 14875aee7dae4Smrg_LT_EOF 14876ba0eab60Smacallan fi 14877ba0eab60Smacallan ;; 14878ba0eab60Smacallan 14879ba0eab60Smacallan amigaos*) 14880aee7dae4Smrg case $host_cpu in 14881aee7dae4Smrg powerpc) 14882aee7dae4Smrg # see comment about AmigaOS4 .so support 14883aee7dae4Smrg archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14884aee7dae4Smrg archive_expsym_cmds='' 14885aee7dae4Smrg ;; 14886aee7dae4Smrg m68k) 14887aee7dae4Smrg archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 14888aee7dae4Smrg hardcode_libdir_flag_spec='-L$libdir' 14889aee7dae4Smrg hardcode_minus_L=yes 14890aee7dae4Smrg ;; 14891aee7dae4Smrg esac 14892ba0eab60Smacallan ;; 14893ba0eab60Smacallan 14894ba0eab60Smacallan beos*) 14895aee7dae4Smrg if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14896aee7dae4Smrg allow_undefined_flag=unsupported 14897ba0eab60Smacallan # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14898ba0eab60Smacallan # support --undefined. This deserves some investigation. FIXME 14899aee7dae4Smrg archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14900ba0eab60Smacallan else 14901aee7dae4Smrg ld_shlibs=no 14902ba0eab60Smacallan fi 14903ba0eab60Smacallan ;; 14904ba0eab60Smacallan 14905aee7dae4Smrg cygwin* | mingw* | pw32* | cegcc*) 14906aee7dae4Smrg # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 14907ba0eab60Smacallan # as there is no search path for DLLs. 14908aee7dae4Smrg hardcode_libdir_flag_spec='-L$libdir' 14909aee7dae4Smrg export_dynamic_flag_spec='${wl}--export-all-symbols' 14910aee7dae4Smrg allow_undefined_flag=unsupported 14911aee7dae4Smrg always_export_symbols=no 14912aee7dae4Smrg enable_shared_with_static_runtimes=yes 14913aee7dae4Smrg export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 14914aee7dae4Smrg exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 14915aee7dae4Smrg 14916aee7dae4Smrg if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 14917aee7dae4Smrg archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14918ba0eab60Smacallan # If the export-symbols file already is a .def file (1st line 14919ba0eab60Smacallan # is EXPORTS), use it as is; otherwise, prepend... 14920aee7dae4Smrg archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14921ba0eab60Smacallan cp $export_symbols $output_objdir/$soname.def; 14922ba0eab60Smacallan else 14923ba0eab60Smacallan echo EXPORTS > $output_objdir/$soname.def; 14924ba0eab60Smacallan cat $export_symbols >> $output_objdir/$soname.def; 14925ba0eab60Smacallan fi~ 14926ba0eab60Smacallan $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14927ba0eab60Smacallan else 14928aee7dae4Smrg ld_shlibs=no 14929ba0eab60Smacallan fi 14930ba0eab60Smacallan ;; 14931ba0eab60Smacallan 14932aee7dae4Smrg haiku*) 14933aee7dae4Smrg archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14934aee7dae4Smrg link_all_deplibs=yes 14935aee7dae4Smrg ;; 14936aee7dae4Smrg 14937aee7dae4Smrg interix[3-9]*) 14938aee7dae4Smrg hardcode_direct=no 14939aee7dae4Smrg hardcode_shlibpath_var=no 14940aee7dae4Smrg hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 14941aee7dae4Smrg export_dynamic_flag_spec='${wl}-E' 14942ba0eab60Smacallan # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14943ba0eab60Smacallan # Instead, shared libraries are loaded at an image base (0x10000000 by 14944ba0eab60Smacallan # default) and relocated if they conflict, which is a slow very memory 14945ba0eab60Smacallan # consuming and fragmenting process. To avoid this, we pick a random, 14946ba0eab60Smacallan # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14947ba0eab60Smacallan # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14948aee7dae4Smrg archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 14949aee7dae4Smrg archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 14950ba0eab60Smacallan ;; 14951ba0eab60Smacallan 14952aee7dae4Smrg gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 14953aee7dae4Smrg tmp_diet=no 14954aee7dae4Smrg if test "$host_os" = linux-dietlibc; then 14955aee7dae4Smrg case $cc_basename in 14956aee7dae4Smrg diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 14957aee7dae4Smrg esac 14958aee7dae4Smrg fi 14959aee7dae4Smrg if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 14960aee7dae4Smrg && test "$tmp_diet" = no 14961aee7dae4Smrg then 14962aee7dae4Smrg tmp_addflag=' $pic_flag' 14963aee7dae4Smrg tmp_sharedflag='-shared' 14964ba0eab60Smacallan case $cc_basename,$host_cpu in 14965aee7dae4Smrg pgcc*) # Portland Group C compiler 14966aee7dae4Smrg whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 14967ba0eab60Smacallan tmp_addflag=' $pic_flag' 14968ba0eab60Smacallan ;; 14969aee7dae4Smrg pgf77* | pgf90* | pgf95* | pgfortran*) 14970aee7dae4Smrg # Portland Group f77 and f90 compilers 14971aee7dae4Smrg whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 14972ba0eab60Smacallan tmp_addflag=' $pic_flag -Mnomain' ;; 14973aee7dae4Smrg ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14974ba0eab60Smacallan tmp_addflag=' -i_dynamic' ;; 14975ba0eab60Smacallan efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14976ba0eab60Smacallan tmp_addflag=' -i_dynamic -nofor_main' ;; 14977ba0eab60Smacallan ifc* | ifort*) # Intel Fortran compiler 14978ba0eab60Smacallan tmp_addflag=' -nofor_main' ;; 14979aee7dae4Smrg lf95*) # Lahey Fortran 8.1 14980aee7dae4Smrg whole_archive_flag_spec= 14981aee7dae4Smrg tmp_sharedflag='--shared' ;; 14982aee7dae4Smrg xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 14983aee7dae4Smrg tmp_sharedflag='-qmkshrobj' 14984aee7dae4Smrg tmp_addflag= ;; 14985aee7dae4Smrg nvcc*) # Cuda Compiler Driver 2.2 14986aee7dae4Smrg whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 14987aee7dae4Smrg compiler_needs_object=yes 14988aee7dae4Smrg ;; 14989ba0eab60Smacallan esac 14990aee7dae4Smrg case `$CC -V 2>&1 | sed 5q` in 14991aee7dae4Smrg *Sun\ C*) # Sun C 5.9 14992aee7dae4Smrg whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 14993aee7dae4Smrg compiler_needs_object=yes 14994aee7dae4Smrg tmp_sharedflag='-G' ;; 14995aee7dae4Smrg *Sun\ F*) # Sun Fortran 8.3 14996aee7dae4Smrg tmp_sharedflag='-G' ;; 14997aee7dae4Smrg esac 14998aee7dae4Smrg archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14999ba0eab60Smacallan 15000aee7dae4Smrg if test "x$supports_anon_versioning" = xyes; then 15001aee7dae4Smrg archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 15002aee7dae4Smrg cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15003aee7dae4Smrg echo "local: *; };" >> $output_objdir/$libname.ver~ 15004aee7dae4Smrg $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 15005aee7dae4Smrg fi 15006aee7dae4Smrg 15007aee7dae4Smrg case $cc_basename in 15008aee7dae4Smrg xlf* | bgf* | bgxlf* | mpixlf*) 15009aee7dae4Smrg # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 15010aee7dae4Smrg whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 15011aee7dae4Smrg hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15012aee7dae4Smrg archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 15013aee7dae4Smrg if test "x$supports_anon_versioning" = xyes; then 15014aee7dae4Smrg archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 15015aee7dae4Smrg cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15016aee7dae4Smrg echo "local: *; };" >> $output_objdir/$libname.ver~ 15017aee7dae4Smrg $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 15018aee7dae4Smrg fi 15019aee7dae4Smrg ;; 15020aee7dae4Smrg esac 15021ba0eab60Smacallan else 15022aee7dae4Smrg ld_shlibs=no 15023ba0eab60Smacallan fi 15024ba0eab60Smacallan ;; 15025ba0eab60Smacallan 15026aee7dae4Smrg netbsd* | netbsdelf*-gnu) 15027aee7dae4Smrg if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15028aee7dae4Smrg archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15029ba0eab60Smacallan wlarc= 15030ba0eab60Smacallan else 15031aee7dae4Smrg archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15032aee7dae4Smrg archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15033ba0eab60Smacallan fi 15034ba0eab60Smacallan ;; 15035ba0eab60Smacallan 15036ba0eab60Smacallan solaris*) 15037aee7dae4Smrg if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 15038aee7dae4Smrg ld_shlibs=no 15039aee7dae4Smrg cat <<_LT_EOF 1>&2 15040ba0eab60Smacallan 15041ba0eab60Smacallan*** Warning: The releases 2.8.* of the GNU linker cannot reliably 15042ba0eab60Smacallan*** create shared libraries on Solaris systems. Therefore, libtool 15043ba0eab60Smacallan*** is disabling shared libraries support. We urge you to upgrade GNU 15044ba0eab60Smacallan*** binutils to release 2.9.1 or newer. Another option is to modify 15045ba0eab60Smacallan*** your PATH or compiler configuration so that the native linker is 15046ba0eab60Smacallan*** used, and then restart. 15047ba0eab60Smacallan 15048aee7dae4Smrg_LT_EOF 15049aee7dae4Smrg elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15050aee7dae4Smrg archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15051aee7dae4Smrg archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15052ba0eab60Smacallan else 15053aee7dae4Smrg ld_shlibs=no 15054ba0eab60Smacallan fi 15055ba0eab60Smacallan ;; 15056ba0eab60Smacallan 15057ba0eab60Smacallan sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 15058ba0eab60Smacallan case `$LD -v 2>&1` in 15059ba0eab60Smacallan *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 15060aee7dae4Smrg ld_shlibs=no 15061ba0eab60Smacallan cat <<_LT_EOF 1>&2 15062ba0eab60Smacallan 15063ba0eab60Smacallan*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 15064ba0eab60Smacallan*** reliably create shared libraries on SCO systems. Therefore, libtool 15065ba0eab60Smacallan*** is disabling shared libraries support. We urge you to upgrade GNU 15066ba0eab60Smacallan*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 15067ba0eab60Smacallan*** your PATH or compiler configuration so that the native linker is 15068ba0eab60Smacallan*** used, and then restart. 15069ba0eab60Smacallan 15070ba0eab60Smacallan_LT_EOF 15071ba0eab60Smacallan ;; 15072ba0eab60Smacallan *) 15073aee7dae4Smrg # For security reasons, it is highly recommended that you always 15074aee7dae4Smrg # use absolute paths for naming shared libraries, and exclude the 15075aee7dae4Smrg # DT_RUNPATH tag from executables and libraries. But doing so 15076aee7dae4Smrg # requires that you compile everything twice, which is a pain. 15077aee7dae4Smrg if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15078aee7dae4Smrg hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15079aee7dae4Smrg archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15080aee7dae4Smrg archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15081ba0eab60Smacallan else 15082aee7dae4Smrg ld_shlibs=no 15083ba0eab60Smacallan fi 15084ba0eab60Smacallan ;; 15085ba0eab60Smacallan esac 15086ba0eab60Smacallan ;; 15087ba0eab60Smacallan 15088ba0eab60Smacallan sunos4*) 15089aee7dae4Smrg archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15090ba0eab60Smacallan wlarc= 15091aee7dae4Smrg hardcode_direct=yes 15092aee7dae4Smrg hardcode_shlibpath_var=no 15093ba0eab60Smacallan ;; 15094ba0eab60Smacallan 15095ba0eab60Smacallan *) 15096aee7dae4Smrg if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15097aee7dae4Smrg archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15098aee7dae4Smrg archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15099ba0eab60Smacallan else 15100aee7dae4Smrg ld_shlibs=no 15101ba0eab60Smacallan fi 15102ba0eab60Smacallan ;; 15103ba0eab60Smacallan esac 15104ba0eab60Smacallan 15105aee7dae4Smrg if test "$ld_shlibs" = no; then 15106ba0eab60Smacallan runpath_var= 15107aee7dae4Smrg hardcode_libdir_flag_spec= 15108aee7dae4Smrg export_dynamic_flag_spec= 15109aee7dae4Smrg whole_archive_flag_spec= 15110ba0eab60Smacallan fi 15111ba0eab60Smacallan else 15112ba0eab60Smacallan # PORTME fill in a description of your system's linker (not GNU ld) 15113ba0eab60Smacallan case $host_os in 15114ba0eab60Smacallan aix3*) 15115aee7dae4Smrg allow_undefined_flag=unsupported 15116aee7dae4Smrg always_export_symbols=yes 15117aee7dae4Smrg archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 15118ba0eab60Smacallan # Note: this linker hardcodes the directories in LIBPATH if there 15119ba0eab60Smacallan # are no directories specified by -L. 15120aee7dae4Smrg hardcode_minus_L=yes 15121ba0eab60Smacallan if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 15122ba0eab60Smacallan # Neither direct hardcoding nor static linking is supported with a 15123ba0eab60Smacallan # broken collect2. 15124aee7dae4Smrg hardcode_direct=unsupported 15125ba0eab60Smacallan fi 15126ba0eab60Smacallan ;; 15127ba0eab60Smacallan 15128aee7dae4Smrg aix[4-9]*) 15129ba0eab60Smacallan if test "$host_cpu" = ia64; then 15130ba0eab60Smacallan # On IA64, the linker does run time linking by default, so we don't 15131ba0eab60Smacallan # have to do anything special. 15132ba0eab60Smacallan aix_use_runtimelinking=no 15133ba0eab60Smacallan exp_sym_flag='-Bexport' 15134ba0eab60Smacallan no_entry_flag="" 15135ba0eab60Smacallan else 15136ba0eab60Smacallan # If we're using GNU nm, then we don't want the "-C" option. 15137ba0eab60Smacallan # -C means demangle to AIX nm, but means don't demangle with GNU nm 15138aee7dae4Smrg # Also, AIX nm treats weak defined symbols like other global 15139aee7dae4Smrg # defined symbols, whereas GNU nm marks them as "W". 15140aee7dae4Smrg if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15141aee7dae4Smrg export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 15142ba0eab60Smacallan else 15143aee7dae4Smrg export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 15144ba0eab60Smacallan fi 15145ba0eab60Smacallan aix_use_runtimelinking=no 15146ba0eab60Smacallan 15147ba0eab60Smacallan # Test if we are trying to use run time linking or normal 15148ba0eab60Smacallan # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15149ba0eab60Smacallan # need to do runtime linking. 15150aee7dae4Smrg case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 15151ba0eab60Smacallan for ld_flag in $LDFLAGS; do 15152aee7dae4Smrg if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 15153aee7dae4Smrg aix_use_runtimelinking=yes 15154aee7dae4Smrg break 15155aee7dae4Smrg fi 15156ba0eab60Smacallan done 15157ba0eab60Smacallan ;; 15158ba0eab60Smacallan esac 15159ba0eab60Smacallan 15160ba0eab60Smacallan exp_sym_flag='-bexport' 15161ba0eab60Smacallan no_entry_flag='-bnoentry' 15162ba0eab60Smacallan fi 15163ba0eab60Smacallan 15164ba0eab60Smacallan # When large executables or shared objects are built, AIX ld can 15165ba0eab60Smacallan # have problems creating the table of contents. If linking a library 15166ba0eab60Smacallan # or program results in "error TOC overflow" add -mminimal-toc to 15167ba0eab60Smacallan # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15168ba0eab60Smacallan # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15169ba0eab60Smacallan 15170aee7dae4Smrg archive_cmds='' 15171aee7dae4Smrg hardcode_direct=yes 15172aee7dae4Smrg hardcode_direct_absolute=yes 15173aee7dae4Smrg hardcode_libdir_separator=':' 15174aee7dae4Smrg link_all_deplibs=yes 15175aee7dae4Smrg file_list_spec='${wl}-f,' 15176ba0eab60Smacallan 15177ba0eab60Smacallan if test "$GCC" = yes; then 15178ba0eab60Smacallan case $host_os in aix4.[012]|aix4.[012].*) 15179ba0eab60Smacallan # We only want to do this on AIX 4.2 and lower, the check 15180ba0eab60Smacallan # below for broken collect2 doesn't work under 4.3+ 15181ba0eab60Smacallan collect2name=`${CC} -print-prog-name=collect2` 15182aee7dae4Smrg if test -f "$collect2name" && 15183aee7dae4Smrg strings "$collect2name" | $GREP resolve_lib_name >/dev/null 15184ba0eab60Smacallan then 15185aee7dae4Smrg # We have reworked collect2 15186aee7dae4Smrg : 15187ba0eab60Smacallan else 15188aee7dae4Smrg # We have old collect2 15189aee7dae4Smrg hardcode_direct=unsupported 15190aee7dae4Smrg # It fails to find uninstalled libraries when the uninstalled 15191aee7dae4Smrg # path is not listed in the libpath. Setting hardcode_minus_L 15192aee7dae4Smrg # to unsupported forces relinking 15193aee7dae4Smrg hardcode_minus_L=yes 15194aee7dae4Smrg hardcode_libdir_flag_spec='-L$libdir' 15195aee7dae4Smrg hardcode_libdir_separator= 15196ba0eab60Smacallan fi 15197ba0eab60Smacallan ;; 15198ba0eab60Smacallan esac 15199ba0eab60Smacallan shared_flag='-shared' 15200ba0eab60Smacallan if test "$aix_use_runtimelinking" = yes; then 15201ba0eab60Smacallan shared_flag="$shared_flag "'${wl}-G' 15202ba0eab60Smacallan fi 15203aee7dae4Smrg link_all_deplibs=no 15204ba0eab60Smacallan else 15205ba0eab60Smacallan # not using gcc 15206ba0eab60Smacallan if test "$host_cpu" = ia64; then 15207aee7dae4Smrg # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15208aee7dae4Smrg # chokes on -Wl,-G. The following line is correct: 15209ba0eab60Smacallan shared_flag='-G' 15210ba0eab60Smacallan else 15211ba0eab60Smacallan if test "$aix_use_runtimelinking" = yes; then 15212ba0eab60Smacallan shared_flag='${wl}-G' 15213ba0eab60Smacallan else 15214ba0eab60Smacallan shared_flag='${wl}-bM:SRE' 15215ba0eab60Smacallan fi 15216ba0eab60Smacallan fi 15217ba0eab60Smacallan fi 15218ba0eab60Smacallan 15219aee7dae4Smrg export_dynamic_flag_spec='${wl}-bexpall' 15220ba0eab60Smacallan # It seems that -bexpall does not export symbols beginning with 15221ba0eab60Smacallan # underscore (_), so it is better to generate a list of symbols to export. 15222aee7dae4Smrg always_export_symbols=yes 15223ba0eab60Smacallan if test "$aix_use_runtimelinking" = yes; then 15224ba0eab60Smacallan # Warning - without using the other runtime loading flags (-brtl), 15225ba0eab60Smacallan # -berok will link without error, but may produce a broken library. 15226aee7dae4Smrg allow_undefined_flag='-berok' 15227aee7dae4Smrg # Determine the default libpath from the value encoded in an 15228aee7dae4Smrg # empty executable. 15229aee7dae4Smrg if test "${lt_cv_aix_libpath+set}" = set; then 15230aee7dae4Smrg aix_libpath=$lt_cv_aix_libpath 15231aee7dae4Smrgelse 15232aee7dae4Smrg if ${lt_cv_aix_libpath_+:} false; then : 15233aee7dae4Smrg $as_echo_n "(cached) " >&6 15234aee7dae4Smrgelse 15235aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15236ba0eab60Smacallan/* end confdefs.h. */ 15237ba0eab60Smacallan 15238ba0eab60Smacallanint 15239ba0eab60Smacallanmain () 15240ba0eab60Smacallan{ 15241ba0eab60Smacallan 15242ba0eab60Smacallan ; 15243ba0eab60Smacallan return 0; 15244ba0eab60Smacallan} 15245ba0eab60Smacallan_ACEOF 15246aee7dae4Smrgif ac_fn_c_try_link "$LINENO"; then : 15247aee7dae4Smrg 15248aee7dae4Smrg lt_aix_libpath_sed=' 15249aee7dae4Smrg /Import File Strings/,/^$/ { 15250aee7dae4Smrg /^0/ { 15251aee7dae4Smrg s/^0 *\([^ ]*\) *$/\1/ 15252aee7dae4Smrg p 15253aee7dae4Smrg } 15254aee7dae4Smrg }' 15255aee7dae4Smrg lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15256aee7dae4Smrg # Check for a 64-bit object if we didn't find anything. 15257aee7dae4Smrg if test -z "$lt_cv_aix_libpath_"; then 15258aee7dae4Smrg lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15259aee7dae4Smrg fi 15260aee7dae4Smrgfi 15261aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext \ 15262aee7dae4Smrg conftest$ac_exeext conftest.$ac_ext 15263aee7dae4Smrg if test -z "$lt_cv_aix_libpath_"; then 15264aee7dae4Smrg lt_cv_aix_libpath_="/usr/lib:/lib" 15265aee7dae4Smrg fi 15266ba0eab60Smacallan 15267aee7dae4Smrgfi 15268ba0eab60Smacallan 15269aee7dae4Smrg aix_libpath=$lt_cv_aix_libpath_ 15270ba0eab60Smacallanfi 15271ba0eab60Smacallan 15272aee7dae4Smrg hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 15273aee7dae4Smrg archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 15274aee7dae4Smrg else 15275ba0eab60Smacallan if test "$host_cpu" = ia64; then 15276aee7dae4Smrg hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 15277aee7dae4Smrg allow_undefined_flag="-z nodefs" 15278aee7dae4Smrg archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 15279ba0eab60Smacallan else 15280aee7dae4Smrg # Determine the default libpath from the value encoded in an 15281aee7dae4Smrg # empty executable. 15282aee7dae4Smrg if test "${lt_cv_aix_libpath+set}" = set; then 15283aee7dae4Smrg aix_libpath=$lt_cv_aix_libpath 15284aee7dae4Smrgelse 15285aee7dae4Smrg if ${lt_cv_aix_libpath_+:} false; then : 15286aee7dae4Smrg $as_echo_n "(cached) " >&6 15287aee7dae4Smrgelse 15288aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15289ba0eab60Smacallan/* end confdefs.h. */ 15290ba0eab60Smacallan 15291ba0eab60Smacallanint 15292ba0eab60Smacallanmain () 15293ba0eab60Smacallan{ 15294ba0eab60Smacallan 15295ba0eab60Smacallan ; 15296ba0eab60Smacallan return 0; 15297ba0eab60Smacallan} 15298ba0eab60Smacallan_ACEOF 15299aee7dae4Smrgif ac_fn_c_try_link "$LINENO"; then : 15300aee7dae4Smrg 15301aee7dae4Smrg lt_aix_libpath_sed=' 15302aee7dae4Smrg /Import File Strings/,/^$/ { 15303aee7dae4Smrg /^0/ { 15304aee7dae4Smrg s/^0 *\([^ ]*\) *$/\1/ 15305aee7dae4Smrg p 15306aee7dae4Smrg } 15307aee7dae4Smrg }' 15308aee7dae4Smrg lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15309aee7dae4Smrg # Check for a 64-bit object if we didn't find anything. 15310aee7dae4Smrg if test -z "$lt_cv_aix_libpath_"; then 15311aee7dae4Smrg lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15312aee7dae4Smrg fi 15313aee7dae4Smrgfi 15314aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext \ 15315aee7dae4Smrg conftest$ac_exeext conftest.$ac_ext 15316aee7dae4Smrg if test -z "$lt_cv_aix_libpath_"; then 15317aee7dae4Smrg lt_cv_aix_libpath_="/usr/lib:/lib" 15318aee7dae4Smrg fi 15319ba0eab60Smacallan 15320aee7dae4Smrgfi 15321ba0eab60Smacallan 15322aee7dae4Smrg aix_libpath=$lt_cv_aix_libpath_ 15323ba0eab60Smacallanfi 15324ba0eab60Smacallan 15325aee7dae4Smrg hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 15326ba0eab60Smacallan # Warning - without using the other run time loading flags, 15327ba0eab60Smacallan # -berok will link without error, but may produce a broken library. 15328aee7dae4Smrg no_undefined_flag=' ${wl}-bernotok' 15329aee7dae4Smrg allow_undefined_flag=' ${wl}-berok' 15330aee7dae4Smrg if test "$with_gnu_ld" = yes; then 15331aee7dae4Smrg # We only use this code for GNU lds that support --whole-archive. 15332aee7dae4Smrg whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 15333aee7dae4Smrg else 15334aee7dae4Smrg # Exported symbols can be pulled into shared objects from archives 15335aee7dae4Smrg whole_archive_flag_spec='$convenience' 15336aee7dae4Smrg fi 15337aee7dae4Smrg archive_cmds_need_lc=yes 15338ba0eab60Smacallan # This is similar to how AIX traditionally builds its shared libraries. 15339aee7dae4Smrg archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 15340ba0eab60Smacallan fi 15341ba0eab60Smacallan fi 15342ba0eab60Smacallan ;; 15343ba0eab60Smacallan 15344ba0eab60Smacallan amigaos*) 15345aee7dae4Smrg case $host_cpu in 15346aee7dae4Smrg powerpc) 15347aee7dae4Smrg # see comment about AmigaOS4 .so support 15348aee7dae4Smrg archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15349aee7dae4Smrg archive_expsym_cmds='' 15350aee7dae4Smrg ;; 15351aee7dae4Smrg m68k) 15352aee7dae4Smrg archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 15353aee7dae4Smrg hardcode_libdir_flag_spec='-L$libdir' 15354aee7dae4Smrg hardcode_minus_L=yes 15355aee7dae4Smrg ;; 15356aee7dae4Smrg esac 15357ba0eab60Smacallan ;; 15358ba0eab60Smacallan 15359ba0eab60Smacallan bsdi[45]*) 15360aee7dae4Smrg export_dynamic_flag_spec=-rdynamic 15361ba0eab60Smacallan ;; 15362ba0eab60Smacallan 15363aee7dae4Smrg cygwin* | mingw* | pw32* | cegcc*) 15364ba0eab60Smacallan # When not using gcc, we currently assume that we are using 15365ba0eab60Smacallan # Microsoft Visual C++. 15366ba0eab60Smacallan # hardcode_libdir_flag_spec is actually meaningless, as there is 15367ba0eab60Smacallan # no search path for DLLs. 15368ba0eab60Smacallan case $cc_basename in 15369aee7dae4Smrg cl*) 15370aee7dae4Smrg # Native MSVC 15371aee7dae4Smrg hardcode_libdir_flag_spec=' ' 15372aee7dae4Smrg allow_undefined_flag=unsupported 15373aee7dae4Smrg always_export_symbols=yes 15374aee7dae4Smrg file_list_spec='@' 15375aee7dae4Smrg # Tell ltmain to make .lib files, not .a files. 15376aee7dae4Smrg libext=lib 15377aee7dae4Smrg # Tell ltmain to make .dll files, not .so files. 15378aee7dae4Smrg shrext_cmds=".dll" 15379aee7dae4Smrg # FIXME: Setting linknames here is a bad hack. 15380aee7dae4Smrg archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 15381aee7dae4Smrg archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 15382aee7dae4Smrg sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 15383aee7dae4Smrg else 15384aee7dae4Smrg sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 15385aee7dae4Smrg fi~ 15386aee7dae4Smrg $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 15387aee7dae4Smrg linknames=' 15388aee7dae4Smrg # The linker will not automatically build a static lib if we build a DLL. 15389aee7dae4Smrg # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 15390aee7dae4Smrg enable_shared_with_static_runtimes=yes 15391aee7dae4Smrg exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 15392aee7dae4Smrg export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 15393aee7dae4Smrg # Don't use ranlib 15394aee7dae4Smrg old_postinstall_cmds='chmod 644 $oldlib' 15395aee7dae4Smrg postlink_cmds='lt_outputfile="@OUTPUT@"~ 15396aee7dae4Smrg lt_tool_outputfile="@TOOL_OUTPUT@"~ 15397aee7dae4Smrg case $lt_outputfile in 15398aee7dae4Smrg *.exe|*.EXE) ;; 15399aee7dae4Smrg *) 15400aee7dae4Smrg lt_outputfile="$lt_outputfile.exe" 15401aee7dae4Smrg lt_tool_outputfile="$lt_tool_outputfile.exe" 15402aee7dae4Smrg ;; 15403aee7dae4Smrg esac~ 15404aee7dae4Smrg if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 15405aee7dae4Smrg $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 15406aee7dae4Smrg $RM "$lt_outputfile.manifest"; 15407aee7dae4Smrg fi' 15408aee7dae4Smrg ;; 15409aee7dae4Smrg *) 15410aee7dae4Smrg # Assume MSVC wrapper 15411aee7dae4Smrg hardcode_libdir_flag_spec=' ' 15412aee7dae4Smrg allow_undefined_flag=unsupported 15413aee7dae4Smrg # Tell ltmain to make .lib files, not .a files. 15414aee7dae4Smrg libext=lib 15415aee7dae4Smrg # Tell ltmain to make .dll files, not .so files. 15416aee7dae4Smrg shrext_cmds=".dll" 15417aee7dae4Smrg # FIXME: Setting linknames here is a bad hack. 15418aee7dae4Smrg archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 15419aee7dae4Smrg # The linker will automatically build a .lib file if we build a DLL. 15420aee7dae4Smrg old_archive_from_new_cmds='true' 15421aee7dae4Smrg # FIXME: Should let the user specify the lib program. 15422aee7dae4Smrg old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 15423aee7dae4Smrg enable_shared_with_static_runtimes=yes 15424aee7dae4Smrg ;; 15425ba0eab60Smacallan esac 15426ba0eab60Smacallan ;; 15427ba0eab60Smacallan 15428aee7dae4Smrg darwin* | rhapsody*) 15429aee7dae4Smrg 15430aee7dae4Smrg 15431aee7dae4Smrg archive_cmds_need_lc=no 15432aee7dae4Smrg hardcode_direct=no 15433aee7dae4Smrg hardcode_automatic=yes 15434aee7dae4Smrg hardcode_shlibpath_var=unsupported 15435aee7dae4Smrg if test "$lt_cv_ld_force_load" = "yes"; then 15436aee7dae4Smrg whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 15437aee7dae4Smrg 15438aee7dae4Smrg else 15439aee7dae4Smrg whole_archive_flag_spec='' 15440aee7dae4Smrg fi 15441aee7dae4Smrg link_all_deplibs=yes 15442aee7dae4Smrg allow_undefined_flag="$_lt_dar_allow_undefined" 15443aee7dae4Smrg case $cc_basename in 15444aee7dae4Smrg ifort*) _lt_dar_can_shared=yes ;; 15445aee7dae4Smrg *) _lt_dar_can_shared=$GCC ;; 15446aee7dae4Smrg esac 15447aee7dae4Smrg if test "$_lt_dar_can_shared" = "yes"; then 15448aee7dae4Smrg output_verbose_link_cmd=func_echo_all 15449aee7dae4Smrg archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 15450aee7dae4Smrg module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 15451aee7dae4Smrg archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 15452aee7dae4Smrg module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 15453aee7dae4Smrg 15454aee7dae4Smrg else 15455aee7dae4Smrg ld_shlibs=no 15456aee7dae4Smrg fi 15457aee7dae4Smrg 15458ba0eab60Smacallan ;; 15459ba0eab60Smacallan 15460aee7dae4Smrg dgux*) 15461aee7dae4Smrg archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15462aee7dae4Smrg hardcode_libdir_flag_spec='-L$libdir' 15463aee7dae4Smrg hardcode_shlibpath_var=no 15464ba0eab60Smacallan ;; 15465ba0eab60Smacallan 15466ba0eab60Smacallan # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15467ba0eab60Smacallan # support. Future versions do this automatically, but an explicit c++rt0.o 15468ba0eab60Smacallan # does not break anything, and helps significantly (at the cost of a little 15469ba0eab60Smacallan # extra space). 15470ba0eab60Smacallan freebsd2.2*) 15471aee7dae4Smrg archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15472aee7dae4Smrg hardcode_libdir_flag_spec='-R$libdir' 15473aee7dae4Smrg hardcode_direct=yes 15474aee7dae4Smrg hardcode_shlibpath_var=no 15475ba0eab60Smacallan ;; 15476ba0eab60Smacallan 15477ba0eab60Smacallan # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15478aee7dae4Smrg freebsd2.*) 15479aee7dae4Smrg archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15480aee7dae4Smrg hardcode_direct=yes 15481aee7dae4Smrg hardcode_minus_L=yes 15482aee7dae4Smrg hardcode_shlibpath_var=no 15483ba0eab60Smacallan ;; 15484ba0eab60Smacallan 15485ba0eab60Smacallan # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15486aee7dae4Smrg freebsd* | dragonfly*) 15487aee7dae4Smrg archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15488aee7dae4Smrg hardcode_libdir_flag_spec='-R$libdir' 15489aee7dae4Smrg hardcode_direct=yes 15490aee7dae4Smrg hardcode_shlibpath_var=no 15491ba0eab60Smacallan ;; 15492ba0eab60Smacallan 15493ba0eab60Smacallan hpux9*) 15494ba0eab60Smacallan if test "$GCC" = yes; then 15495aee7dae4Smrg archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 15496ba0eab60Smacallan else 15497aee7dae4Smrg archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 15498ba0eab60Smacallan fi 15499aee7dae4Smrg hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 15500aee7dae4Smrg hardcode_libdir_separator=: 15501aee7dae4Smrg hardcode_direct=yes 15502ba0eab60Smacallan 15503ba0eab60Smacallan # hardcode_minus_L: Not really in the search PATH, 15504ba0eab60Smacallan # but as the default location of the library. 15505aee7dae4Smrg hardcode_minus_L=yes 15506aee7dae4Smrg export_dynamic_flag_spec='${wl}-E' 15507ba0eab60Smacallan ;; 15508ba0eab60Smacallan 15509ba0eab60Smacallan hpux10*) 15510aee7dae4Smrg if test "$GCC" = yes && test "$with_gnu_ld" = no; then 15511aee7dae4Smrg archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15512ba0eab60Smacallan else 15513aee7dae4Smrg archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15514ba0eab60Smacallan fi 15515ba0eab60Smacallan if test "$with_gnu_ld" = no; then 15516aee7dae4Smrg hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 15517aee7dae4Smrg hardcode_libdir_separator=: 15518aee7dae4Smrg hardcode_direct=yes 15519aee7dae4Smrg hardcode_direct_absolute=yes 15520aee7dae4Smrg export_dynamic_flag_spec='${wl}-E' 15521ba0eab60Smacallan # hardcode_minus_L: Not really in the search PATH, 15522ba0eab60Smacallan # but as the default location of the library. 15523aee7dae4Smrg hardcode_minus_L=yes 15524ba0eab60Smacallan fi 15525ba0eab60Smacallan ;; 15526ba0eab60Smacallan 15527ba0eab60Smacallan hpux11*) 15528aee7dae4Smrg if test "$GCC" = yes && test "$with_gnu_ld" = no; then 15529ba0eab60Smacallan case $host_cpu in 15530ba0eab60Smacallan hppa*64*) 15531aee7dae4Smrg archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15532ba0eab60Smacallan ;; 15533ba0eab60Smacallan ia64*) 15534aee7dae4Smrg archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15535ba0eab60Smacallan ;; 15536ba0eab60Smacallan *) 15537aee7dae4Smrg archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15538ba0eab60Smacallan ;; 15539ba0eab60Smacallan esac 15540ba0eab60Smacallan else 15541ba0eab60Smacallan case $host_cpu in 15542ba0eab60Smacallan hppa*64*) 15543aee7dae4Smrg archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15544ba0eab60Smacallan ;; 15545ba0eab60Smacallan ia64*) 15546aee7dae4Smrg archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15547ba0eab60Smacallan ;; 15548ba0eab60Smacallan *) 15549aee7dae4Smrg 15550aee7dae4Smrg # Older versions of the 11.00 compiler do not understand -b yet 15551aee7dae4Smrg # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 15552aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 15553aee7dae4Smrg$as_echo_n "checking if $CC understands -b... " >&6; } 15554aee7dae4Smrgif ${lt_cv_prog_compiler__b+:} false; then : 15555aee7dae4Smrg $as_echo_n "(cached) " >&6 15556aee7dae4Smrgelse 15557aee7dae4Smrg lt_cv_prog_compiler__b=no 15558aee7dae4Smrg save_LDFLAGS="$LDFLAGS" 15559aee7dae4Smrg LDFLAGS="$LDFLAGS -b" 15560aee7dae4Smrg echo "$lt_simple_link_test_code" > conftest.$ac_ext 15561aee7dae4Smrg if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15562aee7dae4Smrg # The linker can only warn and ignore the option if not recognized 15563aee7dae4Smrg # So say no if there are warnings 15564aee7dae4Smrg if test -s conftest.err; then 15565aee7dae4Smrg # Append any errors to the config.log. 15566aee7dae4Smrg cat conftest.err 1>&5 15567aee7dae4Smrg $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15568aee7dae4Smrg $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15569aee7dae4Smrg if diff conftest.exp conftest.er2 >/dev/null; then 15570aee7dae4Smrg lt_cv_prog_compiler__b=yes 15571aee7dae4Smrg fi 15572aee7dae4Smrg else 15573aee7dae4Smrg lt_cv_prog_compiler__b=yes 15574aee7dae4Smrg fi 15575aee7dae4Smrg fi 15576aee7dae4Smrg $RM -r conftest* 15577aee7dae4Smrg LDFLAGS="$save_LDFLAGS" 15578aee7dae4Smrg 15579aee7dae4Smrgfi 15580aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 15581aee7dae4Smrg$as_echo "$lt_cv_prog_compiler__b" >&6; } 15582aee7dae4Smrg 15583aee7dae4Smrgif test x"$lt_cv_prog_compiler__b" = xyes; then 15584aee7dae4Smrg archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15585aee7dae4Smrgelse 15586aee7dae4Smrg archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15587aee7dae4Smrgfi 15588aee7dae4Smrg 15589ba0eab60Smacallan ;; 15590ba0eab60Smacallan esac 15591ba0eab60Smacallan fi 15592ba0eab60Smacallan if test "$with_gnu_ld" = no; then 15593aee7dae4Smrg hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 15594aee7dae4Smrg hardcode_libdir_separator=: 15595ba0eab60Smacallan 15596ba0eab60Smacallan case $host_cpu in 15597ba0eab60Smacallan hppa*64*|ia64*) 15598aee7dae4Smrg hardcode_direct=no 15599aee7dae4Smrg hardcode_shlibpath_var=no 15600ba0eab60Smacallan ;; 15601ba0eab60Smacallan *) 15602aee7dae4Smrg hardcode_direct=yes 15603aee7dae4Smrg hardcode_direct_absolute=yes 15604aee7dae4Smrg export_dynamic_flag_spec='${wl}-E' 15605ba0eab60Smacallan 15606ba0eab60Smacallan # hardcode_minus_L: Not really in the search PATH, 15607ba0eab60Smacallan # but as the default location of the library. 15608aee7dae4Smrg hardcode_minus_L=yes 15609ba0eab60Smacallan ;; 15610ba0eab60Smacallan esac 15611ba0eab60Smacallan fi 15612ba0eab60Smacallan ;; 15613ba0eab60Smacallan 15614ba0eab60Smacallan irix5* | irix6* | nonstopux*) 15615ba0eab60Smacallan if test "$GCC" = yes; then 15616aee7dae4Smrg archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 15617aee7dae4Smrg # Try to use the -exported_symbol ld option, if it does not 15618aee7dae4Smrg # work, assume that -exports_file does not work either and 15619aee7dae4Smrg # implicitly export all symbols. 15620aee7dae4Smrg # This should be the same for all languages, so no per-tag cache variable. 15621aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 15622aee7dae4Smrg$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 15623aee7dae4Smrgif ${lt_cv_irix_exported_symbol+:} false; then : 15624aee7dae4Smrg $as_echo_n "(cached) " >&6 15625aee7dae4Smrgelse 15626aee7dae4Smrg save_LDFLAGS="$LDFLAGS" 15627aee7dae4Smrg LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 15628aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15629aee7dae4Smrg/* end confdefs.h. */ 15630aee7dae4Smrgint foo (void) { return 0; } 15631aee7dae4Smrg_ACEOF 15632aee7dae4Smrgif ac_fn_c_try_link "$LINENO"; then : 15633aee7dae4Smrg lt_cv_irix_exported_symbol=yes 15634aee7dae4Smrgelse 15635aee7dae4Smrg lt_cv_irix_exported_symbol=no 15636aee7dae4Smrgfi 15637aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext \ 15638aee7dae4Smrg conftest$ac_exeext conftest.$ac_ext 15639aee7dae4Smrg LDFLAGS="$save_LDFLAGS" 15640aee7dae4Smrgfi 15641aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 15642aee7dae4Smrg$as_echo "$lt_cv_irix_exported_symbol" >&6; } 15643aee7dae4Smrg if test "$lt_cv_irix_exported_symbol" = yes; then 15644aee7dae4Smrg archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 15645aee7dae4Smrg fi 15646ba0eab60Smacallan else 15647aee7dae4Smrg archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 15648aee7dae4Smrg archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 15649ba0eab60Smacallan fi 15650aee7dae4Smrg archive_cmds_need_lc='no' 15651aee7dae4Smrg hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15652aee7dae4Smrg hardcode_libdir_separator=: 15653aee7dae4Smrg inherit_rpath=yes 15654aee7dae4Smrg link_all_deplibs=yes 15655ba0eab60Smacallan ;; 15656ba0eab60Smacallan 15657aee7dae4Smrg netbsd* | netbsdelf*-gnu) 15658aee7dae4Smrg if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15659aee7dae4Smrg archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15660ba0eab60Smacallan else 15661aee7dae4Smrg archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15662ba0eab60Smacallan fi 15663aee7dae4Smrg hardcode_libdir_flag_spec='-R$libdir' 15664aee7dae4Smrg hardcode_direct=yes 15665aee7dae4Smrg hardcode_shlibpath_var=no 15666ba0eab60Smacallan ;; 15667ba0eab60Smacallan 15668ba0eab60Smacallan newsos6) 15669aee7dae4Smrg archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15670aee7dae4Smrg hardcode_direct=yes 15671aee7dae4Smrg hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15672aee7dae4Smrg hardcode_libdir_separator=: 15673aee7dae4Smrg hardcode_shlibpath_var=no 15674aee7dae4Smrg ;; 15675aee7dae4Smrg 15676aee7dae4Smrg *nto* | *qnx*) 15677ba0eab60Smacallan ;; 15678ba0eab60Smacallan 15679ba0eab60Smacallan openbsd*) 15680aee7dae4Smrg if test -f /usr/libexec/ld.so; then 15681aee7dae4Smrg hardcode_direct=yes 15682aee7dae4Smrg hardcode_shlibpath_var=no 15683aee7dae4Smrg hardcode_direct_absolute=yes 15684aee7dae4Smrg if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15685aee7dae4Smrg archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15686aee7dae4Smrg archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15687aee7dae4Smrg hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 15688aee7dae4Smrg export_dynamic_flag_spec='${wl}-E' 15689aee7dae4Smrg else 15690aee7dae4Smrg case $host_os in 15691aee7dae4Smrg openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15692aee7dae4Smrg archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15693aee7dae4Smrg hardcode_libdir_flag_spec='-R$libdir' 15694aee7dae4Smrg ;; 15695aee7dae4Smrg *) 15696aee7dae4Smrg archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15697aee7dae4Smrg hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 15698aee7dae4Smrg ;; 15699aee7dae4Smrg esac 15700aee7dae4Smrg fi 15701ba0eab60Smacallan else 15702aee7dae4Smrg ld_shlibs=no 15703ba0eab60Smacallan fi 15704ba0eab60Smacallan ;; 15705ba0eab60Smacallan 15706ba0eab60Smacallan os2*) 15707aee7dae4Smrg hardcode_libdir_flag_spec='-L$libdir' 15708aee7dae4Smrg hardcode_minus_L=yes 15709aee7dae4Smrg allow_undefined_flag=unsupported 15710aee7dae4Smrg archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 15711aee7dae4Smrg old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15712ba0eab60Smacallan ;; 15713ba0eab60Smacallan 15714ba0eab60Smacallan osf3*) 15715ba0eab60Smacallan if test "$GCC" = yes; then 15716aee7dae4Smrg allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 15717aee7dae4Smrg archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 15718ba0eab60Smacallan else 15719aee7dae4Smrg allow_undefined_flag=' -expect_unresolved \*' 15720aee7dae4Smrg archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 15721ba0eab60Smacallan fi 15722aee7dae4Smrg archive_cmds_need_lc='no' 15723aee7dae4Smrg hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15724aee7dae4Smrg hardcode_libdir_separator=: 15725ba0eab60Smacallan ;; 15726ba0eab60Smacallan 15727ba0eab60Smacallan osf4* | osf5*) # as osf3* with the addition of -msym flag 15728ba0eab60Smacallan if test "$GCC" = yes; then 15729aee7dae4Smrg allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 15730aee7dae4Smrg archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 15731aee7dae4Smrg hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15732ba0eab60Smacallan else 15733aee7dae4Smrg allow_undefined_flag=' -expect_unresolved \*' 15734aee7dae4Smrg archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 15735aee7dae4Smrg archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 15736aee7dae4Smrg $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 15737ba0eab60Smacallan 15738ba0eab60Smacallan # Both c and cxx compiler support -rpath directly 15739aee7dae4Smrg hardcode_libdir_flag_spec='-rpath $libdir' 15740ba0eab60Smacallan fi 15741aee7dae4Smrg archive_cmds_need_lc='no' 15742aee7dae4Smrg hardcode_libdir_separator=: 15743ba0eab60Smacallan ;; 15744ba0eab60Smacallan 15745ba0eab60Smacallan solaris*) 15746aee7dae4Smrg no_undefined_flag=' -z defs' 15747ba0eab60Smacallan if test "$GCC" = yes; then 15748ba0eab60Smacallan wlarc='${wl}' 15749aee7dae4Smrg archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15750aee7dae4Smrg archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15751aee7dae4Smrg $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 15752ba0eab60Smacallan else 15753aee7dae4Smrg case `$CC -V 2>&1` in 15754aee7dae4Smrg *"Compilers 5.0"*) 15755aee7dae4Smrg wlarc='' 15756aee7dae4Smrg archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15757aee7dae4Smrg archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15758aee7dae4Smrg $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 15759aee7dae4Smrg ;; 15760aee7dae4Smrg *) 15761aee7dae4Smrg wlarc='${wl}' 15762aee7dae4Smrg archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 15763aee7dae4Smrg archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15764aee7dae4Smrg $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 15765aee7dae4Smrg ;; 15766aee7dae4Smrg esac 15767ba0eab60Smacallan fi 15768aee7dae4Smrg hardcode_libdir_flag_spec='-R$libdir' 15769aee7dae4Smrg hardcode_shlibpath_var=no 15770ba0eab60Smacallan case $host_os in 15771ba0eab60Smacallan solaris2.[0-5] | solaris2.[0-5].*) ;; 15772ba0eab60Smacallan *) 15773aee7dae4Smrg # The compiler driver will combine and reorder linker options, 15774aee7dae4Smrg # but understands `-z linker_flag'. GCC discards it without `$wl', 15775aee7dae4Smrg # but is careful enough not to reorder. 15776aee7dae4Smrg # Supported since Solaris 2.6 (maybe 2.5.1?) 15777aee7dae4Smrg if test "$GCC" = yes; then 15778aee7dae4Smrg whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 15779aee7dae4Smrg else 15780aee7dae4Smrg whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 15781aee7dae4Smrg fi 15782aee7dae4Smrg ;; 15783ba0eab60Smacallan esac 15784aee7dae4Smrg link_all_deplibs=yes 15785ba0eab60Smacallan ;; 15786ba0eab60Smacallan 15787ba0eab60Smacallan sunos4*) 15788ba0eab60Smacallan if test "x$host_vendor" = xsequent; then 15789ba0eab60Smacallan # Use $CC to link under sequent, because it throws in some extra .o 15790ba0eab60Smacallan # files that make .init and .fini sections work. 15791aee7dae4Smrg archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15792ba0eab60Smacallan else 15793aee7dae4Smrg archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15794ba0eab60Smacallan fi 15795aee7dae4Smrg hardcode_libdir_flag_spec='-L$libdir' 15796aee7dae4Smrg hardcode_direct=yes 15797aee7dae4Smrg hardcode_minus_L=yes 15798aee7dae4Smrg hardcode_shlibpath_var=no 15799ba0eab60Smacallan ;; 15800ba0eab60Smacallan 15801ba0eab60Smacallan sysv4) 15802ba0eab60Smacallan case $host_vendor in 15803ba0eab60Smacallan sni) 15804aee7dae4Smrg archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15805aee7dae4Smrg hardcode_direct=yes # is this really true??? 15806ba0eab60Smacallan ;; 15807ba0eab60Smacallan siemens) 15808ba0eab60Smacallan ## LD is ld it makes a PLAMLIB 15809ba0eab60Smacallan ## CC just makes a GrossModule. 15810aee7dae4Smrg archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15811aee7dae4Smrg reload_cmds='$CC -r -o $output$reload_objs' 15812aee7dae4Smrg hardcode_direct=no 15813ba0eab60Smacallan ;; 15814ba0eab60Smacallan motorola) 15815aee7dae4Smrg archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15816aee7dae4Smrg hardcode_direct=no #Motorola manual says yes, but my tests say they lie 15817ba0eab60Smacallan ;; 15818ba0eab60Smacallan esac 15819ba0eab60Smacallan runpath_var='LD_RUN_PATH' 15820aee7dae4Smrg hardcode_shlibpath_var=no 15821ba0eab60Smacallan ;; 15822ba0eab60Smacallan 15823ba0eab60Smacallan sysv4.3*) 15824aee7dae4Smrg archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15825aee7dae4Smrg hardcode_shlibpath_var=no 15826aee7dae4Smrg export_dynamic_flag_spec='-Bexport' 15827ba0eab60Smacallan ;; 15828ba0eab60Smacallan 15829ba0eab60Smacallan sysv4*MP*) 15830ba0eab60Smacallan if test -d /usr/nec; then 15831aee7dae4Smrg archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15832aee7dae4Smrg hardcode_shlibpath_var=no 15833ba0eab60Smacallan runpath_var=LD_RUN_PATH 15834ba0eab60Smacallan hardcode_runpath_var=yes 15835aee7dae4Smrg ld_shlibs=yes 15836ba0eab60Smacallan fi 15837ba0eab60Smacallan ;; 15838ba0eab60Smacallan 15839aee7dae4Smrg sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15840aee7dae4Smrg no_undefined_flag='${wl}-z,text' 15841aee7dae4Smrg archive_cmds_need_lc=no 15842aee7dae4Smrg hardcode_shlibpath_var=no 15843ba0eab60Smacallan runpath_var='LD_RUN_PATH' 15844ba0eab60Smacallan 15845ba0eab60Smacallan if test "$GCC" = yes; then 15846aee7dae4Smrg archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15847aee7dae4Smrg archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15848ba0eab60Smacallan else 15849aee7dae4Smrg archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15850aee7dae4Smrg archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15851ba0eab60Smacallan fi 15852ba0eab60Smacallan ;; 15853ba0eab60Smacallan 15854ba0eab60Smacallan sysv5* | sco3.2v5* | sco5v6*) 15855ba0eab60Smacallan # Note: We can NOT use -z defs as we might desire, because we do not 15856ba0eab60Smacallan # link with -lc, and that would cause any symbols used from libc to 15857ba0eab60Smacallan # always be unresolved, which means just about no library would 15858ba0eab60Smacallan # ever link correctly. If we're not using GNU ld we use -z text 15859ba0eab60Smacallan # though, which does catch some bad symbols but isn't as heavy-handed 15860ba0eab60Smacallan # as -z defs. 15861aee7dae4Smrg no_undefined_flag='${wl}-z,text' 15862aee7dae4Smrg allow_undefined_flag='${wl}-z,nodefs' 15863aee7dae4Smrg archive_cmds_need_lc=no 15864aee7dae4Smrg hardcode_shlibpath_var=no 15865aee7dae4Smrg hardcode_libdir_flag_spec='${wl}-R,$libdir' 15866aee7dae4Smrg hardcode_libdir_separator=':' 15867aee7dae4Smrg link_all_deplibs=yes 15868aee7dae4Smrg export_dynamic_flag_spec='${wl}-Bexport' 15869ba0eab60Smacallan runpath_var='LD_RUN_PATH' 15870ba0eab60Smacallan 15871ba0eab60Smacallan if test "$GCC" = yes; then 15872aee7dae4Smrg archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15873aee7dae4Smrg archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15874ba0eab60Smacallan else 15875aee7dae4Smrg archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15876aee7dae4Smrg archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15877ba0eab60Smacallan fi 15878ba0eab60Smacallan ;; 15879ba0eab60Smacallan 15880ba0eab60Smacallan uts4*) 15881aee7dae4Smrg archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15882aee7dae4Smrg hardcode_libdir_flag_spec='-L$libdir' 15883aee7dae4Smrg hardcode_shlibpath_var=no 15884ba0eab60Smacallan ;; 15885ba0eab60Smacallan 15886ba0eab60Smacallan *) 15887aee7dae4Smrg ld_shlibs=no 15888ba0eab60Smacallan ;; 15889ba0eab60Smacallan esac 15890aee7dae4Smrg 15891aee7dae4Smrg if test x$host_vendor = xsni; then 15892aee7dae4Smrg case $host in 15893aee7dae4Smrg sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 15894aee7dae4Smrg export_dynamic_flag_spec='${wl}-Blargedynsym' 15895aee7dae4Smrg ;; 15896aee7dae4Smrg esac 15897ba0eab60Smacallan fi 15898ba0eab60Smacallan fi 15899ba0eab60Smacallan 15900aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 15901aee7dae4Smrg$as_echo "$ld_shlibs" >&6; } 15902aee7dae4Smrgtest "$ld_shlibs" = no && can_build_shared=no 15903ba0eab60Smacallan 15904aee7dae4Smrgwith_gnu_ld=$with_gnu_ld 15905ba0eab60Smacallan 15906ba0eab60Smacallan 15907ba0eab60Smacallan 15908ba0eab60Smacallan 15909ba0eab60Smacallan 15910ba0eab60Smacallan 15911ba0eab60Smacallan 15912ba0eab60Smacallan 15913ba0eab60Smacallan 15914ba0eab60Smacallan 15915ba0eab60Smacallan 15916ba0eab60Smacallan 15917ba0eab60Smacallan 15918ba0eab60Smacallan 15919ba0eab60Smacallan 15920aee7dae4Smrg# 15921aee7dae4Smrg# Do we need to explicitly link libc? 15922aee7dae4Smrg# 15923aee7dae4Smrgcase "x$archive_cmds_need_lc" in 15924aee7dae4Smrgx|xyes) 15925aee7dae4Smrg # Assume -lc should be added 15926aee7dae4Smrg archive_cmds_need_lc=yes 15927ba0eab60Smacallan 15928aee7dae4Smrg if test "$enable_shared" = yes && test "$GCC" = yes; then 15929aee7dae4Smrg case $archive_cmds in 15930aee7dae4Smrg *'~'*) 15931aee7dae4Smrg # FIXME: we may have to deal with multi-command sequences. 15932aee7dae4Smrg ;; 15933aee7dae4Smrg '$CC '*) 15934aee7dae4Smrg # Test whether the compiler implicitly links with -lc since on some 15935aee7dae4Smrg # systems, -lgcc has to come before -lc. If gcc already passes -lc 15936aee7dae4Smrg # to ld, don't add -lc before -lgcc. 15937aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 15938aee7dae4Smrg$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15939aee7dae4Smrgif ${lt_cv_archive_cmds_need_lc+:} false; then : 15940aee7dae4Smrg $as_echo_n "(cached) " >&6 15941aee7dae4Smrgelse 15942aee7dae4Smrg $RM conftest* 15943aee7dae4Smrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15944ba0eab60Smacallan 15945aee7dae4Smrg if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15946ba0eab60Smacallan (eval $ac_compile) 2>&5 15947ba0eab60Smacallan ac_status=$? 15948aee7dae4Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15949aee7dae4Smrg test $ac_status = 0; } 2>conftest.err; then 15950aee7dae4Smrg soname=conftest 15951aee7dae4Smrg lib=conftest 15952aee7dae4Smrg libobjs=conftest.$ac_objext 15953aee7dae4Smrg deplibs= 15954aee7dae4Smrg wl=$lt_prog_compiler_wl 15955aee7dae4Smrg pic_flag=$lt_prog_compiler_pic 15956aee7dae4Smrg compiler_flags=-v 15957aee7dae4Smrg linker_flags=-v 15958aee7dae4Smrg verstring= 15959aee7dae4Smrg output_objdir=. 15960aee7dae4Smrg libname=conftest 15961aee7dae4Smrg lt_save_allow_undefined_flag=$allow_undefined_flag 15962aee7dae4Smrg allow_undefined_flag= 15963aee7dae4Smrg if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 15964aee7dae4Smrg (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 15965aee7dae4Smrg ac_status=$? 15966aee7dae4Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15967aee7dae4Smrg test $ac_status = 0; } 15968aee7dae4Smrg then 15969aee7dae4Smrg lt_cv_archive_cmds_need_lc=no 15970aee7dae4Smrg else 15971aee7dae4Smrg lt_cv_archive_cmds_need_lc=yes 15972aee7dae4Smrg fi 15973aee7dae4Smrg allow_undefined_flag=$lt_save_allow_undefined_flag 15974aee7dae4Smrg else 15975aee7dae4Smrg cat conftest.err 1>&5 15976aee7dae4Smrg fi 15977aee7dae4Smrg $RM conftest* 15978ba0eab60Smacallan 15979aee7dae4Smrgfi 15980aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 15981aee7dae4Smrg$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 15982aee7dae4Smrg archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 15983aee7dae4Smrg ;; 15984aee7dae4Smrg esac 15985ba0eab60Smacallan fi 15986ba0eab60Smacallan ;; 15987aee7dae4Smrgesac 15988aee7dae4Smrg 15989aee7dae4Smrg 15990aee7dae4Smrg 15991aee7dae4Smrg 15992aee7dae4Smrg 15993aee7dae4Smrg 15994aee7dae4Smrg 15995aee7dae4Smrg 15996aee7dae4Smrg 15997aee7dae4Smrg 15998aee7dae4Smrg 15999aee7dae4Smrg 16000aee7dae4Smrg 16001aee7dae4Smrg 16002aee7dae4Smrg 16003aee7dae4Smrg 16004aee7dae4Smrg 16005aee7dae4Smrg 16006aee7dae4Smrg 16007aee7dae4Smrg 16008aee7dae4Smrg 16009aee7dae4Smrg 16010aee7dae4Smrg 16011aee7dae4Smrg 16012aee7dae4Smrg 16013aee7dae4Smrg 16014aee7dae4Smrg 16015aee7dae4Smrg 16016aee7dae4Smrg 16017aee7dae4Smrg 16018aee7dae4Smrg 16019aee7dae4Smrg 16020aee7dae4Smrg 16021aee7dae4Smrg 16022ba0eab60Smacallan 16023ba0eab60Smacallan 16024ba0eab60Smacallan 16025ba0eab60Smacallan 16026ba0eab60Smacallan 16027ba0eab60Smacallan 16028ba0eab60Smacallan 16029ba0eab60Smacallan 16030ba0eab60Smacallan 16031ba0eab60Smacallan 16032ba0eab60Smacallan 16033ba0eab60Smacallan 16034ba0eab60Smacallan 16035ba0eab60Smacallan 16036ba0eab60Smacallan 16037ba0eab60Smacallan 16038ba0eab60Smacallan 16039ba0eab60Smacallan 16040ba0eab60Smacallan 16041ba0eab60Smacallan 16042ba0eab60Smacallan 16043ba0eab60Smacallan 16044ba0eab60Smacallan 16045ba0eab60Smacallan 16046ba0eab60Smacallan 16047ba0eab60Smacallan 16048ba0eab60Smacallan 16049ba0eab60Smacallan 16050ba0eab60Smacallan 16051ba0eab60Smacallan 16052ba0eab60Smacallan 16053ba0eab60Smacallan 16054ba0eab60Smacallan 16055ba0eab60Smacallan 16056ba0eab60Smacallan 16057ba0eab60Smacallan 16058ba0eab60Smacallan 16059ba0eab60Smacallan 16060ba0eab60Smacallan 16061ba0eab60Smacallan 16062ba0eab60Smacallan 16063ba0eab60Smacallan 16064ba0eab60Smacallan 16065ba0eab60Smacallan 16066ba0eab60Smacallan 16067ba0eab60Smacallan 16068ba0eab60Smacallan 16069ba0eab60Smacallan 16070ba0eab60Smacallan 16071ba0eab60Smacallan 16072ba0eab60Smacallan 16073ba0eab60Smacallan 16074ba0eab60Smacallan 16075ba0eab60Smacallan 16076ba0eab60Smacallan 16077ba0eab60Smacallan 16078ba0eab60Smacallan 16079ba0eab60Smacallan 16080ba0eab60Smacallan 16081ba0eab60Smacallan 16082ba0eab60Smacallan 16083ba0eab60Smacallan 16084ba0eab60Smacallan 16085ba0eab60Smacallan 16086ba0eab60Smacallan 16087ba0eab60Smacallan 16088ba0eab60Smacallan 16089ba0eab60Smacallan 16090ba0eab60Smacallan 16091ba0eab60Smacallan 16092ba0eab60Smacallan 16093ba0eab60Smacallan 16094ba0eab60Smacallan 16095ba0eab60Smacallan 16096ba0eab60Smacallan 16097ba0eab60Smacallan 16098ba0eab60Smacallan 16099ba0eab60Smacallan 16100ba0eab60Smacallan 16101ba0eab60Smacallan 16102ba0eab60Smacallan 16103ba0eab60Smacallan 16104ba0eab60Smacallan 16105ba0eab60Smacallan 16106ba0eab60Smacallan 16107ba0eab60Smacallan 16108ba0eab60Smacallan 16109ba0eab60Smacallan 16110ba0eab60Smacallan 16111ba0eab60Smacallan 16112ba0eab60Smacallan 16113ba0eab60Smacallan 16114ba0eab60Smacallan 16115ba0eab60Smacallan 16116ba0eab60Smacallan 16117ba0eab60Smacallan 16118ba0eab60Smacallan 16119ba0eab60Smacallan 16120ba0eab60Smacallan 16121ba0eab60Smacallan 16122ba0eab60Smacallan 16123ba0eab60Smacallan 16124ba0eab60Smacallan 16125ba0eab60Smacallan 16126ba0eab60Smacallan 16127ba0eab60Smacallan 16128ba0eab60Smacallan 16129ba0eab60Smacallan 16130ba0eab60Smacallan 16131ba0eab60Smacallan 16132ba0eab60Smacallan 16133ba0eab60Smacallan 16134ba0eab60Smacallan 16135ba0eab60Smacallan 16136ba0eab60Smacallan 16137ba0eab60Smacallan 16138ba0eab60Smacallan 16139ba0eab60Smacallan 16140aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 16141aee7dae4Smrg$as_echo_n "checking dynamic linker characteristics... " >&6; } 16142ba0eab60Smacallan 16143aee7dae4Smrgif test "$GCC" = yes; then 16144aee7dae4Smrg case $host_os in 16145aee7dae4Smrg darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 16146aee7dae4Smrg *) lt_awk_arg="/^libraries:/" ;; 16147aee7dae4Smrg esac 16148aee7dae4Smrg case $host_os in 16149aee7dae4Smrg mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 16150aee7dae4Smrg *) lt_sed_strip_eq="s,=/,/,g" ;; 16151aee7dae4Smrg esac 16152aee7dae4Smrg lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 16153aee7dae4Smrg case $lt_search_path_spec in 16154aee7dae4Smrg *\;*) 16155aee7dae4Smrg # if the path contains ";" then we assume it to be the separator 16156aee7dae4Smrg # otherwise default to the standard path separator (i.e. ":") - it is 16157aee7dae4Smrg # assumed that no part of a normal pathname contains ";" but that should 16158aee7dae4Smrg # okay in the real world where ";" in dirpaths is itself problematic. 16159aee7dae4Smrg lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 16160aee7dae4Smrg ;; 16161aee7dae4Smrg *) 16162aee7dae4Smrg lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 16163aee7dae4Smrg ;; 16164aee7dae4Smrg esac 16165aee7dae4Smrg # Ok, now we have the path, separated by spaces, we can step through it 16166aee7dae4Smrg # and add multilib dir if necessary. 16167aee7dae4Smrg lt_tmp_lt_search_path_spec= 16168aee7dae4Smrg lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 16169aee7dae4Smrg for lt_sys_path in $lt_search_path_spec; do 16170aee7dae4Smrg if test -d "$lt_sys_path/$lt_multi_os_dir"; then 16171aee7dae4Smrg lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 16172aee7dae4Smrg else 16173aee7dae4Smrg test -d "$lt_sys_path" && \ 16174aee7dae4Smrg lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 16175aee7dae4Smrg fi 16176aee7dae4Smrg done 16177aee7dae4Smrg lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 16178aee7dae4SmrgBEGIN {RS=" "; FS="/|\n";} { 16179aee7dae4Smrg lt_foo=""; 16180aee7dae4Smrg lt_count=0; 16181aee7dae4Smrg for (lt_i = NF; lt_i > 0; lt_i--) { 16182aee7dae4Smrg if ($lt_i != "" && $lt_i != ".") { 16183aee7dae4Smrg if ($lt_i == "..") { 16184aee7dae4Smrg lt_count++; 16185aee7dae4Smrg } else { 16186aee7dae4Smrg if (lt_count == 0) { 16187aee7dae4Smrg lt_foo="/" $lt_i lt_foo; 16188aee7dae4Smrg } else { 16189aee7dae4Smrg lt_count--; 16190aee7dae4Smrg } 16191aee7dae4Smrg } 16192aee7dae4Smrg } 16193aee7dae4Smrg } 16194aee7dae4Smrg if (lt_foo != "") { lt_freq[lt_foo]++; } 16195aee7dae4Smrg if (lt_freq[lt_foo] == 1) { print lt_foo; } 16196aee7dae4Smrg}'` 16197aee7dae4Smrg # AWK program above erroneously prepends '/' to C:/dos/paths 16198aee7dae4Smrg # for these hosts. 16199aee7dae4Smrg case $host_os in 16200aee7dae4Smrg mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 16201aee7dae4Smrg $SED 's,/\([A-Za-z]:\),\1,g'` ;; 16202aee7dae4Smrg esac 16203aee7dae4Smrg sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 16204ba0eab60Smacallanelse 16205aee7dae4Smrg sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16206ba0eab60Smacallanfi 16207aee7dae4Smrglibrary_names_spec= 16208aee7dae4Smrglibname_spec='lib$name' 16209aee7dae4Smrgsoname_spec= 16210aee7dae4Smrgshrext_cmds=".so" 16211aee7dae4Smrgpostinstall_cmds= 16212aee7dae4Smrgpostuninstall_cmds= 16213aee7dae4Smrgfinish_cmds= 16214aee7dae4Smrgfinish_eval= 16215aee7dae4Smrgshlibpath_var= 16216aee7dae4Smrgshlibpath_overrides_runpath=unknown 16217aee7dae4Smrgversion_type=none 16218aee7dae4Smrgdynamic_linker="$host_os ld.so" 16219aee7dae4Smrgsys_lib_dlsearch_path_spec="/lib /usr/lib" 16220aee7dae4Smrgneed_lib_prefix=unknown 16221aee7dae4Smrghardcode_into_libs=no 16222ba0eab60Smacallan 16223aee7dae4Smrg# when you set need_version to no, make sure it does not cause -set_version 16224aee7dae4Smrg# flags to be left without arguments 16225aee7dae4Smrgneed_version=unknown 16226ba0eab60Smacallan 16227aee7dae4Smrgcase $host_os in 16228aee7dae4Smrgaix3*) 16229aee7dae4Smrg version_type=linux # correct to gnu/linux during the next big refactor 16230aee7dae4Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 16231aee7dae4Smrg shlibpath_var=LIBPATH 16232ba0eab60Smacallan 16233aee7dae4Smrg # AIX 3 has no versioning support, so we append a major version to the name. 16234aee7dae4Smrg soname_spec='${libname}${release}${shared_ext}$major' 16235aee7dae4Smrg ;; 16236ba0eab60Smacallan 16237aee7dae4Smrgaix[4-9]*) 16238aee7dae4Smrg version_type=linux # correct to gnu/linux during the next big refactor 16239aee7dae4Smrg need_lib_prefix=no 16240aee7dae4Smrg need_version=no 16241aee7dae4Smrg hardcode_into_libs=yes 16242aee7dae4Smrg if test "$host_cpu" = ia64; then 16243aee7dae4Smrg # AIX 5 supports IA64 16244aee7dae4Smrg library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 16245aee7dae4Smrg shlibpath_var=LD_LIBRARY_PATH 16246aee7dae4Smrg else 16247aee7dae4Smrg # With GCC up to 2.95.x, collect2 would create an import file 16248aee7dae4Smrg # for dependence libraries. The import file would start with 16249aee7dae4Smrg # the line `#! .'. This would cause the generated library to 16250aee7dae4Smrg # depend on `.', always an invalid library. This was fixed in 16251aee7dae4Smrg # development snapshots of GCC prior to 3.0. 16252aee7dae4Smrg case $host_os in 16253aee7dae4Smrg aix4 | aix4.[01] | aix4.[01].*) 16254aee7dae4Smrg if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16255aee7dae4Smrg echo ' yes ' 16256aee7dae4Smrg echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 16257aee7dae4Smrg : 16258aee7dae4Smrg else 16259aee7dae4Smrg can_build_shared=no 16260aee7dae4Smrg fi 16261aee7dae4Smrg ;; 16262aee7dae4Smrg esac 16263aee7dae4Smrg # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 16264aee7dae4Smrg # soname into executable. Probably we can add versioning support to 16265aee7dae4Smrg # collect2, so additional links can be useful in future. 16266aee7dae4Smrg if test "$aix_use_runtimelinking" = yes; then 16267aee7dae4Smrg # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16268aee7dae4Smrg # instead of lib<name>.a to let people know that these are not 16269aee7dae4Smrg # typical AIX shared libraries. 16270aee7dae4Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16271aee7dae4Smrg else 16272aee7dae4Smrg # We preserve .a as extension for shared libraries through AIX4.2 16273aee7dae4Smrg # and later when we are not doing run time linking. 16274aee7dae4Smrg library_names_spec='${libname}${release}.a $libname.a' 16275aee7dae4Smrg soname_spec='${libname}${release}${shared_ext}$major' 16276aee7dae4Smrg fi 16277aee7dae4Smrg shlibpath_var=LIBPATH 16278aee7dae4Smrg fi 16279aee7dae4Smrg ;; 16280ba0eab60Smacallan 16281aee7dae4Smrgamigaos*) 16282aee7dae4Smrg case $host_cpu in 16283aee7dae4Smrg powerpc) 16284aee7dae4Smrg # Since July 2007 AmigaOS4 officially supports .so libraries. 16285aee7dae4Smrg # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 16286aee7dae4Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16287aee7dae4Smrg ;; 16288aee7dae4Smrg m68k) 16289aee7dae4Smrg library_names_spec='$libname.ixlibrary $libname.a' 16290aee7dae4Smrg # Create ${libname}_ixlibrary.a entries in /sys/libs. 16291aee7dae4Smrg finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 16292aee7dae4Smrg ;; 16293aee7dae4Smrg esac 16294aee7dae4Smrg ;; 16295ba0eab60Smacallan 16296aee7dae4Smrgbeos*) 16297aee7dae4Smrg library_names_spec='${libname}${shared_ext}' 16298aee7dae4Smrg dynamic_linker="$host_os ld.so" 16299aee7dae4Smrg shlibpath_var=LIBRARY_PATH 16300aee7dae4Smrg ;; 16301ba0eab60Smacallan 16302aee7dae4Smrgbsdi[45]*) 16303aee7dae4Smrg version_type=linux # correct to gnu/linux during the next big refactor 16304aee7dae4Smrg need_version=no 16305aee7dae4Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16306aee7dae4Smrg soname_spec='${libname}${release}${shared_ext}$major' 16307aee7dae4Smrg finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16308aee7dae4Smrg shlibpath_var=LD_LIBRARY_PATH 16309aee7dae4Smrg sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16310aee7dae4Smrg sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16311aee7dae4Smrg # the default ld.so.conf also contains /usr/contrib/lib and 16312aee7dae4Smrg # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16313aee7dae4Smrg # libtool to hard-code these into programs 16314aee7dae4Smrg ;; 16315ba0eab60Smacallan 16316aee7dae4Smrgcygwin* | mingw* | pw32* | cegcc*) 16317aee7dae4Smrg version_type=windows 16318aee7dae4Smrg shrext_cmds=".dll" 16319aee7dae4Smrg need_version=no 16320aee7dae4Smrg need_lib_prefix=no 16321ba0eab60Smacallan 16322aee7dae4Smrg case $GCC,$cc_basename in 16323aee7dae4Smrg yes,*) 16324aee7dae4Smrg # gcc 16325aee7dae4Smrg library_names_spec='$libname.dll.a' 16326aee7dae4Smrg # DLL is installed to $(libdir)/../bin by postinstall_cmds 16327aee7dae4Smrg postinstall_cmds='base_file=`basename \${file}`~ 16328aee7dae4Smrg dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 16329aee7dae4Smrg dldir=$destdir/`dirname \$dlpath`~ 16330aee7dae4Smrg test -d \$dldir || mkdir -p \$dldir~ 16331aee7dae4Smrg $install_prog $dir/$dlname \$dldir/$dlname~ 16332aee7dae4Smrg chmod a+x \$dldir/$dlname~ 16333aee7dae4Smrg if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16334aee7dae4Smrg eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16335aee7dae4Smrg fi' 16336aee7dae4Smrg postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16337aee7dae4Smrg dlpath=$dir/\$dldll~ 16338aee7dae4Smrg $RM \$dlpath' 16339aee7dae4Smrg shlibpath_overrides_runpath=yes 16340ba0eab60Smacallan 16341aee7dae4Smrg case $host_os in 16342aee7dae4Smrg cygwin*) 16343aee7dae4Smrg # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16344aee7dae4Smrg soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16345ba0eab60Smacallan 16346aee7dae4Smrg sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 16347aee7dae4Smrg ;; 16348aee7dae4Smrg mingw* | cegcc*) 16349aee7dae4Smrg # MinGW DLLs use traditional 'lib' prefix 16350aee7dae4Smrg soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16351aee7dae4Smrg ;; 16352aee7dae4Smrg pw32*) 16353aee7dae4Smrg # pw32 DLLs use 'pw' prefix rather than 'lib' 16354aee7dae4Smrg library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16355aee7dae4Smrg ;; 16356aee7dae4Smrg esac 16357aee7dae4Smrg dynamic_linker='Win32 ld.exe' 16358aee7dae4Smrg ;; 16359ba0eab60Smacallan 16360aee7dae4Smrg *,cl*) 16361aee7dae4Smrg # Native MSVC 16362aee7dae4Smrg libname_spec='$name' 16363aee7dae4Smrg soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16364aee7dae4Smrg library_names_spec='${libname}.dll.lib' 16365ba0eab60Smacallan 16366aee7dae4Smrg case $build_os in 16367aee7dae4Smrg mingw*) 16368aee7dae4Smrg sys_lib_search_path_spec= 16369aee7dae4Smrg lt_save_ifs=$IFS 16370aee7dae4Smrg IFS=';' 16371aee7dae4Smrg for lt_path in $LIB 16372aee7dae4Smrg do 16373aee7dae4Smrg IFS=$lt_save_ifs 16374aee7dae4Smrg # Let DOS variable expansion print the short 8.3 style file name. 16375aee7dae4Smrg lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 16376aee7dae4Smrg sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 16377aee7dae4Smrg done 16378aee7dae4Smrg IFS=$lt_save_ifs 16379aee7dae4Smrg # Convert to MSYS style. 16380aee7dae4Smrg sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 16381aee7dae4Smrg ;; 16382aee7dae4Smrg cygwin*) 16383aee7dae4Smrg # Convert to unix form, then to dos form, then back to unix form 16384aee7dae4Smrg # but this time dos style (no spaces!) so that the unix form looks 16385aee7dae4Smrg # like /cygdrive/c/PROGRA~1:/cygdr... 16386aee7dae4Smrg sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 16387aee7dae4Smrg sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 16388aee7dae4Smrg sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16389aee7dae4Smrg ;; 16390aee7dae4Smrg *) 16391aee7dae4Smrg sys_lib_search_path_spec="$LIB" 16392aee7dae4Smrg if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 16393aee7dae4Smrg # It is most probably a Windows format PATH. 16394aee7dae4Smrg sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16395aee7dae4Smrg else 16396aee7dae4Smrg sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16397aee7dae4Smrg fi 16398aee7dae4Smrg # FIXME: find the short name or the path components, as spaces are 16399aee7dae4Smrg # common. (e.g. "Program Files" -> "PROGRA~1") 16400aee7dae4Smrg ;; 16401aee7dae4Smrg esac 16402ba0eab60Smacallan 16403aee7dae4Smrg # DLL is installed to $(libdir)/../bin by postinstall_cmds 16404aee7dae4Smrg postinstall_cmds='base_file=`basename \${file}`~ 16405aee7dae4Smrg dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 16406aee7dae4Smrg dldir=$destdir/`dirname \$dlpath`~ 16407aee7dae4Smrg test -d \$dldir || mkdir -p \$dldir~ 16408aee7dae4Smrg $install_prog $dir/$dlname \$dldir/$dlname' 16409aee7dae4Smrg postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16410aee7dae4Smrg dlpath=$dir/\$dldll~ 16411aee7dae4Smrg $RM \$dlpath' 16412aee7dae4Smrg shlibpath_overrides_runpath=yes 16413aee7dae4Smrg dynamic_linker='Win32 link.exe' 16414aee7dae4Smrg ;; 16415ba0eab60Smacallan 16416aee7dae4Smrg *) 16417aee7dae4Smrg # Assume MSVC wrapper 16418aee7dae4Smrg library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 16419aee7dae4Smrg dynamic_linker='Win32 ld.exe' 16420aee7dae4Smrg ;; 16421aee7dae4Smrg esac 16422aee7dae4Smrg # FIXME: first we should search . and the directory the executable is in 16423aee7dae4Smrg shlibpath_var=PATH 16424aee7dae4Smrg ;; 16425ba0eab60Smacallan 16426aee7dae4Smrgdarwin* | rhapsody*) 16427aee7dae4Smrg dynamic_linker="$host_os dyld" 16428aee7dae4Smrg version_type=darwin 16429aee7dae4Smrg need_lib_prefix=no 16430aee7dae4Smrg need_version=no 16431aee7dae4Smrg library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 16432aee7dae4Smrg soname_spec='${libname}${release}${major}$shared_ext' 16433aee7dae4Smrg shlibpath_overrides_runpath=yes 16434aee7dae4Smrg shlibpath_var=DYLD_LIBRARY_PATH 16435aee7dae4Smrg shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16436ba0eab60Smacallan 16437aee7dae4Smrg sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 16438aee7dae4Smrg sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16439aee7dae4Smrg ;; 16440ba0eab60Smacallan 16441aee7dae4Smrgdgux*) 16442aee7dae4Smrg version_type=linux # correct to gnu/linux during the next big refactor 16443aee7dae4Smrg need_lib_prefix=no 16444aee7dae4Smrg need_version=no 16445aee7dae4Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 16446aee7dae4Smrg soname_spec='${libname}${release}${shared_ext}$major' 16447aee7dae4Smrg shlibpath_var=LD_LIBRARY_PATH 16448aee7dae4Smrg ;; 16449ba0eab60Smacallan 16450aee7dae4Smrgfreebsd* | dragonfly*) 16451aee7dae4Smrg # DragonFly does not have aout. When/if they implement a new 16452aee7dae4Smrg # versioning mechanism, adjust this. 16453aee7dae4Smrg if test -x /usr/bin/objformat; then 16454aee7dae4Smrg objformat=`/usr/bin/objformat` 16455aee7dae4Smrg else 16456aee7dae4Smrg case $host_os in 16457aee7dae4Smrg freebsd[23].*) objformat=aout ;; 16458aee7dae4Smrg *) objformat=elf ;; 16459aee7dae4Smrg esac 16460ba0eab60Smacallan fi 16461aee7dae4Smrg version_type=freebsd-$objformat 16462aee7dae4Smrg case $version_type in 16463aee7dae4Smrg freebsd-elf*) 16464aee7dae4Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16465aee7dae4Smrg need_version=no 16466aee7dae4Smrg need_lib_prefix=no 16467ba0eab60Smacallan ;; 16468aee7dae4Smrg freebsd-*) 16469aee7dae4Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 16470aee7dae4Smrg need_version=yes 16471ba0eab60Smacallan ;; 16472aee7dae4Smrg esac 16473aee7dae4Smrg shlibpath_var=LD_LIBRARY_PATH 16474aee7dae4Smrg case $host_os in 16475aee7dae4Smrg freebsd2.*) 16476aee7dae4Smrg shlibpath_overrides_runpath=yes 16477aee7dae4Smrg ;; 16478aee7dae4Smrg freebsd3.[01]* | freebsdelf3.[01]*) 16479aee7dae4Smrg shlibpath_overrides_runpath=yes 16480aee7dae4Smrg hardcode_into_libs=yes 16481aee7dae4Smrg ;; 16482aee7dae4Smrg freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16483aee7dae4Smrg freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16484aee7dae4Smrg shlibpath_overrides_runpath=no 16485aee7dae4Smrg hardcode_into_libs=yes 16486aee7dae4Smrg ;; 16487aee7dae4Smrg *) # from 4.6 on, and DragonFly 16488aee7dae4Smrg shlibpath_overrides_runpath=yes 16489aee7dae4Smrg hardcode_into_libs=yes 16490ba0eab60Smacallan ;; 16491ba0eab60Smacallan esac 16492aee7dae4Smrg ;; 16493ba0eab60Smacallan 16494aee7dae4Smrggnu*) 16495aee7dae4Smrg version_type=linux # correct to gnu/linux during the next big refactor 16496aee7dae4Smrg need_lib_prefix=no 16497aee7dae4Smrg need_version=no 16498aee7dae4Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16499aee7dae4Smrg soname_spec='${libname}${release}${shared_ext}$major' 16500aee7dae4Smrg shlibpath_var=LD_LIBRARY_PATH 16501aee7dae4Smrg shlibpath_overrides_runpath=no 16502aee7dae4Smrg hardcode_into_libs=yes 16503aee7dae4Smrg ;; 16504ba0eab60Smacallan 16505aee7dae4Smrghaiku*) 16506aee7dae4Smrg version_type=linux # correct to gnu/linux during the next big refactor 16507aee7dae4Smrg need_lib_prefix=no 16508aee7dae4Smrg need_version=no 16509aee7dae4Smrg dynamic_linker="$host_os runtime_loader" 16510aee7dae4Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16511aee7dae4Smrg soname_spec='${libname}${release}${shared_ext}$major' 16512aee7dae4Smrg shlibpath_var=LIBRARY_PATH 16513aee7dae4Smrg shlibpath_overrides_runpath=yes 16514aee7dae4Smrg sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 16515aee7dae4Smrg hardcode_into_libs=yes 16516aee7dae4Smrg ;; 16517ba0eab60Smacallan 16518aee7dae4Smrghpux9* | hpux10* | hpux11*) 16519aee7dae4Smrg # Give a soname corresponding to the major version so that dld.sl refuses to 16520aee7dae4Smrg # link against other versions. 16521aee7dae4Smrg version_type=sunos 16522aee7dae4Smrg need_lib_prefix=no 16523aee7dae4Smrg need_version=no 16524aee7dae4Smrg case $host_cpu in 16525aee7dae4Smrg ia64*) 16526aee7dae4Smrg shrext_cmds='.so' 16527aee7dae4Smrg hardcode_into_libs=yes 16528aee7dae4Smrg dynamic_linker="$host_os dld.so" 16529aee7dae4Smrg shlibpath_var=LD_LIBRARY_PATH 16530aee7dae4Smrg shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16531aee7dae4Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16532aee7dae4Smrg soname_spec='${libname}${release}${shared_ext}$major' 16533aee7dae4Smrg if test "X$HPUX_IA64_MODE" = X32; then 16534aee7dae4Smrg sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16535aee7dae4Smrg else 16536aee7dae4Smrg sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16537aee7dae4Smrg fi 16538aee7dae4Smrg sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16539aee7dae4Smrg ;; 16540aee7dae4Smrg hppa*64*) 16541aee7dae4Smrg shrext_cmds='.sl' 16542aee7dae4Smrg hardcode_into_libs=yes 16543aee7dae4Smrg dynamic_linker="$host_os dld.sl" 16544aee7dae4Smrg shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16545aee7dae4Smrg shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16546aee7dae4Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16547aee7dae4Smrg soname_spec='${libname}${release}${shared_ext}$major' 16548aee7dae4Smrg sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16549aee7dae4Smrg sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16550aee7dae4Smrg ;; 16551aee7dae4Smrg *) 16552aee7dae4Smrg shrext_cmds='.sl' 16553aee7dae4Smrg dynamic_linker="$host_os dld.sl" 16554aee7dae4Smrg shlibpath_var=SHLIB_PATH 16555aee7dae4Smrg shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16556aee7dae4Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16557aee7dae4Smrg soname_spec='${libname}${release}${shared_ext}$major' 16558aee7dae4Smrg ;; 16559aee7dae4Smrg esac 16560aee7dae4Smrg # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 16561aee7dae4Smrg postinstall_cmds='chmod 555 $lib' 16562aee7dae4Smrg # or fails outright, so override atomically: 16563aee7dae4Smrg install_override_mode=555 16564aee7dae4Smrg ;; 16565ba0eab60Smacallan 16566aee7dae4Smrginterix[3-9]*) 16567aee7dae4Smrg version_type=linux # correct to gnu/linux during the next big refactor 16568aee7dae4Smrg need_lib_prefix=no 16569aee7dae4Smrg need_version=no 16570aee7dae4Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16571aee7dae4Smrg soname_spec='${libname}${release}${shared_ext}$major' 16572aee7dae4Smrg dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16573aee7dae4Smrg shlibpath_var=LD_LIBRARY_PATH 16574aee7dae4Smrg shlibpath_overrides_runpath=no 16575aee7dae4Smrg hardcode_into_libs=yes 16576aee7dae4Smrg ;; 16577ba0eab60Smacallan 16578aee7dae4Smrgirix5* | irix6* | nonstopux*) 16579aee7dae4Smrg case $host_os in 16580aee7dae4Smrg nonstopux*) version_type=nonstopux ;; 16581aee7dae4Smrg *) 16582aee7dae4Smrg if test "$lt_cv_prog_gnu_ld" = yes; then 16583aee7dae4Smrg version_type=linux # correct to gnu/linux during the next big refactor 16584aee7dae4Smrg else 16585aee7dae4Smrg version_type=irix 16586aee7dae4Smrg fi ;; 16587aee7dae4Smrg esac 16588aee7dae4Smrg need_lib_prefix=no 16589aee7dae4Smrg need_version=no 16590aee7dae4Smrg soname_spec='${libname}${release}${shared_ext}$major' 16591aee7dae4Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16592aee7dae4Smrg case $host_os in 16593aee7dae4Smrg irix5* | nonstopux*) 16594aee7dae4Smrg libsuff= shlibsuff= 16595aee7dae4Smrg ;; 16596aee7dae4Smrg *) 16597aee7dae4Smrg case $LD in # libtool.m4 will add one of these switches to LD 16598aee7dae4Smrg *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16599aee7dae4Smrg libsuff= shlibsuff= libmagic=32-bit;; 16600aee7dae4Smrg *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16601aee7dae4Smrg libsuff=32 shlibsuff=N32 libmagic=N32;; 16602aee7dae4Smrg *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16603aee7dae4Smrg libsuff=64 shlibsuff=64 libmagic=64-bit;; 16604aee7dae4Smrg *) libsuff= shlibsuff= libmagic=never-match;; 16605aee7dae4Smrg esac 16606aee7dae4Smrg ;; 16607aee7dae4Smrg esac 16608aee7dae4Smrg shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16609aee7dae4Smrg shlibpath_overrides_runpath=no 16610aee7dae4Smrg sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16611aee7dae4Smrg sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16612aee7dae4Smrg hardcode_into_libs=yes 16613aee7dae4Smrg ;; 16614ba0eab60Smacallan 16615aee7dae4Smrg# No shared lib support for Linux oldld, aout, or coff. 16616aee7dae4Smrglinux*oldld* | linux*aout* | linux*coff*) 16617aee7dae4Smrg dynamic_linker=no 16618aee7dae4Smrg ;; 16619ba0eab60Smacallan 16620aee7dae4Smrg# This must be glibc/ELF. 16621aee7dae4Smrglinux* | k*bsd*-gnu | kopensolaris*-gnu) 16622aee7dae4Smrg version_type=linux # correct to gnu/linux during the next big refactor 16623aee7dae4Smrg need_lib_prefix=no 16624aee7dae4Smrg need_version=no 16625aee7dae4Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16626aee7dae4Smrg soname_spec='${libname}${release}${shared_ext}$major' 16627aee7dae4Smrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16628aee7dae4Smrg shlibpath_var=LD_LIBRARY_PATH 16629aee7dae4Smrg shlibpath_overrides_runpath=no 16630ba0eab60Smacallan 16631aee7dae4Smrg # Some binutils ld are patched to set DT_RUNPATH 16632aee7dae4Smrg if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 16633aee7dae4Smrg $as_echo_n "(cached) " >&6 16634aee7dae4Smrgelse 16635aee7dae4Smrg lt_cv_shlibpath_overrides_runpath=no 16636aee7dae4Smrg save_LDFLAGS=$LDFLAGS 16637aee7dae4Smrg save_libdir=$libdir 16638aee7dae4Smrg eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 16639aee7dae4Smrg LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 16640aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16641aee7dae4Smrg/* end confdefs.h. */ 16642ba0eab60Smacallan 16643aee7dae4Smrgint 16644aee7dae4Smrgmain () 16645aee7dae4Smrg{ 16646ba0eab60Smacallan 16647aee7dae4Smrg ; 16648aee7dae4Smrg return 0; 16649aee7dae4Smrg} 16650aee7dae4Smrg_ACEOF 16651aee7dae4Smrgif ac_fn_c_try_link "$LINENO"; then : 16652aee7dae4Smrg if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 16653aee7dae4Smrg lt_cv_shlibpath_overrides_runpath=yes 16654aee7dae4Smrgfi 16655aee7dae4Smrgfi 16656aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext \ 16657aee7dae4Smrg conftest$ac_exeext conftest.$ac_ext 16658aee7dae4Smrg LDFLAGS=$save_LDFLAGS 16659aee7dae4Smrg libdir=$save_libdir 16660ba0eab60Smacallan 16661aee7dae4Smrgfi 16662aee7dae4Smrg 16663aee7dae4Smrg shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 16664aee7dae4Smrg 16665aee7dae4Smrg # This implies no fast_install, which is unacceptable. 16666aee7dae4Smrg # Some rework will be needed to allow for fast_install 16667aee7dae4Smrg # before this can be enabled. 16668aee7dae4Smrg hardcode_into_libs=yes 16669ba0eab60Smacallan 16670aee7dae4Smrg # Append ld.so.conf contents to the search path 16671aee7dae4Smrg if test -f /etc/ld.so.conf; then 16672aee7dae4Smrg lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 16673aee7dae4Smrg sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16674aee7dae4Smrg fi 16675ba0eab60Smacallan 16676aee7dae4Smrg # We used to test for /lib/ld.so.1 and disable shared libraries on 16677aee7dae4Smrg # powerpc, because MkLinux only supported shared libraries with the 16678aee7dae4Smrg # GNU dynamic linker. Since this was broken with cross compilers, 16679aee7dae4Smrg # most powerpc-linux boxes support dynamic linking these days and 16680aee7dae4Smrg # people can always --disable-shared, the test was removed, and we 16681aee7dae4Smrg # assume the GNU/Linux dynamic linker is in use. 16682aee7dae4Smrg dynamic_linker='GNU/Linux ld.so' 16683aee7dae4Smrg ;; 16684ba0eab60Smacallan 16685aee7dae4Smrgnetbsdelf*-gnu) 16686aee7dae4Smrg version_type=linux 16687aee7dae4Smrg need_lib_prefix=no 16688aee7dae4Smrg need_version=no 16689aee7dae4Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16690aee7dae4Smrg soname_spec='${libname}${release}${shared_ext}$major' 16691aee7dae4Smrg shlibpath_var=LD_LIBRARY_PATH 16692aee7dae4Smrg shlibpath_overrides_runpath=no 16693aee7dae4Smrg hardcode_into_libs=yes 16694aee7dae4Smrg dynamic_linker='NetBSD ld.elf_so' 16695aee7dae4Smrg ;; 16696ba0eab60Smacallan 16697aee7dae4Smrgnetbsd*) 16698aee7dae4Smrg version_type=sunos 16699aee7dae4Smrg need_lib_prefix=no 16700aee7dae4Smrg need_version=no 16701aee7dae4Smrg if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16702aee7dae4Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16703aee7dae4Smrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16704aee7dae4Smrg dynamic_linker='NetBSD (a.out) ld.so' 16705aee7dae4Smrg else 16706aee7dae4Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16707aee7dae4Smrg soname_spec='${libname}${release}${shared_ext}$major' 16708aee7dae4Smrg dynamic_linker='NetBSD ld.elf_so' 16709aee7dae4Smrg fi 16710aee7dae4Smrg shlibpath_var=LD_LIBRARY_PATH 16711aee7dae4Smrg shlibpath_overrides_runpath=yes 16712aee7dae4Smrg hardcode_into_libs=yes 16713aee7dae4Smrg ;; 16714ba0eab60Smacallan 16715aee7dae4Smrgnewsos6) 16716aee7dae4Smrg version_type=linux # correct to gnu/linux during the next big refactor 16717aee7dae4Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16718aee7dae4Smrg shlibpath_var=LD_LIBRARY_PATH 16719aee7dae4Smrg shlibpath_overrides_runpath=yes 16720aee7dae4Smrg ;; 16721ba0eab60Smacallan 16722aee7dae4Smrg*nto* | *qnx*) 16723aee7dae4Smrg version_type=qnx 16724aee7dae4Smrg need_lib_prefix=no 16725aee7dae4Smrg need_version=no 16726aee7dae4Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16727aee7dae4Smrg soname_spec='${libname}${release}${shared_ext}$major' 16728aee7dae4Smrg shlibpath_var=LD_LIBRARY_PATH 16729aee7dae4Smrg shlibpath_overrides_runpath=no 16730aee7dae4Smrg hardcode_into_libs=yes 16731aee7dae4Smrg dynamic_linker='ldqnx.so' 16732aee7dae4Smrg ;; 16733ba0eab60Smacallan 16734aee7dae4Smrgopenbsd*) 16735aee7dae4Smrg version_type=sunos 16736aee7dae4Smrg sys_lib_dlsearch_path_spec="/usr/lib" 16737aee7dae4Smrg need_lib_prefix=no 16738aee7dae4Smrg # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16739aee7dae4Smrg case $host_os in 16740aee7dae4Smrg openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16741aee7dae4Smrg *) need_version=no ;; 16742aee7dae4Smrg esac 16743aee7dae4Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16744aee7dae4Smrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16745aee7dae4Smrg shlibpath_var=LD_LIBRARY_PATH 16746aee7dae4Smrg if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16747aee7dae4Smrg case $host_os in 16748aee7dae4Smrg openbsd2.[89] | openbsd2.[89].*) 16749aee7dae4Smrg shlibpath_overrides_runpath=no 16750aee7dae4Smrg ;; 16751aee7dae4Smrg *) 16752aee7dae4Smrg shlibpath_overrides_runpath=yes 16753aee7dae4Smrg ;; 16754aee7dae4Smrg esac 16755aee7dae4Smrg else 16756aee7dae4Smrg shlibpath_overrides_runpath=yes 16757aee7dae4Smrg fi 16758aee7dae4Smrg ;; 16759ba0eab60Smacallan 16760aee7dae4Smrgos2*) 16761aee7dae4Smrg libname_spec='$name' 16762aee7dae4Smrg shrext_cmds=".dll" 16763aee7dae4Smrg need_lib_prefix=no 16764aee7dae4Smrg library_names_spec='$libname${shared_ext} $libname.a' 16765aee7dae4Smrg dynamic_linker='OS/2 ld.exe' 16766aee7dae4Smrg shlibpath_var=LIBPATH 16767aee7dae4Smrg ;; 16768ba0eab60Smacallan 16769aee7dae4Smrgosf3* | osf4* | osf5*) 16770aee7dae4Smrg version_type=osf 16771aee7dae4Smrg need_lib_prefix=no 16772aee7dae4Smrg need_version=no 16773aee7dae4Smrg soname_spec='${libname}${release}${shared_ext}$major' 16774aee7dae4Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16775aee7dae4Smrg shlibpath_var=LD_LIBRARY_PATH 16776aee7dae4Smrg sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16777aee7dae4Smrg sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16778aee7dae4Smrg ;; 16779ba0eab60Smacallan 16780aee7dae4Smrgrdos*) 16781aee7dae4Smrg dynamic_linker=no 16782aee7dae4Smrg ;; 16783ba0eab60Smacallan 16784aee7dae4Smrgsolaris*) 16785aee7dae4Smrg version_type=linux # correct to gnu/linux during the next big refactor 16786aee7dae4Smrg need_lib_prefix=no 16787aee7dae4Smrg need_version=no 16788aee7dae4Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16789aee7dae4Smrg soname_spec='${libname}${release}${shared_ext}$major' 16790aee7dae4Smrg shlibpath_var=LD_LIBRARY_PATH 16791aee7dae4Smrg shlibpath_overrides_runpath=yes 16792aee7dae4Smrg hardcode_into_libs=yes 16793aee7dae4Smrg # ldd complains unless libraries are executable 16794aee7dae4Smrg postinstall_cmds='chmod +x $lib' 16795aee7dae4Smrg ;; 16796ba0eab60Smacallan 16797aee7dae4Smrgsunos4*) 16798aee7dae4Smrg version_type=sunos 16799aee7dae4Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16800aee7dae4Smrg finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16801aee7dae4Smrg shlibpath_var=LD_LIBRARY_PATH 16802aee7dae4Smrg shlibpath_overrides_runpath=yes 16803aee7dae4Smrg if test "$with_gnu_ld" = yes; then 16804aee7dae4Smrg need_lib_prefix=no 16805aee7dae4Smrg fi 16806aee7dae4Smrg need_version=yes 16807aee7dae4Smrg ;; 16808ba0eab60Smacallan 16809aee7dae4Smrgsysv4 | sysv4.3*) 16810aee7dae4Smrg version_type=linux # correct to gnu/linux during the next big refactor 16811aee7dae4Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16812aee7dae4Smrg soname_spec='${libname}${release}${shared_ext}$major' 16813aee7dae4Smrg shlibpath_var=LD_LIBRARY_PATH 16814aee7dae4Smrg case $host_vendor in 16815aee7dae4Smrg sni) 16816aee7dae4Smrg shlibpath_overrides_runpath=no 16817aee7dae4Smrg need_lib_prefix=no 16818aee7dae4Smrg runpath_var=LD_RUN_PATH 16819aee7dae4Smrg ;; 16820aee7dae4Smrg siemens) 16821aee7dae4Smrg need_lib_prefix=no 16822aee7dae4Smrg ;; 16823aee7dae4Smrg motorola) 16824aee7dae4Smrg need_lib_prefix=no 16825aee7dae4Smrg need_version=no 16826aee7dae4Smrg shlibpath_overrides_runpath=no 16827aee7dae4Smrg sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16828aee7dae4Smrg ;; 16829aee7dae4Smrg esac 16830aee7dae4Smrg ;; 16831ba0eab60Smacallan 16832aee7dae4Smrgsysv4*MP*) 16833aee7dae4Smrg if test -d /usr/nec ;then 16834aee7dae4Smrg version_type=linux # correct to gnu/linux during the next big refactor 16835aee7dae4Smrg library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16836aee7dae4Smrg soname_spec='$libname${shared_ext}.$major' 16837aee7dae4Smrg shlibpath_var=LD_LIBRARY_PATH 16838aee7dae4Smrg fi 16839aee7dae4Smrg ;; 16840ba0eab60Smacallan 16841aee7dae4Smrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16842aee7dae4Smrg version_type=freebsd-elf 16843aee7dae4Smrg need_lib_prefix=no 16844aee7dae4Smrg need_version=no 16845aee7dae4Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16846aee7dae4Smrg soname_spec='${libname}${release}${shared_ext}$major' 16847aee7dae4Smrg shlibpath_var=LD_LIBRARY_PATH 16848aee7dae4Smrg shlibpath_overrides_runpath=yes 16849aee7dae4Smrg hardcode_into_libs=yes 16850aee7dae4Smrg if test "$with_gnu_ld" = yes; then 16851aee7dae4Smrg sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16852aee7dae4Smrg else 16853aee7dae4Smrg sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16854aee7dae4Smrg case $host_os in 16855aee7dae4Smrg sco3.2v5*) 16856aee7dae4Smrg sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16857aee7dae4Smrg ;; 16858aee7dae4Smrg esac 16859aee7dae4Smrg fi 16860aee7dae4Smrg sys_lib_dlsearch_path_spec='/usr/lib' 16861aee7dae4Smrg ;; 16862ba0eab60Smacallan 16863aee7dae4Smrgtpf*) 16864aee7dae4Smrg # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 16865aee7dae4Smrg version_type=linux # correct to gnu/linux during the next big refactor 16866aee7dae4Smrg need_lib_prefix=no 16867aee7dae4Smrg need_version=no 16868aee7dae4Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16869aee7dae4Smrg shlibpath_var=LD_LIBRARY_PATH 16870aee7dae4Smrg shlibpath_overrides_runpath=no 16871aee7dae4Smrg hardcode_into_libs=yes 16872aee7dae4Smrg ;; 16873ba0eab60Smacallan 16874aee7dae4Smrguts4*) 16875aee7dae4Smrg version_type=linux # correct to gnu/linux during the next big refactor 16876aee7dae4Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16877aee7dae4Smrg soname_spec='${libname}${release}${shared_ext}$major' 16878aee7dae4Smrg shlibpath_var=LD_LIBRARY_PATH 16879aee7dae4Smrg ;; 16880ba0eab60Smacallan 16881aee7dae4Smrg*) 16882aee7dae4Smrg dynamic_linker=no 16883aee7dae4Smrg ;; 16884aee7dae4Smrgesac 16885aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 16886aee7dae4Smrg$as_echo "$dynamic_linker" >&6; } 16887aee7dae4Smrgtest "$dynamic_linker" = no && can_build_shared=no 16888ba0eab60Smacallan 16889aee7dae4Smrgvariables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16890aee7dae4Smrgif test "$GCC" = yes; then 16891aee7dae4Smrg variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16892aee7dae4Smrgfi 16893aee7dae4Smrg 16894aee7dae4Smrgif test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 16895aee7dae4Smrg sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 16896aee7dae4Smrgfi 16897aee7dae4Smrgif test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 16898aee7dae4Smrg sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 16899aee7dae4Smrgfi 16900ba0eab60Smacallan 16901ba0eab60Smacallan 16902ba0eab60Smacallan 16903ba0eab60Smacallan 16904ba0eab60Smacallan 16905ba0eab60Smacallan 16906ba0eab60Smacallan 16907ba0eab60Smacallan 16908ba0eab60Smacallan 16909ba0eab60Smacallan 16910ba0eab60Smacallan 16911ba0eab60Smacallan 16912ba0eab60Smacallan 16913ba0eab60Smacallan 16914ba0eab60Smacallan 16915ba0eab60Smacallan 16916ba0eab60Smacallan 16917ba0eab60Smacallan 16918ba0eab60Smacallan 16919ba0eab60Smacallan 16920ba0eab60Smacallan 16921ba0eab60Smacallan 16922ba0eab60Smacallan 16923ba0eab60Smacallan 16924ba0eab60Smacallan 16925ba0eab60Smacallan 16926ba0eab60Smacallan 16927ba0eab60Smacallan 16928ba0eab60Smacallan 16929ba0eab60Smacallan 16930ba0eab60Smacallan 16931ba0eab60Smacallan 16932ba0eab60Smacallan 16933ba0eab60Smacallan 16934ba0eab60Smacallan 16935ba0eab60Smacallan 16936ba0eab60Smacallan 16937ba0eab60Smacallan 16938ba0eab60Smacallan 16939ba0eab60Smacallan 16940ba0eab60Smacallan 16941ba0eab60Smacallan 16942ba0eab60Smacallan 16943ba0eab60Smacallan 16944ba0eab60Smacallan 16945ba0eab60Smacallan 16946ba0eab60Smacallan 16947ba0eab60Smacallan 16948ba0eab60Smacallan 16949ba0eab60Smacallan 16950ba0eab60Smacallan 16951ba0eab60Smacallan 16952ba0eab60Smacallan 16953ba0eab60Smacallan 16954ba0eab60Smacallan 16955ba0eab60Smacallan 16956ba0eab60Smacallan 16957ba0eab60Smacallan 16958ba0eab60Smacallan 16959ba0eab60Smacallan 16960ba0eab60Smacallan 16961ba0eab60Smacallan 16962ba0eab60Smacallan 16963ba0eab60Smacallan 16964ba0eab60Smacallan 16965ba0eab60Smacallan 16966ba0eab60Smacallan 16967ba0eab60Smacallan 16968ba0eab60Smacallan 16969ba0eab60Smacallan 16970ba0eab60Smacallan 16971ba0eab60Smacallan 16972ba0eab60Smacallan 16973ba0eab60Smacallan 16974ba0eab60Smacallan 16975ba0eab60Smacallan 16976ba0eab60Smacallan 16977ba0eab60Smacallan 16978ba0eab60Smacallan 16979ba0eab60Smacallan 16980ba0eab60Smacallan 16981ba0eab60Smacallan 16982ba0eab60Smacallan 16983ba0eab60Smacallan 16984ba0eab60Smacallan 16985ba0eab60Smacallan 16986ba0eab60Smacallan 16987ba0eab60Smacallan 16988ba0eab60Smacallan 16989ba0eab60Smacallan 16990ba0eab60Smacallan 16991ba0eab60Smacallan 16992aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 16993aee7dae4Smrg$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 16994aee7dae4Smrghardcode_action= 16995aee7dae4Smrgif test -n "$hardcode_libdir_flag_spec" || 16996aee7dae4Smrg test -n "$runpath_var" || 16997aee7dae4Smrg test "X$hardcode_automatic" = "Xyes" ; then 16998ba0eab60Smacallan 16999aee7dae4Smrg # We can hardcode non-existent directories. 17000aee7dae4Smrg if test "$hardcode_direct" != no && 17001aee7dae4Smrg # If the only mechanism to avoid hardcoding is shlibpath_var, we 17002aee7dae4Smrg # have to relink, otherwise we might link with an installed library 17003aee7dae4Smrg # when we should be linking with a yet-to-be-installed one 17004aee7dae4Smrg ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 17005aee7dae4Smrg test "$hardcode_minus_L" != no; then 17006aee7dae4Smrg # Linking always hardcodes the temporary library directory. 17007aee7dae4Smrg hardcode_action=relink 17008aee7dae4Smrg else 17009aee7dae4Smrg # We can link without hardcoding, and we can hardcode nonexisting dirs. 17010aee7dae4Smrg hardcode_action=immediate 17011aee7dae4Smrg fi 17012aee7dae4Smrgelse 17013aee7dae4Smrg # We cannot hardcode anything, or else we can only hardcode existing 17014aee7dae4Smrg # directories. 17015aee7dae4Smrg hardcode_action=unsupported 17016aee7dae4Smrgfi 17017aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 17018aee7dae4Smrg$as_echo "$hardcode_action" >&6; } 17019ba0eab60Smacallan 17020aee7dae4Smrgif test "$hardcode_action" = relink || 17021aee7dae4Smrg test "$inherit_rpath" = yes; then 17022aee7dae4Smrg # Fast installation is not supported 17023aee7dae4Smrg enable_fast_install=no 17024aee7dae4Smrgelif test "$shlibpath_overrides_runpath" = yes || 17025aee7dae4Smrg test "$enable_shared" = no; then 17026aee7dae4Smrg # Fast installation is not necessary 17027aee7dae4Smrg enable_fast_install=needless 17028aee7dae4Smrgfi 17029ba0eab60Smacallan 17030ba0eab60Smacallan 17031ba0eab60Smacallan 17032ba0eab60Smacallan 17033ba0eab60Smacallan 17034ba0eab60Smacallan 17035aee7dae4Smrg if test "x$enable_dlopen" != xyes; then 17036aee7dae4Smrg enable_dlopen=unknown 17037aee7dae4Smrg enable_dlopen_self=unknown 17038aee7dae4Smrg enable_dlopen_self_static=unknown 17039ba0eab60Smacallanelse 17040aee7dae4Smrg lt_cv_dlopen=no 17041aee7dae4Smrg lt_cv_dlopen_libs= 17042aee7dae4Smrg 17043aee7dae4Smrg case $host_os in 17044aee7dae4Smrg beos*) 17045aee7dae4Smrg lt_cv_dlopen="load_add_on" 17046aee7dae4Smrg lt_cv_dlopen_libs= 17047aee7dae4Smrg lt_cv_dlopen_self=yes 17048aee7dae4Smrg ;; 17049aee7dae4Smrg 17050aee7dae4Smrg mingw* | pw32* | cegcc*) 17051aee7dae4Smrg lt_cv_dlopen="LoadLibrary" 17052aee7dae4Smrg lt_cv_dlopen_libs= 17053aee7dae4Smrg ;; 17054aee7dae4Smrg 17055aee7dae4Smrg cygwin*) 17056aee7dae4Smrg lt_cv_dlopen="dlopen" 17057aee7dae4Smrg lt_cv_dlopen_libs= 17058aee7dae4Smrg ;; 17059aee7dae4Smrg 17060aee7dae4Smrg darwin*) 17061aee7dae4Smrg # if libdl is installed we need to link against it 17062aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 17063aee7dae4Smrg$as_echo_n "checking for dlopen in -ldl... " >&6; } 17064aee7dae4Smrgif ${ac_cv_lib_dl_dlopen+:} false; then : 17065aee7dae4Smrg $as_echo_n "(cached) " >&6 17066ba0eab60Smacallanelse 17067aee7dae4Smrg ac_check_lib_save_LIBS=$LIBS 17068aee7dae4SmrgLIBS="-ldl $LIBS" 17069aee7dae4Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 17070aee7dae4Smrg/* end confdefs.h. */ 17071ba0eab60Smacallan 17072aee7dae4Smrg/* Override any GCC internal prototype to avoid an error. 17073aee7dae4Smrg Use char because int might match the return type of a GCC 17074aee7dae4Smrg builtin and then its argument prototype would still apply. */ 17075aee7dae4Smrg#ifdef __cplusplus 17076aee7dae4Smrgextern "C" 17077aee7dae4Smrg#endif 17078aee7dae4Smrgchar dlopen (); 17079aee7dae4Smrgint 17080aee7dae4Smrgmain () 17081aee7dae4Smrg{ 17082aee7dae4Smrgreturn dlopen (); 17083aee7dae4Smrg ; 17084aee7dae4Smrg return 0; 17085aee7dae4Smrg} 17086aee7dae4Smrg_ACEOF 17087aee7dae4Smrgif ac_fn_c_try_link "$LINENO"; then : 17088aee7dae4Smrg ac_cv_lib_dl_dlopen=yes 17089aee7dae4Smrgelse 17090aee7dae4Smrg ac_cv_lib_dl_dlopen=no 17091ba0eab60Smacallanfi 17092aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext \ 17093aee7dae4Smrg conftest$ac_exeext conftest.$ac_ext 17094aee7dae4SmrgLIBS=$ac_check_lib_save_LIBS 17095ba0eab60Smacallanfi 17096aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 17097aee7dae4Smrg$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 17098aee7dae4Smrgif test "x$ac_cv_lib_dl_dlopen" = xyes; then : 17099aee7dae4Smrg lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 17100ba0eab60Smacallanelse 17101aee7dae4Smrg 17102aee7dae4Smrg lt_cv_dlopen="dyld" 17103aee7dae4Smrg lt_cv_dlopen_libs= 17104aee7dae4Smrg lt_cv_dlopen_self=yes 17105ba0eab60Smacallan 17106ba0eab60Smacallanfi 17107aee7dae4Smrg 17108aee7dae4Smrg ;; 17109aee7dae4Smrg 17110aee7dae4Smrg *) 17111aee7dae4Smrg ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 17112aee7dae4Smrgif test "x$ac_cv_func_shl_load" = xyes; then : 17113aee7dae4Smrg lt_cv_dlopen="shl_load" 17114ba0eab60Smacallanelse 17115aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 17116aee7dae4Smrg$as_echo_n "checking for shl_load in -ldld... " >&6; } 17117aee7dae4Smrgif ${ac_cv_lib_dld_shl_load+:} false; then : 17118aee7dae4Smrg $as_echo_n "(cached) " >&6 17119ba0eab60Smacallanelse 17120aee7dae4Smrg ac_check_lib_save_LIBS=$LIBS 17121aee7dae4SmrgLIBS="-ldld $LIBS" 17122aee7dae4Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 17123aee7dae4Smrg/* end confdefs.h. */ 17124ba0eab60Smacallan 17125aee7dae4Smrg/* Override any GCC internal prototype to avoid an error. 17126aee7dae4Smrg Use char because int might match the return type of a GCC 17127aee7dae4Smrg builtin and then its argument prototype would still apply. */ 17128aee7dae4Smrg#ifdef __cplusplus 17129aee7dae4Smrgextern "C" 17130aee7dae4Smrg#endif 17131aee7dae4Smrgchar shl_load (); 17132aee7dae4Smrgint 17133aee7dae4Smrgmain () 17134aee7dae4Smrg{ 17135aee7dae4Smrgreturn shl_load (); 17136aee7dae4Smrg ; 17137aee7dae4Smrg return 0; 17138aee7dae4Smrg} 17139aee7dae4Smrg_ACEOF 17140aee7dae4Smrgif ac_fn_c_try_link "$LINENO"; then : 17141aee7dae4Smrg ac_cv_lib_dld_shl_load=yes 17142aee7dae4Smrgelse 17143aee7dae4Smrg ac_cv_lib_dld_shl_load=no 17144ba0eab60Smacallanfi 17145aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext \ 17146aee7dae4Smrg conftest$ac_exeext conftest.$ac_ext 17147aee7dae4SmrgLIBS=$ac_check_lib_save_LIBS 17148ba0eab60Smacallanfi 17149aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 17150aee7dae4Smrg$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 17151aee7dae4Smrgif test "x$ac_cv_lib_dld_shl_load" = xyes; then : 17152aee7dae4Smrg lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 17153ba0eab60Smacallanelse 17154aee7dae4Smrg ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 17155aee7dae4Smrgif test "x$ac_cv_func_dlopen" = xyes; then : 17156aee7dae4Smrg lt_cv_dlopen="dlopen" 17157aee7dae4Smrgelse 17158aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 17159aee7dae4Smrg$as_echo_n "checking for dlopen in -ldl... " >&6; } 17160aee7dae4Smrgif ${ac_cv_lib_dl_dlopen+:} false; then : 17161aee7dae4Smrg $as_echo_n "(cached) " >&6 17162aee7dae4Smrgelse 17163aee7dae4Smrg ac_check_lib_save_LIBS=$LIBS 17164aee7dae4SmrgLIBS="-ldl $LIBS" 17165aee7dae4Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 17166aee7dae4Smrg/* end confdefs.h. */ 17167ba0eab60Smacallan 17168aee7dae4Smrg/* Override any GCC internal prototype to avoid an error. 17169aee7dae4Smrg Use char because int might match the return type of a GCC 17170aee7dae4Smrg builtin and then its argument prototype would still apply. */ 17171aee7dae4Smrg#ifdef __cplusplus 17172aee7dae4Smrgextern "C" 17173aee7dae4Smrg#endif 17174aee7dae4Smrgchar dlopen (); 17175aee7dae4Smrgint 17176aee7dae4Smrgmain () 17177aee7dae4Smrg{ 17178aee7dae4Smrgreturn dlopen (); 17179aee7dae4Smrg ; 17180aee7dae4Smrg return 0; 17181aee7dae4Smrg} 17182aee7dae4Smrg_ACEOF 17183aee7dae4Smrgif ac_fn_c_try_link "$LINENO"; then : 17184aee7dae4Smrg ac_cv_lib_dl_dlopen=yes 17185ba0eab60Smacallanelse 17186aee7dae4Smrg ac_cv_lib_dl_dlopen=no 17187aee7dae4Smrgfi 17188aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext \ 17189aee7dae4Smrg conftest$ac_exeext conftest.$ac_ext 17190aee7dae4SmrgLIBS=$ac_check_lib_save_LIBS 17191ba0eab60Smacallanfi 17192aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 17193aee7dae4Smrg$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 17194aee7dae4Smrgif test "x$ac_cv_lib_dl_dlopen" = xyes; then : 17195aee7dae4Smrg lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 17196aee7dae4Smrgelse 17197aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 17198aee7dae4Smrg$as_echo_n "checking for dlopen in -lsvld... " >&6; } 17199aee7dae4Smrgif ${ac_cv_lib_svld_dlopen+:} false; then : 17200aee7dae4Smrg $as_echo_n "(cached) " >&6 17201aee7dae4Smrgelse 17202aee7dae4Smrg ac_check_lib_save_LIBS=$LIBS 17203aee7dae4SmrgLIBS="-lsvld $LIBS" 17204aee7dae4Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 17205aee7dae4Smrg/* end confdefs.h. */ 17206ba0eab60Smacallan 17207aee7dae4Smrg/* Override any GCC internal prototype to avoid an error. 17208aee7dae4Smrg Use char because int might match the return type of a GCC 17209aee7dae4Smrg builtin and then its argument prototype would still apply. */ 17210aee7dae4Smrg#ifdef __cplusplus 17211aee7dae4Smrgextern "C" 17212aee7dae4Smrg#endif 17213aee7dae4Smrgchar dlopen (); 17214aee7dae4Smrgint 17215aee7dae4Smrgmain () 17216aee7dae4Smrg{ 17217aee7dae4Smrgreturn dlopen (); 17218aee7dae4Smrg ; 17219aee7dae4Smrg return 0; 17220aee7dae4Smrg} 17221aee7dae4Smrg_ACEOF 17222aee7dae4Smrgif ac_fn_c_try_link "$LINENO"; then : 17223aee7dae4Smrg ac_cv_lib_svld_dlopen=yes 17224ba0eab60Smacallanelse 17225aee7dae4Smrg ac_cv_lib_svld_dlopen=no 17226aee7dae4Smrgfi 17227aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext \ 17228aee7dae4Smrg conftest$ac_exeext conftest.$ac_ext 17229aee7dae4SmrgLIBS=$ac_check_lib_save_LIBS 17230aee7dae4Smrgfi 17231aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 17232aee7dae4Smrg$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 17233aee7dae4Smrgif test "x$ac_cv_lib_svld_dlopen" = xyes; then : 17234aee7dae4Smrg lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 17235ba0eab60Smacallanelse 17236aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 17237aee7dae4Smrg$as_echo_n "checking for dld_link in -ldld... " >&6; } 17238aee7dae4Smrgif ${ac_cv_lib_dld_dld_link+:} false; then : 17239aee7dae4Smrg $as_echo_n "(cached) " >&6 17240aee7dae4Smrgelse 17241aee7dae4Smrg ac_check_lib_save_LIBS=$LIBS 17242aee7dae4SmrgLIBS="-ldld $LIBS" 17243aee7dae4Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 17244aee7dae4Smrg/* end confdefs.h. */ 17245ba0eab60Smacallan 17246aee7dae4Smrg/* Override any GCC internal prototype to avoid an error. 17247aee7dae4Smrg Use char because int might match the return type of a GCC 17248aee7dae4Smrg builtin and then its argument prototype would still apply. */ 17249aee7dae4Smrg#ifdef __cplusplus 17250aee7dae4Smrgextern "C" 17251aee7dae4Smrg#endif 17252aee7dae4Smrgchar dld_link (); 17253aee7dae4Smrgint 17254aee7dae4Smrgmain () 17255aee7dae4Smrg{ 17256aee7dae4Smrgreturn dld_link (); 17257aee7dae4Smrg ; 17258aee7dae4Smrg return 0; 17259aee7dae4Smrg} 17260aee7dae4Smrg_ACEOF 17261aee7dae4Smrgif ac_fn_c_try_link "$LINENO"; then : 17262aee7dae4Smrg ac_cv_lib_dld_dld_link=yes 17263aee7dae4Smrgelse 17264aee7dae4Smrg ac_cv_lib_dld_dld_link=no 17265ba0eab60Smacallanfi 17266aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext \ 17267aee7dae4Smrg conftest$ac_exeext conftest.$ac_ext 17268aee7dae4SmrgLIBS=$ac_check_lib_save_LIBS 17269ba0eab60Smacallanfi 17270aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 17271aee7dae4Smrg$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 17272aee7dae4Smrgif test "x$ac_cv_lib_dld_dld_link" = xyes; then : 17273aee7dae4Smrg lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 17274ba0eab60Smacallanfi 17275ba0eab60Smacallan 17276ba0eab60Smacallan 17277ba0eab60Smacallanfi 17278aee7dae4Smrg 17279aee7dae4Smrg 17280ba0eab60Smacallanfi 17281aee7dae4Smrg 17282aee7dae4Smrg 17283ba0eab60Smacallanfi 17284ba0eab60Smacallan 17285aee7dae4Smrg 17286ba0eab60Smacallanfi 17287ba0eab60Smacallan 17288aee7dae4Smrg 17289ba0eab60Smacallanfi 17290aee7dae4Smrg 17291aee7dae4Smrg ;; 17292aee7dae4Smrg esac 17293aee7dae4Smrg 17294aee7dae4Smrg if test "x$lt_cv_dlopen" != xno; then 17295aee7dae4Smrg enable_dlopen=yes 17296aee7dae4Smrg else 17297aee7dae4Smrg enable_dlopen=no 17298aee7dae4Smrg fi 17299aee7dae4Smrg 17300aee7dae4Smrg case $lt_cv_dlopen in 17301aee7dae4Smrg dlopen) 17302aee7dae4Smrg save_CPPFLAGS="$CPPFLAGS" 17303aee7dae4Smrg test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 17304aee7dae4Smrg 17305aee7dae4Smrg save_LDFLAGS="$LDFLAGS" 17306aee7dae4Smrg wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 17307aee7dae4Smrg 17308aee7dae4Smrg save_LIBS="$LIBS" 17309aee7dae4Smrg LIBS="$lt_cv_dlopen_libs $LIBS" 17310aee7dae4Smrg 17311aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 17312aee7dae4Smrg$as_echo_n "checking whether a program can dlopen itself... " >&6; } 17313aee7dae4Smrgif ${lt_cv_dlopen_self+:} false; then : 17314aee7dae4Smrg $as_echo_n "(cached) " >&6 17315ba0eab60Smacallanelse 17316aee7dae4Smrg if test "$cross_compiling" = yes; then : 17317aee7dae4Smrg lt_cv_dlopen_self=cross 17318ba0eab60Smacallanelse 17319aee7dae4Smrg lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 17320aee7dae4Smrg lt_status=$lt_dlunknown 17321aee7dae4Smrg cat > conftest.$ac_ext <<_LT_EOF 17322aee7dae4Smrg#line $LINENO "configure" 17323aee7dae4Smrg#include "confdefs.h" 17324ba0eab60Smacallan 17325aee7dae4Smrg#if HAVE_DLFCN_H 17326aee7dae4Smrg#include <dlfcn.h> 17327aee7dae4Smrg#endif 17328aee7dae4Smrg 17329aee7dae4Smrg#include <stdio.h> 17330aee7dae4Smrg 17331aee7dae4Smrg#ifdef RTLD_GLOBAL 17332aee7dae4Smrg# define LT_DLGLOBAL RTLD_GLOBAL 17333aee7dae4Smrg#else 17334aee7dae4Smrg# ifdef DL_GLOBAL 17335aee7dae4Smrg# define LT_DLGLOBAL DL_GLOBAL 17336aee7dae4Smrg# else 17337aee7dae4Smrg# define LT_DLGLOBAL 0 17338aee7dae4Smrg# endif 17339aee7dae4Smrg#endif 17340aee7dae4Smrg 17341aee7dae4Smrg/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 17342aee7dae4Smrg find out it does not work in some platform. */ 17343aee7dae4Smrg#ifndef LT_DLLAZY_OR_NOW 17344aee7dae4Smrg# ifdef RTLD_LAZY 17345aee7dae4Smrg# define LT_DLLAZY_OR_NOW RTLD_LAZY 17346aee7dae4Smrg# else 17347aee7dae4Smrg# ifdef DL_LAZY 17348aee7dae4Smrg# define LT_DLLAZY_OR_NOW DL_LAZY 17349aee7dae4Smrg# else 17350aee7dae4Smrg# ifdef RTLD_NOW 17351aee7dae4Smrg# define LT_DLLAZY_OR_NOW RTLD_NOW 17352aee7dae4Smrg# else 17353aee7dae4Smrg# ifdef DL_NOW 17354aee7dae4Smrg# define LT_DLLAZY_OR_NOW DL_NOW 17355aee7dae4Smrg# else 17356aee7dae4Smrg# define LT_DLLAZY_OR_NOW 0 17357aee7dae4Smrg# endif 17358aee7dae4Smrg# endif 17359aee7dae4Smrg# endif 17360aee7dae4Smrg# endif 17361aee7dae4Smrg#endif 17362aee7dae4Smrg 17363aee7dae4Smrg/* When -fvisbility=hidden is used, assume the code has been annotated 17364aee7dae4Smrg correspondingly for the symbols needed. */ 17365aee7dae4Smrg#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 17366aee7dae4Smrgint fnord () __attribute__((visibility("default"))); 17367aee7dae4Smrg#endif 17368aee7dae4Smrg 17369aee7dae4Smrgint fnord () { return 42; } 17370aee7dae4Smrgint main () 17371aee7dae4Smrg{ 17372aee7dae4Smrg void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 17373aee7dae4Smrg int status = $lt_dlunknown; 17374aee7dae4Smrg 17375aee7dae4Smrg if (self) 17376aee7dae4Smrg { 17377aee7dae4Smrg if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 17378aee7dae4Smrg else 17379aee7dae4Smrg { 17380aee7dae4Smrg if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 17381aee7dae4Smrg else puts (dlerror ()); 17382aee7dae4Smrg } 17383aee7dae4Smrg /* dlclose (self); */ 17384aee7dae4Smrg } 17385aee7dae4Smrg else 17386aee7dae4Smrg puts (dlerror ()); 17387aee7dae4Smrg 17388aee7dae4Smrg return status; 17389aee7dae4Smrg} 17390aee7dae4Smrg_LT_EOF 17391aee7dae4Smrg if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 17392aee7dae4Smrg (eval $ac_link) 2>&5 17393aee7dae4Smrg ac_status=$? 17394aee7dae4Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17395aee7dae4Smrg test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 17396aee7dae4Smrg (./conftest; exit; ) >&5 2>/dev/null 17397aee7dae4Smrg lt_status=$? 17398aee7dae4Smrg case x$lt_status in 17399aee7dae4Smrg x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 17400aee7dae4Smrg x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 17401aee7dae4Smrg x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 17402aee7dae4Smrg esac 17403aee7dae4Smrg else : 17404aee7dae4Smrg # compilation failed 17405aee7dae4Smrg lt_cv_dlopen_self=no 17406ba0eab60Smacallan fi 17407ba0eab60Smacallanfi 17408aee7dae4Smrgrm -fr conftest* 17409aee7dae4Smrg 17410ba0eab60Smacallan 17411ba0eab60Smacallanfi 17412aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 17413aee7dae4Smrg$as_echo "$lt_cv_dlopen_self" >&6; } 17414aee7dae4Smrg 17415aee7dae4Smrg if test "x$lt_cv_dlopen_self" = xyes; then 17416aee7dae4Smrg wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 17417aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 17418aee7dae4Smrg$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 17419aee7dae4Smrgif ${lt_cv_dlopen_self_static+:} false; then : 17420aee7dae4Smrg $as_echo_n "(cached) " >&6 17421ba0eab60Smacallanelse 17422aee7dae4Smrg if test "$cross_compiling" = yes; then : 17423aee7dae4Smrg lt_cv_dlopen_self_static=cross 17424ba0eab60Smacallanelse 17425aee7dae4Smrg lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 17426aee7dae4Smrg lt_status=$lt_dlunknown 17427aee7dae4Smrg cat > conftest.$ac_ext <<_LT_EOF 17428aee7dae4Smrg#line $LINENO "configure" 17429aee7dae4Smrg#include "confdefs.h" 17430aee7dae4Smrg 17431aee7dae4Smrg#if HAVE_DLFCN_H 17432aee7dae4Smrg#include <dlfcn.h> 17433aee7dae4Smrg#endif 17434aee7dae4Smrg 17435aee7dae4Smrg#include <stdio.h> 17436aee7dae4Smrg 17437aee7dae4Smrg#ifdef RTLD_GLOBAL 17438aee7dae4Smrg# define LT_DLGLOBAL RTLD_GLOBAL 17439aee7dae4Smrg#else 17440aee7dae4Smrg# ifdef DL_GLOBAL 17441aee7dae4Smrg# define LT_DLGLOBAL DL_GLOBAL 17442aee7dae4Smrg# else 17443aee7dae4Smrg# define LT_DLGLOBAL 0 17444aee7dae4Smrg# endif 17445aee7dae4Smrg#endif 17446aee7dae4Smrg 17447aee7dae4Smrg/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 17448aee7dae4Smrg find out it does not work in some platform. */ 17449aee7dae4Smrg#ifndef LT_DLLAZY_OR_NOW 17450aee7dae4Smrg# ifdef RTLD_LAZY 17451aee7dae4Smrg# define LT_DLLAZY_OR_NOW RTLD_LAZY 17452aee7dae4Smrg# else 17453aee7dae4Smrg# ifdef DL_LAZY 17454aee7dae4Smrg# define LT_DLLAZY_OR_NOW DL_LAZY 17455aee7dae4Smrg# else 17456aee7dae4Smrg# ifdef RTLD_NOW 17457aee7dae4Smrg# define LT_DLLAZY_OR_NOW RTLD_NOW 17458aee7dae4Smrg# else 17459aee7dae4Smrg# ifdef DL_NOW 17460aee7dae4Smrg# define LT_DLLAZY_OR_NOW DL_NOW 17461aee7dae4Smrg# else 17462aee7dae4Smrg# define LT_DLLAZY_OR_NOW 0 17463aee7dae4Smrg# endif 17464aee7dae4Smrg# endif 17465aee7dae4Smrg# endif 17466aee7dae4Smrg# endif 17467aee7dae4Smrg#endif 17468aee7dae4Smrg 17469aee7dae4Smrg/* When -fvisbility=hidden is used, assume the code has been annotated 17470aee7dae4Smrg correspondingly for the symbols needed. */ 17471aee7dae4Smrg#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 17472aee7dae4Smrgint fnord () __attribute__((visibility("default"))); 17473aee7dae4Smrg#endif 17474aee7dae4Smrg 17475aee7dae4Smrgint fnord () { return 42; } 17476aee7dae4Smrgint main () 17477aee7dae4Smrg{ 17478aee7dae4Smrg void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 17479aee7dae4Smrg int status = $lt_dlunknown; 17480aee7dae4Smrg 17481aee7dae4Smrg if (self) 17482aee7dae4Smrg { 17483aee7dae4Smrg if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 17484aee7dae4Smrg else 17485aee7dae4Smrg { 17486aee7dae4Smrg if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 17487aee7dae4Smrg else puts (dlerror ()); 17488aee7dae4Smrg } 17489aee7dae4Smrg /* dlclose (self); */ 17490aee7dae4Smrg } 17491aee7dae4Smrg else 17492aee7dae4Smrg puts (dlerror ()); 17493aee7dae4Smrg 17494aee7dae4Smrg return status; 17495aee7dae4Smrg} 17496aee7dae4Smrg_LT_EOF 17497aee7dae4Smrg if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 17498aee7dae4Smrg (eval $ac_link) 2>&5 17499aee7dae4Smrg ac_status=$? 17500aee7dae4Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17501aee7dae4Smrg test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 17502aee7dae4Smrg (./conftest; exit; ) >&5 2>/dev/null 17503aee7dae4Smrg lt_status=$? 17504aee7dae4Smrg case x$lt_status in 17505aee7dae4Smrg x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 17506aee7dae4Smrg x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 17507aee7dae4Smrg x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 17508aee7dae4Smrg esac 17509aee7dae4Smrg else : 17510aee7dae4Smrg # compilation failed 17511aee7dae4Smrg lt_cv_dlopen_self_static=no 17512ba0eab60Smacallan fi 17513ba0eab60Smacallanfi 17514aee7dae4Smrgrm -fr conftest* 17515ba0eab60Smacallan 17516ba0eab60Smacallan 17517ba0eab60Smacallanfi 17518aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 17519aee7dae4Smrg$as_echo "$lt_cv_dlopen_self_static" >&6; } 17520aee7dae4Smrg fi 17521aee7dae4Smrg 17522aee7dae4Smrg CPPFLAGS="$save_CPPFLAGS" 17523aee7dae4Smrg LDFLAGS="$save_LDFLAGS" 17524aee7dae4Smrg LIBS="$save_LIBS" 17525aee7dae4Smrg ;; 17526aee7dae4Smrg esac 17527aee7dae4Smrg 17528aee7dae4Smrg case $lt_cv_dlopen_self in 17529aee7dae4Smrg yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 17530aee7dae4Smrg *) enable_dlopen_self=unknown ;; 17531aee7dae4Smrg esac 17532aee7dae4Smrg 17533aee7dae4Smrg case $lt_cv_dlopen_self_static in 17534aee7dae4Smrg yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 17535aee7dae4Smrg *) enable_dlopen_self_static=unknown ;; 17536aee7dae4Smrg esac 17537ba0eab60Smacallanfi 17538aee7dae4Smrg 17539aee7dae4Smrg 17540aee7dae4Smrg 17541aee7dae4Smrg 17542aee7dae4Smrg 17543aee7dae4Smrg 17544aee7dae4Smrg 17545aee7dae4Smrg 17546aee7dae4Smrg 17547aee7dae4Smrg 17548aee7dae4Smrg 17549aee7dae4Smrg 17550aee7dae4Smrg 17551aee7dae4Smrg 17552aee7dae4Smrg 17553aee7dae4Smrg 17554aee7dae4Smrg 17555aee7dae4Smrgstriplib= 17556aee7dae4Smrgold_striplib= 17557aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 17558aee7dae4Smrg$as_echo_n "checking whether stripping libraries is possible... " >&6; } 17559aee7dae4Smrgif test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 17560aee7dae4Smrg test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 17561aee7dae4Smrg test -z "$striplib" && striplib="$STRIP --strip-unneeded" 17562aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17563aee7dae4Smrg$as_echo "yes" >&6; } 17564ba0eab60Smacallanelse 17565aee7dae4Smrg# FIXME - insert some real tests, host_os isn't really good enough 17566aee7dae4Smrg case $host_os in 17567aee7dae4Smrg darwin*) 17568aee7dae4Smrg if test -n "$STRIP" ; then 17569aee7dae4Smrg striplib="$STRIP -x" 17570aee7dae4Smrg old_striplib="$STRIP -S" 17571aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17572aee7dae4Smrg$as_echo "yes" >&6; } 17573aee7dae4Smrg else 17574aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17575aee7dae4Smrg$as_echo "no" >&6; } 17576aee7dae4Smrg fi 17577aee7dae4Smrg ;; 17578aee7dae4Smrg *) 17579aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17580aee7dae4Smrg$as_echo "no" >&6; } 17581aee7dae4Smrg ;; 17582aee7dae4Smrg esac 17583ba0eab60Smacallanfi 17584ba0eab60Smacallan 17585ba0eab60Smacallan 17586ba0eab60Smacallan 17587ba0eab60Smacallan 17588ba0eab60Smacallan 17589ba0eab60Smacallan 17590ba0eab60Smacallan 17591ba0eab60Smacallan 17592ba0eab60Smacallan 17593ba0eab60Smacallan 17594ba0eab60Smacallan 17595ba0eab60Smacallan 17596aee7dae4Smrg # Report which library types will actually be built 17597aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 17598aee7dae4Smrg$as_echo_n "checking if libtool supports shared libraries... " >&6; } 17599aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 17600aee7dae4Smrg$as_echo "$can_build_shared" >&6; } 17601aee7dae4Smrg 17602aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 17603aee7dae4Smrg$as_echo_n "checking whether to build shared libraries... " >&6; } 17604aee7dae4Smrg test "$can_build_shared" = "no" && enable_shared=no 17605aee7dae4Smrg 17606aee7dae4Smrg # On AIX, shared libraries and static libraries use the same namespace, and 17607aee7dae4Smrg # are all built from PIC. 17608aee7dae4Smrg case $host_os in 17609aee7dae4Smrg aix3*) 17610aee7dae4Smrg test "$enable_shared" = yes && enable_static=no 17611aee7dae4Smrg if test -n "$RANLIB"; then 17612aee7dae4Smrg archive_cmds="$archive_cmds~\$RANLIB \$lib" 17613aee7dae4Smrg postinstall_cmds='$RANLIB $lib' 17614aee7dae4Smrg fi 17615aee7dae4Smrg ;; 17616aee7dae4Smrg 17617aee7dae4Smrg aix[4-9]*) 17618aee7dae4Smrg if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 17619aee7dae4Smrg test "$enable_shared" = yes && enable_static=no 17620aee7dae4Smrg fi 17621aee7dae4Smrg ;; 17622aee7dae4Smrg esac 17623aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 17624aee7dae4Smrg$as_echo "$enable_shared" >&6; } 17625aee7dae4Smrg 17626aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 17627aee7dae4Smrg$as_echo_n "checking whether to build static libraries... " >&6; } 17628aee7dae4Smrg # Make sure either enable_shared or enable_static is yes. 17629aee7dae4Smrg test "$enable_shared" = yes || enable_static=yes 17630aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 17631aee7dae4Smrg$as_echo "$enable_static" >&6; } 17632aee7dae4Smrg 17633aee7dae4Smrg 17634ba0eab60Smacallan 17635ba0eab60Smacallan 17636ba0eab60Smacallanfi 17637aee7dae4Smrgac_ext=c 17638aee7dae4Smrgac_cpp='$CPP $CPPFLAGS' 17639aee7dae4Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17640aee7dae4Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17641aee7dae4Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 17642aee7dae4Smrg 17643aee7dae4SmrgCC="$lt_save_CC" 17644aee7dae4Smrg 17645aee7dae4Smrg 17646aee7dae4Smrg 17647aee7dae4Smrg 17648aee7dae4Smrg 17649aee7dae4Smrg 17650aee7dae4Smrg 17651aee7dae4Smrg 17652aee7dae4Smrg 17653aee7dae4Smrg 17654aee7dae4Smrg 17655aee7dae4Smrg 17656aee7dae4Smrg 17657aee7dae4Smrg 17658aee7dae4Smrg 17659aee7dae4Smrg ac_config_commands="$ac_config_commands libtool" 17660aee7dae4Smrg 17661aee7dae4Smrg 17662aee7dae4Smrg 17663aee7dae4Smrg 17664aee7dae4Smrg# Only expand once: 17665aee7dae4Smrg 17666aee7dae4Smrg 17667aee7dae4Smrg 17668aee7dae4Smrg 17669aee7dae4Smrg 17670aee7dae4Smrg# Define a configure option for an alternate module directory 17671aee7dae4Smrg 17672aee7dae4Smrg# Check whether --with-xorg-module-dir was given. 17673aee7dae4Smrgif test "${with_xorg_module_dir+set}" = set; then : 17674aee7dae4Smrg withval=$with_xorg_module_dir; moduledir="$withval" 17675ba0eab60Smacallanelse 17676aee7dae4Smrg moduledir="$libdir/xorg/modules" 17677ba0eab60Smacallanfi 17678aee7dae4Smrg 17679aee7dae4Smrg 17680aee7dae4Smrg# Store the list of server defined optional extensions in REQUIRED_MODULES 17681aee7dae4Smrg 17682aee7dae4Smrg 17683aee7dae4Smrg SAVE_CFLAGS="$CFLAGS" 17684aee7dae4Smrg CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 17685aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17686ba0eab60Smacallan/* end confdefs.h. */ 17687ba0eab60Smacallan 17688aee7dae4Smrg#include "xorg-server.h" 17689aee7dae4Smrg#if !defined RANDR 17690aee7dae4Smrg#error RANDR not defined 17691aee7dae4Smrg#endif 17692ba0eab60Smacallan 17693ba0eab60Smacallanint 17694ba0eab60Smacallanmain () 17695ba0eab60Smacallan{ 17696aee7dae4Smrg 17697ba0eab60Smacallan ; 17698ba0eab60Smacallan return 0; 17699ba0eab60Smacallan} 17700ba0eab60Smacallan_ACEOF 17701aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 17702aee7dae4Smrg _EXT_CHECK=yes 17703ba0eab60Smacallanelse 17704aee7dae4Smrg _EXT_CHECK=no 17705ba0eab60Smacallanfi 17706aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17707aee7dae4Smrg CFLAGS="$SAVE_CFLAGS" 17708aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5 17709aee7dae4Smrg$as_echo_n "checking if RANDR is defined... " >&6; } 17710aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 17711aee7dae4Smrg$as_echo "$_EXT_CHECK" >&6; } 17712aee7dae4Smrg if test "$_EXT_CHECK" != no; then 17713aee7dae4Smrg REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 17714aee7dae4Smrg fi 17715ba0eab60Smacallan 17716ba0eab60Smacallan 17717ba0eab60Smacallan 17718aee7dae4Smrg SAVE_CFLAGS="$CFLAGS" 17719aee7dae4Smrg CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 17720aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17721ba0eab60Smacallan/* end confdefs.h. */ 17722aee7dae4Smrg 17723aee7dae4Smrg#include "xorg-server.h" 17724aee7dae4Smrg#if !defined RENDER 17725aee7dae4Smrg#error RENDER not defined 17726aee7dae4Smrg#endif 17727aee7dae4Smrg 17728ba0eab60Smacallanint 17729ba0eab60Smacallanmain () 17730ba0eab60Smacallan{ 17731aee7dae4Smrg 17732ba0eab60Smacallan ; 17733ba0eab60Smacallan return 0; 17734ba0eab60Smacallan} 17735ba0eab60Smacallan_ACEOF 17736aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 17737aee7dae4Smrg _EXT_CHECK=yes 17738ba0eab60Smacallanelse 17739aee7dae4Smrg _EXT_CHECK=no 17740ba0eab60Smacallanfi 17741aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17742aee7dae4Smrg CFLAGS="$SAVE_CFLAGS" 17743aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5 17744aee7dae4Smrg$as_echo_n "checking if RENDER is defined... " >&6; } 17745aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 17746aee7dae4Smrg$as_echo "$_EXT_CHECK" >&6; } 17747aee7dae4Smrg if test "$_EXT_CHECK" != no; then 17748aee7dae4Smrg REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 17749aee7dae4Smrg fi 17750aee7dae4Smrg 17751aee7dae4Smrg 17752aee7dae4Smrg 17753aee7dae4Smrg SAVE_CFLAGS="$CFLAGS" 17754aee7dae4Smrg CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 17755aee7dae4Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17756ba0eab60Smacallan/* end confdefs.h. */ 17757aee7dae4Smrg 17758aee7dae4Smrg#include "xorg-server.h" 17759aee7dae4Smrg#if !defined XV 17760aee7dae4Smrg#error XV not defined 17761aee7dae4Smrg#endif 17762aee7dae4Smrg 17763ba0eab60Smacallanint 17764ba0eab60Smacallanmain () 17765ba0eab60Smacallan{ 17766aee7dae4Smrg 17767ba0eab60Smacallan ; 17768ba0eab60Smacallan return 0; 17769ba0eab60Smacallan} 17770ba0eab60Smacallan_ACEOF 17771aee7dae4Smrgif ac_fn_c_try_compile "$LINENO"; then : 17772aee7dae4Smrg _EXT_CHECK=yes 17773ba0eab60Smacallanelse 17774aee7dae4Smrg _EXT_CHECK=no 17775aee7dae4Smrgfi 17776aee7dae4Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17777aee7dae4Smrg CFLAGS="$SAVE_CFLAGS" 17778aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5 17779aee7dae4Smrg$as_echo_n "checking if XV is defined... " >&6; } 17780aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 17781aee7dae4Smrg$as_echo "$_EXT_CHECK" >&6; } 17782aee7dae4Smrg if test "$_EXT_CHECK" != no; then 17783aee7dae4Smrg REQUIRED_MODULES="$REQUIRED_MODULES videoproto" 17784aee7dae4Smrg fi 17785aee7dae4Smrg 17786aee7dae4Smrg 17787aee7dae4Smrg# Obtain compiler/linker options for the driver dependencies 17788ba0eab60Smacallan 17789aee7dae4Smrgpkg_failed=no 17790aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 17791aee7dae4Smrg$as_echo_n "checking for XORG... " >&6; } 17792aee7dae4Smrg 17793aee7dae4Smrgif test -n "$XORG_CFLAGS"; then 17794aee7dae4Smrg pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 17795aee7dae4Smrg elif test -n "$PKG_CONFIG"; then 17796aee7dae4Smrg if test -n "$PKG_CONFIG" && \ 17797aee7dae4Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 17798aee7dae4Smrg ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 17799aee7dae4Smrg ac_status=$? 17800aee7dae4Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17801aee7dae4Smrg test $ac_status = 0; }; then 17802aee7dae4Smrg pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 17803aee7dae4Smrg test "x$?" != "x0" && pkg_failed=yes 17804aee7dae4Smrgelse 17805aee7dae4Smrg pkg_failed=yes 17806ba0eab60Smacallanfi 17807aee7dae4Smrg else 17808aee7dae4Smrg pkg_failed=untried 17809ba0eab60Smacallanfi 17810aee7dae4Smrgif test -n "$XORG_LIBS"; then 17811aee7dae4Smrg pkg_cv_XORG_LIBS="$XORG_LIBS" 17812aee7dae4Smrg elif test -n "$PKG_CONFIG"; then 17813aee7dae4Smrg if test -n "$PKG_CONFIG" && \ 17814aee7dae4Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 17815aee7dae4Smrg ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 17816aee7dae4Smrg ac_status=$? 17817aee7dae4Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17818aee7dae4Smrg test $ac_status = 0; }; then 17819aee7dae4Smrg pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 17820aee7dae4Smrg test "x$?" != "x0" && pkg_failed=yes 17821ba0eab60Smacallanelse 17822aee7dae4Smrg pkg_failed=yes 17823aee7dae4Smrgfi 17824aee7dae4Smrg else 17825aee7dae4Smrg pkg_failed=untried 17826ba0eab60Smacallanfi 17827ba0eab60Smacallan 17828ba0eab60Smacallan 17829ba0eab60Smacallan 17830aee7dae4Smrgif test $pkg_failed = yes; then 17831aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17832aee7dae4Smrg$as_echo "no" >&6; } 17833ba0eab60Smacallan 17834aee7dae4Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17835aee7dae4Smrg _pkg_short_errors_supported=yes 17836ba0eab60Smacallanelse 17837aee7dae4Smrg _pkg_short_errors_supported=no 17838ba0eab60Smacallanfi 17839aee7dae4Smrg if test $_pkg_short_errors_supported = yes; then 17840aee7dae4Smrg XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1` 17841aee7dae4Smrg else 17842aee7dae4Smrg XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1` 17843aee7dae4Smrg fi 17844aee7dae4Smrg # Put the nasty error message in config.log where it belongs 17845aee7dae4Smrg echo "$XORG_PKG_ERRORS" >&5 17846ba0eab60Smacallan 17847aee7dae4Smrg as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met: 17848ba0eab60Smacallan 17849aee7dae4Smrg$XORG_PKG_ERRORS 17850ba0eab60Smacallan 17851aee7dae4SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 17852aee7dae4Smrginstalled software in a non-standard prefix. 17853ba0eab60Smacallan 17854aee7dae4SmrgAlternatively, you may set the environment variables XORG_CFLAGS 17855aee7dae4Smrgand XORG_LIBS to avoid the need to call pkg-config. 17856aee7dae4SmrgSee the pkg-config man page for more details." "$LINENO" 5 17857aee7dae4Smrgelif test $pkg_failed = untried; then 17858aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17859aee7dae4Smrg$as_echo "no" >&6; } 17860aee7dae4Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17861aee7dae4Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17862aee7dae4Smrgas_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 17863aee7dae4Smrgis in your PATH or set the PKG_CONFIG environment variable to the full 17864aee7dae4Smrgpath to pkg-config. 17865ba0eab60Smacallan 17866aee7dae4SmrgAlternatively, you may set the environment variables XORG_CFLAGS 17867aee7dae4Smrgand XORG_LIBS to avoid the need to call pkg-config. 17868aee7dae4SmrgSee the pkg-config man page for more details. 17869ba0eab60Smacallan 17870aee7dae4SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 17871aee7dae4SmrgSee \`config.log' for more details" "$LINENO" 5; } 17872aee7dae4Smrgelse 17873aee7dae4Smrg XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 17874aee7dae4Smrg XORG_LIBS=$pkg_cv_XORG_LIBS 17875aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17876aee7dae4Smrg$as_echo "yes" >&6; } 17877ba0eab60Smacallan 17878aee7dae4Smrgfi 17879ba0eab60Smacallan 17880aee7dae4Smrg# Checks for libraries. 17881ba0eab60Smacallan 17882ba0eab60Smacallan 17883ba0eab60Smacallan 17884aee7dae4SmrgDRIVER_NAME=newport 17885ba0eab60Smacallan 17886ba0eab60Smacallan 17887aee7dae4Smrgac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 17888ba0eab60Smacallan 17889aee7dae4Smrgcat >confcache <<\_ACEOF 17890aee7dae4Smrg# This file is a shell script that caches the results of configure 17891aee7dae4Smrg# tests run on this system so they can be shared between configure 17892aee7dae4Smrg# scripts and configure runs, see configure's option --config-cache. 17893aee7dae4Smrg# It is not useful on other systems. If it contains results you don't 17894aee7dae4Smrg# want to keep, you may remove or edit it. 17895aee7dae4Smrg# 17896aee7dae4Smrg# config.status only pays attention to the cache file if you give it 17897aee7dae4Smrg# the --recheck option to rerun configure. 17898aee7dae4Smrg# 17899aee7dae4Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when 17900aee7dae4Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the 17901aee7dae4Smrg# following values. 17902ba0eab60Smacallan 17903ba0eab60Smacallan_ACEOF 17904ba0eab60Smacallan 17905aee7dae4Smrg# The following way of writing the cache mishandles newlines in values, 17906aee7dae4Smrg# but we know of no workaround that is simple, portable, and efficient. 17907aee7dae4Smrg# So, we kill variables containing newlines. 17908aee7dae4Smrg# Ultrix sh set writes to stderr and can't be redirected directly, 17909aee7dae4Smrg# and sets the high bit in the cache file unless we assign to the vars. 17910aee7dae4Smrg( 17911aee7dae4Smrg for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 17912aee7dae4Smrg eval ac_val=\$$ac_var 17913aee7dae4Smrg case $ac_val in #( 17914aee7dae4Smrg *${as_nl}*) 17915aee7dae4Smrg case $ac_var in #( 17916aee7dae4Smrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 17917aee7dae4Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 17918aee7dae4Smrg esac 17919aee7dae4Smrg case $ac_var in #( 17920aee7dae4Smrg _ | IFS | as_nl) ;; #( 17921aee7dae4Smrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 17922aee7dae4Smrg *) { eval $ac_var=; unset $ac_var;} ;; 17923aee7dae4Smrg esac ;; 17924aee7dae4Smrg esac 17925aee7dae4Smrg done 17926aee7dae4Smrg 17927aee7dae4Smrg (set) 2>&1 | 17928aee7dae4Smrg case $as_nl`(ac_space=' '; set) 2>&1` in #( 17929aee7dae4Smrg *${as_nl}ac_space=\ *) 17930aee7dae4Smrg # `set' does not quote correctly, so add quotes: double-quote 17931aee7dae4Smrg # substitution turns \\\\ into \\, and sed turns \\ into \. 17932aee7dae4Smrg sed -n \ 17933aee7dae4Smrg "s/'/'\\\\''/g; 17934aee7dae4Smrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 17935aee7dae4Smrg ;; #( 17936aee7dae4Smrg *) 17937aee7dae4Smrg # `set' quotes correctly as required by POSIX, so do not add quotes. 17938aee7dae4Smrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 17939aee7dae4Smrg ;; 17940aee7dae4Smrg esac | 17941aee7dae4Smrg sort 17942aee7dae4Smrg) | 17943aee7dae4Smrg sed ' 17944aee7dae4Smrg /^ac_cv_env_/b end 17945aee7dae4Smrg t clear 17946aee7dae4Smrg :clear 17947aee7dae4Smrg s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 17948aee7dae4Smrg t end 17949aee7dae4Smrg s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 17950aee7dae4Smrg :end' >>confcache 17951aee7dae4Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else 17952aee7dae4Smrg if test -w "$cache_file"; then 17953aee7dae4Smrg if test "x$cache_file" != "x/dev/null"; then 17954aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 17955aee7dae4Smrg$as_echo "$as_me: updating cache $cache_file" >&6;} 17956aee7dae4Smrg if test ! -f "$cache_file" || test -h "$cache_file"; then 17957aee7dae4Smrg cat confcache >"$cache_file" 17958aee7dae4Smrg else 17959aee7dae4Smrg case $cache_file in #( 17960aee7dae4Smrg */* | ?:*) 17961aee7dae4Smrg mv -f confcache "$cache_file"$$ && 17962aee7dae4Smrg mv -f "$cache_file"$$ "$cache_file" ;; #( 17963aee7dae4Smrg *) 17964aee7dae4Smrg mv -f confcache "$cache_file" ;; 17965aee7dae4Smrg esac 17966aee7dae4Smrg fi 17967aee7dae4Smrg fi 17968aee7dae4Smrg else 17969aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 17970aee7dae4Smrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 17971aee7dae4Smrg fi 17972aee7dae4Smrgfi 17973aee7dae4Smrgrm -f confcache 17974ba0eab60Smacallan 17975aee7dae4Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix 17976aee7dae4Smrg# Let make expand exec_prefix. 17977aee7dae4Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 17978ba0eab60Smacallan 17979aee7dae4SmrgDEFS=-DHAVE_CONFIG_H 17980ba0eab60Smacallan 17981aee7dae4Smrgac_libobjs= 17982aee7dae4Smrgac_ltlibobjs= 17983aee7dae4SmrgU= 17984aee7dae4Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 17985aee7dae4Smrg # 1. Remove the extension, and $U if already installed. 17986aee7dae4Smrg ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 17987aee7dae4Smrg ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 17988aee7dae4Smrg # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 17989aee7dae4Smrg # will be set to the directory where LIBOBJS objects are built. 17990aee7dae4Smrg as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 17991aee7dae4Smrg as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 17992aee7dae4Smrgdone 17993aee7dae4SmrgLIBOBJS=$ac_libobjs 17994ba0eab60Smacallan 17995aee7dae4SmrgLTLIBOBJS=$ac_ltlibobjs 17996ba0eab60Smacallan 17997ba0eab60Smacallan 17998aee7dae4Smrg if test -n "$EXEEXT"; then 17999aee7dae4Smrg am__EXEEXT_TRUE= 18000aee7dae4Smrg am__EXEEXT_FALSE='#' 18001aee7dae4Smrgelse 18002aee7dae4Smrg am__EXEEXT_TRUE='#' 18003aee7dae4Smrg am__EXEEXT_FALSE= 18004ba0eab60Smacallanfi 18005ba0eab60Smacallan 18006aee7dae4Smrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 18007aee7dae4Smrg as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 18008aee7dae4SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 18009aee7dae4Smrgfi 18010aee7dae4Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 18011aee7dae4Smrg as_fn_error $? "conditional \"AMDEP\" was never defined. 18012aee7dae4SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 18013aee7dae4Smrgfi 18014aee7dae4Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18015aee7dae4Smrg as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18016aee7dae4SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 18017aee7dae4Smrgfi 18018ba0eab60Smacallan 18019aee7dae4Smrg: "${CONFIG_STATUS=./config.status}" 18020aee7dae4Smrgac_write_fail=0 18021aee7dae4Smrgac_clean_files_save=$ac_clean_files 18022aee7dae4Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS" 18023aee7dae4Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 18024aee7dae4Smrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 18025aee7dae4Smrgas_write_fail=0 18026aee7dae4Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 18027aee7dae4Smrg#! $SHELL 18028aee7dae4Smrg# Generated by $as_me. 18029aee7dae4Smrg# Run this file to recreate the current configuration. 18030aee7dae4Smrg# Compiler output produced by configure, useful for debugging 18031aee7dae4Smrg# configure, is in config.log if it exists. 18032ba0eab60Smacallan 18033aee7dae4Smrgdebug=false 18034aee7dae4Smrgac_cs_recheck=false 18035aee7dae4Smrgac_cs_silent=false 18036ba0eab60Smacallan 18037aee7dae4SmrgSHELL=\${CONFIG_SHELL-$SHELL} 18038aee7dae4Smrgexport SHELL 18039aee7dae4Smrg_ASEOF 18040aee7dae4Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18041aee7dae4Smrg## -------------------- ## 18042aee7dae4Smrg## M4sh Initialization. ## 18043aee7dae4Smrg## -------------------- ## 18044aee7dae4Smrg 18045aee7dae4Smrg# Be more Bourne compatible 18046aee7dae4SmrgDUALCASE=1; export DUALCASE # for MKS sh 18047aee7dae4Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18048aee7dae4Smrg emulate sh 18049aee7dae4Smrg NULLCMD=: 18050aee7dae4Smrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18051aee7dae4Smrg # is contrary to our usage. Disable this feature. 18052aee7dae4Smrg alias -g '${1+"$@"}'='"$@"' 18053aee7dae4Smrg setopt NO_GLOB_SUBST 18054ba0eab60Smacallanelse 18055aee7dae4Smrg case `(set -o) 2>/dev/null` in #( 18056aee7dae4Smrg *posix*) : 18057aee7dae4Smrg set -o posix ;; #( 18058aee7dae4Smrg *) : 18059aee7dae4Smrg ;; 18060aee7dae4Smrgesac 18061ba0eab60Smacallanfi 18062ba0eab60Smacallan 18063ba0eab60Smacallan 18064aee7dae4Smrgas_nl=' 18065aee7dae4Smrg' 18066aee7dae4Smrgexport as_nl 18067aee7dae4Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 18068aee7dae4Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18069aee7dae4Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18070aee7dae4Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18071aee7dae4Smrg# Prefer a ksh shell builtin over an external printf program on Solaris, 18072aee7dae4Smrg# but without wasting forks for bash or zsh. 18073aee7dae4Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \ 18074aee7dae4Smrg && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 18075aee7dae4Smrg as_echo='print -r --' 18076aee7dae4Smrg as_echo_n='print -rn --' 18077aee7dae4Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18078aee7dae4Smrg as_echo='printf %s\n' 18079aee7dae4Smrg as_echo_n='printf %s' 18080aee7dae4Smrgelse 18081aee7dae4Smrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18082aee7dae4Smrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18083aee7dae4Smrg as_echo_n='/usr/ucb/echo -n' 18084aee7dae4Smrg else 18085aee7dae4Smrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18086aee7dae4Smrg as_echo_n_body='eval 18087aee7dae4Smrg arg=$1; 18088aee7dae4Smrg case $arg in #( 18089aee7dae4Smrg *"$as_nl"*) 18090aee7dae4Smrg expr "X$arg" : "X\\(.*\\)$as_nl"; 18091aee7dae4Smrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 18092aee7dae4Smrg esac; 18093aee7dae4Smrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18094aee7dae4Smrg ' 18095aee7dae4Smrg export as_echo_n_body 18096aee7dae4Smrg as_echo_n='sh -c $as_echo_n_body as_echo' 18097aee7dae4Smrg fi 18098aee7dae4Smrg export as_echo_body 18099aee7dae4Smrg as_echo='sh -c $as_echo_body as_echo' 18100aee7dae4Smrgfi 18101aee7dae4Smrg 18102aee7dae4Smrg# The user is always right. 18103aee7dae4Smrgif test "${PATH_SEPARATOR+set}" != set; then 18104aee7dae4Smrg PATH_SEPARATOR=: 18105aee7dae4Smrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18106aee7dae4Smrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18107aee7dae4Smrg PATH_SEPARATOR=';' 18108aee7dae4Smrg } 18109aee7dae4Smrgfi 18110ba0eab60Smacallan 18111ba0eab60Smacallan 18112aee7dae4Smrg# IFS 18113aee7dae4Smrg# We need space, tab and new line, in precisely that order. Quoting is 18114aee7dae4Smrg# there to prevent editors from complaining about space-tab. 18115aee7dae4Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18116aee7dae4Smrg# splitting by setting IFS to empty value.) 18117aee7dae4SmrgIFS=" "" $as_nl" 18118aee7dae4Smrg 18119aee7dae4Smrg# Find who we are. Look in the path if we contain no directory separator. 18120aee7dae4Smrgas_myself= 18121aee7dae4Smrgcase $0 in #(( 18122aee7dae4Smrg *[\\/]* ) as_myself=$0 ;; 18123aee7dae4Smrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18124ba0eab60Smacallanfor as_dir in $PATH 18125ba0eab60Smacallando 18126ba0eab60Smacallan IFS=$as_save_IFS 18127ba0eab60Smacallan test -z "$as_dir" && as_dir=. 18128aee7dae4Smrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18129aee7dae4Smrg done 18130aee7dae4SmrgIFS=$as_save_IFS 18131ba0eab60Smacallan 18132aee7dae4Smrg ;; 18133ba0eab60Smacallanesac 18134aee7dae4Smrg# We did not find ourselves, most probably we were run as `sh COMMAND' 18135aee7dae4Smrg# in which case we are not to be found in the path. 18136aee7dae4Smrgif test "x$as_myself" = x; then 18137aee7dae4Smrg as_myself=$0 18138aee7dae4Smrgfi 18139aee7dae4Smrgif test ! -f "$as_myself"; then 18140aee7dae4Smrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18141aee7dae4Smrg exit 1 18142aee7dae4Smrgfi 18143aee7dae4Smrg 18144aee7dae4Smrg# Unset variables that we do not need and which cause bugs (e.g. in 18145aee7dae4Smrg# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 18146aee7dae4Smrg# suppresses any "Segmentation fault" message there. '((' could 18147aee7dae4Smrg# trigger a bug in pdksh 5.2.14. 18148aee7dae4Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH 18149aee7dae4Smrgdo eval test x\${$as_var+set} = xset \ 18150aee7dae4Smrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 18151aee7dae4Smrgdone 18152aee7dae4SmrgPS1='$ ' 18153aee7dae4SmrgPS2='> ' 18154aee7dae4SmrgPS4='+ ' 18155ba0eab60Smacallan 18156aee7dae4Smrg# NLS nuisances. 18157aee7dae4SmrgLC_ALL=C 18158aee7dae4Smrgexport LC_ALL 18159aee7dae4SmrgLANGUAGE=C 18160aee7dae4Smrgexport LANGUAGE 18161ba0eab60Smacallan 18162aee7dae4Smrg# CDPATH. 18163aee7dae4Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18164aee7dae4Smrg 18165aee7dae4Smrg 18166aee7dae4Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 18167aee7dae4Smrg# ---------------------------------------- 18168aee7dae4Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 18169aee7dae4Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 18170aee7dae4Smrg# script with STATUS, using 1 if that was 0. 18171aee7dae4Smrgas_fn_error () 18172aee7dae4Smrg{ 18173aee7dae4Smrg as_status=$1; test $as_status -eq 0 && as_status=1 18174aee7dae4Smrg if test "$4"; then 18175aee7dae4Smrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18176aee7dae4Smrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 18177ba0eab60Smacallan fi 18178aee7dae4Smrg $as_echo "$as_me: error: $2" >&2 18179aee7dae4Smrg as_fn_exit $as_status 18180aee7dae4Smrg} # as_fn_error 18181ba0eab60Smacallan 18182ba0eab60Smacallan 18183aee7dae4Smrg# as_fn_set_status STATUS 18184aee7dae4Smrg# ----------------------- 18185aee7dae4Smrg# Set $? to STATUS, without forking. 18186aee7dae4Smrgas_fn_set_status () 18187aee7dae4Smrg{ 18188aee7dae4Smrg return $1 18189aee7dae4Smrg} # as_fn_set_status 18190ba0eab60Smacallan 18191aee7dae4Smrg# as_fn_exit STATUS 18192aee7dae4Smrg# ----------------- 18193aee7dae4Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 18194aee7dae4Smrgas_fn_exit () 18195aee7dae4Smrg{ 18196aee7dae4Smrg set +e 18197aee7dae4Smrg as_fn_set_status $1 18198aee7dae4Smrg exit $1 18199aee7dae4Smrg} # as_fn_exit 18200aee7dae4Smrg 18201aee7dae4Smrg# as_fn_unset VAR 18202aee7dae4Smrg# --------------- 18203aee7dae4Smrg# Portably unset VAR. 18204aee7dae4Smrgas_fn_unset () 18205aee7dae4Smrg{ 18206aee7dae4Smrg { eval $1=; unset $1;} 18207aee7dae4Smrg} 18208aee7dae4Smrgas_unset=as_fn_unset 18209aee7dae4Smrg# as_fn_append VAR VALUE 18210aee7dae4Smrg# ---------------------- 18211aee7dae4Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take 18212aee7dae4Smrg# advantage of any shell optimizations that allow amortized linear growth over 18213aee7dae4Smrg# repeated appends, instead of the typical quadratic growth present in naive 18214aee7dae4Smrg# implementations. 18215aee7dae4Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 18216aee7dae4Smrg eval 'as_fn_append () 18217aee7dae4Smrg { 18218aee7dae4Smrg eval $1+=\$2 18219aee7dae4Smrg }' 18220ba0eab60Smacallanelse 18221aee7dae4Smrg as_fn_append () 18222aee7dae4Smrg { 18223aee7dae4Smrg eval $1=\$$1\$2 18224aee7dae4Smrg } 18225aee7dae4Smrgfi # as_fn_append 18226aee7dae4Smrg 18227aee7dae4Smrg# as_fn_arith ARG... 18228aee7dae4Smrg# ------------------ 18229aee7dae4Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the 18230aee7dae4Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 18231aee7dae4Smrg# must be portable across $(()) and expr. 18232aee7dae4Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 18233aee7dae4Smrg eval 'as_fn_arith () 18234aee7dae4Smrg { 18235aee7dae4Smrg as_val=$(( $* )) 18236aee7dae4Smrg }' 18237aee7dae4Smrgelse 18238aee7dae4Smrg as_fn_arith () 18239aee7dae4Smrg { 18240aee7dae4Smrg as_val=`expr "$@" || test $? -eq 1` 18241aee7dae4Smrg } 18242aee7dae4Smrgfi # as_fn_arith 18243ba0eab60Smacallan 18244ba0eab60Smacallan 18245aee7dae4Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 18246aee7dae4Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 18247aee7dae4Smrg as_expr=expr 18248aee7dae4Smrgelse 18249aee7dae4Smrg as_expr=false 18250ba0eab60Smacallanfi 18251ba0eab60Smacallan 18252aee7dae4Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 18253aee7dae4Smrg as_basename=basename 18254ba0eab60Smacallanelse 18255aee7dae4Smrg as_basename=false 18256ba0eab60Smacallanfi 18257aee7dae4Smrg 18258aee7dae4Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 18259aee7dae4Smrg as_dirname=dirname 18260ba0eab60Smacallanelse 18261aee7dae4Smrg as_dirname=false 18262ba0eab60Smacallanfi 18263aee7dae4Smrg 18264aee7dae4Smrgas_me=`$as_basename -- "$0" || 18265aee7dae4Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 18266aee7dae4Smrg X"$0" : 'X\(//\)$' \| \ 18267aee7dae4Smrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 18268aee7dae4Smrg$as_echo X/"$0" | 18269aee7dae4Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 18270aee7dae4Smrg s//\1/ 18271aee7dae4Smrg q 18272aee7dae4Smrg } 18273aee7dae4Smrg /^X\/\(\/\/\)$/{ 18274aee7dae4Smrg s//\1/ 18275aee7dae4Smrg q 18276aee7dae4Smrg } 18277aee7dae4Smrg /^X\/\(\/\).*/{ 18278aee7dae4Smrg s//\1/ 18279aee7dae4Smrg q 18280aee7dae4Smrg } 18281aee7dae4Smrg s/.*/./; q'` 18282aee7dae4Smrg 18283aee7dae4Smrg# Avoid depending upon Character Ranges. 18284aee7dae4Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 18285aee7dae4Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 18286aee7dae4Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 18287aee7dae4Smrgas_cr_digits='0123456789' 18288aee7dae4Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits 18289aee7dae4Smrg 18290aee7dae4SmrgECHO_C= ECHO_N= ECHO_T= 18291aee7dae4Smrgcase `echo -n x` in #((((( 18292aee7dae4Smrg-n*) 18293aee7dae4Smrg case `echo 'xy\c'` in 18294aee7dae4Smrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 18295aee7dae4Smrg xy) ECHO_C='\c';; 18296aee7dae4Smrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 18297aee7dae4Smrg ECHO_T=' ';; 18298aee7dae4Smrg esac;; 18299aee7dae4Smrg*) 18300aee7dae4Smrg ECHO_N='-n';; 18301aee7dae4Smrgesac 18302aee7dae4Smrg 18303aee7dae4Smrgrm -f conf$$ conf$$.exe conf$$.file 18304aee7dae4Smrgif test -d conf$$.dir; then 18305aee7dae4Smrg rm -f conf$$.dir/conf$$.file 18306ba0eab60Smacallanelse 18307aee7dae4Smrg rm -f conf$$.dir 18308aee7dae4Smrg mkdir conf$$.dir 2>/dev/null 18309ba0eab60Smacallanfi 18310aee7dae4Smrgif (echo >conf$$.file) 2>/dev/null; then 18311aee7dae4Smrg if ln -s conf$$.file conf$$ 2>/dev/null; then 18312aee7dae4Smrg as_ln_s='ln -s' 18313aee7dae4Smrg # ... but there are two gotchas: 18314aee7dae4Smrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 18315aee7dae4Smrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 18316aee7dae4Smrg # In both cases, we have to default to `cp -pR'. 18317aee7dae4Smrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 18318aee7dae4Smrg as_ln_s='cp -pR' 18319aee7dae4Smrg elif ln conf$$.file conf$$ 2>/dev/null; then 18320aee7dae4Smrg as_ln_s=ln 18321aee7dae4Smrg else 18322aee7dae4Smrg as_ln_s='cp -pR' 18323aee7dae4Smrg fi 18324ba0eab60Smacallanelse 18325aee7dae4Smrg as_ln_s='cp -pR' 18326ba0eab60Smacallanfi 18327aee7dae4Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 18328aee7dae4Smrgrmdir conf$$.dir 2>/dev/null 18329ba0eab60Smacallan 18330ba0eab60Smacallan 18331aee7dae4Smrg# as_fn_mkdir_p 18332aee7dae4Smrg# ------------- 18333aee7dae4Smrg# Create "$as_dir" as a directory, including parents if necessary. 18334aee7dae4Smrgas_fn_mkdir_p () 18335aee7dae4Smrg{ 18336ba0eab60Smacallan 18337aee7dae4Smrg case $as_dir in #( 18338aee7dae4Smrg -*) as_dir=./$as_dir;; 18339aee7dae4Smrg esac 18340aee7dae4Smrg test -d "$as_dir" || eval $as_mkdir_p || { 18341aee7dae4Smrg as_dirs= 18342aee7dae4Smrg while :; do 18343aee7dae4Smrg case $as_dir in #( 18344aee7dae4Smrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 18345aee7dae4Smrg *) as_qdir=$as_dir;; 18346aee7dae4Smrg esac 18347aee7dae4Smrg as_dirs="'$as_qdir' $as_dirs" 18348aee7dae4Smrg as_dir=`$as_dirname -- "$as_dir" || 18349aee7dae4Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18350aee7dae4Smrg X"$as_dir" : 'X\(//\)[^/]' \| \ 18351aee7dae4Smrg X"$as_dir" : 'X\(//\)$' \| \ 18352aee7dae4Smrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 18353aee7dae4Smrg$as_echo X"$as_dir" | 18354aee7dae4Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18355aee7dae4Smrg s//\1/ 18356aee7dae4Smrg q 18357aee7dae4Smrg } 18358aee7dae4Smrg /^X\(\/\/\)[^/].*/{ 18359aee7dae4Smrg s//\1/ 18360aee7dae4Smrg q 18361aee7dae4Smrg } 18362aee7dae4Smrg /^X\(\/\/\)$/{ 18363aee7dae4Smrg s//\1/ 18364aee7dae4Smrg q 18365aee7dae4Smrg } 18366aee7dae4Smrg /^X\(\/\).*/{ 18367aee7dae4Smrg s//\1/ 18368aee7dae4Smrg q 18369aee7dae4Smrg } 18370aee7dae4Smrg s/.*/./; q'` 18371aee7dae4Smrg test -d "$as_dir" && break 18372aee7dae4Smrg done 18373aee7dae4Smrg test -z "$as_dirs" || eval "mkdir $as_dirs" 18374aee7dae4Smrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 18375ba0eab60Smacallan 18376aee7dae4Smrg 18377aee7dae4Smrg} # as_fn_mkdir_p 18378aee7dae4Smrgif mkdir -p . 2>/dev/null; then 18379aee7dae4Smrg as_mkdir_p='mkdir -p "$as_dir"' 18380ba0eab60Smacallanelse 18381aee7dae4Smrg test -d ./-p && rmdir ./-p 18382aee7dae4Smrg as_mkdir_p=false 18383ba0eab60Smacallanfi 18384ba0eab60Smacallan 18385ba0eab60Smacallan 18386aee7dae4Smrg# as_fn_executable_p FILE 18387aee7dae4Smrg# ----------------------- 18388aee7dae4Smrg# Test if FILE is an executable regular file. 18389aee7dae4Smrgas_fn_executable_p () 18390aee7dae4Smrg{ 18391aee7dae4Smrg test -f "$1" && test -x "$1" 18392aee7dae4Smrg} # as_fn_executable_p 18393aee7dae4Smrgas_test_x='test -x' 18394aee7dae4Smrgas_executable_p=as_fn_executable_p 18395aee7dae4Smrg 18396aee7dae4Smrg# Sed expression to map a string onto a valid CPP name. 18397aee7dae4Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 18398aee7dae4Smrg 18399aee7dae4Smrg# Sed expression to map a string onto a valid variable name. 18400aee7dae4Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 18401aee7dae4Smrg 18402aee7dae4Smrg 18403aee7dae4Smrgexec 6>&1 18404aee7dae4Smrg## ----------------------------------- ## 18405aee7dae4Smrg## Main body of $CONFIG_STATUS script. ## 18406aee7dae4Smrg## ----------------------------------- ## 18407aee7dae4Smrg_ASEOF 18408aee7dae4Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 18409aee7dae4Smrg 18410aee7dae4Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18411aee7dae4Smrg# Save the log message, to keep $0 and so on meaningful, and to 18412aee7dae4Smrg# report actual input values of CONFIG_FILES etc. instead of their 18413aee7dae4Smrg# values after options handling. 18414aee7dae4Smrgac_log=" 18415aee7dae4SmrgThis file was extended by xf86-video-newport $as_me 0.2.4, which was 18416aee7dae4Smrggenerated by GNU Autoconf 2.69. Invocation command line was 18417aee7dae4Smrg 18418aee7dae4Smrg CONFIG_FILES = $CONFIG_FILES 18419aee7dae4Smrg CONFIG_HEADERS = $CONFIG_HEADERS 18420aee7dae4Smrg CONFIG_LINKS = $CONFIG_LINKS 18421aee7dae4Smrg CONFIG_COMMANDS = $CONFIG_COMMANDS 18422aee7dae4Smrg $ $0 $@ 18423aee7dae4Smrg 18424aee7dae4Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q` 18425aee7dae4Smrg" 18426aee7dae4Smrg 18427aee7dae4Smrg_ACEOF 18428ba0eab60Smacallan 18429aee7dae4Smrgcase $ac_config_files in *" 18430aee7dae4Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;; 18431aee7dae4Smrgesac 18432ba0eab60Smacallan 18433aee7dae4Smrgcase $ac_config_headers in *" 18434aee7dae4Smrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 18435aee7dae4Smrgesac 18436ba0eab60Smacallan 18437ba0eab60Smacallan 18438aee7dae4Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18439aee7dae4Smrg# Files that config.status was made for. 18440aee7dae4Smrgconfig_files="$ac_config_files" 18441aee7dae4Smrgconfig_headers="$ac_config_headers" 18442aee7dae4Smrgconfig_commands="$ac_config_commands" 18443ba0eab60Smacallan 18444aee7dae4Smrg_ACEOF 18445ba0eab60Smacallan 18446aee7dae4Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18447aee7dae4Smrgac_cs_usage="\ 18448aee7dae4Smrg\`$as_me' instantiates files and other configuration actions 18449aee7dae4Smrgfrom templates according to the current configuration. Unless the files 18450aee7dae4Smrgand actions are specified as TAGs, all are instantiated by default. 18451ba0eab60Smacallan 18452aee7dae4SmrgUsage: $0 [OPTION]... [TAG]... 18453ba0eab60Smacallan 18454aee7dae4Smrg -h, --help print this help, then exit 18455aee7dae4Smrg -V, --version print version number and configuration settings, then exit 18456aee7dae4Smrg --config print configuration, then exit 18457aee7dae4Smrg -q, --quiet, --silent 18458aee7dae4Smrg do not print progress messages 18459aee7dae4Smrg -d, --debug don't remove temporary files 18460aee7dae4Smrg --recheck update $as_me by reconfiguring in the same conditions 18461aee7dae4Smrg --file=FILE[:TEMPLATE] 18462aee7dae4Smrg instantiate the configuration file FILE 18463aee7dae4Smrg --header=FILE[:TEMPLATE] 18464aee7dae4Smrg instantiate the configuration header FILE 18465ba0eab60Smacallan 18466aee7dae4SmrgConfiguration files: 18467aee7dae4Smrg$config_files 18468ba0eab60Smacallan 18469aee7dae4SmrgConfiguration headers: 18470aee7dae4Smrg$config_headers 18471ba0eab60Smacallan 18472aee7dae4SmrgConfiguration commands: 18473aee7dae4Smrg$config_commands 18474ba0eab60Smacallan 18475aee7dae4SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 18476ba0eab60Smacallan 18477ba0eab60Smacallan_ACEOF 18478aee7dae4Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18479aee7dae4Smrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 18480aee7dae4Smrgac_cs_version="\\ 18481aee7dae4Smrgxf86-video-newport config.status 0.2.4 18482aee7dae4Smrgconfigured by $0, generated by GNU Autoconf 2.69, 18483aee7dae4Smrg with options \\"\$ac_cs_config\\" 18484ba0eab60Smacallan 18485aee7dae4SmrgCopyright (C) 2012 Free Software Foundation, Inc. 18486aee7dae4SmrgThis config.status script is free software; the Free Software Foundation 18487aee7dae4Smrggives unlimited permission to copy, distribute and modify it." 18488ba0eab60Smacallan 18489aee7dae4Smrgac_pwd='$ac_pwd' 18490aee7dae4Smrgsrcdir='$srcdir' 18491aee7dae4SmrgINSTALL='$INSTALL' 18492aee7dae4SmrgMKDIR_P='$MKDIR_P' 18493aee7dae4SmrgAWK='$AWK' 18494aee7dae4Smrgtest -n "\$AWK" || AWK=awk 18495ba0eab60Smacallan_ACEOF 18496ba0eab60Smacallan 18497aee7dae4Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18498aee7dae4Smrg# The default lists apply if the user does not specify any file. 18499aee7dae4Smrgac_need_defaults=: 18500aee7dae4Smrgwhile test $# != 0 18501aee7dae4Smrgdo 18502aee7dae4Smrg case $1 in 18503aee7dae4Smrg --*=?*) 18504aee7dae4Smrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 18505aee7dae4Smrg ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 18506aee7dae4Smrg ac_shift=: 18507aee7dae4Smrg ;; 18508aee7dae4Smrg --*=) 18509aee7dae4Smrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 18510aee7dae4Smrg ac_optarg= 18511aee7dae4Smrg ac_shift=: 18512aee7dae4Smrg ;; 18513aee7dae4Smrg *) 18514aee7dae4Smrg ac_option=$1 18515aee7dae4Smrg ac_optarg=$2 18516aee7dae4Smrg ac_shift=shift 18517aee7dae4Smrg ;; 18518aee7dae4Smrg esac 18519aee7dae4Smrg 18520aee7dae4Smrg case $ac_option in 18521aee7dae4Smrg # Handling of the options. 18522aee7dae4Smrg -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 18523aee7dae4Smrg ac_cs_recheck=: ;; 18524aee7dae4Smrg --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 18525aee7dae4Smrg $as_echo "$ac_cs_version"; exit ;; 18526aee7dae4Smrg --config | --confi | --conf | --con | --co | --c ) 18527aee7dae4Smrg $as_echo "$ac_cs_config"; exit ;; 18528aee7dae4Smrg --debug | --debu | --deb | --de | --d | -d ) 18529aee7dae4Smrg debug=: ;; 18530aee7dae4Smrg --file | --fil | --fi | --f ) 18531aee7dae4Smrg $ac_shift 18532aee7dae4Smrg case $ac_optarg in 18533aee7dae4Smrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18534aee7dae4Smrg '') as_fn_error $? "missing file argument" ;; 18535aee7dae4Smrg esac 18536aee7dae4Smrg as_fn_append CONFIG_FILES " '$ac_optarg'" 18537aee7dae4Smrg ac_need_defaults=false;; 18538aee7dae4Smrg --header | --heade | --head | --hea ) 18539aee7dae4Smrg $ac_shift 18540aee7dae4Smrg case $ac_optarg in 18541aee7dae4Smrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18542aee7dae4Smrg esac 18543aee7dae4Smrg as_fn_append CONFIG_HEADERS " '$ac_optarg'" 18544aee7dae4Smrg ac_need_defaults=false;; 18545aee7dae4Smrg --he | --h) 18546aee7dae4Smrg # Conflict between --help and --header 18547aee7dae4Smrg as_fn_error $? "ambiguous option: \`$1' 18548aee7dae4SmrgTry \`$0 --help' for more information.";; 18549aee7dae4Smrg --help | --hel | -h ) 18550aee7dae4Smrg $as_echo "$ac_cs_usage"; exit ;; 18551aee7dae4Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18552aee7dae4Smrg | -silent | --silent | --silen | --sile | --sil | --si | --s) 18553aee7dae4Smrg ac_cs_silent=: ;; 18554aee7dae4Smrg 18555aee7dae4Smrg # This is an error. 18556aee7dae4Smrg -*) as_fn_error $? "unrecognized option: \`$1' 18557aee7dae4SmrgTry \`$0 --help' for more information." ;; 18558aee7dae4Smrg 18559aee7dae4Smrg *) as_fn_append ac_config_targets " $1" 18560aee7dae4Smrg ac_need_defaults=false ;; 18561aee7dae4Smrg 18562aee7dae4Smrg esac 18563aee7dae4Smrg shift 18564aee7dae4Smrgdone 18565aee7dae4Smrg 18566aee7dae4Smrgac_configure_extra_args= 18567aee7dae4Smrg 18568aee7dae4Smrgif $ac_cs_silent; then 18569aee7dae4Smrg exec 6>/dev/null 18570aee7dae4Smrg ac_configure_extra_args="$ac_configure_extra_args --silent" 18571ba0eab60Smacallanfi 18572ba0eab60Smacallan 18573aee7dae4Smrg_ACEOF 18574aee7dae4Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18575aee7dae4Smrgif \$ac_cs_recheck; then 18576aee7dae4Smrg set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 18577aee7dae4Smrg shift 18578aee7dae4Smrg \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 18579aee7dae4Smrg CONFIG_SHELL='$SHELL' 18580aee7dae4Smrg export CONFIG_SHELL 18581aee7dae4Smrg exec "\$@" 18582ba0eab60Smacallanfi 18583ba0eab60Smacallan 18584ba0eab60Smacallan_ACEOF 18585aee7dae4Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18586aee7dae4Smrgexec 5>>config.log 18587aee7dae4Smrg{ 18588aee7dae4Smrg echo 18589aee7dae4Smrg sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 18590aee7dae4Smrg## Running $as_me. ## 18591aee7dae4Smrg_ASBOX 18592aee7dae4Smrg $as_echo "$ac_log" 18593aee7dae4Smrg} >&5 18594ba0eab60Smacallan 18595ba0eab60Smacallan_ACEOF 18596aee7dae4Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18597aee7dae4Smrg# 18598aee7dae4Smrg# INIT-COMMANDS 18599aee7dae4Smrg# 18600aee7dae4SmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 18601ba0eab60Smacallan 18602ba0eab60Smacallan 18603aee7dae4Smrg# The HP-UX ksh and POSIX shell print the target directory to stdout 18604aee7dae4Smrg# if CDPATH is set. 18605aee7dae4Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18606ba0eab60Smacallan 18607aee7dae4Smrgsed_quote_subst='$sed_quote_subst' 18608aee7dae4Smrgdouble_quote_subst='$double_quote_subst' 18609aee7dae4Smrgdelay_variable_subst='$delay_variable_subst' 18610aee7dae4Smrgenable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 18611aee7dae4Smrgmacro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 18612aee7dae4Smrgmacro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 18613aee7dae4Smrgenable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 18614aee7dae4Smrgpic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 18615aee7dae4Smrgenable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 18616aee7dae4SmrgSHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 18617aee7dae4SmrgECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 18618aee7dae4SmrgPATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 18619aee7dae4Smrghost_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 18620aee7dae4Smrghost='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 18621aee7dae4Smrghost_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 18622aee7dae4Smrgbuild_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 18623aee7dae4Smrgbuild='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 18624aee7dae4Smrgbuild_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 18625aee7dae4SmrgSED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 18626aee7dae4SmrgXsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 18627aee7dae4SmrgGREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 18628aee7dae4SmrgEGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 18629aee7dae4SmrgFGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 18630aee7dae4SmrgLD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 18631aee7dae4SmrgNM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 18632aee7dae4SmrgLN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 18633aee7dae4Smrgmax_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 18634aee7dae4Smrgac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 18635aee7dae4Smrgexeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 18636aee7dae4Smrglt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 18637aee7dae4Smrglt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 18638aee7dae4Smrglt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 18639aee7dae4Smrglt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 18640aee7dae4Smrglt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 18641aee7dae4Smrgreload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 18642aee7dae4Smrgreload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 18643aee7dae4SmrgOBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 18644aee7dae4Smrgdeplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 18645aee7dae4Smrgfile_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 18646aee7dae4Smrgfile_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 18647aee7dae4Smrgwant_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 18648aee7dae4SmrgDLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 18649aee7dae4Smrgsharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 18650aee7dae4SmrgAR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 18651aee7dae4SmrgAR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 18652aee7dae4Smrgarchiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 18653aee7dae4SmrgSTRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 18654aee7dae4SmrgRANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 18655aee7dae4Smrgold_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18656aee7dae4Smrgold_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18657aee7dae4Smrgold_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 18658aee7dae4Smrglock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 18659aee7dae4SmrgCC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 18660aee7dae4SmrgCFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 18661aee7dae4Smrgcompiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 18662aee7dae4SmrgGCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 18663aee7dae4Smrglt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 18664aee7dae4Smrglt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 18665aee7dae4Smrglt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 18666aee7dae4Smrglt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' 18667aee7dae4Smrgnm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 18668aee7dae4Smrglt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 18669aee7dae4Smrgobjdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 18670aee7dae4SmrgMAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 18671aee7dae4Smrglt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 18672aee7dae4Smrglt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 18673aee7dae4Smrglt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 18674aee7dae4Smrglt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 18675aee7dae4Smrglt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 18676aee7dae4Smrgneed_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 18677aee7dae4SmrgMANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 18678aee7dae4SmrgDSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 18679aee7dae4SmrgNMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 18680aee7dae4SmrgLIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 18681aee7dae4SmrgOTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 18682aee7dae4SmrgOTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 18683aee7dae4Smrglibext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 18684aee7dae4Smrgshrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 18685aee7dae4Smrgextract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18686aee7dae4Smrgarchive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 18687aee7dae4Smrgenable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 18688aee7dae4Smrgexport_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 18689aee7dae4Smrgwhole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 18690aee7dae4Smrgcompiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 18691aee7dae4Smrgold_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 18692aee7dae4Smrgold_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18693aee7dae4Smrgarchive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 18694aee7dae4Smrgarchive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18695aee7dae4Smrgmodule_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 18696aee7dae4Smrgmodule_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18697aee7dae4Smrgwith_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 18698aee7dae4Smrgallow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 18699aee7dae4Smrgno_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 18700aee7dae4Smrghardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 18701aee7dae4Smrghardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 18702aee7dae4Smrghardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 18703aee7dae4Smrghardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 18704aee7dae4Smrghardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 18705aee7dae4Smrghardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 18706aee7dae4Smrghardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 18707aee7dae4Smrginherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 18708aee7dae4Smrglink_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 18709aee7dae4Smrgalways_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 18710aee7dae4Smrgexport_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 18711aee7dae4Smrgexclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 18712aee7dae4Smrginclude_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 18713aee7dae4Smrgprelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 18714aee7dae4Smrgpostlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 18715aee7dae4Smrgfile_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 18716aee7dae4Smrgvariables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 18717aee7dae4Smrgneed_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 18718aee7dae4Smrgneed_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 18719aee7dae4Smrgversion_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 18720aee7dae4Smrgrunpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 18721aee7dae4Smrgshlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 18722aee7dae4Smrgshlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 18723aee7dae4Smrglibname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 18724aee7dae4Smrglibrary_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 18725aee7dae4Smrgsoname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 18726aee7dae4Smrginstall_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 18727aee7dae4Smrgpostinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18728aee7dae4Smrgpostuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18729aee7dae4Smrgfinish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 18730aee7dae4Smrgfinish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 18731aee7dae4Smrghardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 18732aee7dae4Smrgsys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 18733aee7dae4Smrgsys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 18734aee7dae4Smrghardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 18735aee7dae4Smrgenable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 18736aee7dae4Smrgenable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 18737aee7dae4Smrgenable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 18738aee7dae4Smrgold_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 18739aee7dae4Smrgstriplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 18740aee7dae4Smrg 18741aee7dae4SmrgLTCC='$LTCC' 18742aee7dae4SmrgLTCFLAGS='$LTCFLAGS' 18743aee7dae4Smrgcompiler='$compiler_DEFAULT' 18744aee7dae4Smrg 18745aee7dae4Smrg# A function that is used when there is no print builtin or printf. 18746aee7dae4Smrgfunc_fallback_echo () 18747ba0eab60Smacallan{ 18748aee7dae4Smrg eval 'cat <<_LTECHO_EOF 18749aee7dae4Smrg\$1 18750aee7dae4Smrg_LTECHO_EOF' 18751ba0eab60Smacallan} 18752ba0eab60Smacallan 18753aee7dae4Smrg# Quote evaled strings. 18754aee7dae4Smrgfor var in SHELL \ 18755aee7dae4SmrgECHO \ 18756aee7dae4SmrgPATH_SEPARATOR \ 18757aee7dae4SmrgSED \ 18758aee7dae4SmrgGREP \ 18759aee7dae4SmrgEGREP \ 18760aee7dae4SmrgFGREP \ 18761aee7dae4SmrgLD \ 18762aee7dae4SmrgNM \ 18763aee7dae4SmrgLN_S \ 18764aee7dae4Smrglt_SP2NL \ 18765aee7dae4Smrglt_NL2SP \ 18766aee7dae4Smrgreload_flag \ 18767aee7dae4SmrgOBJDUMP \ 18768aee7dae4Smrgdeplibs_check_method \ 18769aee7dae4Smrgfile_magic_cmd \ 18770aee7dae4Smrgfile_magic_glob \ 18771aee7dae4Smrgwant_nocaseglob \ 18772aee7dae4SmrgDLLTOOL \ 18773aee7dae4Smrgsharedlib_from_linklib_cmd \ 18774aee7dae4SmrgAR \ 18775aee7dae4SmrgAR_FLAGS \ 18776aee7dae4Smrgarchiver_list_spec \ 18777aee7dae4SmrgSTRIP \ 18778aee7dae4SmrgRANLIB \ 18779aee7dae4SmrgCC \ 18780aee7dae4SmrgCFLAGS \ 18781aee7dae4Smrgcompiler \ 18782aee7dae4Smrglt_cv_sys_global_symbol_pipe \ 18783aee7dae4Smrglt_cv_sys_global_symbol_to_cdecl \ 18784aee7dae4Smrglt_cv_sys_global_symbol_to_c_name_address \ 18785aee7dae4Smrglt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 18786aee7dae4Smrgnm_file_list_spec \ 18787aee7dae4Smrglt_prog_compiler_no_builtin_flag \ 18788aee7dae4Smrglt_prog_compiler_pic \ 18789aee7dae4Smrglt_prog_compiler_wl \ 18790aee7dae4Smrglt_prog_compiler_static \ 18791aee7dae4Smrglt_cv_prog_compiler_c_o \ 18792aee7dae4Smrgneed_locks \ 18793aee7dae4SmrgMANIFEST_TOOL \ 18794aee7dae4SmrgDSYMUTIL \ 18795aee7dae4SmrgNMEDIT \ 18796aee7dae4SmrgLIPO \ 18797aee7dae4SmrgOTOOL \ 18798aee7dae4SmrgOTOOL64 \ 18799aee7dae4Smrgshrext_cmds \ 18800aee7dae4Smrgexport_dynamic_flag_spec \ 18801aee7dae4Smrgwhole_archive_flag_spec \ 18802aee7dae4Smrgcompiler_needs_object \ 18803aee7dae4Smrgwith_gnu_ld \ 18804aee7dae4Smrgallow_undefined_flag \ 18805aee7dae4Smrgno_undefined_flag \ 18806aee7dae4Smrghardcode_libdir_flag_spec \ 18807aee7dae4Smrghardcode_libdir_separator \ 18808aee7dae4Smrgexclude_expsyms \ 18809aee7dae4Smrginclude_expsyms \ 18810aee7dae4Smrgfile_list_spec \ 18811aee7dae4Smrgvariables_saved_for_relink \ 18812aee7dae4Smrglibname_spec \ 18813aee7dae4Smrglibrary_names_spec \ 18814aee7dae4Smrgsoname_spec \ 18815aee7dae4Smrginstall_override_mode \ 18816aee7dae4Smrgfinish_eval \ 18817aee7dae4Smrgold_striplib \ 18818aee7dae4Smrgstriplib; do 18819aee7dae4Smrg case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18820aee7dae4Smrg *[\\\\\\\`\\"\\\$]*) 18821aee7dae4Smrg eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 18822aee7dae4Smrg ;; 18823aee7dae4Smrg *) 18824aee7dae4Smrg eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18825aee7dae4Smrg ;; 18826aee7dae4Smrg esac 18827aee7dae4Smrgdone 18828ba0eab60Smacallan 18829aee7dae4Smrg# Double-quote double-evaled strings. 18830aee7dae4Smrgfor var in reload_cmds \ 18831aee7dae4Smrgold_postinstall_cmds \ 18832aee7dae4Smrgold_postuninstall_cmds \ 18833aee7dae4Smrgold_archive_cmds \ 18834aee7dae4Smrgextract_expsyms_cmds \ 18835aee7dae4Smrgold_archive_from_new_cmds \ 18836aee7dae4Smrgold_archive_from_expsyms_cmds \ 18837aee7dae4Smrgarchive_cmds \ 18838aee7dae4Smrgarchive_expsym_cmds \ 18839aee7dae4Smrgmodule_cmds \ 18840aee7dae4Smrgmodule_expsym_cmds \ 18841aee7dae4Smrgexport_symbols_cmds \ 18842aee7dae4Smrgprelink_cmds \ 18843aee7dae4Smrgpostlink_cmds \ 18844aee7dae4Smrgpostinstall_cmds \ 18845aee7dae4Smrgpostuninstall_cmds \ 18846aee7dae4Smrgfinish_cmds \ 18847aee7dae4Smrgsys_lib_search_path_spec \ 18848aee7dae4Smrgsys_lib_dlsearch_path_spec; do 18849aee7dae4Smrg case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18850aee7dae4Smrg *[\\\\\\\`\\"\\\$]*) 18851aee7dae4Smrg eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 18852aee7dae4Smrg ;; 18853aee7dae4Smrg *) 18854aee7dae4Smrg eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18855aee7dae4Smrg ;; 18856aee7dae4Smrg esac 18857aee7dae4Smrgdone 18858ba0eab60Smacallan 18859aee7dae4Smrgac_aux_dir='$ac_aux_dir' 18860aee7dae4Smrgxsi_shell='$xsi_shell' 18861aee7dae4Smrglt_shell_append='$lt_shell_append' 18862ba0eab60Smacallan 18863aee7dae4Smrg# See if we are running on zsh, and set the options which allow our 18864aee7dae4Smrg# commands through without removal of \ escapes INIT. 18865aee7dae4Smrgif test -n "\${ZSH_VERSION+set}" ; then 18866aee7dae4Smrg setopt NO_GLOB_SUBST 18867aee7dae4Smrgfi 18868ba0eab60Smacallan 18869ba0eab60Smacallan 18870aee7dae4Smrg PACKAGE='$PACKAGE' 18871aee7dae4Smrg VERSION='$VERSION' 18872aee7dae4Smrg TIMESTAMP='$TIMESTAMP' 18873aee7dae4Smrg RM='$RM' 18874aee7dae4Smrg ofile='$ofile' 18875ba0eab60Smacallan 18876ba0eab60Smacallan 18877ba0eab60Smacallan 18878ba0eab60Smacallan 18879aee7dae4Smrg_ACEOF 18880ba0eab60Smacallan 18881aee7dae4Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18882ba0eab60Smacallan 18883aee7dae4Smrg# Handling of arguments. 18884aee7dae4Smrgfor ac_config_target in $ac_config_targets 18885aee7dae4Smrgdo 18886aee7dae4Smrg case $ac_config_target in 18887aee7dae4Smrg "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 18888aee7dae4Smrg "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 18889aee7dae4Smrg "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 18890aee7dae4Smrg "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 18891aee7dae4Smrg "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 18892aee7dae4Smrg "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 18893aee7dae4Smrg 18894aee7dae4Smrg *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 18895aee7dae4Smrg esac 18896aee7dae4Smrgdone 18897ba0eab60Smacallan 18898ba0eab60Smacallan 18899aee7dae4Smrg# If the user did not use the arguments to specify the items to instantiate, 18900aee7dae4Smrg# then the envvar interface is used. Set only those that are not. 18901aee7dae4Smrg# We use the long form for the default assignment because of an extremely 18902aee7dae4Smrg# bizarre bug on SunOS 4.1.3. 18903aee7dae4Smrgif $ac_need_defaults; then 18904aee7dae4Smrg test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 18905aee7dae4Smrg test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 18906aee7dae4Smrg test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 18907ba0eab60Smacallanfi 18908ba0eab60Smacallan 18909aee7dae4Smrg# Have a temporary directory for convenience. Make it in the build tree 18910aee7dae4Smrg# simply because there is no reason against having it here, and in addition, 18911aee7dae4Smrg# creating and moving files from /tmp can sometimes cause problems. 18912aee7dae4Smrg# Hook for its removal unless debugging. 18913aee7dae4Smrg# Note that there is a small window in which the directory will not be cleaned: 18914aee7dae4Smrg# after its creation but before its name has been assigned to `$tmp'. 18915aee7dae4Smrg$debug || 18916aee7dae4Smrg{ 18917aee7dae4Smrg tmp= ac_tmp= 18918aee7dae4Smrg trap 'exit_status=$? 18919aee7dae4Smrg : "${ac_tmp:=$tmp}" 18920aee7dae4Smrg { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 18921aee7dae4Smrg' 0 18922aee7dae4Smrg trap 'as_fn_exit 1' 1 2 13 15 18923aee7dae4Smrg} 18924aee7dae4Smrg# Create a (secure) tmp directory for tmp files. 18925ba0eab60Smacallan 18926aee7dae4Smrg{ 18927aee7dae4Smrg tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 18928aee7dae4Smrg test -d "$tmp" 18929aee7dae4Smrg} || 18930aee7dae4Smrg{ 18931aee7dae4Smrg tmp=./conf$$-$RANDOM 18932aee7dae4Smrg (umask 077 && mkdir "$tmp") 18933aee7dae4Smrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 18934aee7dae4Smrgac_tmp=$tmp 18935ba0eab60Smacallan 18936aee7dae4Smrg# Set up the scripts for CONFIG_FILES section. 18937aee7dae4Smrg# No need to generate them if there are no CONFIG_FILES. 18938aee7dae4Smrg# This happens for instance with `./config.status config.h'. 18939aee7dae4Smrgif test -n "$CONFIG_FILES"; then 18940ba0eab60Smacallan 18941aee7dae4Smrg 18942aee7dae4Smrgac_cr=`echo X | tr X '\015'` 18943aee7dae4Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr. 18944aee7dae4Smrg# But we know of no other shell where ac_cr would be empty at this 18945aee7dae4Smrg# point, so we can use a bashism as a fallback. 18946aee7dae4Smrgif test "x$ac_cr" = x; then 18947aee7dae4Smrg eval ac_cr=\$\'\\r\' 18948ba0eab60Smacallanfi 18949aee7dae4Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 18950aee7dae4Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 18951aee7dae4Smrg ac_cs_awk_cr='\\r' 18952aee7dae4Smrgelse 18953aee7dae4Smrg ac_cs_awk_cr=$ac_cr 18954ba0eab60Smacallanfi 18955ba0eab60Smacallan 18956aee7dae4Smrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" && 18957aee7dae4Smrg_ACEOF 18958ba0eab60Smacallan 18959ba0eab60Smacallan 18960aee7dae4Smrg{ 18961aee7dae4Smrg echo "cat >conf$$subs.awk <<_ACEOF" && 18962aee7dae4Smrg echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 18963aee7dae4Smrg echo "_ACEOF" 18964aee7dae4Smrg} >conf$$subs.sh || 18965aee7dae4Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18966aee7dae4Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 18967aee7dae4Smrgac_delim='%!_!# ' 18968aee7dae4Smrgfor ac_last_try in false false false false false :; do 18969aee7dae4Smrg . ./conf$$subs.sh || 18970aee7dae4Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18971aee7dae4Smrg 18972aee7dae4Smrg ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 18973aee7dae4Smrg if test $ac_delim_n = $ac_delim_num; then 18974aee7dae4Smrg break 18975aee7dae4Smrg elif $ac_last_try; then 18976aee7dae4Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18977aee7dae4Smrg else 18978aee7dae4Smrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18979aee7dae4Smrg fi 18980aee7dae4Smrgdone 18981aee7dae4Smrgrm -f conf$$subs.sh 18982ba0eab60Smacallan 18983aee7dae4Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18984aee7dae4Smrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 18985aee7dae4Smrg_ACEOF 18986aee7dae4Smrgsed -n ' 18987aee7dae4Smrgh 18988aee7dae4Smrgs/^/S["/; s/!.*/"]=/ 18989aee7dae4Smrgp 18990aee7dae4Smrgg 18991aee7dae4Smrgs/^[^!]*!// 18992aee7dae4Smrg:repl 18993aee7dae4Smrgt repl 18994aee7dae4Smrgs/'"$ac_delim"'$// 18995aee7dae4Smrgt delim 18996aee7dae4Smrg:nl 18997aee7dae4Smrgh 18998aee7dae4Smrgs/\(.\{148\}\)..*/\1/ 18999aee7dae4Smrgt more1 19000aee7dae4Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19001aee7dae4Smrgp 19002aee7dae4Smrgn 19003aee7dae4Smrgb repl 19004aee7dae4Smrg:more1 19005aee7dae4Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19006aee7dae4Smrgp 19007aee7dae4Smrgg 19008aee7dae4Smrgs/.\{148\}// 19009aee7dae4Smrgt nl 19010aee7dae4Smrg:delim 19011aee7dae4Smrgh 19012aee7dae4Smrgs/\(.\{148\}\)..*/\1/ 19013aee7dae4Smrgt more2 19014aee7dae4Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/ 19015aee7dae4Smrgp 19016aee7dae4Smrgb 19017aee7dae4Smrg:more2 19018aee7dae4Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19019aee7dae4Smrgp 19020aee7dae4Smrgg 19021aee7dae4Smrgs/.\{148\}// 19022aee7dae4Smrgt delim 19023aee7dae4Smrg' <conf$$subs.awk | sed ' 19024aee7dae4Smrg/^[^""]/{ 19025aee7dae4Smrg N 19026aee7dae4Smrg s/\n// 19027aee7dae4Smrg} 19028aee7dae4Smrg' >>$CONFIG_STATUS || ac_write_fail=1 19029aee7dae4Smrgrm -f conf$$subs.awk 19030aee7dae4Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19031aee7dae4Smrg_ACAWK 19032aee7dae4Smrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 19033aee7dae4Smrg for (key in S) S_is_set[key] = 1 19034aee7dae4Smrg FS = "" 19035ba0eab60Smacallan 19036aee7dae4Smrg} 19037aee7dae4Smrg{ 19038aee7dae4Smrg line = $ 0 19039aee7dae4Smrg nfields = split(line, field, "@") 19040aee7dae4Smrg substed = 0 19041aee7dae4Smrg len = length(field[1]) 19042aee7dae4Smrg for (i = 2; i < nfields; i++) { 19043aee7dae4Smrg key = field[i] 19044aee7dae4Smrg keylen = length(key) 19045aee7dae4Smrg if (S_is_set[key]) { 19046aee7dae4Smrg value = S[key] 19047aee7dae4Smrg line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19048aee7dae4Smrg len += length(value) + length(field[++i]) 19049aee7dae4Smrg substed = 1 19050aee7dae4Smrg } else 19051aee7dae4Smrg len += 1 + keylen 19052aee7dae4Smrg } 19053aee7dae4Smrg 19054aee7dae4Smrg print line 19055aee7dae4Smrg} 19056ba0eab60Smacallan 19057aee7dae4Smrg_ACAWK 19058aee7dae4Smrg_ACEOF 19059aee7dae4Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19060aee7dae4Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19061aee7dae4Smrg sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19062aee7dae4Smrgelse 19063aee7dae4Smrg cat 19064aee7dae4Smrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19065aee7dae4Smrg || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19066aee7dae4Smrg_ACEOF 19067ba0eab60Smacallan 19068aee7dae4Smrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19069aee7dae4Smrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19070aee7dae4Smrg# trailing colons and then remove the whole line if VPATH becomes empty 19071aee7dae4Smrg# (actually we leave an empty line to preserve line numbers). 19072aee7dae4Smrgif test "x$srcdir" = x.; then 19073aee7dae4Smrg ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19074aee7dae4Smrgh 19075aee7dae4Smrgs/// 19076aee7dae4Smrgs/^/:/ 19077aee7dae4Smrgs/[ ]*$/:/ 19078aee7dae4Smrgs/:\$(srcdir):/:/g 19079aee7dae4Smrgs/:\${srcdir}:/:/g 19080aee7dae4Smrgs/:@srcdir@:/:/g 19081aee7dae4Smrgs/^:*// 19082aee7dae4Smrgs/:*$// 19083aee7dae4Smrgx 19084aee7dae4Smrgs/\(=[ ]*\).*/\1/ 19085aee7dae4SmrgG 19086aee7dae4Smrgs/\n// 19087aee7dae4Smrgs/^[^=]*=[ ]*$// 19088aee7dae4Smrg}' 19089aee7dae4Smrgfi 19090ba0eab60Smacallan 19091aee7dae4Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19092aee7dae4Smrgfi # test -n "$CONFIG_FILES" 19093ba0eab60Smacallan 19094aee7dae4Smrg# Set up the scripts for CONFIG_HEADERS section. 19095aee7dae4Smrg# No need to generate them if there are no CONFIG_HEADERS. 19096aee7dae4Smrg# This happens for instance with `./config.status Makefile'. 19097aee7dae4Smrgif test -n "$CONFIG_HEADERS"; then 19098aee7dae4Smrgcat >"$ac_tmp/defines.awk" <<\_ACAWK || 19099aee7dae4SmrgBEGIN { 19100aee7dae4Smrg_ACEOF 19101ba0eab60Smacallan 19102aee7dae4Smrg# Transform confdefs.h into an awk script `defines.awk', embedded as 19103aee7dae4Smrg# here-document in config.status, that substitutes the proper values into 19104aee7dae4Smrg# config.h.in to produce config.h. 19105ba0eab60Smacallan 19106aee7dae4Smrg# Create a delimiter string that does not exist in confdefs.h, to ease 19107aee7dae4Smrg# handling of long lines. 19108aee7dae4Smrgac_delim='%!_!# ' 19109aee7dae4Smrgfor ac_last_try in false false :; do 19110aee7dae4Smrg ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 19111aee7dae4Smrg if test -z "$ac_tt"; then 19112aee7dae4Smrg break 19113aee7dae4Smrg elif $ac_last_try; then 19114aee7dae4Smrg as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 19115aee7dae4Smrg else 19116aee7dae4Smrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19117aee7dae4Smrg fi 19118aee7dae4Smrgdone 19119ba0eab60Smacallan 19120aee7dae4Smrg# For the awk script, D is an array of macro values keyed by name, 19121aee7dae4Smrg# likewise P contains macro parameters if any. Preserve backslash 19122aee7dae4Smrg# newline sequences. 19123aee7dae4Smrg 19124aee7dae4Smrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19125aee7dae4Smrgsed -n ' 19126aee7dae4Smrgs/.\{148\}/&'"$ac_delim"'/g 19127aee7dae4Smrgt rset 19128aee7dae4Smrg:rset 19129aee7dae4Smrgs/^[ ]*#[ ]*define[ ][ ]*/ / 19130aee7dae4Smrgt def 19131aee7dae4Smrgd 19132aee7dae4Smrg:def 19133aee7dae4Smrgs/\\$// 19134aee7dae4Smrgt bsnl 19135aee7dae4Smrgs/["\\]/\\&/g 19136aee7dae4Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19137aee7dae4SmrgD["\1"]=" \3"/p 19138aee7dae4Smrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 19139aee7dae4Smrgd 19140aee7dae4Smrg:bsnl 19141aee7dae4Smrgs/["\\]/\\&/g 19142aee7dae4Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19143aee7dae4SmrgD["\1"]=" \3\\\\\\n"\\/p 19144aee7dae4Smrgt cont 19145aee7dae4Smrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 19146aee7dae4Smrgt cont 19147aee7dae4Smrgd 19148aee7dae4Smrg:cont 19149aee7dae4Smrgn 19150aee7dae4Smrgs/.\{148\}/&'"$ac_delim"'/g 19151aee7dae4Smrgt clear 19152aee7dae4Smrg:clear 19153aee7dae4Smrgs/\\$// 19154aee7dae4Smrgt bsnlc 19155aee7dae4Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/p 19156aee7dae4Smrgd 19157aee7dae4Smrg:bsnlc 19158aee7dae4Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 19159aee7dae4Smrgb cont 19160aee7dae4Smrg' <confdefs.h | sed ' 19161aee7dae4Smrgs/'"$ac_delim"'/"\\\ 19162aee7dae4Smrg"/g' >>$CONFIG_STATUS || ac_write_fail=1 19163aee7dae4Smrg 19164aee7dae4Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19165aee7dae4Smrg for (key in D) D_is_set[key] = 1 19166aee7dae4Smrg FS = "" 19167aee7dae4Smrg} 19168aee7dae4Smrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 19169aee7dae4Smrg line = \$ 0 19170aee7dae4Smrg split(line, arg, " ") 19171aee7dae4Smrg if (arg[1] == "#") { 19172aee7dae4Smrg defundef = arg[2] 19173aee7dae4Smrg mac1 = arg[3] 19174aee7dae4Smrg } else { 19175aee7dae4Smrg defundef = substr(arg[1], 2) 19176aee7dae4Smrg mac1 = arg[2] 19177aee7dae4Smrg } 19178aee7dae4Smrg split(mac1, mac2, "(") #) 19179aee7dae4Smrg macro = mac2[1] 19180aee7dae4Smrg prefix = substr(line, 1, index(line, defundef) - 1) 19181aee7dae4Smrg if (D_is_set[macro]) { 19182aee7dae4Smrg # Preserve the white space surrounding the "#". 19183aee7dae4Smrg print prefix "define", macro P[macro] D[macro] 19184aee7dae4Smrg next 19185aee7dae4Smrg } else { 19186aee7dae4Smrg # Replace #undef with comments. This is necessary, for example, 19187aee7dae4Smrg # in the case of _POSIX_SOURCE, which is predefined and required 19188aee7dae4Smrg # on some systems where configure will not decide to define it. 19189aee7dae4Smrg if (defundef == "undef") { 19190aee7dae4Smrg print "/*", prefix defundef, macro, "*/" 19191aee7dae4Smrg next 19192aee7dae4Smrg } 19193aee7dae4Smrg } 19194aee7dae4Smrg} 19195aee7dae4Smrg{ print } 19196aee7dae4Smrg_ACAWK 19197aee7dae4Smrg_ACEOF 19198aee7dae4Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19199aee7dae4Smrg as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 19200aee7dae4Smrgfi # test -n "$CONFIG_HEADERS" 19201ba0eab60Smacallan 19202ba0eab60Smacallan 19203aee7dae4Smrgeval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 19204aee7dae4Smrgshift 19205aee7dae4Smrgfor ac_tag 19206aee7dae4Smrgdo 19207aee7dae4Smrg case $ac_tag in 19208aee7dae4Smrg :[FHLC]) ac_mode=$ac_tag; continue;; 19209aee7dae4Smrg esac 19210aee7dae4Smrg case $ac_mode$ac_tag in 19211aee7dae4Smrg :[FHL]*:*);; 19212aee7dae4Smrg :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 19213aee7dae4Smrg :[FH]-) ac_tag=-:-;; 19214aee7dae4Smrg :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 19215aee7dae4Smrg esac 19216aee7dae4Smrg ac_save_IFS=$IFS 19217aee7dae4Smrg IFS=: 19218aee7dae4Smrg set x $ac_tag 19219aee7dae4Smrg IFS=$ac_save_IFS 19220aee7dae4Smrg shift 19221aee7dae4Smrg ac_file=$1 19222aee7dae4Smrg shift 19223ba0eab60Smacallan 19224aee7dae4Smrg case $ac_mode in 19225aee7dae4Smrg :L) ac_source=$1;; 19226aee7dae4Smrg :[FH]) 19227aee7dae4Smrg ac_file_inputs= 19228aee7dae4Smrg for ac_f 19229aee7dae4Smrg do 19230aee7dae4Smrg case $ac_f in 19231aee7dae4Smrg -) ac_f="$ac_tmp/stdin";; 19232aee7dae4Smrg *) # Look for the file first in the build tree, then in the source tree 19233aee7dae4Smrg # (if the path is not absolute). The absolute path cannot be DOS-style, 19234aee7dae4Smrg # because $ac_f cannot contain `:'. 19235aee7dae4Smrg test -f "$ac_f" || 19236aee7dae4Smrg case $ac_f in 19237aee7dae4Smrg [\\/$]*) false;; 19238aee7dae4Smrg *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 19239aee7dae4Smrg esac || 19240aee7dae4Smrg as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 19241aee7dae4Smrg esac 19242aee7dae4Smrg case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 19243aee7dae4Smrg as_fn_append ac_file_inputs " '$ac_f'" 19244aee7dae4Smrg done 19245ba0eab60Smacallan 19246aee7dae4Smrg # Let's still pretend it is `configure' which instantiates (i.e., don't 19247aee7dae4Smrg # use $as_me), people would be surprised to read: 19248aee7dae4Smrg # /* config.h. Generated by config.status. */ 19249aee7dae4Smrg configure_input='Generated from '` 19250aee7dae4Smrg $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 19251aee7dae4Smrg `' by configure.' 19252aee7dae4Smrg if test x"$ac_file" != x-; then 19253aee7dae4Smrg configure_input="$ac_file. $configure_input" 19254aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 19255aee7dae4Smrg$as_echo "$as_me: creating $ac_file" >&6;} 19256aee7dae4Smrg fi 19257aee7dae4Smrg # Neutralize special characters interpreted by sed in replacement strings. 19258aee7dae4Smrg case $configure_input in #( 19259aee7dae4Smrg *\&* | *\|* | *\\* ) 19260aee7dae4Smrg ac_sed_conf_input=`$as_echo "$configure_input" | 19261aee7dae4Smrg sed 's/[\\\\&|]/\\\\&/g'`;; #( 19262aee7dae4Smrg *) ac_sed_conf_input=$configure_input;; 19263aee7dae4Smrg esac 19264ba0eab60Smacallan 19265aee7dae4Smrg case $ac_tag in 19266aee7dae4Smrg *:-:* | *:-) cat >"$ac_tmp/stdin" \ 19267aee7dae4Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 19268aee7dae4Smrg esac 19269aee7dae4Smrg ;; 19270aee7dae4Smrg esac 19271ba0eab60Smacallan 19272aee7dae4Smrg ac_dir=`$as_dirname -- "$ac_file" || 19273aee7dae4Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19274aee7dae4Smrg X"$ac_file" : 'X\(//\)[^/]' \| \ 19275aee7dae4Smrg X"$ac_file" : 'X\(//\)$' \| \ 19276aee7dae4Smrg X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 19277aee7dae4Smrg$as_echo X"$ac_file" | 19278aee7dae4Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19279aee7dae4Smrg s//\1/ 19280aee7dae4Smrg q 19281aee7dae4Smrg } 19282aee7dae4Smrg /^X\(\/\/\)[^/].*/{ 19283aee7dae4Smrg s//\1/ 19284aee7dae4Smrg q 19285aee7dae4Smrg } 19286aee7dae4Smrg /^X\(\/\/\)$/{ 19287aee7dae4Smrg s//\1/ 19288aee7dae4Smrg q 19289aee7dae4Smrg } 19290aee7dae4Smrg /^X\(\/\).*/{ 19291aee7dae4Smrg s//\1/ 19292aee7dae4Smrg q 19293aee7dae4Smrg } 19294aee7dae4Smrg s/.*/./; q'` 19295aee7dae4Smrg as_dir="$ac_dir"; as_fn_mkdir_p 19296aee7dae4Smrg ac_builddir=. 19297ba0eab60Smacallan 19298aee7dae4Smrgcase "$ac_dir" in 19299aee7dae4Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 19300aee7dae4Smrg*) 19301aee7dae4Smrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 19302aee7dae4Smrg # A ".." for each directory in $ac_dir_suffix. 19303aee7dae4Smrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 19304aee7dae4Smrg case $ac_top_builddir_sub in 19305aee7dae4Smrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 19306aee7dae4Smrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 19307aee7dae4Smrg esac ;; 19308aee7dae4Smrgesac 19309aee7dae4Smrgac_abs_top_builddir=$ac_pwd 19310aee7dae4Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix 19311aee7dae4Smrg# for backward compatibility: 19312aee7dae4Smrgac_top_builddir=$ac_top_build_prefix 19313ba0eab60Smacallan 19314aee7dae4Smrgcase $srcdir in 19315aee7dae4Smrg .) # We are building in place. 19316aee7dae4Smrg ac_srcdir=. 19317aee7dae4Smrg ac_top_srcdir=$ac_top_builddir_sub 19318aee7dae4Smrg ac_abs_top_srcdir=$ac_pwd ;; 19319aee7dae4Smrg [\\/]* | ?:[\\/]* ) # Absolute name. 19320aee7dae4Smrg ac_srcdir=$srcdir$ac_dir_suffix; 19321aee7dae4Smrg ac_top_srcdir=$srcdir 19322aee7dae4Smrg ac_abs_top_srcdir=$srcdir ;; 19323aee7dae4Smrg *) # Relative name. 19324aee7dae4Smrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 19325aee7dae4Smrg ac_top_srcdir=$ac_top_build_prefix$srcdir 19326aee7dae4Smrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 19327aee7dae4Smrgesac 19328aee7dae4Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 19329ba0eab60Smacallan 19330ba0eab60Smacallan 19331aee7dae4Smrg case $ac_mode in 19332aee7dae4Smrg :F) 19333aee7dae4Smrg # 19334aee7dae4Smrg # CONFIG_FILE 19335aee7dae4Smrg # 19336ba0eab60Smacallan 19337aee7dae4Smrg case $INSTALL in 19338aee7dae4Smrg [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 19339aee7dae4Smrg *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 19340aee7dae4Smrg esac 19341aee7dae4Smrg ac_MKDIR_P=$MKDIR_P 19342aee7dae4Smrg case $MKDIR_P in 19343aee7dae4Smrg [\\/$]* | ?:[\\/]* ) ;; 19344aee7dae4Smrg */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 19345aee7dae4Smrg esac 19346aee7dae4Smrg_ACEOF 19347ba0eab60Smacallan 19348aee7dae4Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19349aee7dae4Smrg# If the template does not know about datarootdir, expand it. 19350aee7dae4Smrg# FIXME: This hack should be removed a few years after 2.60. 19351aee7dae4Smrgac_datarootdir_hack=; ac_datarootdir_seen= 19352aee7dae4Smrgac_sed_dataroot=' 19353aee7dae4Smrg/datarootdir/ { 19354aee7dae4Smrg p 19355aee7dae4Smrg q 19356aee7dae4Smrg} 19357aee7dae4Smrg/@datadir@/p 19358aee7dae4Smrg/@docdir@/p 19359aee7dae4Smrg/@infodir@/p 19360aee7dae4Smrg/@localedir@/p 19361aee7dae4Smrg/@mandir@/p' 19362aee7dae4Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 19363aee7dae4Smrg*datarootdir*) ac_datarootdir_seen=yes;; 19364aee7dae4Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 19365aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 19366aee7dae4Smrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 19367aee7dae4Smrg_ACEOF 19368aee7dae4Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19369aee7dae4Smrg ac_datarootdir_hack=' 19370aee7dae4Smrg s&@datadir@&$datadir&g 19371aee7dae4Smrg s&@docdir@&$docdir&g 19372aee7dae4Smrg s&@infodir@&$infodir&g 19373aee7dae4Smrg s&@localedir@&$localedir&g 19374aee7dae4Smrg s&@mandir@&$mandir&g 19375aee7dae4Smrg s&\\\${datarootdir}&$datarootdir&g' ;; 19376ba0eab60Smacallanesac 19377aee7dae4Smrg_ACEOF 19378ba0eab60Smacallan 19379aee7dae4Smrg# Neutralize VPATH when `$srcdir' = `.'. 19380aee7dae4Smrg# Shell code in configure.ac might set extrasub. 19381aee7dae4Smrg# FIXME: do we really want to maintain this feature? 19382aee7dae4Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19383aee7dae4Smrgac_sed_extra="$ac_vpsub 19384aee7dae4Smrg$extrasub 19385aee7dae4Smrg_ACEOF 19386aee7dae4Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19387aee7dae4Smrg:t 19388aee7dae4Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 19389aee7dae4Smrgs|@configure_input@|$ac_sed_conf_input|;t t 19390aee7dae4Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t 19391aee7dae4Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t 19392aee7dae4Smrgs&@srcdir@&$ac_srcdir&;t t 19393aee7dae4Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t 19394aee7dae4Smrgs&@top_srcdir@&$ac_top_srcdir&;t t 19395aee7dae4Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 19396aee7dae4Smrgs&@builddir@&$ac_builddir&;t t 19397aee7dae4Smrgs&@abs_builddir@&$ac_abs_builddir&;t t 19398aee7dae4Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t 19399aee7dae4Smrgs&@INSTALL@&$ac_INSTALL&;t t 19400aee7dae4Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t 19401aee7dae4Smrg$ac_datarootdir_hack 19402aee7dae4Smrg" 19403aee7dae4Smrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 19404aee7dae4Smrg >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19405aee7dae4Smrg 19406aee7dae4Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 19407aee7dae4Smrg { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 19408aee7dae4Smrg { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 19409aee7dae4Smrg "$ac_tmp/out"`; test -z "$ac_out"; } && 19410aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19411aee7dae4Smrgwhich seems to be undefined. Please make sure it is defined" >&5 19412aee7dae4Smrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19413aee7dae4Smrgwhich seems to be undefined. Please make sure it is defined" >&2;} 19414aee7dae4Smrg 19415aee7dae4Smrg rm -f "$ac_tmp/stdin" 19416aee7dae4Smrg case $ac_file in 19417aee7dae4Smrg -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 19418aee7dae4Smrg *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 19419aee7dae4Smrg esac \ 19420aee7dae4Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19421aee7dae4Smrg ;; 19422aee7dae4Smrg :H) 19423aee7dae4Smrg # 19424aee7dae4Smrg # CONFIG_HEADER 19425aee7dae4Smrg # 19426aee7dae4Smrg if test x"$ac_file" != x-; then 19427aee7dae4Smrg { 19428aee7dae4Smrg $as_echo "/* $configure_input */" \ 19429aee7dae4Smrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 19430aee7dae4Smrg } >"$ac_tmp/config.h" \ 19431aee7dae4Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19432aee7dae4Smrg if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 19433aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 19434aee7dae4Smrg$as_echo "$as_me: $ac_file is unchanged" >&6;} 19435aee7dae4Smrg else 19436aee7dae4Smrg rm -f "$ac_file" 19437aee7dae4Smrg mv "$ac_tmp/config.h" "$ac_file" \ 19438aee7dae4Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19439aee7dae4Smrg fi 19440aee7dae4Smrg else 19441aee7dae4Smrg $as_echo "/* $configure_input */" \ 19442aee7dae4Smrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 19443aee7dae4Smrg || as_fn_error $? "could not create -" "$LINENO" 5 19444ba0eab60Smacallan fi 19445aee7dae4Smrg# Compute "$ac_file"'s index in $config_headers. 19446aee7dae4Smrg_am_arg="$ac_file" 19447aee7dae4Smrg_am_stamp_count=1 19448aee7dae4Smrgfor _am_header in $config_headers :; do 19449aee7dae4Smrg case $_am_header in 19450aee7dae4Smrg $_am_arg | $_am_arg:* ) 19451aee7dae4Smrg break ;; 19452aee7dae4Smrg * ) 19453aee7dae4Smrg _am_stamp_count=`expr $_am_stamp_count + 1` ;; 19454aee7dae4Smrg esac 19455ba0eab60Smacallandone 19456aee7dae4Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 19457aee7dae4Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19458aee7dae4Smrg X"$_am_arg" : 'X\(//\)[^/]' \| \ 19459aee7dae4Smrg X"$_am_arg" : 'X\(//\)$' \| \ 19460aee7dae4Smrg X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 19461aee7dae4Smrg$as_echo X"$_am_arg" | 19462aee7dae4Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19463aee7dae4Smrg s//\1/ 19464aee7dae4Smrg q 19465aee7dae4Smrg } 19466aee7dae4Smrg /^X\(\/\/\)[^/].*/{ 19467aee7dae4Smrg s//\1/ 19468aee7dae4Smrg q 19469aee7dae4Smrg } 19470aee7dae4Smrg /^X\(\/\/\)$/{ 19471aee7dae4Smrg s//\1/ 19472aee7dae4Smrg q 19473aee7dae4Smrg } 19474aee7dae4Smrg /^X\(\/\).*/{ 19475aee7dae4Smrg s//\1/ 19476aee7dae4Smrg q 19477aee7dae4Smrg } 19478aee7dae4Smrg s/.*/./; q'`/stamp-h$_am_stamp_count 19479aee7dae4Smrg ;; 19480ba0eab60Smacallan 19481aee7dae4Smrg :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 19482aee7dae4Smrg$as_echo "$as_me: executing $ac_file commands" >&6;} 19483aee7dae4Smrg ;; 19484aee7dae4Smrg esac 19485ba0eab60Smacallan 19486ba0eab60Smacallan 19487aee7dae4Smrg case $ac_file$ac_mode in 19488aee7dae4Smrg "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 19489aee7dae4Smrg # Autoconf 2.62 quotes --file arguments for eval, but not when files 19490aee7dae4Smrg # are listed without --file. Let's play safe and only enable the eval 19491aee7dae4Smrg # if we detect the quoting. 19492aee7dae4Smrg case $CONFIG_FILES in 19493aee7dae4Smrg *\'*) eval set x "$CONFIG_FILES" ;; 19494aee7dae4Smrg *) set x $CONFIG_FILES ;; 19495aee7dae4Smrg esac 19496aee7dae4Smrg shift 19497aee7dae4Smrg for mf 19498aee7dae4Smrg do 19499aee7dae4Smrg # Strip MF so we end up with the name of the file. 19500aee7dae4Smrg mf=`echo "$mf" | sed -e 's/:.*$//'` 19501aee7dae4Smrg # Check whether this is an Automake generated Makefile or not. 19502aee7dae4Smrg # We used to match only the files named `Makefile.in', but 19503aee7dae4Smrg # some people rename them; so instead we look at the file content. 19504aee7dae4Smrg # Grep'ing the first line is not enough: some people post-process 19505aee7dae4Smrg # each Makefile.in and add a new line on top of each file to say so. 19506aee7dae4Smrg # Grep'ing the whole file is not good either: AIX grep has a line 19507aee7dae4Smrg # limit of 2048, but all sed's we know have understand at least 4000. 19508aee7dae4Smrg if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 19509aee7dae4Smrg dirpart=`$as_dirname -- "$mf" || 19510aee7dae4Smrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19511aee7dae4Smrg X"$mf" : 'X\(//\)[^/]' \| \ 19512aee7dae4Smrg X"$mf" : 'X\(//\)$' \| \ 19513aee7dae4Smrg X"$mf" : 'X\(/\)' \| . 2>/dev/null || 19514aee7dae4Smrg$as_echo X"$mf" | 19515aee7dae4Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19516aee7dae4Smrg s//\1/ 19517aee7dae4Smrg q 19518aee7dae4Smrg } 19519aee7dae4Smrg /^X\(\/\/\)[^/].*/{ 19520aee7dae4Smrg s//\1/ 19521aee7dae4Smrg q 19522aee7dae4Smrg } 19523aee7dae4Smrg /^X\(\/\/\)$/{ 19524aee7dae4Smrg s//\1/ 19525aee7dae4Smrg q 19526aee7dae4Smrg } 19527aee7dae4Smrg /^X\(\/\).*/{ 19528aee7dae4Smrg s//\1/ 19529aee7dae4Smrg q 19530aee7dae4Smrg } 19531aee7dae4Smrg s/.*/./; q'` 19532aee7dae4Smrg else 19533aee7dae4Smrg continue 19534aee7dae4Smrg fi 19535aee7dae4Smrg # Extract the definition of DEPDIR, am__include, and am__quote 19536aee7dae4Smrg # from the Makefile without running `make'. 19537aee7dae4Smrg DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 19538aee7dae4Smrg test -z "$DEPDIR" && continue 19539aee7dae4Smrg am__include=`sed -n 's/^am__include = //p' < "$mf"` 19540aee7dae4Smrg test -z "am__include" && continue 19541aee7dae4Smrg am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 19542aee7dae4Smrg # When using ansi2knr, U may be empty or an underscore; expand it 19543aee7dae4Smrg U=`sed -n 's/^U = //p' < "$mf"` 19544aee7dae4Smrg # Find all dependency output files, they are included files with 19545aee7dae4Smrg # $(DEPDIR) in their names. We invoke sed twice because it is the 19546aee7dae4Smrg # simplest approach to changing $(DEPDIR) to its actual value in the 19547aee7dae4Smrg # expansion. 19548aee7dae4Smrg for file in `sed -n " 19549aee7dae4Smrg s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 19550aee7dae4Smrg sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 19551aee7dae4Smrg # Make sure the directory exists. 19552aee7dae4Smrg test -f "$dirpart/$file" && continue 19553aee7dae4Smrg fdir=`$as_dirname -- "$file" || 19554aee7dae4Smrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19555aee7dae4Smrg X"$file" : 'X\(//\)[^/]' \| \ 19556aee7dae4Smrg X"$file" : 'X\(//\)$' \| \ 19557aee7dae4Smrg X"$file" : 'X\(/\)' \| . 2>/dev/null || 19558aee7dae4Smrg$as_echo X"$file" | 19559aee7dae4Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19560aee7dae4Smrg s//\1/ 19561aee7dae4Smrg q 19562aee7dae4Smrg } 19563aee7dae4Smrg /^X\(\/\/\)[^/].*/{ 19564aee7dae4Smrg s//\1/ 19565aee7dae4Smrg q 19566aee7dae4Smrg } 19567aee7dae4Smrg /^X\(\/\/\)$/{ 19568aee7dae4Smrg s//\1/ 19569aee7dae4Smrg q 19570aee7dae4Smrg } 19571aee7dae4Smrg /^X\(\/\).*/{ 19572aee7dae4Smrg s//\1/ 19573aee7dae4Smrg q 19574aee7dae4Smrg } 19575aee7dae4Smrg s/.*/./; q'` 19576aee7dae4Smrg as_dir=$dirpart/$fdir; as_fn_mkdir_p 19577aee7dae4Smrg # echo "creating $dirpart/$file" 19578aee7dae4Smrg echo '# dummy' > "$dirpart/$file" 19579aee7dae4Smrg done 19580aee7dae4Smrg done 19581aee7dae4Smrg} 19582aee7dae4Smrg ;; 19583aee7dae4Smrg "libtool":C) 19584aee7dae4Smrg 19585aee7dae4Smrg # See if we are running on zsh, and set the options which allow our 19586aee7dae4Smrg # commands through without removal of \ escapes. 19587aee7dae4Smrg if test -n "${ZSH_VERSION+set}" ; then 19588aee7dae4Smrg setopt NO_GLOB_SUBST 19589aee7dae4Smrg fi 19590ba0eab60Smacallan 19591aee7dae4Smrg cfgfile="${ofile}T" 19592aee7dae4Smrg trap "$RM \"$cfgfile\"; exit 1" 1 2 15 19593aee7dae4Smrg $RM "$cfgfile" 19594ba0eab60Smacallan 19595aee7dae4Smrg cat <<_LT_EOF >> "$cfgfile" 19596aee7dae4Smrg#! $SHELL 19597ba0eab60Smacallan 19598aee7dae4Smrg# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 19599aee7dae4Smrg# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 19600aee7dae4Smrg# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19601aee7dae4Smrg# NOTE: Changes made to this file will be lost: look at ltmain.sh. 19602aee7dae4Smrg# 19603aee7dae4Smrg# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 19604aee7dae4Smrg# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 19605aee7dae4Smrg# Foundation, Inc. 19606aee7dae4Smrg# Written by Gordon Matzigkeit, 1996 19607aee7dae4Smrg# 19608aee7dae4Smrg# This file is part of GNU Libtool. 19609aee7dae4Smrg# 19610aee7dae4Smrg# GNU Libtool is free software; you can redistribute it and/or 19611aee7dae4Smrg# modify it under the terms of the GNU General Public License as 19612aee7dae4Smrg# published by the Free Software Foundation; either version 2 of 19613aee7dae4Smrg# the License, or (at your option) any later version. 19614aee7dae4Smrg# 19615aee7dae4Smrg# As a special exception to the GNU General Public License, 19616aee7dae4Smrg# if you distribute this file as part of a program or library that 19617aee7dae4Smrg# is built using GNU Libtool, you may include this file under the 19618aee7dae4Smrg# same distribution terms that you use for the rest of that program. 19619aee7dae4Smrg# 19620aee7dae4Smrg# GNU Libtool is distributed in the hope that it will be useful, 19621aee7dae4Smrg# but WITHOUT ANY WARRANTY; without even the implied warranty of 19622aee7dae4Smrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19623aee7dae4Smrg# GNU General Public License for more details. 19624aee7dae4Smrg# 19625aee7dae4Smrg# You should have received a copy of the GNU General Public License 19626aee7dae4Smrg# along with GNU Libtool; see the file COPYING. If not, a copy 19627aee7dae4Smrg# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 19628aee7dae4Smrg# obtained by writing to the Free Software Foundation, Inc., 19629aee7dae4Smrg# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 19630ba0eab60Smacallan 19631ba0eab60Smacallan 19632aee7dae4Smrg# The names of the tagged configurations supported by this script. 19633aee7dae4Smrgavailable_tags="" 19634ba0eab60Smacallan 19635aee7dae4Smrg# ### BEGIN LIBTOOL CONFIG 19636ba0eab60Smacallan 19637aee7dae4Smrg# Whether or not to build static libraries. 19638aee7dae4Smrgbuild_old_libs=$enable_static 19639ba0eab60Smacallan 19640aee7dae4Smrg# Which release of libtool.m4 was used? 19641aee7dae4Smrgmacro_version=$macro_version 19642aee7dae4Smrgmacro_revision=$macro_revision 19643ba0eab60Smacallan 19644aee7dae4Smrg# Whether or not to build shared libraries. 19645aee7dae4Smrgbuild_libtool_libs=$enable_shared 19646ba0eab60Smacallan 19647aee7dae4Smrg# What type of objects to build. 19648aee7dae4Smrgpic_mode=$pic_mode 19649ba0eab60Smacallan 19650aee7dae4Smrg# Whether or not to optimize for fast installation. 19651aee7dae4Smrgfast_install=$enable_fast_install 19652ba0eab60Smacallan 19653aee7dae4Smrg# Shell to use when invoking shell scripts. 19654aee7dae4SmrgSHELL=$lt_SHELL 19655ba0eab60Smacallan 19656aee7dae4Smrg# An echo program that protects backslashes. 19657aee7dae4SmrgECHO=$lt_ECHO 19658ba0eab60Smacallan 19659aee7dae4Smrg# The PATH separator for the build system. 19660aee7dae4SmrgPATH_SEPARATOR=$lt_PATH_SEPARATOR 19661ba0eab60Smacallan 19662aee7dae4Smrg# The host system. 19663aee7dae4Smrghost_alias=$host_alias 19664aee7dae4Smrghost=$host 19665aee7dae4Smrghost_os=$host_os 19666ba0eab60Smacallan 19667aee7dae4Smrg# The build system. 19668aee7dae4Smrgbuild_alias=$build_alias 19669aee7dae4Smrgbuild=$build 19670aee7dae4Smrgbuild_os=$build_os 19671ba0eab60Smacallan 19672aee7dae4Smrg# A sed program that does not truncate output. 19673aee7dae4SmrgSED=$lt_SED 19674ba0eab60Smacallan 19675aee7dae4Smrg# Sed that helps us avoid accidentally triggering echo(1) options like -n. 19676aee7dae4SmrgXsed="\$SED -e 1s/^X//" 19677ba0eab60Smacallan 19678aee7dae4Smrg# A grep program that handles long lines. 19679aee7dae4SmrgGREP=$lt_GREP 19680ba0eab60Smacallan 19681aee7dae4Smrg# An ERE matcher. 19682aee7dae4SmrgEGREP=$lt_EGREP 19683ba0eab60Smacallan 19684aee7dae4Smrg# A literal string matcher. 19685aee7dae4SmrgFGREP=$lt_FGREP 19686ba0eab60Smacallan 19687aee7dae4Smrg# A BSD- or MS-compatible name lister. 19688aee7dae4SmrgNM=$lt_NM 19689ba0eab60Smacallan 19690aee7dae4Smrg# Whether we need soft or hard links. 19691aee7dae4SmrgLN_S=$lt_LN_S 19692ba0eab60Smacallan 19693aee7dae4Smrg# What is the maximum length of a command? 19694aee7dae4Smrgmax_cmd_len=$max_cmd_len 19695ba0eab60Smacallan 19696aee7dae4Smrg# Object file suffix (normally "o"). 19697aee7dae4Smrgobjext=$ac_objext 19698ba0eab60Smacallan 19699aee7dae4Smrg# Executable file suffix (normally ""). 19700aee7dae4Smrgexeext=$exeext 19701aee7dae4Smrg 19702aee7dae4Smrg# whether the shell understands "unset". 19703aee7dae4Smrglt_unset=$lt_unset 19704ba0eab60Smacallan 19705aee7dae4Smrg# turn spaces into newlines. 19706aee7dae4SmrgSP2NL=$lt_lt_SP2NL 19707ba0eab60Smacallan 19708aee7dae4Smrg# turn newlines into spaces. 19709aee7dae4SmrgNL2SP=$lt_lt_NL2SP 19710ba0eab60Smacallan 19711aee7dae4Smrg# convert \$build file names to \$host format. 19712aee7dae4Smrgto_host_file_cmd=$lt_cv_to_host_file_cmd 19713ba0eab60Smacallan 19714aee7dae4Smrg# convert \$build files to toolchain format. 19715aee7dae4Smrgto_tool_file_cmd=$lt_cv_to_tool_file_cmd 19716ba0eab60Smacallan 19717aee7dae4Smrg# An object symbol dumper. 19718aee7dae4SmrgOBJDUMP=$lt_OBJDUMP 19719ba0eab60Smacallan 19720aee7dae4Smrg# Method to check whether dependent libraries are shared objects. 19721aee7dae4Smrgdeplibs_check_method=$lt_deplibs_check_method 19722ba0eab60Smacallan 19723aee7dae4Smrg# Command to use when deplibs_check_method = "file_magic". 19724aee7dae4Smrgfile_magic_cmd=$lt_file_magic_cmd 19725ba0eab60Smacallan 19726aee7dae4Smrg# How to find potential files when deplibs_check_method = "file_magic". 19727aee7dae4Smrgfile_magic_glob=$lt_file_magic_glob 19728ba0eab60Smacallan 19729aee7dae4Smrg# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 19730aee7dae4Smrgwant_nocaseglob=$lt_want_nocaseglob 19731ba0eab60Smacallan 19732aee7dae4Smrg# DLL creation program. 19733aee7dae4SmrgDLLTOOL=$lt_DLLTOOL 19734ba0eab60Smacallan 19735aee7dae4Smrg# Command to associate shared and link libraries. 19736aee7dae4Smrgsharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 19737ba0eab60Smacallan 19738aee7dae4Smrg# The archiver. 19739aee7dae4SmrgAR=$lt_AR 19740ba0eab60Smacallan 19741aee7dae4Smrg# Flags to create an archive. 19742aee7dae4SmrgAR_FLAGS=$lt_AR_FLAGS 19743ba0eab60Smacallan 19744aee7dae4Smrg# How to feed a file listing to the archiver. 19745aee7dae4Smrgarchiver_list_spec=$lt_archiver_list_spec 19746ba0eab60Smacallan 19747aee7dae4Smrg# A symbol stripping program. 19748aee7dae4SmrgSTRIP=$lt_STRIP 19749ba0eab60Smacallan 19750aee7dae4Smrg# Commands used to install an old-style archive. 19751aee7dae4SmrgRANLIB=$lt_RANLIB 19752aee7dae4Smrgold_postinstall_cmds=$lt_old_postinstall_cmds 19753aee7dae4Smrgold_postuninstall_cmds=$lt_old_postuninstall_cmds 19754ba0eab60Smacallan 19755aee7dae4Smrg# Whether to use a lock for old archive extraction. 19756aee7dae4Smrglock_old_archive_extraction=$lock_old_archive_extraction 19757ba0eab60Smacallan 19758aee7dae4Smrg# A C compiler. 19759aee7dae4SmrgLTCC=$lt_CC 19760ba0eab60Smacallan 19761aee7dae4Smrg# LTCC compiler flags. 19762aee7dae4SmrgLTCFLAGS=$lt_CFLAGS 19763ba0eab60Smacallan 19764aee7dae4Smrg# Take the output of nm and produce a listing of raw symbols and C names. 19765aee7dae4Smrgglobal_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19766ba0eab60Smacallan 19767aee7dae4Smrg# Transform the output of nm in a proper C declaration. 19768aee7dae4Smrgglobal_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19769ba0eab60Smacallan 19770aee7dae4Smrg# Transform the output of nm in a C name address pair. 19771aee7dae4Smrgglobal_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19772ba0eab60Smacallan 19773aee7dae4Smrg# Transform the output of nm in a C name address pair when lib prefix is needed. 19774aee7dae4Smrgglobal_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 19775ba0eab60Smacallan 19776aee7dae4Smrg# Specify filename containing input files for \$NM. 19777aee7dae4Smrgnm_file_list_spec=$lt_nm_file_list_spec 19778ba0eab60Smacallan 19779aee7dae4Smrg# The root where to search for dependent libraries,and in which our libraries should be installed. 19780aee7dae4Smrglt_sysroot=$lt_sysroot 19781ba0eab60Smacallan 19782aee7dae4Smrg# The name of the directory that contains temporary libtool files. 19783aee7dae4Smrgobjdir=$objdir 19784ba0eab60Smacallan 19785aee7dae4Smrg# Used to examine libraries when file_magic_cmd begins with "file". 19786aee7dae4SmrgMAGIC_CMD=$MAGIC_CMD 19787ba0eab60Smacallan 19788aee7dae4Smrg# Must we lock files when doing compilation? 19789aee7dae4Smrgneed_locks=$lt_need_locks 19790ba0eab60Smacallan 19791aee7dae4Smrg# Manifest tool. 19792aee7dae4SmrgMANIFEST_TOOL=$lt_MANIFEST_TOOL 19793ba0eab60Smacallan 19794aee7dae4Smrg# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 19795aee7dae4SmrgDSYMUTIL=$lt_DSYMUTIL 19796ba0eab60Smacallan 19797aee7dae4Smrg# Tool to change global to local symbols on Mac OS X. 19798aee7dae4SmrgNMEDIT=$lt_NMEDIT 19799ba0eab60Smacallan 19800aee7dae4Smrg# Tool to manipulate fat objects and archives on Mac OS X. 19801aee7dae4SmrgLIPO=$lt_LIPO 19802ba0eab60Smacallan 19803aee7dae4Smrg# ldd/readelf like tool for Mach-O binaries on Mac OS X. 19804aee7dae4SmrgOTOOL=$lt_OTOOL 19805ba0eab60Smacallan 19806aee7dae4Smrg# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 19807aee7dae4SmrgOTOOL64=$lt_OTOOL64 19808ba0eab60Smacallan 19809aee7dae4Smrg# Old archive suffix (normally "a"). 19810aee7dae4Smrglibext=$libext 19811ba0eab60Smacallan 19812aee7dae4Smrg# Shared library suffix (normally ".so"). 19813aee7dae4Smrgshrext_cmds=$lt_shrext_cmds 19814ba0eab60Smacallan 19815aee7dae4Smrg# The commands to extract the exported symbol list from a shared archive. 19816aee7dae4Smrgextract_expsyms_cmds=$lt_extract_expsyms_cmds 19817ba0eab60Smacallan 19818aee7dae4Smrg# Variables whose values should be saved in libtool wrapper scripts and 19819aee7dae4Smrg# restored at link time. 19820aee7dae4Smrgvariables_saved_for_relink=$lt_variables_saved_for_relink 19821ba0eab60Smacallan 19822aee7dae4Smrg# Do we need the "lib" prefix for modules? 19823aee7dae4Smrgneed_lib_prefix=$need_lib_prefix 19824ba0eab60Smacallan 19825aee7dae4Smrg# Do we need a version for libraries? 19826aee7dae4Smrgneed_version=$need_version 19827ba0eab60Smacallan 19828aee7dae4Smrg# Library versioning type. 19829aee7dae4Smrgversion_type=$version_type 19830ba0eab60Smacallan 19831aee7dae4Smrg# Shared library runtime path variable. 19832aee7dae4Smrgrunpath_var=$runpath_var 19833ba0eab60Smacallan 19834aee7dae4Smrg# Shared library path variable. 19835aee7dae4Smrgshlibpath_var=$shlibpath_var 19836ba0eab60Smacallan 19837aee7dae4Smrg# Is shlibpath searched before the hard-coded library search path? 19838aee7dae4Smrgshlibpath_overrides_runpath=$shlibpath_overrides_runpath 19839ba0eab60Smacallan 19840aee7dae4Smrg# Format of library name prefix. 19841aee7dae4Smrglibname_spec=$lt_libname_spec 19842ba0eab60Smacallan 19843aee7dae4Smrg# List of archive names. First name is the real one, the rest are links. 19844aee7dae4Smrg# The last name is the one that the linker finds with -lNAME 19845aee7dae4Smrglibrary_names_spec=$lt_library_names_spec 19846ba0eab60Smacallan 19847aee7dae4Smrg# The coded name of the library, if different from the real name. 19848aee7dae4Smrgsoname_spec=$lt_soname_spec 19849ba0eab60Smacallan 19850aee7dae4Smrg# Permission mode override for installation of shared libraries. 19851aee7dae4Smrginstall_override_mode=$lt_install_override_mode 19852ba0eab60Smacallan 19853aee7dae4Smrg# Command to use after installation of a shared archive. 19854aee7dae4Smrgpostinstall_cmds=$lt_postinstall_cmds 19855ba0eab60Smacallan 19856aee7dae4Smrg# Command to use after uninstallation of a shared archive. 19857aee7dae4Smrgpostuninstall_cmds=$lt_postuninstall_cmds 19858ba0eab60Smacallan 19859aee7dae4Smrg# Commands used to finish a libtool library installation in a directory. 19860aee7dae4Smrgfinish_cmds=$lt_finish_cmds 19861ba0eab60Smacallan 19862aee7dae4Smrg# As "finish_cmds", except a single script fragment to be evaled but 19863aee7dae4Smrg# not shown. 19864aee7dae4Smrgfinish_eval=$lt_finish_eval 19865ba0eab60Smacallan 19866aee7dae4Smrg# Whether we should hardcode library paths into libraries. 19867aee7dae4Smrghardcode_into_libs=$hardcode_into_libs 19868ba0eab60Smacallan 19869aee7dae4Smrg# Compile-time system search path for libraries. 19870aee7dae4Smrgsys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19871ba0eab60Smacallan 19872aee7dae4Smrg# Run-time system search path for libraries. 19873aee7dae4Smrgsys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19874ba0eab60Smacallan 19875aee7dae4Smrg# Whether dlopen is supported. 19876aee7dae4Smrgdlopen_support=$enable_dlopen 19877ba0eab60Smacallan 19878aee7dae4Smrg# Whether dlopen of programs is supported. 19879aee7dae4Smrgdlopen_self=$enable_dlopen_self 19880ba0eab60Smacallan 19881aee7dae4Smrg# Whether dlopen of statically linked programs is supported. 19882aee7dae4Smrgdlopen_self_static=$enable_dlopen_self_static 19883ba0eab60Smacallan 19884aee7dae4Smrg# Commands to strip libraries. 19885aee7dae4Smrgold_striplib=$lt_old_striplib 19886aee7dae4Smrgstriplib=$lt_striplib 19887ba0eab60Smacallan 19888ba0eab60Smacallan 19889aee7dae4Smrg# The linker used to build libraries. 19890aee7dae4SmrgLD=$lt_LD 19891aee7dae4Smrg 19892aee7dae4Smrg# How to create reloadable object files. 19893aee7dae4Smrgreload_flag=$lt_reload_flag 19894aee7dae4Smrgreload_cmds=$lt_reload_cmds 19895aee7dae4Smrg 19896aee7dae4Smrg# Commands used to build an old-style archive. 19897aee7dae4Smrgold_archive_cmds=$lt_old_archive_cmds 19898ba0eab60Smacallan 19899aee7dae4Smrg# A language specific compiler. 19900aee7dae4SmrgCC=$lt_compiler 19901ba0eab60Smacallan 19902aee7dae4Smrg# Is the compiler the GNU compiler? 19903aee7dae4Smrgwith_gcc=$GCC 19904ba0eab60Smacallan 19905aee7dae4Smrg# Compiler flag to turn off builtin functions. 19906aee7dae4Smrgno_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 19907ba0eab60Smacallan 19908aee7dae4Smrg# Additional compiler flags for building library objects. 19909aee7dae4Smrgpic_flag=$lt_lt_prog_compiler_pic 19910ba0eab60Smacallan 19911aee7dae4Smrg# How to pass a linker flag through the compiler. 19912aee7dae4Smrgwl=$lt_lt_prog_compiler_wl 19913ba0eab60Smacallan 19914aee7dae4Smrg# Compiler flag to prevent dynamic linking. 19915aee7dae4Smrglink_static_flag=$lt_lt_prog_compiler_static 19916ba0eab60Smacallan 19917aee7dae4Smrg# Does compiler simultaneously support -c and -o options? 19918aee7dae4Smrgcompiler_c_o=$lt_lt_cv_prog_compiler_c_o 19919ba0eab60Smacallan 19920aee7dae4Smrg# Whether or not to add -lc for building shared libraries. 19921aee7dae4Smrgbuild_libtool_need_lc=$archive_cmds_need_lc 19922ba0eab60Smacallan 19923aee7dae4Smrg# Whether or not to disallow shared libs when runtime libs are static. 19924aee7dae4Smrgallow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 19925ba0eab60Smacallan 19926aee7dae4Smrg# Compiler flag to allow reflexive dlopens. 19927aee7dae4Smrgexport_dynamic_flag_spec=$lt_export_dynamic_flag_spec 19928ba0eab60Smacallan 19929aee7dae4Smrg# Compiler flag to generate shared objects directly from archives. 19930aee7dae4Smrgwhole_archive_flag_spec=$lt_whole_archive_flag_spec 19931ba0eab60Smacallan 19932aee7dae4Smrg# Whether the compiler copes with passing no objects directly. 19933aee7dae4Smrgcompiler_needs_object=$lt_compiler_needs_object 19934ba0eab60Smacallan 19935aee7dae4Smrg# Create an old-style archive from a shared archive. 19936aee7dae4Smrgold_archive_from_new_cmds=$lt_old_archive_from_new_cmds 19937ba0eab60Smacallan 19938aee7dae4Smrg# Create a temporary old-style archive to link instead of a shared archive. 19939aee7dae4Smrgold_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 19940ba0eab60Smacallan 19941aee7dae4Smrg# Commands used to build a shared archive. 19942aee7dae4Smrgarchive_cmds=$lt_archive_cmds 19943aee7dae4Smrgarchive_expsym_cmds=$lt_archive_expsym_cmds 19944ba0eab60Smacallan 19945aee7dae4Smrg# Commands used to build a loadable module if different from building 19946aee7dae4Smrg# a shared archive. 19947aee7dae4Smrgmodule_cmds=$lt_module_cmds 19948aee7dae4Smrgmodule_expsym_cmds=$lt_module_expsym_cmds 19949ba0eab60Smacallan 19950aee7dae4Smrg# Whether we are building with GNU ld or not. 19951aee7dae4Smrgwith_gnu_ld=$lt_with_gnu_ld 19952ba0eab60Smacallan 19953aee7dae4Smrg# Flag that allows shared libraries with undefined symbols to be built. 19954aee7dae4Smrgallow_undefined_flag=$lt_allow_undefined_flag 19955ba0eab60Smacallan 19956aee7dae4Smrg# Flag that enforces no undefined symbols. 19957aee7dae4Smrgno_undefined_flag=$lt_no_undefined_flag 19958ba0eab60Smacallan 19959aee7dae4Smrg# Flag to hardcode \$libdir into a binary during linking. 19960aee7dae4Smrg# This must work even if \$libdir does not exist 19961aee7dae4Smrghardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 19962ba0eab60Smacallan 19963aee7dae4Smrg# Whether we need a single "-rpath" flag with a separated argument. 19964aee7dae4Smrghardcode_libdir_separator=$lt_hardcode_libdir_separator 19965ba0eab60Smacallan 19966aee7dae4Smrg# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19967aee7dae4Smrg# DIR into the resulting binary. 19968aee7dae4Smrghardcode_direct=$hardcode_direct 19969ba0eab60Smacallan 19970aee7dae4Smrg# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19971aee7dae4Smrg# DIR into the resulting binary and the resulting library dependency is 19972aee7dae4Smrg# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 19973aee7dae4Smrg# library is relocated. 19974aee7dae4Smrghardcode_direct_absolute=$hardcode_direct_absolute 19975ba0eab60Smacallan 19976aee7dae4Smrg# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19977aee7dae4Smrg# into the resulting binary. 19978aee7dae4Smrghardcode_minus_L=$hardcode_minus_L 19979ba0eab60Smacallan 19980aee7dae4Smrg# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19981aee7dae4Smrg# into the resulting binary. 19982aee7dae4Smrghardcode_shlibpath_var=$hardcode_shlibpath_var 19983ba0eab60Smacallan 19984aee7dae4Smrg# Set to "yes" if building a shared library automatically hardcodes DIR 19985aee7dae4Smrg# into the library and all subsequent libraries and executables linked 19986aee7dae4Smrg# against it. 19987aee7dae4Smrghardcode_automatic=$hardcode_automatic 19988ba0eab60Smacallan 19989aee7dae4Smrg# Set to yes if linker adds runtime paths of dependent libraries 19990aee7dae4Smrg# to runtime path list. 19991aee7dae4Smrginherit_rpath=$inherit_rpath 19992ba0eab60Smacallan 19993aee7dae4Smrg# Whether libtool must link a program against all its dependency libraries. 19994aee7dae4Smrglink_all_deplibs=$link_all_deplibs 19995ba0eab60Smacallan 19996aee7dae4Smrg# Set to "yes" if exported symbols are required. 19997aee7dae4Smrgalways_export_symbols=$always_export_symbols 19998ba0eab60Smacallan 19999aee7dae4Smrg# The commands to list exported symbols. 20000aee7dae4Smrgexport_symbols_cmds=$lt_export_symbols_cmds 20001ba0eab60Smacallan 20002aee7dae4Smrg# Symbols that should not be listed in the preloaded symbols. 20003aee7dae4Smrgexclude_expsyms=$lt_exclude_expsyms 20004ba0eab60Smacallan 20005aee7dae4Smrg# Symbols that must always be exported. 20006aee7dae4Smrginclude_expsyms=$lt_include_expsyms 20007ba0eab60Smacallan 20008aee7dae4Smrg# Commands necessary for linking programs (against libraries) with templates. 20009aee7dae4Smrgprelink_cmds=$lt_prelink_cmds 20010ba0eab60Smacallan 20011aee7dae4Smrg# Commands necessary for finishing linking programs. 20012aee7dae4Smrgpostlink_cmds=$lt_postlink_cmds 20013ba0eab60Smacallan 20014aee7dae4Smrg# Specify filename containing input files. 20015aee7dae4Smrgfile_list_spec=$lt_file_list_spec 20016ba0eab60Smacallan 20017aee7dae4Smrg# How to hardcode a shared library path into an executable. 20018aee7dae4Smrghardcode_action=$hardcode_action 20019ba0eab60Smacallan 20020aee7dae4Smrg# ### END LIBTOOL CONFIG 20021ba0eab60Smacallan 20022aee7dae4Smrg_LT_EOF 20023aee7dae4Smrg 20024aee7dae4Smrg case $host_os in 20025aee7dae4Smrg aix3*) 20026aee7dae4Smrg cat <<\_LT_EOF >> "$cfgfile" 20027aee7dae4Smrg# AIX sometimes has problems with the GCC collect2 program. For some 20028aee7dae4Smrg# reason, if we set the COLLECT_NAMES environment variable, the problems 20029aee7dae4Smrg# vanish in a puff of smoke. 20030aee7dae4Smrgif test "X${COLLECT_NAMES+set}" != Xset; then 20031aee7dae4Smrg COLLECT_NAMES= 20032aee7dae4Smrg export COLLECT_NAMES 20033ba0eab60Smacallanfi 20034aee7dae4Smrg_LT_EOF 20035aee7dae4Smrg ;; 20036aee7dae4Smrg esac 20037ba0eab60Smacallan 20038ba0eab60Smacallan 20039aee7dae4Smrgltmain="$ac_aux_dir/ltmain.sh" 20040ba0eab60Smacallan 20041ba0eab60Smacallan 20042aee7dae4Smrg # We use sed instead of cat because bash on DJGPP gets confused if 20043aee7dae4Smrg # if finds mixed CR/LF and LF-only lines. Since sed operates in 20044aee7dae4Smrg # text mode, it properly converts lines to CR/LF. This bash problem 20045aee7dae4Smrg # is reportedly fixed, but why not run on old versions too? 20046aee7dae4Smrg sed '$q' "$ltmain" >> "$cfgfile" \ 20047aee7dae4Smrg || (rm -f "$cfgfile"; exit 1) 20048aee7dae4Smrg 20049aee7dae4Smrg if test x"$xsi_shell" = xyes; then 20050aee7dae4Smrg sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 20051aee7dae4Smrgfunc_dirname ()\ 20052aee7dae4Smrg{\ 20053aee7dae4Smrg\ case ${1} in\ 20054aee7dae4Smrg\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20055aee7dae4Smrg\ * ) func_dirname_result="${3}" ;;\ 20056aee7dae4Smrg\ esac\ 20057aee7dae4Smrg} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 20058aee7dae4Smrg && mv -f "$cfgfile.tmp" "$cfgfile" \ 20059aee7dae4Smrg || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20060aee7dae4Smrgtest 0 -eq $? || _lt_function_replace_fail=: 20061aee7dae4Smrg 20062aee7dae4Smrg 20063aee7dae4Smrg sed -e '/^func_basename ()$/,/^} # func_basename /c\ 20064aee7dae4Smrgfunc_basename ()\ 20065aee7dae4Smrg{\ 20066aee7dae4Smrg\ func_basename_result="${1##*/}"\ 20067aee7dae4Smrg} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20068aee7dae4Smrg && mv -f "$cfgfile.tmp" "$cfgfile" \ 20069aee7dae4Smrg || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20070aee7dae4Smrgtest 0 -eq $? || _lt_function_replace_fail=: 20071aee7dae4Smrg 20072aee7dae4Smrg 20073aee7dae4Smrg sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 20074aee7dae4Smrgfunc_dirname_and_basename ()\ 20075aee7dae4Smrg{\ 20076aee7dae4Smrg\ case ${1} in\ 20077aee7dae4Smrg\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20078aee7dae4Smrg\ * ) func_dirname_result="${3}" ;;\ 20079aee7dae4Smrg\ esac\ 20080aee7dae4Smrg\ func_basename_result="${1##*/}"\ 20081aee7dae4Smrg} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20082aee7dae4Smrg && mv -f "$cfgfile.tmp" "$cfgfile" \ 20083aee7dae4Smrg || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20084aee7dae4Smrgtest 0 -eq $? || _lt_function_replace_fail=: 20085aee7dae4Smrg 20086aee7dae4Smrg 20087aee7dae4Smrg sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 20088aee7dae4Smrgfunc_stripname ()\ 20089aee7dae4Smrg{\ 20090aee7dae4Smrg\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 20091aee7dae4Smrg\ # positional parameters, so assign one to ordinary parameter first.\ 20092aee7dae4Smrg\ func_stripname_result=${3}\ 20093aee7dae4Smrg\ func_stripname_result=${func_stripname_result#"${1}"}\ 20094aee7dae4Smrg\ func_stripname_result=${func_stripname_result%"${2}"}\ 20095aee7dae4Smrg} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 20096aee7dae4Smrg && mv -f "$cfgfile.tmp" "$cfgfile" \ 20097aee7dae4Smrg || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20098aee7dae4Smrgtest 0 -eq $? || _lt_function_replace_fail=: 20099aee7dae4Smrg 20100aee7dae4Smrg 20101aee7dae4Smrg sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 20102aee7dae4Smrgfunc_split_long_opt ()\ 20103aee7dae4Smrg{\ 20104aee7dae4Smrg\ func_split_long_opt_name=${1%%=*}\ 20105aee7dae4Smrg\ func_split_long_opt_arg=${1#*=}\ 20106aee7dae4Smrg} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20107aee7dae4Smrg && mv -f "$cfgfile.tmp" "$cfgfile" \ 20108aee7dae4Smrg || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20109aee7dae4Smrgtest 0 -eq $? || _lt_function_replace_fail=: 20110aee7dae4Smrg 20111aee7dae4Smrg 20112aee7dae4Smrg sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 20113aee7dae4Smrgfunc_split_short_opt ()\ 20114aee7dae4Smrg{\ 20115aee7dae4Smrg\ func_split_short_opt_arg=${1#??}\ 20116aee7dae4Smrg\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 20117aee7dae4Smrg} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20118aee7dae4Smrg && mv -f "$cfgfile.tmp" "$cfgfile" \ 20119aee7dae4Smrg || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20120aee7dae4Smrgtest 0 -eq $? || _lt_function_replace_fail=: 20121aee7dae4Smrg 20122aee7dae4Smrg 20123aee7dae4Smrg sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 20124aee7dae4Smrgfunc_lo2o ()\ 20125aee7dae4Smrg{\ 20126aee7dae4Smrg\ case ${1} in\ 20127aee7dae4Smrg\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 20128aee7dae4Smrg\ *) func_lo2o_result=${1} ;;\ 20129aee7dae4Smrg\ esac\ 20130aee7dae4Smrg} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 20131aee7dae4Smrg && mv -f "$cfgfile.tmp" "$cfgfile" \ 20132aee7dae4Smrg || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20133aee7dae4Smrgtest 0 -eq $? || _lt_function_replace_fail=: 20134aee7dae4Smrg 20135aee7dae4Smrg 20136aee7dae4Smrg sed -e '/^func_xform ()$/,/^} # func_xform /c\ 20137aee7dae4Smrgfunc_xform ()\ 20138aee7dae4Smrg{\ 20139aee7dae4Smrg func_xform_result=${1%.*}.lo\ 20140aee7dae4Smrg} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 20141aee7dae4Smrg && mv -f "$cfgfile.tmp" "$cfgfile" \ 20142aee7dae4Smrg || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20143aee7dae4Smrgtest 0 -eq $? || _lt_function_replace_fail=: 20144aee7dae4Smrg 20145aee7dae4Smrg 20146aee7dae4Smrg sed -e '/^func_arith ()$/,/^} # func_arith /c\ 20147aee7dae4Smrgfunc_arith ()\ 20148aee7dae4Smrg{\ 20149aee7dae4Smrg func_arith_result=$(( $* ))\ 20150aee7dae4Smrg} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 20151aee7dae4Smrg && mv -f "$cfgfile.tmp" "$cfgfile" \ 20152aee7dae4Smrg || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20153aee7dae4Smrgtest 0 -eq $? || _lt_function_replace_fail=: 20154aee7dae4Smrg 20155aee7dae4Smrg 20156aee7dae4Smrg sed -e '/^func_len ()$/,/^} # func_len /c\ 20157aee7dae4Smrgfunc_len ()\ 20158aee7dae4Smrg{\ 20159aee7dae4Smrg func_len_result=${#1}\ 20160aee7dae4Smrg} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 20161aee7dae4Smrg && mv -f "$cfgfile.tmp" "$cfgfile" \ 20162aee7dae4Smrg || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20163aee7dae4Smrgtest 0 -eq $? || _lt_function_replace_fail=: 20164aee7dae4Smrg 20165aee7dae4Smrgfi 20166aee7dae4Smrg 20167aee7dae4Smrgif test x"$lt_shell_append" = xyes; then 20168aee7dae4Smrg sed -e '/^func_append ()$/,/^} # func_append /c\ 20169aee7dae4Smrgfunc_append ()\ 20170aee7dae4Smrg{\ 20171aee7dae4Smrg eval "${1}+=\\${2}"\ 20172aee7dae4Smrg} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 20173aee7dae4Smrg && mv -f "$cfgfile.tmp" "$cfgfile" \ 20174aee7dae4Smrg || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20175aee7dae4Smrgtest 0 -eq $? || _lt_function_replace_fail=: 20176aee7dae4Smrg 20177aee7dae4Smrg 20178aee7dae4Smrg sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 20179aee7dae4Smrgfunc_append_quoted ()\ 20180aee7dae4Smrg{\ 20181aee7dae4Smrg\ func_quote_for_eval "${2}"\ 20182aee7dae4Smrg\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 20183aee7dae4Smrg} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 20184aee7dae4Smrg && mv -f "$cfgfile.tmp" "$cfgfile" \ 20185aee7dae4Smrg || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20186aee7dae4Smrgtest 0 -eq $? || _lt_function_replace_fail=: 20187aee7dae4Smrg 20188aee7dae4Smrg 20189aee7dae4Smrg # Save a `func_append' function call where possible by direct use of '+=' 20190aee7dae4Smrg sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 20191aee7dae4Smrg && mv -f "$cfgfile.tmp" "$cfgfile" \ 20192aee7dae4Smrg || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20193aee7dae4Smrg test 0 -eq $? || _lt_function_replace_fail=: 20194aee7dae4Smrgelse 20195aee7dae4Smrg # Save a `func_append' function call even when '+=' is not available 20196aee7dae4Smrg sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 20197aee7dae4Smrg && mv -f "$cfgfile.tmp" "$cfgfile" \ 20198aee7dae4Smrg || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20199aee7dae4Smrg test 0 -eq $? || _lt_function_replace_fail=: 20200aee7dae4Smrgfi 20201aee7dae4Smrg 20202aee7dae4Smrgif test x"$_lt_function_replace_fail" = x":"; then 20203aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 20204aee7dae4Smrg$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 20205aee7dae4Smrgfi 20206aee7dae4Smrg 20207aee7dae4Smrg 20208aee7dae4Smrg mv -f "$cfgfile" "$ofile" || 20209aee7dae4Smrg (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 20210aee7dae4Smrg chmod +x "$ofile" 20211ba0eab60Smacallan 20212ba0eab60Smacallan ;; 20213aee7dae4Smrg 20214ba0eab60Smacallan esac 20215aee7dae4Smrgdone # for ac_tag 20216ba0eab60Smacallan 20217ba0eab60Smacallan 20218aee7dae4Smrgas_fn_exit 0 20219ba0eab60Smacallan_ACEOF 20220ba0eab60Smacallanac_clean_files=$ac_clean_files_save 20221ba0eab60Smacallan 20222aee7dae4Smrgtest $ac_write_fail = 0 || 20223aee7dae4Smrg as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 20224aee7dae4Smrg 20225ba0eab60Smacallan 20226ba0eab60Smacallan# configure is writing to config.log, and then calls config.status. 20227ba0eab60Smacallan# config.status does its own redirection, appending to config.log. 20228ba0eab60Smacallan# Unfortunately, on DOS this fails, as config.log is still kept open 20229ba0eab60Smacallan# by configure, so config.status won't be able to write to it; its 20230ba0eab60Smacallan# output is simply discarded. So we exec the FD to /dev/null, 20231ba0eab60Smacallan# effectively closing config.log, so it can be properly (re)opened and 20232ba0eab60Smacallan# appended to by config.status. When coming back to configure, we 20233ba0eab60Smacallan# need to make the FD available again. 20234ba0eab60Smacallanif test "$no_create" != yes; then 20235ba0eab60Smacallan ac_cs_success=: 20236ba0eab60Smacallan ac_config_status_args= 20237ba0eab60Smacallan test "$silent" = yes && 20238ba0eab60Smacallan ac_config_status_args="$ac_config_status_args --quiet" 20239ba0eab60Smacallan exec 5>/dev/null 20240ba0eab60Smacallan $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20241ba0eab60Smacallan exec 5>>config.log 20242ba0eab60Smacallan # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20243ba0eab60Smacallan # would make configure fail if this is the last instruction. 20244aee7dae4Smrg $ac_cs_success || as_fn_exit 1 20245aee7dae4Smrgfi 20246aee7dae4Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20247aee7dae4Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20248aee7dae4Smrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20249ba0eab60Smacallanfi 20250ba0eab60Smacallan 20251