1b85037dbSmrg#! /bin/sh 2b85037dbSmrg# Guess values for system-dependent variables and create Makefiles. 328515619Smrg# Generated by GNU Autoconf 2.69 for xf86-input-synaptics 1.7.1. 4b85037dbSmrg# 5b85037dbSmrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6b85037dbSmrg# 7b85037dbSmrg# 828515619Smrg# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9b85037dbSmrg# 10b85037dbSmrg# 11b85037dbSmrg# This configure script is free software; the Free Software Foundation 12b85037dbSmrg# gives unlimited permission to copy, distribute and modify it. 13b85037dbSmrg## -------------------- ## 14b85037dbSmrg## M4sh Initialization. ## 15b85037dbSmrg## -------------------- ## 16b85037dbSmrg 17b85037dbSmrg# Be more Bourne compatible 18b85037dbSmrgDUALCASE=1; export DUALCASE # for MKS sh 19b85037dbSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20b85037dbSmrg emulate sh 21b85037dbSmrg NULLCMD=: 22b85037dbSmrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23b85037dbSmrg # is contrary to our usage. Disable this feature. 24b85037dbSmrg alias -g '${1+"$@"}'='"$@"' 25b85037dbSmrg setopt NO_GLOB_SUBST 26b85037dbSmrgelse 27b85037dbSmrg case `(set -o) 2>/dev/null` in #( 28b85037dbSmrg *posix*) : 29b85037dbSmrg set -o posix ;; #( 30b85037dbSmrg *) : 31b85037dbSmrg ;; 32b85037dbSmrgesac 33b85037dbSmrgfi 34b85037dbSmrg 35b85037dbSmrg 36b85037dbSmrgas_nl=' 37b85037dbSmrg' 38b85037dbSmrgexport as_nl 39b85037dbSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 40b85037dbSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41b85037dbSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42b85037dbSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43b85037dbSmrg# Prefer a ksh shell builtin over an external printf program on Solaris, 44b85037dbSmrg# but without wasting forks for bash or zsh. 45b85037dbSmrgif test -z "$BASH_VERSION$ZSH_VERSION" \ 46b85037dbSmrg && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47b85037dbSmrg as_echo='print -r --' 48b85037dbSmrg as_echo_n='print -rn --' 49b85037dbSmrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50b85037dbSmrg as_echo='printf %s\n' 51b85037dbSmrg as_echo_n='printf %s' 52b85037dbSmrgelse 53b85037dbSmrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54b85037dbSmrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55b85037dbSmrg as_echo_n='/usr/ucb/echo -n' 56b85037dbSmrg else 57b85037dbSmrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58b85037dbSmrg as_echo_n_body='eval 59b85037dbSmrg arg=$1; 60b85037dbSmrg case $arg in #( 61b85037dbSmrg *"$as_nl"*) 62b85037dbSmrg expr "X$arg" : "X\\(.*\\)$as_nl"; 63b85037dbSmrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64b85037dbSmrg esac; 65b85037dbSmrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66b85037dbSmrg ' 67b85037dbSmrg export as_echo_n_body 68b85037dbSmrg as_echo_n='sh -c $as_echo_n_body as_echo' 69b85037dbSmrg fi 70b85037dbSmrg export as_echo_body 71b85037dbSmrg as_echo='sh -c $as_echo_body as_echo' 72b85037dbSmrgfi 73b85037dbSmrg 74b85037dbSmrg# The user is always right. 75b85037dbSmrgif test "${PATH_SEPARATOR+set}" != set; then 76b85037dbSmrg PATH_SEPARATOR=: 77b85037dbSmrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78b85037dbSmrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79b85037dbSmrg PATH_SEPARATOR=';' 80b85037dbSmrg } 81b85037dbSmrgfi 82b85037dbSmrg 83b85037dbSmrg 84b85037dbSmrg# IFS 85b85037dbSmrg# We need space, tab and new line, in precisely that order. Quoting is 86b85037dbSmrg# there to prevent editors from complaining about space-tab. 87b85037dbSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88b85037dbSmrg# splitting by setting IFS to empty value.) 89b85037dbSmrgIFS=" "" $as_nl" 90b85037dbSmrg 91b85037dbSmrg# Find who we are. Look in the path if we contain no directory separator. 92302b15bdSmrgas_myself= 93b85037dbSmrgcase $0 in #(( 94b85037dbSmrg *[\\/]* ) as_myself=$0 ;; 95b85037dbSmrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96b85037dbSmrgfor as_dir in $PATH 97b85037dbSmrgdo 98b85037dbSmrg IFS=$as_save_IFS 99b85037dbSmrg test -z "$as_dir" && as_dir=. 100b85037dbSmrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101b85037dbSmrg done 102b85037dbSmrgIFS=$as_save_IFS 103b85037dbSmrg 104b85037dbSmrg ;; 105b85037dbSmrgesac 106b85037dbSmrg# We did not find ourselves, most probably we were run as `sh COMMAND' 107b85037dbSmrg# in which case we are not to be found in the path. 108b85037dbSmrgif test "x$as_myself" = x; then 109b85037dbSmrg as_myself=$0 110b85037dbSmrgfi 111b85037dbSmrgif test ! -f "$as_myself"; then 112b85037dbSmrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113b85037dbSmrg exit 1 114b85037dbSmrgfi 115b85037dbSmrg 116b85037dbSmrg# Unset variables that we do not need and which cause bugs (e.g. in 117b85037dbSmrg# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118b85037dbSmrg# suppresses any "Segmentation fault" message there. '((' could 119b85037dbSmrg# trigger a bug in pdksh 5.2.14. 120b85037dbSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH 121b85037dbSmrgdo eval test x\${$as_var+set} = xset \ 122b85037dbSmrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123b85037dbSmrgdone 124b85037dbSmrgPS1='$ ' 125b85037dbSmrgPS2='> ' 126b85037dbSmrgPS4='+ ' 127b85037dbSmrg 128b85037dbSmrg# NLS nuisances. 129b85037dbSmrgLC_ALL=C 130b85037dbSmrgexport LC_ALL 131b85037dbSmrgLANGUAGE=C 132b85037dbSmrgexport LANGUAGE 133b85037dbSmrg 134b85037dbSmrg# CDPATH. 135b85037dbSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136b85037dbSmrg 13728515619Smrg# Use a proper internal environment variable to ensure we don't fall 13828515619Smrg # into an infinite loop, continuously re-executing ourselves. 13928515619Smrg if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 14028515619Smrg _as_can_reexec=no; export _as_can_reexec; 14128515619Smrg # We cannot yet assume a decent shell, so we have to provide a 14228515619Smrg# neutralization value for shells without unset; and this also 14328515619Smrg# works around shells that cannot unset nonexistent variables. 14428515619Smrg# Preserve -v and -x to the replacement shell. 14528515619SmrgBASH_ENV=/dev/null 14628515619SmrgENV=/dev/null 14728515619Smrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 14828515619Smrgcase $- in # (((( 14928515619Smrg *v*x* | *x*v* ) as_opts=-vx ;; 15028515619Smrg *v* ) as_opts=-v ;; 15128515619Smrg *x* ) as_opts=-x ;; 15228515619Smrg * ) as_opts= ;; 15328515619Smrgesac 15428515619Smrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 15528515619Smrg# Admittedly, this is quite paranoid, since all the known shells bail 15628515619Smrg# out after a failed `exec'. 15728515619Smrg$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 15828515619Smrgas_fn_exit 255 15928515619Smrg fi 16028515619Smrg # We don't want this to propagate to other subprocesses. 16128515619Smrg { _as_can_reexec=; unset _as_can_reexec;} 162b85037dbSmrgif test "x$CONFIG_SHELL" = x; then 163b85037dbSmrg as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164b85037dbSmrg emulate sh 165b85037dbSmrg NULLCMD=: 166b85037dbSmrg # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167b85037dbSmrg # is contrary to our usage. Disable this feature. 168b85037dbSmrg alias -g '\${1+\"\$@\"}'='\"\$@\"' 169b85037dbSmrg setopt NO_GLOB_SUBST 170b85037dbSmrgelse 171b85037dbSmrg case \`(set -o) 2>/dev/null\` in #( 172b85037dbSmrg *posix*) : 173b85037dbSmrg set -o posix ;; #( 174b85037dbSmrg *) : 175b85037dbSmrg ;; 176b85037dbSmrgesac 177b85037dbSmrgfi 178b85037dbSmrg" 179b85037dbSmrg as_required="as_fn_return () { (exit \$1); } 180b85037dbSmrgas_fn_success () { as_fn_return 0; } 181b85037dbSmrgas_fn_failure () { as_fn_return 1; } 182b85037dbSmrgas_fn_ret_success () { return 0; } 183b85037dbSmrgas_fn_ret_failure () { return 1; } 184b85037dbSmrg 185b85037dbSmrgexitcode=0 186b85037dbSmrgas_fn_success || { exitcode=1; echo as_fn_success failed.; } 187b85037dbSmrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188b85037dbSmrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189b85037dbSmrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190b85037dbSmrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191b85037dbSmrg 192b85037dbSmrgelse 193b85037dbSmrg exitcode=1; echo positional parameters were not saved. 194b85037dbSmrgfi 19528515619Smrgtest x\$exitcode = x0 || exit 1 19628515619Smrgtest -x / || exit 1" 197b85037dbSmrg as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198b85037dbSmrg as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199b85037dbSmrg eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200b85037dbSmrg test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201b85037dbSmrg 202b85037dbSmrg test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203b85037dbSmrg ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204b85037dbSmrg ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205b85037dbSmrg ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206b85037dbSmrg PATH=/empty FPATH=/empty; export PATH FPATH 207b85037dbSmrg test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208b85037dbSmrg || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209b85037dbSmrgtest \$(( 1 + 1 )) = 2 || exit 1" 210b85037dbSmrg if (eval "$as_required") 2>/dev/null; then : 211b85037dbSmrg as_have_required=yes 212b85037dbSmrgelse 213b85037dbSmrg as_have_required=no 214b85037dbSmrgfi 215b85037dbSmrg if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216b85037dbSmrg 217b85037dbSmrgelse 218b85037dbSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219b85037dbSmrgas_found=false 220b85037dbSmrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221b85037dbSmrgdo 222b85037dbSmrg IFS=$as_save_IFS 223b85037dbSmrg test -z "$as_dir" && as_dir=. 224b85037dbSmrg as_found=: 225b85037dbSmrg case $as_dir in #( 226b85037dbSmrg /*) 227b85037dbSmrg for as_base in sh bash ksh sh5; do 228b85037dbSmrg # Try only shells that exist, to save several forks. 229b85037dbSmrg as_shell=$as_dir/$as_base 230b85037dbSmrg if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231b85037dbSmrg { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232b85037dbSmrg CONFIG_SHELL=$as_shell as_have_required=yes 233b85037dbSmrg if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234b85037dbSmrg break 2 235b85037dbSmrgfi 236b85037dbSmrgfi 237b85037dbSmrg done;; 238b85037dbSmrg esac 239b85037dbSmrg as_found=false 240b85037dbSmrgdone 241b85037dbSmrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242b85037dbSmrg { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243b85037dbSmrg CONFIG_SHELL=$SHELL as_have_required=yes 244b85037dbSmrgfi; } 245b85037dbSmrgIFS=$as_save_IFS 246b85037dbSmrg 247b85037dbSmrg 248b85037dbSmrg if test "x$CONFIG_SHELL" != x; then : 24928515619Smrg export CONFIG_SHELL 25028515619Smrg # We cannot yet assume a decent shell, so we have to provide a 25128515619Smrg# neutralization value for shells without unset; and this also 25228515619Smrg# works around shells that cannot unset nonexistent variables. 25328515619Smrg# Preserve -v and -x to the replacement shell. 25428515619SmrgBASH_ENV=/dev/null 25528515619SmrgENV=/dev/null 25628515619Smrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 25728515619Smrgcase $- in # (((( 25828515619Smrg *v*x* | *x*v* ) as_opts=-vx ;; 25928515619Smrg *v* ) as_opts=-v ;; 26028515619Smrg *x* ) as_opts=-x ;; 26128515619Smrg * ) as_opts= ;; 26228515619Smrgesac 26328515619Smrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 26428515619Smrg# Admittedly, this is quite paranoid, since all the known shells bail 26528515619Smrg# out after a failed `exec'. 26628515619Smrg$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 26728515619Smrgexit 255 268b85037dbSmrgfi 269b85037dbSmrg 270b85037dbSmrg if test x$as_have_required = xno; then : 271b85037dbSmrg $as_echo "$0: This script requires a shell more modern than all" 272b85037dbSmrg $as_echo "$0: the shells that I found on your system." 273b85037dbSmrg if test x${ZSH_VERSION+set} = xset ; then 274b85037dbSmrg $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275b85037dbSmrg $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276b85037dbSmrg else 277b85037dbSmrg $as_echo "$0: Please tell bug-autoconf@gnu.org and 278b85037dbSmrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 279b85037dbSmrg$0: about your system, including any error possibly output 280b85037dbSmrg$0: before this message. Then install a modern shell, or 281b85037dbSmrg$0: manually run the script under such a shell if you do 282b85037dbSmrg$0: have one." 283b85037dbSmrg fi 284b85037dbSmrg exit 1 285b85037dbSmrgfi 286b85037dbSmrgfi 287b85037dbSmrgfi 288b85037dbSmrgSHELL=${CONFIG_SHELL-/bin/sh} 289b85037dbSmrgexport SHELL 290b85037dbSmrg# Unset more variables known to interfere with behavior of common tools. 291b85037dbSmrgCLICOLOR_FORCE= GREP_OPTIONS= 292b85037dbSmrgunset CLICOLOR_FORCE GREP_OPTIONS 293b85037dbSmrg 294b85037dbSmrg## --------------------- ## 295b85037dbSmrg## M4sh Shell Functions. ## 296b85037dbSmrg## --------------------- ## 297b85037dbSmrg# as_fn_unset VAR 298b85037dbSmrg# --------------- 299b85037dbSmrg# Portably unset VAR. 300b85037dbSmrgas_fn_unset () 301b85037dbSmrg{ 302b85037dbSmrg { eval $1=; unset $1;} 303b85037dbSmrg} 304b85037dbSmrgas_unset=as_fn_unset 305b85037dbSmrg 306b85037dbSmrg# as_fn_set_status STATUS 307b85037dbSmrg# ----------------------- 308b85037dbSmrg# Set $? to STATUS, without forking. 309b85037dbSmrgas_fn_set_status () 310b85037dbSmrg{ 311b85037dbSmrg return $1 312b85037dbSmrg} # as_fn_set_status 313b85037dbSmrg 314b85037dbSmrg# as_fn_exit STATUS 315b85037dbSmrg# ----------------- 316b85037dbSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 317b85037dbSmrgas_fn_exit () 318b85037dbSmrg{ 319b85037dbSmrg set +e 320b85037dbSmrg as_fn_set_status $1 321b85037dbSmrg exit $1 322b85037dbSmrg} # as_fn_exit 323b85037dbSmrg 324b85037dbSmrg# as_fn_mkdir_p 325b85037dbSmrg# ------------- 326b85037dbSmrg# Create "$as_dir" as a directory, including parents if necessary. 327b85037dbSmrgas_fn_mkdir_p () 328b85037dbSmrg{ 329b85037dbSmrg 330b85037dbSmrg case $as_dir in #( 331b85037dbSmrg -*) as_dir=./$as_dir;; 332b85037dbSmrg esac 333b85037dbSmrg test -d "$as_dir" || eval $as_mkdir_p || { 334b85037dbSmrg as_dirs= 335b85037dbSmrg while :; do 336b85037dbSmrg case $as_dir in #( 337b85037dbSmrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 338b85037dbSmrg *) as_qdir=$as_dir;; 339b85037dbSmrg esac 340b85037dbSmrg as_dirs="'$as_qdir' $as_dirs" 341b85037dbSmrg as_dir=`$as_dirname -- "$as_dir" || 342b85037dbSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 343b85037dbSmrg X"$as_dir" : 'X\(//\)[^/]' \| \ 344b85037dbSmrg X"$as_dir" : 'X\(//\)$' \| \ 345b85037dbSmrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 346b85037dbSmrg$as_echo X"$as_dir" | 347b85037dbSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 348b85037dbSmrg s//\1/ 349b85037dbSmrg q 350b85037dbSmrg } 351b85037dbSmrg /^X\(\/\/\)[^/].*/{ 352b85037dbSmrg s//\1/ 353b85037dbSmrg q 354b85037dbSmrg } 355b85037dbSmrg /^X\(\/\/\)$/{ 356b85037dbSmrg s//\1/ 357b85037dbSmrg q 358b85037dbSmrg } 359b85037dbSmrg /^X\(\/\).*/{ 360b85037dbSmrg s//\1/ 361b85037dbSmrg q 362b85037dbSmrg } 363b85037dbSmrg s/.*/./; q'` 364b85037dbSmrg test -d "$as_dir" && break 365b85037dbSmrg done 366b85037dbSmrg test -z "$as_dirs" || eval "mkdir $as_dirs" 367b85037dbSmrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 368b85037dbSmrg 369b85037dbSmrg 370b85037dbSmrg} # as_fn_mkdir_p 37128515619Smrg 37228515619Smrg# as_fn_executable_p FILE 37328515619Smrg# ----------------------- 37428515619Smrg# Test if FILE is an executable regular file. 37528515619Smrgas_fn_executable_p () 37628515619Smrg{ 37728515619Smrg test -f "$1" && test -x "$1" 37828515619Smrg} # as_fn_executable_p 379b85037dbSmrg# as_fn_append VAR VALUE 380b85037dbSmrg# ---------------------- 381b85037dbSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take 382b85037dbSmrg# advantage of any shell optimizations that allow amortized linear growth over 383b85037dbSmrg# repeated appends, instead of the typical quadratic growth present in naive 384b85037dbSmrg# implementations. 385b85037dbSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 386b85037dbSmrg eval 'as_fn_append () 387b85037dbSmrg { 388b85037dbSmrg eval $1+=\$2 389b85037dbSmrg }' 390b85037dbSmrgelse 391b85037dbSmrg as_fn_append () 392b85037dbSmrg { 393b85037dbSmrg eval $1=\$$1\$2 394b85037dbSmrg } 395b85037dbSmrgfi # as_fn_append 396b85037dbSmrg 397b85037dbSmrg# as_fn_arith ARG... 398b85037dbSmrg# ------------------ 399b85037dbSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the 400b85037dbSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 401b85037dbSmrg# must be portable across $(()) and expr. 402b85037dbSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 403b85037dbSmrg eval 'as_fn_arith () 404b85037dbSmrg { 405b85037dbSmrg as_val=$(( $* )) 406b85037dbSmrg }' 407b85037dbSmrgelse 408b85037dbSmrg as_fn_arith () 409b85037dbSmrg { 410b85037dbSmrg as_val=`expr "$@" || test $? -eq 1` 411b85037dbSmrg } 412b85037dbSmrgfi # as_fn_arith 413b85037dbSmrg 414b85037dbSmrg 415b85037dbSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 416b85037dbSmrg# ---------------------------------------- 417b85037dbSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 418b85037dbSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 419b85037dbSmrg# script with STATUS, using 1 if that was 0. 420b85037dbSmrgas_fn_error () 421b85037dbSmrg{ 422b85037dbSmrg as_status=$1; test $as_status -eq 0 && as_status=1 423b85037dbSmrg if test "$4"; then 424b85037dbSmrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 425b85037dbSmrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 426b85037dbSmrg fi 427b85037dbSmrg $as_echo "$as_me: error: $2" >&2 428b85037dbSmrg as_fn_exit $as_status 429b85037dbSmrg} # as_fn_error 430b85037dbSmrg 431b85037dbSmrgif expr a : '\(a\)' >/dev/null 2>&1 && 432b85037dbSmrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 433b85037dbSmrg as_expr=expr 434b85037dbSmrgelse 435b85037dbSmrg as_expr=false 436b85037dbSmrgfi 437b85037dbSmrg 438b85037dbSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 439b85037dbSmrg as_basename=basename 440b85037dbSmrgelse 441b85037dbSmrg as_basename=false 442b85037dbSmrgfi 443b85037dbSmrg 444b85037dbSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 445b85037dbSmrg as_dirname=dirname 446b85037dbSmrgelse 447b85037dbSmrg as_dirname=false 448b85037dbSmrgfi 449b85037dbSmrg 450b85037dbSmrgas_me=`$as_basename -- "$0" || 451b85037dbSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 452b85037dbSmrg X"$0" : 'X\(//\)$' \| \ 453b85037dbSmrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 454b85037dbSmrg$as_echo X/"$0" | 455b85037dbSmrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 456b85037dbSmrg s//\1/ 457b85037dbSmrg q 458b85037dbSmrg } 459b85037dbSmrg /^X\/\(\/\/\)$/{ 460b85037dbSmrg s//\1/ 461b85037dbSmrg q 462b85037dbSmrg } 463b85037dbSmrg /^X\/\(\/\).*/{ 464b85037dbSmrg s//\1/ 465b85037dbSmrg q 466b85037dbSmrg } 467b85037dbSmrg s/.*/./; q'` 468b85037dbSmrg 469b85037dbSmrg# Avoid depending upon Character Ranges. 470b85037dbSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 471b85037dbSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 472b85037dbSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 473b85037dbSmrgas_cr_digits='0123456789' 474b85037dbSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits 475b85037dbSmrg 476b85037dbSmrg 477b85037dbSmrg as_lineno_1=$LINENO as_lineno_1a=$LINENO 478b85037dbSmrg as_lineno_2=$LINENO as_lineno_2a=$LINENO 479b85037dbSmrg eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 480b85037dbSmrg test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 481b85037dbSmrg # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 482b85037dbSmrg sed -n ' 483b85037dbSmrg p 484b85037dbSmrg /[$]LINENO/= 485b85037dbSmrg ' <$as_myself | 486b85037dbSmrg sed ' 487b85037dbSmrg s/[$]LINENO.*/&-/ 488b85037dbSmrg t lineno 489b85037dbSmrg b 490b85037dbSmrg :lineno 491b85037dbSmrg N 492b85037dbSmrg :loop 493b85037dbSmrg s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 494b85037dbSmrg t loop 495b85037dbSmrg s/-\n.*// 496b85037dbSmrg ' >$as_me.lineno && 497b85037dbSmrg chmod +x "$as_me.lineno" || 498b85037dbSmrg { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 499b85037dbSmrg 50028515619Smrg # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 50128515619Smrg # already done that, so ensure we don't try to do so again and fall 50228515619Smrg # in an infinite loop. This has already happened in practice. 50328515619Smrg _as_can_reexec=no; export _as_can_reexec 504b85037dbSmrg # Don't try to exec as it changes $[0], causing all sort of problems 505b85037dbSmrg # (the dirname of $[0] is not the place where we might find the 506b85037dbSmrg # original and so on. Autoconf is especially sensitive to this). 507b85037dbSmrg . "./$as_me.lineno" 508b85037dbSmrg # Exit status is that of the last command. 509b85037dbSmrg exit 510b85037dbSmrg} 511b85037dbSmrg 512b85037dbSmrgECHO_C= ECHO_N= ECHO_T= 513b85037dbSmrgcase `echo -n x` in #((((( 514b85037dbSmrg-n*) 515b85037dbSmrg case `echo 'xy\c'` in 516b85037dbSmrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 517b85037dbSmrg xy) ECHO_C='\c';; 518b85037dbSmrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 519b85037dbSmrg ECHO_T=' ';; 520b85037dbSmrg esac;; 521b85037dbSmrg*) 522b85037dbSmrg ECHO_N='-n';; 523b85037dbSmrgesac 524b85037dbSmrg 525b85037dbSmrgrm -f conf$$ conf$$.exe conf$$.file 526b85037dbSmrgif test -d conf$$.dir; then 527b85037dbSmrg rm -f conf$$.dir/conf$$.file 528b85037dbSmrgelse 529b85037dbSmrg rm -f conf$$.dir 530b85037dbSmrg mkdir conf$$.dir 2>/dev/null 531b85037dbSmrgfi 532b85037dbSmrgif (echo >conf$$.file) 2>/dev/null; then 533b85037dbSmrg if ln -s conf$$.file conf$$ 2>/dev/null; then 534b85037dbSmrg as_ln_s='ln -s' 535b85037dbSmrg # ... but there are two gotchas: 536b85037dbSmrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 537b85037dbSmrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 53828515619Smrg # In both cases, we have to default to `cp -pR'. 539b85037dbSmrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 54028515619Smrg as_ln_s='cp -pR' 541b85037dbSmrg elif ln conf$$.file conf$$ 2>/dev/null; then 542b85037dbSmrg as_ln_s=ln 543b85037dbSmrg else 54428515619Smrg as_ln_s='cp -pR' 545b85037dbSmrg fi 546b85037dbSmrgelse 54728515619Smrg as_ln_s='cp -pR' 548b85037dbSmrgfi 549b85037dbSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 550b85037dbSmrgrmdir conf$$.dir 2>/dev/null 551b85037dbSmrg 552b85037dbSmrgif mkdir -p . 2>/dev/null; then 553b85037dbSmrg as_mkdir_p='mkdir -p "$as_dir"' 554b85037dbSmrgelse 555b85037dbSmrg test -d ./-p && rmdir ./-p 556b85037dbSmrg as_mkdir_p=false 557b85037dbSmrgfi 558b85037dbSmrg 55928515619Smrgas_test_x='test -x' 56028515619Smrgas_executable_p=as_fn_executable_p 561b85037dbSmrg 562b85037dbSmrg# Sed expression to map a string onto a valid CPP name. 563b85037dbSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 564b85037dbSmrg 565b85037dbSmrg# Sed expression to map a string onto a valid variable name. 566b85037dbSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 567b85037dbSmrg 568b85037dbSmrgSHELL=${CONFIG_SHELL-/bin/sh} 569b85037dbSmrg 570b85037dbSmrg 571b85037dbSmrgtest -n "$DJDIR" || exec 7<&0 </dev/null 572b85037dbSmrgexec 6>&1 573b85037dbSmrg 574b85037dbSmrg# Name of the host. 575b85037dbSmrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 576b85037dbSmrg# so uname gets run too. 577b85037dbSmrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 578b85037dbSmrg 579b85037dbSmrg# 580b85037dbSmrg# Initializations. 581b85037dbSmrg# 582b85037dbSmrgac_default_prefix=/usr/local 583b85037dbSmrgac_clean_files= 584b85037dbSmrgac_config_libobj_dir=. 585b85037dbSmrgLIBOBJS= 586b85037dbSmrgcross_compiling=no 587b85037dbSmrgsubdirs= 588b85037dbSmrgMFLAGS= 589b85037dbSmrgMAKEFLAGS= 590b85037dbSmrg 591b85037dbSmrg# Identity of this package. 592b85037dbSmrgPACKAGE_NAME='xf86-input-synaptics' 593b85037dbSmrgPACKAGE_TARNAME='xf86-input-synaptics' 59428515619SmrgPACKAGE_VERSION='1.7.1' 59528515619SmrgPACKAGE_STRING='xf86-input-synaptics 1.7.1' 596b85037dbSmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 597b85037dbSmrgPACKAGE_URL='' 598b85037dbSmrg 599b85037dbSmrgac_unique_file="Makefile.am" 600b85037dbSmrg# Factoring default headers for most tests. 601b85037dbSmrgac_includes_default="\ 602b85037dbSmrg#include <stdio.h> 603b85037dbSmrg#ifdef HAVE_SYS_TYPES_H 604b85037dbSmrg# include <sys/types.h> 605b85037dbSmrg#endif 606b85037dbSmrg#ifdef HAVE_SYS_STAT_H 607b85037dbSmrg# include <sys/stat.h> 608b85037dbSmrg#endif 609b85037dbSmrg#ifdef STDC_HEADERS 610b85037dbSmrg# include <stdlib.h> 611b85037dbSmrg# include <stddef.h> 612b85037dbSmrg#else 613b85037dbSmrg# ifdef HAVE_STDLIB_H 614b85037dbSmrg# include <stdlib.h> 615b85037dbSmrg# endif 616b85037dbSmrg#endif 617b85037dbSmrg#ifdef HAVE_STRING_H 618b85037dbSmrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 619b85037dbSmrg# include <memory.h> 620b85037dbSmrg# endif 621b85037dbSmrg# include <string.h> 622b85037dbSmrg#endif 623b85037dbSmrg#ifdef HAVE_STRINGS_H 624b85037dbSmrg# include <strings.h> 625b85037dbSmrg#endif 626b85037dbSmrg#ifdef HAVE_INTTYPES_H 627b85037dbSmrg# include <inttypes.h> 628b85037dbSmrg#endif 629b85037dbSmrg#ifdef HAVE_STDINT_H 630b85037dbSmrg# include <stdint.h> 631b85037dbSmrg#endif 632b85037dbSmrg#ifdef HAVE_UNISTD_H 633b85037dbSmrg# include <unistd.h> 634b85037dbSmrg#endif" 635b85037dbSmrg 636b85037dbSmrgac_subst_vars='am__EXEEXT_FALSE 637b85037dbSmrgam__EXEEXT_TRUE 638b85037dbSmrgLTLIBOBJS 639b85037dbSmrgLIBOBJS 640b85037dbSmrgXTST_LIBS 641b85037dbSmrgXTST_CFLAGS 642b85037dbSmrgXI_LIBS 643b85037dbSmrgXI_CFLAGS 64428515619SmrgBUILD_PS2COMM_FALSE 64528515619SmrgBUILD_PS2COMM_TRUE 646b85037dbSmrgBUILD_PSMCOMM_FALSE 647b85037dbSmrgBUILD_PSMCOMM_TRUE 648b85037dbSmrgBUILD_EVENTCOMM_FALSE 649b85037dbSmrgBUILD_EVENTCOMM_TRUE 65028515619SmrgMTDEV_LIBS 65128515619SmrgMTDEV_CFLAGS 652b85037dbSmrgDEBUG_FALSE 653b85037dbSmrgDEBUG_TRUE 654b85037dbSmrgHAS_XORG_CONF_DIR_FALSE 655b85037dbSmrgHAS_XORG_CONF_DIR_TRUE 656b85037dbSmrgconfigdir 657b85037dbSmrginputdir 658b85037dbSmrgsdkdir 659b85037dbSmrgXORG_LIBS 660b85037dbSmrgXORG_CFLAGS 66128515619SmrgENABLE_UNIT_TESTS_FALSE 66228515619SmrgENABLE_UNIT_TESTS_TRUE 66328515619SmrgXORG_MALLOC_DEBUG_ENV 664b85037dbSmrgAM_BACKSLASH 665b85037dbSmrgAM_DEFAULT_VERBOSITY 66628515619SmrgAM_DEFAULT_V 66728515619SmrgAM_V 668b85037dbSmrgMAN_SUBSTS 669b85037dbSmrgXORG_MAN_PAGE 670b85037dbSmrgADMIN_MAN_DIR 671b85037dbSmrgDRIVER_MAN_DIR 672b85037dbSmrgMISC_MAN_DIR 673b85037dbSmrgFILE_MAN_DIR 674b85037dbSmrgLIB_MAN_DIR 675b85037dbSmrgAPP_MAN_DIR 676b85037dbSmrgADMIN_MAN_SUFFIX 677b85037dbSmrgDRIVER_MAN_SUFFIX 678b85037dbSmrgMISC_MAN_SUFFIX 679b85037dbSmrgFILE_MAN_SUFFIX 680b85037dbSmrgLIB_MAN_SUFFIX 681b85037dbSmrgAPP_MAN_SUFFIX 682b85037dbSmrgINSTALL_CMD 683b85037dbSmrgPKG_CONFIG_LIBDIR 684b85037dbSmrgPKG_CONFIG_PATH 685b85037dbSmrgPKG_CONFIG 686b85037dbSmrgCHANGELOG_CMD 687302b15bdSmrgSTRICT_CFLAGS 688b85037dbSmrgCWARNFLAGS 68928515619SmrgBASE_CFLAGS 690b85037dbSmrgCPP 691b85037dbSmrgOTOOL64 692b85037dbSmrgOTOOL 693b85037dbSmrgLIPO 694b85037dbSmrgNMEDIT 695b85037dbSmrgDSYMUTIL 696302b15bdSmrgMANIFEST_TOOL 697b85037dbSmrgRANLIB 698302b15bdSmrgac_ct_AR 699b85037dbSmrgAR 700302b15bdSmrgDLLTOOL 701b85037dbSmrgOBJDUMP 702b85037dbSmrgLN_S 703b85037dbSmrgNM 704b85037dbSmrgac_ct_DUMPBIN 705b85037dbSmrgDUMPBIN 706b85037dbSmrgLD 707b85037dbSmrgFGREP 708b85037dbSmrgEGREP 709b85037dbSmrgGREP 710b85037dbSmrgSED 711b85037dbSmrgam__fastdepCC_FALSE 712b85037dbSmrgam__fastdepCC_TRUE 713b85037dbSmrgCCDEPMODE 71428515619Smrgam__nodep 715b85037dbSmrgAMDEPBACKSLASH 716b85037dbSmrgAMDEP_FALSE 717b85037dbSmrgAMDEP_TRUE 718b85037dbSmrgam__quote 719b85037dbSmrgam__include 720b85037dbSmrgDEPDIR 721b85037dbSmrgOBJEXT 722b85037dbSmrgEXEEXT 723b85037dbSmrgac_ct_CC 724b85037dbSmrgCPPFLAGS 725b85037dbSmrgLDFLAGS 726b85037dbSmrgCFLAGS 727b85037dbSmrgCC 728b85037dbSmrghost_os 729b85037dbSmrghost_vendor 730b85037dbSmrghost_cpu 731b85037dbSmrghost 732b85037dbSmrgbuild_os 733b85037dbSmrgbuild_vendor 734b85037dbSmrgbuild_cpu 735b85037dbSmrgbuild 736b85037dbSmrgLIBTOOL 737b85037dbSmrgMAINT 738b85037dbSmrgMAINTAINER_MODE_FALSE 739b85037dbSmrgMAINTAINER_MODE_TRUE 740b85037dbSmrgam__untar 741b85037dbSmrgam__tar 742b85037dbSmrgAMTAR 743b85037dbSmrgam__leading_dot 744b85037dbSmrgSET_MAKE 745b85037dbSmrgAWK 746b85037dbSmrgmkdir_p 747b85037dbSmrgMKDIR_P 748b85037dbSmrgINSTALL_STRIP_PROGRAM 749b85037dbSmrgSTRIP 750b85037dbSmrginstall_sh 751b85037dbSmrgMAKEINFO 752b85037dbSmrgAUTOHEADER 753b85037dbSmrgAUTOMAKE 754b85037dbSmrgAUTOCONF 755b85037dbSmrgACLOCAL 756b85037dbSmrgVERSION 757b85037dbSmrgPACKAGE 758b85037dbSmrgCYGPATH_W 759b85037dbSmrgam__isrc 760b85037dbSmrgINSTALL_DATA 761b85037dbSmrgINSTALL_SCRIPT 762b85037dbSmrgINSTALL_PROGRAM 763b85037dbSmrgtarget_alias 764b85037dbSmrghost_alias 765b85037dbSmrgbuild_alias 766b85037dbSmrgLIBS 767b85037dbSmrgECHO_T 768b85037dbSmrgECHO_N 769b85037dbSmrgECHO_C 770b85037dbSmrgDEFS 771b85037dbSmrgmandir 772b85037dbSmrglocaledir 773b85037dbSmrglibdir 774b85037dbSmrgpsdir 775b85037dbSmrgpdfdir 776b85037dbSmrgdvidir 777b85037dbSmrghtmldir 778b85037dbSmrginfodir 779b85037dbSmrgdocdir 780b85037dbSmrgoldincludedir 781b85037dbSmrgincludedir 782b85037dbSmrglocalstatedir 783b85037dbSmrgsharedstatedir 784b85037dbSmrgsysconfdir 785b85037dbSmrgdatadir 786b85037dbSmrgdatarootdir 787b85037dbSmrglibexecdir 788b85037dbSmrgsbindir 789b85037dbSmrgbindir 790b85037dbSmrgprogram_transform_name 791b85037dbSmrgprefix 792b85037dbSmrgexec_prefix 793b85037dbSmrgPACKAGE_URL 794b85037dbSmrgPACKAGE_BUGREPORT 795b85037dbSmrgPACKAGE_STRING 796b85037dbSmrgPACKAGE_VERSION 797b85037dbSmrgPACKAGE_TARNAME 798b85037dbSmrgPACKAGE_NAME 799b85037dbSmrgPATH_SEPARATOR 800b85037dbSmrgSHELL' 801b85037dbSmrgac_subst_files='' 802b85037dbSmrgac_user_opts=' 803b85037dbSmrgenable_option_checking 804b85037dbSmrgenable_maintainer_mode 805b85037dbSmrgenable_static 806b85037dbSmrgenable_shared 807b85037dbSmrgwith_pic 808b85037dbSmrgenable_fast_install 809b85037dbSmrgenable_dependency_tracking 810b85037dbSmrgwith_gnu_ld 811302b15bdSmrgwith_sysroot 812b85037dbSmrgenable_libtool_lock 81328515619Smrgenable_selective_werror 814b85037dbSmrgenable_strict_compilation 815b85037dbSmrgenable_silent_rules 81628515619Smrgenable_unit_tests 817b85037dbSmrgwith_xorg_module_dir 818b85037dbSmrgwith_xorg_conf_dir 819b85037dbSmrgenable_debug 82028515619Smrgwith_sdkdir 821b85037dbSmrg' 822b85037dbSmrg ac_precious_vars='build_alias 823b85037dbSmrghost_alias 824b85037dbSmrgtarget_alias 825b85037dbSmrgCC 826b85037dbSmrgCFLAGS 827b85037dbSmrgLDFLAGS 828b85037dbSmrgLIBS 829b85037dbSmrgCPPFLAGS 830b85037dbSmrgCPP 831b85037dbSmrgPKG_CONFIG 832b85037dbSmrgPKG_CONFIG_PATH 833b85037dbSmrgPKG_CONFIG_LIBDIR 83428515619SmrgXORG_MALLOC_DEBUG_ENV 835b85037dbSmrgXORG_CFLAGS 836b85037dbSmrgXORG_LIBS 83728515619SmrgMTDEV_CFLAGS 83828515619SmrgMTDEV_LIBS 839b85037dbSmrgXI_CFLAGS 840b85037dbSmrgXI_LIBS 841b85037dbSmrgXTST_CFLAGS 842b85037dbSmrgXTST_LIBS' 843b85037dbSmrg 844b85037dbSmrg 845b85037dbSmrg# Initialize some variables set by options. 846b85037dbSmrgac_init_help= 847b85037dbSmrgac_init_version=false 848b85037dbSmrgac_unrecognized_opts= 849b85037dbSmrgac_unrecognized_sep= 850b85037dbSmrg# The variables have the same names as the options, with 851b85037dbSmrg# dashes changed to underlines. 852b85037dbSmrgcache_file=/dev/null 853b85037dbSmrgexec_prefix=NONE 854b85037dbSmrgno_create= 855b85037dbSmrgno_recursion= 856b85037dbSmrgprefix=NONE 857b85037dbSmrgprogram_prefix=NONE 858b85037dbSmrgprogram_suffix=NONE 859b85037dbSmrgprogram_transform_name=s,x,x, 860b85037dbSmrgsilent= 861b85037dbSmrgsite= 862b85037dbSmrgsrcdir= 863b85037dbSmrgverbose= 864b85037dbSmrgx_includes=NONE 865b85037dbSmrgx_libraries=NONE 866b85037dbSmrg 867b85037dbSmrg# Installation directory options. 868b85037dbSmrg# These are left unexpanded so users can "make install exec_prefix=/foo" 869b85037dbSmrg# and all the variables that are supposed to be based on exec_prefix 870b85037dbSmrg# by default will actually change. 871b85037dbSmrg# Use braces instead of parens because sh, perl, etc. also accept them. 872b85037dbSmrg# (The list follows the same order as the GNU Coding Standards.) 873b85037dbSmrgbindir='${exec_prefix}/bin' 874b85037dbSmrgsbindir='${exec_prefix}/sbin' 875b85037dbSmrglibexecdir='${exec_prefix}/libexec' 876b85037dbSmrgdatarootdir='${prefix}/share' 877b85037dbSmrgdatadir='${datarootdir}' 878b85037dbSmrgsysconfdir='${prefix}/etc' 879b85037dbSmrgsharedstatedir='${prefix}/com' 880b85037dbSmrglocalstatedir='${prefix}/var' 881b85037dbSmrgincludedir='${prefix}/include' 882b85037dbSmrgoldincludedir='/usr/include' 883b85037dbSmrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 884b85037dbSmrginfodir='${datarootdir}/info' 885b85037dbSmrghtmldir='${docdir}' 886b85037dbSmrgdvidir='${docdir}' 887b85037dbSmrgpdfdir='${docdir}' 888b85037dbSmrgpsdir='${docdir}' 889b85037dbSmrglibdir='${exec_prefix}/lib' 890b85037dbSmrglocaledir='${datarootdir}/locale' 891b85037dbSmrgmandir='${datarootdir}/man' 892b85037dbSmrg 893b85037dbSmrgac_prev= 894b85037dbSmrgac_dashdash= 895b85037dbSmrgfor ac_option 896b85037dbSmrgdo 897b85037dbSmrg # If the previous option needs an argument, assign it. 898b85037dbSmrg if test -n "$ac_prev"; then 899b85037dbSmrg eval $ac_prev=\$ac_option 900b85037dbSmrg ac_prev= 901b85037dbSmrg continue 902b85037dbSmrg fi 903b85037dbSmrg 904b85037dbSmrg case $ac_option in 905302b15bdSmrg *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 906302b15bdSmrg *=) ac_optarg= ;; 907302b15bdSmrg *) ac_optarg=yes ;; 908b85037dbSmrg esac 909b85037dbSmrg 910b85037dbSmrg # Accept the important Cygnus configure options, so we can diagnose typos. 911b85037dbSmrg 912b85037dbSmrg case $ac_dashdash$ac_option in 913b85037dbSmrg --) 914b85037dbSmrg ac_dashdash=yes ;; 915b85037dbSmrg 916b85037dbSmrg -bindir | --bindir | --bindi | --bind | --bin | --bi) 917b85037dbSmrg ac_prev=bindir ;; 918b85037dbSmrg -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 919b85037dbSmrg bindir=$ac_optarg ;; 920b85037dbSmrg 921b85037dbSmrg -build | --build | --buil | --bui | --bu) 922b85037dbSmrg ac_prev=build_alias ;; 923b85037dbSmrg -build=* | --build=* | --buil=* | --bui=* | --bu=*) 924b85037dbSmrg build_alias=$ac_optarg ;; 925b85037dbSmrg 926b85037dbSmrg -cache-file | --cache-file | --cache-fil | --cache-fi \ 927b85037dbSmrg | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 928b85037dbSmrg ac_prev=cache_file ;; 929b85037dbSmrg -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 930b85037dbSmrg | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 931b85037dbSmrg cache_file=$ac_optarg ;; 932b85037dbSmrg 933b85037dbSmrg --config-cache | -C) 934b85037dbSmrg cache_file=config.cache ;; 935b85037dbSmrg 936b85037dbSmrg -datadir | --datadir | --datadi | --datad) 937b85037dbSmrg ac_prev=datadir ;; 938b85037dbSmrg -datadir=* | --datadir=* | --datadi=* | --datad=*) 939b85037dbSmrg datadir=$ac_optarg ;; 940b85037dbSmrg 941b85037dbSmrg -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 942b85037dbSmrg | --dataroo | --dataro | --datar) 943b85037dbSmrg ac_prev=datarootdir ;; 944b85037dbSmrg -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 945b85037dbSmrg | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 946b85037dbSmrg datarootdir=$ac_optarg ;; 947b85037dbSmrg 948b85037dbSmrg -disable-* | --disable-*) 949b85037dbSmrg ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 950b85037dbSmrg # Reject names that are not valid shell variable names. 951b85037dbSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 952b85037dbSmrg as_fn_error $? "invalid feature name: $ac_useropt" 953b85037dbSmrg ac_useropt_orig=$ac_useropt 954b85037dbSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 955b85037dbSmrg case $ac_user_opts in 956b85037dbSmrg *" 957b85037dbSmrg"enable_$ac_useropt" 958b85037dbSmrg"*) ;; 959b85037dbSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 960b85037dbSmrg ac_unrecognized_sep=', ';; 961b85037dbSmrg esac 962b85037dbSmrg eval enable_$ac_useropt=no ;; 963b85037dbSmrg 964b85037dbSmrg -docdir | --docdir | --docdi | --doc | --do) 965b85037dbSmrg ac_prev=docdir ;; 966b85037dbSmrg -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 967b85037dbSmrg docdir=$ac_optarg ;; 968b85037dbSmrg 969b85037dbSmrg -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 970b85037dbSmrg ac_prev=dvidir ;; 971b85037dbSmrg -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 972b85037dbSmrg dvidir=$ac_optarg ;; 973b85037dbSmrg 974b85037dbSmrg -enable-* | --enable-*) 975b85037dbSmrg ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 976b85037dbSmrg # Reject names that are not valid shell variable names. 977b85037dbSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 978b85037dbSmrg as_fn_error $? "invalid feature name: $ac_useropt" 979b85037dbSmrg ac_useropt_orig=$ac_useropt 980b85037dbSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 981b85037dbSmrg case $ac_user_opts in 982b85037dbSmrg *" 983b85037dbSmrg"enable_$ac_useropt" 984b85037dbSmrg"*) ;; 985b85037dbSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 986b85037dbSmrg ac_unrecognized_sep=', ';; 987b85037dbSmrg esac 988b85037dbSmrg eval enable_$ac_useropt=\$ac_optarg ;; 989b85037dbSmrg 990b85037dbSmrg -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 991b85037dbSmrg | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 992b85037dbSmrg | --exec | --exe | --ex) 993b85037dbSmrg ac_prev=exec_prefix ;; 994b85037dbSmrg -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 995b85037dbSmrg | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 996b85037dbSmrg | --exec=* | --exe=* | --ex=*) 997b85037dbSmrg exec_prefix=$ac_optarg ;; 998b85037dbSmrg 999b85037dbSmrg -gas | --gas | --ga | --g) 1000b85037dbSmrg # Obsolete; use --with-gas. 1001b85037dbSmrg with_gas=yes ;; 1002b85037dbSmrg 1003b85037dbSmrg -help | --help | --hel | --he | -h) 1004b85037dbSmrg ac_init_help=long ;; 1005b85037dbSmrg -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1006b85037dbSmrg ac_init_help=recursive ;; 1007b85037dbSmrg -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1008b85037dbSmrg ac_init_help=short ;; 1009b85037dbSmrg 1010b85037dbSmrg -host | --host | --hos | --ho) 1011b85037dbSmrg ac_prev=host_alias ;; 1012b85037dbSmrg -host=* | --host=* | --hos=* | --ho=*) 1013b85037dbSmrg host_alias=$ac_optarg ;; 1014b85037dbSmrg 1015b85037dbSmrg -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1016b85037dbSmrg ac_prev=htmldir ;; 1017b85037dbSmrg -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1018b85037dbSmrg | --ht=*) 1019b85037dbSmrg htmldir=$ac_optarg ;; 1020b85037dbSmrg 1021b85037dbSmrg -includedir | --includedir | --includedi | --included | --include \ 1022b85037dbSmrg | --includ | --inclu | --incl | --inc) 1023b85037dbSmrg ac_prev=includedir ;; 1024b85037dbSmrg -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1025b85037dbSmrg | --includ=* | --inclu=* | --incl=* | --inc=*) 1026b85037dbSmrg includedir=$ac_optarg ;; 1027b85037dbSmrg 1028b85037dbSmrg -infodir | --infodir | --infodi | --infod | --info | --inf) 1029b85037dbSmrg ac_prev=infodir ;; 1030b85037dbSmrg -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1031b85037dbSmrg infodir=$ac_optarg ;; 1032b85037dbSmrg 1033b85037dbSmrg -libdir | --libdir | --libdi | --libd) 1034b85037dbSmrg ac_prev=libdir ;; 1035b85037dbSmrg -libdir=* | --libdir=* | --libdi=* | --libd=*) 1036b85037dbSmrg libdir=$ac_optarg ;; 1037b85037dbSmrg 1038b85037dbSmrg -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1039b85037dbSmrg | --libexe | --libex | --libe) 1040b85037dbSmrg ac_prev=libexecdir ;; 1041b85037dbSmrg -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1042b85037dbSmrg | --libexe=* | --libex=* | --libe=*) 1043b85037dbSmrg libexecdir=$ac_optarg ;; 1044b85037dbSmrg 1045b85037dbSmrg -localedir | --localedir | --localedi | --localed | --locale) 1046b85037dbSmrg ac_prev=localedir ;; 1047b85037dbSmrg -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1048b85037dbSmrg localedir=$ac_optarg ;; 1049b85037dbSmrg 1050b85037dbSmrg -localstatedir | --localstatedir | --localstatedi | --localstated \ 1051b85037dbSmrg | --localstate | --localstat | --localsta | --localst | --locals) 1052b85037dbSmrg ac_prev=localstatedir ;; 1053b85037dbSmrg -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1054b85037dbSmrg | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1055b85037dbSmrg localstatedir=$ac_optarg ;; 1056b85037dbSmrg 1057b85037dbSmrg -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1058b85037dbSmrg ac_prev=mandir ;; 1059b85037dbSmrg -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1060b85037dbSmrg mandir=$ac_optarg ;; 1061b85037dbSmrg 1062b85037dbSmrg -nfp | --nfp | --nf) 1063b85037dbSmrg # Obsolete; use --without-fp. 1064b85037dbSmrg with_fp=no ;; 1065b85037dbSmrg 1066b85037dbSmrg -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1067b85037dbSmrg | --no-cr | --no-c | -n) 1068b85037dbSmrg no_create=yes ;; 1069b85037dbSmrg 1070b85037dbSmrg -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1071b85037dbSmrg | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1072b85037dbSmrg no_recursion=yes ;; 1073b85037dbSmrg 1074b85037dbSmrg -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1075b85037dbSmrg | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1076b85037dbSmrg | --oldin | --oldi | --old | --ol | --o) 1077b85037dbSmrg ac_prev=oldincludedir ;; 1078b85037dbSmrg -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1079b85037dbSmrg | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1080b85037dbSmrg | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1081b85037dbSmrg oldincludedir=$ac_optarg ;; 1082b85037dbSmrg 1083b85037dbSmrg -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1084b85037dbSmrg ac_prev=prefix ;; 1085b85037dbSmrg -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1086b85037dbSmrg prefix=$ac_optarg ;; 1087b85037dbSmrg 1088b85037dbSmrg -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1089b85037dbSmrg | --program-pre | --program-pr | --program-p) 1090b85037dbSmrg ac_prev=program_prefix ;; 1091b85037dbSmrg -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1092b85037dbSmrg | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1093b85037dbSmrg program_prefix=$ac_optarg ;; 1094b85037dbSmrg 1095b85037dbSmrg -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1096b85037dbSmrg | --program-suf | --program-su | --program-s) 1097b85037dbSmrg ac_prev=program_suffix ;; 1098b85037dbSmrg -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1099b85037dbSmrg | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1100b85037dbSmrg program_suffix=$ac_optarg ;; 1101b85037dbSmrg 1102b85037dbSmrg -program-transform-name | --program-transform-name \ 1103b85037dbSmrg | --program-transform-nam | --program-transform-na \ 1104b85037dbSmrg | --program-transform-n | --program-transform- \ 1105b85037dbSmrg | --program-transform | --program-transfor \ 1106b85037dbSmrg | --program-transfo | --program-transf \ 1107b85037dbSmrg | --program-trans | --program-tran \ 1108b85037dbSmrg | --progr-tra | --program-tr | --program-t) 1109b85037dbSmrg ac_prev=program_transform_name ;; 1110b85037dbSmrg -program-transform-name=* | --program-transform-name=* \ 1111b85037dbSmrg | --program-transform-nam=* | --program-transform-na=* \ 1112b85037dbSmrg | --program-transform-n=* | --program-transform-=* \ 1113b85037dbSmrg | --program-transform=* | --program-transfor=* \ 1114b85037dbSmrg | --program-transfo=* | --program-transf=* \ 1115b85037dbSmrg | --program-trans=* | --program-tran=* \ 1116b85037dbSmrg | --progr-tra=* | --program-tr=* | --program-t=*) 1117b85037dbSmrg program_transform_name=$ac_optarg ;; 1118b85037dbSmrg 1119b85037dbSmrg -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1120b85037dbSmrg ac_prev=pdfdir ;; 1121b85037dbSmrg -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1122b85037dbSmrg pdfdir=$ac_optarg ;; 1123b85037dbSmrg 1124b85037dbSmrg -psdir | --psdir | --psdi | --psd | --ps) 1125b85037dbSmrg ac_prev=psdir ;; 1126b85037dbSmrg -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1127b85037dbSmrg psdir=$ac_optarg ;; 1128b85037dbSmrg 1129b85037dbSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1130b85037dbSmrg | -silent | --silent | --silen | --sile | --sil) 1131b85037dbSmrg silent=yes ;; 1132b85037dbSmrg 1133b85037dbSmrg -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1134b85037dbSmrg ac_prev=sbindir ;; 1135b85037dbSmrg -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1136b85037dbSmrg | --sbi=* | --sb=*) 1137b85037dbSmrg sbindir=$ac_optarg ;; 1138b85037dbSmrg 1139b85037dbSmrg -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1140b85037dbSmrg | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1141b85037dbSmrg | --sharedst | --shareds | --shared | --share | --shar \ 1142b85037dbSmrg | --sha | --sh) 1143b85037dbSmrg ac_prev=sharedstatedir ;; 1144b85037dbSmrg -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1145b85037dbSmrg | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1146b85037dbSmrg | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1147b85037dbSmrg | --sha=* | --sh=*) 1148b85037dbSmrg sharedstatedir=$ac_optarg ;; 1149b85037dbSmrg 1150b85037dbSmrg -site | --site | --sit) 1151b85037dbSmrg ac_prev=site ;; 1152b85037dbSmrg -site=* | --site=* | --sit=*) 1153b85037dbSmrg site=$ac_optarg ;; 1154b85037dbSmrg 1155b85037dbSmrg -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1156b85037dbSmrg ac_prev=srcdir ;; 1157b85037dbSmrg -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1158b85037dbSmrg srcdir=$ac_optarg ;; 1159b85037dbSmrg 1160b85037dbSmrg -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1161b85037dbSmrg | --syscon | --sysco | --sysc | --sys | --sy) 1162b85037dbSmrg ac_prev=sysconfdir ;; 1163b85037dbSmrg -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1164b85037dbSmrg | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1165b85037dbSmrg sysconfdir=$ac_optarg ;; 1166b85037dbSmrg 1167b85037dbSmrg -target | --target | --targe | --targ | --tar | --ta | --t) 1168b85037dbSmrg ac_prev=target_alias ;; 1169b85037dbSmrg -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1170b85037dbSmrg target_alias=$ac_optarg ;; 1171b85037dbSmrg 1172b85037dbSmrg -v | -verbose | --verbose | --verbos | --verbo | --verb) 1173b85037dbSmrg verbose=yes ;; 1174b85037dbSmrg 1175b85037dbSmrg -version | --version | --versio | --versi | --vers | -V) 1176b85037dbSmrg ac_init_version=: ;; 1177b85037dbSmrg 1178b85037dbSmrg -with-* | --with-*) 1179b85037dbSmrg ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1180b85037dbSmrg # Reject names that are not valid shell variable names. 1181b85037dbSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1182b85037dbSmrg as_fn_error $? "invalid package name: $ac_useropt" 1183b85037dbSmrg ac_useropt_orig=$ac_useropt 1184b85037dbSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1185b85037dbSmrg case $ac_user_opts in 1186b85037dbSmrg *" 1187b85037dbSmrg"with_$ac_useropt" 1188b85037dbSmrg"*) ;; 1189b85037dbSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1190b85037dbSmrg ac_unrecognized_sep=', ';; 1191b85037dbSmrg esac 1192b85037dbSmrg eval with_$ac_useropt=\$ac_optarg ;; 1193b85037dbSmrg 1194b85037dbSmrg -without-* | --without-*) 1195b85037dbSmrg ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1196b85037dbSmrg # Reject names that are not valid shell variable names. 1197b85037dbSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1198b85037dbSmrg as_fn_error $? "invalid package name: $ac_useropt" 1199b85037dbSmrg ac_useropt_orig=$ac_useropt 1200b85037dbSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1201b85037dbSmrg case $ac_user_opts in 1202b85037dbSmrg *" 1203b85037dbSmrg"with_$ac_useropt" 1204b85037dbSmrg"*) ;; 1205b85037dbSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1206b85037dbSmrg ac_unrecognized_sep=', ';; 1207b85037dbSmrg esac 1208b85037dbSmrg eval with_$ac_useropt=no ;; 1209b85037dbSmrg 1210b85037dbSmrg --x) 1211b85037dbSmrg # Obsolete; use --with-x. 1212b85037dbSmrg with_x=yes ;; 1213b85037dbSmrg 1214b85037dbSmrg -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1215b85037dbSmrg | --x-incl | --x-inc | --x-in | --x-i) 1216b85037dbSmrg ac_prev=x_includes ;; 1217b85037dbSmrg -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1218b85037dbSmrg | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1219b85037dbSmrg x_includes=$ac_optarg ;; 1220b85037dbSmrg 1221b85037dbSmrg -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1222b85037dbSmrg | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1223b85037dbSmrg ac_prev=x_libraries ;; 1224b85037dbSmrg -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1225b85037dbSmrg | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1226b85037dbSmrg x_libraries=$ac_optarg ;; 1227b85037dbSmrg 1228b85037dbSmrg -*) as_fn_error $? "unrecognized option: \`$ac_option' 1229b85037dbSmrgTry \`$0 --help' for more information" 1230b85037dbSmrg ;; 1231b85037dbSmrg 1232b85037dbSmrg *=*) 1233b85037dbSmrg ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1234b85037dbSmrg # Reject names that are not valid shell variable names. 1235b85037dbSmrg case $ac_envvar in #( 1236b85037dbSmrg '' | [0-9]* | *[!_$as_cr_alnum]* ) 1237b85037dbSmrg as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1238b85037dbSmrg esac 1239b85037dbSmrg eval $ac_envvar=\$ac_optarg 1240b85037dbSmrg export $ac_envvar ;; 1241b85037dbSmrg 1242b85037dbSmrg *) 1243b85037dbSmrg # FIXME: should be removed in autoconf 3.0. 1244b85037dbSmrg $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1245b85037dbSmrg expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1246b85037dbSmrg $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1247302b15bdSmrg : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1248b85037dbSmrg ;; 1249b85037dbSmrg 1250b85037dbSmrg esac 1251b85037dbSmrgdone 1252b85037dbSmrg 1253b85037dbSmrgif test -n "$ac_prev"; then 1254b85037dbSmrg ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1255b85037dbSmrg as_fn_error $? "missing argument to $ac_option" 1256b85037dbSmrgfi 1257b85037dbSmrg 1258b85037dbSmrgif test -n "$ac_unrecognized_opts"; then 1259b85037dbSmrg case $enable_option_checking in 1260b85037dbSmrg no) ;; 1261b85037dbSmrg fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1262b85037dbSmrg *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1263b85037dbSmrg esac 1264b85037dbSmrgfi 1265b85037dbSmrg 1266b85037dbSmrg# Check all directory arguments for consistency. 1267b85037dbSmrgfor ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1268b85037dbSmrg datadir sysconfdir sharedstatedir localstatedir includedir \ 1269b85037dbSmrg oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1270b85037dbSmrg libdir localedir mandir 1271b85037dbSmrgdo 1272b85037dbSmrg eval ac_val=\$$ac_var 1273b85037dbSmrg # Remove trailing slashes. 1274b85037dbSmrg case $ac_val in 1275b85037dbSmrg */ ) 1276b85037dbSmrg ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1277b85037dbSmrg eval $ac_var=\$ac_val;; 1278b85037dbSmrg esac 1279b85037dbSmrg # Be sure to have absolute directory names. 1280b85037dbSmrg case $ac_val in 1281b85037dbSmrg [\\/$]* | ?:[\\/]* ) continue;; 1282b85037dbSmrg NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1283b85037dbSmrg esac 1284b85037dbSmrg as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1285b85037dbSmrgdone 1286b85037dbSmrg 1287b85037dbSmrg# There might be people who depend on the old broken behavior: `$host' 1288b85037dbSmrg# used to hold the argument of --host etc. 1289b85037dbSmrg# FIXME: To remove some day. 1290b85037dbSmrgbuild=$build_alias 1291b85037dbSmrghost=$host_alias 1292b85037dbSmrgtarget=$target_alias 1293b85037dbSmrg 1294b85037dbSmrg# FIXME: To remove some day. 1295b85037dbSmrgif test "x$host_alias" != x; then 1296b85037dbSmrg if test "x$build_alias" = x; then 1297b85037dbSmrg cross_compiling=maybe 1298b85037dbSmrg elif test "x$build_alias" != "x$host_alias"; then 1299b85037dbSmrg cross_compiling=yes 1300b85037dbSmrg fi 1301b85037dbSmrgfi 1302b85037dbSmrg 1303b85037dbSmrgac_tool_prefix= 1304b85037dbSmrgtest -n "$host_alias" && ac_tool_prefix=$host_alias- 1305b85037dbSmrg 1306b85037dbSmrgtest "$silent" = yes && exec 6>/dev/null 1307b85037dbSmrg 1308b85037dbSmrg 1309b85037dbSmrgac_pwd=`pwd` && test -n "$ac_pwd" && 1310b85037dbSmrgac_ls_di=`ls -di .` && 1311b85037dbSmrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1312b85037dbSmrg as_fn_error $? "working directory cannot be determined" 1313b85037dbSmrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1314b85037dbSmrg as_fn_error $? "pwd does not report name of working directory" 1315b85037dbSmrg 1316b85037dbSmrg 1317b85037dbSmrg# Find the source files, if location was not specified. 1318b85037dbSmrgif test -z "$srcdir"; then 1319b85037dbSmrg ac_srcdir_defaulted=yes 1320b85037dbSmrg # Try the directory containing this script, then the parent directory. 1321b85037dbSmrg ac_confdir=`$as_dirname -- "$as_myself" || 1322b85037dbSmrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1323b85037dbSmrg X"$as_myself" : 'X\(//\)[^/]' \| \ 1324b85037dbSmrg X"$as_myself" : 'X\(//\)$' \| \ 1325b85037dbSmrg X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1326b85037dbSmrg$as_echo X"$as_myself" | 1327b85037dbSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1328b85037dbSmrg s//\1/ 1329b85037dbSmrg q 1330b85037dbSmrg } 1331b85037dbSmrg /^X\(\/\/\)[^/].*/{ 1332b85037dbSmrg s//\1/ 1333b85037dbSmrg q 1334b85037dbSmrg } 1335b85037dbSmrg /^X\(\/\/\)$/{ 1336b85037dbSmrg s//\1/ 1337b85037dbSmrg q 1338b85037dbSmrg } 1339b85037dbSmrg /^X\(\/\).*/{ 1340b85037dbSmrg s//\1/ 1341b85037dbSmrg q 1342b85037dbSmrg } 1343b85037dbSmrg s/.*/./; q'` 1344b85037dbSmrg srcdir=$ac_confdir 1345b85037dbSmrg if test ! -r "$srcdir/$ac_unique_file"; then 1346b85037dbSmrg srcdir=.. 1347b85037dbSmrg fi 1348b85037dbSmrgelse 1349b85037dbSmrg ac_srcdir_defaulted=no 1350b85037dbSmrgfi 1351b85037dbSmrgif test ! -r "$srcdir/$ac_unique_file"; then 1352b85037dbSmrg test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1353b85037dbSmrg as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1354b85037dbSmrgfi 1355b85037dbSmrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1356b85037dbSmrgac_abs_confdir=`( 1357b85037dbSmrg cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1358b85037dbSmrg pwd)` 1359b85037dbSmrg# When building in place, set srcdir=. 1360b85037dbSmrgif test "$ac_abs_confdir" = "$ac_pwd"; then 1361b85037dbSmrg srcdir=. 1362b85037dbSmrgfi 1363b85037dbSmrg# Remove unnecessary trailing slashes from srcdir. 1364b85037dbSmrg# Double slashes in file names in object file debugging info 1365b85037dbSmrg# mess up M-x gdb in Emacs. 1366b85037dbSmrgcase $srcdir in 1367b85037dbSmrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1368b85037dbSmrgesac 1369b85037dbSmrgfor ac_var in $ac_precious_vars; do 1370b85037dbSmrg eval ac_env_${ac_var}_set=\${${ac_var}+set} 1371b85037dbSmrg eval ac_env_${ac_var}_value=\$${ac_var} 1372b85037dbSmrg eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1373b85037dbSmrg eval ac_cv_env_${ac_var}_value=\$${ac_var} 1374b85037dbSmrgdone 1375b85037dbSmrg 1376b85037dbSmrg# 1377b85037dbSmrg# Report the --help message. 1378b85037dbSmrg# 1379b85037dbSmrgif test "$ac_init_help" = "long"; then 1380b85037dbSmrg # Omit some internal or obsolete options to make the list less imposing. 1381b85037dbSmrg # This message is too long to be a string in the A/UX 3.1 sh. 1382b85037dbSmrg cat <<_ACEOF 138328515619Smrg\`configure' configures xf86-input-synaptics 1.7.1 to adapt to many kinds of systems. 1384b85037dbSmrg 1385b85037dbSmrgUsage: $0 [OPTION]... [VAR=VALUE]... 1386b85037dbSmrg 1387b85037dbSmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as 1388b85037dbSmrgVAR=VALUE. See below for descriptions of some of the useful variables. 1389b85037dbSmrg 1390b85037dbSmrgDefaults for the options are specified in brackets. 1391b85037dbSmrg 1392b85037dbSmrgConfiguration: 1393b85037dbSmrg -h, --help display this help and exit 1394b85037dbSmrg --help=short display options specific to this package 1395b85037dbSmrg --help=recursive display the short help of all the included packages 1396b85037dbSmrg -V, --version display version information and exit 1397b85037dbSmrg -q, --quiet, --silent do not print \`checking ...' messages 1398b85037dbSmrg --cache-file=FILE cache test results in FILE [disabled] 1399b85037dbSmrg -C, --config-cache alias for \`--cache-file=config.cache' 1400b85037dbSmrg -n, --no-create do not create output files 1401b85037dbSmrg --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1402b85037dbSmrg 1403b85037dbSmrgInstallation directories: 1404b85037dbSmrg --prefix=PREFIX install architecture-independent files in PREFIX 1405b85037dbSmrg [$ac_default_prefix] 1406b85037dbSmrg --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1407b85037dbSmrg [PREFIX] 1408b85037dbSmrg 1409b85037dbSmrgBy default, \`make install' will install all the files in 1410b85037dbSmrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1411b85037dbSmrgan installation prefix other than \`$ac_default_prefix' using \`--prefix', 1412b85037dbSmrgfor instance \`--prefix=\$HOME'. 1413b85037dbSmrg 1414b85037dbSmrgFor better control, use the options below. 1415b85037dbSmrg 1416b85037dbSmrgFine tuning of the installation directories: 1417b85037dbSmrg --bindir=DIR user executables [EPREFIX/bin] 1418b85037dbSmrg --sbindir=DIR system admin executables [EPREFIX/sbin] 1419b85037dbSmrg --libexecdir=DIR program executables [EPREFIX/libexec] 1420b85037dbSmrg --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1421b85037dbSmrg --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1422b85037dbSmrg --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1423b85037dbSmrg --libdir=DIR object code libraries [EPREFIX/lib] 1424b85037dbSmrg --includedir=DIR C header files [PREFIX/include] 1425b85037dbSmrg --oldincludedir=DIR C header files for non-gcc [/usr/include] 1426b85037dbSmrg --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1427b85037dbSmrg --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1428b85037dbSmrg --infodir=DIR info documentation [DATAROOTDIR/info] 1429b85037dbSmrg --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1430b85037dbSmrg --mandir=DIR man documentation [DATAROOTDIR/man] 1431b85037dbSmrg --docdir=DIR documentation root 1432b85037dbSmrg [DATAROOTDIR/doc/xf86-input-synaptics] 1433b85037dbSmrg --htmldir=DIR html documentation [DOCDIR] 1434b85037dbSmrg --dvidir=DIR dvi documentation [DOCDIR] 1435b85037dbSmrg --pdfdir=DIR pdf documentation [DOCDIR] 1436b85037dbSmrg --psdir=DIR ps documentation [DOCDIR] 1437b85037dbSmrg_ACEOF 1438b85037dbSmrg 1439b85037dbSmrg cat <<\_ACEOF 1440b85037dbSmrg 1441b85037dbSmrgProgram names: 1442b85037dbSmrg --program-prefix=PREFIX prepend PREFIX to installed program names 1443b85037dbSmrg --program-suffix=SUFFIX append SUFFIX to installed program names 1444b85037dbSmrg --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1445b85037dbSmrg 1446b85037dbSmrgSystem types: 1447b85037dbSmrg --build=BUILD configure for building on BUILD [guessed] 1448b85037dbSmrg --host=HOST cross-compile to build programs to run on HOST [BUILD] 1449b85037dbSmrg_ACEOF 1450b85037dbSmrgfi 1451b85037dbSmrg 1452b85037dbSmrgif test -n "$ac_init_help"; then 1453b85037dbSmrg case $ac_init_help in 145428515619Smrg short | recursive ) echo "Configuration of xf86-input-synaptics 1.7.1:";; 1455b85037dbSmrg esac 1456b85037dbSmrg cat <<\_ACEOF 1457b85037dbSmrg 1458b85037dbSmrgOptional Features: 1459b85037dbSmrg --disable-option-checking ignore unrecognized --enable/--with options 1460b85037dbSmrg --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1461b85037dbSmrg --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 146228515619Smrg --enable-maintainer-mode 146328515619Smrg enable make rules and dependencies not useful (and 146428515619Smrg sometimes confusing) to the casual installer 1465b85037dbSmrg --enable-static[=PKGS] build static libraries [default=no] 1466b85037dbSmrg --enable-shared[=PKGS] build shared libraries [default=yes] 1467b85037dbSmrg --enable-fast-install[=PKGS] 1468b85037dbSmrg optimize for fast installation [default=yes] 146928515619Smrg --enable-dependency-tracking 147028515619Smrg do not reject slow dependency extractors 147128515619Smrg --disable-dependency-tracking 147228515619Smrg speeds up one-time build 1473b85037dbSmrg --disable-libtool-lock avoid locking (might break parallel builds) 147428515619Smrg --disable-selective-werror 147528515619Smrg Turn off selective compiler errors. (default: 147628515619Smrg enabled) 1477b85037dbSmrg --enable-strict-compilation 1478b85037dbSmrg Enable all warnings from compiler and make them 1479b85037dbSmrg errors (default: disabled) 148028515619Smrg --enable-silent-rules less verbose build output (undo: "make V=1") 148128515619Smrg --disable-silent-rules verbose build output (undo: "make V=0") 148228515619Smrg --enable-unit-tests Enable building unit test cases (default: auto) 1483b85037dbSmrg --enable-debug Enable debugging (default: disabled) 1484b85037dbSmrg 1485b85037dbSmrgOptional Packages: 1486b85037dbSmrg --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1487b85037dbSmrg --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 148828515619Smrg --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1489b85037dbSmrg both] 1490b85037dbSmrg --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1491302b15bdSmrg --with-sysroot=DIR Search for dependent libraries within DIR 1492302b15bdSmrg (or the compiler's sysroot if not specified). 1493b85037dbSmrg --with-xorg-module-dir=DIR 1494b85037dbSmrg Default xorg module directory 1495b85037dbSmrg [[default=$libdir/xorg/modules]] 1496b85037dbSmrg --with-xorg-conf-dir=DIR 1497b85037dbSmrg Default xorg.conf.d directory [[default=from 1498b85037dbSmrg $PKG_CONFIG xorg-server]] 1499b85037dbSmrg 150028515619Smrg 1501b85037dbSmrgSome influential environment variables: 1502b85037dbSmrg CC C compiler command 1503b85037dbSmrg CFLAGS C compiler flags 1504b85037dbSmrg LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1505b85037dbSmrg nonstandard directory <lib dir> 1506b85037dbSmrg LIBS libraries to pass to the linker, e.g. -l<library> 1507b85037dbSmrg CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1508b85037dbSmrg you have headers in a nonstandard directory <include dir> 1509b85037dbSmrg CPP C preprocessor 1510b85037dbSmrg PKG_CONFIG path to pkg-config utility 1511b85037dbSmrg PKG_CONFIG_PATH 1512b85037dbSmrg directories to add to pkg-config's search path 1513b85037dbSmrg PKG_CONFIG_LIBDIR 1514b85037dbSmrg path overriding pkg-config's built-in search path 151528515619Smrg XORG_MALLOC_DEBUG_ENV 151628515619Smrg Environment variables to enable memory checking in tests 1517b85037dbSmrg XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1518b85037dbSmrg XORG_LIBS linker flags for XORG, overriding pkg-config 151928515619Smrg MTDEV_CFLAGS 152028515619Smrg C compiler flags for MTDEV, overriding pkg-config 152128515619Smrg MTDEV_LIBS linker flags for MTDEV, overriding pkg-config 1522b85037dbSmrg XI_CFLAGS C compiler flags for XI, overriding pkg-config 1523b85037dbSmrg XI_LIBS linker flags for XI, overriding pkg-config 1524b85037dbSmrg XTST_CFLAGS C compiler flags for XTST, overriding pkg-config 1525b85037dbSmrg XTST_LIBS linker flags for XTST, overriding pkg-config 1526b85037dbSmrg 1527b85037dbSmrgUse these variables to override the choices made by `configure' or to help 1528b85037dbSmrgit to find libraries and programs with nonstandard names/locations. 1529b85037dbSmrg 1530b85037dbSmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1531b85037dbSmrg_ACEOF 1532b85037dbSmrgac_status=$? 1533b85037dbSmrgfi 1534b85037dbSmrg 1535b85037dbSmrgif test "$ac_init_help" = "recursive"; then 1536b85037dbSmrg # If there are subdirs, report their specific --help. 1537b85037dbSmrg for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1538b85037dbSmrg test -d "$ac_dir" || 1539b85037dbSmrg { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1540b85037dbSmrg continue 1541b85037dbSmrg ac_builddir=. 1542b85037dbSmrg 1543b85037dbSmrgcase "$ac_dir" in 1544b85037dbSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1545b85037dbSmrg*) 1546b85037dbSmrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1547b85037dbSmrg # A ".." for each directory in $ac_dir_suffix. 1548b85037dbSmrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1549b85037dbSmrg case $ac_top_builddir_sub in 1550b85037dbSmrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1551b85037dbSmrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1552b85037dbSmrg esac ;; 1553b85037dbSmrgesac 1554b85037dbSmrgac_abs_top_builddir=$ac_pwd 1555b85037dbSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix 1556b85037dbSmrg# for backward compatibility: 1557b85037dbSmrgac_top_builddir=$ac_top_build_prefix 1558b85037dbSmrg 1559b85037dbSmrgcase $srcdir in 1560b85037dbSmrg .) # We are building in place. 1561b85037dbSmrg ac_srcdir=. 1562b85037dbSmrg ac_top_srcdir=$ac_top_builddir_sub 1563b85037dbSmrg ac_abs_top_srcdir=$ac_pwd ;; 1564b85037dbSmrg [\\/]* | ?:[\\/]* ) # Absolute name. 1565b85037dbSmrg ac_srcdir=$srcdir$ac_dir_suffix; 1566b85037dbSmrg ac_top_srcdir=$srcdir 1567b85037dbSmrg ac_abs_top_srcdir=$srcdir ;; 1568b85037dbSmrg *) # Relative name. 1569b85037dbSmrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1570b85037dbSmrg ac_top_srcdir=$ac_top_build_prefix$srcdir 1571b85037dbSmrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1572b85037dbSmrgesac 1573b85037dbSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1574b85037dbSmrg 1575b85037dbSmrg cd "$ac_dir" || { ac_status=$?; continue; } 1576b85037dbSmrg # Check for guested configure. 1577b85037dbSmrg if test -f "$ac_srcdir/configure.gnu"; then 1578b85037dbSmrg echo && 1579b85037dbSmrg $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1580b85037dbSmrg elif test -f "$ac_srcdir/configure"; then 1581b85037dbSmrg echo && 1582b85037dbSmrg $SHELL "$ac_srcdir/configure" --help=recursive 1583b85037dbSmrg else 1584b85037dbSmrg $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1585b85037dbSmrg fi || ac_status=$? 1586b85037dbSmrg cd "$ac_pwd" || { ac_status=$?; break; } 1587b85037dbSmrg done 1588b85037dbSmrgfi 1589b85037dbSmrg 1590b85037dbSmrgtest -n "$ac_init_help" && exit $ac_status 1591b85037dbSmrgif $ac_init_version; then 1592b85037dbSmrg cat <<\_ACEOF 159328515619Smrgxf86-input-synaptics configure 1.7.1 159428515619Smrggenerated by GNU Autoconf 2.69 1595b85037dbSmrg 159628515619SmrgCopyright (C) 2012 Free Software Foundation, Inc. 1597b85037dbSmrgThis configure script is free software; the Free Software Foundation 1598b85037dbSmrggives unlimited permission to copy, distribute and modify it. 1599b85037dbSmrg_ACEOF 1600b85037dbSmrg exit 1601b85037dbSmrgfi 1602b85037dbSmrg 1603b85037dbSmrg## ------------------------ ## 1604b85037dbSmrg## Autoconf initialization. ## 1605b85037dbSmrg## ------------------------ ## 1606b85037dbSmrg 1607b85037dbSmrg# ac_fn_c_try_compile LINENO 1608b85037dbSmrg# -------------------------- 1609b85037dbSmrg# Try to compile conftest.$ac_ext, and return whether this succeeded. 1610b85037dbSmrgac_fn_c_try_compile () 1611b85037dbSmrg{ 1612b85037dbSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1613b85037dbSmrg rm -f conftest.$ac_objext 1614b85037dbSmrg if { { ac_try="$ac_compile" 1615b85037dbSmrgcase "(($ac_try" in 1616b85037dbSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1617b85037dbSmrg *) ac_try_echo=$ac_try;; 1618b85037dbSmrgesac 1619b85037dbSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1620b85037dbSmrg$as_echo "$ac_try_echo"; } >&5 1621b85037dbSmrg (eval "$ac_compile") 2>conftest.err 1622b85037dbSmrg ac_status=$? 1623b85037dbSmrg if test -s conftest.err; then 1624b85037dbSmrg grep -v '^ *+' conftest.err >conftest.er1 1625b85037dbSmrg cat conftest.er1 >&5 1626b85037dbSmrg mv -f conftest.er1 conftest.err 1627b85037dbSmrg fi 1628b85037dbSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1629b85037dbSmrg test $ac_status = 0; } && { 1630b85037dbSmrg test -z "$ac_c_werror_flag" || 1631b85037dbSmrg test ! -s conftest.err 1632b85037dbSmrg } && test -s conftest.$ac_objext; then : 1633b85037dbSmrg ac_retval=0 1634b85037dbSmrgelse 1635b85037dbSmrg $as_echo "$as_me: failed program was:" >&5 1636b85037dbSmrgsed 's/^/| /' conftest.$ac_ext >&5 1637b85037dbSmrg 1638b85037dbSmrg ac_retval=1 1639b85037dbSmrgfi 1640302b15bdSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1641b85037dbSmrg as_fn_set_status $ac_retval 1642b85037dbSmrg 1643b85037dbSmrg} # ac_fn_c_try_compile 1644b85037dbSmrg 1645b85037dbSmrg# ac_fn_c_try_link LINENO 1646b85037dbSmrg# ----------------------- 1647b85037dbSmrg# Try to link conftest.$ac_ext, and return whether this succeeded. 1648b85037dbSmrgac_fn_c_try_link () 1649b85037dbSmrg{ 1650b85037dbSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1651b85037dbSmrg rm -f conftest.$ac_objext conftest$ac_exeext 1652b85037dbSmrg if { { ac_try="$ac_link" 1653b85037dbSmrgcase "(($ac_try" in 1654b85037dbSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1655b85037dbSmrg *) ac_try_echo=$ac_try;; 1656b85037dbSmrgesac 1657b85037dbSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1658b85037dbSmrg$as_echo "$ac_try_echo"; } >&5 1659b85037dbSmrg (eval "$ac_link") 2>conftest.err 1660b85037dbSmrg ac_status=$? 1661b85037dbSmrg if test -s conftest.err; then 1662b85037dbSmrg grep -v '^ *+' conftest.err >conftest.er1 1663b85037dbSmrg cat conftest.er1 >&5 1664b85037dbSmrg mv -f conftest.er1 conftest.err 1665b85037dbSmrg fi 1666b85037dbSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1667b85037dbSmrg test $ac_status = 0; } && { 1668b85037dbSmrg test -z "$ac_c_werror_flag" || 1669b85037dbSmrg test ! -s conftest.err 1670b85037dbSmrg } && test -s conftest$ac_exeext && { 1671b85037dbSmrg test "$cross_compiling" = yes || 167228515619Smrg test -x conftest$ac_exeext 1673b85037dbSmrg }; then : 1674b85037dbSmrg ac_retval=0 1675b85037dbSmrgelse 1676b85037dbSmrg $as_echo "$as_me: failed program was:" >&5 1677b85037dbSmrgsed 's/^/| /' conftest.$ac_ext >&5 1678b85037dbSmrg 1679b85037dbSmrg ac_retval=1 1680b85037dbSmrgfi 1681b85037dbSmrg # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1682b85037dbSmrg # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1683b85037dbSmrg # interfere with the next link command; also delete a directory that is 1684b85037dbSmrg # left behind by Apple's compiler. We do this before executing the actions. 1685b85037dbSmrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1686302b15bdSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1687b85037dbSmrg as_fn_set_status $ac_retval 1688b85037dbSmrg 1689b85037dbSmrg} # ac_fn_c_try_link 1690b85037dbSmrg 1691b85037dbSmrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1692b85037dbSmrg# ------------------------------------------------------- 1693b85037dbSmrg# Tests whether HEADER exists and can be compiled using the include files in 1694b85037dbSmrg# INCLUDES, setting the cache variable VAR accordingly. 1695b85037dbSmrgac_fn_c_check_header_compile () 1696b85037dbSmrg{ 1697b85037dbSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1698b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1699b85037dbSmrg$as_echo_n "checking for $2... " >&6; } 1700302b15bdSmrgif eval \${$3+:} false; then : 1701b85037dbSmrg $as_echo_n "(cached) " >&6 1702b85037dbSmrgelse 1703b85037dbSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1704b85037dbSmrg/* end confdefs.h. */ 1705b85037dbSmrg$4 1706b85037dbSmrg#include <$2> 1707b85037dbSmrg_ACEOF 1708b85037dbSmrgif ac_fn_c_try_compile "$LINENO"; then : 1709b85037dbSmrg eval "$3=yes" 1710b85037dbSmrgelse 1711b85037dbSmrg eval "$3=no" 1712b85037dbSmrgfi 1713b85037dbSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1714b85037dbSmrgfi 1715b85037dbSmrgeval ac_res=\$$3 1716b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1717b85037dbSmrg$as_echo "$ac_res" >&6; } 1718302b15bdSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1719b85037dbSmrg 1720b85037dbSmrg} # ac_fn_c_check_header_compile 1721b85037dbSmrg 1722b85037dbSmrg# ac_fn_c_try_cpp LINENO 1723b85037dbSmrg# ---------------------- 1724b85037dbSmrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1725b85037dbSmrgac_fn_c_try_cpp () 1726b85037dbSmrg{ 1727b85037dbSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1728b85037dbSmrg if { { ac_try="$ac_cpp conftest.$ac_ext" 1729b85037dbSmrgcase "(($ac_try" in 1730b85037dbSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1731b85037dbSmrg *) ac_try_echo=$ac_try;; 1732b85037dbSmrgesac 1733b85037dbSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1734b85037dbSmrg$as_echo "$ac_try_echo"; } >&5 1735b85037dbSmrg (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1736b85037dbSmrg ac_status=$? 1737b85037dbSmrg if test -s conftest.err; then 1738b85037dbSmrg grep -v '^ *+' conftest.err >conftest.er1 1739b85037dbSmrg cat conftest.er1 >&5 1740b85037dbSmrg mv -f conftest.er1 conftest.err 1741b85037dbSmrg fi 1742b85037dbSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1743302b15bdSmrg test $ac_status = 0; } > conftest.i && { 1744b85037dbSmrg test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1745b85037dbSmrg test ! -s conftest.err 1746b85037dbSmrg }; then : 1747b85037dbSmrg ac_retval=0 1748b85037dbSmrgelse 1749b85037dbSmrg $as_echo "$as_me: failed program was:" >&5 1750b85037dbSmrgsed 's/^/| /' conftest.$ac_ext >&5 1751b85037dbSmrg 1752b85037dbSmrg ac_retval=1 1753b85037dbSmrgfi 1754302b15bdSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1755b85037dbSmrg as_fn_set_status $ac_retval 1756b85037dbSmrg 1757b85037dbSmrg} # ac_fn_c_try_cpp 1758b85037dbSmrg 1759b85037dbSmrg# ac_fn_c_try_run LINENO 1760b85037dbSmrg# ---------------------- 1761b85037dbSmrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1762b85037dbSmrg# that executables *can* be run. 1763b85037dbSmrgac_fn_c_try_run () 1764b85037dbSmrg{ 1765b85037dbSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1766b85037dbSmrg if { { ac_try="$ac_link" 1767b85037dbSmrgcase "(($ac_try" in 1768b85037dbSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1769b85037dbSmrg *) ac_try_echo=$ac_try;; 1770b85037dbSmrgesac 1771b85037dbSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1772b85037dbSmrg$as_echo "$ac_try_echo"; } >&5 1773b85037dbSmrg (eval "$ac_link") 2>&5 1774b85037dbSmrg ac_status=$? 1775b85037dbSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1776b85037dbSmrg test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1777b85037dbSmrg { { case "(($ac_try" in 1778b85037dbSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1779b85037dbSmrg *) ac_try_echo=$ac_try;; 1780b85037dbSmrgesac 1781b85037dbSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1782b85037dbSmrg$as_echo "$ac_try_echo"; } >&5 1783b85037dbSmrg (eval "$ac_try") 2>&5 1784b85037dbSmrg ac_status=$? 1785b85037dbSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1786b85037dbSmrg test $ac_status = 0; }; }; then : 1787b85037dbSmrg ac_retval=0 1788b85037dbSmrgelse 1789b85037dbSmrg $as_echo "$as_me: program exited with status $ac_status" >&5 1790b85037dbSmrg $as_echo "$as_me: failed program was:" >&5 1791b85037dbSmrgsed 's/^/| /' conftest.$ac_ext >&5 1792b85037dbSmrg 1793b85037dbSmrg ac_retval=$ac_status 1794b85037dbSmrgfi 1795b85037dbSmrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1796302b15bdSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1797b85037dbSmrg as_fn_set_status $ac_retval 1798b85037dbSmrg 1799b85037dbSmrg} # ac_fn_c_try_run 1800b85037dbSmrg 1801b85037dbSmrg# ac_fn_c_check_func LINENO FUNC VAR 1802b85037dbSmrg# ---------------------------------- 1803b85037dbSmrg# Tests whether FUNC exists, setting the cache variable VAR accordingly 1804b85037dbSmrgac_fn_c_check_func () 1805b85037dbSmrg{ 1806b85037dbSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1807b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1808b85037dbSmrg$as_echo_n "checking for $2... " >&6; } 1809302b15bdSmrgif eval \${$3+:} false; then : 1810b85037dbSmrg $as_echo_n "(cached) " >&6 1811b85037dbSmrgelse 1812b85037dbSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1813b85037dbSmrg/* end confdefs.h. */ 1814b85037dbSmrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1815b85037dbSmrg For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1816b85037dbSmrg#define $2 innocuous_$2 1817b85037dbSmrg 1818b85037dbSmrg/* System header to define __stub macros and hopefully few prototypes, 1819b85037dbSmrg which can conflict with char $2 (); below. 1820b85037dbSmrg Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1821b85037dbSmrg <limits.h> exists even on freestanding compilers. */ 1822b85037dbSmrg 1823b85037dbSmrg#ifdef __STDC__ 1824b85037dbSmrg# include <limits.h> 1825b85037dbSmrg#else 1826b85037dbSmrg# include <assert.h> 1827b85037dbSmrg#endif 1828b85037dbSmrg 1829b85037dbSmrg#undef $2 1830b85037dbSmrg 1831b85037dbSmrg/* Override any GCC internal prototype to avoid an error. 1832b85037dbSmrg Use char because int might match the return type of a GCC 1833b85037dbSmrg builtin and then its argument prototype would still apply. */ 1834b85037dbSmrg#ifdef __cplusplus 1835b85037dbSmrgextern "C" 1836b85037dbSmrg#endif 1837b85037dbSmrgchar $2 (); 1838b85037dbSmrg/* The GNU C library defines this for functions which it implements 1839b85037dbSmrg to always fail with ENOSYS. Some functions are actually named 1840b85037dbSmrg something starting with __ and the normal name is an alias. */ 1841b85037dbSmrg#if defined __stub_$2 || defined __stub___$2 1842b85037dbSmrgchoke me 1843b85037dbSmrg#endif 1844b85037dbSmrg 1845b85037dbSmrgint 1846b85037dbSmrgmain () 1847b85037dbSmrg{ 1848b85037dbSmrgreturn $2 (); 1849b85037dbSmrg ; 1850b85037dbSmrg return 0; 1851b85037dbSmrg} 1852b85037dbSmrg_ACEOF 1853b85037dbSmrgif ac_fn_c_try_link "$LINENO"; then : 1854b85037dbSmrg eval "$3=yes" 1855b85037dbSmrgelse 1856b85037dbSmrg eval "$3=no" 1857b85037dbSmrgfi 1858b85037dbSmrgrm -f core conftest.err conftest.$ac_objext \ 1859b85037dbSmrg conftest$ac_exeext conftest.$ac_ext 1860b85037dbSmrgfi 1861b85037dbSmrgeval ac_res=\$$3 1862b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1863b85037dbSmrg$as_echo "$ac_res" >&6; } 1864302b15bdSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1865b85037dbSmrg 1866b85037dbSmrg} # ac_fn_c_check_func 1867b85037dbSmrg 1868b85037dbSmrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1869b85037dbSmrg# --------------------------------------------- 1870b85037dbSmrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1871b85037dbSmrg# accordingly. 1872b85037dbSmrgac_fn_c_check_decl () 1873b85037dbSmrg{ 1874b85037dbSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1875b85037dbSmrg as_decl_name=`echo $2|sed 's/ *(.*//'` 1876b85037dbSmrg as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1877b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1878b85037dbSmrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1879302b15bdSmrgif eval \${$3+:} false; then : 1880b85037dbSmrg $as_echo_n "(cached) " >&6 1881b85037dbSmrgelse 1882b85037dbSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1883b85037dbSmrg/* end confdefs.h. */ 1884b85037dbSmrg$4 1885b85037dbSmrgint 1886b85037dbSmrgmain () 1887b85037dbSmrg{ 1888b85037dbSmrg#ifndef $as_decl_name 1889b85037dbSmrg#ifdef __cplusplus 1890b85037dbSmrg (void) $as_decl_use; 1891b85037dbSmrg#else 1892b85037dbSmrg (void) $as_decl_name; 1893b85037dbSmrg#endif 1894b85037dbSmrg#endif 1895b85037dbSmrg 1896b85037dbSmrg ; 1897b85037dbSmrg return 0; 1898b85037dbSmrg} 1899b85037dbSmrg_ACEOF 1900b85037dbSmrgif ac_fn_c_try_compile "$LINENO"; then : 1901b85037dbSmrg eval "$3=yes" 1902b85037dbSmrgelse 1903b85037dbSmrg eval "$3=no" 1904b85037dbSmrgfi 1905b85037dbSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1906b85037dbSmrgfi 1907b85037dbSmrgeval ac_res=\$$3 1908b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1909b85037dbSmrg$as_echo "$ac_res" >&6; } 1910302b15bdSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1911b85037dbSmrg 1912b85037dbSmrg} # ac_fn_c_check_decl 1913b85037dbSmrgcat >config.log <<_ACEOF 1914b85037dbSmrgThis file contains any messages produced by compilers while 1915b85037dbSmrgrunning configure, to aid debugging if configure makes a mistake. 1916b85037dbSmrg 191728515619SmrgIt was created by xf86-input-synaptics $as_me 1.7.1, which was 191828515619Smrggenerated by GNU Autoconf 2.69. Invocation command line was 1919b85037dbSmrg 1920b85037dbSmrg $ $0 $@ 1921b85037dbSmrg 1922b85037dbSmrg_ACEOF 1923b85037dbSmrgexec 5>>config.log 1924b85037dbSmrg{ 1925b85037dbSmrgcat <<_ASUNAME 1926b85037dbSmrg## --------- ## 1927b85037dbSmrg## Platform. ## 1928b85037dbSmrg## --------- ## 1929b85037dbSmrg 1930b85037dbSmrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1931b85037dbSmrguname -m = `(uname -m) 2>/dev/null || echo unknown` 1932b85037dbSmrguname -r = `(uname -r) 2>/dev/null || echo unknown` 1933b85037dbSmrguname -s = `(uname -s) 2>/dev/null || echo unknown` 1934b85037dbSmrguname -v = `(uname -v) 2>/dev/null || echo unknown` 1935b85037dbSmrg 1936b85037dbSmrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1937b85037dbSmrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1938b85037dbSmrg 1939b85037dbSmrg/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1940b85037dbSmrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1941b85037dbSmrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1942b85037dbSmrg/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1943b85037dbSmrg/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1944b85037dbSmrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1945b85037dbSmrg/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1946b85037dbSmrg 1947b85037dbSmrg_ASUNAME 1948b85037dbSmrg 1949b85037dbSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1950b85037dbSmrgfor as_dir in $PATH 1951b85037dbSmrgdo 1952b85037dbSmrg IFS=$as_save_IFS 1953b85037dbSmrg test -z "$as_dir" && as_dir=. 1954b85037dbSmrg $as_echo "PATH: $as_dir" 1955b85037dbSmrg done 1956b85037dbSmrgIFS=$as_save_IFS 1957b85037dbSmrg 1958b85037dbSmrg} >&5 1959b85037dbSmrg 1960b85037dbSmrgcat >&5 <<_ACEOF 1961b85037dbSmrg 1962b85037dbSmrg 1963b85037dbSmrg## ----------- ## 1964b85037dbSmrg## Core tests. ## 1965b85037dbSmrg## ----------- ## 1966b85037dbSmrg 1967b85037dbSmrg_ACEOF 1968b85037dbSmrg 1969b85037dbSmrg 1970b85037dbSmrg# Keep a trace of the command line. 1971b85037dbSmrg# Strip out --no-create and --no-recursion so they do not pile up. 1972b85037dbSmrg# Strip out --silent because we don't want to record it for future runs. 1973b85037dbSmrg# Also quote any args containing shell meta-characters. 1974b85037dbSmrg# Make two passes to allow for proper duplicate-argument suppression. 1975b85037dbSmrgac_configure_args= 1976b85037dbSmrgac_configure_args0= 1977b85037dbSmrgac_configure_args1= 1978b85037dbSmrgac_must_keep_next=false 1979b85037dbSmrgfor ac_pass in 1 2 1980b85037dbSmrgdo 1981b85037dbSmrg for ac_arg 1982b85037dbSmrg do 1983b85037dbSmrg case $ac_arg in 1984b85037dbSmrg -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1985b85037dbSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1986b85037dbSmrg | -silent | --silent | --silen | --sile | --sil) 1987b85037dbSmrg continue ;; 1988b85037dbSmrg *\'*) 1989b85037dbSmrg ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1990b85037dbSmrg esac 1991b85037dbSmrg case $ac_pass in 1992b85037dbSmrg 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1993b85037dbSmrg 2) 1994b85037dbSmrg as_fn_append ac_configure_args1 " '$ac_arg'" 1995b85037dbSmrg if test $ac_must_keep_next = true; then 1996b85037dbSmrg ac_must_keep_next=false # Got value, back to normal. 1997b85037dbSmrg else 1998b85037dbSmrg case $ac_arg in 1999b85037dbSmrg *=* | --config-cache | -C | -disable-* | --disable-* \ 2000b85037dbSmrg | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2001b85037dbSmrg | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2002b85037dbSmrg | -with-* | --with-* | -without-* | --without-* | --x) 2003b85037dbSmrg case "$ac_configure_args0 " in 2004b85037dbSmrg "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2005b85037dbSmrg esac 2006b85037dbSmrg ;; 2007b85037dbSmrg -* ) ac_must_keep_next=true ;; 2008b85037dbSmrg esac 2009b85037dbSmrg fi 2010b85037dbSmrg as_fn_append ac_configure_args " '$ac_arg'" 2011b85037dbSmrg ;; 2012b85037dbSmrg esac 2013b85037dbSmrg done 2014b85037dbSmrgdone 2015b85037dbSmrg{ ac_configure_args0=; unset ac_configure_args0;} 2016b85037dbSmrg{ ac_configure_args1=; unset ac_configure_args1;} 2017b85037dbSmrg 2018b85037dbSmrg# When interrupted or exit'd, cleanup temporary files, and complete 2019b85037dbSmrg# config.log. We remove comments because anyway the quotes in there 2020b85037dbSmrg# would cause problems or look ugly. 2021b85037dbSmrg# WARNING: Use '\'' to represent an apostrophe within the trap. 2022b85037dbSmrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2023b85037dbSmrgtrap 'exit_status=$? 2024b85037dbSmrg # Save into config.log some information that might help in debugging. 2025b85037dbSmrg { 2026b85037dbSmrg echo 2027b85037dbSmrg 2028b85037dbSmrg $as_echo "## ---------------- ## 2029b85037dbSmrg## Cache variables. ## 2030b85037dbSmrg## ---------------- ##" 2031b85037dbSmrg echo 2032b85037dbSmrg # The following way of writing the cache mishandles newlines in values, 2033b85037dbSmrg( 2034b85037dbSmrg for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2035b85037dbSmrg eval ac_val=\$$ac_var 2036b85037dbSmrg case $ac_val in #( 2037b85037dbSmrg *${as_nl}*) 2038b85037dbSmrg case $ac_var in #( 2039b85037dbSmrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2040b85037dbSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2041b85037dbSmrg esac 2042b85037dbSmrg case $ac_var in #( 2043b85037dbSmrg _ | IFS | as_nl) ;; #( 2044b85037dbSmrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2045b85037dbSmrg *) { eval $ac_var=; unset $ac_var;} ;; 2046b85037dbSmrg esac ;; 2047b85037dbSmrg esac 2048b85037dbSmrg done 2049b85037dbSmrg (set) 2>&1 | 2050b85037dbSmrg case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2051b85037dbSmrg *${as_nl}ac_space=\ *) 2052b85037dbSmrg sed -n \ 2053b85037dbSmrg "s/'\''/'\''\\\\'\'''\''/g; 2054b85037dbSmrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2055b85037dbSmrg ;; #( 2056b85037dbSmrg *) 2057b85037dbSmrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2058b85037dbSmrg ;; 2059b85037dbSmrg esac | 2060b85037dbSmrg sort 2061b85037dbSmrg) 2062b85037dbSmrg echo 2063b85037dbSmrg 2064b85037dbSmrg $as_echo "## ----------------- ## 2065b85037dbSmrg## Output variables. ## 2066b85037dbSmrg## ----------------- ##" 2067b85037dbSmrg echo 2068b85037dbSmrg for ac_var in $ac_subst_vars 2069b85037dbSmrg do 2070b85037dbSmrg eval ac_val=\$$ac_var 2071b85037dbSmrg case $ac_val in 2072b85037dbSmrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2073b85037dbSmrg esac 2074b85037dbSmrg $as_echo "$ac_var='\''$ac_val'\''" 2075b85037dbSmrg done | sort 2076b85037dbSmrg echo 2077b85037dbSmrg 2078b85037dbSmrg if test -n "$ac_subst_files"; then 2079b85037dbSmrg $as_echo "## ------------------- ## 2080b85037dbSmrg## File substitutions. ## 2081b85037dbSmrg## ------------------- ##" 2082b85037dbSmrg echo 2083b85037dbSmrg for ac_var in $ac_subst_files 2084b85037dbSmrg do 2085b85037dbSmrg eval ac_val=\$$ac_var 2086b85037dbSmrg case $ac_val in 2087b85037dbSmrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2088b85037dbSmrg esac 2089b85037dbSmrg $as_echo "$ac_var='\''$ac_val'\''" 2090b85037dbSmrg done | sort 2091b85037dbSmrg echo 2092b85037dbSmrg fi 2093b85037dbSmrg 2094b85037dbSmrg if test -s confdefs.h; then 2095b85037dbSmrg $as_echo "## ----------- ## 2096b85037dbSmrg## confdefs.h. ## 2097b85037dbSmrg## ----------- ##" 2098b85037dbSmrg echo 2099b85037dbSmrg cat confdefs.h 2100b85037dbSmrg echo 2101b85037dbSmrg fi 2102b85037dbSmrg test "$ac_signal" != 0 && 2103b85037dbSmrg $as_echo "$as_me: caught signal $ac_signal" 2104b85037dbSmrg $as_echo "$as_me: exit $exit_status" 2105b85037dbSmrg } >&5 2106b85037dbSmrg rm -f core *.core core.conftest.* && 2107b85037dbSmrg rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2108b85037dbSmrg exit $exit_status 2109b85037dbSmrg' 0 2110b85037dbSmrgfor ac_signal in 1 2 13 15; do 2111b85037dbSmrg trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2112b85037dbSmrgdone 2113b85037dbSmrgac_signal=0 2114b85037dbSmrg 2115b85037dbSmrg# confdefs.h avoids OS command line length limits that DEFS can exceed. 2116b85037dbSmrgrm -f -r conftest* confdefs.h 2117b85037dbSmrg 2118b85037dbSmrg$as_echo "/* confdefs.h */" > confdefs.h 2119b85037dbSmrg 2120b85037dbSmrg# Predefined preprocessor variables. 2121b85037dbSmrg 2122b85037dbSmrgcat >>confdefs.h <<_ACEOF 2123b85037dbSmrg#define PACKAGE_NAME "$PACKAGE_NAME" 2124b85037dbSmrg_ACEOF 2125b85037dbSmrg 2126b85037dbSmrgcat >>confdefs.h <<_ACEOF 2127b85037dbSmrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2128b85037dbSmrg_ACEOF 2129b85037dbSmrg 2130b85037dbSmrgcat >>confdefs.h <<_ACEOF 2131b85037dbSmrg#define PACKAGE_VERSION "$PACKAGE_VERSION" 2132b85037dbSmrg_ACEOF 2133b85037dbSmrg 2134b85037dbSmrgcat >>confdefs.h <<_ACEOF 2135b85037dbSmrg#define PACKAGE_STRING "$PACKAGE_STRING" 2136b85037dbSmrg_ACEOF 2137b85037dbSmrg 2138b85037dbSmrgcat >>confdefs.h <<_ACEOF 2139b85037dbSmrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2140b85037dbSmrg_ACEOF 2141b85037dbSmrg 2142b85037dbSmrgcat >>confdefs.h <<_ACEOF 2143b85037dbSmrg#define PACKAGE_URL "$PACKAGE_URL" 2144b85037dbSmrg_ACEOF 2145b85037dbSmrg 2146b85037dbSmrg 2147b85037dbSmrg# Let the site file select an alternate cache file if it wants to. 2148b85037dbSmrg# Prefer an explicitly selected file to automatically selected ones. 2149b85037dbSmrgac_site_file1=NONE 2150b85037dbSmrgac_site_file2=NONE 2151b85037dbSmrgif test -n "$CONFIG_SITE"; then 2152b85037dbSmrg # We do not want a PATH search for config.site. 2153b85037dbSmrg case $CONFIG_SITE in #(( 2154b85037dbSmrg -*) ac_site_file1=./$CONFIG_SITE;; 2155b85037dbSmrg */*) ac_site_file1=$CONFIG_SITE;; 2156b85037dbSmrg *) ac_site_file1=./$CONFIG_SITE;; 2157b85037dbSmrg esac 2158b85037dbSmrgelif test "x$prefix" != xNONE; then 2159b85037dbSmrg ac_site_file1=$prefix/share/config.site 2160b85037dbSmrg ac_site_file2=$prefix/etc/config.site 2161b85037dbSmrgelse 2162b85037dbSmrg ac_site_file1=$ac_default_prefix/share/config.site 2163b85037dbSmrg ac_site_file2=$ac_default_prefix/etc/config.site 2164b85037dbSmrgfi 2165b85037dbSmrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2" 2166b85037dbSmrgdo 2167b85037dbSmrg test "x$ac_site_file" = xNONE && continue 2168b85037dbSmrg if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2169b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2170b85037dbSmrg$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2171b85037dbSmrg sed 's/^/| /' "$ac_site_file" >&5 2172b85037dbSmrg . "$ac_site_file" \ 2173b85037dbSmrg || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2174b85037dbSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2175b85037dbSmrgas_fn_error $? "failed to load site script $ac_site_file 2176b85037dbSmrgSee \`config.log' for more details" "$LINENO" 5; } 2177b85037dbSmrg fi 2178b85037dbSmrgdone 2179b85037dbSmrg 2180b85037dbSmrgif test -r "$cache_file"; then 2181b85037dbSmrg # Some versions of bash will fail to source /dev/null (special files 2182b85037dbSmrg # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2183b85037dbSmrg if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2184b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2185b85037dbSmrg$as_echo "$as_me: loading cache $cache_file" >&6;} 2186b85037dbSmrg case $cache_file in 2187b85037dbSmrg [\\/]* | ?:[\\/]* ) . "$cache_file";; 2188b85037dbSmrg *) . "./$cache_file";; 2189b85037dbSmrg esac 2190b85037dbSmrg fi 2191b85037dbSmrgelse 2192b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2193b85037dbSmrg$as_echo "$as_me: creating cache $cache_file" >&6;} 2194b85037dbSmrg >$cache_file 2195b85037dbSmrgfi 2196b85037dbSmrg 2197b85037dbSmrg# Check that the precious variables saved in the cache have kept the same 2198b85037dbSmrg# value. 2199b85037dbSmrgac_cache_corrupted=false 2200b85037dbSmrgfor ac_var in $ac_precious_vars; do 2201b85037dbSmrg eval ac_old_set=\$ac_cv_env_${ac_var}_set 2202b85037dbSmrg eval ac_new_set=\$ac_env_${ac_var}_set 2203b85037dbSmrg eval ac_old_val=\$ac_cv_env_${ac_var}_value 2204b85037dbSmrg eval ac_new_val=\$ac_env_${ac_var}_value 2205b85037dbSmrg case $ac_old_set,$ac_new_set in 2206b85037dbSmrg set,) 2207b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2208b85037dbSmrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2209b85037dbSmrg ac_cache_corrupted=: ;; 2210b85037dbSmrg ,set) 2211b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2212b85037dbSmrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2213b85037dbSmrg ac_cache_corrupted=: ;; 2214b85037dbSmrg ,);; 2215b85037dbSmrg *) 2216b85037dbSmrg if test "x$ac_old_val" != "x$ac_new_val"; then 2217b85037dbSmrg # differences in whitespace do not lead to failure. 2218b85037dbSmrg ac_old_val_w=`echo x $ac_old_val` 2219b85037dbSmrg ac_new_val_w=`echo x $ac_new_val` 2220b85037dbSmrg if test "$ac_old_val_w" != "$ac_new_val_w"; then 2221b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2222b85037dbSmrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2223b85037dbSmrg ac_cache_corrupted=: 2224b85037dbSmrg else 2225b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2226b85037dbSmrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2227b85037dbSmrg eval $ac_var=\$ac_old_val 2228b85037dbSmrg fi 2229b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2230b85037dbSmrg$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2231b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2232b85037dbSmrg$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2233b85037dbSmrg fi;; 2234b85037dbSmrg esac 2235b85037dbSmrg # Pass precious variables to config.status. 2236b85037dbSmrg if test "$ac_new_set" = set; then 2237b85037dbSmrg case $ac_new_val in 2238b85037dbSmrg *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2239b85037dbSmrg *) ac_arg=$ac_var=$ac_new_val ;; 2240b85037dbSmrg esac 2241b85037dbSmrg case " $ac_configure_args " in 2242b85037dbSmrg *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2243b85037dbSmrg *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2244b85037dbSmrg esac 2245b85037dbSmrg fi 2246b85037dbSmrgdone 2247b85037dbSmrgif $ac_cache_corrupted; then 2248b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2249b85037dbSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2250b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2251b85037dbSmrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2252b85037dbSmrg as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2253b85037dbSmrgfi 2254b85037dbSmrg## -------------------- ## 2255b85037dbSmrg## Main body of script. ## 2256b85037dbSmrg## -------------------- ## 2257b85037dbSmrg 2258b85037dbSmrgac_ext=c 2259b85037dbSmrgac_cpp='$CPP $CPPFLAGS' 2260b85037dbSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2261b85037dbSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2262b85037dbSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 2263b85037dbSmrg 2264b85037dbSmrg 2265b85037dbSmrg 2266b85037dbSmrgac_config_headers="$ac_config_headers config.h" 2267b85037dbSmrg 2268b85037dbSmrgac_aux_dir= 2269b85037dbSmrgfor ac_dir in . "$srcdir"/.; do 2270b85037dbSmrg if test -f "$ac_dir/install-sh"; then 2271b85037dbSmrg ac_aux_dir=$ac_dir 2272b85037dbSmrg ac_install_sh="$ac_aux_dir/install-sh -c" 2273b85037dbSmrg break 2274b85037dbSmrg elif test -f "$ac_dir/install.sh"; then 2275b85037dbSmrg ac_aux_dir=$ac_dir 2276b85037dbSmrg ac_install_sh="$ac_aux_dir/install.sh -c" 2277b85037dbSmrg break 2278b85037dbSmrg elif test -f "$ac_dir/shtool"; then 2279b85037dbSmrg ac_aux_dir=$ac_dir 2280b85037dbSmrg ac_install_sh="$ac_aux_dir/shtool install -c" 2281b85037dbSmrg break 2282b85037dbSmrg fi 2283b85037dbSmrgdone 2284b85037dbSmrgif test -z "$ac_aux_dir"; then 2285b85037dbSmrg as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 2286b85037dbSmrgfi 2287b85037dbSmrg 2288b85037dbSmrg# These three variables are undocumented and unsupported, 2289b85037dbSmrg# and are intended to be withdrawn in a future Autoconf release. 2290b85037dbSmrg# They can cause serious problems if a builder's source tree is in a directory 2291b85037dbSmrg# whose full name contains unusual characters. 2292b85037dbSmrgac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2293b85037dbSmrgac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2294b85037dbSmrgac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2295b85037dbSmrg 2296b85037dbSmrg 2297b85037dbSmrg 2298b85037dbSmrg# Initialize Automake 229928515619Smrgam__api_version='1.12' 2300b85037dbSmrg 2301b85037dbSmrg# Find a good install program. We prefer a C program (faster), 2302b85037dbSmrg# so one script is as good as another. But avoid the broken or 2303b85037dbSmrg# incompatible versions: 2304b85037dbSmrg# SysV /etc/install, /usr/sbin/install 2305b85037dbSmrg# SunOS /usr/etc/install 2306b85037dbSmrg# IRIX /sbin/install 2307b85037dbSmrg# AIX /bin/install 2308b85037dbSmrg# AmigaOS /C/install, which installs bootblocks on floppy discs 2309b85037dbSmrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2310b85037dbSmrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2311b85037dbSmrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2312b85037dbSmrg# OS/2's system install, which has a completely different semantic 2313b85037dbSmrg# ./install, which can be erroneously created by make from ./install.sh. 2314b85037dbSmrg# Reject install programs that cannot install multiple files. 2315b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2316b85037dbSmrg$as_echo_n "checking for a BSD-compatible install... " >&6; } 2317b85037dbSmrgif test -z "$INSTALL"; then 2318302b15bdSmrgif ${ac_cv_path_install+:} false; then : 2319b85037dbSmrg $as_echo_n "(cached) " >&6 2320b85037dbSmrgelse 2321b85037dbSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2322b85037dbSmrgfor as_dir in $PATH 2323b85037dbSmrgdo 2324b85037dbSmrg IFS=$as_save_IFS 2325b85037dbSmrg test -z "$as_dir" && as_dir=. 2326b85037dbSmrg # Account for people who put trailing slashes in PATH elements. 2327b85037dbSmrgcase $as_dir/ in #(( 2328b85037dbSmrg ./ | .// | /[cC]/* | \ 2329b85037dbSmrg /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2330b85037dbSmrg ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2331b85037dbSmrg /usr/ucb/* ) ;; 2332b85037dbSmrg *) 2333b85037dbSmrg # OSF1 and SCO ODT 3.0 have their own names for install. 2334b85037dbSmrg # Don't use installbsd from OSF since it installs stuff as root 2335b85037dbSmrg # by default. 2336b85037dbSmrg for ac_prog in ginstall scoinst install; do 2337b85037dbSmrg for ac_exec_ext in '' $ac_executable_extensions; do 233828515619Smrg if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2339b85037dbSmrg if test $ac_prog = install && 2340b85037dbSmrg grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2341b85037dbSmrg # AIX install. It has an incompatible calling convention. 2342b85037dbSmrg : 2343b85037dbSmrg elif test $ac_prog = install && 2344b85037dbSmrg grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2345b85037dbSmrg # program-specific install script used by HP pwplus--don't use. 2346b85037dbSmrg : 2347b85037dbSmrg else 2348b85037dbSmrg rm -rf conftest.one conftest.two conftest.dir 2349b85037dbSmrg echo one > conftest.one 2350b85037dbSmrg echo two > conftest.two 2351b85037dbSmrg mkdir conftest.dir 2352b85037dbSmrg if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2353b85037dbSmrg test -s conftest.one && test -s conftest.two && 2354b85037dbSmrg test -s conftest.dir/conftest.one && 2355b85037dbSmrg test -s conftest.dir/conftest.two 2356b85037dbSmrg then 2357b85037dbSmrg ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2358b85037dbSmrg break 3 2359b85037dbSmrg fi 2360b85037dbSmrg fi 2361b85037dbSmrg fi 2362b85037dbSmrg done 2363b85037dbSmrg done 2364b85037dbSmrg ;; 2365b85037dbSmrgesac 2366b85037dbSmrg 2367b85037dbSmrg done 2368b85037dbSmrgIFS=$as_save_IFS 2369b85037dbSmrg 2370b85037dbSmrgrm -rf conftest.one conftest.two conftest.dir 2371b85037dbSmrg 2372b85037dbSmrgfi 2373b85037dbSmrg if test "${ac_cv_path_install+set}" = set; then 2374b85037dbSmrg INSTALL=$ac_cv_path_install 2375b85037dbSmrg else 2376b85037dbSmrg # As a last resort, use the slow shell script. Don't cache a 2377b85037dbSmrg # value for INSTALL within a source directory, because that will 2378b85037dbSmrg # break other packages using the cache if that directory is 2379b85037dbSmrg # removed, or if the value is a relative name. 2380b85037dbSmrg INSTALL=$ac_install_sh 2381b85037dbSmrg fi 2382b85037dbSmrgfi 2383b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2384b85037dbSmrg$as_echo "$INSTALL" >&6; } 2385b85037dbSmrg 2386b85037dbSmrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2387b85037dbSmrg# It thinks the first close brace ends the variable substitution. 2388b85037dbSmrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2389b85037dbSmrg 2390b85037dbSmrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2391b85037dbSmrg 2392b85037dbSmrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2393b85037dbSmrg 2394b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2395b85037dbSmrg$as_echo_n "checking whether build environment is sane... " >&6; } 2396b85037dbSmrg# Reject unsafe characters in $srcdir or the absolute working directory 2397b85037dbSmrg# name. Accept space and tab only in the latter. 2398b85037dbSmrgam_lf=' 2399b85037dbSmrg' 2400b85037dbSmrgcase `pwd` in 2401b85037dbSmrg *[\\\"\#\$\&\'\`$am_lf]*) 2402b85037dbSmrg as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2403b85037dbSmrgesac 2404b85037dbSmrgcase $srcdir in 2405b85037dbSmrg *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 240628515619Smrg as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2407b85037dbSmrgesac 2408b85037dbSmrg 240928515619Smrg# Do 'set' in a subshell so we don't clobber the current shell's 2410b85037dbSmrg# arguments. Must try -L first in case configure is actually a 2411b85037dbSmrg# symlink; some systems play weird games with the mod time of symlinks 2412b85037dbSmrg# (eg FreeBSD returns the mod time of the symlink's containing 2413b85037dbSmrg# directory). 2414b85037dbSmrgif ( 241528515619Smrg am_has_slept=no 241628515619Smrg for am_try in 1 2; do 241728515619Smrg echo "timestamp, slept: $am_has_slept" > conftest.file 241828515619Smrg set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 241928515619Smrg if test "$*" = "X"; then 242028515619Smrg # -L didn't work. 242128515619Smrg set X `ls -t "$srcdir/configure" conftest.file` 242228515619Smrg fi 242328515619Smrg if test "$*" != "X $srcdir/configure conftest.file" \ 242428515619Smrg && test "$*" != "X conftest.file $srcdir/configure"; then 242528515619Smrg 242628515619Smrg # If neither matched, then we have a broken ls. This can happen 242728515619Smrg # if, for instance, CONFIG_SHELL is bash and it inherits a 242828515619Smrg # broken ls alias from the environment. This has actually 242928515619Smrg # happened. Such a system could not be considered "sane". 243028515619Smrg as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 243128515619Smrg alias in your environment" "$LINENO" 5 243228515619Smrg fi 243328515619Smrg if test "$2" = conftest.file || test $am_try -eq 2; then 243428515619Smrg break 243528515619Smrg fi 243628515619Smrg # Just in case. 243728515619Smrg sleep 1 243828515619Smrg am_has_slept=yes 243928515619Smrg done 2440b85037dbSmrg test "$2" = conftest.file 2441b85037dbSmrg ) 2442b85037dbSmrgthen 2443b85037dbSmrg # Ok. 2444b85037dbSmrg : 2445b85037dbSmrgelse 2446b85037dbSmrg as_fn_error $? "newly created file is older than distributed files! 2447b85037dbSmrgCheck your system clock" "$LINENO" 5 2448b85037dbSmrgfi 2449b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2450b85037dbSmrg$as_echo "yes" >&6; } 245128515619Smrg# If we didn't sleep, we still need to ensure time stamps of config.status and 245228515619Smrg# generated files are strictly newer. 245328515619Smrgam_sleep_pid= 245428515619Smrgif grep 'slept: no' conftest.file >/dev/null 2>&1; then 245528515619Smrg ( sleep 1 ) & 245628515619Smrg am_sleep_pid=$! 245728515619Smrgfi 245828515619Smrg 245928515619Smrgrm -f conftest.file 246028515619Smrg 2461b85037dbSmrgtest "$program_prefix" != NONE && 2462b85037dbSmrg program_transform_name="s&^&$program_prefix&;$program_transform_name" 2463b85037dbSmrg# Use a double $ so make ignores it. 2464b85037dbSmrgtest "$program_suffix" != NONE && 2465b85037dbSmrg program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2466b85037dbSmrg# Double any \ or $. 2467b85037dbSmrg# By default was `s,x,x', remove it if useless. 2468b85037dbSmrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2469b85037dbSmrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2470b85037dbSmrg 2471b85037dbSmrg# expand $ac_aux_dir to an absolute path 2472b85037dbSmrgam_aux_dir=`cd $ac_aux_dir && pwd` 2473b85037dbSmrg 2474b85037dbSmrgif test x"${MISSING+set}" != xset; then 2475b85037dbSmrg case $am_aux_dir in 2476b85037dbSmrg *\ * | *\ *) 2477b85037dbSmrg MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2478b85037dbSmrg *) 2479b85037dbSmrg MISSING="\${SHELL} $am_aux_dir/missing" ;; 2480b85037dbSmrg esac 2481b85037dbSmrgfi 2482b85037dbSmrg# Use eval to expand $SHELL 2483b85037dbSmrgif eval "$MISSING --run true"; then 2484b85037dbSmrg am_missing_run="$MISSING --run " 2485b85037dbSmrgelse 2486b85037dbSmrg am_missing_run= 248728515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 248828515619Smrg$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2489b85037dbSmrgfi 2490b85037dbSmrg 2491b85037dbSmrgif test x"${install_sh}" != xset; then 2492b85037dbSmrg case $am_aux_dir in 2493b85037dbSmrg *\ * | *\ *) 2494b85037dbSmrg install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2495b85037dbSmrg *) 2496b85037dbSmrg install_sh="\${SHELL} $am_aux_dir/install-sh" 2497b85037dbSmrg esac 2498b85037dbSmrgfi 2499b85037dbSmrg 250028515619Smrg# Installed binaries are usually stripped using 'strip' when the user 250128515619Smrg# run "make install-strip". However 'strip' might not be the right 2502b85037dbSmrg# tool to use in cross-compilation environments, therefore Automake 250328515619Smrg# will honor the 'STRIP' environment variable to overrule this program. 2504b85037dbSmrgif test "$cross_compiling" != no; then 2505b85037dbSmrg if test -n "$ac_tool_prefix"; then 2506b85037dbSmrg # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2507b85037dbSmrgset dummy ${ac_tool_prefix}strip; ac_word=$2 2508b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2509b85037dbSmrg$as_echo_n "checking for $ac_word... " >&6; } 2510302b15bdSmrgif ${ac_cv_prog_STRIP+:} false; then : 2511b85037dbSmrg $as_echo_n "(cached) " >&6 2512b85037dbSmrgelse 2513b85037dbSmrg if test -n "$STRIP"; then 2514b85037dbSmrg ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2515b85037dbSmrgelse 2516b85037dbSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2517b85037dbSmrgfor as_dir in $PATH 2518b85037dbSmrgdo 2519b85037dbSmrg IFS=$as_save_IFS 2520b85037dbSmrg test -z "$as_dir" && as_dir=. 2521b85037dbSmrg for ac_exec_ext in '' $ac_executable_extensions; do 252228515619Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2523b85037dbSmrg ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2524b85037dbSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2525b85037dbSmrg break 2 2526b85037dbSmrg fi 2527b85037dbSmrgdone 2528b85037dbSmrg done 2529b85037dbSmrgIFS=$as_save_IFS 2530b85037dbSmrg 2531b85037dbSmrgfi 2532b85037dbSmrgfi 2533b85037dbSmrgSTRIP=$ac_cv_prog_STRIP 2534b85037dbSmrgif test -n "$STRIP"; then 2535b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2536b85037dbSmrg$as_echo "$STRIP" >&6; } 2537b85037dbSmrgelse 2538b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2539b85037dbSmrg$as_echo "no" >&6; } 2540b85037dbSmrgfi 2541b85037dbSmrg 2542b85037dbSmrg 2543b85037dbSmrgfi 2544b85037dbSmrgif test -z "$ac_cv_prog_STRIP"; then 2545b85037dbSmrg ac_ct_STRIP=$STRIP 2546b85037dbSmrg # Extract the first word of "strip", so it can be a program name with args. 2547b85037dbSmrgset dummy strip; ac_word=$2 2548b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2549b85037dbSmrg$as_echo_n "checking for $ac_word... " >&6; } 2550302b15bdSmrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2551b85037dbSmrg $as_echo_n "(cached) " >&6 2552b85037dbSmrgelse 2553b85037dbSmrg if test -n "$ac_ct_STRIP"; then 2554b85037dbSmrg ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2555b85037dbSmrgelse 2556b85037dbSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2557b85037dbSmrgfor as_dir in $PATH 2558b85037dbSmrgdo 2559b85037dbSmrg IFS=$as_save_IFS 2560b85037dbSmrg test -z "$as_dir" && as_dir=. 2561b85037dbSmrg for ac_exec_ext in '' $ac_executable_extensions; do 256228515619Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2563b85037dbSmrg ac_cv_prog_ac_ct_STRIP="strip" 2564b85037dbSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2565b85037dbSmrg break 2 2566b85037dbSmrg fi 2567b85037dbSmrgdone 2568b85037dbSmrg done 2569b85037dbSmrgIFS=$as_save_IFS 2570b85037dbSmrg 2571b85037dbSmrgfi 2572b85037dbSmrgfi 2573b85037dbSmrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2574b85037dbSmrgif test -n "$ac_ct_STRIP"; then 2575b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2576b85037dbSmrg$as_echo "$ac_ct_STRIP" >&6; } 2577b85037dbSmrgelse 2578b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2579b85037dbSmrg$as_echo "no" >&6; } 2580b85037dbSmrgfi 2581b85037dbSmrg 2582b85037dbSmrg if test "x$ac_ct_STRIP" = x; then 2583b85037dbSmrg STRIP=":" 2584b85037dbSmrg else 2585b85037dbSmrg case $cross_compiling:$ac_tool_warned in 2586b85037dbSmrgyes:) 2587b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2588b85037dbSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2589b85037dbSmrgac_tool_warned=yes ;; 2590b85037dbSmrgesac 2591b85037dbSmrg STRIP=$ac_ct_STRIP 2592b85037dbSmrg fi 2593b85037dbSmrgelse 2594b85037dbSmrg STRIP="$ac_cv_prog_STRIP" 2595b85037dbSmrgfi 2596b85037dbSmrg 2597b85037dbSmrgfi 2598b85037dbSmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2599b85037dbSmrg 2600b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2601b85037dbSmrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2602b85037dbSmrgif test -z "$MKDIR_P"; then 2603302b15bdSmrg if ${ac_cv_path_mkdir+:} false; then : 2604b85037dbSmrg $as_echo_n "(cached) " >&6 2605b85037dbSmrgelse 2606b85037dbSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2607b85037dbSmrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2608b85037dbSmrgdo 2609b85037dbSmrg IFS=$as_save_IFS 2610b85037dbSmrg test -z "$as_dir" && as_dir=. 2611b85037dbSmrg for ac_prog in mkdir gmkdir; do 2612b85037dbSmrg for ac_exec_ext in '' $ac_executable_extensions; do 261328515619Smrg as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2614b85037dbSmrg case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2615b85037dbSmrg 'mkdir (GNU coreutils) '* | \ 2616b85037dbSmrg 'mkdir (coreutils) '* | \ 2617b85037dbSmrg 'mkdir (fileutils) '4.1*) 2618b85037dbSmrg ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2619b85037dbSmrg break 3;; 2620b85037dbSmrg esac 2621b85037dbSmrg done 2622b85037dbSmrg done 2623b85037dbSmrg done 2624b85037dbSmrgIFS=$as_save_IFS 2625b85037dbSmrg 2626b85037dbSmrgfi 2627b85037dbSmrg 2628b85037dbSmrg test -d ./--version && rmdir ./--version 2629b85037dbSmrg if test "${ac_cv_path_mkdir+set}" = set; then 2630b85037dbSmrg MKDIR_P="$ac_cv_path_mkdir -p" 2631b85037dbSmrg else 2632b85037dbSmrg # As a last resort, use the slow shell script. Don't cache a 2633b85037dbSmrg # value for MKDIR_P within a source directory, because that will 2634b85037dbSmrg # break other packages using the cache if that directory is 2635b85037dbSmrg # removed, or if the value is a relative name. 2636b85037dbSmrg MKDIR_P="$ac_install_sh -d" 2637b85037dbSmrg fi 2638b85037dbSmrgfi 2639b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2640b85037dbSmrg$as_echo "$MKDIR_P" >&6; } 2641b85037dbSmrg 2642b85037dbSmrgfor ac_prog in gawk mawk nawk awk 2643b85037dbSmrgdo 2644b85037dbSmrg # Extract the first word of "$ac_prog", so it can be a program name with args. 2645b85037dbSmrgset dummy $ac_prog; ac_word=$2 2646b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2647b85037dbSmrg$as_echo_n "checking for $ac_word... " >&6; } 2648302b15bdSmrgif ${ac_cv_prog_AWK+:} false; then : 2649b85037dbSmrg $as_echo_n "(cached) " >&6 2650b85037dbSmrgelse 2651b85037dbSmrg if test -n "$AWK"; then 2652b85037dbSmrg ac_cv_prog_AWK="$AWK" # Let the user override the test. 2653b85037dbSmrgelse 2654b85037dbSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2655b85037dbSmrgfor as_dir in $PATH 2656b85037dbSmrgdo 2657b85037dbSmrg IFS=$as_save_IFS 2658b85037dbSmrg test -z "$as_dir" && as_dir=. 2659b85037dbSmrg for ac_exec_ext in '' $ac_executable_extensions; do 266028515619Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2661b85037dbSmrg ac_cv_prog_AWK="$ac_prog" 2662b85037dbSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2663b85037dbSmrg break 2 2664b85037dbSmrg fi 2665b85037dbSmrgdone 2666b85037dbSmrg done 2667b85037dbSmrgIFS=$as_save_IFS 2668b85037dbSmrg 2669b85037dbSmrgfi 2670b85037dbSmrgfi 2671b85037dbSmrgAWK=$ac_cv_prog_AWK 2672b85037dbSmrgif test -n "$AWK"; then 2673b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2674b85037dbSmrg$as_echo "$AWK" >&6; } 2675b85037dbSmrgelse 2676b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2677b85037dbSmrg$as_echo "no" >&6; } 2678b85037dbSmrgfi 2679b85037dbSmrg 2680b85037dbSmrg 2681b85037dbSmrg test -n "$AWK" && break 2682b85037dbSmrgdone 2683b85037dbSmrg 2684b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2685b85037dbSmrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2686b85037dbSmrgset x ${MAKE-make} 2687b85037dbSmrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2688302b15bdSmrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2689b85037dbSmrg $as_echo_n "(cached) " >&6 2690b85037dbSmrgelse 2691b85037dbSmrg cat >conftest.make <<\_ACEOF 2692b85037dbSmrgSHELL = /bin/sh 2693b85037dbSmrgall: 2694b85037dbSmrg @echo '@@@%%%=$(MAKE)=@@@%%%' 2695b85037dbSmrg_ACEOF 2696b85037dbSmrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2697b85037dbSmrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in 2698b85037dbSmrg *@@@%%%=?*=@@@%%%*) 2699b85037dbSmrg eval ac_cv_prog_make_${ac_make}_set=yes;; 2700b85037dbSmrg *) 2701b85037dbSmrg eval ac_cv_prog_make_${ac_make}_set=no;; 2702b85037dbSmrgesac 2703b85037dbSmrgrm -f conftest.make 2704b85037dbSmrgfi 2705b85037dbSmrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2706b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2707b85037dbSmrg$as_echo "yes" >&6; } 2708b85037dbSmrg SET_MAKE= 2709b85037dbSmrgelse 2710b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2711b85037dbSmrg$as_echo "no" >&6; } 2712b85037dbSmrg SET_MAKE="MAKE=${MAKE-make}" 2713b85037dbSmrgfi 2714b85037dbSmrg 2715b85037dbSmrgrm -rf .tst 2>/dev/null 2716b85037dbSmrgmkdir .tst 2>/dev/null 2717b85037dbSmrgif test -d .tst; then 2718b85037dbSmrg am__leading_dot=. 2719b85037dbSmrgelse 2720b85037dbSmrg am__leading_dot=_ 2721b85037dbSmrgfi 2722b85037dbSmrgrmdir .tst 2>/dev/null 2723b85037dbSmrg 2724b85037dbSmrgif test "`cd $srcdir && pwd`" != "`pwd`"; then 2725b85037dbSmrg # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2726b85037dbSmrg # is not polluted with repeated "-I." 2727b85037dbSmrg am__isrc=' -I$(srcdir)' 2728b85037dbSmrg # test to see if srcdir already configured 2729b85037dbSmrg if test -f $srcdir/config.status; then 2730b85037dbSmrg as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2731b85037dbSmrg fi 2732b85037dbSmrgfi 2733b85037dbSmrg 2734b85037dbSmrg# test whether we have cygpath 2735b85037dbSmrgif test -z "$CYGPATH_W"; then 2736b85037dbSmrg if (cygpath --version) >/dev/null 2>/dev/null; then 2737b85037dbSmrg CYGPATH_W='cygpath -w' 2738b85037dbSmrg else 2739b85037dbSmrg CYGPATH_W=echo 2740b85037dbSmrg fi 2741b85037dbSmrgfi 2742b85037dbSmrg 2743b85037dbSmrg 2744b85037dbSmrg# Define the identity of the package. 2745b85037dbSmrg PACKAGE='xf86-input-synaptics' 274628515619Smrg VERSION='1.7.1' 2747b85037dbSmrg 2748b85037dbSmrg 2749b85037dbSmrgcat >>confdefs.h <<_ACEOF 2750b85037dbSmrg#define PACKAGE "$PACKAGE" 2751b85037dbSmrg_ACEOF 2752b85037dbSmrg 2753b85037dbSmrg 2754b85037dbSmrgcat >>confdefs.h <<_ACEOF 2755b85037dbSmrg#define VERSION "$VERSION" 2756b85037dbSmrg_ACEOF 2757b85037dbSmrg 2758b85037dbSmrg# Some tools Automake needs. 2759b85037dbSmrg 2760b85037dbSmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2761b85037dbSmrg 2762b85037dbSmrg 2763b85037dbSmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2764b85037dbSmrg 2765b85037dbSmrg 2766b85037dbSmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2767b85037dbSmrg 2768b85037dbSmrg 2769b85037dbSmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2770b85037dbSmrg 2771b85037dbSmrg 2772b85037dbSmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2773b85037dbSmrg 277428515619Smrg# For better backward compatibility. To be removed once Automake 1.9.x 277528515619Smrg# dies out for good. For more background, see: 277628515619Smrg# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 277728515619Smrg# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 277828515619Smrgmkdir_p='$(MKDIR_P)' 277928515619Smrg 2780b85037dbSmrg# We need awk for the "check" target. The system "awk" is bad on 2781b85037dbSmrg# some platforms. 278228515619Smrg# Always define AMTAR for backward compatibility. Yes, it's still used 278328515619Smrg# in the wild :-( We should find a proper way to deprecate it ... 278428515619SmrgAMTAR='$${TAR-tar}' 2785b85037dbSmrg 278628515619Smrgam__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2787b85037dbSmrg 2788b85037dbSmrg 2789b85037dbSmrg 2790b85037dbSmrg 2791b85037dbSmrg 2792b85037dbSmrg 2793b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2794b85037dbSmrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2795b85037dbSmrg # Check whether --enable-maintainer-mode was given. 2796b85037dbSmrgif test "${enable_maintainer_mode+set}" = set; then : 2797b85037dbSmrg enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2798b85037dbSmrgelse 2799b85037dbSmrg USE_MAINTAINER_MODE=no 2800b85037dbSmrgfi 2801b85037dbSmrg 2802b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2803b85037dbSmrg$as_echo "$USE_MAINTAINER_MODE" >&6; } 2804b85037dbSmrg if test $USE_MAINTAINER_MODE = yes; then 2805b85037dbSmrg MAINTAINER_MODE_TRUE= 2806b85037dbSmrg MAINTAINER_MODE_FALSE='#' 2807b85037dbSmrgelse 2808b85037dbSmrg MAINTAINER_MODE_TRUE='#' 2809b85037dbSmrg MAINTAINER_MODE_FALSE= 2810b85037dbSmrgfi 2811b85037dbSmrg 2812b85037dbSmrg MAINT=$MAINTAINER_MODE_TRUE 2813b85037dbSmrg 2814b85037dbSmrg 2815b85037dbSmrg 2816b85037dbSmrg# Initialize libtool 2817b85037dbSmrg# Check whether --enable-static was given. 2818b85037dbSmrgif test "${enable_static+set}" = set; then : 2819b85037dbSmrg enableval=$enable_static; p=${PACKAGE-default} 2820b85037dbSmrg case $enableval in 2821b85037dbSmrg yes) enable_static=yes ;; 2822b85037dbSmrg no) enable_static=no ;; 2823b85037dbSmrg *) 2824b85037dbSmrg enable_static=no 2825b85037dbSmrg # Look at the argument we got. We use all the common list separators. 2826b85037dbSmrg lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2827b85037dbSmrg for pkg in $enableval; do 2828b85037dbSmrg IFS="$lt_save_ifs" 2829b85037dbSmrg if test "X$pkg" = "X$p"; then 2830b85037dbSmrg enable_static=yes 2831b85037dbSmrg fi 2832b85037dbSmrg done 2833b85037dbSmrg IFS="$lt_save_ifs" 2834b85037dbSmrg ;; 2835b85037dbSmrg esac 2836b85037dbSmrgelse 2837b85037dbSmrg enable_static=no 2838b85037dbSmrgfi 2839b85037dbSmrg 2840b85037dbSmrg 2841b85037dbSmrg 2842b85037dbSmrg 2843b85037dbSmrg 2844b85037dbSmrg 2845b85037dbSmrg 2846b85037dbSmrg 2847b85037dbSmrg 2848b85037dbSmrgcase `pwd` in 2849b85037dbSmrg *\ * | *\ *) 2850b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2851b85037dbSmrg$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2852b85037dbSmrgesac 2853b85037dbSmrg 2854b85037dbSmrg 2855b85037dbSmrg 285628515619Smrgmacro_version='2.4.2' 285728515619Smrgmacro_revision='1.3337' 2858b85037dbSmrg 2859b85037dbSmrg 2860b85037dbSmrg 2861b85037dbSmrg 2862b85037dbSmrg 2863b85037dbSmrg 2864b85037dbSmrg 2865b85037dbSmrg 2866b85037dbSmrg 2867b85037dbSmrg 2868b85037dbSmrg 2869b85037dbSmrg 2870b85037dbSmrg 2871b85037dbSmrgltmain="$ac_aux_dir/ltmain.sh" 2872b85037dbSmrg 2873b85037dbSmrg# Make sure we can run config.sub. 2874b85037dbSmrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2875b85037dbSmrg as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2876b85037dbSmrg 2877b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2878b85037dbSmrg$as_echo_n "checking build system type... " >&6; } 2879302b15bdSmrgif ${ac_cv_build+:} false; then : 2880b85037dbSmrg $as_echo_n "(cached) " >&6 2881b85037dbSmrgelse 2882b85037dbSmrg ac_build_alias=$build_alias 2883b85037dbSmrgtest "x$ac_build_alias" = x && 2884b85037dbSmrg ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2885b85037dbSmrgtest "x$ac_build_alias" = x && 2886b85037dbSmrg as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2887b85037dbSmrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2888b85037dbSmrg as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2889b85037dbSmrg 2890b85037dbSmrgfi 2891b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2892b85037dbSmrg$as_echo "$ac_cv_build" >&6; } 2893b85037dbSmrgcase $ac_cv_build in 2894b85037dbSmrg*-*-*) ;; 2895b85037dbSmrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2896b85037dbSmrgesac 2897b85037dbSmrgbuild=$ac_cv_build 2898b85037dbSmrgac_save_IFS=$IFS; IFS='-' 2899b85037dbSmrgset x $ac_cv_build 2900b85037dbSmrgshift 2901b85037dbSmrgbuild_cpu=$1 2902b85037dbSmrgbuild_vendor=$2 2903b85037dbSmrgshift; shift 2904b85037dbSmrg# Remember, the first character of IFS is used to create $*, 2905b85037dbSmrg# except with old shells: 2906b85037dbSmrgbuild_os=$* 2907b85037dbSmrgIFS=$ac_save_IFS 2908b85037dbSmrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2909b85037dbSmrg 2910b85037dbSmrg 2911b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2912b85037dbSmrg$as_echo_n "checking host system type... " >&6; } 2913302b15bdSmrgif ${ac_cv_host+:} false; then : 2914b85037dbSmrg $as_echo_n "(cached) " >&6 2915b85037dbSmrgelse 2916b85037dbSmrg if test "x$host_alias" = x; then 2917b85037dbSmrg ac_cv_host=$ac_cv_build 2918b85037dbSmrgelse 2919b85037dbSmrg ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2920b85037dbSmrg as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2921b85037dbSmrgfi 2922b85037dbSmrg 2923b85037dbSmrgfi 2924b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2925b85037dbSmrg$as_echo "$ac_cv_host" >&6; } 2926b85037dbSmrgcase $ac_cv_host in 2927b85037dbSmrg*-*-*) ;; 2928b85037dbSmrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2929b85037dbSmrgesac 2930b85037dbSmrghost=$ac_cv_host 2931b85037dbSmrgac_save_IFS=$IFS; IFS='-' 2932b85037dbSmrgset x $ac_cv_host 2933b85037dbSmrgshift 2934b85037dbSmrghost_cpu=$1 2935b85037dbSmrghost_vendor=$2 2936b85037dbSmrgshift; shift 2937b85037dbSmrg# Remember, the first character of IFS is used to create $*, 2938b85037dbSmrg# except with old shells: 2939b85037dbSmrghost_os=$* 2940b85037dbSmrgIFS=$ac_save_IFS 2941b85037dbSmrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2942b85037dbSmrg 2943b85037dbSmrg 2944b85037dbSmrg# Backslashify metacharacters that are still active within 2945b85037dbSmrg# double-quoted strings. 2946b85037dbSmrgsed_quote_subst='s/\(["`$\\]\)/\\\1/g' 2947b85037dbSmrg 2948b85037dbSmrg# Same as above, but do not quote variable references. 2949b85037dbSmrgdouble_quote_subst='s/\(["`\\]\)/\\\1/g' 2950b85037dbSmrg 2951b85037dbSmrg# Sed substitution to delay expansion of an escaped shell variable in a 2952b85037dbSmrg# double_quote_subst'ed string. 2953b85037dbSmrgdelay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 2954b85037dbSmrg 2955b85037dbSmrg# Sed substitution to delay expansion of an escaped single quote. 2956b85037dbSmrgdelay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 2957b85037dbSmrg 2958b85037dbSmrg# Sed substitution to avoid accidental globbing in evaled expressions 2959b85037dbSmrgno_glob_subst='s/\*/\\\*/g' 2960b85037dbSmrg 2961b85037dbSmrgECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 2962b85037dbSmrgECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 2963b85037dbSmrgECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 2964b85037dbSmrg 2965b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 2966b85037dbSmrg$as_echo_n "checking how to print strings... " >&6; } 2967b85037dbSmrg# Test print first, because it will be a builtin if present. 2968302b15bdSmrgif test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 2969b85037dbSmrg test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 2970b85037dbSmrg ECHO='print -r --' 2971b85037dbSmrgelif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 2972b85037dbSmrg ECHO='printf %s\n' 2973b85037dbSmrgelse 2974b85037dbSmrg # Use this function as a fallback that always works. 2975b85037dbSmrg func_fallback_echo () 2976b85037dbSmrg { 2977b85037dbSmrg eval 'cat <<_LTECHO_EOF 2978b85037dbSmrg$1 2979b85037dbSmrg_LTECHO_EOF' 2980b85037dbSmrg } 2981b85037dbSmrg ECHO='func_fallback_echo' 2982b85037dbSmrgfi 2983b85037dbSmrg 2984b85037dbSmrg# func_echo_all arg... 2985b85037dbSmrg# Invoke $ECHO with all args, space-separated. 2986b85037dbSmrgfunc_echo_all () 2987b85037dbSmrg{ 2988b85037dbSmrg $ECHO "" 2989b85037dbSmrg} 2990b85037dbSmrg 2991b85037dbSmrgcase "$ECHO" in 2992b85037dbSmrg printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 2993b85037dbSmrg$as_echo "printf" >&6; } ;; 2994b85037dbSmrg print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 2995b85037dbSmrg$as_echo "print -r" >&6; } ;; 2996b85037dbSmrg *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 2997b85037dbSmrg$as_echo "cat" >&6; } ;; 2998b85037dbSmrgesac 2999b85037dbSmrg 3000b85037dbSmrg 3001b85037dbSmrg 3002b85037dbSmrg 3003b85037dbSmrg 3004b85037dbSmrg 3005b85037dbSmrg 3006b85037dbSmrg 3007b85037dbSmrg 3008b85037dbSmrg 3009b85037dbSmrg 3010b85037dbSmrg 3011b85037dbSmrg 3012b85037dbSmrg 3013b85037dbSmrgDEPDIR="${am__leading_dot}deps" 3014b85037dbSmrg 3015b85037dbSmrgac_config_commands="$ac_config_commands depfiles" 3016b85037dbSmrg 3017b85037dbSmrg 3018b85037dbSmrgam_make=${MAKE-make} 3019b85037dbSmrgcat > confinc << 'END' 3020b85037dbSmrgam__doit: 3021b85037dbSmrg @echo this is the am__doit target 3022b85037dbSmrg.PHONY: am__doit 3023b85037dbSmrgEND 3024b85037dbSmrg# If we don't find an include directive, just comment out the code. 3025b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3026b85037dbSmrg$as_echo_n "checking for style of include used by $am_make... " >&6; } 3027b85037dbSmrgam__include="#" 3028b85037dbSmrgam__quote= 3029b85037dbSmrg_am_result=none 3030b85037dbSmrg# First try GNU make style include. 3031b85037dbSmrgecho "include confinc" > confmf 303228515619Smrg# Ignore all kinds of additional output from 'make'. 3033b85037dbSmrgcase `$am_make -s -f confmf 2> /dev/null` in #( 3034b85037dbSmrg*the\ am__doit\ target*) 3035b85037dbSmrg am__include=include 3036b85037dbSmrg am__quote= 3037b85037dbSmrg _am_result=GNU 3038b85037dbSmrg ;; 3039b85037dbSmrgesac 3040b85037dbSmrg# Now try BSD make style include. 3041b85037dbSmrgif test "$am__include" = "#"; then 3042b85037dbSmrg echo '.include "confinc"' > confmf 3043b85037dbSmrg case `$am_make -s -f confmf 2> /dev/null` in #( 3044b85037dbSmrg *the\ am__doit\ target*) 3045b85037dbSmrg am__include=.include 3046b85037dbSmrg am__quote="\"" 3047b85037dbSmrg _am_result=BSD 3048b85037dbSmrg ;; 3049b85037dbSmrg esac 3050b85037dbSmrgfi 3051b85037dbSmrg 3052b85037dbSmrg 3053b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3054b85037dbSmrg$as_echo "$_am_result" >&6; } 3055b85037dbSmrgrm -f confinc confmf 3056b85037dbSmrg 3057b85037dbSmrg# Check whether --enable-dependency-tracking was given. 3058b85037dbSmrgif test "${enable_dependency_tracking+set}" = set; then : 3059b85037dbSmrg enableval=$enable_dependency_tracking; 3060b85037dbSmrgfi 3061b85037dbSmrg 3062b85037dbSmrgif test "x$enable_dependency_tracking" != xno; then 3063b85037dbSmrg am_depcomp="$ac_aux_dir/depcomp" 3064b85037dbSmrg AMDEPBACKSLASH='\' 306528515619Smrg am__nodep='_no' 3066b85037dbSmrgfi 3067b85037dbSmrg if test "x$enable_dependency_tracking" != xno; then 3068b85037dbSmrg AMDEP_TRUE= 3069b85037dbSmrg AMDEP_FALSE='#' 3070b85037dbSmrgelse 3071b85037dbSmrg AMDEP_TRUE='#' 3072b85037dbSmrg AMDEP_FALSE= 3073b85037dbSmrgfi 3074b85037dbSmrg 3075b85037dbSmrg 3076b85037dbSmrgac_ext=c 3077b85037dbSmrgac_cpp='$CPP $CPPFLAGS' 3078b85037dbSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3079b85037dbSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3080b85037dbSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 3081b85037dbSmrgif test -n "$ac_tool_prefix"; then 3082b85037dbSmrg # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3083b85037dbSmrgset dummy ${ac_tool_prefix}gcc; ac_word=$2 3084b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3085b85037dbSmrg$as_echo_n "checking for $ac_word... " >&6; } 3086302b15bdSmrgif ${ac_cv_prog_CC+:} false; then : 3087b85037dbSmrg $as_echo_n "(cached) " >&6 3088b85037dbSmrgelse 3089b85037dbSmrg if test -n "$CC"; then 3090b85037dbSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 3091b85037dbSmrgelse 3092b85037dbSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3093b85037dbSmrgfor as_dir in $PATH 3094b85037dbSmrgdo 3095b85037dbSmrg IFS=$as_save_IFS 3096b85037dbSmrg test -z "$as_dir" && as_dir=. 3097b85037dbSmrg for ac_exec_ext in '' $ac_executable_extensions; do 309828515619Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3099b85037dbSmrg ac_cv_prog_CC="${ac_tool_prefix}gcc" 3100b85037dbSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3101b85037dbSmrg break 2 3102b85037dbSmrg fi 3103b85037dbSmrgdone 3104b85037dbSmrg done 3105b85037dbSmrgIFS=$as_save_IFS 3106b85037dbSmrg 3107b85037dbSmrgfi 3108b85037dbSmrgfi 3109b85037dbSmrgCC=$ac_cv_prog_CC 3110b85037dbSmrgif test -n "$CC"; then 3111b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3112b85037dbSmrg$as_echo "$CC" >&6; } 3113b85037dbSmrgelse 3114b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3115b85037dbSmrg$as_echo "no" >&6; } 3116b85037dbSmrgfi 3117b85037dbSmrg 3118b85037dbSmrg 3119b85037dbSmrgfi 3120b85037dbSmrgif test -z "$ac_cv_prog_CC"; then 3121b85037dbSmrg ac_ct_CC=$CC 3122b85037dbSmrg # Extract the first word of "gcc", so it can be a program name with args. 3123b85037dbSmrgset dummy gcc; ac_word=$2 3124b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3125b85037dbSmrg$as_echo_n "checking for $ac_word... " >&6; } 3126302b15bdSmrgif ${ac_cv_prog_ac_ct_CC+:} false; then : 3127b85037dbSmrg $as_echo_n "(cached) " >&6 3128b85037dbSmrgelse 3129b85037dbSmrg if test -n "$ac_ct_CC"; then 3130b85037dbSmrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3131b85037dbSmrgelse 3132b85037dbSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3133b85037dbSmrgfor as_dir in $PATH 3134b85037dbSmrgdo 3135b85037dbSmrg IFS=$as_save_IFS 3136b85037dbSmrg test -z "$as_dir" && as_dir=. 3137b85037dbSmrg for ac_exec_ext in '' $ac_executable_extensions; do 313828515619Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3139b85037dbSmrg ac_cv_prog_ac_ct_CC="gcc" 3140b85037dbSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3141b85037dbSmrg break 2 3142b85037dbSmrg fi 3143b85037dbSmrgdone 3144b85037dbSmrg done 3145b85037dbSmrgIFS=$as_save_IFS 3146b85037dbSmrg 3147b85037dbSmrgfi 3148b85037dbSmrgfi 3149b85037dbSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC 3150b85037dbSmrgif test -n "$ac_ct_CC"; then 3151b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3152b85037dbSmrg$as_echo "$ac_ct_CC" >&6; } 3153b85037dbSmrgelse 3154b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3155b85037dbSmrg$as_echo "no" >&6; } 3156b85037dbSmrgfi 3157b85037dbSmrg 3158b85037dbSmrg if test "x$ac_ct_CC" = x; then 3159b85037dbSmrg CC="" 3160b85037dbSmrg else 3161b85037dbSmrg case $cross_compiling:$ac_tool_warned in 3162b85037dbSmrgyes:) 3163b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3164b85037dbSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3165b85037dbSmrgac_tool_warned=yes ;; 3166b85037dbSmrgesac 3167b85037dbSmrg CC=$ac_ct_CC 3168b85037dbSmrg fi 3169b85037dbSmrgelse 3170b85037dbSmrg CC="$ac_cv_prog_CC" 3171b85037dbSmrgfi 3172b85037dbSmrg 3173b85037dbSmrgif test -z "$CC"; then 3174b85037dbSmrg if test -n "$ac_tool_prefix"; then 3175b85037dbSmrg # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3176b85037dbSmrgset dummy ${ac_tool_prefix}cc; ac_word=$2 3177b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3178b85037dbSmrg$as_echo_n "checking for $ac_word... " >&6; } 3179302b15bdSmrgif ${ac_cv_prog_CC+:} false; then : 3180b85037dbSmrg $as_echo_n "(cached) " >&6 3181b85037dbSmrgelse 3182b85037dbSmrg if test -n "$CC"; then 3183b85037dbSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 3184b85037dbSmrgelse 3185b85037dbSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3186b85037dbSmrgfor as_dir in $PATH 3187b85037dbSmrgdo 3188b85037dbSmrg IFS=$as_save_IFS 3189b85037dbSmrg test -z "$as_dir" && as_dir=. 3190b85037dbSmrg for ac_exec_ext in '' $ac_executable_extensions; do 319128515619Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3192b85037dbSmrg ac_cv_prog_CC="${ac_tool_prefix}cc" 3193b85037dbSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3194b85037dbSmrg break 2 3195b85037dbSmrg fi 3196b85037dbSmrgdone 3197b85037dbSmrg done 3198b85037dbSmrgIFS=$as_save_IFS 3199b85037dbSmrg 3200b85037dbSmrgfi 3201b85037dbSmrgfi 3202b85037dbSmrgCC=$ac_cv_prog_CC 3203b85037dbSmrgif test -n "$CC"; then 3204b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3205b85037dbSmrg$as_echo "$CC" >&6; } 3206b85037dbSmrgelse 3207b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3208b85037dbSmrg$as_echo "no" >&6; } 3209b85037dbSmrgfi 3210b85037dbSmrg 3211b85037dbSmrg 3212b85037dbSmrg fi 3213b85037dbSmrgfi 3214b85037dbSmrgif test -z "$CC"; then 3215b85037dbSmrg # Extract the first word of "cc", so it can be a program name with args. 3216b85037dbSmrgset dummy cc; ac_word=$2 3217b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3218b85037dbSmrg$as_echo_n "checking for $ac_word... " >&6; } 3219302b15bdSmrgif ${ac_cv_prog_CC+:} false; then : 3220b85037dbSmrg $as_echo_n "(cached) " >&6 3221b85037dbSmrgelse 3222b85037dbSmrg if test -n "$CC"; then 3223b85037dbSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 3224b85037dbSmrgelse 3225b85037dbSmrg ac_prog_rejected=no 3226b85037dbSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3227b85037dbSmrgfor as_dir in $PATH 3228b85037dbSmrgdo 3229b85037dbSmrg IFS=$as_save_IFS 3230b85037dbSmrg test -z "$as_dir" && as_dir=. 3231b85037dbSmrg for ac_exec_ext in '' $ac_executable_extensions; do 323228515619Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3233b85037dbSmrg if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3234b85037dbSmrg ac_prog_rejected=yes 3235b85037dbSmrg continue 3236b85037dbSmrg fi 3237b85037dbSmrg ac_cv_prog_CC="cc" 3238b85037dbSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3239b85037dbSmrg break 2 3240b85037dbSmrg fi 3241b85037dbSmrgdone 3242b85037dbSmrg done 3243b85037dbSmrgIFS=$as_save_IFS 3244b85037dbSmrg 3245b85037dbSmrgif test $ac_prog_rejected = yes; then 3246b85037dbSmrg # We found a bogon in the path, so make sure we never use it. 3247b85037dbSmrg set dummy $ac_cv_prog_CC 3248b85037dbSmrg shift 3249b85037dbSmrg if test $# != 0; then 3250b85037dbSmrg # We chose a different compiler from the bogus one. 3251b85037dbSmrg # However, it has the same basename, so the bogon will be chosen 3252b85037dbSmrg # first if we set CC to just the basename; use the full file name. 3253b85037dbSmrg shift 3254b85037dbSmrg ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3255b85037dbSmrg fi 3256b85037dbSmrgfi 3257b85037dbSmrgfi 3258b85037dbSmrgfi 3259b85037dbSmrgCC=$ac_cv_prog_CC 3260b85037dbSmrgif test -n "$CC"; then 3261b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3262b85037dbSmrg$as_echo "$CC" >&6; } 3263b85037dbSmrgelse 3264b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3265b85037dbSmrg$as_echo "no" >&6; } 3266b85037dbSmrgfi 3267b85037dbSmrg 3268b85037dbSmrg 3269b85037dbSmrgfi 3270b85037dbSmrgif test -z "$CC"; then 3271b85037dbSmrg if test -n "$ac_tool_prefix"; then 3272b85037dbSmrg for ac_prog in cl.exe 3273b85037dbSmrg do 3274b85037dbSmrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3275b85037dbSmrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2 3276b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3277b85037dbSmrg$as_echo_n "checking for $ac_word... " >&6; } 3278302b15bdSmrgif ${ac_cv_prog_CC+:} false; then : 3279b85037dbSmrg $as_echo_n "(cached) " >&6 3280b85037dbSmrgelse 3281b85037dbSmrg if test -n "$CC"; then 3282b85037dbSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 3283b85037dbSmrgelse 3284b85037dbSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3285b85037dbSmrgfor as_dir in $PATH 3286b85037dbSmrgdo 3287b85037dbSmrg IFS=$as_save_IFS 3288b85037dbSmrg test -z "$as_dir" && as_dir=. 3289b85037dbSmrg for ac_exec_ext in '' $ac_executable_extensions; do 329028515619Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3291b85037dbSmrg ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3292b85037dbSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3293b85037dbSmrg break 2 3294b85037dbSmrg fi 3295b85037dbSmrgdone 3296b85037dbSmrg done 3297b85037dbSmrgIFS=$as_save_IFS 3298b85037dbSmrg 3299b85037dbSmrgfi 3300b85037dbSmrgfi 3301b85037dbSmrgCC=$ac_cv_prog_CC 3302b85037dbSmrgif test -n "$CC"; then 3303b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3304b85037dbSmrg$as_echo "$CC" >&6; } 3305b85037dbSmrgelse 3306b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3307b85037dbSmrg$as_echo "no" >&6; } 3308b85037dbSmrgfi 3309b85037dbSmrg 3310b85037dbSmrg 3311b85037dbSmrg test -n "$CC" && break 3312b85037dbSmrg done 3313b85037dbSmrgfi 3314b85037dbSmrgif test -z "$CC"; then 3315b85037dbSmrg ac_ct_CC=$CC 3316b85037dbSmrg for ac_prog in cl.exe 3317b85037dbSmrgdo 3318b85037dbSmrg # Extract the first word of "$ac_prog", so it can be a program name with args. 3319b85037dbSmrgset dummy $ac_prog; ac_word=$2 3320b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3321b85037dbSmrg$as_echo_n "checking for $ac_word... " >&6; } 3322302b15bdSmrgif ${ac_cv_prog_ac_ct_CC+:} false; then : 3323b85037dbSmrg $as_echo_n "(cached) " >&6 3324b85037dbSmrgelse 3325b85037dbSmrg if test -n "$ac_ct_CC"; then 3326b85037dbSmrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3327b85037dbSmrgelse 3328b85037dbSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3329b85037dbSmrgfor as_dir in $PATH 3330b85037dbSmrgdo 3331b85037dbSmrg IFS=$as_save_IFS 3332b85037dbSmrg test -z "$as_dir" && as_dir=. 3333b85037dbSmrg for ac_exec_ext in '' $ac_executable_extensions; do 333428515619Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3335b85037dbSmrg ac_cv_prog_ac_ct_CC="$ac_prog" 3336b85037dbSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3337b85037dbSmrg break 2 3338b85037dbSmrg fi 3339b85037dbSmrgdone 3340b85037dbSmrg done 3341b85037dbSmrgIFS=$as_save_IFS 3342b85037dbSmrg 3343b85037dbSmrgfi 3344b85037dbSmrgfi 3345b85037dbSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC 3346b85037dbSmrgif test -n "$ac_ct_CC"; then 3347b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3348b85037dbSmrg$as_echo "$ac_ct_CC" >&6; } 3349b85037dbSmrgelse 3350b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3351b85037dbSmrg$as_echo "no" >&6; } 3352b85037dbSmrgfi 3353b85037dbSmrg 3354b85037dbSmrg 3355b85037dbSmrg test -n "$ac_ct_CC" && break 3356b85037dbSmrgdone 3357b85037dbSmrg 3358b85037dbSmrg if test "x$ac_ct_CC" = x; then 3359b85037dbSmrg CC="" 3360b85037dbSmrg else 3361b85037dbSmrg case $cross_compiling:$ac_tool_warned in 3362b85037dbSmrgyes:) 3363b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3364b85037dbSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3365b85037dbSmrgac_tool_warned=yes ;; 3366b85037dbSmrgesac 3367b85037dbSmrg CC=$ac_ct_CC 3368b85037dbSmrg fi 3369b85037dbSmrgfi 3370b85037dbSmrg 3371b85037dbSmrgfi 3372b85037dbSmrg 3373b85037dbSmrg 3374b85037dbSmrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3375b85037dbSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3376b85037dbSmrgas_fn_error $? "no acceptable C compiler found in \$PATH 3377b85037dbSmrgSee \`config.log' for more details" "$LINENO" 5; } 3378b85037dbSmrg 3379b85037dbSmrg# Provide some information about the compiler. 3380b85037dbSmrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3381b85037dbSmrgset X $ac_compile 3382b85037dbSmrgac_compiler=$2 3383b85037dbSmrgfor ac_option in --version -v -V -qversion; do 3384b85037dbSmrg { { ac_try="$ac_compiler $ac_option >&5" 3385b85037dbSmrgcase "(($ac_try" in 3386b85037dbSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3387b85037dbSmrg *) ac_try_echo=$ac_try;; 3388b85037dbSmrgesac 3389b85037dbSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3390b85037dbSmrg$as_echo "$ac_try_echo"; } >&5 3391b85037dbSmrg (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3392b85037dbSmrg ac_status=$? 3393b85037dbSmrg if test -s conftest.err; then 3394b85037dbSmrg sed '10a\ 3395b85037dbSmrg... rest of stderr output deleted ... 3396b85037dbSmrg 10q' conftest.err >conftest.er1 3397b85037dbSmrg cat conftest.er1 >&5 3398b85037dbSmrg fi 3399b85037dbSmrg rm -f conftest.er1 conftest.err 3400b85037dbSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3401b85037dbSmrg test $ac_status = 0; } 3402b85037dbSmrgdone 3403b85037dbSmrg 3404b85037dbSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3405b85037dbSmrg/* end confdefs.h. */ 3406b85037dbSmrg 3407b85037dbSmrgint 3408b85037dbSmrgmain () 3409b85037dbSmrg{ 3410b85037dbSmrg 3411b85037dbSmrg ; 3412b85037dbSmrg return 0; 3413b85037dbSmrg} 3414b85037dbSmrg_ACEOF 3415b85037dbSmrgac_clean_files_save=$ac_clean_files 3416b85037dbSmrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3417b85037dbSmrg# Try to create an executable without -o first, disregard a.out. 3418b85037dbSmrg# It will help us diagnose broken compilers, and finding out an intuition 3419b85037dbSmrg# of exeext. 3420b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3421b85037dbSmrg$as_echo_n "checking whether the C compiler works... " >&6; } 3422b85037dbSmrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3423b85037dbSmrg 3424b85037dbSmrg# The possible output files: 3425b85037dbSmrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3426b85037dbSmrg 3427b85037dbSmrgac_rmfiles= 3428b85037dbSmrgfor ac_file in $ac_files 3429b85037dbSmrgdo 3430b85037dbSmrg case $ac_file in 3431b85037dbSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3432b85037dbSmrg * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3433b85037dbSmrg esac 3434b85037dbSmrgdone 3435b85037dbSmrgrm -f $ac_rmfiles 3436b85037dbSmrg 3437b85037dbSmrgif { { ac_try="$ac_link_default" 3438b85037dbSmrgcase "(($ac_try" in 3439b85037dbSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3440b85037dbSmrg *) ac_try_echo=$ac_try;; 3441b85037dbSmrgesac 3442b85037dbSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3443b85037dbSmrg$as_echo "$ac_try_echo"; } >&5 3444b85037dbSmrg (eval "$ac_link_default") 2>&5 3445b85037dbSmrg ac_status=$? 3446b85037dbSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3447b85037dbSmrg test $ac_status = 0; }; then : 3448b85037dbSmrg # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3449b85037dbSmrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3450b85037dbSmrg# in a Makefile. We should not override ac_cv_exeext if it was cached, 3451b85037dbSmrg# so that the user can short-circuit this test for compilers unknown to 3452b85037dbSmrg# Autoconf. 3453b85037dbSmrgfor ac_file in $ac_files '' 3454b85037dbSmrgdo 3455b85037dbSmrg test -f "$ac_file" || continue 3456b85037dbSmrg case $ac_file in 3457b85037dbSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3458b85037dbSmrg ;; 3459b85037dbSmrg [ab].out ) 3460b85037dbSmrg # We found the default executable, but exeext='' is most 3461b85037dbSmrg # certainly right. 3462b85037dbSmrg break;; 3463b85037dbSmrg *.* ) 3464b85037dbSmrg if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3465b85037dbSmrg then :; else 3466b85037dbSmrg ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3467b85037dbSmrg fi 3468b85037dbSmrg # We set ac_cv_exeext here because the later test for it is not 3469b85037dbSmrg # safe: cross compilers may not add the suffix if given an `-o' 3470b85037dbSmrg # argument, so we may need to know it at that point already. 3471b85037dbSmrg # Even if this section looks crufty: it has the advantage of 3472b85037dbSmrg # actually working. 3473b85037dbSmrg break;; 3474b85037dbSmrg * ) 3475b85037dbSmrg break;; 3476b85037dbSmrg esac 3477b85037dbSmrgdone 3478b85037dbSmrgtest "$ac_cv_exeext" = no && ac_cv_exeext= 3479b85037dbSmrg 3480b85037dbSmrgelse 3481b85037dbSmrg ac_file='' 3482b85037dbSmrgfi 3483b85037dbSmrgif test -z "$ac_file"; then : 3484b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3485b85037dbSmrg$as_echo "no" >&6; } 3486b85037dbSmrg$as_echo "$as_me: failed program was:" >&5 3487b85037dbSmrgsed 's/^/| /' conftest.$ac_ext >&5 3488b85037dbSmrg 3489b85037dbSmrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3490b85037dbSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3491b85037dbSmrgas_fn_error 77 "C compiler cannot create executables 3492b85037dbSmrgSee \`config.log' for more details" "$LINENO" 5; } 3493b85037dbSmrgelse 3494b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3495b85037dbSmrg$as_echo "yes" >&6; } 3496b85037dbSmrgfi 3497b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3498b85037dbSmrg$as_echo_n "checking for C compiler default output file name... " >&6; } 3499b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3500b85037dbSmrg$as_echo "$ac_file" >&6; } 3501b85037dbSmrgac_exeext=$ac_cv_exeext 3502b85037dbSmrg 3503b85037dbSmrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3504b85037dbSmrgac_clean_files=$ac_clean_files_save 3505b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3506b85037dbSmrg$as_echo_n "checking for suffix of executables... " >&6; } 3507b85037dbSmrgif { { ac_try="$ac_link" 3508b85037dbSmrgcase "(($ac_try" in 3509b85037dbSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3510b85037dbSmrg *) ac_try_echo=$ac_try;; 3511b85037dbSmrgesac 3512b85037dbSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3513b85037dbSmrg$as_echo "$ac_try_echo"; } >&5 3514b85037dbSmrg (eval "$ac_link") 2>&5 3515b85037dbSmrg ac_status=$? 3516b85037dbSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3517b85037dbSmrg test $ac_status = 0; }; then : 3518b85037dbSmrg # If both `conftest.exe' and `conftest' are `present' (well, observable) 3519b85037dbSmrg# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3520b85037dbSmrg# work properly (i.e., refer to `conftest.exe'), while it won't with 3521b85037dbSmrg# `rm'. 3522b85037dbSmrgfor ac_file in conftest.exe conftest conftest.*; do 3523b85037dbSmrg test -f "$ac_file" || continue 3524b85037dbSmrg case $ac_file in 3525b85037dbSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3526b85037dbSmrg *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3527b85037dbSmrg break;; 3528b85037dbSmrg * ) break;; 3529b85037dbSmrg esac 3530b85037dbSmrgdone 3531b85037dbSmrgelse 3532b85037dbSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3533b85037dbSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3534b85037dbSmrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link 3535b85037dbSmrgSee \`config.log' for more details" "$LINENO" 5; } 3536b85037dbSmrgfi 3537b85037dbSmrgrm -f conftest conftest$ac_cv_exeext 3538b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3539b85037dbSmrg$as_echo "$ac_cv_exeext" >&6; } 3540b85037dbSmrg 3541b85037dbSmrgrm -f conftest.$ac_ext 3542b85037dbSmrgEXEEXT=$ac_cv_exeext 3543b85037dbSmrgac_exeext=$EXEEXT 3544b85037dbSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3545b85037dbSmrg/* end confdefs.h. */ 3546b85037dbSmrg#include <stdio.h> 3547b85037dbSmrgint 3548b85037dbSmrgmain () 3549b85037dbSmrg{ 3550b85037dbSmrgFILE *f = fopen ("conftest.out", "w"); 3551b85037dbSmrg return ferror (f) || fclose (f) != 0; 3552b85037dbSmrg 3553b85037dbSmrg ; 3554b85037dbSmrg return 0; 3555b85037dbSmrg} 3556b85037dbSmrg_ACEOF 3557b85037dbSmrgac_clean_files="$ac_clean_files conftest.out" 3558b85037dbSmrg# Check that the compiler produces executables we can run. If not, either 3559b85037dbSmrg# the compiler is broken, or we cross compile. 3560b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3561b85037dbSmrg$as_echo_n "checking whether we are cross compiling... " >&6; } 3562b85037dbSmrgif test "$cross_compiling" != yes; then 3563b85037dbSmrg { { ac_try="$ac_link" 3564b85037dbSmrgcase "(($ac_try" in 3565b85037dbSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3566b85037dbSmrg *) ac_try_echo=$ac_try;; 3567b85037dbSmrgesac 3568b85037dbSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3569b85037dbSmrg$as_echo "$ac_try_echo"; } >&5 3570b85037dbSmrg (eval "$ac_link") 2>&5 3571b85037dbSmrg ac_status=$? 3572b85037dbSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3573b85037dbSmrg test $ac_status = 0; } 3574b85037dbSmrg if { ac_try='./conftest$ac_cv_exeext' 3575b85037dbSmrg { { case "(($ac_try" in 3576b85037dbSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3577b85037dbSmrg *) ac_try_echo=$ac_try;; 3578b85037dbSmrgesac 3579b85037dbSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3580b85037dbSmrg$as_echo "$ac_try_echo"; } >&5 3581b85037dbSmrg (eval "$ac_try") 2>&5 3582b85037dbSmrg ac_status=$? 3583b85037dbSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3584b85037dbSmrg test $ac_status = 0; }; }; then 3585b85037dbSmrg cross_compiling=no 3586b85037dbSmrg else 3587b85037dbSmrg if test "$cross_compiling" = maybe; then 3588b85037dbSmrg cross_compiling=yes 3589b85037dbSmrg else 3590b85037dbSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3591b85037dbSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3592b85037dbSmrgas_fn_error $? "cannot run C compiled programs. 3593b85037dbSmrgIf you meant to cross compile, use \`--host'. 3594b85037dbSmrgSee \`config.log' for more details" "$LINENO" 5; } 3595b85037dbSmrg fi 3596b85037dbSmrg fi 3597b85037dbSmrgfi 3598b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3599b85037dbSmrg$as_echo "$cross_compiling" >&6; } 3600b85037dbSmrg 3601b85037dbSmrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3602b85037dbSmrgac_clean_files=$ac_clean_files_save 3603b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3604b85037dbSmrg$as_echo_n "checking for suffix of object files... " >&6; } 3605302b15bdSmrgif ${ac_cv_objext+:} false; then : 3606b85037dbSmrg $as_echo_n "(cached) " >&6 3607b85037dbSmrgelse 3608b85037dbSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3609b85037dbSmrg/* end confdefs.h. */ 3610b85037dbSmrg 3611b85037dbSmrgint 3612b85037dbSmrgmain () 3613b85037dbSmrg{ 3614b85037dbSmrg 3615b85037dbSmrg ; 3616b85037dbSmrg return 0; 3617b85037dbSmrg} 3618b85037dbSmrg_ACEOF 3619b85037dbSmrgrm -f conftest.o conftest.obj 3620b85037dbSmrgif { { ac_try="$ac_compile" 3621b85037dbSmrgcase "(($ac_try" in 3622b85037dbSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3623b85037dbSmrg *) ac_try_echo=$ac_try;; 3624b85037dbSmrgesac 3625b85037dbSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3626b85037dbSmrg$as_echo "$ac_try_echo"; } >&5 3627b85037dbSmrg (eval "$ac_compile") 2>&5 3628b85037dbSmrg ac_status=$? 3629b85037dbSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3630b85037dbSmrg test $ac_status = 0; }; then : 3631b85037dbSmrg for ac_file in conftest.o conftest.obj conftest.*; do 3632b85037dbSmrg test -f "$ac_file" || continue; 3633b85037dbSmrg case $ac_file in 3634b85037dbSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3635b85037dbSmrg *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3636b85037dbSmrg break;; 3637b85037dbSmrg esac 3638b85037dbSmrgdone 3639b85037dbSmrgelse 3640b85037dbSmrg $as_echo "$as_me: failed program was:" >&5 3641b85037dbSmrgsed 's/^/| /' conftest.$ac_ext >&5 3642b85037dbSmrg 3643b85037dbSmrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3644b85037dbSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3645b85037dbSmrgas_fn_error $? "cannot compute suffix of object files: cannot compile 3646b85037dbSmrgSee \`config.log' for more details" "$LINENO" 5; } 3647b85037dbSmrgfi 3648b85037dbSmrgrm -f conftest.$ac_cv_objext conftest.$ac_ext 3649b85037dbSmrgfi 3650b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3651b85037dbSmrg$as_echo "$ac_cv_objext" >&6; } 3652b85037dbSmrgOBJEXT=$ac_cv_objext 3653b85037dbSmrgac_objext=$OBJEXT 3654b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3655b85037dbSmrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3656302b15bdSmrgif ${ac_cv_c_compiler_gnu+:} false; then : 3657b85037dbSmrg $as_echo_n "(cached) " >&6 3658b85037dbSmrgelse 3659b85037dbSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3660b85037dbSmrg/* end confdefs.h. */ 3661b85037dbSmrg 3662b85037dbSmrgint 3663b85037dbSmrgmain () 3664b85037dbSmrg{ 3665b85037dbSmrg#ifndef __GNUC__ 3666b85037dbSmrg choke me 3667b85037dbSmrg#endif 3668b85037dbSmrg 3669b85037dbSmrg ; 3670b85037dbSmrg return 0; 3671b85037dbSmrg} 3672b85037dbSmrg_ACEOF 3673b85037dbSmrgif ac_fn_c_try_compile "$LINENO"; then : 3674b85037dbSmrg ac_compiler_gnu=yes 3675b85037dbSmrgelse 3676b85037dbSmrg ac_compiler_gnu=no 3677b85037dbSmrgfi 3678b85037dbSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3679b85037dbSmrgac_cv_c_compiler_gnu=$ac_compiler_gnu 3680b85037dbSmrg 3681b85037dbSmrgfi 3682b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3683b85037dbSmrg$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3684b85037dbSmrgif test $ac_compiler_gnu = yes; then 3685b85037dbSmrg GCC=yes 3686b85037dbSmrgelse 3687b85037dbSmrg GCC= 3688b85037dbSmrgfi 3689b85037dbSmrgac_test_CFLAGS=${CFLAGS+set} 3690b85037dbSmrgac_save_CFLAGS=$CFLAGS 3691b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3692b85037dbSmrg$as_echo_n "checking whether $CC accepts -g... " >&6; } 3693302b15bdSmrgif ${ac_cv_prog_cc_g+:} false; then : 3694b85037dbSmrg $as_echo_n "(cached) " >&6 3695b85037dbSmrgelse 3696b85037dbSmrg ac_save_c_werror_flag=$ac_c_werror_flag 3697b85037dbSmrg ac_c_werror_flag=yes 3698b85037dbSmrg ac_cv_prog_cc_g=no 3699b85037dbSmrg CFLAGS="-g" 3700b85037dbSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3701b85037dbSmrg/* end confdefs.h. */ 3702b85037dbSmrg 3703b85037dbSmrgint 3704b85037dbSmrgmain () 3705b85037dbSmrg{ 3706b85037dbSmrg 3707b85037dbSmrg ; 3708b85037dbSmrg return 0; 3709b85037dbSmrg} 3710b85037dbSmrg_ACEOF 3711b85037dbSmrgif ac_fn_c_try_compile "$LINENO"; then : 3712b85037dbSmrg ac_cv_prog_cc_g=yes 3713b85037dbSmrgelse 3714b85037dbSmrg CFLAGS="" 3715b85037dbSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3716b85037dbSmrg/* end confdefs.h. */ 3717b85037dbSmrg 3718b85037dbSmrgint 3719b85037dbSmrgmain () 3720b85037dbSmrg{ 3721b85037dbSmrg 3722b85037dbSmrg ; 3723b85037dbSmrg return 0; 3724b85037dbSmrg} 3725b85037dbSmrg_ACEOF 3726b85037dbSmrgif ac_fn_c_try_compile "$LINENO"; then : 3727b85037dbSmrg 3728b85037dbSmrgelse 3729b85037dbSmrg ac_c_werror_flag=$ac_save_c_werror_flag 3730b85037dbSmrg CFLAGS="-g" 3731b85037dbSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3732b85037dbSmrg/* end confdefs.h. */ 3733b85037dbSmrg 3734b85037dbSmrgint 3735b85037dbSmrgmain () 3736b85037dbSmrg{ 3737b85037dbSmrg 3738b85037dbSmrg ; 3739b85037dbSmrg return 0; 3740b85037dbSmrg} 3741b85037dbSmrg_ACEOF 3742b85037dbSmrgif ac_fn_c_try_compile "$LINENO"; then : 3743b85037dbSmrg ac_cv_prog_cc_g=yes 3744b85037dbSmrgfi 3745b85037dbSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3746b85037dbSmrgfi 3747b85037dbSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3748b85037dbSmrgfi 3749b85037dbSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3750b85037dbSmrg ac_c_werror_flag=$ac_save_c_werror_flag 3751b85037dbSmrgfi 3752b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3753b85037dbSmrg$as_echo "$ac_cv_prog_cc_g" >&6; } 3754b85037dbSmrgif test "$ac_test_CFLAGS" = set; then 3755b85037dbSmrg CFLAGS=$ac_save_CFLAGS 3756b85037dbSmrgelif test $ac_cv_prog_cc_g = yes; then 3757b85037dbSmrg if test "$GCC" = yes; then 3758b85037dbSmrg CFLAGS="-g -O2" 3759b85037dbSmrg else 3760b85037dbSmrg CFLAGS="-g" 3761b85037dbSmrg fi 3762b85037dbSmrgelse 3763b85037dbSmrg if test "$GCC" = yes; then 3764b85037dbSmrg CFLAGS="-O2" 3765b85037dbSmrg else 3766b85037dbSmrg CFLAGS= 3767b85037dbSmrg fi 3768b85037dbSmrgfi 3769b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3770b85037dbSmrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3771302b15bdSmrgif ${ac_cv_prog_cc_c89+:} false; then : 3772b85037dbSmrg $as_echo_n "(cached) " >&6 3773b85037dbSmrgelse 3774b85037dbSmrg ac_cv_prog_cc_c89=no 3775b85037dbSmrgac_save_CC=$CC 3776b85037dbSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3777b85037dbSmrg/* end confdefs.h. */ 3778b85037dbSmrg#include <stdarg.h> 3779b85037dbSmrg#include <stdio.h> 378028515619Smrgstruct stat; 3781b85037dbSmrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3782b85037dbSmrgstruct buf { int x; }; 3783b85037dbSmrgFILE * (*rcsopen) (struct buf *, struct stat *, int); 3784b85037dbSmrgstatic char *e (p, i) 3785b85037dbSmrg char **p; 3786b85037dbSmrg int i; 3787b85037dbSmrg{ 3788b85037dbSmrg return p[i]; 3789b85037dbSmrg} 3790b85037dbSmrgstatic char *f (char * (*g) (char **, int), char **p, ...) 3791b85037dbSmrg{ 3792b85037dbSmrg char *s; 3793b85037dbSmrg va_list v; 3794b85037dbSmrg va_start (v,p); 3795b85037dbSmrg s = g (p, va_arg (v,int)); 3796b85037dbSmrg va_end (v); 3797b85037dbSmrg return s; 3798b85037dbSmrg} 3799b85037dbSmrg 3800b85037dbSmrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3801b85037dbSmrg function prototypes and stuff, but not '\xHH' hex character constants. 3802b85037dbSmrg These don't provoke an error unfortunately, instead are silently treated 3803b85037dbSmrg as 'x'. The following induces an error, until -std is added to get 3804b85037dbSmrg proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3805b85037dbSmrg array size at least. It's necessary to write '\x00'==0 to get something 3806b85037dbSmrg that's true only with -std. */ 3807b85037dbSmrgint osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3808b85037dbSmrg 3809b85037dbSmrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3810b85037dbSmrg inside strings and character constants. */ 3811b85037dbSmrg#define FOO(x) 'x' 3812b85037dbSmrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3813b85037dbSmrg 3814b85037dbSmrgint test (int i, double x); 3815b85037dbSmrgstruct s1 {int (*f) (int a);}; 3816b85037dbSmrgstruct s2 {int (*f) (double a);}; 3817b85037dbSmrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3818b85037dbSmrgint argc; 3819b85037dbSmrgchar **argv; 3820b85037dbSmrgint 3821b85037dbSmrgmain () 3822b85037dbSmrg{ 3823b85037dbSmrgreturn f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3824b85037dbSmrg ; 3825b85037dbSmrg return 0; 3826b85037dbSmrg} 3827b85037dbSmrg_ACEOF 3828b85037dbSmrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3829b85037dbSmrg -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3830b85037dbSmrgdo 3831b85037dbSmrg CC="$ac_save_CC $ac_arg" 3832b85037dbSmrg if ac_fn_c_try_compile "$LINENO"; then : 3833b85037dbSmrg ac_cv_prog_cc_c89=$ac_arg 3834b85037dbSmrgfi 3835b85037dbSmrgrm -f core conftest.err conftest.$ac_objext 3836b85037dbSmrg test "x$ac_cv_prog_cc_c89" != "xno" && break 3837b85037dbSmrgdone 3838b85037dbSmrgrm -f conftest.$ac_ext 3839b85037dbSmrgCC=$ac_save_CC 3840b85037dbSmrg 3841b85037dbSmrgfi 3842b85037dbSmrg# AC_CACHE_VAL 3843b85037dbSmrgcase "x$ac_cv_prog_cc_c89" in 3844b85037dbSmrg x) 3845b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3846b85037dbSmrg$as_echo "none needed" >&6; } ;; 3847b85037dbSmrg xno) 3848b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3849b85037dbSmrg$as_echo "unsupported" >&6; } ;; 3850b85037dbSmrg *) 3851b85037dbSmrg CC="$CC $ac_cv_prog_cc_c89" 3852b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3853b85037dbSmrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3854b85037dbSmrgesac 3855b85037dbSmrgif test "x$ac_cv_prog_cc_c89" != xno; then : 3856b85037dbSmrg 3857b85037dbSmrgfi 3858b85037dbSmrg 3859b85037dbSmrgac_ext=c 3860b85037dbSmrgac_cpp='$CPP $CPPFLAGS' 3861b85037dbSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3862b85037dbSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3863b85037dbSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 3864b85037dbSmrg 3865b85037dbSmrgdepcc="$CC" am_compiler_list= 3866b85037dbSmrg 3867b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3868b85037dbSmrg$as_echo_n "checking dependency style of $depcc... " >&6; } 3869302b15bdSmrgif ${am_cv_CC_dependencies_compiler_type+:} false; then : 3870b85037dbSmrg $as_echo_n "(cached) " >&6 3871b85037dbSmrgelse 3872b85037dbSmrg if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3873b85037dbSmrg # We make a subdir and do the tests there. Otherwise we can end up 3874b85037dbSmrg # making bogus files that we don't know about and never remove. For 3875b85037dbSmrg # instance it was reported that on HP-UX the gcc test will end up 387628515619Smrg # making a dummy file named 'D' -- because '-MD' means "put the output 387728515619Smrg # in D". 387828515619Smrg rm -rf conftest.dir 3879b85037dbSmrg mkdir conftest.dir 3880b85037dbSmrg # Copy depcomp to subdir because otherwise we won't find it if we're 3881b85037dbSmrg # using a relative directory. 3882b85037dbSmrg cp "$am_depcomp" conftest.dir 3883b85037dbSmrg cd conftest.dir 3884b85037dbSmrg # We will build objects and dependencies in a subdirectory because 3885b85037dbSmrg # it helps to detect inapplicable dependency modes. For instance 3886b85037dbSmrg # both Tru64's cc and ICC support -MD to output dependencies as a 3887b85037dbSmrg # side effect of compilation, but ICC will put the dependencies in 3888b85037dbSmrg # the current directory while Tru64 will put them in the object 3889b85037dbSmrg # directory. 3890b85037dbSmrg mkdir sub 3891b85037dbSmrg 3892b85037dbSmrg am_cv_CC_dependencies_compiler_type=none 3893b85037dbSmrg if test "$am_compiler_list" = ""; then 3894b85037dbSmrg am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3895b85037dbSmrg fi 3896b85037dbSmrg am__universal=false 3897b85037dbSmrg case " $depcc " in #( 3898b85037dbSmrg *\ -arch\ *\ -arch\ *) am__universal=true ;; 3899b85037dbSmrg esac 3900b85037dbSmrg 3901b85037dbSmrg for depmode in $am_compiler_list; do 3902b85037dbSmrg # Setup a source with many dependencies, because some compilers 3903b85037dbSmrg # like to wrap large dependency lists on column 80 (with \), and 3904b85037dbSmrg # we should not choose a depcomp mode which is confused by this. 3905b85037dbSmrg # 3906b85037dbSmrg # We need to recreate these files for each test, as the compiler may 3907b85037dbSmrg # overwrite some of them when testing with obscure command lines. 3908b85037dbSmrg # This happens at least with the AIX C compiler. 3909b85037dbSmrg : > sub/conftest.c 3910b85037dbSmrg for i in 1 2 3 4 5 6; do 3911b85037dbSmrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 391228515619Smrg # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 391328515619Smrg # Solaris 10 /bin/sh. 391428515619Smrg echo '/* dummy */' > sub/conftst$i.h 3915b85037dbSmrg done 3916b85037dbSmrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3917b85037dbSmrg 391828515619Smrg # We check with '-c' and '-o' for the sake of the "dashmstdout" 3919b85037dbSmrg # mode. It turns out that the SunPro C++ compiler does not properly 392028515619Smrg # handle '-M -o', and we need to detect this. Also, some Intel 392128515619Smrg # versions had trouble with output in subdirs. 3922b85037dbSmrg am__obj=sub/conftest.${OBJEXT-o} 3923b85037dbSmrg am__minus_obj="-o $am__obj" 3924b85037dbSmrg case $depmode in 3925b85037dbSmrg gcc) 3926b85037dbSmrg # This depmode causes a compiler race in universal mode. 3927b85037dbSmrg test "$am__universal" = false || continue 3928b85037dbSmrg ;; 3929b85037dbSmrg nosideeffect) 393028515619Smrg # After this tag, mechanisms are not by side-effect, so they'll 393128515619Smrg # only be used when explicitly requested. 3932b85037dbSmrg if test "x$enable_dependency_tracking" = xyes; then 3933b85037dbSmrg continue 3934b85037dbSmrg else 3935b85037dbSmrg break 3936b85037dbSmrg fi 3937b85037dbSmrg ;; 393828515619Smrg msvc7 | msvc7msys | msvisualcpp | msvcmsys) 393928515619Smrg # This compiler won't grok '-c -o', but also, the minuso test has 3940b85037dbSmrg # not run yet. These depmodes are late enough in the game, and 3941b85037dbSmrg # so weak that their functioning should not be impacted. 3942b85037dbSmrg am__obj=conftest.${OBJEXT-o} 3943b85037dbSmrg am__minus_obj= 3944b85037dbSmrg ;; 3945b85037dbSmrg none) break ;; 3946b85037dbSmrg esac 3947b85037dbSmrg if depmode=$depmode \ 3948b85037dbSmrg source=sub/conftest.c object=$am__obj \ 3949b85037dbSmrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3950b85037dbSmrg $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3951b85037dbSmrg >/dev/null 2>conftest.err && 3952b85037dbSmrg grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3953b85037dbSmrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3954b85037dbSmrg grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3955b85037dbSmrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3956b85037dbSmrg # icc doesn't choke on unknown options, it will just issue warnings 3957b85037dbSmrg # or remarks (even with -Werror). So we grep stderr for any message 3958b85037dbSmrg # that says an option was ignored or not supported. 3959b85037dbSmrg # When given -MP, icc 7.0 and 7.1 complain thusly: 3960b85037dbSmrg # icc: Command line warning: ignoring option '-M'; no argument required 3961b85037dbSmrg # The diagnosis changed in icc 8.0: 3962b85037dbSmrg # icc: Command line remark: option '-MP' not supported 3963b85037dbSmrg if (grep 'ignoring option' conftest.err || 3964b85037dbSmrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3965b85037dbSmrg am_cv_CC_dependencies_compiler_type=$depmode 3966b85037dbSmrg break 3967b85037dbSmrg fi 3968b85037dbSmrg fi 3969b85037dbSmrg done 3970b85037dbSmrg 3971b85037dbSmrg cd .. 3972b85037dbSmrg rm -rf conftest.dir 3973b85037dbSmrgelse 3974b85037dbSmrg am_cv_CC_dependencies_compiler_type=none 3975b85037dbSmrgfi 3976b85037dbSmrg 3977b85037dbSmrgfi 3978b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3979b85037dbSmrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3980b85037dbSmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3981b85037dbSmrg 3982b85037dbSmrg if 3983b85037dbSmrg test "x$enable_dependency_tracking" != xno \ 3984b85037dbSmrg && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3985b85037dbSmrg am__fastdepCC_TRUE= 3986b85037dbSmrg am__fastdepCC_FALSE='#' 3987b85037dbSmrgelse 3988b85037dbSmrg am__fastdepCC_TRUE='#' 3989b85037dbSmrg am__fastdepCC_FALSE= 3990b85037dbSmrgfi 3991b85037dbSmrg 3992b85037dbSmrg 3993b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 3994b85037dbSmrg$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3995302b15bdSmrgif ${ac_cv_path_SED+:} false; then : 3996b85037dbSmrg $as_echo_n "(cached) " >&6 3997b85037dbSmrgelse 3998b85037dbSmrg ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 3999b85037dbSmrg for ac_i in 1 2 3 4 5 6 7; do 4000b85037dbSmrg ac_script="$ac_script$as_nl$ac_script" 4001b85037dbSmrg done 4002b85037dbSmrg echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4003b85037dbSmrg { ac_script=; unset ac_script;} 4004b85037dbSmrg if test -z "$SED"; then 4005b85037dbSmrg ac_path_SED_found=false 4006b85037dbSmrg # Loop through the user's path and test for each of PROGNAME-LIST 4007b85037dbSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4008b85037dbSmrgfor as_dir in $PATH 4009b85037dbSmrgdo 4010b85037dbSmrg IFS=$as_save_IFS 4011b85037dbSmrg test -z "$as_dir" && as_dir=. 4012b85037dbSmrg for ac_prog in sed gsed; do 4013b85037dbSmrg for ac_exec_ext in '' $ac_executable_extensions; do 4014b85037dbSmrg ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 401528515619Smrg as_fn_executable_p "$ac_path_SED" || continue 4016b85037dbSmrg# Check for GNU ac_path_SED and select it if it is found. 4017b85037dbSmrg # Check for GNU $ac_path_SED 4018b85037dbSmrgcase `"$ac_path_SED" --version 2>&1` in 4019b85037dbSmrg*GNU*) 4020b85037dbSmrg ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4021b85037dbSmrg*) 4022b85037dbSmrg ac_count=0 4023b85037dbSmrg $as_echo_n 0123456789 >"conftest.in" 4024b85037dbSmrg while : 4025b85037dbSmrg do 4026b85037dbSmrg cat "conftest.in" "conftest.in" >"conftest.tmp" 4027b85037dbSmrg mv "conftest.tmp" "conftest.in" 4028b85037dbSmrg cp "conftest.in" "conftest.nl" 4029b85037dbSmrg $as_echo '' >> "conftest.nl" 4030b85037dbSmrg "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4031b85037dbSmrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4032b85037dbSmrg as_fn_arith $ac_count + 1 && ac_count=$as_val 4033b85037dbSmrg if test $ac_count -gt ${ac_path_SED_max-0}; then 4034b85037dbSmrg # Best one so far, save it but keep looking for a better one 4035b85037dbSmrg ac_cv_path_SED="$ac_path_SED" 4036b85037dbSmrg ac_path_SED_max=$ac_count 4037b85037dbSmrg fi 4038b85037dbSmrg # 10*(2^10) chars as input seems more than enough 4039b85037dbSmrg test $ac_count -gt 10 && break 4040b85037dbSmrg done 4041b85037dbSmrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4042b85037dbSmrgesac 4043b85037dbSmrg 4044b85037dbSmrg $ac_path_SED_found && break 3 4045b85037dbSmrg done 4046b85037dbSmrg done 4047b85037dbSmrg done 4048b85037dbSmrgIFS=$as_save_IFS 4049b85037dbSmrg if test -z "$ac_cv_path_SED"; then 4050b85037dbSmrg as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4051b85037dbSmrg fi 4052b85037dbSmrgelse 4053b85037dbSmrg ac_cv_path_SED=$SED 4054b85037dbSmrgfi 4055b85037dbSmrg 4056b85037dbSmrgfi 4057b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4058b85037dbSmrg$as_echo "$ac_cv_path_SED" >&6; } 4059b85037dbSmrg SED="$ac_cv_path_SED" 4060b85037dbSmrg rm -f conftest.sed 4061b85037dbSmrg 4062b85037dbSmrgtest -z "$SED" && SED=sed 4063b85037dbSmrgXsed="$SED -e 1s/^X//" 4064b85037dbSmrg 4065b85037dbSmrg 4066b85037dbSmrg 4067b85037dbSmrg 4068b85037dbSmrg 4069b85037dbSmrg 4070b85037dbSmrg 4071b85037dbSmrg 4072b85037dbSmrg 4073b85037dbSmrg 4074b85037dbSmrg 4075b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4076b85037dbSmrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4077302b15bdSmrgif ${ac_cv_path_GREP+:} false; then : 4078b85037dbSmrg $as_echo_n "(cached) " >&6 4079b85037dbSmrgelse 4080b85037dbSmrg if test -z "$GREP"; then 4081b85037dbSmrg ac_path_GREP_found=false 4082b85037dbSmrg # Loop through the user's path and test for each of PROGNAME-LIST 4083b85037dbSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4084b85037dbSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4085b85037dbSmrgdo 4086b85037dbSmrg IFS=$as_save_IFS 4087b85037dbSmrg test -z "$as_dir" && as_dir=. 4088b85037dbSmrg for ac_prog in grep ggrep; do 4089b85037dbSmrg for ac_exec_ext in '' $ac_executable_extensions; do 4090b85037dbSmrg ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 409128515619Smrg as_fn_executable_p "$ac_path_GREP" || continue 4092b85037dbSmrg# Check for GNU ac_path_GREP and select it if it is found. 4093b85037dbSmrg # Check for GNU $ac_path_GREP 4094b85037dbSmrgcase `"$ac_path_GREP" --version 2>&1` in 4095b85037dbSmrg*GNU*) 4096b85037dbSmrg ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4097b85037dbSmrg*) 4098b85037dbSmrg ac_count=0 4099b85037dbSmrg $as_echo_n 0123456789 >"conftest.in" 4100b85037dbSmrg while : 4101b85037dbSmrg do 4102b85037dbSmrg cat "conftest.in" "conftest.in" >"conftest.tmp" 4103b85037dbSmrg mv "conftest.tmp" "conftest.in" 4104b85037dbSmrg cp "conftest.in" "conftest.nl" 4105b85037dbSmrg $as_echo 'GREP' >> "conftest.nl" 4106b85037dbSmrg "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4107b85037dbSmrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4108b85037dbSmrg as_fn_arith $ac_count + 1 && ac_count=$as_val 4109b85037dbSmrg if test $ac_count -gt ${ac_path_GREP_max-0}; then 4110b85037dbSmrg # Best one so far, save it but keep looking for a better one 4111b85037dbSmrg ac_cv_path_GREP="$ac_path_GREP" 4112b85037dbSmrg ac_path_GREP_max=$ac_count 4113b85037dbSmrg fi 4114b85037dbSmrg # 10*(2^10) chars as input seems more than enough 4115b85037dbSmrg test $ac_count -gt 10 && break 4116b85037dbSmrg done 4117b85037dbSmrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4118b85037dbSmrgesac 4119b85037dbSmrg 4120b85037dbSmrg $ac_path_GREP_found && break 3 4121b85037dbSmrg done 4122b85037dbSmrg done 4123b85037dbSmrg done 4124b85037dbSmrgIFS=$as_save_IFS 4125b85037dbSmrg if test -z "$ac_cv_path_GREP"; then 4126b85037dbSmrg as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4127b85037dbSmrg fi 4128b85037dbSmrgelse 4129b85037dbSmrg ac_cv_path_GREP=$GREP 4130b85037dbSmrgfi 4131b85037dbSmrg 4132b85037dbSmrgfi 4133b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4134b85037dbSmrg$as_echo "$ac_cv_path_GREP" >&6; } 4135b85037dbSmrg GREP="$ac_cv_path_GREP" 4136b85037dbSmrg 4137b85037dbSmrg 4138b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4139b85037dbSmrg$as_echo_n "checking for egrep... " >&6; } 4140302b15bdSmrgif ${ac_cv_path_EGREP+:} false; then : 4141b85037dbSmrg $as_echo_n "(cached) " >&6 4142b85037dbSmrgelse 4143b85037dbSmrg if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4144b85037dbSmrg then ac_cv_path_EGREP="$GREP -E" 4145b85037dbSmrg else 4146b85037dbSmrg if test -z "$EGREP"; then 4147b85037dbSmrg ac_path_EGREP_found=false 4148b85037dbSmrg # Loop through the user's path and test for each of PROGNAME-LIST 4149b85037dbSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4150b85037dbSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4151b85037dbSmrgdo 4152b85037dbSmrg IFS=$as_save_IFS 4153b85037dbSmrg test -z "$as_dir" && as_dir=. 4154b85037dbSmrg for ac_prog in egrep; do 4155b85037dbSmrg for ac_exec_ext in '' $ac_executable_extensions; do 4156b85037dbSmrg ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 415728515619Smrg as_fn_executable_p "$ac_path_EGREP" || continue 4158b85037dbSmrg# Check for GNU ac_path_EGREP and select it if it is found. 4159b85037dbSmrg # Check for GNU $ac_path_EGREP 4160b85037dbSmrgcase `"$ac_path_EGREP" --version 2>&1` in 4161b85037dbSmrg*GNU*) 4162b85037dbSmrg ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4163b85037dbSmrg*) 4164b85037dbSmrg ac_count=0 4165b85037dbSmrg $as_echo_n 0123456789 >"conftest.in" 4166b85037dbSmrg while : 4167b85037dbSmrg do 4168b85037dbSmrg cat "conftest.in" "conftest.in" >"conftest.tmp" 4169b85037dbSmrg mv "conftest.tmp" "conftest.in" 4170b85037dbSmrg cp "conftest.in" "conftest.nl" 4171b85037dbSmrg $as_echo 'EGREP' >> "conftest.nl" 4172b85037dbSmrg "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4173b85037dbSmrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4174b85037dbSmrg as_fn_arith $ac_count + 1 && ac_count=$as_val 4175b85037dbSmrg if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4176b85037dbSmrg # Best one so far, save it but keep looking for a better one 4177b85037dbSmrg ac_cv_path_EGREP="$ac_path_EGREP" 4178b85037dbSmrg ac_path_EGREP_max=$ac_count 4179b85037dbSmrg fi 4180b85037dbSmrg # 10*(2^10) chars as input seems more than enough 4181b85037dbSmrg test $ac_count -gt 10 && break 4182b85037dbSmrg done 4183b85037dbSmrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4184b85037dbSmrgesac 4185b85037dbSmrg 4186b85037dbSmrg $ac_path_EGREP_found && break 3 4187b85037dbSmrg done 4188b85037dbSmrg done 4189b85037dbSmrg done 4190b85037dbSmrgIFS=$as_save_IFS 4191b85037dbSmrg if test -z "$ac_cv_path_EGREP"; then 4192b85037dbSmrg as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4193b85037dbSmrg fi 4194b85037dbSmrgelse 4195b85037dbSmrg ac_cv_path_EGREP=$EGREP 4196b85037dbSmrgfi 4197b85037dbSmrg 4198b85037dbSmrg fi 4199b85037dbSmrgfi 4200b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4201b85037dbSmrg$as_echo "$ac_cv_path_EGREP" >&6; } 4202b85037dbSmrg EGREP="$ac_cv_path_EGREP" 4203b85037dbSmrg 4204b85037dbSmrg 4205b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4206b85037dbSmrg$as_echo_n "checking for fgrep... " >&6; } 4207302b15bdSmrgif ${ac_cv_path_FGREP+:} false; then : 4208b85037dbSmrg $as_echo_n "(cached) " >&6 4209b85037dbSmrgelse 4210b85037dbSmrg if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4211b85037dbSmrg then ac_cv_path_FGREP="$GREP -F" 4212b85037dbSmrg else 4213b85037dbSmrg if test -z "$FGREP"; then 4214b85037dbSmrg ac_path_FGREP_found=false 4215b85037dbSmrg # Loop through the user's path and test for each of PROGNAME-LIST 4216b85037dbSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4217b85037dbSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4218b85037dbSmrgdo 4219b85037dbSmrg IFS=$as_save_IFS 4220b85037dbSmrg test -z "$as_dir" && as_dir=. 4221b85037dbSmrg for ac_prog in fgrep; do 4222b85037dbSmrg for ac_exec_ext in '' $ac_executable_extensions; do 4223b85037dbSmrg ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 422428515619Smrg as_fn_executable_p "$ac_path_FGREP" || continue 4225b85037dbSmrg# Check for GNU ac_path_FGREP and select it if it is found. 4226b85037dbSmrg # Check for GNU $ac_path_FGREP 4227b85037dbSmrgcase `"$ac_path_FGREP" --version 2>&1` in 4228b85037dbSmrg*GNU*) 4229b85037dbSmrg ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4230b85037dbSmrg*) 4231b85037dbSmrg ac_count=0 4232b85037dbSmrg $as_echo_n 0123456789 >"conftest.in" 4233b85037dbSmrg while : 4234b85037dbSmrg do 4235b85037dbSmrg cat "conftest.in" "conftest.in" >"conftest.tmp" 4236b85037dbSmrg mv "conftest.tmp" "conftest.in" 4237b85037dbSmrg cp "conftest.in" "conftest.nl" 4238b85037dbSmrg $as_echo 'FGREP' >> "conftest.nl" 4239b85037dbSmrg "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4240b85037dbSmrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4241b85037dbSmrg as_fn_arith $ac_count + 1 && ac_count=$as_val 4242b85037dbSmrg if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4243b85037dbSmrg # Best one so far, save it but keep looking for a better one 4244b85037dbSmrg ac_cv_path_FGREP="$ac_path_FGREP" 4245b85037dbSmrg ac_path_FGREP_max=$ac_count 4246b85037dbSmrg fi 4247b85037dbSmrg # 10*(2^10) chars as input seems more than enough 4248b85037dbSmrg test $ac_count -gt 10 && break 4249b85037dbSmrg done 4250b85037dbSmrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4251b85037dbSmrgesac 4252b85037dbSmrg 4253b85037dbSmrg $ac_path_FGREP_found && break 3 4254b85037dbSmrg done 4255b85037dbSmrg done 4256b85037dbSmrg done 4257b85037dbSmrgIFS=$as_save_IFS 4258b85037dbSmrg if test -z "$ac_cv_path_FGREP"; then 4259b85037dbSmrg as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4260b85037dbSmrg fi 4261b85037dbSmrgelse 4262b85037dbSmrg ac_cv_path_FGREP=$FGREP 4263b85037dbSmrgfi 4264b85037dbSmrg 4265b85037dbSmrg fi 4266b85037dbSmrgfi 4267b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4268b85037dbSmrg$as_echo "$ac_cv_path_FGREP" >&6; } 4269b85037dbSmrg FGREP="$ac_cv_path_FGREP" 4270b85037dbSmrg 4271b85037dbSmrg 4272b85037dbSmrgtest -z "$GREP" && GREP=grep 4273b85037dbSmrg 4274b85037dbSmrg 4275b85037dbSmrg 4276b85037dbSmrg 4277b85037dbSmrg 4278b85037dbSmrg 4279b85037dbSmrg 4280b85037dbSmrg 4281b85037dbSmrg 4282b85037dbSmrg 4283b85037dbSmrg 4284b85037dbSmrg 4285b85037dbSmrg 4286b85037dbSmrg 4287b85037dbSmrg 4288b85037dbSmrg 4289b85037dbSmrg 4290b85037dbSmrg 4291b85037dbSmrg 4292b85037dbSmrg# Check whether --with-gnu-ld was given. 4293b85037dbSmrgif test "${with_gnu_ld+set}" = set; then : 4294b85037dbSmrg withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4295b85037dbSmrgelse 4296b85037dbSmrg with_gnu_ld=no 4297b85037dbSmrgfi 4298b85037dbSmrg 4299b85037dbSmrgac_prog=ld 4300b85037dbSmrgif test "$GCC" = yes; then 4301b85037dbSmrg # Check if gcc -print-prog-name=ld gives a path. 4302b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4303b85037dbSmrg$as_echo_n "checking for ld used by $CC... " >&6; } 4304b85037dbSmrg case $host in 4305b85037dbSmrg *-*-mingw*) 4306b85037dbSmrg # gcc leaves a trailing carriage return which upsets mingw 4307b85037dbSmrg ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4308b85037dbSmrg *) 4309b85037dbSmrg ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4310b85037dbSmrg esac 4311b85037dbSmrg case $ac_prog in 4312b85037dbSmrg # Accept absolute paths. 4313b85037dbSmrg [\\/]* | ?:[\\/]*) 4314b85037dbSmrg re_direlt='/[^/][^/]*/\.\./' 4315b85037dbSmrg # Canonicalize the pathname of ld 4316b85037dbSmrg ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4317b85037dbSmrg while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4318b85037dbSmrg ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4319b85037dbSmrg done 4320b85037dbSmrg test -z "$LD" && LD="$ac_prog" 4321b85037dbSmrg ;; 4322b85037dbSmrg "") 4323b85037dbSmrg # If it fails, then pretend we aren't using GCC. 4324b85037dbSmrg ac_prog=ld 4325b85037dbSmrg ;; 4326b85037dbSmrg *) 4327b85037dbSmrg # If it is relative, then search for the first ld in PATH. 4328b85037dbSmrg with_gnu_ld=unknown 4329b85037dbSmrg ;; 4330b85037dbSmrg esac 4331b85037dbSmrgelif test "$with_gnu_ld" = yes; then 4332b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4333b85037dbSmrg$as_echo_n "checking for GNU ld... " >&6; } 4334b85037dbSmrgelse 4335b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4336b85037dbSmrg$as_echo_n "checking for non-GNU ld... " >&6; } 4337b85037dbSmrgfi 4338302b15bdSmrgif ${lt_cv_path_LD+:} false; then : 4339b85037dbSmrg $as_echo_n "(cached) " >&6 4340b85037dbSmrgelse 4341b85037dbSmrg if test -z "$LD"; then 4342b85037dbSmrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4343b85037dbSmrg for ac_dir in $PATH; do 4344b85037dbSmrg IFS="$lt_save_ifs" 4345b85037dbSmrg test -z "$ac_dir" && ac_dir=. 4346b85037dbSmrg if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4347b85037dbSmrg lt_cv_path_LD="$ac_dir/$ac_prog" 4348b85037dbSmrg # Check to see if the program is GNU ld. I'd rather use --version, 4349b85037dbSmrg # but apparently some variants of GNU ld only accept -v. 4350b85037dbSmrg # Break only if it was the GNU/non-GNU ld that we prefer. 4351b85037dbSmrg case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4352b85037dbSmrg *GNU* | *'with BFD'*) 4353b85037dbSmrg test "$with_gnu_ld" != no && break 4354b85037dbSmrg ;; 4355b85037dbSmrg *) 4356b85037dbSmrg test "$with_gnu_ld" != yes && break 4357b85037dbSmrg ;; 4358b85037dbSmrg esac 4359b85037dbSmrg fi 4360b85037dbSmrg done 4361b85037dbSmrg IFS="$lt_save_ifs" 4362b85037dbSmrgelse 4363b85037dbSmrg lt_cv_path_LD="$LD" # Let the user override the test with a path. 4364b85037dbSmrgfi 4365b85037dbSmrgfi 4366b85037dbSmrg 4367b85037dbSmrgLD="$lt_cv_path_LD" 4368b85037dbSmrgif test -n "$LD"; then 4369b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4370b85037dbSmrg$as_echo "$LD" >&6; } 4371b85037dbSmrgelse 4372b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4373b85037dbSmrg$as_echo "no" >&6; } 4374b85037dbSmrgfi 4375b85037dbSmrgtest -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4376b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4377b85037dbSmrg$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4378302b15bdSmrgif ${lt_cv_prog_gnu_ld+:} false; then : 4379b85037dbSmrg $as_echo_n "(cached) " >&6 4380b85037dbSmrgelse 4381b85037dbSmrg # I'd rather use --version here, but apparently some GNU lds only accept -v. 4382b85037dbSmrgcase `$LD -v 2>&1 </dev/null` in 4383b85037dbSmrg*GNU* | *'with BFD'*) 4384b85037dbSmrg lt_cv_prog_gnu_ld=yes 4385b85037dbSmrg ;; 4386b85037dbSmrg*) 4387b85037dbSmrg lt_cv_prog_gnu_ld=no 4388b85037dbSmrg ;; 4389b85037dbSmrgesac 4390b85037dbSmrgfi 4391b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4392b85037dbSmrg$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4393b85037dbSmrgwith_gnu_ld=$lt_cv_prog_gnu_ld 4394b85037dbSmrg 4395b85037dbSmrg 4396b85037dbSmrg 4397b85037dbSmrg 4398b85037dbSmrg 4399b85037dbSmrg 4400b85037dbSmrg 4401b85037dbSmrg 4402b85037dbSmrg 4403b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4404b85037dbSmrg$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4405302b15bdSmrgif ${lt_cv_path_NM+:} false; then : 4406b85037dbSmrg $as_echo_n "(cached) " >&6 4407b85037dbSmrgelse 4408b85037dbSmrg if test -n "$NM"; then 4409b85037dbSmrg # Let the user override the test. 4410b85037dbSmrg lt_cv_path_NM="$NM" 4411b85037dbSmrgelse 4412b85037dbSmrg lt_nm_to_check="${ac_tool_prefix}nm" 4413b85037dbSmrg if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4414b85037dbSmrg lt_nm_to_check="$lt_nm_to_check nm" 4415b85037dbSmrg fi 4416b85037dbSmrg for lt_tmp_nm in $lt_nm_to_check; do 4417b85037dbSmrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4418b85037dbSmrg for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4419b85037dbSmrg IFS="$lt_save_ifs" 4420b85037dbSmrg test -z "$ac_dir" && ac_dir=. 4421b85037dbSmrg tmp_nm="$ac_dir/$lt_tmp_nm" 4422b85037dbSmrg if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4423b85037dbSmrg # Check to see if the nm accepts a BSD-compat flag. 4424b85037dbSmrg # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4425b85037dbSmrg # nm: unknown option "B" ignored 4426b85037dbSmrg # Tru64's nm complains that /dev/null is an invalid object file 4427b85037dbSmrg case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4428b85037dbSmrg */dev/null* | *'Invalid file or object type'*) 4429b85037dbSmrg lt_cv_path_NM="$tmp_nm -B" 4430b85037dbSmrg break 4431b85037dbSmrg ;; 4432b85037dbSmrg *) 4433b85037dbSmrg case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4434b85037dbSmrg */dev/null*) 4435b85037dbSmrg lt_cv_path_NM="$tmp_nm -p" 4436b85037dbSmrg break 4437b85037dbSmrg ;; 4438b85037dbSmrg *) 4439b85037dbSmrg lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4440b85037dbSmrg continue # so that we can try to find one that supports BSD flags 4441b85037dbSmrg ;; 4442b85037dbSmrg esac 4443b85037dbSmrg ;; 4444b85037dbSmrg esac 4445b85037dbSmrg fi 4446b85037dbSmrg done 4447b85037dbSmrg IFS="$lt_save_ifs" 4448b85037dbSmrg done 4449b85037dbSmrg : ${lt_cv_path_NM=no} 4450b85037dbSmrgfi 4451b85037dbSmrgfi 4452b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4453b85037dbSmrg$as_echo "$lt_cv_path_NM" >&6; } 4454b85037dbSmrgif test "$lt_cv_path_NM" != "no"; then 4455b85037dbSmrg NM="$lt_cv_path_NM" 4456b85037dbSmrgelse 4457b85037dbSmrg # Didn't find any BSD compatible name lister, look for dumpbin. 4458b85037dbSmrg if test -n "$DUMPBIN"; then : 4459b85037dbSmrg # Let the user override the test. 4460b85037dbSmrg else 4461b85037dbSmrg if test -n "$ac_tool_prefix"; then 4462b85037dbSmrg for ac_prog in dumpbin "link -dump" 4463b85037dbSmrg do 4464b85037dbSmrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4465b85037dbSmrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2 4466b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4467b85037dbSmrg$as_echo_n "checking for $ac_word... " >&6; } 4468302b15bdSmrgif ${ac_cv_prog_DUMPBIN+:} false; then : 4469b85037dbSmrg $as_echo_n "(cached) " >&6 4470b85037dbSmrgelse 4471b85037dbSmrg if test -n "$DUMPBIN"; then 4472b85037dbSmrg ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4473b85037dbSmrgelse 4474b85037dbSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4475b85037dbSmrgfor as_dir in $PATH 4476b85037dbSmrgdo 4477b85037dbSmrg IFS=$as_save_IFS 4478b85037dbSmrg test -z "$as_dir" && as_dir=. 4479b85037dbSmrg for ac_exec_ext in '' $ac_executable_extensions; do 448028515619Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4481b85037dbSmrg ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4482b85037dbSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4483b85037dbSmrg break 2 4484b85037dbSmrg fi 4485b85037dbSmrgdone 4486b85037dbSmrg done 4487b85037dbSmrgIFS=$as_save_IFS 4488b85037dbSmrg 4489b85037dbSmrgfi 4490b85037dbSmrgfi 4491b85037dbSmrgDUMPBIN=$ac_cv_prog_DUMPBIN 4492b85037dbSmrgif test -n "$DUMPBIN"; then 4493b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4494b85037dbSmrg$as_echo "$DUMPBIN" >&6; } 4495b85037dbSmrgelse 4496b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4497b85037dbSmrg$as_echo "no" >&6; } 4498b85037dbSmrgfi 4499b85037dbSmrg 4500b85037dbSmrg 4501b85037dbSmrg test -n "$DUMPBIN" && break 4502b85037dbSmrg done 4503b85037dbSmrgfi 4504b85037dbSmrgif test -z "$DUMPBIN"; then 4505b85037dbSmrg ac_ct_DUMPBIN=$DUMPBIN 4506b85037dbSmrg for ac_prog in dumpbin "link -dump" 4507b85037dbSmrgdo 4508b85037dbSmrg # Extract the first word of "$ac_prog", so it can be a program name with args. 4509b85037dbSmrgset dummy $ac_prog; ac_word=$2 4510b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4511b85037dbSmrg$as_echo_n "checking for $ac_word... " >&6; } 4512302b15bdSmrgif ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4513b85037dbSmrg $as_echo_n "(cached) " >&6 4514b85037dbSmrgelse 4515b85037dbSmrg if test -n "$ac_ct_DUMPBIN"; then 4516b85037dbSmrg ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4517b85037dbSmrgelse 4518b85037dbSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4519b85037dbSmrgfor as_dir in $PATH 4520b85037dbSmrgdo 4521b85037dbSmrg IFS=$as_save_IFS 4522b85037dbSmrg test -z "$as_dir" && as_dir=. 4523b85037dbSmrg for ac_exec_ext in '' $ac_executable_extensions; do 452428515619Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4525b85037dbSmrg ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4526b85037dbSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4527b85037dbSmrg break 2 4528b85037dbSmrg fi 4529b85037dbSmrgdone 4530b85037dbSmrg done 4531b85037dbSmrgIFS=$as_save_IFS 4532b85037dbSmrg 4533b85037dbSmrgfi 4534b85037dbSmrgfi 4535b85037dbSmrgac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4536b85037dbSmrgif test -n "$ac_ct_DUMPBIN"; then 4537b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4538b85037dbSmrg$as_echo "$ac_ct_DUMPBIN" >&6; } 4539b85037dbSmrgelse 4540b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4541b85037dbSmrg$as_echo "no" >&6; } 4542b85037dbSmrgfi 4543b85037dbSmrg 4544b85037dbSmrg 4545b85037dbSmrg test -n "$ac_ct_DUMPBIN" && break 4546b85037dbSmrgdone 4547b85037dbSmrg 4548b85037dbSmrg if test "x$ac_ct_DUMPBIN" = x; then 4549b85037dbSmrg DUMPBIN=":" 4550b85037dbSmrg else 4551b85037dbSmrg case $cross_compiling:$ac_tool_warned in 4552b85037dbSmrgyes:) 4553b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4554b85037dbSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4555b85037dbSmrgac_tool_warned=yes ;; 4556b85037dbSmrgesac 4557b85037dbSmrg DUMPBIN=$ac_ct_DUMPBIN 4558b85037dbSmrg fi 4559b85037dbSmrgfi 4560b85037dbSmrg 4561b85037dbSmrg case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4562b85037dbSmrg *COFF*) 4563b85037dbSmrg DUMPBIN="$DUMPBIN -symbols" 4564b85037dbSmrg ;; 4565b85037dbSmrg *) 4566b85037dbSmrg DUMPBIN=: 4567b85037dbSmrg ;; 4568b85037dbSmrg esac 4569b85037dbSmrg fi 4570b85037dbSmrg 4571b85037dbSmrg if test "$DUMPBIN" != ":"; then 4572b85037dbSmrg NM="$DUMPBIN" 4573b85037dbSmrg fi 4574b85037dbSmrgfi 4575b85037dbSmrgtest -z "$NM" && NM=nm 4576b85037dbSmrg 4577b85037dbSmrg 4578b85037dbSmrg 4579b85037dbSmrg 4580b85037dbSmrg 4581b85037dbSmrg 4582b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4583b85037dbSmrg$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4584302b15bdSmrgif ${lt_cv_nm_interface+:} false; then : 4585b85037dbSmrg $as_echo_n "(cached) " >&6 4586b85037dbSmrgelse 4587b85037dbSmrg lt_cv_nm_interface="BSD nm" 4588b85037dbSmrg echo "int some_variable = 0;" > conftest.$ac_ext 4589b85037dbSmrg (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4590b85037dbSmrg (eval "$ac_compile" 2>conftest.err) 4591b85037dbSmrg cat conftest.err >&5 4592b85037dbSmrg (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4593b85037dbSmrg (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4594b85037dbSmrg cat conftest.err >&5 4595b85037dbSmrg (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4596b85037dbSmrg cat conftest.out >&5 4597b85037dbSmrg if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4598b85037dbSmrg lt_cv_nm_interface="MS dumpbin" 4599b85037dbSmrg fi 4600b85037dbSmrg rm -f conftest* 4601b85037dbSmrgfi 4602b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4603b85037dbSmrg$as_echo "$lt_cv_nm_interface" >&6; } 4604b85037dbSmrg 4605b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4606b85037dbSmrg$as_echo_n "checking whether ln -s works... " >&6; } 4607b85037dbSmrgLN_S=$as_ln_s 4608b85037dbSmrgif test "$LN_S" = "ln -s"; then 4609b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4610b85037dbSmrg$as_echo "yes" >&6; } 4611b85037dbSmrgelse 4612b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4613b85037dbSmrg$as_echo "no, using $LN_S" >&6; } 4614b85037dbSmrgfi 4615b85037dbSmrg 4616b85037dbSmrg# find the maximum length of command line arguments 4617b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4618b85037dbSmrg$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4619302b15bdSmrgif ${lt_cv_sys_max_cmd_len+:} false; then : 4620b85037dbSmrg $as_echo_n "(cached) " >&6 4621b85037dbSmrgelse 4622b85037dbSmrg i=0 4623b85037dbSmrg teststring="ABCD" 4624b85037dbSmrg 4625b85037dbSmrg case $build_os in 4626b85037dbSmrg msdosdjgpp*) 4627b85037dbSmrg # On DJGPP, this test can blow up pretty badly due to problems in libc 4628b85037dbSmrg # (any single argument exceeding 2000 bytes causes a buffer overrun 4629b85037dbSmrg # during glob expansion). Even if it were fixed, the result of this 4630b85037dbSmrg # check would be larger than it should be. 4631b85037dbSmrg lt_cv_sys_max_cmd_len=12288; # 12K is about right 4632b85037dbSmrg ;; 4633b85037dbSmrg 4634b85037dbSmrg gnu*) 4635b85037dbSmrg # Under GNU Hurd, this test is not required because there is 4636b85037dbSmrg # no limit to the length of command line arguments. 4637b85037dbSmrg # Libtool will interpret -1 as no limit whatsoever 4638b85037dbSmrg lt_cv_sys_max_cmd_len=-1; 4639b85037dbSmrg ;; 4640b85037dbSmrg 4641b85037dbSmrg cygwin* | mingw* | cegcc*) 4642b85037dbSmrg # On Win9x/ME, this test blows up -- it succeeds, but takes 4643b85037dbSmrg # about 5 minutes as the teststring grows exponentially. 4644b85037dbSmrg # Worse, since 9x/ME are not pre-emptively multitasking, 4645b85037dbSmrg # you end up with a "frozen" computer, even though with patience 4646b85037dbSmrg # the test eventually succeeds (with a max line length of 256k). 4647b85037dbSmrg # Instead, let's just punt: use the minimum linelength reported by 4648b85037dbSmrg # all of the supported platforms: 8192 (on NT/2K/XP). 4649b85037dbSmrg lt_cv_sys_max_cmd_len=8192; 4650b85037dbSmrg ;; 4651b85037dbSmrg 4652b85037dbSmrg mint*) 4653b85037dbSmrg # On MiNT this can take a long time and run out of memory. 4654b85037dbSmrg lt_cv_sys_max_cmd_len=8192; 4655b85037dbSmrg ;; 4656b85037dbSmrg 4657b85037dbSmrg amigaos*) 4658b85037dbSmrg # On AmigaOS with pdksh, this test takes hours, literally. 4659b85037dbSmrg # So we just punt and use a minimum line length of 8192. 4660b85037dbSmrg lt_cv_sys_max_cmd_len=8192; 4661b85037dbSmrg ;; 4662b85037dbSmrg 4663b85037dbSmrg netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4664b85037dbSmrg # This has been around since 386BSD, at least. Likely further. 4665b85037dbSmrg if test -x /sbin/sysctl; then 4666b85037dbSmrg lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4667b85037dbSmrg elif test -x /usr/sbin/sysctl; then 4668b85037dbSmrg lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4669b85037dbSmrg else 4670b85037dbSmrg lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4671b85037dbSmrg fi 4672b85037dbSmrg # And add a safety zone 4673b85037dbSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4674b85037dbSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4675b85037dbSmrg ;; 4676b85037dbSmrg 4677b85037dbSmrg interix*) 4678b85037dbSmrg # We know the value 262144 and hardcode it with a safety zone (like BSD) 4679b85037dbSmrg lt_cv_sys_max_cmd_len=196608 4680b85037dbSmrg ;; 4681b85037dbSmrg 468228515619Smrg os2*) 468328515619Smrg # The test takes a long time on OS/2. 468428515619Smrg lt_cv_sys_max_cmd_len=8192 468528515619Smrg ;; 468628515619Smrg 4687b85037dbSmrg osf*) 4688b85037dbSmrg # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4689b85037dbSmrg # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4690b85037dbSmrg # nice to cause kernel panics so lets avoid the loop below. 4691b85037dbSmrg # First set a reasonable default. 4692b85037dbSmrg lt_cv_sys_max_cmd_len=16384 4693b85037dbSmrg # 4694b85037dbSmrg if test -x /sbin/sysconfig; then 4695b85037dbSmrg case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4696b85037dbSmrg *1*) lt_cv_sys_max_cmd_len=-1 ;; 4697b85037dbSmrg esac 4698b85037dbSmrg fi 4699b85037dbSmrg ;; 4700b85037dbSmrg sco3.2v5*) 4701b85037dbSmrg lt_cv_sys_max_cmd_len=102400 4702b85037dbSmrg ;; 4703b85037dbSmrg sysv5* | sco5v6* | sysv4.2uw2*) 4704b85037dbSmrg kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4705b85037dbSmrg if test -n "$kargmax"; then 4706b85037dbSmrg lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4707b85037dbSmrg else 4708b85037dbSmrg lt_cv_sys_max_cmd_len=32768 4709b85037dbSmrg fi 4710b85037dbSmrg ;; 4711b85037dbSmrg *) 4712b85037dbSmrg lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4713b85037dbSmrg if test -n "$lt_cv_sys_max_cmd_len"; then 4714b85037dbSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4715b85037dbSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4716b85037dbSmrg else 4717b85037dbSmrg # Make teststring a little bigger before we do anything with it. 4718b85037dbSmrg # a 1K string should be a reasonable start. 4719b85037dbSmrg for i in 1 2 3 4 5 6 7 8 ; do 4720b85037dbSmrg teststring=$teststring$teststring 4721b85037dbSmrg done 4722b85037dbSmrg SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4723b85037dbSmrg # If test is not a shell built-in, we'll probably end up computing a 4724b85037dbSmrg # maximum length that is only half of the actual maximum length, but 4725b85037dbSmrg # we can't tell. 472628515619Smrg while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 4727b85037dbSmrg = "X$teststring$teststring"; } >/dev/null 2>&1 && 4728b85037dbSmrg test $i != 17 # 1/2 MB should be enough 4729b85037dbSmrg do 4730b85037dbSmrg i=`expr $i + 1` 4731b85037dbSmrg teststring=$teststring$teststring 4732b85037dbSmrg done 4733b85037dbSmrg # Only check the string length outside the loop. 4734b85037dbSmrg lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4735b85037dbSmrg teststring= 4736b85037dbSmrg # Add a significant safety factor because C++ compilers can tack on 4737b85037dbSmrg # massive amounts of additional arguments before passing them to the 4738b85037dbSmrg # linker. It appears as though 1/2 is a usable value. 4739b85037dbSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4740b85037dbSmrg fi 4741b85037dbSmrg ;; 4742b85037dbSmrg esac 4743b85037dbSmrg 4744b85037dbSmrgfi 4745b85037dbSmrg 4746b85037dbSmrgif test -n $lt_cv_sys_max_cmd_len ; then 4747b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4748b85037dbSmrg$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4749b85037dbSmrgelse 4750b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4751b85037dbSmrg$as_echo "none" >&6; } 4752b85037dbSmrgfi 4753b85037dbSmrgmax_cmd_len=$lt_cv_sys_max_cmd_len 4754b85037dbSmrg 4755b85037dbSmrg 4756b85037dbSmrg 4757b85037dbSmrg 4758b85037dbSmrg 4759b85037dbSmrg 4760b85037dbSmrg: ${CP="cp -f"} 4761b85037dbSmrg: ${MV="mv -f"} 4762b85037dbSmrg: ${RM="rm -f"} 4763b85037dbSmrg 4764b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 4765b85037dbSmrg$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4766b85037dbSmrg# Try some XSI features 4767b85037dbSmrgxsi_shell=no 4768b85037dbSmrg( _lt_dummy="a/b/c" 4769302b15bdSmrg test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 4770302b15bdSmrg = c,a/b,b/c, \ 4771b85037dbSmrg && eval 'test $(( 1 + 1 )) -eq 2 \ 4772b85037dbSmrg && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4773b85037dbSmrg && xsi_shell=yes 4774b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 4775b85037dbSmrg$as_echo "$xsi_shell" >&6; } 4776b85037dbSmrg 4777b85037dbSmrg 4778b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 4779b85037dbSmrg$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4780b85037dbSmrglt_shell_append=no 4781b85037dbSmrg( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4782b85037dbSmrg >/dev/null 2>&1 \ 4783b85037dbSmrg && lt_shell_append=yes 4784b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 4785b85037dbSmrg$as_echo "$lt_shell_append" >&6; } 4786b85037dbSmrg 4787b85037dbSmrg 4788b85037dbSmrgif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4789b85037dbSmrg lt_unset=unset 4790b85037dbSmrgelse 4791b85037dbSmrg lt_unset=false 4792b85037dbSmrgfi 4793b85037dbSmrg 4794b85037dbSmrg 4795b85037dbSmrg 4796b85037dbSmrg 4797b85037dbSmrg 4798b85037dbSmrg# test EBCDIC or ASCII 4799b85037dbSmrgcase `echo X|tr X '\101'` in 4800b85037dbSmrg A) # ASCII based system 4801b85037dbSmrg # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4802b85037dbSmrg lt_SP2NL='tr \040 \012' 4803b85037dbSmrg lt_NL2SP='tr \015\012 \040\040' 4804b85037dbSmrg ;; 4805b85037dbSmrg *) # EBCDIC based system 4806b85037dbSmrg lt_SP2NL='tr \100 \n' 4807b85037dbSmrg lt_NL2SP='tr \r\n \100\100' 4808b85037dbSmrg ;; 4809b85037dbSmrgesac 4810b85037dbSmrg 4811b85037dbSmrg 4812b85037dbSmrg 4813b85037dbSmrg 4814b85037dbSmrg 4815b85037dbSmrg 4816b85037dbSmrg 4817b85037dbSmrg 4818b85037dbSmrg 4819302b15bdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4820302b15bdSmrg$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4821302b15bdSmrgif ${lt_cv_to_host_file_cmd+:} false; then : 4822302b15bdSmrg $as_echo_n "(cached) " >&6 4823302b15bdSmrgelse 4824302b15bdSmrg case $host in 4825302b15bdSmrg *-*-mingw* ) 4826302b15bdSmrg case $build in 4827302b15bdSmrg *-*-mingw* ) # actually msys 4828302b15bdSmrg lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 4829302b15bdSmrg ;; 4830302b15bdSmrg *-*-cygwin* ) 4831302b15bdSmrg lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 4832302b15bdSmrg ;; 4833302b15bdSmrg * ) # otherwise, assume *nix 4834302b15bdSmrg lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 4835302b15bdSmrg ;; 4836302b15bdSmrg esac 4837302b15bdSmrg ;; 4838302b15bdSmrg *-*-cygwin* ) 4839302b15bdSmrg case $build in 4840302b15bdSmrg *-*-mingw* ) # actually msys 4841302b15bdSmrg lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 4842302b15bdSmrg ;; 4843302b15bdSmrg *-*-cygwin* ) 4844302b15bdSmrg lt_cv_to_host_file_cmd=func_convert_file_noop 4845302b15bdSmrg ;; 4846302b15bdSmrg * ) # otherwise, assume *nix 4847302b15bdSmrg lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 4848302b15bdSmrg ;; 4849302b15bdSmrg esac 4850302b15bdSmrg ;; 4851302b15bdSmrg * ) # unhandled hosts (and "normal" native builds) 4852302b15bdSmrg lt_cv_to_host_file_cmd=func_convert_file_noop 4853302b15bdSmrg ;; 4854302b15bdSmrgesac 4855302b15bdSmrg 4856302b15bdSmrgfi 4857302b15bdSmrg 4858302b15bdSmrgto_host_file_cmd=$lt_cv_to_host_file_cmd 4859302b15bdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 4860302b15bdSmrg$as_echo "$lt_cv_to_host_file_cmd" >&6; } 4861302b15bdSmrg 4862302b15bdSmrg 4863302b15bdSmrg 4864302b15bdSmrg 4865302b15bdSmrg 4866302b15bdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 4867302b15bdSmrg$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 4868302b15bdSmrgif ${lt_cv_to_tool_file_cmd+:} false; then : 4869302b15bdSmrg $as_echo_n "(cached) " >&6 4870302b15bdSmrgelse 4871302b15bdSmrg #assume ordinary cross tools, or native build. 4872302b15bdSmrglt_cv_to_tool_file_cmd=func_convert_file_noop 4873302b15bdSmrgcase $host in 4874302b15bdSmrg *-*-mingw* ) 4875302b15bdSmrg case $build in 4876302b15bdSmrg *-*-mingw* ) # actually msys 4877302b15bdSmrg lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 4878302b15bdSmrg ;; 4879302b15bdSmrg esac 4880302b15bdSmrg ;; 4881302b15bdSmrgesac 4882302b15bdSmrg 4883302b15bdSmrgfi 4884302b15bdSmrg 4885302b15bdSmrgto_tool_file_cmd=$lt_cv_to_tool_file_cmd 4886302b15bdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 4887302b15bdSmrg$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 4888302b15bdSmrg 4889302b15bdSmrg 4890302b15bdSmrg 4891302b15bdSmrg 4892302b15bdSmrg 4893b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4894b85037dbSmrg$as_echo_n "checking for $LD option to reload object files... " >&6; } 4895302b15bdSmrgif ${lt_cv_ld_reload_flag+:} false; then : 4896b85037dbSmrg $as_echo_n "(cached) " >&6 4897b85037dbSmrgelse 4898b85037dbSmrg lt_cv_ld_reload_flag='-r' 4899b85037dbSmrgfi 4900b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4901b85037dbSmrg$as_echo "$lt_cv_ld_reload_flag" >&6; } 4902b85037dbSmrgreload_flag=$lt_cv_ld_reload_flag 4903b85037dbSmrgcase $reload_flag in 4904b85037dbSmrg"" | " "*) ;; 4905b85037dbSmrg*) reload_flag=" $reload_flag" ;; 4906b85037dbSmrgesac 4907b85037dbSmrgreload_cmds='$LD$reload_flag -o $output$reload_objs' 4908b85037dbSmrgcase $host_os in 4909302b15bdSmrg cygwin* | mingw* | pw32* | cegcc*) 4910302b15bdSmrg if test "$GCC" != yes; then 4911302b15bdSmrg reload_cmds=false 4912302b15bdSmrg fi 4913302b15bdSmrg ;; 4914b85037dbSmrg darwin*) 4915b85037dbSmrg if test "$GCC" = yes; then 4916b85037dbSmrg reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4917b85037dbSmrg else 4918b85037dbSmrg reload_cmds='$LD$reload_flag -o $output$reload_objs' 4919b85037dbSmrg fi 4920b85037dbSmrg ;; 4921b85037dbSmrgesac 4922b85037dbSmrg 4923b85037dbSmrg 4924b85037dbSmrg 4925b85037dbSmrg 4926b85037dbSmrg 4927b85037dbSmrg 4928b85037dbSmrg 4929b85037dbSmrg 4930b85037dbSmrg 4931b85037dbSmrgif test -n "$ac_tool_prefix"; then 4932b85037dbSmrg # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4933b85037dbSmrgset dummy ${ac_tool_prefix}objdump; ac_word=$2 4934b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4935b85037dbSmrg$as_echo_n "checking for $ac_word... " >&6; } 4936302b15bdSmrgif ${ac_cv_prog_OBJDUMP+:} false; then : 4937b85037dbSmrg $as_echo_n "(cached) " >&6 4938b85037dbSmrgelse 4939b85037dbSmrg if test -n "$OBJDUMP"; then 4940b85037dbSmrg ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4941b85037dbSmrgelse 4942b85037dbSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4943b85037dbSmrgfor as_dir in $PATH 4944b85037dbSmrgdo 4945b85037dbSmrg IFS=$as_save_IFS 4946b85037dbSmrg test -z "$as_dir" && as_dir=. 4947b85037dbSmrg for ac_exec_ext in '' $ac_executable_extensions; do 494828515619Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4949b85037dbSmrg ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4950b85037dbSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4951b85037dbSmrg break 2 4952b85037dbSmrg fi 4953b85037dbSmrgdone 4954b85037dbSmrg done 4955b85037dbSmrgIFS=$as_save_IFS 4956b85037dbSmrg 4957b85037dbSmrgfi 4958b85037dbSmrgfi 4959b85037dbSmrgOBJDUMP=$ac_cv_prog_OBJDUMP 4960b85037dbSmrgif test -n "$OBJDUMP"; then 4961b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4962b85037dbSmrg$as_echo "$OBJDUMP" >&6; } 4963b85037dbSmrgelse 4964b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4965b85037dbSmrg$as_echo "no" >&6; } 4966b85037dbSmrgfi 4967b85037dbSmrg 4968b85037dbSmrg 4969b85037dbSmrgfi 4970b85037dbSmrgif test -z "$ac_cv_prog_OBJDUMP"; then 4971b85037dbSmrg ac_ct_OBJDUMP=$OBJDUMP 4972b85037dbSmrg # Extract the first word of "objdump", so it can be a program name with args. 4973b85037dbSmrgset dummy objdump; ac_word=$2 4974b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4975b85037dbSmrg$as_echo_n "checking for $ac_word... " >&6; } 4976302b15bdSmrgif ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 4977b85037dbSmrg $as_echo_n "(cached) " >&6 4978b85037dbSmrgelse 4979b85037dbSmrg if test -n "$ac_ct_OBJDUMP"; then 4980b85037dbSmrg ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4981b85037dbSmrgelse 4982b85037dbSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4983b85037dbSmrgfor as_dir in $PATH 4984b85037dbSmrgdo 4985b85037dbSmrg IFS=$as_save_IFS 4986b85037dbSmrg test -z "$as_dir" && as_dir=. 4987b85037dbSmrg for ac_exec_ext in '' $ac_executable_extensions; do 498828515619Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4989b85037dbSmrg ac_cv_prog_ac_ct_OBJDUMP="objdump" 4990b85037dbSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4991b85037dbSmrg break 2 4992b85037dbSmrg fi 4993b85037dbSmrgdone 4994b85037dbSmrg done 4995b85037dbSmrgIFS=$as_save_IFS 4996b85037dbSmrg 4997b85037dbSmrgfi 4998b85037dbSmrgfi 4999b85037dbSmrgac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5000b85037dbSmrgif test -n "$ac_ct_OBJDUMP"; then 5001b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5002b85037dbSmrg$as_echo "$ac_ct_OBJDUMP" >&6; } 5003b85037dbSmrgelse 5004b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5005b85037dbSmrg$as_echo "no" >&6; } 5006b85037dbSmrgfi 5007b85037dbSmrg 5008b85037dbSmrg if test "x$ac_ct_OBJDUMP" = x; then 5009b85037dbSmrg OBJDUMP="false" 5010b85037dbSmrg else 5011b85037dbSmrg case $cross_compiling:$ac_tool_warned in 5012b85037dbSmrgyes:) 5013b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5014b85037dbSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5015b85037dbSmrgac_tool_warned=yes ;; 5016b85037dbSmrgesac 5017b85037dbSmrg OBJDUMP=$ac_ct_OBJDUMP 5018b85037dbSmrg fi 5019b85037dbSmrgelse 5020b85037dbSmrg OBJDUMP="$ac_cv_prog_OBJDUMP" 5021b85037dbSmrgfi 5022b85037dbSmrg 5023b85037dbSmrgtest -z "$OBJDUMP" && OBJDUMP=objdump 5024b85037dbSmrg 5025b85037dbSmrg 5026b85037dbSmrg 5027b85037dbSmrg 5028b85037dbSmrg 5029b85037dbSmrg 5030b85037dbSmrg 5031b85037dbSmrg 5032b85037dbSmrg 5033b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5034b85037dbSmrg$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5035302b15bdSmrgif ${lt_cv_deplibs_check_method+:} false; then : 5036b85037dbSmrg $as_echo_n "(cached) " >&6 5037b85037dbSmrgelse 5038b85037dbSmrg lt_cv_file_magic_cmd='$MAGIC_CMD' 5039b85037dbSmrglt_cv_file_magic_test_file= 5040b85037dbSmrglt_cv_deplibs_check_method='unknown' 5041b85037dbSmrg# Need to set the preceding variable on all platforms that support 5042b85037dbSmrg# interlibrary dependencies. 5043b85037dbSmrg# 'none' -- dependencies not supported. 5044b85037dbSmrg# `unknown' -- same as none, but documents that we really don't know. 5045b85037dbSmrg# 'pass_all' -- all dependencies passed with no checks. 5046b85037dbSmrg# 'test_compile' -- check by making test program. 5047b85037dbSmrg# 'file_magic [[regex]]' -- check by looking for files in library path 5048b85037dbSmrg# which responds to the $file_magic_cmd with a given extended regex. 5049b85037dbSmrg# If you have `file' or equivalent on your system and you're not sure 5050b85037dbSmrg# whether `pass_all' will *always* work, you probably want this one. 5051b85037dbSmrg 5052b85037dbSmrgcase $host_os in 5053b85037dbSmrgaix[4-9]*) 5054b85037dbSmrg lt_cv_deplibs_check_method=pass_all 5055b85037dbSmrg ;; 5056b85037dbSmrg 5057b85037dbSmrgbeos*) 5058b85037dbSmrg lt_cv_deplibs_check_method=pass_all 5059b85037dbSmrg ;; 5060b85037dbSmrg 5061b85037dbSmrgbsdi[45]*) 5062b85037dbSmrg lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5063b85037dbSmrg lt_cv_file_magic_cmd='/usr/bin/file -L' 5064b85037dbSmrg lt_cv_file_magic_test_file=/shlib/libc.so 5065b85037dbSmrg ;; 5066b85037dbSmrg 5067b85037dbSmrgcygwin*) 5068b85037dbSmrg # func_win32_libid is a shell function defined in ltmain.sh 5069b85037dbSmrg lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5070b85037dbSmrg lt_cv_file_magic_cmd='func_win32_libid' 5071b85037dbSmrg ;; 5072b85037dbSmrg 5073b85037dbSmrgmingw* | pw32*) 5074b85037dbSmrg # Base MSYS/MinGW do not provide the 'file' command needed by 5075b85037dbSmrg # func_win32_libid shell function, so use a weaker test based on 'objdump', 5076b85037dbSmrg # unless we find 'file', for example because we are cross-compiling. 5077b85037dbSmrg # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5078b85037dbSmrg if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5079b85037dbSmrg lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5080b85037dbSmrg lt_cv_file_magic_cmd='func_win32_libid' 5081b85037dbSmrg else 5082b85037dbSmrg # Keep this pattern in sync with the one in func_win32_libid. 5083b85037dbSmrg lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5084b85037dbSmrg lt_cv_file_magic_cmd='$OBJDUMP -f' 5085b85037dbSmrg fi 5086b85037dbSmrg ;; 5087b85037dbSmrg 5088b85037dbSmrgcegcc*) 5089b85037dbSmrg # use the weaker test based on 'objdump'. See mingw*. 5090b85037dbSmrg lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5091b85037dbSmrg lt_cv_file_magic_cmd='$OBJDUMP -f' 5092b85037dbSmrg ;; 5093b85037dbSmrg 5094b85037dbSmrgdarwin* | rhapsody*) 5095b85037dbSmrg lt_cv_deplibs_check_method=pass_all 5096b85037dbSmrg ;; 5097b85037dbSmrg 5098b85037dbSmrgfreebsd* | dragonfly*) 5099b85037dbSmrg if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5100b85037dbSmrg case $host_cpu in 5101b85037dbSmrg i*86 ) 5102b85037dbSmrg # Not sure whether the presence of OpenBSD here was a mistake. 5103b85037dbSmrg # Let's accept both of them until this is cleared up. 5104b85037dbSmrg lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5105b85037dbSmrg lt_cv_file_magic_cmd=/usr/bin/file 5106b85037dbSmrg lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5107b85037dbSmrg ;; 5108b85037dbSmrg esac 5109b85037dbSmrg else 5110b85037dbSmrg lt_cv_deplibs_check_method=pass_all 5111b85037dbSmrg fi 5112b85037dbSmrg ;; 5113b85037dbSmrg 5114b85037dbSmrggnu*) 5115b85037dbSmrg lt_cv_deplibs_check_method=pass_all 5116b85037dbSmrg ;; 5117b85037dbSmrg 5118b85037dbSmrghaiku*) 5119b85037dbSmrg lt_cv_deplibs_check_method=pass_all 5120b85037dbSmrg ;; 5121b85037dbSmrg 5122b85037dbSmrghpux10.20* | hpux11*) 5123b85037dbSmrg lt_cv_file_magic_cmd=/usr/bin/file 5124b85037dbSmrg case $host_cpu in 5125b85037dbSmrg ia64*) 5126b85037dbSmrg lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5127b85037dbSmrg lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5128b85037dbSmrg ;; 5129b85037dbSmrg hppa*64*) 5130b85037dbSmrg 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]' 5131b85037dbSmrg lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5132b85037dbSmrg ;; 5133b85037dbSmrg *) 5134b85037dbSmrg lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5135b85037dbSmrg lt_cv_file_magic_test_file=/usr/lib/libc.sl 5136b85037dbSmrg ;; 5137b85037dbSmrg esac 5138b85037dbSmrg ;; 5139b85037dbSmrg 5140b85037dbSmrginterix[3-9]*) 5141b85037dbSmrg # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5142b85037dbSmrg lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5143b85037dbSmrg ;; 5144b85037dbSmrg 5145b85037dbSmrgirix5* | irix6* | nonstopux*) 5146b85037dbSmrg case $LD in 5147b85037dbSmrg *-32|*"-32 ") libmagic=32-bit;; 5148b85037dbSmrg *-n32|*"-n32 ") libmagic=N32;; 5149b85037dbSmrg *-64|*"-64 ") libmagic=64-bit;; 5150b85037dbSmrg *) libmagic=never-match;; 5151b85037dbSmrg esac 5152b85037dbSmrg lt_cv_deplibs_check_method=pass_all 5153b85037dbSmrg ;; 5154b85037dbSmrg 515528515619Smrg# This must be glibc/ELF. 5156b85037dbSmrglinux* | k*bsd*-gnu | kopensolaris*-gnu) 5157b85037dbSmrg lt_cv_deplibs_check_method=pass_all 5158b85037dbSmrg ;; 5159b85037dbSmrg 5160b85037dbSmrgnetbsd*) 5161b85037dbSmrg if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5162b85037dbSmrg lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5163b85037dbSmrg else 5164b85037dbSmrg lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5165b85037dbSmrg fi 5166b85037dbSmrg ;; 5167b85037dbSmrg 5168b85037dbSmrgnewos6*) 5169b85037dbSmrg lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5170b85037dbSmrg lt_cv_file_magic_cmd=/usr/bin/file 5171b85037dbSmrg lt_cv_file_magic_test_file=/usr/lib/libnls.so 5172b85037dbSmrg ;; 5173b85037dbSmrg 5174b85037dbSmrg*nto* | *qnx*) 5175b85037dbSmrg lt_cv_deplibs_check_method=pass_all 5176b85037dbSmrg ;; 5177b85037dbSmrg 5178b85037dbSmrgopenbsd*) 5179b85037dbSmrg if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5180b85037dbSmrg lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5181b85037dbSmrg else 5182b85037dbSmrg lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5183b85037dbSmrg fi 5184b85037dbSmrg ;; 5185b85037dbSmrg 5186b85037dbSmrgosf3* | osf4* | osf5*) 5187b85037dbSmrg lt_cv_deplibs_check_method=pass_all 5188b85037dbSmrg ;; 5189b85037dbSmrg 5190b85037dbSmrgrdos*) 5191b85037dbSmrg lt_cv_deplibs_check_method=pass_all 5192b85037dbSmrg ;; 5193b85037dbSmrg 5194b85037dbSmrgsolaris*) 5195b85037dbSmrg lt_cv_deplibs_check_method=pass_all 5196b85037dbSmrg ;; 5197b85037dbSmrg 5198b85037dbSmrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5199b85037dbSmrg lt_cv_deplibs_check_method=pass_all 5200b85037dbSmrg ;; 5201b85037dbSmrg 5202b85037dbSmrgsysv4 | sysv4.3*) 5203b85037dbSmrg case $host_vendor in 5204b85037dbSmrg motorola) 5205b85037dbSmrg 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]' 5206b85037dbSmrg lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5207b85037dbSmrg ;; 5208b85037dbSmrg ncr) 5209b85037dbSmrg lt_cv_deplibs_check_method=pass_all 5210b85037dbSmrg ;; 5211b85037dbSmrg sequent) 5212b85037dbSmrg lt_cv_file_magic_cmd='/bin/file' 5213b85037dbSmrg lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5214b85037dbSmrg ;; 5215b85037dbSmrg sni) 5216b85037dbSmrg lt_cv_file_magic_cmd='/bin/file' 5217b85037dbSmrg lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5218b85037dbSmrg lt_cv_file_magic_test_file=/lib/libc.so 5219b85037dbSmrg ;; 5220b85037dbSmrg siemens) 5221b85037dbSmrg lt_cv_deplibs_check_method=pass_all 5222b85037dbSmrg ;; 5223b85037dbSmrg pc) 5224b85037dbSmrg lt_cv_deplibs_check_method=pass_all 5225b85037dbSmrg ;; 5226b85037dbSmrg esac 5227b85037dbSmrg ;; 5228b85037dbSmrg 5229b85037dbSmrgtpf*) 5230b85037dbSmrg lt_cv_deplibs_check_method=pass_all 5231b85037dbSmrg ;; 5232b85037dbSmrgesac 5233b85037dbSmrg 5234b85037dbSmrgfi 5235b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5236b85037dbSmrg$as_echo "$lt_cv_deplibs_check_method" >&6; } 5237302b15bdSmrg 5238302b15bdSmrgfile_magic_glob= 5239302b15bdSmrgwant_nocaseglob=no 5240302b15bdSmrgif test "$build" = "$host"; then 5241302b15bdSmrg case $host_os in 5242302b15bdSmrg mingw* | pw32*) 5243302b15bdSmrg if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5244302b15bdSmrg want_nocaseglob=yes 5245302b15bdSmrg else 5246302b15bdSmrg file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5247302b15bdSmrg fi 5248302b15bdSmrg ;; 5249302b15bdSmrg esac 5250302b15bdSmrgfi 5251302b15bdSmrg 5252b85037dbSmrgfile_magic_cmd=$lt_cv_file_magic_cmd 5253b85037dbSmrgdeplibs_check_method=$lt_cv_deplibs_check_method 5254b85037dbSmrgtest -z "$deplibs_check_method" && deplibs_check_method=unknown 5255b85037dbSmrg 5256b85037dbSmrg 5257b85037dbSmrg 5258b85037dbSmrg 5259b85037dbSmrg 5260b85037dbSmrg 5261b85037dbSmrg 5262b85037dbSmrg 5263b85037dbSmrg 5264b85037dbSmrg 5265b85037dbSmrg 5266b85037dbSmrg 5267302b15bdSmrg 5268302b15bdSmrg 5269302b15bdSmrg 5270302b15bdSmrg 5271302b15bdSmrg 5272302b15bdSmrg 5273302b15bdSmrg 5274302b15bdSmrg 5275302b15bdSmrg 5276302b15bdSmrg 5277302b15bdSmrgif test -n "$ac_tool_prefix"; then 5278302b15bdSmrg # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5279302b15bdSmrgset dummy ${ac_tool_prefix}dlltool; ac_word=$2 5280302b15bdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5281302b15bdSmrg$as_echo_n "checking for $ac_word... " >&6; } 5282302b15bdSmrgif ${ac_cv_prog_DLLTOOL+:} false; then : 5283302b15bdSmrg $as_echo_n "(cached) " >&6 5284302b15bdSmrgelse 5285302b15bdSmrg if test -n "$DLLTOOL"; then 5286302b15bdSmrg ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5287302b15bdSmrgelse 5288302b15bdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5289302b15bdSmrgfor as_dir in $PATH 5290302b15bdSmrgdo 5291302b15bdSmrg IFS=$as_save_IFS 5292302b15bdSmrg test -z "$as_dir" && as_dir=. 5293302b15bdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 529428515619Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5295302b15bdSmrg ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5296302b15bdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5297302b15bdSmrg break 2 5298302b15bdSmrg fi 5299302b15bdSmrgdone 5300302b15bdSmrg done 5301302b15bdSmrgIFS=$as_save_IFS 5302302b15bdSmrg 5303302b15bdSmrgfi 5304302b15bdSmrgfi 5305302b15bdSmrgDLLTOOL=$ac_cv_prog_DLLTOOL 5306302b15bdSmrgif test -n "$DLLTOOL"; then 5307302b15bdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5308302b15bdSmrg$as_echo "$DLLTOOL" >&6; } 5309302b15bdSmrgelse 5310302b15bdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5311302b15bdSmrg$as_echo "no" >&6; } 5312302b15bdSmrgfi 5313302b15bdSmrg 5314302b15bdSmrg 5315302b15bdSmrgfi 5316302b15bdSmrgif test -z "$ac_cv_prog_DLLTOOL"; then 5317302b15bdSmrg ac_ct_DLLTOOL=$DLLTOOL 5318302b15bdSmrg # Extract the first word of "dlltool", so it can be a program name with args. 5319302b15bdSmrgset dummy dlltool; ac_word=$2 5320302b15bdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5321302b15bdSmrg$as_echo_n "checking for $ac_word... " >&6; } 5322302b15bdSmrgif ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5323302b15bdSmrg $as_echo_n "(cached) " >&6 5324302b15bdSmrgelse 5325302b15bdSmrg if test -n "$ac_ct_DLLTOOL"; then 5326302b15bdSmrg ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5327302b15bdSmrgelse 5328302b15bdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5329302b15bdSmrgfor as_dir in $PATH 5330302b15bdSmrgdo 5331302b15bdSmrg IFS=$as_save_IFS 5332302b15bdSmrg test -z "$as_dir" && as_dir=. 5333302b15bdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 533428515619Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5335302b15bdSmrg ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5336302b15bdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5337302b15bdSmrg break 2 5338302b15bdSmrg fi 5339302b15bdSmrgdone 5340302b15bdSmrg done 5341302b15bdSmrgIFS=$as_save_IFS 5342302b15bdSmrg 5343302b15bdSmrgfi 5344302b15bdSmrgfi 5345302b15bdSmrgac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5346302b15bdSmrgif test -n "$ac_ct_DLLTOOL"; then 5347302b15bdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5348302b15bdSmrg$as_echo "$ac_ct_DLLTOOL" >&6; } 5349302b15bdSmrgelse 5350302b15bdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5351302b15bdSmrg$as_echo "no" >&6; } 5352302b15bdSmrgfi 5353302b15bdSmrg 5354302b15bdSmrg if test "x$ac_ct_DLLTOOL" = x; then 5355302b15bdSmrg DLLTOOL="false" 5356302b15bdSmrg else 5357302b15bdSmrg case $cross_compiling:$ac_tool_warned in 5358302b15bdSmrgyes:) 5359302b15bdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5360302b15bdSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5361302b15bdSmrgac_tool_warned=yes ;; 5362302b15bdSmrgesac 5363302b15bdSmrg DLLTOOL=$ac_ct_DLLTOOL 5364302b15bdSmrg fi 5365302b15bdSmrgelse 5366302b15bdSmrg DLLTOOL="$ac_cv_prog_DLLTOOL" 5367302b15bdSmrgfi 5368302b15bdSmrg 5369302b15bdSmrgtest -z "$DLLTOOL" && DLLTOOL=dlltool 5370302b15bdSmrg 5371302b15bdSmrg 5372302b15bdSmrg 5373302b15bdSmrg 5374302b15bdSmrg 5375302b15bdSmrg 5376302b15bdSmrg 5377302b15bdSmrg 5378302b15bdSmrg 5379302b15bdSmrg 5380302b15bdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5381302b15bdSmrg$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5382302b15bdSmrgif ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5383302b15bdSmrg $as_echo_n "(cached) " >&6 5384302b15bdSmrgelse 5385302b15bdSmrg lt_cv_sharedlib_from_linklib_cmd='unknown' 5386302b15bdSmrg 5387302b15bdSmrgcase $host_os in 5388302b15bdSmrgcygwin* | mingw* | pw32* | cegcc*) 5389302b15bdSmrg # two different shell functions defined in ltmain.sh 5390302b15bdSmrg # decide which to use based on capabilities of $DLLTOOL 5391302b15bdSmrg case `$DLLTOOL --help 2>&1` in 5392302b15bdSmrg *--identify-strict*) 5393302b15bdSmrg lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5394302b15bdSmrg ;; 5395302b15bdSmrg *) 5396302b15bdSmrg lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5397302b15bdSmrg ;; 5398302b15bdSmrg esac 5399302b15bdSmrg ;; 5400302b15bdSmrg*) 5401302b15bdSmrg # fallback: assume linklib IS sharedlib 5402302b15bdSmrg lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5403302b15bdSmrg ;; 5404302b15bdSmrgesac 5405302b15bdSmrg 5406302b15bdSmrgfi 5407302b15bdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5408302b15bdSmrg$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5409302b15bdSmrgsharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5410302b15bdSmrgtest -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5411302b15bdSmrg 5412302b15bdSmrg 5413302b15bdSmrg 5414302b15bdSmrg 5415302b15bdSmrg 5416302b15bdSmrg 5417302b15bdSmrg 5418302b15bdSmrg 5419b85037dbSmrgif test -n "$ac_tool_prefix"; then 5420302b15bdSmrg for ac_prog in ar 5421302b15bdSmrg do 5422302b15bdSmrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5423302b15bdSmrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2 5424b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5425b85037dbSmrg$as_echo_n "checking for $ac_word... " >&6; } 5426302b15bdSmrgif ${ac_cv_prog_AR+:} false; then : 5427b85037dbSmrg $as_echo_n "(cached) " >&6 5428b85037dbSmrgelse 5429b85037dbSmrg if test -n "$AR"; then 5430b85037dbSmrg ac_cv_prog_AR="$AR" # Let the user override the test. 5431b85037dbSmrgelse 5432b85037dbSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5433b85037dbSmrgfor as_dir in $PATH 5434b85037dbSmrgdo 5435b85037dbSmrg IFS=$as_save_IFS 5436b85037dbSmrg test -z "$as_dir" && as_dir=. 5437b85037dbSmrg for ac_exec_ext in '' $ac_executable_extensions; do 543828515619Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5439302b15bdSmrg ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5440b85037dbSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5441b85037dbSmrg break 2 5442b85037dbSmrg fi 5443b85037dbSmrgdone 5444b85037dbSmrg done 5445b85037dbSmrgIFS=$as_save_IFS 5446b85037dbSmrg 5447b85037dbSmrgfi 5448b85037dbSmrgfi 5449b85037dbSmrgAR=$ac_cv_prog_AR 5450b85037dbSmrgif test -n "$AR"; then 5451b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5452b85037dbSmrg$as_echo "$AR" >&6; } 5453b85037dbSmrgelse 5454b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5455b85037dbSmrg$as_echo "no" >&6; } 5456b85037dbSmrgfi 5457b85037dbSmrg 5458b85037dbSmrg 5459302b15bdSmrg test -n "$AR" && break 5460302b15bdSmrg done 5461b85037dbSmrgfi 5462302b15bdSmrgif test -z "$AR"; then 5463b85037dbSmrg ac_ct_AR=$AR 5464302b15bdSmrg for ac_prog in ar 5465302b15bdSmrgdo 5466302b15bdSmrg # Extract the first word of "$ac_prog", so it can be a program name with args. 5467302b15bdSmrgset dummy $ac_prog; ac_word=$2 5468b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5469b85037dbSmrg$as_echo_n "checking for $ac_word... " >&6; } 5470302b15bdSmrgif ${ac_cv_prog_ac_ct_AR+:} false; then : 5471b85037dbSmrg $as_echo_n "(cached) " >&6 5472b85037dbSmrgelse 5473b85037dbSmrg if test -n "$ac_ct_AR"; then 5474b85037dbSmrg ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5475b85037dbSmrgelse 5476b85037dbSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5477b85037dbSmrgfor as_dir in $PATH 5478b85037dbSmrgdo 5479b85037dbSmrg IFS=$as_save_IFS 5480b85037dbSmrg test -z "$as_dir" && as_dir=. 5481b85037dbSmrg for ac_exec_ext in '' $ac_executable_extensions; do 548228515619Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5483302b15bdSmrg ac_cv_prog_ac_ct_AR="$ac_prog" 5484b85037dbSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5485b85037dbSmrg break 2 5486b85037dbSmrg fi 5487b85037dbSmrgdone 5488b85037dbSmrg done 5489b85037dbSmrgIFS=$as_save_IFS 5490b85037dbSmrg 5491b85037dbSmrgfi 5492b85037dbSmrgfi 5493b85037dbSmrgac_ct_AR=$ac_cv_prog_ac_ct_AR 5494b85037dbSmrgif test -n "$ac_ct_AR"; then 5495b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5496b85037dbSmrg$as_echo "$ac_ct_AR" >&6; } 5497b85037dbSmrgelse 5498b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5499b85037dbSmrg$as_echo "no" >&6; } 5500b85037dbSmrgfi 5501b85037dbSmrg 5502302b15bdSmrg 5503302b15bdSmrg test -n "$ac_ct_AR" && break 5504302b15bdSmrgdone 5505302b15bdSmrg 5506b85037dbSmrg if test "x$ac_ct_AR" = x; then 5507b85037dbSmrg AR="false" 5508b85037dbSmrg else 5509b85037dbSmrg case $cross_compiling:$ac_tool_warned in 5510b85037dbSmrgyes:) 5511b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5512b85037dbSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5513b85037dbSmrgac_tool_warned=yes ;; 5514b85037dbSmrgesac 5515b85037dbSmrg AR=$ac_ct_AR 5516b85037dbSmrg fi 5517b85037dbSmrgfi 5518b85037dbSmrg 5519302b15bdSmrg: ${AR=ar} 5520302b15bdSmrg: ${AR_FLAGS=cru} 5521302b15bdSmrg 5522302b15bdSmrg 5523302b15bdSmrg 5524302b15bdSmrg 5525302b15bdSmrg 5526302b15bdSmrg 5527302b15bdSmrg 5528302b15bdSmrg 5529302b15bdSmrg 5530302b15bdSmrg 5531302b15bdSmrg 5532302b15bdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5533302b15bdSmrg$as_echo_n "checking for archiver @FILE support... " >&6; } 5534302b15bdSmrgif ${lt_cv_ar_at_file+:} false; then : 5535302b15bdSmrg $as_echo_n "(cached) " >&6 5536302b15bdSmrgelse 5537302b15bdSmrg lt_cv_ar_at_file=no 5538302b15bdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5539302b15bdSmrg/* end confdefs.h. */ 5540302b15bdSmrg 5541302b15bdSmrgint 5542302b15bdSmrgmain () 5543302b15bdSmrg{ 5544b85037dbSmrg 5545302b15bdSmrg ; 5546302b15bdSmrg return 0; 5547302b15bdSmrg} 5548302b15bdSmrg_ACEOF 5549302b15bdSmrgif ac_fn_c_try_compile "$LINENO"; then : 5550302b15bdSmrg echo conftest.$ac_objext > conftest.lst 5551302b15bdSmrg lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5552302b15bdSmrg { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5553302b15bdSmrg (eval $lt_ar_try) 2>&5 5554302b15bdSmrg ac_status=$? 5555302b15bdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5556302b15bdSmrg test $ac_status = 0; } 5557302b15bdSmrg if test "$ac_status" -eq 0; then 5558302b15bdSmrg # Ensure the archiver fails upon bogus file names. 5559302b15bdSmrg rm -f conftest.$ac_objext libconftest.a 5560302b15bdSmrg { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5561302b15bdSmrg (eval $lt_ar_try) 2>&5 5562302b15bdSmrg ac_status=$? 5563302b15bdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5564302b15bdSmrg test $ac_status = 0; } 5565302b15bdSmrg if test "$ac_status" -ne 0; then 5566302b15bdSmrg lt_cv_ar_at_file=@ 5567302b15bdSmrg fi 5568302b15bdSmrg fi 5569302b15bdSmrg rm -f conftest.* libconftest.a 5570b85037dbSmrg 5571302b15bdSmrgfi 5572302b15bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5573b85037dbSmrg 5574302b15bdSmrgfi 5575302b15bdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5576302b15bdSmrg$as_echo "$lt_cv_ar_at_file" >&6; } 5577b85037dbSmrg 5578302b15bdSmrgif test "x$lt_cv_ar_at_file" = xno; then 5579302b15bdSmrg archiver_list_spec= 5580302b15bdSmrgelse 5581302b15bdSmrg archiver_list_spec=$lt_cv_ar_at_file 5582302b15bdSmrgfi 5583b85037dbSmrg 5584b85037dbSmrg 5585b85037dbSmrg 5586b85037dbSmrg 5587b85037dbSmrg 5588b85037dbSmrg 5589b85037dbSmrg 5590b85037dbSmrgif test -n "$ac_tool_prefix"; then 5591b85037dbSmrg # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5592b85037dbSmrgset dummy ${ac_tool_prefix}strip; ac_word=$2 5593b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5594b85037dbSmrg$as_echo_n "checking for $ac_word... " >&6; } 5595302b15bdSmrgif ${ac_cv_prog_STRIP+:} false; then : 5596b85037dbSmrg $as_echo_n "(cached) " >&6 5597b85037dbSmrgelse 5598b85037dbSmrg if test -n "$STRIP"; then 5599b85037dbSmrg ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5600b85037dbSmrgelse 5601b85037dbSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5602b85037dbSmrgfor as_dir in $PATH 5603b85037dbSmrgdo 5604b85037dbSmrg IFS=$as_save_IFS 5605b85037dbSmrg test -z "$as_dir" && as_dir=. 5606b85037dbSmrg for ac_exec_ext in '' $ac_executable_extensions; do 560728515619Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5608b85037dbSmrg ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5609b85037dbSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5610b85037dbSmrg break 2 5611b85037dbSmrg fi 5612b85037dbSmrgdone 5613b85037dbSmrg done 5614b85037dbSmrgIFS=$as_save_IFS 5615b85037dbSmrg 5616b85037dbSmrgfi 5617b85037dbSmrgfi 5618b85037dbSmrgSTRIP=$ac_cv_prog_STRIP 5619b85037dbSmrgif test -n "$STRIP"; then 5620b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5621b85037dbSmrg$as_echo "$STRIP" >&6; } 5622b85037dbSmrgelse 5623b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5624b85037dbSmrg$as_echo "no" >&6; } 5625b85037dbSmrgfi 5626b85037dbSmrg 5627b85037dbSmrg 5628b85037dbSmrgfi 5629b85037dbSmrgif test -z "$ac_cv_prog_STRIP"; then 5630b85037dbSmrg ac_ct_STRIP=$STRIP 5631b85037dbSmrg # Extract the first word of "strip", so it can be a program name with args. 5632b85037dbSmrgset dummy strip; ac_word=$2 5633b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5634b85037dbSmrg$as_echo_n "checking for $ac_word... " >&6; } 5635302b15bdSmrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5636b85037dbSmrg $as_echo_n "(cached) " >&6 5637b85037dbSmrgelse 5638b85037dbSmrg if test -n "$ac_ct_STRIP"; then 5639b85037dbSmrg ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5640b85037dbSmrgelse 5641b85037dbSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5642b85037dbSmrgfor as_dir in $PATH 5643b85037dbSmrgdo 5644b85037dbSmrg IFS=$as_save_IFS 5645b85037dbSmrg test -z "$as_dir" && as_dir=. 5646b85037dbSmrg for ac_exec_ext in '' $ac_executable_extensions; do 564728515619Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5648b85037dbSmrg ac_cv_prog_ac_ct_STRIP="strip" 5649b85037dbSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5650b85037dbSmrg break 2 5651b85037dbSmrg fi 5652b85037dbSmrgdone 5653b85037dbSmrg done 5654b85037dbSmrgIFS=$as_save_IFS 5655b85037dbSmrg 5656b85037dbSmrgfi 5657b85037dbSmrgfi 5658b85037dbSmrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5659b85037dbSmrgif test -n "$ac_ct_STRIP"; then 5660b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5661b85037dbSmrg$as_echo "$ac_ct_STRIP" >&6; } 5662b85037dbSmrgelse 5663b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5664b85037dbSmrg$as_echo "no" >&6; } 5665b85037dbSmrgfi 5666b85037dbSmrg 5667b85037dbSmrg if test "x$ac_ct_STRIP" = x; then 5668b85037dbSmrg STRIP=":" 5669b85037dbSmrg else 5670b85037dbSmrg case $cross_compiling:$ac_tool_warned in 5671b85037dbSmrgyes:) 5672b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5673b85037dbSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5674b85037dbSmrgac_tool_warned=yes ;; 5675b85037dbSmrgesac 5676b85037dbSmrg STRIP=$ac_ct_STRIP 5677b85037dbSmrg fi 5678b85037dbSmrgelse 5679b85037dbSmrg STRIP="$ac_cv_prog_STRIP" 5680b85037dbSmrgfi 5681b85037dbSmrg 5682b85037dbSmrgtest -z "$STRIP" && STRIP=: 5683b85037dbSmrg 5684b85037dbSmrg 5685b85037dbSmrg 5686b85037dbSmrg 5687b85037dbSmrg 5688b85037dbSmrg 5689b85037dbSmrgif test -n "$ac_tool_prefix"; then 5690b85037dbSmrg # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5691b85037dbSmrgset dummy ${ac_tool_prefix}ranlib; ac_word=$2 5692b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5693b85037dbSmrg$as_echo_n "checking for $ac_word... " >&6; } 5694302b15bdSmrgif ${ac_cv_prog_RANLIB+:} false; then : 5695b85037dbSmrg $as_echo_n "(cached) " >&6 5696b85037dbSmrgelse 5697b85037dbSmrg if test -n "$RANLIB"; then 5698b85037dbSmrg ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5699b85037dbSmrgelse 5700b85037dbSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5701b85037dbSmrgfor as_dir in $PATH 5702b85037dbSmrgdo 5703b85037dbSmrg IFS=$as_save_IFS 5704b85037dbSmrg test -z "$as_dir" && as_dir=. 5705b85037dbSmrg for ac_exec_ext in '' $ac_executable_extensions; do 570628515619Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5707b85037dbSmrg ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5708b85037dbSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5709b85037dbSmrg break 2 5710b85037dbSmrg fi 5711b85037dbSmrgdone 5712b85037dbSmrg done 5713b85037dbSmrgIFS=$as_save_IFS 5714b85037dbSmrg 5715b85037dbSmrgfi 5716b85037dbSmrgfi 5717b85037dbSmrgRANLIB=$ac_cv_prog_RANLIB 5718b85037dbSmrgif test -n "$RANLIB"; then 5719b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5720b85037dbSmrg$as_echo "$RANLIB" >&6; } 5721b85037dbSmrgelse 5722b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5723b85037dbSmrg$as_echo "no" >&6; } 5724b85037dbSmrgfi 5725b85037dbSmrg 5726b85037dbSmrg 5727b85037dbSmrgfi 5728b85037dbSmrgif test -z "$ac_cv_prog_RANLIB"; then 5729b85037dbSmrg ac_ct_RANLIB=$RANLIB 5730b85037dbSmrg # Extract the first word of "ranlib", so it can be a program name with args. 5731b85037dbSmrgset dummy ranlib; ac_word=$2 5732b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5733b85037dbSmrg$as_echo_n "checking for $ac_word... " >&6; } 5734302b15bdSmrgif ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5735b85037dbSmrg $as_echo_n "(cached) " >&6 5736b85037dbSmrgelse 5737b85037dbSmrg if test -n "$ac_ct_RANLIB"; then 5738b85037dbSmrg ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5739b85037dbSmrgelse 5740b85037dbSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5741b85037dbSmrgfor as_dir in $PATH 5742b85037dbSmrgdo 5743b85037dbSmrg IFS=$as_save_IFS 5744b85037dbSmrg test -z "$as_dir" && as_dir=. 5745b85037dbSmrg for ac_exec_ext in '' $ac_executable_extensions; do 574628515619Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5747b85037dbSmrg ac_cv_prog_ac_ct_RANLIB="ranlib" 5748b85037dbSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5749b85037dbSmrg break 2 5750b85037dbSmrg fi 5751b85037dbSmrgdone 5752b85037dbSmrg done 5753b85037dbSmrgIFS=$as_save_IFS 5754b85037dbSmrg 5755b85037dbSmrgfi 5756b85037dbSmrgfi 5757b85037dbSmrgac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5758b85037dbSmrgif test -n "$ac_ct_RANLIB"; then 5759b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5760b85037dbSmrg$as_echo "$ac_ct_RANLIB" >&6; } 5761b85037dbSmrgelse 5762b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5763b85037dbSmrg$as_echo "no" >&6; } 5764b85037dbSmrgfi 5765b85037dbSmrg 5766b85037dbSmrg if test "x$ac_ct_RANLIB" = x; then 5767b85037dbSmrg RANLIB=":" 5768b85037dbSmrg else 5769b85037dbSmrg case $cross_compiling:$ac_tool_warned in 5770b85037dbSmrgyes:) 5771b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5772b85037dbSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5773b85037dbSmrgac_tool_warned=yes ;; 5774b85037dbSmrgesac 5775b85037dbSmrg RANLIB=$ac_ct_RANLIB 5776b85037dbSmrg fi 5777b85037dbSmrgelse 5778b85037dbSmrg RANLIB="$ac_cv_prog_RANLIB" 5779b85037dbSmrgfi 5780b85037dbSmrg 5781b85037dbSmrgtest -z "$RANLIB" && RANLIB=: 5782b85037dbSmrg 5783b85037dbSmrg 5784b85037dbSmrg 5785b85037dbSmrg 5786b85037dbSmrg 5787b85037dbSmrg 5788b85037dbSmrg# Determine commands to create old-style static archives. 5789b85037dbSmrgold_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5790b85037dbSmrgold_postinstall_cmds='chmod 644 $oldlib' 5791b85037dbSmrgold_postuninstall_cmds= 5792b85037dbSmrg 5793b85037dbSmrgif test -n "$RANLIB"; then 5794b85037dbSmrg case $host_os in 5795b85037dbSmrg openbsd*) 579628515619Smrg old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 5797b85037dbSmrg ;; 5798b85037dbSmrg *) 579928515619Smrg old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 5800b85037dbSmrg ;; 5801b85037dbSmrg esac 580228515619Smrg old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 5803b85037dbSmrgfi 5804b85037dbSmrg 5805b85037dbSmrgcase $host_os in 5806b85037dbSmrg darwin*) 5807b85037dbSmrg lock_old_archive_extraction=yes ;; 5808b85037dbSmrg *) 5809b85037dbSmrg lock_old_archive_extraction=no ;; 5810b85037dbSmrgesac 5811b85037dbSmrg 5812b85037dbSmrg 5813b85037dbSmrg 5814b85037dbSmrg 5815b85037dbSmrg 5816b85037dbSmrg 5817b85037dbSmrg 5818b85037dbSmrg 5819b85037dbSmrg 5820b85037dbSmrg 5821b85037dbSmrg 5822b85037dbSmrg 5823b85037dbSmrg 5824b85037dbSmrg 5825b85037dbSmrg 5826b85037dbSmrg 5827b85037dbSmrg 5828b85037dbSmrg 5829b85037dbSmrg 5830b85037dbSmrg 5831b85037dbSmrg 5832b85037dbSmrg 5833b85037dbSmrg 5834b85037dbSmrg 5835b85037dbSmrg 5836b85037dbSmrg 5837b85037dbSmrg 5838b85037dbSmrg 5839b85037dbSmrg 5840b85037dbSmrg 5841b85037dbSmrg 5842b85037dbSmrg 5843b85037dbSmrg 5844b85037dbSmrg 5845b85037dbSmrg 5846b85037dbSmrg 5847b85037dbSmrg 5848b85037dbSmrg 5849b85037dbSmrg 5850b85037dbSmrg# If no C compiler was specified, use CC. 5851b85037dbSmrgLTCC=${LTCC-"$CC"} 5852b85037dbSmrg 5853b85037dbSmrg# If no C compiler flags were specified, use CFLAGS. 5854b85037dbSmrgLTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5855b85037dbSmrg 5856b85037dbSmrg# Allow CC to be a program name with arguments. 5857b85037dbSmrgcompiler=$CC 5858b85037dbSmrg 5859b85037dbSmrg 5860b85037dbSmrg# Check for command to grab the raw symbol name followed by C symbol from nm. 5861b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5862b85037dbSmrg$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5863302b15bdSmrgif ${lt_cv_sys_global_symbol_pipe+:} false; then : 5864b85037dbSmrg $as_echo_n "(cached) " >&6 5865b85037dbSmrgelse 5866b85037dbSmrg 5867b85037dbSmrg# These are sane defaults that work on at least a few old systems. 5868b85037dbSmrg# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5869b85037dbSmrg 5870b85037dbSmrg# Character class describing NM global symbol codes. 5871b85037dbSmrgsymcode='[BCDEGRST]' 5872b85037dbSmrg 5873b85037dbSmrg# Regexp to match symbols that can be accessed directly from C. 5874b85037dbSmrgsympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5875b85037dbSmrg 5876b85037dbSmrg# Define system-specific variables. 5877b85037dbSmrgcase $host_os in 5878b85037dbSmrgaix*) 5879b85037dbSmrg symcode='[BCDT]' 5880b85037dbSmrg ;; 5881b85037dbSmrgcygwin* | mingw* | pw32* | cegcc*) 5882b85037dbSmrg symcode='[ABCDGISTW]' 5883b85037dbSmrg ;; 5884b85037dbSmrghpux*) 5885b85037dbSmrg if test "$host_cpu" = ia64; then 5886b85037dbSmrg symcode='[ABCDEGRST]' 5887b85037dbSmrg fi 5888b85037dbSmrg ;; 5889b85037dbSmrgirix* | nonstopux*) 5890b85037dbSmrg symcode='[BCDEGRST]' 5891b85037dbSmrg ;; 5892b85037dbSmrgosf*) 5893b85037dbSmrg symcode='[BCDEGQRST]' 5894b85037dbSmrg ;; 5895b85037dbSmrgsolaris*) 5896b85037dbSmrg symcode='[BDRT]' 5897b85037dbSmrg ;; 5898b85037dbSmrgsco3.2v5*) 5899b85037dbSmrg symcode='[DT]' 5900b85037dbSmrg ;; 5901b85037dbSmrgsysv4.2uw2*) 5902b85037dbSmrg symcode='[DT]' 5903b85037dbSmrg ;; 5904b85037dbSmrgsysv5* | sco5v6* | unixware* | OpenUNIX*) 5905b85037dbSmrg symcode='[ABDT]' 5906b85037dbSmrg ;; 5907b85037dbSmrgsysv4) 5908b85037dbSmrg symcode='[DFNSTU]' 5909b85037dbSmrg ;; 5910b85037dbSmrgesac 5911b85037dbSmrg 5912b85037dbSmrg# If we're using GNU nm, then use its standard symbol codes. 5913b85037dbSmrgcase `$NM -V 2>&1` in 5914b85037dbSmrg*GNU* | *'with BFD'*) 5915b85037dbSmrg symcode='[ABCDGIRSTW]' ;; 5916b85037dbSmrgesac 5917b85037dbSmrg 5918b85037dbSmrg# Transform an extracted symbol line into a proper C declaration. 5919b85037dbSmrg# Some systems (esp. on ia64) link data and code symbols differently, 5920b85037dbSmrg# so use this general approach. 5921b85037dbSmrglt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5922b85037dbSmrg 5923b85037dbSmrg# Transform an extracted symbol line into symbol name and symbol address 5924302b15bdSmrglt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5925302b15bdSmrglt_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'" 5926b85037dbSmrg 5927b85037dbSmrg# Handle CRLF in mingw tool chain 5928b85037dbSmrgopt_cr= 5929b85037dbSmrgcase $build_os in 5930b85037dbSmrgmingw*) 5931b85037dbSmrg opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5932b85037dbSmrg ;; 5933b85037dbSmrgesac 5934b85037dbSmrg 5935b85037dbSmrg# Try without a prefix underscore, then with it. 5936b85037dbSmrgfor ac_symprfx in "" "_"; do 5937b85037dbSmrg 5938b85037dbSmrg # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5939b85037dbSmrg symxfrm="\\1 $ac_symprfx\\2 \\2" 5940b85037dbSmrg 5941b85037dbSmrg # Write the raw and C identifiers. 5942b85037dbSmrg if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5943b85037dbSmrg # Fake it for dumpbin and say T for any non-static function 5944b85037dbSmrg # and D for any global variable. 5945b85037dbSmrg # Also find C++ and __fastcall symbols from MSVC++, 5946b85037dbSmrg # which start with @ or ?. 5947b85037dbSmrg lt_cv_sys_global_symbol_pipe="$AWK '"\ 5948b85037dbSmrg" {last_section=section; section=\$ 3};"\ 594928515619Smrg" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 5950b85037dbSmrg" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5951b85037dbSmrg" \$ 0!~/External *\|/{next};"\ 5952b85037dbSmrg" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5953b85037dbSmrg" {if(hide[section]) next};"\ 5954b85037dbSmrg" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5955b85037dbSmrg" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5956b85037dbSmrg" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5957b85037dbSmrg" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5958b85037dbSmrg" ' prfx=^$ac_symprfx" 5959b85037dbSmrg else 5960b85037dbSmrg lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5961b85037dbSmrg fi 5962302b15bdSmrg lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 5963b85037dbSmrg 5964b85037dbSmrg # Check to see that the pipe works correctly. 5965b85037dbSmrg pipe_works=no 5966b85037dbSmrg 5967b85037dbSmrg rm -f conftest* 5968b85037dbSmrg cat > conftest.$ac_ext <<_LT_EOF 5969b85037dbSmrg#ifdef __cplusplus 5970b85037dbSmrgextern "C" { 5971b85037dbSmrg#endif 5972b85037dbSmrgchar nm_test_var; 5973b85037dbSmrgvoid nm_test_func(void); 5974b85037dbSmrgvoid nm_test_func(void){} 5975b85037dbSmrg#ifdef __cplusplus 5976b85037dbSmrg} 5977b85037dbSmrg#endif 5978b85037dbSmrgint main(){nm_test_var='a';nm_test_func();return(0);} 5979b85037dbSmrg_LT_EOF 5980b85037dbSmrg 5981b85037dbSmrg if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5982b85037dbSmrg (eval $ac_compile) 2>&5 5983b85037dbSmrg ac_status=$? 5984b85037dbSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5985b85037dbSmrg test $ac_status = 0; }; then 5986b85037dbSmrg # Now try to grab the symbols. 5987b85037dbSmrg nlist=conftest.nm 5988b85037dbSmrg if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 5989b85037dbSmrg (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 5990b85037dbSmrg ac_status=$? 5991b85037dbSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5992b85037dbSmrg test $ac_status = 0; } && test -s "$nlist"; then 5993b85037dbSmrg # Try sorting and uniquifying the output. 5994b85037dbSmrg if sort "$nlist" | uniq > "$nlist"T; then 5995b85037dbSmrg mv -f "$nlist"T "$nlist" 5996b85037dbSmrg else 5997b85037dbSmrg rm -f "$nlist"T 5998b85037dbSmrg fi 5999b85037dbSmrg 6000b85037dbSmrg # Make sure that we snagged all the symbols we need. 6001b85037dbSmrg if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6002b85037dbSmrg if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6003b85037dbSmrg cat <<_LT_EOF > conftest.$ac_ext 6004302b15bdSmrg/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6005302b15bdSmrg#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6006302b15bdSmrg/* DATA imports from DLLs on WIN32 con't be const, because runtime 6007302b15bdSmrg relocations are performed -- see ld's documentation on pseudo-relocs. */ 6008302b15bdSmrg# define LT_DLSYM_CONST 6009302b15bdSmrg#elif defined(__osf__) 6010302b15bdSmrg/* This system does not cope well with relocations in const data. */ 6011302b15bdSmrg# define LT_DLSYM_CONST 6012302b15bdSmrg#else 6013302b15bdSmrg# define LT_DLSYM_CONST const 6014302b15bdSmrg#endif 6015302b15bdSmrg 6016b85037dbSmrg#ifdef __cplusplus 6017b85037dbSmrgextern "C" { 6018b85037dbSmrg#endif 6019b85037dbSmrg 6020b85037dbSmrg_LT_EOF 6021b85037dbSmrg # Now generate the symbol file. 6022b85037dbSmrg eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6023b85037dbSmrg 6024b85037dbSmrg cat <<_LT_EOF >> conftest.$ac_ext 6025b85037dbSmrg 6026b85037dbSmrg/* The mapping between symbol names and symbols. */ 6027302b15bdSmrgLT_DLSYM_CONST struct { 6028b85037dbSmrg const char *name; 6029b85037dbSmrg void *address; 6030b85037dbSmrg} 6031b85037dbSmrglt__PROGRAM__LTX_preloaded_symbols[] = 6032b85037dbSmrg{ 6033b85037dbSmrg { "@PROGRAM@", (void *) 0 }, 6034b85037dbSmrg_LT_EOF 6035b85037dbSmrg $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6036b85037dbSmrg cat <<\_LT_EOF >> conftest.$ac_ext 6037b85037dbSmrg {0, (void *) 0} 6038b85037dbSmrg}; 6039b85037dbSmrg 6040b85037dbSmrg/* This works around a problem in FreeBSD linker */ 6041b85037dbSmrg#ifdef FREEBSD_WORKAROUND 6042b85037dbSmrgstatic const void *lt_preloaded_setup() { 6043b85037dbSmrg return lt__PROGRAM__LTX_preloaded_symbols; 6044b85037dbSmrg} 6045b85037dbSmrg#endif 6046b85037dbSmrg 6047b85037dbSmrg#ifdef __cplusplus 6048b85037dbSmrg} 6049b85037dbSmrg#endif 6050b85037dbSmrg_LT_EOF 6051b85037dbSmrg # Now try linking the two files. 6052b85037dbSmrg mv conftest.$ac_objext conftstm.$ac_objext 6053302b15bdSmrg lt_globsym_save_LIBS=$LIBS 6054302b15bdSmrg lt_globsym_save_CFLAGS=$CFLAGS 6055b85037dbSmrg LIBS="conftstm.$ac_objext" 6056b85037dbSmrg CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6057b85037dbSmrg if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6058b85037dbSmrg (eval $ac_link) 2>&5 6059b85037dbSmrg ac_status=$? 6060b85037dbSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6061b85037dbSmrg test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6062b85037dbSmrg pipe_works=yes 6063b85037dbSmrg fi 6064302b15bdSmrg LIBS=$lt_globsym_save_LIBS 6065302b15bdSmrg CFLAGS=$lt_globsym_save_CFLAGS 6066b85037dbSmrg else 6067b85037dbSmrg echo "cannot find nm_test_func in $nlist" >&5 6068b85037dbSmrg fi 6069b85037dbSmrg else 6070b85037dbSmrg echo "cannot find nm_test_var in $nlist" >&5 6071b85037dbSmrg fi 6072b85037dbSmrg else 6073b85037dbSmrg echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6074b85037dbSmrg fi 6075b85037dbSmrg else 6076b85037dbSmrg echo "$progname: failed program was:" >&5 6077b85037dbSmrg cat conftest.$ac_ext >&5 6078b85037dbSmrg fi 6079b85037dbSmrg rm -rf conftest* conftst* 6080b85037dbSmrg 6081b85037dbSmrg # Do not use the global_symbol_pipe unless it works. 6082b85037dbSmrg if test "$pipe_works" = yes; then 6083b85037dbSmrg break 6084b85037dbSmrg else 6085b85037dbSmrg lt_cv_sys_global_symbol_pipe= 6086b85037dbSmrg fi 6087b85037dbSmrgdone 6088b85037dbSmrg 6089b85037dbSmrgfi 6090b85037dbSmrg 6091b85037dbSmrgif test -z "$lt_cv_sys_global_symbol_pipe"; then 6092b85037dbSmrg lt_cv_sys_global_symbol_to_cdecl= 6093b85037dbSmrgfi 6094b85037dbSmrgif test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6095b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6096b85037dbSmrg$as_echo "failed" >&6; } 6097b85037dbSmrgelse 6098b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6099b85037dbSmrg$as_echo "ok" >&6; } 6100b85037dbSmrgfi 6101b85037dbSmrg 6102302b15bdSmrg# Response file support. 6103302b15bdSmrgif test "$lt_cv_nm_interface" = "MS dumpbin"; then 6104302b15bdSmrg nm_file_list_spec='@' 6105302b15bdSmrgelif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6106302b15bdSmrg nm_file_list_spec='@' 6107302b15bdSmrgfi 6108302b15bdSmrg 6109302b15bdSmrg 6110302b15bdSmrg 6111302b15bdSmrg 6112302b15bdSmrg 6113b85037dbSmrg 6114b85037dbSmrg 6115b85037dbSmrg 6116b85037dbSmrg 6117b85037dbSmrg 6118b85037dbSmrg 6119b85037dbSmrg 6120b85037dbSmrg 6121b85037dbSmrg 6122b85037dbSmrg 6123b85037dbSmrg 6124b85037dbSmrg 6125b85037dbSmrg 6126b85037dbSmrg 6127b85037dbSmrg 6128b85037dbSmrg 6129b85037dbSmrg 6130302b15bdSmrg 6131302b15bdSmrg 6132302b15bdSmrg 6133302b15bdSmrg 6134302b15bdSmrg 6135302b15bdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6136302b15bdSmrg$as_echo_n "checking for sysroot... " >&6; } 6137302b15bdSmrg 6138302b15bdSmrg# Check whether --with-sysroot was given. 6139302b15bdSmrgif test "${with_sysroot+set}" = set; then : 6140302b15bdSmrg withval=$with_sysroot; 6141302b15bdSmrgelse 6142302b15bdSmrg with_sysroot=no 6143302b15bdSmrgfi 6144302b15bdSmrg 6145302b15bdSmrg 6146302b15bdSmrglt_sysroot= 6147302b15bdSmrgcase ${with_sysroot} in #( 6148302b15bdSmrg yes) 6149302b15bdSmrg if test "$GCC" = yes; then 6150302b15bdSmrg lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6151302b15bdSmrg fi 6152302b15bdSmrg ;; #( 6153302b15bdSmrg /*) 6154302b15bdSmrg lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6155302b15bdSmrg ;; #( 6156302b15bdSmrg no|'') 6157302b15bdSmrg ;; #( 6158302b15bdSmrg *) 6159302b15bdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6160302b15bdSmrg$as_echo "${with_sysroot}" >&6; } 6161302b15bdSmrg as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6162302b15bdSmrg ;; 6163302b15bdSmrgesac 6164302b15bdSmrg 6165302b15bdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6166302b15bdSmrg$as_echo "${lt_sysroot:-no}" >&6; } 6167b85037dbSmrg 6168b85037dbSmrg 6169b85037dbSmrg 6170b85037dbSmrg 6171b85037dbSmrg 6172b85037dbSmrg# Check whether --enable-libtool-lock was given. 6173b85037dbSmrgif test "${enable_libtool_lock+set}" = set; then : 6174b85037dbSmrg enableval=$enable_libtool_lock; 6175b85037dbSmrgfi 6176b85037dbSmrg 6177b85037dbSmrgtest "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6178b85037dbSmrg 6179b85037dbSmrg# Some flags need to be propagated to the compiler or linker for good 6180b85037dbSmrg# libtool support. 6181b85037dbSmrgcase $host in 6182b85037dbSmrgia64-*-hpux*) 6183b85037dbSmrg # Find out which ABI we are using. 6184b85037dbSmrg echo 'int i;' > conftest.$ac_ext 6185b85037dbSmrg if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6186b85037dbSmrg (eval $ac_compile) 2>&5 6187b85037dbSmrg ac_status=$? 6188b85037dbSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6189b85037dbSmrg test $ac_status = 0; }; then 6190b85037dbSmrg case `/usr/bin/file conftest.$ac_objext` in 6191b85037dbSmrg *ELF-32*) 6192b85037dbSmrg HPUX_IA64_MODE="32" 6193b85037dbSmrg ;; 6194b85037dbSmrg *ELF-64*) 6195b85037dbSmrg HPUX_IA64_MODE="64" 6196b85037dbSmrg ;; 6197b85037dbSmrg esac 6198b85037dbSmrg fi 6199b85037dbSmrg rm -rf conftest* 6200b85037dbSmrg ;; 6201b85037dbSmrg*-*-irix6*) 6202b85037dbSmrg # Find out which ABI we are using. 6203b85037dbSmrg echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6204b85037dbSmrg if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6205b85037dbSmrg (eval $ac_compile) 2>&5 6206b85037dbSmrg ac_status=$? 6207b85037dbSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6208b85037dbSmrg test $ac_status = 0; }; then 6209b85037dbSmrg if test "$lt_cv_prog_gnu_ld" = yes; then 6210b85037dbSmrg case `/usr/bin/file conftest.$ac_objext` in 6211b85037dbSmrg *32-bit*) 6212b85037dbSmrg LD="${LD-ld} -melf32bsmip" 6213b85037dbSmrg ;; 6214b85037dbSmrg *N32*) 6215b85037dbSmrg LD="${LD-ld} -melf32bmipn32" 6216b85037dbSmrg ;; 6217b85037dbSmrg *64-bit*) 6218b85037dbSmrg LD="${LD-ld} -melf64bmip" 6219b85037dbSmrg ;; 6220b85037dbSmrg esac 6221b85037dbSmrg else 6222b85037dbSmrg case `/usr/bin/file conftest.$ac_objext` in 6223b85037dbSmrg *32-bit*) 6224b85037dbSmrg LD="${LD-ld} -32" 6225b85037dbSmrg ;; 6226b85037dbSmrg *N32*) 6227b85037dbSmrg LD="${LD-ld} -n32" 6228b85037dbSmrg ;; 6229b85037dbSmrg *64-bit*) 6230b85037dbSmrg LD="${LD-ld} -64" 6231b85037dbSmrg ;; 6232b85037dbSmrg esac 6233b85037dbSmrg fi 6234b85037dbSmrg fi 6235b85037dbSmrg rm -rf conftest* 6236b85037dbSmrg ;; 6237b85037dbSmrg 6238b85037dbSmrgx86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6239b85037dbSmrgs390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6240b85037dbSmrg # Find out which ABI we are using. 6241b85037dbSmrg echo 'int i;' > conftest.$ac_ext 6242b85037dbSmrg if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6243b85037dbSmrg (eval $ac_compile) 2>&5 6244b85037dbSmrg ac_status=$? 6245b85037dbSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6246b85037dbSmrg test $ac_status = 0; }; then 6247b85037dbSmrg case `/usr/bin/file conftest.o` in 6248b85037dbSmrg *32-bit*) 6249b85037dbSmrg case $host in 6250b85037dbSmrg x86_64-*kfreebsd*-gnu) 6251b85037dbSmrg LD="${LD-ld} -m elf_i386_fbsd" 6252b85037dbSmrg ;; 6253b85037dbSmrg x86_64-*linux*) 6254b85037dbSmrg LD="${LD-ld} -m elf_i386" 6255b85037dbSmrg ;; 6256b85037dbSmrg ppc64-*linux*|powerpc64-*linux*) 6257b85037dbSmrg LD="${LD-ld} -m elf32ppclinux" 6258b85037dbSmrg ;; 6259b85037dbSmrg s390x-*linux*) 6260b85037dbSmrg LD="${LD-ld} -m elf_s390" 6261b85037dbSmrg ;; 6262b85037dbSmrg sparc64-*linux*) 6263b85037dbSmrg LD="${LD-ld} -m elf32_sparc" 6264b85037dbSmrg ;; 6265b85037dbSmrg esac 6266b85037dbSmrg ;; 6267b85037dbSmrg *64-bit*) 6268b85037dbSmrg case $host in 6269b85037dbSmrg x86_64-*kfreebsd*-gnu) 6270b85037dbSmrg LD="${LD-ld} -m elf_x86_64_fbsd" 6271b85037dbSmrg ;; 6272b85037dbSmrg x86_64-*linux*) 6273b85037dbSmrg LD="${LD-ld} -m elf_x86_64" 6274b85037dbSmrg ;; 6275b85037dbSmrg ppc*-*linux*|powerpc*-*linux*) 6276b85037dbSmrg LD="${LD-ld} -m elf64ppc" 6277b85037dbSmrg ;; 6278b85037dbSmrg s390*-*linux*|s390*-*tpf*) 6279b85037dbSmrg LD="${LD-ld} -m elf64_s390" 6280b85037dbSmrg ;; 6281b85037dbSmrg sparc*-*linux*) 6282b85037dbSmrg LD="${LD-ld} -m elf64_sparc" 6283b85037dbSmrg ;; 6284b85037dbSmrg esac 6285b85037dbSmrg ;; 6286b85037dbSmrg esac 6287b85037dbSmrg fi 6288b85037dbSmrg rm -rf conftest* 6289b85037dbSmrg ;; 6290b85037dbSmrg 6291b85037dbSmrg*-*-sco3.2v5*) 6292b85037dbSmrg # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6293b85037dbSmrg SAVE_CFLAGS="$CFLAGS" 6294b85037dbSmrg CFLAGS="$CFLAGS -belf" 6295b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6296b85037dbSmrg$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6297302b15bdSmrgif ${lt_cv_cc_needs_belf+:} false; then : 6298b85037dbSmrg $as_echo_n "(cached) " >&6 6299b85037dbSmrgelse 6300b85037dbSmrg ac_ext=c 6301b85037dbSmrgac_cpp='$CPP $CPPFLAGS' 6302b85037dbSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6303b85037dbSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6304b85037dbSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 6305b85037dbSmrg 6306b85037dbSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6307b85037dbSmrg/* end confdefs.h. */ 6308b85037dbSmrg 6309b85037dbSmrgint 6310b85037dbSmrgmain () 6311b85037dbSmrg{ 6312b85037dbSmrg 6313b85037dbSmrg ; 6314b85037dbSmrg return 0; 6315b85037dbSmrg} 6316b85037dbSmrg_ACEOF 6317b85037dbSmrgif ac_fn_c_try_link "$LINENO"; then : 6318b85037dbSmrg lt_cv_cc_needs_belf=yes 6319b85037dbSmrgelse 6320b85037dbSmrg lt_cv_cc_needs_belf=no 6321b85037dbSmrgfi 6322b85037dbSmrgrm -f core conftest.err conftest.$ac_objext \ 6323b85037dbSmrg conftest$ac_exeext conftest.$ac_ext 6324b85037dbSmrg ac_ext=c 6325b85037dbSmrgac_cpp='$CPP $CPPFLAGS' 6326b85037dbSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6327b85037dbSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6328b85037dbSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 6329b85037dbSmrg 6330b85037dbSmrgfi 6331b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6332b85037dbSmrg$as_echo "$lt_cv_cc_needs_belf" >&6; } 6333b85037dbSmrg if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6334b85037dbSmrg # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6335b85037dbSmrg CFLAGS="$SAVE_CFLAGS" 6336b85037dbSmrg fi 6337b85037dbSmrg ;; 633828515619Smrg*-*solaris*) 6339b85037dbSmrg # Find out which ABI we are using. 6340b85037dbSmrg echo 'int i;' > conftest.$ac_ext 6341b85037dbSmrg if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6342b85037dbSmrg (eval $ac_compile) 2>&5 6343b85037dbSmrg ac_status=$? 6344b85037dbSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6345b85037dbSmrg test $ac_status = 0; }; then 6346b85037dbSmrg case `/usr/bin/file conftest.o` in 6347b85037dbSmrg *64-bit*) 6348b85037dbSmrg case $lt_cv_prog_gnu_ld in 634928515619Smrg yes*) 635028515619Smrg case $host in 635128515619Smrg i?86-*-solaris*) 635228515619Smrg LD="${LD-ld} -m elf_x86_64" 635328515619Smrg ;; 635428515619Smrg sparc*-*-solaris*) 635528515619Smrg LD="${LD-ld} -m elf64_sparc" 635628515619Smrg ;; 635728515619Smrg esac 635828515619Smrg # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 635928515619Smrg if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 636028515619Smrg LD="${LD-ld}_sol2" 636128515619Smrg fi 636228515619Smrg ;; 6363b85037dbSmrg *) 6364b85037dbSmrg if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6365b85037dbSmrg LD="${LD-ld} -64" 6366b85037dbSmrg fi 6367b85037dbSmrg ;; 6368b85037dbSmrg esac 6369b85037dbSmrg ;; 6370b85037dbSmrg esac 6371b85037dbSmrg fi 6372b85037dbSmrg rm -rf conftest* 6373b85037dbSmrg ;; 6374b85037dbSmrgesac 6375b85037dbSmrg 6376302b15bdSmrgneed_locks="$enable_libtool_lock" 6377302b15bdSmrg 6378302b15bdSmrgif test -n "$ac_tool_prefix"; then 6379302b15bdSmrg # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6380302b15bdSmrgset dummy ${ac_tool_prefix}mt; ac_word=$2 6381302b15bdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6382302b15bdSmrg$as_echo_n "checking for $ac_word... " >&6; } 6383302b15bdSmrgif ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6384302b15bdSmrg $as_echo_n "(cached) " >&6 6385302b15bdSmrgelse 6386302b15bdSmrg if test -n "$MANIFEST_TOOL"; then 6387302b15bdSmrg ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6388302b15bdSmrgelse 6389302b15bdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6390302b15bdSmrgfor as_dir in $PATH 6391302b15bdSmrgdo 6392302b15bdSmrg IFS=$as_save_IFS 6393302b15bdSmrg test -z "$as_dir" && as_dir=. 6394302b15bdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 639528515619Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6396302b15bdSmrg ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6397302b15bdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6398302b15bdSmrg break 2 6399302b15bdSmrg fi 6400302b15bdSmrgdone 6401302b15bdSmrg done 6402302b15bdSmrgIFS=$as_save_IFS 6403302b15bdSmrg 6404302b15bdSmrgfi 6405302b15bdSmrgfi 6406302b15bdSmrgMANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6407302b15bdSmrgif test -n "$MANIFEST_TOOL"; then 6408302b15bdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6409302b15bdSmrg$as_echo "$MANIFEST_TOOL" >&6; } 6410302b15bdSmrgelse 6411302b15bdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6412302b15bdSmrg$as_echo "no" >&6; } 6413302b15bdSmrgfi 6414302b15bdSmrg 6415302b15bdSmrg 6416302b15bdSmrgfi 6417302b15bdSmrgif test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6418302b15bdSmrg ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6419302b15bdSmrg # Extract the first word of "mt", so it can be a program name with args. 6420302b15bdSmrgset dummy mt; ac_word=$2 6421302b15bdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6422302b15bdSmrg$as_echo_n "checking for $ac_word... " >&6; } 6423302b15bdSmrgif ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6424302b15bdSmrg $as_echo_n "(cached) " >&6 6425302b15bdSmrgelse 6426302b15bdSmrg if test -n "$ac_ct_MANIFEST_TOOL"; then 6427302b15bdSmrg ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6428302b15bdSmrgelse 6429302b15bdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6430302b15bdSmrgfor as_dir in $PATH 6431302b15bdSmrgdo 6432302b15bdSmrg IFS=$as_save_IFS 6433302b15bdSmrg test -z "$as_dir" && as_dir=. 6434302b15bdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 643528515619Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6436302b15bdSmrg ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6437302b15bdSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6438302b15bdSmrg break 2 6439302b15bdSmrg fi 6440302b15bdSmrgdone 6441302b15bdSmrg done 6442302b15bdSmrgIFS=$as_save_IFS 6443302b15bdSmrg 6444302b15bdSmrgfi 6445302b15bdSmrgfi 6446302b15bdSmrgac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6447302b15bdSmrgif test -n "$ac_ct_MANIFEST_TOOL"; then 6448302b15bdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6449302b15bdSmrg$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6450302b15bdSmrgelse 6451302b15bdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6452302b15bdSmrg$as_echo "no" >&6; } 6453302b15bdSmrgfi 6454302b15bdSmrg 6455302b15bdSmrg if test "x$ac_ct_MANIFEST_TOOL" = x; then 6456302b15bdSmrg MANIFEST_TOOL=":" 6457302b15bdSmrg else 6458302b15bdSmrg case $cross_compiling:$ac_tool_warned in 6459302b15bdSmrgyes:) 6460302b15bdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6461302b15bdSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6462302b15bdSmrgac_tool_warned=yes ;; 6463302b15bdSmrgesac 6464302b15bdSmrg MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6465302b15bdSmrg fi 6466302b15bdSmrgelse 6467302b15bdSmrg MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6468302b15bdSmrgfi 6469302b15bdSmrg 6470302b15bdSmrgtest -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6471302b15bdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6472302b15bdSmrg$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6473302b15bdSmrgif ${lt_cv_path_mainfest_tool+:} false; then : 6474302b15bdSmrg $as_echo_n "(cached) " >&6 6475302b15bdSmrgelse 6476302b15bdSmrg lt_cv_path_mainfest_tool=no 6477302b15bdSmrg echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6478302b15bdSmrg $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6479302b15bdSmrg cat conftest.err >&5 6480302b15bdSmrg if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6481302b15bdSmrg lt_cv_path_mainfest_tool=yes 6482302b15bdSmrg fi 6483302b15bdSmrg rm -f conftest* 6484302b15bdSmrgfi 6485302b15bdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6486302b15bdSmrg$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6487302b15bdSmrgif test "x$lt_cv_path_mainfest_tool" != xyes; then 6488302b15bdSmrg MANIFEST_TOOL=: 6489302b15bdSmrgfi 6490302b15bdSmrg 6491302b15bdSmrg 6492302b15bdSmrg 6493302b15bdSmrg 6494b85037dbSmrg 6495b85037dbSmrg 6496b85037dbSmrg case $host_os in 6497b85037dbSmrg rhapsody* | darwin*) 6498b85037dbSmrg if test -n "$ac_tool_prefix"; then 6499b85037dbSmrg # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6500b85037dbSmrgset dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6501b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6502b85037dbSmrg$as_echo_n "checking for $ac_word... " >&6; } 6503302b15bdSmrgif ${ac_cv_prog_DSYMUTIL+:} false; then : 6504b85037dbSmrg $as_echo_n "(cached) " >&6 6505b85037dbSmrgelse 6506b85037dbSmrg if test -n "$DSYMUTIL"; then 6507b85037dbSmrg ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6508b85037dbSmrgelse 6509b85037dbSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6510b85037dbSmrgfor as_dir in $PATH 6511b85037dbSmrgdo 6512b85037dbSmrg IFS=$as_save_IFS 6513b85037dbSmrg test -z "$as_dir" && as_dir=. 6514b85037dbSmrg for ac_exec_ext in '' $ac_executable_extensions; do 651528515619Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6516b85037dbSmrg ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6517b85037dbSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6518b85037dbSmrg break 2 6519b85037dbSmrg fi 6520b85037dbSmrgdone 6521b85037dbSmrg done 6522b85037dbSmrgIFS=$as_save_IFS 6523b85037dbSmrg 6524b85037dbSmrgfi 6525b85037dbSmrgfi 6526b85037dbSmrgDSYMUTIL=$ac_cv_prog_DSYMUTIL 6527b85037dbSmrgif test -n "$DSYMUTIL"; then 6528b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6529b85037dbSmrg$as_echo "$DSYMUTIL" >&6; } 6530b85037dbSmrgelse 6531b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6532b85037dbSmrg$as_echo "no" >&6; } 6533b85037dbSmrgfi 6534b85037dbSmrg 6535b85037dbSmrg 6536b85037dbSmrgfi 6537b85037dbSmrgif test -z "$ac_cv_prog_DSYMUTIL"; then 6538b85037dbSmrg ac_ct_DSYMUTIL=$DSYMUTIL 6539b85037dbSmrg # Extract the first word of "dsymutil", so it can be a program name with args. 6540b85037dbSmrgset dummy dsymutil; ac_word=$2 6541b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6542b85037dbSmrg$as_echo_n "checking for $ac_word... " >&6; } 6543302b15bdSmrgif ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6544b85037dbSmrg $as_echo_n "(cached) " >&6 6545b85037dbSmrgelse 6546b85037dbSmrg if test -n "$ac_ct_DSYMUTIL"; then 6547b85037dbSmrg ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6548b85037dbSmrgelse 6549b85037dbSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6550b85037dbSmrgfor as_dir in $PATH 6551b85037dbSmrgdo 6552b85037dbSmrg IFS=$as_save_IFS 6553b85037dbSmrg test -z "$as_dir" && as_dir=. 6554b85037dbSmrg for ac_exec_ext in '' $ac_executable_extensions; do 655528515619Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6556b85037dbSmrg ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6557b85037dbSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6558b85037dbSmrg break 2 6559b85037dbSmrg fi 6560b85037dbSmrgdone 6561b85037dbSmrg done 6562b85037dbSmrgIFS=$as_save_IFS 6563b85037dbSmrg 6564b85037dbSmrgfi 6565b85037dbSmrgfi 6566b85037dbSmrgac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6567b85037dbSmrgif test -n "$ac_ct_DSYMUTIL"; then 6568b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6569b85037dbSmrg$as_echo "$ac_ct_DSYMUTIL" >&6; } 6570b85037dbSmrgelse 6571b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6572b85037dbSmrg$as_echo "no" >&6; } 6573b85037dbSmrgfi 6574b85037dbSmrg 6575b85037dbSmrg if test "x$ac_ct_DSYMUTIL" = x; then 6576b85037dbSmrg DSYMUTIL=":" 6577b85037dbSmrg else 6578b85037dbSmrg case $cross_compiling:$ac_tool_warned in 6579b85037dbSmrgyes:) 6580b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6581b85037dbSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6582b85037dbSmrgac_tool_warned=yes ;; 6583b85037dbSmrgesac 6584b85037dbSmrg DSYMUTIL=$ac_ct_DSYMUTIL 6585b85037dbSmrg fi 6586b85037dbSmrgelse 6587b85037dbSmrg DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6588b85037dbSmrgfi 6589b85037dbSmrg 6590b85037dbSmrg if test -n "$ac_tool_prefix"; then 6591b85037dbSmrg # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6592b85037dbSmrgset dummy ${ac_tool_prefix}nmedit; ac_word=$2 6593b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6594b85037dbSmrg$as_echo_n "checking for $ac_word... " >&6; } 6595302b15bdSmrgif ${ac_cv_prog_NMEDIT+:} false; then : 6596b85037dbSmrg $as_echo_n "(cached) " >&6 6597b85037dbSmrgelse 6598b85037dbSmrg if test -n "$NMEDIT"; then 6599b85037dbSmrg ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6600b85037dbSmrgelse 6601b85037dbSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6602b85037dbSmrgfor as_dir in $PATH 6603b85037dbSmrgdo 6604b85037dbSmrg IFS=$as_save_IFS 6605b85037dbSmrg test -z "$as_dir" && as_dir=. 6606b85037dbSmrg for ac_exec_ext in '' $ac_executable_extensions; do 660728515619Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6608b85037dbSmrg ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6609b85037dbSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6610b85037dbSmrg break 2 6611b85037dbSmrg fi 6612b85037dbSmrgdone 6613b85037dbSmrg done 6614b85037dbSmrgIFS=$as_save_IFS 6615b85037dbSmrg 6616b85037dbSmrgfi 6617b85037dbSmrgfi 6618b85037dbSmrgNMEDIT=$ac_cv_prog_NMEDIT 6619b85037dbSmrgif test -n "$NMEDIT"; then 6620b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6621b85037dbSmrg$as_echo "$NMEDIT" >&6; } 6622b85037dbSmrgelse 6623b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6624b85037dbSmrg$as_echo "no" >&6; } 6625b85037dbSmrgfi 6626b85037dbSmrg 6627b85037dbSmrg 6628b85037dbSmrgfi 6629b85037dbSmrgif test -z "$ac_cv_prog_NMEDIT"; then 6630b85037dbSmrg ac_ct_NMEDIT=$NMEDIT 6631b85037dbSmrg # Extract the first word of "nmedit", so it can be a program name with args. 6632b85037dbSmrgset dummy nmedit; ac_word=$2 6633b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6634b85037dbSmrg$as_echo_n "checking for $ac_word... " >&6; } 6635302b15bdSmrgif ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6636b85037dbSmrg $as_echo_n "(cached) " >&6 6637b85037dbSmrgelse 6638b85037dbSmrg if test -n "$ac_ct_NMEDIT"; then 6639b85037dbSmrg ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6640b85037dbSmrgelse 6641b85037dbSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6642b85037dbSmrgfor as_dir in $PATH 6643b85037dbSmrgdo 6644b85037dbSmrg IFS=$as_save_IFS 6645b85037dbSmrg test -z "$as_dir" && as_dir=. 6646b85037dbSmrg for ac_exec_ext in '' $ac_executable_extensions; do 664728515619Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6648b85037dbSmrg ac_cv_prog_ac_ct_NMEDIT="nmedit" 6649b85037dbSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6650b85037dbSmrg break 2 6651b85037dbSmrg fi 6652b85037dbSmrgdone 6653b85037dbSmrg done 6654b85037dbSmrgIFS=$as_save_IFS 6655b85037dbSmrg 6656b85037dbSmrgfi 6657b85037dbSmrgfi 6658b85037dbSmrgac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6659b85037dbSmrgif test -n "$ac_ct_NMEDIT"; then 6660b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6661b85037dbSmrg$as_echo "$ac_ct_NMEDIT" >&6; } 6662b85037dbSmrgelse 6663b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6664b85037dbSmrg$as_echo "no" >&6; } 6665b85037dbSmrgfi 6666b85037dbSmrg 6667b85037dbSmrg if test "x$ac_ct_NMEDIT" = x; then 6668b85037dbSmrg NMEDIT=":" 6669b85037dbSmrg else 6670b85037dbSmrg case $cross_compiling:$ac_tool_warned in 6671b85037dbSmrgyes:) 6672b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6673b85037dbSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6674b85037dbSmrgac_tool_warned=yes ;; 6675b85037dbSmrgesac 6676b85037dbSmrg NMEDIT=$ac_ct_NMEDIT 6677b85037dbSmrg fi 6678b85037dbSmrgelse 6679b85037dbSmrg NMEDIT="$ac_cv_prog_NMEDIT" 6680b85037dbSmrgfi 6681b85037dbSmrg 6682b85037dbSmrg if test -n "$ac_tool_prefix"; then 6683b85037dbSmrg # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6684b85037dbSmrgset dummy ${ac_tool_prefix}lipo; ac_word=$2 6685b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6686b85037dbSmrg$as_echo_n "checking for $ac_word... " >&6; } 6687302b15bdSmrgif ${ac_cv_prog_LIPO+:} false; then : 6688b85037dbSmrg $as_echo_n "(cached) " >&6 6689b85037dbSmrgelse 6690b85037dbSmrg if test -n "$LIPO"; then 6691b85037dbSmrg ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6692b85037dbSmrgelse 6693b85037dbSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6694b85037dbSmrgfor as_dir in $PATH 6695b85037dbSmrgdo 6696b85037dbSmrg IFS=$as_save_IFS 6697b85037dbSmrg test -z "$as_dir" && as_dir=. 6698b85037dbSmrg for ac_exec_ext in '' $ac_executable_extensions; do 669928515619Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6700b85037dbSmrg ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6701b85037dbSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6702b85037dbSmrg break 2 6703b85037dbSmrg fi 6704b85037dbSmrgdone 6705b85037dbSmrg done 6706b85037dbSmrgIFS=$as_save_IFS 6707b85037dbSmrg 6708b85037dbSmrgfi 6709b85037dbSmrgfi 6710b85037dbSmrgLIPO=$ac_cv_prog_LIPO 6711b85037dbSmrgif test -n "$LIPO"; then 6712b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6713b85037dbSmrg$as_echo "$LIPO" >&6; } 6714b85037dbSmrgelse 6715b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6716b85037dbSmrg$as_echo "no" >&6; } 6717b85037dbSmrgfi 6718b85037dbSmrg 6719b85037dbSmrg 6720b85037dbSmrgfi 6721b85037dbSmrgif test -z "$ac_cv_prog_LIPO"; then 6722b85037dbSmrg ac_ct_LIPO=$LIPO 6723b85037dbSmrg # Extract the first word of "lipo", so it can be a program name with args. 6724b85037dbSmrgset dummy lipo; ac_word=$2 6725b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6726b85037dbSmrg$as_echo_n "checking for $ac_word... " >&6; } 6727302b15bdSmrgif ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6728b85037dbSmrg $as_echo_n "(cached) " >&6 6729b85037dbSmrgelse 6730b85037dbSmrg if test -n "$ac_ct_LIPO"; then 6731b85037dbSmrg ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6732b85037dbSmrgelse 6733b85037dbSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6734b85037dbSmrgfor as_dir in $PATH 6735b85037dbSmrgdo 6736b85037dbSmrg IFS=$as_save_IFS 6737b85037dbSmrg test -z "$as_dir" && as_dir=. 6738b85037dbSmrg for ac_exec_ext in '' $ac_executable_extensions; do 673928515619Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6740b85037dbSmrg ac_cv_prog_ac_ct_LIPO="lipo" 6741b85037dbSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6742b85037dbSmrg break 2 6743b85037dbSmrg fi 6744b85037dbSmrgdone 6745b85037dbSmrg done 6746b85037dbSmrgIFS=$as_save_IFS 6747b85037dbSmrg 6748b85037dbSmrgfi 6749b85037dbSmrgfi 6750b85037dbSmrgac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6751b85037dbSmrgif test -n "$ac_ct_LIPO"; then 6752b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6753b85037dbSmrg$as_echo "$ac_ct_LIPO" >&6; } 6754b85037dbSmrgelse 6755b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6756b85037dbSmrg$as_echo "no" >&6; } 6757b85037dbSmrgfi 6758b85037dbSmrg 6759b85037dbSmrg if test "x$ac_ct_LIPO" = x; then 6760b85037dbSmrg LIPO=":" 6761b85037dbSmrg else 6762b85037dbSmrg case $cross_compiling:$ac_tool_warned in 6763b85037dbSmrgyes:) 6764b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6765b85037dbSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6766b85037dbSmrgac_tool_warned=yes ;; 6767b85037dbSmrgesac 6768b85037dbSmrg LIPO=$ac_ct_LIPO 6769b85037dbSmrg fi 6770b85037dbSmrgelse 6771b85037dbSmrg LIPO="$ac_cv_prog_LIPO" 6772b85037dbSmrgfi 6773b85037dbSmrg 6774b85037dbSmrg if test -n "$ac_tool_prefix"; then 6775b85037dbSmrg # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6776b85037dbSmrgset dummy ${ac_tool_prefix}otool; ac_word=$2 6777b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6778b85037dbSmrg$as_echo_n "checking for $ac_word... " >&6; } 6779302b15bdSmrgif ${ac_cv_prog_OTOOL+:} false; then : 6780b85037dbSmrg $as_echo_n "(cached) " >&6 6781b85037dbSmrgelse 6782b85037dbSmrg if test -n "$OTOOL"; then 6783b85037dbSmrg ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6784b85037dbSmrgelse 6785b85037dbSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6786b85037dbSmrgfor as_dir in $PATH 6787b85037dbSmrgdo 6788b85037dbSmrg IFS=$as_save_IFS 6789b85037dbSmrg test -z "$as_dir" && as_dir=. 6790b85037dbSmrg for ac_exec_ext in '' $ac_executable_extensions; do 679128515619Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6792b85037dbSmrg ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6793b85037dbSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6794b85037dbSmrg break 2 6795b85037dbSmrg fi 6796b85037dbSmrgdone 6797b85037dbSmrg done 6798b85037dbSmrgIFS=$as_save_IFS 6799b85037dbSmrg 6800b85037dbSmrgfi 6801b85037dbSmrgfi 6802b85037dbSmrgOTOOL=$ac_cv_prog_OTOOL 6803b85037dbSmrgif test -n "$OTOOL"; then 6804b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6805b85037dbSmrg$as_echo "$OTOOL" >&6; } 6806b85037dbSmrgelse 6807b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6808b85037dbSmrg$as_echo "no" >&6; } 6809b85037dbSmrgfi 6810b85037dbSmrg 6811b85037dbSmrg 6812b85037dbSmrgfi 6813b85037dbSmrgif test -z "$ac_cv_prog_OTOOL"; then 6814b85037dbSmrg ac_ct_OTOOL=$OTOOL 6815b85037dbSmrg # Extract the first word of "otool", so it can be a program name with args. 6816b85037dbSmrgset dummy otool; ac_word=$2 6817b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6818b85037dbSmrg$as_echo_n "checking for $ac_word... " >&6; } 6819302b15bdSmrgif ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 6820b85037dbSmrg $as_echo_n "(cached) " >&6 6821b85037dbSmrgelse 6822b85037dbSmrg if test -n "$ac_ct_OTOOL"; then 6823b85037dbSmrg ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6824b85037dbSmrgelse 6825b85037dbSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6826b85037dbSmrgfor as_dir in $PATH 6827b85037dbSmrgdo 6828b85037dbSmrg IFS=$as_save_IFS 6829b85037dbSmrg test -z "$as_dir" && as_dir=. 6830b85037dbSmrg for ac_exec_ext in '' $ac_executable_extensions; do 683128515619Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6832b85037dbSmrg ac_cv_prog_ac_ct_OTOOL="otool" 6833b85037dbSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6834b85037dbSmrg break 2 6835b85037dbSmrg fi 6836b85037dbSmrgdone 6837b85037dbSmrg done 6838b85037dbSmrgIFS=$as_save_IFS 6839b85037dbSmrg 6840b85037dbSmrgfi 6841b85037dbSmrgfi 6842b85037dbSmrgac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6843b85037dbSmrgif test -n "$ac_ct_OTOOL"; then 6844b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6845b85037dbSmrg$as_echo "$ac_ct_OTOOL" >&6; } 6846b85037dbSmrgelse 6847b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6848b85037dbSmrg$as_echo "no" >&6; } 6849b85037dbSmrgfi 6850b85037dbSmrg 6851b85037dbSmrg if test "x$ac_ct_OTOOL" = x; then 6852b85037dbSmrg OTOOL=":" 6853b85037dbSmrg else 6854b85037dbSmrg case $cross_compiling:$ac_tool_warned in 6855b85037dbSmrgyes:) 6856b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6857b85037dbSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6858b85037dbSmrgac_tool_warned=yes ;; 6859b85037dbSmrgesac 6860b85037dbSmrg OTOOL=$ac_ct_OTOOL 6861b85037dbSmrg fi 6862b85037dbSmrgelse 6863b85037dbSmrg OTOOL="$ac_cv_prog_OTOOL" 6864b85037dbSmrgfi 6865b85037dbSmrg 6866b85037dbSmrg if test -n "$ac_tool_prefix"; then 6867b85037dbSmrg # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6868b85037dbSmrgset dummy ${ac_tool_prefix}otool64; ac_word=$2 6869b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6870b85037dbSmrg$as_echo_n "checking for $ac_word... " >&6; } 6871302b15bdSmrgif ${ac_cv_prog_OTOOL64+:} false; then : 6872b85037dbSmrg $as_echo_n "(cached) " >&6 6873b85037dbSmrgelse 6874b85037dbSmrg if test -n "$OTOOL64"; then 6875b85037dbSmrg ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6876b85037dbSmrgelse 6877b85037dbSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6878b85037dbSmrgfor as_dir in $PATH 6879b85037dbSmrgdo 6880b85037dbSmrg IFS=$as_save_IFS 6881b85037dbSmrg test -z "$as_dir" && as_dir=. 6882b85037dbSmrg for ac_exec_ext in '' $ac_executable_extensions; do 688328515619Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6884b85037dbSmrg ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6885b85037dbSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6886b85037dbSmrg break 2 6887b85037dbSmrg fi 6888b85037dbSmrgdone 6889b85037dbSmrg done 6890b85037dbSmrgIFS=$as_save_IFS 6891b85037dbSmrg 6892b85037dbSmrgfi 6893b85037dbSmrgfi 6894b85037dbSmrgOTOOL64=$ac_cv_prog_OTOOL64 6895b85037dbSmrgif test -n "$OTOOL64"; then 6896b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6897b85037dbSmrg$as_echo "$OTOOL64" >&6; } 6898b85037dbSmrgelse 6899b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6900b85037dbSmrg$as_echo "no" >&6; } 6901b85037dbSmrgfi 6902b85037dbSmrg 6903b85037dbSmrg 6904b85037dbSmrgfi 6905b85037dbSmrgif test -z "$ac_cv_prog_OTOOL64"; then 6906b85037dbSmrg ac_ct_OTOOL64=$OTOOL64 6907b85037dbSmrg # Extract the first word of "otool64", so it can be a program name with args. 6908b85037dbSmrgset dummy otool64; ac_word=$2 6909b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6910b85037dbSmrg$as_echo_n "checking for $ac_word... " >&6; } 6911302b15bdSmrgif ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 6912b85037dbSmrg $as_echo_n "(cached) " >&6 6913b85037dbSmrgelse 6914b85037dbSmrg if test -n "$ac_ct_OTOOL64"; then 6915b85037dbSmrg ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6916b85037dbSmrgelse 6917b85037dbSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6918b85037dbSmrgfor as_dir in $PATH 6919b85037dbSmrgdo 6920b85037dbSmrg IFS=$as_save_IFS 6921b85037dbSmrg test -z "$as_dir" && as_dir=. 6922b85037dbSmrg for ac_exec_ext in '' $ac_executable_extensions; do 692328515619Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6924b85037dbSmrg ac_cv_prog_ac_ct_OTOOL64="otool64" 6925b85037dbSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6926b85037dbSmrg break 2 6927b85037dbSmrg fi 6928b85037dbSmrgdone 6929b85037dbSmrg done 6930b85037dbSmrgIFS=$as_save_IFS 6931b85037dbSmrg 6932b85037dbSmrgfi 6933b85037dbSmrgfi 6934b85037dbSmrgac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6935b85037dbSmrgif test -n "$ac_ct_OTOOL64"; then 6936b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 6937b85037dbSmrg$as_echo "$ac_ct_OTOOL64" >&6; } 6938b85037dbSmrgelse 6939b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6940b85037dbSmrg$as_echo "no" >&6; } 6941b85037dbSmrgfi 6942b85037dbSmrg 6943b85037dbSmrg if test "x$ac_ct_OTOOL64" = x; then 6944b85037dbSmrg OTOOL64=":" 6945b85037dbSmrg else 6946b85037dbSmrg case $cross_compiling:$ac_tool_warned in 6947b85037dbSmrgyes:) 6948b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6949b85037dbSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6950b85037dbSmrgac_tool_warned=yes ;; 6951b85037dbSmrgesac 6952b85037dbSmrg OTOOL64=$ac_ct_OTOOL64 6953b85037dbSmrg fi 6954b85037dbSmrgelse 6955b85037dbSmrg OTOOL64="$ac_cv_prog_OTOOL64" 6956b85037dbSmrgfi 6957b85037dbSmrg 6958b85037dbSmrg 6959b85037dbSmrg 6960b85037dbSmrg 6961b85037dbSmrg 6962b85037dbSmrg 6963b85037dbSmrg 6964b85037dbSmrg 6965b85037dbSmrg 6966b85037dbSmrg 6967b85037dbSmrg 6968b85037dbSmrg 6969b85037dbSmrg 6970b85037dbSmrg 6971b85037dbSmrg 6972b85037dbSmrg 6973b85037dbSmrg 6974b85037dbSmrg 6975b85037dbSmrg 6976b85037dbSmrg 6977b85037dbSmrg 6978b85037dbSmrg 6979b85037dbSmrg 6980b85037dbSmrg 6981b85037dbSmrg 6982b85037dbSmrg 6983b85037dbSmrg 6984b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 6985b85037dbSmrg$as_echo_n "checking for -single_module linker flag... " >&6; } 6986302b15bdSmrgif ${lt_cv_apple_cc_single_mod+:} false; then : 6987b85037dbSmrg $as_echo_n "(cached) " >&6 6988b85037dbSmrgelse 6989b85037dbSmrg lt_cv_apple_cc_single_mod=no 6990b85037dbSmrg if test -z "${LT_MULTI_MODULE}"; then 6991b85037dbSmrg # By default we will add the -single_module flag. You can override 6992b85037dbSmrg # by either setting the environment variable LT_MULTI_MODULE 6993b85037dbSmrg # non-empty at configure time, or by adding -multi_module to the 6994b85037dbSmrg # link flags. 6995b85037dbSmrg rm -rf libconftest.dylib* 6996b85037dbSmrg echo "int foo(void){return 1;}" > conftest.c 6997b85037dbSmrg echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6998b85037dbSmrg-dynamiclib -Wl,-single_module conftest.c" >&5 6999b85037dbSmrg $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7000b85037dbSmrg -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7001b85037dbSmrg _lt_result=$? 700228515619Smrg # If there is a non-empty error log, and "single_module" 700328515619Smrg # appears in it, assume the flag caused a linker warning 700428515619Smrg if test -s conftest.err && $GREP single_module conftest.err; then 700528515619Smrg cat conftest.err >&5 700628515619Smrg # Otherwise, if the output was created with a 0 exit code from 700728515619Smrg # the compiler, it worked. 700828515619Smrg elif test -f libconftest.dylib && test $_lt_result -eq 0; then 7009b85037dbSmrg lt_cv_apple_cc_single_mod=yes 7010b85037dbSmrg else 7011b85037dbSmrg cat conftest.err >&5 7012b85037dbSmrg fi 7013b85037dbSmrg rm -rf libconftest.dylib* 7014b85037dbSmrg rm -f conftest.* 7015b85037dbSmrg fi 7016b85037dbSmrgfi 7017b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7018b85037dbSmrg$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 701928515619Smrg 7020b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7021b85037dbSmrg$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7022302b15bdSmrgif ${lt_cv_ld_exported_symbols_list+:} false; then : 7023b85037dbSmrg $as_echo_n "(cached) " >&6 7024b85037dbSmrgelse 7025b85037dbSmrg lt_cv_ld_exported_symbols_list=no 7026b85037dbSmrg save_LDFLAGS=$LDFLAGS 7027b85037dbSmrg echo "_main" > conftest.sym 7028b85037dbSmrg LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7029b85037dbSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7030b85037dbSmrg/* end confdefs.h. */ 7031b85037dbSmrg 7032b85037dbSmrgint 7033b85037dbSmrgmain () 7034b85037dbSmrg{ 7035b85037dbSmrg 7036b85037dbSmrg ; 7037b85037dbSmrg return 0; 7038b85037dbSmrg} 7039b85037dbSmrg_ACEOF 7040b85037dbSmrgif ac_fn_c_try_link "$LINENO"; then : 7041b85037dbSmrg lt_cv_ld_exported_symbols_list=yes 7042b85037dbSmrgelse 7043b85037dbSmrg lt_cv_ld_exported_symbols_list=no 7044b85037dbSmrgfi 7045b85037dbSmrgrm -f core conftest.err conftest.$ac_objext \ 7046b85037dbSmrg conftest$ac_exeext conftest.$ac_ext 7047b85037dbSmrg LDFLAGS="$save_LDFLAGS" 7048b85037dbSmrg 7049b85037dbSmrgfi 7050b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7051b85037dbSmrg$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 705228515619Smrg 7053b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7054b85037dbSmrg$as_echo_n "checking for -force_load linker flag... " >&6; } 7055302b15bdSmrgif ${lt_cv_ld_force_load+:} false; then : 7056b85037dbSmrg $as_echo_n "(cached) " >&6 7057b85037dbSmrgelse 7058b85037dbSmrg lt_cv_ld_force_load=no 7059b85037dbSmrg cat > conftest.c << _LT_EOF 7060b85037dbSmrgint forced_loaded() { return 2;} 7061b85037dbSmrg_LT_EOF 7062b85037dbSmrg echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7063b85037dbSmrg $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7064b85037dbSmrg echo "$AR cru libconftest.a conftest.o" >&5 7065b85037dbSmrg $AR cru libconftest.a conftest.o 2>&5 7066b85037dbSmrg echo "$RANLIB libconftest.a" >&5 7067b85037dbSmrg $RANLIB libconftest.a 2>&5 7068b85037dbSmrg cat > conftest.c << _LT_EOF 7069b85037dbSmrgint main() { return 0;} 7070b85037dbSmrg_LT_EOF 7071b85037dbSmrg echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7072b85037dbSmrg $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7073b85037dbSmrg _lt_result=$? 707428515619Smrg if test -s conftest.err && $GREP force_load conftest.err; then 707528515619Smrg cat conftest.err >&5 707628515619Smrg elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 7077b85037dbSmrg lt_cv_ld_force_load=yes 7078b85037dbSmrg else 7079b85037dbSmrg cat conftest.err >&5 7080b85037dbSmrg fi 7081b85037dbSmrg rm -f conftest.err libconftest.a conftest conftest.c 7082b85037dbSmrg rm -rf conftest.dSYM 7083b85037dbSmrg 7084b85037dbSmrgfi 7085b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7086b85037dbSmrg$as_echo "$lt_cv_ld_force_load" >&6; } 7087b85037dbSmrg case $host_os in 7088b85037dbSmrg rhapsody* | darwin1.[012]) 7089b85037dbSmrg _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7090b85037dbSmrg darwin1.*) 7091b85037dbSmrg _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7092b85037dbSmrg darwin*) # darwin 5.x on 7093b85037dbSmrg # if running on 10.5 or later, the deployment target defaults 7094b85037dbSmrg # to the OS version, if on x86, and 10.4, the deployment 7095b85037dbSmrg # target defaults to 10.4. Don't you love it? 7096b85037dbSmrg case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7097b85037dbSmrg 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7098b85037dbSmrg _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7099b85037dbSmrg 10.[012]*) 7100b85037dbSmrg _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7101b85037dbSmrg 10.*) 7102b85037dbSmrg _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7103b85037dbSmrg esac 7104b85037dbSmrg ;; 7105b85037dbSmrg esac 7106b85037dbSmrg if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7107b85037dbSmrg _lt_dar_single_mod='$single_module' 7108b85037dbSmrg fi 7109b85037dbSmrg if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7110b85037dbSmrg _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7111b85037dbSmrg else 7112b85037dbSmrg _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7113b85037dbSmrg fi 7114b85037dbSmrg if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7115b85037dbSmrg _lt_dsymutil='~$DSYMUTIL $lib || :' 7116b85037dbSmrg else 7117b85037dbSmrg _lt_dsymutil= 7118b85037dbSmrg fi 7119b85037dbSmrg ;; 7120b85037dbSmrg esac 7121b85037dbSmrg 7122b85037dbSmrgac_ext=c 7123b85037dbSmrgac_cpp='$CPP $CPPFLAGS' 7124b85037dbSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7125b85037dbSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7126b85037dbSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 7127b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7128b85037dbSmrg$as_echo_n "checking how to run the C preprocessor... " >&6; } 7129b85037dbSmrg# On Suns, sometimes $CPP names a directory. 7130b85037dbSmrgif test -n "$CPP" && test -d "$CPP"; then 7131b85037dbSmrg CPP= 7132b85037dbSmrgfi 7133b85037dbSmrgif test -z "$CPP"; then 7134302b15bdSmrg if ${ac_cv_prog_CPP+:} false; then : 7135b85037dbSmrg $as_echo_n "(cached) " >&6 7136b85037dbSmrgelse 7137b85037dbSmrg # Double quotes because CPP needs to be expanded 7138b85037dbSmrg for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7139b85037dbSmrg do 7140b85037dbSmrg ac_preproc_ok=false 7141b85037dbSmrgfor ac_c_preproc_warn_flag in '' yes 7142b85037dbSmrgdo 7143b85037dbSmrg # Use a header file that comes with gcc, so configuring glibc 7144b85037dbSmrg # with a fresh cross-compiler works. 7145b85037dbSmrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7146b85037dbSmrg # <limits.h> exists even on freestanding compilers. 7147b85037dbSmrg # On the NeXT, cc -E runs the code through the compiler's parser, 7148b85037dbSmrg # not just through cpp. "Syntax error" is here to catch this case. 7149b85037dbSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7150b85037dbSmrg/* end confdefs.h. */ 7151b85037dbSmrg#ifdef __STDC__ 7152b85037dbSmrg# include <limits.h> 7153b85037dbSmrg#else 7154b85037dbSmrg# include <assert.h> 7155b85037dbSmrg#endif 7156b85037dbSmrg Syntax error 7157b85037dbSmrg_ACEOF 7158b85037dbSmrgif ac_fn_c_try_cpp "$LINENO"; then : 7159b85037dbSmrg 7160b85037dbSmrgelse 7161b85037dbSmrg # Broken: fails on valid input. 7162b85037dbSmrgcontinue 7163b85037dbSmrgfi 7164302b15bdSmrgrm -f conftest.err conftest.i conftest.$ac_ext 7165b85037dbSmrg 7166b85037dbSmrg # OK, works on sane cases. Now check whether nonexistent headers 7167b85037dbSmrg # can be detected and how. 7168b85037dbSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7169b85037dbSmrg/* end confdefs.h. */ 7170b85037dbSmrg#include <ac_nonexistent.h> 7171b85037dbSmrg_ACEOF 7172b85037dbSmrgif ac_fn_c_try_cpp "$LINENO"; then : 7173b85037dbSmrg # Broken: success on invalid input. 7174b85037dbSmrgcontinue 7175b85037dbSmrgelse 7176b85037dbSmrg # Passes both tests. 7177b85037dbSmrgac_preproc_ok=: 7178b85037dbSmrgbreak 7179b85037dbSmrgfi 7180302b15bdSmrgrm -f conftest.err conftest.i conftest.$ac_ext 7181b85037dbSmrg 7182b85037dbSmrgdone 7183b85037dbSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7184302b15bdSmrgrm -f conftest.i conftest.err conftest.$ac_ext 7185b85037dbSmrgif $ac_preproc_ok; then : 7186b85037dbSmrg break 7187b85037dbSmrgfi 7188b85037dbSmrg 7189b85037dbSmrg done 7190b85037dbSmrg ac_cv_prog_CPP=$CPP 7191b85037dbSmrg 7192b85037dbSmrgfi 7193b85037dbSmrg CPP=$ac_cv_prog_CPP 7194b85037dbSmrgelse 7195b85037dbSmrg ac_cv_prog_CPP=$CPP 7196b85037dbSmrgfi 7197b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7198b85037dbSmrg$as_echo "$CPP" >&6; } 7199b85037dbSmrgac_preproc_ok=false 7200b85037dbSmrgfor ac_c_preproc_warn_flag in '' yes 7201b85037dbSmrgdo 7202b85037dbSmrg # Use a header file that comes with gcc, so configuring glibc 7203b85037dbSmrg # with a fresh cross-compiler works. 7204b85037dbSmrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7205b85037dbSmrg # <limits.h> exists even on freestanding compilers. 7206b85037dbSmrg # On the NeXT, cc -E runs the code through the compiler's parser, 7207b85037dbSmrg # not just through cpp. "Syntax error" is here to catch this case. 7208b85037dbSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7209b85037dbSmrg/* end confdefs.h. */ 7210b85037dbSmrg#ifdef __STDC__ 7211b85037dbSmrg# include <limits.h> 7212b85037dbSmrg#else 7213b85037dbSmrg# include <assert.h> 7214b85037dbSmrg#endif 7215b85037dbSmrg Syntax error 7216b85037dbSmrg_ACEOF 7217b85037dbSmrgif ac_fn_c_try_cpp "$LINENO"; then : 7218b85037dbSmrg 7219b85037dbSmrgelse 7220b85037dbSmrg # Broken: fails on valid input. 7221b85037dbSmrgcontinue 7222b85037dbSmrgfi 7223302b15bdSmrgrm -f conftest.err conftest.i conftest.$ac_ext 7224b85037dbSmrg 7225b85037dbSmrg # OK, works on sane cases. Now check whether nonexistent headers 7226b85037dbSmrg # can be detected and how. 7227b85037dbSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7228b85037dbSmrg/* end confdefs.h. */ 7229b85037dbSmrg#include <ac_nonexistent.h> 7230b85037dbSmrg_ACEOF 7231b85037dbSmrgif ac_fn_c_try_cpp "$LINENO"; then : 7232b85037dbSmrg # Broken: success on invalid input. 7233b85037dbSmrgcontinue 7234b85037dbSmrgelse 7235b85037dbSmrg # Passes both tests. 7236b85037dbSmrgac_preproc_ok=: 7237b85037dbSmrgbreak 7238b85037dbSmrgfi 7239302b15bdSmrgrm -f conftest.err conftest.i conftest.$ac_ext 7240b85037dbSmrg 7241b85037dbSmrgdone 7242b85037dbSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7243302b15bdSmrgrm -f conftest.i conftest.err conftest.$ac_ext 7244b85037dbSmrgif $ac_preproc_ok; then : 7245b85037dbSmrg 7246b85037dbSmrgelse 7247b85037dbSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7248b85037dbSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7249b85037dbSmrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7250b85037dbSmrgSee \`config.log' for more details" "$LINENO" 5; } 7251b85037dbSmrgfi 7252b85037dbSmrg 7253b85037dbSmrgac_ext=c 7254b85037dbSmrgac_cpp='$CPP $CPPFLAGS' 7255b85037dbSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7256b85037dbSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7257b85037dbSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 7258b85037dbSmrg 7259b85037dbSmrg 7260b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7261b85037dbSmrg$as_echo_n "checking for ANSI C header files... " >&6; } 7262302b15bdSmrgif ${ac_cv_header_stdc+:} false; then : 7263b85037dbSmrg $as_echo_n "(cached) " >&6 7264b85037dbSmrgelse 7265b85037dbSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7266b85037dbSmrg/* end confdefs.h. */ 7267b85037dbSmrg#include <stdlib.h> 7268b85037dbSmrg#include <stdarg.h> 7269b85037dbSmrg#include <string.h> 7270b85037dbSmrg#include <float.h> 7271b85037dbSmrg 7272b85037dbSmrgint 7273b85037dbSmrgmain () 7274b85037dbSmrg{ 7275b85037dbSmrg 7276b85037dbSmrg ; 7277b85037dbSmrg return 0; 7278b85037dbSmrg} 7279b85037dbSmrg_ACEOF 7280b85037dbSmrgif ac_fn_c_try_compile "$LINENO"; then : 7281b85037dbSmrg ac_cv_header_stdc=yes 7282b85037dbSmrgelse 7283b85037dbSmrg ac_cv_header_stdc=no 7284b85037dbSmrgfi 7285b85037dbSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7286b85037dbSmrg 7287b85037dbSmrgif test $ac_cv_header_stdc = yes; then 7288b85037dbSmrg # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7289b85037dbSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7290b85037dbSmrg/* end confdefs.h. */ 7291b85037dbSmrg#include <string.h> 7292b85037dbSmrg 7293b85037dbSmrg_ACEOF 7294b85037dbSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7295b85037dbSmrg $EGREP "memchr" >/dev/null 2>&1; then : 7296b85037dbSmrg 7297b85037dbSmrgelse 7298b85037dbSmrg ac_cv_header_stdc=no 7299b85037dbSmrgfi 7300b85037dbSmrgrm -f conftest* 7301b85037dbSmrg 7302b85037dbSmrgfi 7303b85037dbSmrg 7304b85037dbSmrgif test $ac_cv_header_stdc = yes; then 7305b85037dbSmrg # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7306b85037dbSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7307b85037dbSmrg/* end confdefs.h. */ 7308b85037dbSmrg#include <stdlib.h> 7309b85037dbSmrg 7310b85037dbSmrg_ACEOF 7311b85037dbSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7312b85037dbSmrg $EGREP "free" >/dev/null 2>&1; then : 7313b85037dbSmrg 7314b85037dbSmrgelse 7315b85037dbSmrg ac_cv_header_stdc=no 7316b85037dbSmrgfi 7317b85037dbSmrgrm -f conftest* 7318b85037dbSmrg 7319b85037dbSmrgfi 7320b85037dbSmrg 7321b85037dbSmrgif test $ac_cv_header_stdc = yes; then 7322b85037dbSmrg # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7323b85037dbSmrg if test "$cross_compiling" = yes; then : 7324b85037dbSmrg : 7325b85037dbSmrgelse 7326b85037dbSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7327b85037dbSmrg/* end confdefs.h. */ 7328b85037dbSmrg#include <ctype.h> 7329b85037dbSmrg#include <stdlib.h> 7330b85037dbSmrg#if ((' ' & 0x0FF) == 0x020) 7331b85037dbSmrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7332b85037dbSmrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7333b85037dbSmrg#else 7334b85037dbSmrg# define ISLOWER(c) \ 7335b85037dbSmrg (('a' <= (c) && (c) <= 'i') \ 7336b85037dbSmrg || ('j' <= (c) && (c) <= 'r') \ 7337b85037dbSmrg || ('s' <= (c) && (c) <= 'z')) 7338b85037dbSmrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7339b85037dbSmrg#endif 7340b85037dbSmrg 7341b85037dbSmrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7342b85037dbSmrgint 7343b85037dbSmrgmain () 7344b85037dbSmrg{ 7345b85037dbSmrg int i; 7346b85037dbSmrg for (i = 0; i < 256; i++) 7347b85037dbSmrg if (XOR (islower (i), ISLOWER (i)) 7348b85037dbSmrg || toupper (i) != TOUPPER (i)) 7349b85037dbSmrg return 2; 7350b85037dbSmrg return 0; 7351b85037dbSmrg} 7352b85037dbSmrg_ACEOF 7353b85037dbSmrgif ac_fn_c_try_run "$LINENO"; then : 7354b85037dbSmrg 7355b85037dbSmrgelse 7356b85037dbSmrg ac_cv_header_stdc=no 7357b85037dbSmrgfi 7358b85037dbSmrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7359b85037dbSmrg conftest.$ac_objext conftest.beam conftest.$ac_ext 7360b85037dbSmrgfi 7361b85037dbSmrg 7362b85037dbSmrgfi 7363b85037dbSmrgfi 7364b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7365b85037dbSmrg$as_echo "$ac_cv_header_stdc" >&6; } 7366b85037dbSmrgif test $ac_cv_header_stdc = yes; then 7367b85037dbSmrg 7368b85037dbSmrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7369b85037dbSmrg 7370b85037dbSmrgfi 7371b85037dbSmrg 7372b85037dbSmrg# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7373b85037dbSmrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7374b85037dbSmrg inttypes.h stdint.h unistd.h 7375b85037dbSmrgdo : 7376b85037dbSmrg as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7377b85037dbSmrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7378b85037dbSmrg" 7379b85037dbSmrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7380b85037dbSmrg cat >>confdefs.h <<_ACEOF 7381b85037dbSmrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7382b85037dbSmrg_ACEOF 7383b85037dbSmrg 7384b85037dbSmrgfi 7385b85037dbSmrg 7386b85037dbSmrgdone 7387b85037dbSmrg 7388b85037dbSmrg 7389b85037dbSmrgfor ac_header in dlfcn.h 7390b85037dbSmrgdo : 7391b85037dbSmrg ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7392b85037dbSmrg" 7393302b15bdSmrgif test "x$ac_cv_header_dlfcn_h" = xyes; then : 7394b85037dbSmrg cat >>confdefs.h <<_ACEOF 7395b85037dbSmrg#define HAVE_DLFCN_H 1 7396b85037dbSmrg_ACEOF 7397b85037dbSmrg 7398b85037dbSmrgfi 7399b85037dbSmrg 7400b85037dbSmrgdone 7401b85037dbSmrg 7402b85037dbSmrg 7403b85037dbSmrg 7404b85037dbSmrg 7405b85037dbSmrg 7406b85037dbSmrg# Set options 7407b85037dbSmrg 7408b85037dbSmrg 7409b85037dbSmrg 7410b85037dbSmrg enable_dlopen=no 7411b85037dbSmrg 7412b85037dbSmrg 7413b85037dbSmrg enable_win32_dll=no 7414b85037dbSmrg 7415b85037dbSmrg 7416b85037dbSmrg # Check whether --enable-shared was given. 7417b85037dbSmrgif test "${enable_shared+set}" = set; then : 7418b85037dbSmrg enableval=$enable_shared; p=${PACKAGE-default} 7419b85037dbSmrg case $enableval in 7420b85037dbSmrg yes) enable_shared=yes ;; 7421b85037dbSmrg no) enable_shared=no ;; 7422b85037dbSmrg *) 7423b85037dbSmrg enable_shared=no 7424b85037dbSmrg # Look at the argument we got. We use all the common list separators. 7425b85037dbSmrg lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7426b85037dbSmrg for pkg in $enableval; do 7427b85037dbSmrg IFS="$lt_save_ifs" 7428b85037dbSmrg if test "X$pkg" = "X$p"; then 7429b85037dbSmrg enable_shared=yes 7430b85037dbSmrg fi 7431b85037dbSmrg done 7432b85037dbSmrg IFS="$lt_save_ifs" 7433b85037dbSmrg ;; 7434b85037dbSmrg esac 7435b85037dbSmrgelse 7436b85037dbSmrg enable_shared=yes 7437b85037dbSmrgfi 7438b85037dbSmrg 7439b85037dbSmrg 7440b85037dbSmrg 7441b85037dbSmrg 7442b85037dbSmrg 7443b85037dbSmrg 7444b85037dbSmrg 7445b85037dbSmrg 7446b85037dbSmrg 7447b85037dbSmrg 7448b85037dbSmrg 7449b85037dbSmrg# Check whether --with-pic was given. 7450b85037dbSmrgif test "${with_pic+set}" = set; then : 745128515619Smrg withval=$with_pic; lt_p=${PACKAGE-default} 745228515619Smrg case $withval in 745328515619Smrg yes|no) pic_mode=$withval ;; 745428515619Smrg *) 745528515619Smrg pic_mode=default 745628515619Smrg # Look at the argument we got. We use all the common list separators. 745728515619Smrg lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 745828515619Smrg for lt_pkg in $withval; do 745928515619Smrg IFS="$lt_save_ifs" 746028515619Smrg if test "X$lt_pkg" = "X$lt_p"; then 746128515619Smrg pic_mode=yes 746228515619Smrg fi 746328515619Smrg done 746428515619Smrg IFS="$lt_save_ifs" 746528515619Smrg ;; 746628515619Smrg esac 7467b85037dbSmrgelse 7468b85037dbSmrg pic_mode=default 7469b85037dbSmrgfi 7470b85037dbSmrg 7471b85037dbSmrg 7472b85037dbSmrgtest -z "$pic_mode" && pic_mode=default 7473b85037dbSmrg 7474b85037dbSmrg 7475b85037dbSmrg 7476b85037dbSmrg 7477b85037dbSmrg 7478b85037dbSmrg 7479b85037dbSmrg 7480b85037dbSmrg # Check whether --enable-fast-install was given. 7481b85037dbSmrgif test "${enable_fast_install+set}" = set; then : 7482b85037dbSmrg enableval=$enable_fast_install; p=${PACKAGE-default} 7483b85037dbSmrg case $enableval in 7484b85037dbSmrg yes) enable_fast_install=yes ;; 7485b85037dbSmrg no) enable_fast_install=no ;; 7486b85037dbSmrg *) 7487b85037dbSmrg enable_fast_install=no 7488b85037dbSmrg # Look at the argument we got. We use all the common list separators. 7489b85037dbSmrg lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7490b85037dbSmrg for pkg in $enableval; do 7491b85037dbSmrg IFS="$lt_save_ifs" 7492b85037dbSmrg if test "X$pkg" = "X$p"; then 7493b85037dbSmrg enable_fast_install=yes 7494b85037dbSmrg fi 7495b85037dbSmrg done 7496b85037dbSmrg IFS="$lt_save_ifs" 7497b85037dbSmrg ;; 7498b85037dbSmrg esac 7499b85037dbSmrgelse 7500b85037dbSmrg enable_fast_install=yes 7501b85037dbSmrgfi 7502b85037dbSmrg 7503b85037dbSmrg 7504b85037dbSmrg 7505b85037dbSmrg 7506b85037dbSmrg 7507b85037dbSmrg 7508b85037dbSmrg 7509b85037dbSmrg 7510b85037dbSmrg 7511b85037dbSmrg 7512b85037dbSmrg 7513b85037dbSmrg# This can be used to rebuild libtool when needed 7514b85037dbSmrgLIBTOOL_DEPS="$ltmain" 7515b85037dbSmrg 7516b85037dbSmrg# Always use our own libtool. 7517b85037dbSmrgLIBTOOL='$(SHELL) $(top_builddir)/libtool' 7518b85037dbSmrg 7519b85037dbSmrg 7520b85037dbSmrg 7521b85037dbSmrg 7522b85037dbSmrg 7523b85037dbSmrg 7524b85037dbSmrg 7525b85037dbSmrg 7526b85037dbSmrg 7527b85037dbSmrg 7528b85037dbSmrg 7529b85037dbSmrg 7530b85037dbSmrg 7531b85037dbSmrg 7532b85037dbSmrg 7533b85037dbSmrg 7534b85037dbSmrg 7535b85037dbSmrg 7536b85037dbSmrg 7537b85037dbSmrg 7538b85037dbSmrg 753928515619Smrg 754028515619Smrg 754128515619Smrg 754228515619Smrg 7543b85037dbSmrg 7544b85037dbSmrg 7545b85037dbSmrg 7546b85037dbSmrg 7547b85037dbSmrg 7548b85037dbSmrgtest -z "$LN_S" && LN_S="ln -s" 7549b85037dbSmrg 7550b85037dbSmrg 7551b85037dbSmrg 7552b85037dbSmrg 7553b85037dbSmrg 7554b85037dbSmrg 7555b85037dbSmrg 7556b85037dbSmrg 7557b85037dbSmrg 7558b85037dbSmrg 7559b85037dbSmrg 7560b85037dbSmrg 7561b85037dbSmrg 7562b85037dbSmrg 7563b85037dbSmrgif test -n "${ZSH_VERSION+set}" ; then 7564b85037dbSmrg setopt NO_GLOB_SUBST 7565b85037dbSmrgfi 7566b85037dbSmrg 7567b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7568b85037dbSmrg$as_echo_n "checking for objdir... " >&6; } 7569302b15bdSmrgif ${lt_cv_objdir+:} false; then : 7570b85037dbSmrg $as_echo_n "(cached) " >&6 7571b85037dbSmrgelse 7572b85037dbSmrg rm -f .libs 2>/dev/null 7573b85037dbSmrgmkdir .libs 2>/dev/null 7574b85037dbSmrgif test -d .libs; then 7575b85037dbSmrg lt_cv_objdir=.libs 7576b85037dbSmrgelse 7577b85037dbSmrg # MS-DOS does not allow filenames that begin with a dot. 7578b85037dbSmrg lt_cv_objdir=_libs 7579b85037dbSmrgfi 7580b85037dbSmrgrmdir .libs 2>/dev/null 7581b85037dbSmrgfi 7582b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7583b85037dbSmrg$as_echo "$lt_cv_objdir" >&6; } 7584b85037dbSmrgobjdir=$lt_cv_objdir 7585b85037dbSmrg 7586b85037dbSmrg 7587b85037dbSmrg 7588b85037dbSmrg 7589b85037dbSmrg 7590b85037dbSmrgcat >>confdefs.h <<_ACEOF 7591b85037dbSmrg#define LT_OBJDIR "$lt_cv_objdir/" 7592b85037dbSmrg_ACEOF 7593b85037dbSmrg 7594b85037dbSmrg 7595b85037dbSmrg 7596b85037dbSmrg 7597b85037dbSmrgcase $host_os in 7598b85037dbSmrgaix3*) 7599b85037dbSmrg # AIX sometimes has problems with the GCC collect2 program. For some 7600b85037dbSmrg # reason, if we set the COLLECT_NAMES environment variable, the problems 7601b85037dbSmrg # vanish in a puff of smoke. 7602b85037dbSmrg if test "X${COLLECT_NAMES+set}" != Xset; then 7603b85037dbSmrg COLLECT_NAMES= 7604b85037dbSmrg export COLLECT_NAMES 7605b85037dbSmrg fi 7606b85037dbSmrg ;; 7607b85037dbSmrgesac 7608b85037dbSmrg 7609b85037dbSmrg# Global variables: 7610b85037dbSmrgofile=libtool 7611b85037dbSmrgcan_build_shared=yes 7612b85037dbSmrg 7613b85037dbSmrg# All known linkers require a `.a' archive for static linking (except MSVC, 7614b85037dbSmrg# which needs '.lib'). 7615b85037dbSmrglibext=a 7616b85037dbSmrg 7617b85037dbSmrgwith_gnu_ld="$lt_cv_prog_gnu_ld" 7618b85037dbSmrg 7619b85037dbSmrgold_CC="$CC" 7620b85037dbSmrgold_CFLAGS="$CFLAGS" 7621b85037dbSmrg 7622b85037dbSmrg# Set sane defaults for various variables 7623b85037dbSmrgtest -z "$CC" && CC=cc 7624b85037dbSmrgtest -z "$LTCC" && LTCC=$CC 7625b85037dbSmrgtest -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7626b85037dbSmrgtest -z "$LD" && LD=ld 7627b85037dbSmrgtest -z "$ac_objext" && ac_objext=o 7628b85037dbSmrg 7629b85037dbSmrgfor cc_temp in $compiler""; do 7630b85037dbSmrg case $cc_temp in 7631b85037dbSmrg compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7632b85037dbSmrg distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7633b85037dbSmrg \-*) ;; 7634b85037dbSmrg *) break;; 7635b85037dbSmrg esac 7636b85037dbSmrgdone 7637b85037dbSmrgcc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7638b85037dbSmrg 7639b85037dbSmrg 7640b85037dbSmrg# Only perform the check for file, if the check method requires it 7641b85037dbSmrgtest -z "$MAGIC_CMD" && MAGIC_CMD=file 7642b85037dbSmrgcase $deplibs_check_method in 7643b85037dbSmrgfile_magic*) 7644b85037dbSmrg if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7645b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7646b85037dbSmrg$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7647302b15bdSmrgif ${lt_cv_path_MAGIC_CMD+:} false; then : 7648b85037dbSmrg $as_echo_n "(cached) " >&6 7649b85037dbSmrgelse 7650b85037dbSmrg case $MAGIC_CMD in 7651b85037dbSmrg[\\/*] | ?:[\\/]*) 7652b85037dbSmrg lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7653b85037dbSmrg ;; 7654b85037dbSmrg*) 7655b85037dbSmrg lt_save_MAGIC_CMD="$MAGIC_CMD" 7656b85037dbSmrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7657b85037dbSmrg ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7658b85037dbSmrg for ac_dir in $ac_dummy; do 7659b85037dbSmrg IFS="$lt_save_ifs" 7660b85037dbSmrg test -z "$ac_dir" && ac_dir=. 7661b85037dbSmrg if test -f $ac_dir/${ac_tool_prefix}file; then 7662b85037dbSmrg lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7663b85037dbSmrg if test -n "$file_magic_test_file"; then 7664b85037dbSmrg case $deplibs_check_method in 7665b85037dbSmrg "file_magic "*) 7666b85037dbSmrg file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7667b85037dbSmrg MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7668b85037dbSmrg if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7669b85037dbSmrg $EGREP "$file_magic_regex" > /dev/null; then 7670b85037dbSmrg : 7671b85037dbSmrg else 7672b85037dbSmrg cat <<_LT_EOF 1>&2 7673b85037dbSmrg 7674b85037dbSmrg*** Warning: the command libtool uses to detect shared libraries, 7675b85037dbSmrg*** $file_magic_cmd, produces output that libtool cannot recognize. 7676b85037dbSmrg*** The result is that libtool may fail to recognize shared libraries 7677b85037dbSmrg*** as such. This will affect the creation of libtool libraries that 7678b85037dbSmrg*** depend on shared libraries, but programs linked with such libtool 7679b85037dbSmrg*** libraries will work regardless of this problem. Nevertheless, you 7680b85037dbSmrg*** may want to report the problem to your system manager and/or to 7681b85037dbSmrg*** bug-libtool@gnu.org 7682b85037dbSmrg 7683b85037dbSmrg_LT_EOF 7684b85037dbSmrg fi ;; 7685b85037dbSmrg esac 7686b85037dbSmrg fi 7687b85037dbSmrg break 7688b85037dbSmrg fi 7689b85037dbSmrg done 7690b85037dbSmrg IFS="$lt_save_ifs" 7691b85037dbSmrg MAGIC_CMD="$lt_save_MAGIC_CMD" 7692b85037dbSmrg ;; 7693b85037dbSmrgesac 7694b85037dbSmrgfi 7695b85037dbSmrg 7696b85037dbSmrgMAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7697b85037dbSmrgif test -n "$MAGIC_CMD"; then 7698b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7699b85037dbSmrg$as_echo "$MAGIC_CMD" >&6; } 7700b85037dbSmrgelse 7701b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7702b85037dbSmrg$as_echo "no" >&6; } 7703b85037dbSmrgfi 7704b85037dbSmrg 7705b85037dbSmrg 7706b85037dbSmrg 7707b85037dbSmrg 7708b85037dbSmrg 7709b85037dbSmrgif test -z "$lt_cv_path_MAGIC_CMD"; then 7710b85037dbSmrg if test -n "$ac_tool_prefix"; then 7711b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7712b85037dbSmrg$as_echo_n "checking for file... " >&6; } 7713302b15bdSmrgif ${lt_cv_path_MAGIC_CMD+:} false; then : 7714b85037dbSmrg $as_echo_n "(cached) " >&6 7715b85037dbSmrgelse 7716b85037dbSmrg case $MAGIC_CMD in 7717b85037dbSmrg[\\/*] | ?:[\\/]*) 7718b85037dbSmrg lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7719b85037dbSmrg ;; 7720b85037dbSmrg*) 7721b85037dbSmrg lt_save_MAGIC_CMD="$MAGIC_CMD" 7722b85037dbSmrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7723b85037dbSmrg ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7724b85037dbSmrg for ac_dir in $ac_dummy; do 7725b85037dbSmrg IFS="$lt_save_ifs" 7726b85037dbSmrg test -z "$ac_dir" && ac_dir=. 7727b85037dbSmrg if test -f $ac_dir/file; then 7728b85037dbSmrg lt_cv_path_MAGIC_CMD="$ac_dir/file" 7729b85037dbSmrg if test -n "$file_magic_test_file"; then 7730b85037dbSmrg case $deplibs_check_method in 7731b85037dbSmrg "file_magic "*) 7732b85037dbSmrg file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7733b85037dbSmrg MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7734b85037dbSmrg if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7735b85037dbSmrg $EGREP "$file_magic_regex" > /dev/null; then 7736b85037dbSmrg : 7737b85037dbSmrg else 7738b85037dbSmrg cat <<_LT_EOF 1>&2 7739b85037dbSmrg 7740b85037dbSmrg*** Warning: the command libtool uses to detect shared libraries, 7741b85037dbSmrg*** $file_magic_cmd, produces output that libtool cannot recognize. 7742b85037dbSmrg*** The result is that libtool may fail to recognize shared libraries 7743b85037dbSmrg*** as such. This will affect the creation of libtool libraries that 7744b85037dbSmrg*** depend on shared libraries, but programs linked with such libtool 7745b85037dbSmrg*** libraries will work regardless of this problem. Nevertheless, you 7746b85037dbSmrg*** may want to report the problem to your system manager and/or to 7747b85037dbSmrg*** bug-libtool@gnu.org 7748b85037dbSmrg 7749b85037dbSmrg_LT_EOF 7750b85037dbSmrg fi ;; 7751b85037dbSmrg esac 7752b85037dbSmrg fi 7753b85037dbSmrg break 7754b85037dbSmrg fi 7755b85037dbSmrg done 7756b85037dbSmrg IFS="$lt_save_ifs" 7757b85037dbSmrg MAGIC_CMD="$lt_save_MAGIC_CMD" 7758b85037dbSmrg ;; 7759b85037dbSmrgesac 7760b85037dbSmrgfi 7761b85037dbSmrg 7762b85037dbSmrgMAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7763b85037dbSmrgif test -n "$MAGIC_CMD"; then 7764b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7765b85037dbSmrg$as_echo "$MAGIC_CMD" >&6; } 7766b85037dbSmrgelse 7767b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7768b85037dbSmrg$as_echo "no" >&6; } 7769b85037dbSmrgfi 7770b85037dbSmrg 7771b85037dbSmrg 7772b85037dbSmrg else 7773b85037dbSmrg MAGIC_CMD=: 7774b85037dbSmrg fi 7775b85037dbSmrgfi 7776b85037dbSmrg 7777b85037dbSmrg fi 7778b85037dbSmrg ;; 7779b85037dbSmrgesac 7780b85037dbSmrg 7781b85037dbSmrg# Use C for the default configuration in the libtool script 7782b85037dbSmrg 7783b85037dbSmrglt_save_CC="$CC" 7784b85037dbSmrgac_ext=c 7785b85037dbSmrgac_cpp='$CPP $CPPFLAGS' 7786b85037dbSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7787b85037dbSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7788b85037dbSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 7789b85037dbSmrg 7790b85037dbSmrg 7791b85037dbSmrg# Source file extension for C test sources. 7792b85037dbSmrgac_ext=c 7793b85037dbSmrg 7794b85037dbSmrg# Object file extension for compiled C test sources. 7795b85037dbSmrgobjext=o 7796b85037dbSmrgobjext=$objext 7797b85037dbSmrg 7798b85037dbSmrg# Code to be used in simple compile tests 7799b85037dbSmrglt_simple_compile_test_code="int some_variable = 0;" 7800b85037dbSmrg 7801b85037dbSmrg# Code to be used in simple link tests 7802b85037dbSmrglt_simple_link_test_code='int main(){return(0);}' 7803b85037dbSmrg 7804b85037dbSmrg 7805b85037dbSmrg 7806b85037dbSmrg 7807b85037dbSmrg 7808b85037dbSmrg 7809b85037dbSmrg 7810b85037dbSmrg# If no C compiler was specified, use CC. 7811b85037dbSmrgLTCC=${LTCC-"$CC"} 7812b85037dbSmrg 7813b85037dbSmrg# If no C compiler flags were specified, use CFLAGS. 7814b85037dbSmrgLTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7815b85037dbSmrg 7816b85037dbSmrg# Allow CC to be a program name with arguments. 7817b85037dbSmrgcompiler=$CC 7818b85037dbSmrg 7819b85037dbSmrg# Save the default compiler, since it gets overwritten when the other 7820b85037dbSmrg# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7821b85037dbSmrgcompiler_DEFAULT=$CC 7822b85037dbSmrg 7823b85037dbSmrg# save warnings/boilerplate of simple test code 7824b85037dbSmrgac_outfile=conftest.$ac_objext 7825b85037dbSmrgecho "$lt_simple_compile_test_code" >conftest.$ac_ext 7826b85037dbSmrgeval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7827b85037dbSmrg_lt_compiler_boilerplate=`cat conftest.err` 7828b85037dbSmrg$RM conftest* 7829b85037dbSmrg 7830b85037dbSmrgac_outfile=conftest.$ac_objext 7831b85037dbSmrgecho "$lt_simple_link_test_code" >conftest.$ac_ext 7832b85037dbSmrgeval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7833b85037dbSmrg_lt_linker_boilerplate=`cat conftest.err` 7834b85037dbSmrg$RM -r conftest* 7835b85037dbSmrg 7836b85037dbSmrg 7837b85037dbSmrgif test -n "$compiler"; then 7838b85037dbSmrg 7839b85037dbSmrglt_prog_compiler_no_builtin_flag= 7840b85037dbSmrg 7841b85037dbSmrgif test "$GCC" = yes; then 7842b85037dbSmrg case $cc_basename in 7843b85037dbSmrg nvcc*) 7844b85037dbSmrg lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 7845b85037dbSmrg *) 7846b85037dbSmrg lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 7847b85037dbSmrg esac 7848b85037dbSmrg 7849b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7850b85037dbSmrg$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7851302b15bdSmrgif ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 7852b85037dbSmrg $as_echo_n "(cached) " >&6 7853b85037dbSmrgelse 7854b85037dbSmrg lt_cv_prog_compiler_rtti_exceptions=no 7855b85037dbSmrg ac_outfile=conftest.$ac_objext 7856b85037dbSmrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7857b85037dbSmrg lt_compiler_flag="-fno-rtti -fno-exceptions" 7858b85037dbSmrg # Insert the option either (1) after the last *FLAGS variable, or 7859b85037dbSmrg # (2) before a word containing "conftest.", or (3) at the end. 7860b85037dbSmrg # Note that $ac_compile itself does not contain backslashes and begins 7861b85037dbSmrg # with a dollar sign (not a hyphen), so the echo should work correctly. 7862b85037dbSmrg # The option is referenced via a variable to avoid confusing sed. 7863b85037dbSmrg lt_compile=`echo "$ac_compile" | $SED \ 7864b85037dbSmrg -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7865b85037dbSmrg -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7866b85037dbSmrg -e 's:$: $lt_compiler_flag:'` 7867b85037dbSmrg (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7868b85037dbSmrg (eval "$lt_compile" 2>conftest.err) 7869b85037dbSmrg ac_status=$? 7870b85037dbSmrg cat conftest.err >&5 7871b85037dbSmrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 7872b85037dbSmrg if (exit $ac_status) && test -s "$ac_outfile"; then 7873b85037dbSmrg # The compiler can only warn and ignore the option if not recognized 7874b85037dbSmrg # So say no if there are warnings other than the usual output. 7875b85037dbSmrg $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7876b85037dbSmrg $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7877b85037dbSmrg if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7878b85037dbSmrg lt_cv_prog_compiler_rtti_exceptions=yes 7879b85037dbSmrg fi 7880b85037dbSmrg fi 7881b85037dbSmrg $RM conftest* 7882b85037dbSmrg 7883b85037dbSmrgfi 7884b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7885b85037dbSmrg$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7886b85037dbSmrg 7887b85037dbSmrgif test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7888b85037dbSmrg lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7889b85037dbSmrgelse 7890b85037dbSmrg : 7891b85037dbSmrgfi 7892b85037dbSmrg 7893b85037dbSmrgfi 7894b85037dbSmrg 7895b85037dbSmrg 7896b85037dbSmrg 7897b85037dbSmrg 7898b85037dbSmrg 7899b85037dbSmrg 7900b85037dbSmrg lt_prog_compiler_wl= 7901b85037dbSmrglt_prog_compiler_pic= 7902b85037dbSmrglt_prog_compiler_static= 7903b85037dbSmrg 7904b85037dbSmrg 7905b85037dbSmrg if test "$GCC" = yes; then 7906b85037dbSmrg lt_prog_compiler_wl='-Wl,' 7907b85037dbSmrg lt_prog_compiler_static='-static' 7908b85037dbSmrg 7909b85037dbSmrg case $host_os in 7910b85037dbSmrg aix*) 7911b85037dbSmrg # All AIX code is PIC. 7912b85037dbSmrg if test "$host_cpu" = ia64; then 7913b85037dbSmrg # AIX 5 now supports IA64 processor 7914b85037dbSmrg lt_prog_compiler_static='-Bstatic' 7915b85037dbSmrg fi 7916b85037dbSmrg ;; 7917b85037dbSmrg 7918b85037dbSmrg amigaos*) 7919b85037dbSmrg case $host_cpu in 7920b85037dbSmrg powerpc) 7921b85037dbSmrg # see comment about AmigaOS4 .so support 7922b85037dbSmrg lt_prog_compiler_pic='-fPIC' 7923b85037dbSmrg ;; 7924b85037dbSmrg m68k) 7925b85037dbSmrg # FIXME: we need at least 68020 code to build shared libraries, but 7926b85037dbSmrg # adding the `-m68020' flag to GCC prevents building anything better, 7927b85037dbSmrg # like `-m68040'. 7928b85037dbSmrg lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7929b85037dbSmrg ;; 7930b85037dbSmrg esac 7931b85037dbSmrg ;; 7932b85037dbSmrg 7933b85037dbSmrg beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7934b85037dbSmrg # PIC is the default for these OSes. 7935b85037dbSmrg ;; 7936b85037dbSmrg 7937b85037dbSmrg mingw* | cygwin* | pw32* | os2* | cegcc*) 7938b85037dbSmrg # This hack is so that the source file can tell whether it is being 7939b85037dbSmrg # built for inclusion in a dll (and should export symbols for example). 7940b85037dbSmrg # Although the cygwin gcc ignores -fPIC, still need this for old-style 7941b85037dbSmrg # (--disable-auto-import) libraries 7942b85037dbSmrg lt_prog_compiler_pic='-DDLL_EXPORT' 7943b85037dbSmrg ;; 7944b85037dbSmrg 7945b85037dbSmrg darwin* | rhapsody*) 7946b85037dbSmrg # PIC is the default on this platform 7947b85037dbSmrg # Common symbols not allowed in MH_DYLIB files 7948b85037dbSmrg lt_prog_compiler_pic='-fno-common' 7949b85037dbSmrg ;; 7950b85037dbSmrg 7951b85037dbSmrg haiku*) 7952b85037dbSmrg # PIC is the default for Haiku. 7953b85037dbSmrg # The "-static" flag exists, but is broken. 7954b85037dbSmrg lt_prog_compiler_static= 7955b85037dbSmrg ;; 7956b85037dbSmrg 7957b85037dbSmrg hpux*) 7958b85037dbSmrg # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7959b85037dbSmrg # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7960b85037dbSmrg # sets the default TLS model and affects inlining. 7961b85037dbSmrg case $host_cpu in 7962b85037dbSmrg hppa*64*) 7963b85037dbSmrg # +Z the default 7964b85037dbSmrg ;; 7965b85037dbSmrg *) 7966b85037dbSmrg lt_prog_compiler_pic='-fPIC' 7967b85037dbSmrg ;; 7968b85037dbSmrg esac 7969b85037dbSmrg ;; 7970b85037dbSmrg 7971b85037dbSmrg interix[3-9]*) 7972b85037dbSmrg # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7973b85037dbSmrg # Instead, we relocate shared libraries at runtime. 7974b85037dbSmrg ;; 7975b85037dbSmrg 7976b85037dbSmrg msdosdjgpp*) 7977b85037dbSmrg # Just because we use GCC doesn't mean we suddenly get shared libraries 7978b85037dbSmrg # on systems that don't support them. 7979b85037dbSmrg lt_prog_compiler_can_build_shared=no 7980b85037dbSmrg enable_shared=no 7981b85037dbSmrg ;; 7982b85037dbSmrg 7983b85037dbSmrg *nto* | *qnx*) 7984b85037dbSmrg # QNX uses GNU C++, but need to define -shared option too, otherwise 7985b85037dbSmrg # it will coredump. 7986b85037dbSmrg lt_prog_compiler_pic='-fPIC -shared' 7987b85037dbSmrg ;; 7988b85037dbSmrg 7989b85037dbSmrg sysv4*MP*) 7990b85037dbSmrg if test -d /usr/nec; then 7991b85037dbSmrg lt_prog_compiler_pic=-Kconform_pic 7992b85037dbSmrg fi 7993b85037dbSmrg ;; 7994b85037dbSmrg 7995b85037dbSmrg *) 7996b85037dbSmrg lt_prog_compiler_pic='-fPIC' 7997b85037dbSmrg ;; 7998b85037dbSmrg esac 7999b85037dbSmrg 8000b85037dbSmrg case $cc_basename in 8001b85037dbSmrg nvcc*) # Cuda Compiler Driver 2.2 8002b85037dbSmrg lt_prog_compiler_wl='-Xlinker ' 800328515619Smrg if test -n "$lt_prog_compiler_pic"; then 800428515619Smrg lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 800528515619Smrg fi 8006b85037dbSmrg ;; 8007b85037dbSmrg esac 8008b85037dbSmrg else 8009b85037dbSmrg # PORTME Check for flag to pass linker flags through the system compiler. 8010b85037dbSmrg case $host_os in 8011b85037dbSmrg aix*) 8012b85037dbSmrg lt_prog_compiler_wl='-Wl,' 8013b85037dbSmrg if test "$host_cpu" = ia64; then 8014b85037dbSmrg # AIX 5 now supports IA64 processor 8015b85037dbSmrg lt_prog_compiler_static='-Bstatic' 8016b85037dbSmrg else 8017b85037dbSmrg lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8018b85037dbSmrg fi 8019b85037dbSmrg ;; 8020b85037dbSmrg 8021b85037dbSmrg mingw* | cygwin* | pw32* | os2* | cegcc*) 8022b85037dbSmrg # This hack is so that the source file can tell whether it is being 8023b85037dbSmrg # built for inclusion in a dll (and should export symbols for example). 8024b85037dbSmrg lt_prog_compiler_pic='-DDLL_EXPORT' 8025b85037dbSmrg ;; 8026b85037dbSmrg 8027b85037dbSmrg hpux9* | hpux10* | hpux11*) 8028b85037dbSmrg lt_prog_compiler_wl='-Wl,' 8029b85037dbSmrg # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8030b85037dbSmrg # not for PA HP-UX. 8031b85037dbSmrg case $host_cpu in 8032b85037dbSmrg hppa*64*|ia64*) 8033b85037dbSmrg # +Z the default 8034b85037dbSmrg ;; 8035b85037dbSmrg *) 8036b85037dbSmrg lt_prog_compiler_pic='+Z' 8037b85037dbSmrg ;; 8038b85037dbSmrg esac 8039b85037dbSmrg # Is there a better lt_prog_compiler_static that works with the bundled CC? 8040b85037dbSmrg lt_prog_compiler_static='${wl}-a ${wl}archive' 8041b85037dbSmrg ;; 8042b85037dbSmrg 8043b85037dbSmrg irix5* | irix6* | nonstopux*) 8044b85037dbSmrg lt_prog_compiler_wl='-Wl,' 8045b85037dbSmrg # PIC (with -KPIC) is the default. 8046b85037dbSmrg lt_prog_compiler_static='-non_shared' 8047b85037dbSmrg ;; 8048b85037dbSmrg 8049b85037dbSmrg linux* | k*bsd*-gnu | kopensolaris*-gnu) 8050b85037dbSmrg case $cc_basename in 8051b85037dbSmrg # old Intel for x86_64 which still supported -KPIC. 8052b85037dbSmrg ecc*) 8053b85037dbSmrg lt_prog_compiler_wl='-Wl,' 8054b85037dbSmrg lt_prog_compiler_pic='-KPIC' 8055b85037dbSmrg lt_prog_compiler_static='-static' 8056b85037dbSmrg ;; 8057b85037dbSmrg # icc used to be incompatible with GCC. 8058b85037dbSmrg # ICC 10 doesn't accept -KPIC any more. 8059b85037dbSmrg icc* | ifort*) 8060b85037dbSmrg lt_prog_compiler_wl='-Wl,' 8061b85037dbSmrg lt_prog_compiler_pic='-fPIC' 8062b85037dbSmrg lt_prog_compiler_static='-static' 8063b85037dbSmrg ;; 8064b85037dbSmrg # Lahey Fortran 8.1. 8065b85037dbSmrg lf95*) 8066b85037dbSmrg lt_prog_compiler_wl='-Wl,' 8067b85037dbSmrg lt_prog_compiler_pic='--shared' 8068b85037dbSmrg lt_prog_compiler_static='--static' 8069b85037dbSmrg ;; 8070302b15bdSmrg nagfor*) 8071302b15bdSmrg # NAG Fortran compiler 8072302b15bdSmrg lt_prog_compiler_wl='-Wl,-Wl,,' 8073302b15bdSmrg lt_prog_compiler_pic='-PIC' 8074302b15bdSmrg lt_prog_compiler_static='-Bstatic' 8075302b15bdSmrg ;; 8076b85037dbSmrg pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8077b85037dbSmrg # Portland Group compilers (*not* the Pentium gcc compiler, 8078b85037dbSmrg # which looks to be a dead project) 8079b85037dbSmrg lt_prog_compiler_wl='-Wl,' 8080b85037dbSmrg lt_prog_compiler_pic='-fpic' 8081b85037dbSmrg lt_prog_compiler_static='-Bstatic' 8082b85037dbSmrg ;; 8083b85037dbSmrg ccc*) 8084b85037dbSmrg lt_prog_compiler_wl='-Wl,' 8085b85037dbSmrg # All Alpha code is PIC. 8086b85037dbSmrg lt_prog_compiler_static='-non_shared' 8087b85037dbSmrg ;; 8088b85037dbSmrg xl* | bgxl* | bgf* | mpixl*) 8089b85037dbSmrg # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8090b85037dbSmrg lt_prog_compiler_wl='-Wl,' 8091b85037dbSmrg lt_prog_compiler_pic='-qpic' 8092b85037dbSmrg lt_prog_compiler_static='-qstaticlink' 8093b85037dbSmrg ;; 8094b85037dbSmrg *) 8095b85037dbSmrg case `$CC -V 2>&1 | sed 5q` in 809628515619Smrg *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8097b85037dbSmrg # Sun Fortran 8.3 passes all unrecognized flags to the linker 8098b85037dbSmrg lt_prog_compiler_pic='-KPIC' 8099b85037dbSmrg lt_prog_compiler_static='-Bstatic' 8100b85037dbSmrg lt_prog_compiler_wl='' 8101b85037dbSmrg ;; 810228515619Smrg *Sun\ F* | *Sun*Fortran*) 810328515619Smrg lt_prog_compiler_pic='-KPIC' 810428515619Smrg lt_prog_compiler_static='-Bstatic' 810528515619Smrg lt_prog_compiler_wl='-Qoption ld ' 810628515619Smrg ;; 8107b85037dbSmrg *Sun\ C*) 8108b85037dbSmrg # Sun C 5.9 8109b85037dbSmrg lt_prog_compiler_pic='-KPIC' 8110b85037dbSmrg lt_prog_compiler_static='-Bstatic' 8111b85037dbSmrg lt_prog_compiler_wl='-Wl,' 8112b85037dbSmrg ;; 811328515619Smrg *Intel*\ [CF]*Compiler*) 811428515619Smrg lt_prog_compiler_wl='-Wl,' 811528515619Smrg lt_prog_compiler_pic='-fPIC' 811628515619Smrg lt_prog_compiler_static='-static' 811728515619Smrg ;; 811828515619Smrg *Portland\ Group*) 811928515619Smrg lt_prog_compiler_wl='-Wl,' 812028515619Smrg lt_prog_compiler_pic='-fpic' 812128515619Smrg lt_prog_compiler_static='-Bstatic' 812228515619Smrg ;; 8123b85037dbSmrg esac 8124b85037dbSmrg ;; 8125b85037dbSmrg esac 8126b85037dbSmrg ;; 8127b85037dbSmrg 8128b85037dbSmrg newsos6) 8129b85037dbSmrg lt_prog_compiler_pic='-KPIC' 8130b85037dbSmrg lt_prog_compiler_static='-Bstatic' 8131b85037dbSmrg ;; 8132b85037dbSmrg 8133b85037dbSmrg *nto* | *qnx*) 8134b85037dbSmrg # QNX uses GNU C++, but need to define -shared option too, otherwise 8135b85037dbSmrg # it will coredump. 8136b85037dbSmrg lt_prog_compiler_pic='-fPIC -shared' 8137b85037dbSmrg ;; 8138b85037dbSmrg 8139b85037dbSmrg osf3* | osf4* | osf5*) 8140b85037dbSmrg lt_prog_compiler_wl='-Wl,' 8141b85037dbSmrg # All OSF/1 code is PIC. 8142b85037dbSmrg lt_prog_compiler_static='-non_shared' 8143b85037dbSmrg ;; 8144b85037dbSmrg 8145b85037dbSmrg rdos*) 8146b85037dbSmrg lt_prog_compiler_static='-non_shared' 8147b85037dbSmrg ;; 8148b85037dbSmrg 8149b85037dbSmrg solaris*) 8150b85037dbSmrg lt_prog_compiler_pic='-KPIC' 8151b85037dbSmrg lt_prog_compiler_static='-Bstatic' 8152b85037dbSmrg case $cc_basename in 8153b85037dbSmrg f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8154b85037dbSmrg lt_prog_compiler_wl='-Qoption ld ';; 8155b85037dbSmrg *) 8156b85037dbSmrg lt_prog_compiler_wl='-Wl,';; 8157b85037dbSmrg esac 8158b85037dbSmrg ;; 8159b85037dbSmrg 8160b85037dbSmrg sunos4*) 8161b85037dbSmrg lt_prog_compiler_wl='-Qoption ld ' 8162b85037dbSmrg lt_prog_compiler_pic='-PIC' 8163b85037dbSmrg lt_prog_compiler_static='-Bstatic' 8164b85037dbSmrg ;; 8165b85037dbSmrg 8166b85037dbSmrg sysv4 | sysv4.2uw2* | sysv4.3*) 8167b85037dbSmrg lt_prog_compiler_wl='-Wl,' 8168b85037dbSmrg lt_prog_compiler_pic='-KPIC' 8169b85037dbSmrg lt_prog_compiler_static='-Bstatic' 8170b85037dbSmrg ;; 8171b85037dbSmrg 8172b85037dbSmrg sysv4*MP*) 8173b85037dbSmrg if test -d /usr/nec ;then 8174b85037dbSmrg lt_prog_compiler_pic='-Kconform_pic' 8175b85037dbSmrg lt_prog_compiler_static='-Bstatic' 8176b85037dbSmrg fi 8177b85037dbSmrg ;; 8178b85037dbSmrg 8179b85037dbSmrg sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8180b85037dbSmrg lt_prog_compiler_wl='-Wl,' 8181b85037dbSmrg lt_prog_compiler_pic='-KPIC' 8182b85037dbSmrg lt_prog_compiler_static='-Bstatic' 8183b85037dbSmrg ;; 8184b85037dbSmrg 8185b85037dbSmrg unicos*) 8186b85037dbSmrg lt_prog_compiler_wl='-Wl,' 8187b85037dbSmrg lt_prog_compiler_can_build_shared=no 8188b85037dbSmrg ;; 8189b85037dbSmrg 8190b85037dbSmrg uts4*) 8191b85037dbSmrg lt_prog_compiler_pic='-pic' 8192b85037dbSmrg lt_prog_compiler_static='-Bstatic' 8193b85037dbSmrg ;; 8194b85037dbSmrg 8195b85037dbSmrg *) 8196b85037dbSmrg lt_prog_compiler_can_build_shared=no 8197b85037dbSmrg ;; 8198b85037dbSmrg esac 8199b85037dbSmrg fi 8200b85037dbSmrg 8201b85037dbSmrgcase $host_os in 8202b85037dbSmrg # For platforms which do not support PIC, -DPIC is meaningless: 8203b85037dbSmrg *djgpp*) 8204b85037dbSmrg lt_prog_compiler_pic= 8205b85037dbSmrg ;; 8206b85037dbSmrg *) 8207b85037dbSmrg lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8208b85037dbSmrg ;; 8209b85037dbSmrgesac 8210b85037dbSmrg 8211302b15bdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8212302b15bdSmrg$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8213302b15bdSmrgif ${lt_cv_prog_compiler_pic+:} false; then : 8214302b15bdSmrg $as_echo_n "(cached) " >&6 8215302b15bdSmrgelse 8216302b15bdSmrg lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8217302b15bdSmrgfi 8218302b15bdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8219302b15bdSmrg$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8220302b15bdSmrglt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8221b85037dbSmrg 8222b85037dbSmrg# 8223b85037dbSmrg# Check to make sure the PIC flag actually works. 8224b85037dbSmrg# 8225b85037dbSmrgif test -n "$lt_prog_compiler_pic"; then 8226b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8227b85037dbSmrg$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8228302b15bdSmrgif ${lt_cv_prog_compiler_pic_works+:} false; then : 8229b85037dbSmrg $as_echo_n "(cached) " >&6 8230b85037dbSmrgelse 8231b85037dbSmrg lt_cv_prog_compiler_pic_works=no 8232b85037dbSmrg ac_outfile=conftest.$ac_objext 8233b85037dbSmrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8234b85037dbSmrg lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8235b85037dbSmrg # Insert the option either (1) after the last *FLAGS variable, or 8236b85037dbSmrg # (2) before a word containing "conftest.", or (3) at the end. 8237b85037dbSmrg # Note that $ac_compile itself does not contain backslashes and begins 8238b85037dbSmrg # with a dollar sign (not a hyphen), so the echo should work correctly. 8239b85037dbSmrg # The option is referenced via a variable to avoid confusing sed. 8240b85037dbSmrg lt_compile=`echo "$ac_compile" | $SED \ 8241b85037dbSmrg -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8242b85037dbSmrg -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8243b85037dbSmrg -e 's:$: $lt_compiler_flag:'` 8244b85037dbSmrg (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8245b85037dbSmrg (eval "$lt_compile" 2>conftest.err) 8246b85037dbSmrg ac_status=$? 8247b85037dbSmrg cat conftest.err >&5 8248b85037dbSmrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 8249b85037dbSmrg if (exit $ac_status) && test -s "$ac_outfile"; then 8250b85037dbSmrg # The compiler can only warn and ignore the option if not recognized 8251b85037dbSmrg # So say no if there are warnings other than the usual output. 8252b85037dbSmrg $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8253b85037dbSmrg $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8254b85037dbSmrg if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8255b85037dbSmrg lt_cv_prog_compiler_pic_works=yes 8256b85037dbSmrg fi 8257b85037dbSmrg fi 8258b85037dbSmrg $RM conftest* 8259b85037dbSmrg 8260b85037dbSmrgfi 8261b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8262b85037dbSmrg$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8263b85037dbSmrg 8264b85037dbSmrgif test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8265b85037dbSmrg case $lt_prog_compiler_pic in 8266b85037dbSmrg "" | " "*) ;; 8267b85037dbSmrg *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8268b85037dbSmrg esac 8269b85037dbSmrgelse 8270b85037dbSmrg lt_prog_compiler_pic= 8271b85037dbSmrg lt_prog_compiler_can_build_shared=no 8272b85037dbSmrgfi 8273b85037dbSmrg 8274b85037dbSmrgfi 8275b85037dbSmrg 8276b85037dbSmrg 8277b85037dbSmrg 8278b85037dbSmrg 8279b85037dbSmrg 8280b85037dbSmrg 8281302b15bdSmrg 8282302b15bdSmrg 8283302b15bdSmrg 8284302b15bdSmrg 8285302b15bdSmrg 8286b85037dbSmrg# 8287b85037dbSmrg# Check to make sure the static flag actually works. 8288b85037dbSmrg# 8289b85037dbSmrgwl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8290b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8291b85037dbSmrg$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8292302b15bdSmrgif ${lt_cv_prog_compiler_static_works+:} false; then : 8293b85037dbSmrg $as_echo_n "(cached) " >&6 8294b85037dbSmrgelse 8295b85037dbSmrg lt_cv_prog_compiler_static_works=no 8296b85037dbSmrg save_LDFLAGS="$LDFLAGS" 8297b85037dbSmrg LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8298b85037dbSmrg echo "$lt_simple_link_test_code" > conftest.$ac_ext 8299b85037dbSmrg if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8300b85037dbSmrg # The linker can only warn and ignore the option if not recognized 8301b85037dbSmrg # So say no if there are warnings 8302b85037dbSmrg if test -s conftest.err; then 8303b85037dbSmrg # Append any errors to the config.log. 8304b85037dbSmrg cat conftest.err 1>&5 8305b85037dbSmrg $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8306b85037dbSmrg $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8307b85037dbSmrg if diff conftest.exp conftest.er2 >/dev/null; then 8308b85037dbSmrg lt_cv_prog_compiler_static_works=yes 8309b85037dbSmrg fi 8310b85037dbSmrg else 8311b85037dbSmrg lt_cv_prog_compiler_static_works=yes 8312b85037dbSmrg fi 8313b85037dbSmrg fi 8314b85037dbSmrg $RM -r conftest* 8315b85037dbSmrg LDFLAGS="$save_LDFLAGS" 8316b85037dbSmrg 8317b85037dbSmrgfi 8318b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8319b85037dbSmrg$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8320b85037dbSmrg 8321b85037dbSmrgif test x"$lt_cv_prog_compiler_static_works" = xyes; then 8322b85037dbSmrg : 8323b85037dbSmrgelse 8324b85037dbSmrg lt_prog_compiler_static= 8325b85037dbSmrgfi 8326b85037dbSmrg 8327b85037dbSmrg 8328b85037dbSmrg 8329b85037dbSmrg 8330b85037dbSmrg 8331b85037dbSmrg 8332b85037dbSmrg 8333b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8334b85037dbSmrg$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8335302b15bdSmrgif ${lt_cv_prog_compiler_c_o+:} false; then : 8336b85037dbSmrg $as_echo_n "(cached) " >&6 8337b85037dbSmrgelse 8338b85037dbSmrg lt_cv_prog_compiler_c_o=no 8339b85037dbSmrg $RM -r conftest 2>/dev/null 8340b85037dbSmrg mkdir conftest 8341b85037dbSmrg cd conftest 8342b85037dbSmrg mkdir out 8343b85037dbSmrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8344b85037dbSmrg 8345b85037dbSmrg lt_compiler_flag="-o out/conftest2.$ac_objext" 8346b85037dbSmrg # Insert the option either (1) after the last *FLAGS variable, or 8347b85037dbSmrg # (2) before a word containing "conftest.", or (3) at the end. 8348b85037dbSmrg # Note that $ac_compile itself does not contain backslashes and begins 8349b85037dbSmrg # with a dollar sign (not a hyphen), so the echo should work correctly. 8350b85037dbSmrg lt_compile=`echo "$ac_compile" | $SED \ 8351b85037dbSmrg -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8352b85037dbSmrg -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8353b85037dbSmrg -e 's:$: $lt_compiler_flag:'` 8354b85037dbSmrg (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8355b85037dbSmrg (eval "$lt_compile" 2>out/conftest.err) 8356b85037dbSmrg ac_status=$? 8357b85037dbSmrg cat out/conftest.err >&5 8358b85037dbSmrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 8359b85037dbSmrg if (exit $ac_status) && test -s out/conftest2.$ac_objext 8360b85037dbSmrg then 8361b85037dbSmrg # The compiler can only warn and ignore the option if not recognized 8362b85037dbSmrg # So say no if there are warnings 8363b85037dbSmrg $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8364b85037dbSmrg $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8365b85037dbSmrg if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8366b85037dbSmrg lt_cv_prog_compiler_c_o=yes 8367b85037dbSmrg fi 8368b85037dbSmrg fi 8369b85037dbSmrg chmod u+w . 2>&5 8370b85037dbSmrg $RM conftest* 8371b85037dbSmrg # SGI C++ compiler will create directory out/ii_files/ for 8372b85037dbSmrg # template instantiation 8373b85037dbSmrg test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8374b85037dbSmrg $RM out/* && rmdir out 8375b85037dbSmrg cd .. 8376b85037dbSmrg $RM -r conftest 8377b85037dbSmrg $RM conftest* 8378b85037dbSmrg 8379b85037dbSmrgfi 8380b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8381b85037dbSmrg$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8382b85037dbSmrg 8383b85037dbSmrg 8384b85037dbSmrg 8385b85037dbSmrg 8386b85037dbSmrg 8387b85037dbSmrg 8388b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8389b85037dbSmrg$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8390302b15bdSmrgif ${lt_cv_prog_compiler_c_o+:} false; then : 8391b85037dbSmrg $as_echo_n "(cached) " >&6 8392b85037dbSmrgelse 8393b85037dbSmrg lt_cv_prog_compiler_c_o=no 8394b85037dbSmrg $RM -r conftest 2>/dev/null 8395b85037dbSmrg mkdir conftest 8396b85037dbSmrg cd conftest 8397b85037dbSmrg mkdir out 8398b85037dbSmrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8399b85037dbSmrg 8400b85037dbSmrg lt_compiler_flag="-o out/conftest2.$ac_objext" 8401b85037dbSmrg # Insert the option either (1) after the last *FLAGS variable, or 8402b85037dbSmrg # (2) before a word containing "conftest.", or (3) at the end. 8403b85037dbSmrg # Note that $ac_compile itself does not contain backslashes and begins 8404b85037dbSmrg # with a dollar sign (not a hyphen), so the echo should work correctly. 8405b85037dbSmrg lt_compile=`echo "$ac_compile" | $SED \ 8406b85037dbSmrg -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8407b85037dbSmrg -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8408b85037dbSmrg -e 's:$: $lt_compiler_flag:'` 8409b85037dbSmrg (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8410b85037dbSmrg (eval "$lt_compile" 2>out/conftest.err) 8411b85037dbSmrg ac_status=$? 8412b85037dbSmrg cat out/conftest.err >&5 8413b85037dbSmrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 8414b85037dbSmrg if (exit $ac_status) && test -s out/conftest2.$ac_objext 8415b85037dbSmrg then 8416b85037dbSmrg # The compiler can only warn and ignore the option if not recognized 8417b85037dbSmrg # So say no if there are warnings 8418b85037dbSmrg $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8419b85037dbSmrg $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8420b85037dbSmrg if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8421b85037dbSmrg lt_cv_prog_compiler_c_o=yes 8422b85037dbSmrg fi 8423b85037dbSmrg fi 8424b85037dbSmrg chmod u+w . 2>&5 8425b85037dbSmrg $RM conftest* 8426b85037dbSmrg # SGI C++ compiler will create directory out/ii_files/ for 8427b85037dbSmrg # template instantiation 8428b85037dbSmrg test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8429b85037dbSmrg $RM out/* && rmdir out 8430b85037dbSmrg cd .. 8431b85037dbSmrg $RM -r conftest 8432b85037dbSmrg $RM conftest* 8433b85037dbSmrg 8434b85037dbSmrgfi 8435b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8436b85037dbSmrg$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8437b85037dbSmrg 8438b85037dbSmrg 8439b85037dbSmrg 8440b85037dbSmrg 8441b85037dbSmrghard_links="nottested" 8442b85037dbSmrgif test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8443b85037dbSmrg # do not overwrite the value of need_locks provided by the user 8444b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8445b85037dbSmrg$as_echo_n "checking if we can lock with hard links... " >&6; } 8446b85037dbSmrg hard_links=yes 8447b85037dbSmrg $RM conftest* 8448b85037dbSmrg ln conftest.a conftest.b 2>/dev/null && hard_links=no 8449b85037dbSmrg touch conftest.a 8450b85037dbSmrg ln conftest.a conftest.b 2>&5 || hard_links=no 8451b85037dbSmrg ln conftest.a conftest.b 2>/dev/null && hard_links=no 8452b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8453b85037dbSmrg$as_echo "$hard_links" >&6; } 8454b85037dbSmrg if test "$hard_links" = no; then 8455b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8456b85037dbSmrg$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8457b85037dbSmrg need_locks=warn 8458b85037dbSmrg fi 8459b85037dbSmrgelse 8460b85037dbSmrg need_locks=no 8461b85037dbSmrgfi 8462b85037dbSmrg 8463b85037dbSmrg 8464b85037dbSmrg 8465b85037dbSmrg 8466b85037dbSmrg 8467b85037dbSmrg 8468b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8469b85037dbSmrg$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8470b85037dbSmrg 8471b85037dbSmrg runpath_var= 8472b85037dbSmrg allow_undefined_flag= 8473b85037dbSmrg always_export_symbols=no 8474b85037dbSmrg archive_cmds= 8475b85037dbSmrg archive_expsym_cmds= 8476b85037dbSmrg compiler_needs_object=no 8477b85037dbSmrg enable_shared_with_static_runtimes=no 8478b85037dbSmrg export_dynamic_flag_spec= 8479b85037dbSmrg export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8480b85037dbSmrg hardcode_automatic=no 8481b85037dbSmrg hardcode_direct=no 8482b85037dbSmrg hardcode_direct_absolute=no 8483b85037dbSmrg hardcode_libdir_flag_spec= 8484b85037dbSmrg hardcode_libdir_separator= 8485b85037dbSmrg hardcode_minus_L=no 8486b85037dbSmrg hardcode_shlibpath_var=unsupported 8487b85037dbSmrg inherit_rpath=no 8488b85037dbSmrg link_all_deplibs=unknown 8489b85037dbSmrg module_cmds= 8490b85037dbSmrg module_expsym_cmds= 8491b85037dbSmrg old_archive_from_new_cmds= 8492b85037dbSmrg old_archive_from_expsyms_cmds= 8493b85037dbSmrg thread_safe_flag_spec= 8494b85037dbSmrg whole_archive_flag_spec= 8495b85037dbSmrg # include_expsyms should be a list of space-separated symbols to be *always* 8496b85037dbSmrg # included in the symbol list 8497b85037dbSmrg include_expsyms= 8498b85037dbSmrg # exclude_expsyms can be an extended regexp of symbols to exclude 8499b85037dbSmrg # it will be wrapped by ` (' and `)$', so one must not match beginning or 8500b85037dbSmrg # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8501b85037dbSmrg # as well as any symbol that contains `d'. 8502b85037dbSmrg exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8503b85037dbSmrg # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8504b85037dbSmrg # platforms (ab)use it in PIC code, but their linkers get confused if 8505b85037dbSmrg # the symbol is explicitly referenced. Since portable code cannot 8506b85037dbSmrg # rely on this symbol name, it's probably fine to never include it in 8507b85037dbSmrg # preloaded symbol tables. 8508b85037dbSmrg # Exclude shared library initialization/finalization symbols. 8509b85037dbSmrg extract_expsyms_cmds= 8510b85037dbSmrg 8511b85037dbSmrg case $host_os in 8512b85037dbSmrg cygwin* | mingw* | pw32* | cegcc*) 8513b85037dbSmrg # FIXME: the MSVC++ port hasn't been tested in a loooong time 8514b85037dbSmrg # When not using gcc, we currently assume that we are using 8515b85037dbSmrg # Microsoft Visual C++. 8516b85037dbSmrg if test "$GCC" != yes; then 8517b85037dbSmrg with_gnu_ld=no 8518b85037dbSmrg fi 8519b85037dbSmrg ;; 8520b85037dbSmrg interix*) 8521b85037dbSmrg # we just hope/assume this is gcc and not c89 (= MSVC++) 8522b85037dbSmrg with_gnu_ld=yes 8523b85037dbSmrg ;; 8524b85037dbSmrg openbsd*) 8525b85037dbSmrg with_gnu_ld=no 8526b85037dbSmrg ;; 8527b85037dbSmrg esac 8528b85037dbSmrg 8529b85037dbSmrg ld_shlibs=yes 8530b85037dbSmrg 8531b85037dbSmrg # On some targets, GNU ld is compatible enough with the native linker 8532b85037dbSmrg # that we're better off using the native interface for both. 8533b85037dbSmrg lt_use_gnu_ld_interface=no 8534b85037dbSmrg if test "$with_gnu_ld" = yes; then 8535b85037dbSmrg case $host_os in 8536b85037dbSmrg aix*) 8537b85037dbSmrg # The AIX port of GNU ld has always aspired to compatibility 8538b85037dbSmrg # with the native linker. However, as the warning in the GNU ld 8539b85037dbSmrg # block says, versions before 2.19.5* couldn't really create working 8540b85037dbSmrg # shared libraries, regardless of the interface used. 8541b85037dbSmrg case `$LD -v 2>&1` in 8542b85037dbSmrg *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8543b85037dbSmrg *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8544b85037dbSmrg *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8545b85037dbSmrg *) 8546b85037dbSmrg lt_use_gnu_ld_interface=yes 8547b85037dbSmrg ;; 8548b85037dbSmrg esac 8549b85037dbSmrg ;; 8550b85037dbSmrg *) 8551b85037dbSmrg lt_use_gnu_ld_interface=yes 8552b85037dbSmrg ;; 8553b85037dbSmrg esac 8554b85037dbSmrg fi 8555b85037dbSmrg 8556b85037dbSmrg if test "$lt_use_gnu_ld_interface" = yes; then 8557b85037dbSmrg # If archive_cmds runs LD, not CC, wlarc should be empty 8558b85037dbSmrg wlarc='${wl}' 8559b85037dbSmrg 8560b85037dbSmrg # Set some defaults for GNU ld with shared library support. These 8561b85037dbSmrg # are reset later if shared libraries are not supported. Putting them 8562b85037dbSmrg # here allows them to be overridden if necessary. 8563b85037dbSmrg runpath_var=LD_RUN_PATH 8564b85037dbSmrg hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8565b85037dbSmrg export_dynamic_flag_spec='${wl}--export-dynamic' 8566b85037dbSmrg # ancient GNU ld didn't support --whole-archive et. al. 8567b85037dbSmrg if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8568b85037dbSmrg whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8569b85037dbSmrg else 8570b85037dbSmrg whole_archive_flag_spec= 8571b85037dbSmrg fi 8572b85037dbSmrg supports_anon_versioning=no 8573b85037dbSmrg case `$LD -v 2>&1` in 8574b85037dbSmrg *GNU\ gold*) supports_anon_versioning=yes ;; 8575b85037dbSmrg *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8576b85037dbSmrg *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8577b85037dbSmrg *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8578b85037dbSmrg *\ 2.11.*) ;; # other 2.11 versions 8579b85037dbSmrg *) supports_anon_versioning=yes ;; 8580b85037dbSmrg esac 8581b85037dbSmrg 8582b85037dbSmrg # See if GNU ld supports shared libraries. 8583b85037dbSmrg case $host_os in 8584b85037dbSmrg aix[3-9]*) 8585b85037dbSmrg # On AIX/PPC, the GNU linker is very broken 8586b85037dbSmrg if test "$host_cpu" != ia64; then 8587b85037dbSmrg ld_shlibs=no 8588b85037dbSmrg cat <<_LT_EOF 1>&2 8589b85037dbSmrg 8590b85037dbSmrg*** Warning: the GNU linker, at least up to release 2.19, is reported 8591b85037dbSmrg*** to be unable to reliably create shared libraries on AIX. 8592b85037dbSmrg*** Therefore, libtool is disabling shared libraries support. If you 8593b85037dbSmrg*** really care for shared libraries, you may want to install binutils 8594b85037dbSmrg*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8595b85037dbSmrg*** You will then need to restart the configuration process. 8596b85037dbSmrg 8597b85037dbSmrg_LT_EOF 8598b85037dbSmrg fi 8599b85037dbSmrg ;; 8600b85037dbSmrg 8601b85037dbSmrg amigaos*) 8602b85037dbSmrg case $host_cpu in 8603b85037dbSmrg powerpc) 8604b85037dbSmrg # see comment about AmigaOS4 .so support 8605b85037dbSmrg archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8606b85037dbSmrg archive_expsym_cmds='' 8607b85037dbSmrg ;; 8608b85037dbSmrg m68k) 8609b85037dbSmrg 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)' 8610b85037dbSmrg hardcode_libdir_flag_spec='-L$libdir' 8611b85037dbSmrg hardcode_minus_L=yes 8612b85037dbSmrg ;; 8613b85037dbSmrg esac 8614b85037dbSmrg ;; 8615b85037dbSmrg 8616b85037dbSmrg beos*) 8617b85037dbSmrg if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8618b85037dbSmrg allow_undefined_flag=unsupported 8619b85037dbSmrg # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8620b85037dbSmrg # support --undefined. This deserves some investigation. FIXME 8621b85037dbSmrg archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8622b85037dbSmrg else 8623b85037dbSmrg ld_shlibs=no 8624b85037dbSmrg fi 8625b85037dbSmrg ;; 8626b85037dbSmrg 8627b85037dbSmrg cygwin* | mingw* | pw32* | cegcc*) 8628b85037dbSmrg # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8629b85037dbSmrg # as there is no search path for DLLs. 8630b85037dbSmrg hardcode_libdir_flag_spec='-L$libdir' 8631b85037dbSmrg export_dynamic_flag_spec='${wl}--export-all-symbols' 8632b85037dbSmrg allow_undefined_flag=unsupported 8633b85037dbSmrg always_export_symbols=no 8634b85037dbSmrg enable_shared_with_static_runtimes=yes 8635302b15bdSmrg 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' 8636302b15bdSmrg exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8637b85037dbSmrg 8638b85037dbSmrg if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8639b85037dbSmrg archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8640b85037dbSmrg # If the export-symbols file already is a .def file (1st line 8641b85037dbSmrg # is EXPORTS), use it as is; otherwise, prepend... 8642b85037dbSmrg archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8643b85037dbSmrg cp $export_symbols $output_objdir/$soname.def; 8644b85037dbSmrg else 8645b85037dbSmrg echo EXPORTS > $output_objdir/$soname.def; 8646b85037dbSmrg cat $export_symbols >> $output_objdir/$soname.def; 8647b85037dbSmrg fi~ 8648b85037dbSmrg $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8649b85037dbSmrg else 8650b85037dbSmrg ld_shlibs=no 8651b85037dbSmrg fi 8652b85037dbSmrg ;; 8653b85037dbSmrg 8654b85037dbSmrg haiku*) 8655b85037dbSmrg archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8656b85037dbSmrg link_all_deplibs=yes 8657b85037dbSmrg ;; 8658b85037dbSmrg 8659b85037dbSmrg interix[3-9]*) 8660b85037dbSmrg hardcode_direct=no 8661b85037dbSmrg hardcode_shlibpath_var=no 8662b85037dbSmrg hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8663b85037dbSmrg export_dynamic_flag_spec='${wl}-E' 8664b85037dbSmrg # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8665b85037dbSmrg # Instead, shared libraries are loaded at an image base (0x10000000 by 8666b85037dbSmrg # default) and relocated if they conflict, which is a slow very memory 8667b85037dbSmrg # consuming and fragmenting process. To avoid this, we pick a random, 8668b85037dbSmrg # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8669b85037dbSmrg # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8670b85037dbSmrg archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8671b85037dbSmrg 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' 8672b85037dbSmrg ;; 8673b85037dbSmrg 8674b85037dbSmrg gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8675b85037dbSmrg tmp_diet=no 8676b85037dbSmrg if test "$host_os" = linux-dietlibc; then 8677b85037dbSmrg case $cc_basename in 8678b85037dbSmrg diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8679b85037dbSmrg esac 8680b85037dbSmrg fi 8681b85037dbSmrg if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8682b85037dbSmrg && test "$tmp_diet" = no 8683b85037dbSmrg then 8684302b15bdSmrg tmp_addflag=' $pic_flag' 8685b85037dbSmrg tmp_sharedflag='-shared' 8686b85037dbSmrg case $cc_basename,$host_cpu in 8687b85037dbSmrg pgcc*) # Portland Group C compiler 8688b85037dbSmrg 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' 8689b85037dbSmrg tmp_addflag=' $pic_flag' 8690b85037dbSmrg ;; 8691b85037dbSmrg pgf77* | pgf90* | pgf95* | pgfortran*) 8692b85037dbSmrg # Portland Group f77 and f90 compilers 8693b85037dbSmrg 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' 8694b85037dbSmrg tmp_addflag=' $pic_flag -Mnomain' ;; 8695b85037dbSmrg ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8696b85037dbSmrg tmp_addflag=' -i_dynamic' ;; 8697b85037dbSmrg efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8698b85037dbSmrg tmp_addflag=' -i_dynamic -nofor_main' ;; 8699b85037dbSmrg ifc* | ifort*) # Intel Fortran compiler 8700b85037dbSmrg tmp_addflag=' -nofor_main' ;; 8701b85037dbSmrg lf95*) # Lahey Fortran 8.1 8702b85037dbSmrg whole_archive_flag_spec= 8703b85037dbSmrg tmp_sharedflag='--shared' ;; 8704b85037dbSmrg xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8705b85037dbSmrg tmp_sharedflag='-qmkshrobj' 8706b85037dbSmrg tmp_addflag= ;; 8707b85037dbSmrg nvcc*) # Cuda Compiler Driver 2.2 8708b85037dbSmrg 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' 8709b85037dbSmrg compiler_needs_object=yes 8710b85037dbSmrg ;; 8711b85037dbSmrg esac 8712b85037dbSmrg case `$CC -V 2>&1 | sed 5q` in 8713b85037dbSmrg *Sun\ C*) # Sun C 5.9 8714b85037dbSmrg 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' 8715b85037dbSmrg compiler_needs_object=yes 8716b85037dbSmrg tmp_sharedflag='-G' ;; 8717b85037dbSmrg *Sun\ F*) # Sun Fortran 8.3 8718b85037dbSmrg tmp_sharedflag='-G' ;; 8719b85037dbSmrg esac 8720b85037dbSmrg archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8721b85037dbSmrg 8722b85037dbSmrg if test "x$supports_anon_versioning" = xyes; then 8723b85037dbSmrg archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8724b85037dbSmrg cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8725b85037dbSmrg echo "local: *; };" >> $output_objdir/$libname.ver~ 8726b85037dbSmrg $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8727b85037dbSmrg fi 8728b85037dbSmrg 8729b85037dbSmrg case $cc_basename in 8730b85037dbSmrg xlf* | bgf* | bgxlf* | mpixlf*) 8731b85037dbSmrg # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8732b85037dbSmrg whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 873328515619Smrg hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8734b85037dbSmrg archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 8735b85037dbSmrg if test "x$supports_anon_versioning" = xyes; then 8736b85037dbSmrg archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8737b85037dbSmrg cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8738b85037dbSmrg echo "local: *; };" >> $output_objdir/$libname.ver~ 8739b85037dbSmrg $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8740b85037dbSmrg fi 8741b85037dbSmrg ;; 8742b85037dbSmrg esac 8743b85037dbSmrg else 8744b85037dbSmrg ld_shlibs=no 8745b85037dbSmrg fi 8746b85037dbSmrg ;; 8747b85037dbSmrg 8748b85037dbSmrg netbsd*) 8749b85037dbSmrg if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8750b85037dbSmrg archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8751b85037dbSmrg wlarc= 8752b85037dbSmrg else 8753302b15bdSmrg archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8754302b15bdSmrg archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8755b85037dbSmrg fi 8756b85037dbSmrg ;; 8757b85037dbSmrg 8758b85037dbSmrg solaris*) 8759b85037dbSmrg if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8760b85037dbSmrg ld_shlibs=no 8761b85037dbSmrg cat <<_LT_EOF 1>&2 8762b85037dbSmrg 8763b85037dbSmrg*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8764b85037dbSmrg*** create shared libraries on Solaris systems. Therefore, libtool 8765b85037dbSmrg*** is disabling shared libraries support. We urge you to upgrade GNU 8766b85037dbSmrg*** binutils to release 2.9.1 or newer. Another option is to modify 8767b85037dbSmrg*** your PATH or compiler configuration so that the native linker is 8768b85037dbSmrg*** used, and then restart. 8769b85037dbSmrg 8770b85037dbSmrg_LT_EOF 8771b85037dbSmrg elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8772302b15bdSmrg archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8773302b15bdSmrg archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8774b85037dbSmrg else 8775b85037dbSmrg ld_shlibs=no 8776b85037dbSmrg fi 8777b85037dbSmrg ;; 8778b85037dbSmrg 8779b85037dbSmrg sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8780b85037dbSmrg case `$LD -v 2>&1` in 8781b85037dbSmrg *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8782b85037dbSmrg ld_shlibs=no 8783b85037dbSmrg cat <<_LT_EOF 1>&2 8784b85037dbSmrg 8785b85037dbSmrg*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8786b85037dbSmrg*** reliably create shared libraries on SCO systems. Therefore, libtool 8787b85037dbSmrg*** is disabling shared libraries support. We urge you to upgrade GNU 8788b85037dbSmrg*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8789b85037dbSmrg*** your PATH or compiler configuration so that the native linker is 8790b85037dbSmrg*** used, and then restart. 8791b85037dbSmrg 8792b85037dbSmrg_LT_EOF 8793b85037dbSmrg ;; 8794b85037dbSmrg *) 8795b85037dbSmrg # For security reasons, it is highly recommended that you always 8796b85037dbSmrg # use absolute paths for naming shared libraries, and exclude the 8797b85037dbSmrg # DT_RUNPATH tag from executables and libraries. But doing so 8798b85037dbSmrg # requires that you compile everything twice, which is a pain. 8799b85037dbSmrg if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8800b85037dbSmrg hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8801b85037dbSmrg archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8802b85037dbSmrg archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8803b85037dbSmrg else 8804b85037dbSmrg ld_shlibs=no 8805b85037dbSmrg fi 8806b85037dbSmrg ;; 8807b85037dbSmrg esac 8808b85037dbSmrg ;; 8809b85037dbSmrg 8810b85037dbSmrg sunos4*) 8811b85037dbSmrg archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8812b85037dbSmrg wlarc= 8813b85037dbSmrg hardcode_direct=yes 8814b85037dbSmrg hardcode_shlibpath_var=no 8815b85037dbSmrg ;; 8816b85037dbSmrg 8817b85037dbSmrg *) 8818b85037dbSmrg if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8819302b15bdSmrg archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8820302b15bdSmrg archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8821b85037dbSmrg else 8822b85037dbSmrg ld_shlibs=no 8823b85037dbSmrg fi 8824b85037dbSmrg ;; 8825b85037dbSmrg esac 8826b85037dbSmrg 8827b85037dbSmrg if test "$ld_shlibs" = no; then 8828b85037dbSmrg runpath_var= 8829b85037dbSmrg hardcode_libdir_flag_spec= 8830b85037dbSmrg export_dynamic_flag_spec= 8831b85037dbSmrg whole_archive_flag_spec= 8832b85037dbSmrg fi 8833b85037dbSmrg else 8834b85037dbSmrg # PORTME fill in a description of your system's linker (not GNU ld) 8835b85037dbSmrg case $host_os in 8836b85037dbSmrg aix3*) 8837b85037dbSmrg allow_undefined_flag=unsupported 8838b85037dbSmrg always_export_symbols=yes 8839b85037dbSmrg 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' 8840b85037dbSmrg # Note: this linker hardcodes the directories in LIBPATH if there 8841b85037dbSmrg # are no directories specified by -L. 8842b85037dbSmrg hardcode_minus_L=yes 8843b85037dbSmrg if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8844b85037dbSmrg # Neither direct hardcoding nor static linking is supported with a 8845b85037dbSmrg # broken collect2. 8846b85037dbSmrg hardcode_direct=unsupported 8847b85037dbSmrg fi 8848b85037dbSmrg ;; 8849b85037dbSmrg 8850b85037dbSmrg aix[4-9]*) 8851b85037dbSmrg if test "$host_cpu" = ia64; then 8852b85037dbSmrg # On IA64, the linker does run time linking by default, so we don't 8853b85037dbSmrg # have to do anything special. 8854b85037dbSmrg aix_use_runtimelinking=no 8855b85037dbSmrg exp_sym_flag='-Bexport' 8856b85037dbSmrg no_entry_flag="" 8857b85037dbSmrg else 8858b85037dbSmrg # If we're using GNU nm, then we don't want the "-C" option. 8859b85037dbSmrg # -C means demangle to AIX nm, but means don't demangle with GNU nm 8860b85037dbSmrg # Also, AIX nm treats weak defined symbols like other global 8861b85037dbSmrg # defined symbols, whereas GNU nm marks them as "W". 8862b85037dbSmrg if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8863b85037dbSmrg 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' 8864b85037dbSmrg else 8865b85037dbSmrg 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' 8866b85037dbSmrg fi 8867b85037dbSmrg aix_use_runtimelinking=no 8868b85037dbSmrg 8869b85037dbSmrg # Test if we are trying to use run time linking or normal 8870b85037dbSmrg # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8871b85037dbSmrg # need to do runtime linking. 8872b85037dbSmrg case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8873b85037dbSmrg for ld_flag in $LDFLAGS; do 8874b85037dbSmrg if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8875b85037dbSmrg aix_use_runtimelinking=yes 8876b85037dbSmrg break 8877b85037dbSmrg fi 8878b85037dbSmrg done 8879b85037dbSmrg ;; 8880b85037dbSmrg esac 8881b85037dbSmrg 8882b85037dbSmrg exp_sym_flag='-bexport' 8883b85037dbSmrg no_entry_flag='-bnoentry' 8884b85037dbSmrg fi 8885b85037dbSmrg 8886b85037dbSmrg # When large executables or shared objects are built, AIX ld can 8887b85037dbSmrg # have problems creating the table of contents. If linking a library 8888b85037dbSmrg # or program results in "error TOC overflow" add -mminimal-toc to 8889b85037dbSmrg # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8890b85037dbSmrg # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8891b85037dbSmrg 8892b85037dbSmrg archive_cmds='' 8893b85037dbSmrg hardcode_direct=yes 8894b85037dbSmrg hardcode_direct_absolute=yes 8895b85037dbSmrg hardcode_libdir_separator=':' 8896b85037dbSmrg link_all_deplibs=yes 8897b85037dbSmrg file_list_spec='${wl}-f,' 8898b85037dbSmrg 8899b85037dbSmrg if test "$GCC" = yes; then 8900b85037dbSmrg case $host_os in aix4.[012]|aix4.[012].*) 8901b85037dbSmrg # We only want to do this on AIX 4.2 and lower, the check 8902b85037dbSmrg # below for broken collect2 doesn't work under 4.3+ 8903b85037dbSmrg collect2name=`${CC} -print-prog-name=collect2` 8904b85037dbSmrg if test -f "$collect2name" && 8905b85037dbSmrg strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8906b85037dbSmrg then 8907b85037dbSmrg # We have reworked collect2 8908b85037dbSmrg : 8909b85037dbSmrg else 8910b85037dbSmrg # We have old collect2 8911b85037dbSmrg hardcode_direct=unsupported 8912b85037dbSmrg # It fails to find uninstalled libraries when the uninstalled 8913b85037dbSmrg # path is not listed in the libpath. Setting hardcode_minus_L 8914b85037dbSmrg # to unsupported forces relinking 8915b85037dbSmrg hardcode_minus_L=yes 8916b85037dbSmrg hardcode_libdir_flag_spec='-L$libdir' 8917b85037dbSmrg hardcode_libdir_separator= 8918b85037dbSmrg fi 8919b85037dbSmrg ;; 8920b85037dbSmrg esac 8921b85037dbSmrg shared_flag='-shared' 8922b85037dbSmrg if test "$aix_use_runtimelinking" = yes; then 8923b85037dbSmrg shared_flag="$shared_flag "'${wl}-G' 8924b85037dbSmrg fi 8925b85037dbSmrg else 8926b85037dbSmrg # not using gcc 8927b85037dbSmrg if test "$host_cpu" = ia64; then 8928b85037dbSmrg # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8929b85037dbSmrg # chokes on -Wl,-G. The following line is correct: 8930b85037dbSmrg shared_flag='-G' 8931b85037dbSmrg else 8932b85037dbSmrg if test "$aix_use_runtimelinking" = yes; then 8933b85037dbSmrg shared_flag='${wl}-G' 8934b85037dbSmrg else 8935b85037dbSmrg shared_flag='${wl}-bM:SRE' 8936b85037dbSmrg fi 8937b85037dbSmrg fi 8938b85037dbSmrg fi 8939b85037dbSmrg 8940b85037dbSmrg export_dynamic_flag_spec='${wl}-bexpall' 8941b85037dbSmrg # It seems that -bexpall does not export symbols beginning with 8942b85037dbSmrg # underscore (_), so it is better to generate a list of symbols to export. 8943b85037dbSmrg always_export_symbols=yes 8944b85037dbSmrg if test "$aix_use_runtimelinking" = yes; then 8945b85037dbSmrg # Warning - without using the other runtime loading flags (-brtl), 8946b85037dbSmrg # -berok will link without error, but may produce a broken library. 8947b85037dbSmrg allow_undefined_flag='-berok' 8948b85037dbSmrg # Determine the default libpath from the value encoded in an 8949b85037dbSmrg # empty executable. 8950302b15bdSmrg if test "${lt_cv_aix_libpath+set}" = set; then 8951302b15bdSmrg aix_libpath=$lt_cv_aix_libpath 8952302b15bdSmrgelse 8953302b15bdSmrg if ${lt_cv_aix_libpath_+:} false; then : 8954302b15bdSmrg $as_echo_n "(cached) " >&6 8955302b15bdSmrgelse 8956302b15bdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8957b85037dbSmrg/* end confdefs.h. */ 8958b85037dbSmrg 8959b85037dbSmrgint 8960b85037dbSmrgmain () 8961b85037dbSmrg{ 8962b85037dbSmrg 8963b85037dbSmrg ; 8964b85037dbSmrg return 0; 8965b85037dbSmrg} 8966b85037dbSmrg_ACEOF 8967b85037dbSmrgif ac_fn_c_try_link "$LINENO"; then : 8968b85037dbSmrg 8969302b15bdSmrg lt_aix_libpath_sed=' 8970302b15bdSmrg /Import File Strings/,/^$/ { 8971302b15bdSmrg /^0/ { 8972302b15bdSmrg s/^0 *\([^ ]*\) *$/\1/ 8973302b15bdSmrg p 8974302b15bdSmrg } 8975302b15bdSmrg }' 8976302b15bdSmrg lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8977302b15bdSmrg # Check for a 64-bit object if we didn't find anything. 8978302b15bdSmrg if test -z "$lt_cv_aix_libpath_"; then 8979302b15bdSmrg lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8980302b15bdSmrg fi 8981b85037dbSmrgfi 8982b85037dbSmrgrm -f core conftest.err conftest.$ac_objext \ 8983b85037dbSmrg conftest$ac_exeext conftest.$ac_ext 8984302b15bdSmrg if test -z "$lt_cv_aix_libpath_"; then 8985302b15bdSmrg lt_cv_aix_libpath_="/usr/lib:/lib" 8986302b15bdSmrg fi 8987302b15bdSmrg 8988302b15bdSmrgfi 8989302b15bdSmrg 8990302b15bdSmrg aix_libpath=$lt_cv_aix_libpath_ 8991302b15bdSmrgfi 8992b85037dbSmrg 8993b85037dbSmrg hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8994b85037dbSmrg 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" 8995b85037dbSmrg else 8996b85037dbSmrg if test "$host_cpu" = ia64; then 8997b85037dbSmrg hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8998b85037dbSmrg allow_undefined_flag="-z nodefs" 8999b85037dbSmrg 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" 9000b85037dbSmrg else 9001b85037dbSmrg # Determine the default libpath from the value encoded in an 9002b85037dbSmrg # empty executable. 9003302b15bdSmrg if test "${lt_cv_aix_libpath+set}" = set; then 9004302b15bdSmrg aix_libpath=$lt_cv_aix_libpath 9005302b15bdSmrgelse 9006302b15bdSmrg if ${lt_cv_aix_libpath_+:} false; then : 9007302b15bdSmrg $as_echo_n "(cached) " >&6 9008302b15bdSmrgelse 9009302b15bdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9010b85037dbSmrg/* end confdefs.h. */ 9011b85037dbSmrg 9012b85037dbSmrgint 9013b85037dbSmrgmain () 9014b85037dbSmrg{ 9015b85037dbSmrg 9016b85037dbSmrg ; 9017b85037dbSmrg return 0; 9018b85037dbSmrg} 9019b85037dbSmrg_ACEOF 9020b85037dbSmrgif ac_fn_c_try_link "$LINENO"; then : 9021b85037dbSmrg 9022302b15bdSmrg lt_aix_libpath_sed=' 9023302b15bdSmrg /Import File Strings/,/^$/ { 9024302b15bdSmrg /^0/ { 9025302b15bdSmrg s/^0 *\([^ ]*\) *$/\1/ 9026302b15bdSmrg p 9027302b15bdSmrg } 9028302b15bdSmrg }' 9029302b15bdSmrg lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9030302b15bdSmrg # Check for a 64-bit object if we didn't find anything. 9031302b15bdSmrg if test -z "$lt_cv_aix_libpath_"; then 9032302b15bdSmrg lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9033302b15bdSmrg fi 9034b85037dbSmrgfi 9035b85037dbSmrgrm -f core conftest.err conftest.$ac_objext \ 9036b85037dbSmrg conftest$ac_exeext conftest.$ac_ext 9037302b15bdSmrg if test -z "$lt_cv_aix_libpath_"; then 9038302b15bdSmrg lt_cv_aix_libpath_="/usr/lib:/lib" 9039302b15bdSmrg fi 9040302b15bdSmrg 9041302b15bdSmrgfi 9042302b15bdSmrg 9043302b15bdSmrg aix_libpath=$lt_cv_aix_libpath_ 9044302b15bdSmrgfi 9045b85037dbSmrg 9046b85037dbSmrg hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9047b85037dbSmrg # Warning - without using the other run time loading flags, 9048b85037dbSmrg # -berok will link without error, but may produce a broken library. 9049b85037dbSmrg no_undefined_flag=' ${wl}-bernotok' 9050b85037dbSmrg allow_undefined_flag=' ${wl}-berok' 9051b85037dbSmrg if test "$with_gnu_ld" = yes; then 9052b85037dbSmrg # We only use this code for GNU lds that support --whole-archive. 9053b85037dbSmrg whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9054b85037dbSmrg else 9055b85037dbSmrg # Exported symbols can be pulled into shared objects from archives 9056b85037dbSmrg whole_archive_flag_spec='$convenience' 9057b85037dbSmrg fi 9058b85037dbSmrg archive_cmds_need_lc=yes 9059b85037dbSmrg # This is similar to how AIX traditionally builds its shared libraries. 9060b85037dbSmrg 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' 9061b85037dbSmrg fi 9062b85037dbSmrg fi 9063b85037dbSmrg ;; 9064b85037dbSmrg 9065b85037dbSmrg amigaos*) 9066b85037dbSmrg case $host_cpu in 9067b85037dbSmrg powerpc) 9068b85037dbSmrg # see comment about AmigaOS4 .so support 9069b85037dbSmrg archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9070b85037dbSmrg archive_expsym_cmds='' 9071b85037dbSmrg ;; 9072b85037dbSmrg m68k) 9073b85037dbSmrg 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)' 9074b85037dbSmrg hardcode_libdir_flag_spec='-L$libdir' 9075b85037dbSmrg hardcode_minus_L=yes 9076b85037dbSmrg ;; 9077b85037dbSmrg esac 9078b85037dbSmrg ;; 9079b85037dbSmrg 9080b85037dbSmrg bsdi[45]*) 9081b85037dbSmrg export_dynamic_flag_spec=-rdynamic 9082b85037dbSmrg ;; 9083b85037dbSmrg 9084b85037dbSmrg cygwin* | mingw* | pw32* | cegcc*) 9085b85037dbSmrg # When not using gcc, we currently assume that we are using 9086b85037dbSmrg # Microsoft Visual C++. 9087b85037dbSmrg # hardcode_libdir_flag_spec is actually meaningless, as there is 9088b85037dbSmrg # no search path for DLLs. 9089302b15bdSmrg case $cc_basename in 9090302b15bdSmrg cl*) 9091302b15bdSmrg # Native MSVC 9092302b15bdSmrg hardcode_libdir_flag_spec=' ' 9093302b15bdSmrg allow_undefined_flag=unsupported 9094302b15bdSmrg always_export_symbols=yes 9095302b15bdSmrg file_list_spec='@' 9096302b15bdSmrg # Tell ltmain to make .lib files, not .a files. 9097302b15bdSmrg libext=lib 9098302b15bdSmrg # Tell ltmain to make .dll files, not .so files. 9099302b15bdSmrg shrext_cmds=".dll" 9100302b15bdSmrg # FIXME: Setting linknames here is a bad hack. 9101302b15bdSmrg archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9102302b15bdSmrg archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9103302b15bdSmrg sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9104302b15bdSmrg else 9105302b15bdSmrg sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9106302b15bdSmrg fi~ 9107302b15bdSmrg $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9108302b15bdSmrg linknames=' 9109302b15bdSmrg # The linker will not automatically build a static lib if we build a DLL. 9110302b15bdSmrg # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9111302b15bdSmrg enable_shared_with_static_runtimes=yes 911228515619Smrg exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9113302b15bdSmrg export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9114302b15bdSmrg # Don't use ranlib 9115302b15bdSmrg old_postinstall_cmds='chmod 644 $oldlib' 9116302b15bdSmrg postlink_cmds='lt_outputfile="@OUTPUT@"~ 9117302b15bdSmrg lt_tool_outputfile="@TOOL_OUTPUT@"~ 9118302b15bdSmrg case $lt_outputfile in 9119302b15bdSmrg *.exe|*.EXE) ;; 9120302b15bdSmrg *) 9121302b15bdSmrg lt_outputfile="$lt_outputfile.exe" 9122302b15bdSmrg lt_tool_outputfile="$lt_tool_outputfile.exe" 9123302b15bdSmrg ;; 9124302b15bdSmrg esac~ 9125302b15bdSmrg if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9126302b15bdSmrg $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9127302b15bdSmrg $RM "$lt_outputfile.manifest"; 9128302b15bdSmrg fi' 9129302b15bdSmrg ;; 9130302b15bdSmrg *) 9131302b15bdSmrg # Assume MSVC wrapper 9132302b15bdSmrg hardcode_libdir_flag_spec=' ' 9133302b15bdSmrg allow_undefined_flag=unsupported 9134302b15bdSmrg # Tell ltmain to make .lib files, not .a files. 9135302b15bdSmrg libext=lib 9136302b15bdSmrg # Tell ltmain to make .dll files, not .so files. 9137302b15bdSmrg shrext_cmds=".dll" 9138302b15bdSmrg # FIXME: Setting linknames here is a bad hack. 9139302b15bdSmrg archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9140302b15bdSmrg # The linker will automatically build a .lib file if we build a DLL. 9141302b15bdSmrg old_archive_from_new_cmds='true' 9142302b15bdSmrg # FIXME: Should let the user specify the lib program. 9143302b15bdSmrg old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9144302b15bdSmrg enable_shared_with_static_runtimes=yes 9145302b15bdSmrg ;; 9146302b15bdSmrg esac 9147b85037dbSmrg ;; 9148b85037dbSmrg 9149b85037dbSmrg darwin* | rhapsody*) 9150b85037dbSmrg 9151b85037dbSmrg 9152b85037dbSmrg archive_cmds_need_lc=no 9153b85037dbSmrg hardcode_direct=no 9154b85037dbSmrg hardcode_automatic=yes 9155b85037dbSmrg hardcode_shlibpath_var=unsupported 9156b85037dbSmrg if test "$lt_cv_ld_force_load" = "yes"; then 9157b85037dbSmrg 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\"`' 915828515619Smrg 9159b85037dbSmrg else 9160b85037dbSmrg whole_archive_flag_spec='' 9161b85037dbSmrg fi 9162b85037dbSmrg link_all_deplibs=yes 9163b85037dbSmrg allow_undefined_flag="$_lt_dar_allow_undefined" 9164b85037dbSmrg case $cc_basename in 9165b85037dbSmrg ifort*) _lt_dar_can_shared=yes ;; 9166b85037dbSmrg *) _lt_dar_can_shared=$GCC ;; 9167b85037dbSmrg esac 9168b85037dbSmrg if test "$_lt_dar_can_shared" = "yes"; then 9169b85037dbSmrg output_verbose_link_cmd=func_echo_all 9170b85037dbSmrg archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9171b85037dbSmrg module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9172b85037dbSmrg 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}" 9173b85037dbSmrg 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}" 9174b85037dbSmrg 9175b85037dbSmrg else 9176b85037dbSmrg ld_shlibs=no 9177b85037dbSmrg fi 9178b85037dbSmrg 9179b85037dbSmrg ;; 9180b85037dbSmrg 9181b85037dbSmrg dgux*) 9182b85037dbSmrg archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9183b85037dbSmrg hardcode_libdir_flag_spec='-L$libdir' 9184b85037dbSmrg hardcode_shlibpath_var=no 9185b85037dbSmrg ;; 9186b85037dbSmrg 9187b85037dbSmrg # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9188b85037dbSmrg # support. Future versions do this automatically, but an explicit c++rt0.o 9189b85037dbSmrg # does not break anything, and helps significantly (at the cost of a little 9190b85037dbSmrg # extra space). 9191b85037dbSmrg freebsd2.2*) 9192b85037dbSmrg archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9193b85037dbSmrg hardcode_libdir_flag_spec='-R$libdir' 9194b85037dbSmrg hardcode_direct=yes 9195b85037dbSmrg hardcode_shlibpath_var=no 9196b85037dbSmrg ;; 9197b85037dbSmrg 9198b85037dbSmrg # Unfortunately, older versions of FreeBSD 2 do not have this feature. 919928515619Smrg freebsd2.*) 9200b85037dbSmrg archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9201b85037dbSmrg hardcode_direct=yes 9202b85037dbSmrg hardcode_minus_L=yes 9203b85037dbSmrg hardcode_shlibpath_var=no 9204b85037dbSmrg ;; 9205b85037dbSmrg 9206b85037dbSmrg # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9207b85037dbSmrg freebsd* | dragonfly*) 9208302b15bdSmrg archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9209b85037dbSmrg hardcode_libdir_flag_spec='-R$libdir' 9210b85037dbSmrg hardcode_direct=yes 9211b85037dbSmrg hardcode_shlibpath_var=no 9212b85037dbSmrg ;; 9213b85037dbSmrg 9214b85037dbSmrg hpux9*) 9215b85037dbSmrg if test "$GCC" = yes; then 9216302b15bdSmrg 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' 9217b85037dbSmrg else 9218b85037dbSmrg 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' 9219b85037dbSmrg fi 9220b85037dbSmrg hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9221b85037dbSmrg hardcode_libdir_separator=: 9222b85037dbSmrg hardcode_direct=yes 9223b85037dbSmrg 9224b85037dbSmrg # hardcode_minus_L: Not really in the search PATH, 9225b85037dbSmrg # but as the default location of the library. 9226b85037dbSmrg hardcode_minus_L=yes 9227b85037dbSmrg export_dynamic_flag_spec='${wl}-E' 9228b85037dbSmrg ;; 9229b85037dbSmrg 9230b85037dbSmrg hpux10*) 9231b85037dbSmrg if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9232302b15bdSmrg archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9233b85037dbSmrg else 9234b85037dbSmrg archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9235b85037dbSmrg fi 9236b85037dbSmrg if test "$with_gnu_ld" = no; then 9237b85037dbSmrg hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9238b85037dbSmrg hardcode_libdir_separator=: 9239b85037dbSmrg hardcode_direct=yes 9240b85037dbSmrg hardcode_direct_absolute=yes 9241b85037dbSmrg export_dynamic_flag_spec='${wl}-E' 9242b85037dbSmrg # hardcode_minus_L: Not really in the search PATH, 9243b85037dbSmrg # but as the default location of the library. 9244b85037dbSmrg hardcode_minus_L=yes 9245b85037dbSmrg fi 9246b85037dbSmrg ;; 9247b85037dbSmrg 9248b85037dbSmrg hpux11*) 9249b85037dbSmrg if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9250b85037dbSmrg case $host_cpu in 9251b85037dbSmrg hppa*64*) 9252b85037dbSmrg archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9253b85037dbSmrg ;; 9254b85037dbSmrg ia64*) 9255302b15bdSmrg archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9256b85037dbSmrg ;; 9257b85037dbSmrg *) 9258302b15bdSmrg archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9259b85037dbSmrg ;; 9260b85037dbSmrg esac 9261b85037dbSmrg else 9262b85037dbSmrg case $host_cpu in 9263b85037dbSmrg hppa*64*) 9264b85037dbSmrg archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9265b85037dbSmrg ;; 9266b85037dbSmrg ia64*) 9267b85037dbSmrg archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9268b85037dbSmrg ;; 9269b85037dbSmrg *) 9270b85037dbSmrg 9271b85037dbSmrg # Older versions of the 11.00 compiler do not understand -b yet 9272b85037dbSmrg # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9273b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9274b85037dbSmrg$as_echo_n "checking if $CC understands -b... " >&6; } 9275302b15bdSmrgif ${lt_cv_prog_compiler__b+:} false; then : 9276b85037dbSmrg $as_echo_n "(cached) " >&6 9277b85037dbSmrgelse 9278b85037dbSmrg lt_cv_prog_compiler__b=no 9279b85037dbSmrg save_LDFLAGS="$LDFLAGS" 9280b85037dbSmrg LDFLAGS="$LDFLAGS -b" 9281b85037dbSmrg echo "$lt_simple_link_test_code" > conftest.$ac_ext 9282b85037dbSmrg if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9283b85037dbSmrg # The linker can only warn and ignore the option if not recognized 9284b85037dbSmrg # So say no if there are warnings 9285b85037dbSmrg if test -s conftest.err; then 9286b85037dbSmrg # Append any errors to the config.log. 9287b85037dbSmrg cat conftest.err 1>&5 9288b85037dbSmrg $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9289b85037dbSmrg $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9290b85037dbSmrg if diff conftest.exp conftest.er2 >/dev/null; then 9291b85037dbSmrg lt_cv_prog_compiler__b=yes 9292b85037dbSmrg fi 9293b85037dbSmrg else 9294b85037dbSmrg lt_cv_prog_compiler__b=yes 9295b85037dbSmrg fi 9296b85037dbSmrg fi 9297b85037dbSmrg $RM -r conftest* 9298b85037dbSmrg LDFLAGS="$save_LDFLAGS" 9299b85037dbSmrg 9300b85037dbSmrgfi 9301b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9302b85037dbSmrg$as_echo "$lt_cv_prog_compiler__b" >&6; } 9303b85037dbSmrg 9304b85037dbSmrgif test x"$lt_cv_prog_compiler__b" = xyes; then 9305b85037dbSmrg archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9306b85037dbSmrgelse 9307b85037dbSmrg archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9308b85037dbSmrgfi 9309b85037dbSmrg 9310b85037dbSmrg ;; 9311b85037dbSmrg esac 9312b85037dbSmrg fi 9313b85037dbSmrg if test "$with_gnu_ld" = no; then 9314b85037dbSmrg hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9315b85037dbSmrg hardcode_libdir_separator=: 9316b85037dbSmrg 9317b85037dbSmrg case $host_cpu in 9318b85037dbSmrg hppa*64*|ia64*) 9319b85037dbSmrg hardcode_direct=no 9320b85037dbSmrg hardcode_shlibpath_var=no 9321b85037dbSmrg ;; 9322b85037dbSmrg *) 9323b85037dbSmrg hardcode_direct=yes 9324b85037dbSmrg hardcode_direct_absolute=yes 9325b85037dbSmrg export_dynamic_flag_spec='${wl}-E' 9326b85037dbSmrg 9327b85037dbSmrg # hardcode_minus_L: Not really in the search PATH, 9328b85037dbSmrg # but as the default location of the library. 9329b85037dbSmrg hardcode_minus_L=yes 9330b85037dbSmrg ;; 9331b85037dbSmrg esac 9332b85037dbSmrg fi 9333b85037dbSmrg ;; 9334b85037dbSmrg 9335b85037dbSmrg irix5* | irix6* | nonstopux*) 9336b85037dbSmrg if test "$GCC" = yes; then 9337302b15bdSmrg 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' 9338b85037dbSmrg # Try to use the -exported_symbol ld option, if it does not 9339b85037dbSmrg # work, assume that -exports_file does not work either and 9340b85037dbSmrg # implicitly export all symbols. 9341302b15bdSmrg # This should be the same for all languages, so no per-tag cache variable. 9342302b15bdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9343302b15bdSmrg$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9344302b15bdSmrgif ${lt_cv_irix_exported_symbol+:} false; then : 9345302b15bdSmrg $as_echo_n "(cached) " >&6 9346302b15bdSmrgelse 9347302b15bdSmrg save_LDFLAGS="$LDFLAGS" 9348302b15bdSmrg LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9349302b15bdSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9350b85037dbSmrg/* end confdefs.h. */ 9351302b15bdSmrgint foo (void) { return 0; } 9352b85037dbSmrg_ACEOF 9353b85037dbSmrgif ac_fn_c_try_link "$LINENO"; then : 9354302b15bdSmrg lt_cv_irix_exported_symbol=yes 9355302b15bdSmrgelse 9356302b15bdSmrg lt_cv_irix_exported_symbol=no 9357b85037dbSmrgfi 9358b85037dbSmrgrm -f core conftest.err conftest.$ac_objext \ 9359b85037dbSmrg conftest$ac_exeext conftest.$ac_ext 9360302b15bdSmrg LDFLAGS="$save_LDFLAGS" 9361302b15bdSmrgfi 9362302b15bdSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9363302b15bdSmrg$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9364302b15bdSmrg if test "$lt_cv_irix_exported_symbol" = yes; then 9365302b15bdSmrg 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' 9366302b15bdSmrg fi 9367b85037dbSmrg else 9368b85037dbSmrg 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' 9369b85037dbSmrg 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' 9370b85037dbSmrg fi 9371b85037dbSmrg archive_cmds_need_lc='no' 9372b85037dbSmrg hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9373b85037dbSmrg hardcode_libdir_separator=: 9374b85037dbSmrg inherit_rpath=yes 9375b85037dbSmrg link_all_deplibs=yes 9376b85037dbSmrg ;; 9377b85037dbSmrg 9378b85037dbSmrg netbsd*) 9379b85037dbSmrg if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9380b85037dbSmrg archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9381b85037dbSmrg else 9382b85037dbSmrg archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9383b85037dbSmrg fi 9384b85037dbSmrg hardcode_libdir_flag_spec='-R$libdir' 9385b85037dbSmrg hardcode_direct=yes 9386b85037dbSmrg hardcode_shlibpath_var=no 9387b85037dbSmrg ;; 9388b85037dbSmrg 9389b85037dbSmrg newsos6) 9390b85037dbSmrg archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9391b85037dbSmrg hardcode_direct=yes 9392b85037dbSmrg hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9393b85037dbSmrg hardcode_libdir_separator=: 9394b85037dbSmrg hardcode_shlibpath_var=no 9395b85037dbSmrg ;; 9396b85037dbSmrg 9397b85037dbSmrg *nto* | *qnx*) 9398b85037dbSmrg ;; 9399b85037dbSmrg 9400b85037dbSmrg openbsd*) 9401b85037dbSmrg if test -f /usr/libexec/ld.so; then 9402b85037dbSmrg hardcode_direct=yes 9403b85037dbSmrg hardcode_shlibpath_var=no 9404b85037dbSmrg hardcode_direct_absolute=yes 9405b85037dbSmrg if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9406b85037dbSmrg archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9407b85037dbSmrg archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9408b85037dbSmrg hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9409b85037dbSmrg export_dynamic_flag_spec='${wl}-E' 9410b85037dbSmrg else 9411b85037dbSmrg case $host_os in 9412b85037dbSmrg openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9413b85037dbSmrg archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9414b85037dbSmrg hardcode_libdir_flag_spec='-R$libdir' 9415b85037dbSmrg ;; 9416b85037dbSmrg *) 9417b85037dbSmrg archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9418b85037dbSmrg hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9419b85037dbSmrg ;; 9420b85037dbSmrg esac 9421b85037dbSmrg fi 9422b85037dbSmrg else 9423b85037dbSmrg ld_shlibs=no 9424b85037dbSmrg fi 9425b85037dbSmrg ;; 9426b85037dbSmrg 9427b85037dbSmrg os2*) 9428b85037dbSmrg hardcode_libdir_flag_spec='-L$libdir' 9429b85037dbSmrg hardcode_minus_L=yes 9430b85037dbSmrg allow_undefined_flag=unsupported 9431b85037dbSmrg 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' 9432b85037dbSmrg old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9433b85037dbSmrg ;; 9434b85037dbSmrg 9435b85037dbSmrg osf3*) 9436b85037dbSmrg if test "$GCC" = yes; then 9437b85037dbSmrg allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9438b85037dbSmrg 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' 9439b85037dbSmrg else 9440b85037dbSmrg allow_undefined_flag=' -expect_unresolved \*' 9441b85037dbSmrg 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' 9442b85037dbSmrg fi 9443b85037dbSmrg archive_cmds_need_lc='no' 9444b85037dbSmrg hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9445b85037dbSmrg hardcode_libdir_separator=: 9446b85037dbSmrg ;; 9447b85037dbSmrg 9448b85037dbSmrg osf4* | osf5*) # as osf3* with the addition of -msym flag 9449b85037dbSmrg if test "$GCC" = yes; then 9450b85037dbSmrg allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9451302b15bdSmrg 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' 9452b85037dbSmrg hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9453b85037dbSmrg else 9454b85037dbSmrg allow_undefined_flag=' -expect_unresolved \*' 9455b85037dbSmrg 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' 9456b85037dbSmrg 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~ 9457b85037dbSmrg $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' 9458b85037dbSmrg 9459b85037dbSmrg # Both c and cxx compiler support -rpath directly 9460b85037dbSmrg hardcode_libdir_flag_spec='-rpath $libdir' 9461b85037dbSmrg fi 9462b85037dbSmrg archive_cmds_need_lc='no' 9463b85037dbSmrg hardcode_libdir_separator=: 9464b85037dbSmrg ;; 9465b85037dbSmrg 9466b85037dbSmrg solaris*) 9467b85037dbSmrg no_undefined_flag=' -z defs' 9468b85037dbSmrg if test "$GCC" = yes; then 9469b85037dbSmrg wlarc='${wl}' 9470302b15bdSmrg archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9471b85037dbSmrg archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9472302b15bdSmrg $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' 9473b85037dbSmrg else 9474b85037dbSmrg case `$CC -V 2>&1` in 9475b85037dbSmrg *"Compilers 5.0"*) 9476b85037dbSmrg wlarc='' 9477b85037dbSmrg archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9478b85037dbSmrg archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9479b85037dbSmrg $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9480b85037dbSmrg ;; 9481b85037dbSmrg *) 9482b85037dbSmrg wlarc='${wl}' 9483b85037dbSmrg archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9484b85037dbSmrg archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9485b85037dbSmrg $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9486b85037dbSmrg ;; 9487b85037dbSmrg esac 9488b85037dbSmrg fi 9489b85037dbSmrg hardcode_libdir_flag_spec='-R$libdir' 9490b85037dbSmrg hardcode_shlibpath_var=no 9491b85037dbSmrg case $host_os in 9492b85037dbSmrg solaris2.[0-5] | solaris2.[0-5].*) ;; 9493b85037dbSmrg *) 9494b85037dbSmrg # The compiler driver will combine and reorder linker options, 9495b85037dbSmrg # but understands `-z linker_flag'. GCC discards it without `$wl', 9496b85037dbSmrg # but is careful enough not to reorder. 9497b85037dbSmrg # Supported since Solaris 2.6 (maybe 2.5.1?) 9498b85037dbSmrg if test "$GCC" = yes; then 9499b85037dbSmrg whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9500b85037dbSmrg else 9501b85037dbSmrg whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9502b85037dbSmrg fi 9503b85037dbSmrg ;; 9504b85037dbSmrg esac 9505b85037dbSmrg link_all_deplibs=yes 9506b85037dbSmrg ;; 9507b85037dbSmrg 9508b85037dbSmrg sunos4*) 9509b85037dbSmrg if test "x$host_vendor" = xsequent; then 9510b85037dbSmrg # Use $CC to link under sequent, because it throws in some extra .o 9511b85037dbSmrg # files that make .init and .fini sections work. 9512b85037dbSmrg archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9513b85037dbSmrg else 9514b85037dbSmrg archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9515b85037dbSmrg fi 9516b85037dbSmrg hardcode_libdir_flag_spec='-L$libdir' 9517b85037dbSmrg hardcode_direct=yes 9518b85037dbSmrg hardcode_minus_L=yes 9519b85037dbSmrg hardcode_shlibpath_var=no 9520b85037dbSmrg ;; 9521b85037dbSmrg 9522b85037dbSmrg sysv4) 9523b85037dbSmrg case $host_vendor in 9524b85037dbSmrg sni) 9525b85037dbSmrg archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9526b85037dbSmrg hardcode_direct=yes # is this really true??? 9527b85037dbSmrg ;; 9528b85037dbSmrg siemens) 9529b85037dbSmrg ## LD is ld it makes a PLAMLIB 9530b85037dbSmrg ## CC just makes a GrossModule. 9531b85037dbSmrg archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9532b85037dbSmrg reload_cmds='$CC -r -o $output$reload_objs' 9533b85037dbSmrg hardcode_direct=no 9534b85037dbSmrg ;; 9535b85037dbSmrg motorola) 9536b85037dbSmrg archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9537b85037dbSmrg hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9538b85037dbSmrg ;; 9539b85037dbSmrg esac 9540b85037dbSmrg runpath_var='LD_RUN_PATH' 9541b85037dbSmrg hardcode_shlibpath_var=no 9542b85037dbSmrg ;; 9543b85037dbSmrg 9544b85037dbSmrg sysv4.3*) 9545b85037dbSmrg archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9546b85037dbSmrg hardcode_shlibpath_var=no 9547b85037dbSmrg export_dynamic_flag_spec='-Bexport' 9548b85037dbSmrg ;; 9549b85037dbSmrg 9550b85037dbSmrg sysv4*MP*) 9551b85037dbSmrg if test -d /usr/nec; then 9552b85037dbSmrg archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9553b85037dbSmrg hardcode_shlibpath_var=no 9554b85037dbSmrg runpath_var=LD_RUN_PATH 9555b85037dbSmrg hardcode_runpath_var=yes 9556b85037dbSmrg ld_shlibs=yes 9557b85037dbSmrg fi 9558b85037dbSmrg ;; 9559b85037dbSmrg 9560b85037dbSmrg sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9561b85037dbSmrg no_undefined_flag='${wl}-z,text' 9562b85037dbSmrg archive_cmds_need_lc=no 9563b85037dbSmrg hardcode_shlibpath_var=no 9564b85037dbSmrg runpath_var='LD_RUN_PATH' 9565b85037dbSmrg 9566b85037dbSmrg if test "$GCC" = yes; then 9567b85037dbSmrg archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9568b85037dbSmrg archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9569b85037dbSmrg else 9570b85037dbSmrg archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9571b85037dbSmrg archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9572b85037dbSmrg fi 9573b85037dbSmrg ;; 9574b85037dbSmrg 9575b85037dbSmrg sysv5* | sco3.2v5* | sco5v6*) 9576b85037dbSmrg # Note: We can NOT use -z defs as we might desire, because we do not 9577b85037dbSmrg # link with -lc, and that would cause any symbols used from libc to 9578b85037dbSmrg # always be unresolved, which means just about no library would 9579b85037dbSmrg # ever link correctly. If we're not using GNU ld we use -z text 9580b85037dbSmrg # though, which does catch some bad symbols but isn't as heavy-handed 9581b85037dbSmrg # as -z defs. 9582b85037dbSmrg no_undefined_flag='${wl}-z,text' 9583b85037dbSmrg allow_undefined_flag='${wl}-z,nodefs' 9584b85037dbSmrg archive_cmds_need_lc=no 9585b85037dbSmrg hardcode_shlibpath_var=no 9586b85037dbSmrg hardcode_libdir_flag_spec='${wl}-R,$libdir' 9587b85037dbSmrg hardcode_libdir_separator=':' 9588b85037dbSmrg link_all_deplibs=yes 9589b85037dbSmrg export_dynamic_flag_spec='${wl}-Bexport' 9590b85037dbSmrg runpath_var='LD_RUN_PATH' 9591b85037dbSmrg 9592b85037dbSmrg if test "$GCC" = yes; then 9593b85037dbSmrg archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9594b85037dbSmrg archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9595b85037dbSmrg else 9596b85037dbSmrg archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9597b85037dbSmrg archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9598b85037dbSmrg fi 9599b85037dbSmrg ;; 9600b85037dbSmrg 9601b85037dbSmrg uts4*) 9602b85037dbSmrg archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9603b85037dbSmrg hardcode_libdir_flag_spec='-L$libdir' 9604b85037dbSmrg hardcode_shlibpath_var=no 9605b85037dbSmrg ;; 9606b85037dbSmrg 9607b85037dbSmrg *) 9608b85037dbSmrg ld_shlibs=no 9609b85037dbSmrg ;; 9610b85037dbSmrg esac 9611b85037dbSmrg 9612b85037dbSmrg if test x$host_vendor = xsni; then 9613b85037dbSmrg case $host in 9614b85037dbSmrg sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9615b85037dbSmrg export_dynamic_flag_spec='${wl}-Blargedynsym' 9616b85037dbSmrg ;; 9617b85037dbSmrg esac 9618b85037dbSmrg fi 9619b85037dbSmrg fi 9620b85037dbSmrg 9621b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9622b85037dbSmrg$as_echo "$ld_shlibs" >&6; } 9623b85037dbSmrgtest "$ld_shlibs" = no && can_build_shared=no 9624b85037dbSmrg 9625b85037dbSmrgwith_gnu_ld=$with_gnu_ld 9626b85037dbSmrg 9627b85037dbSmrg 9628b85037dbSmrg 9629b85037dbSmrg 9630b85037dbSmrg 9631b85037dbSmrg 9632b85037dbSmrg 9633b85037dbSmrg 9634b85037dbSmrg 9635b85037dbSmrg 9636b85037dbSmrg 9637b85037dbSmrg 9638b85037dbSmrg 9639b85037dbSmrg 9640b85037dbSmrg 9641b85037dbSmrg# 9642b85037dbSmrg# Do we need to explicitly link libc? 9643b85037dbSmrg# 9644b85037dbSmrgcase "x$archive_cmds_need_lc" in 9645b85037dbSmrgx|xyes) 9646b85037dbSmrg # Assume -lc should be added 9647b85037dbSmrg archive_cmds_need_lc=yes 9648b85037dbSmrg 9649b85037dbSmrg if test "$enable_shared" = yes && test "$GCC" = yes; then 9650b85037dbSmrg case $archive_cmds in 9651b85037dbSmrg *'~'*) 9652b85037dbSmrg # FIXME: we may have to deal with multi-command sequences. 9653b85037dbSmrg ;; 9654b85037dbSmrg '$CC '*) 9655b85037dbSmrg # Test whether the compiler implicitly links with -lc since on some 9656b85037dbSmrg # systems, -lgcc has to come before -lc. If gcc already passes -lc 9657b85037dbSmrg # to ld, don't add -lc before -lgcc. 9658b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9659b85037dbSmrg$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9660302b15bdSmrgif ${lt_cv_archive_cmds_need_lc+:} false; then : 9661b85037dbSmrg $as_echo_n "(cached) " >&6 9662b85037dbSmrgelse 9663b85037dbSmrg $RM conftest* 9664b85037dbSmrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9665b85037dbSmrg 9666b85037dbSmrg if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9667b85037dbSmrg (eval $ac_compile) 2>&5 9668b85037dbSmrg ac_status=$? 9669b85037dbSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9670b85037dbSmrg test $ac_status = 0; } 2>conftest.err; then 9671b85037dbSmrg soname=conftest 9672b85037dbSmrg lib=conftest 9673b85037dbSmrg libobjs=conftest.$ac_objext 9674b85037dbSmrg deplibs= 9675b85037dbSmrg wl=$lt_prog_compiler_wl 9676b85037dbSmrg pic_flag=$lt_prog_compiler_pic 9677b85037dbSmrg compiler_flags=-v 9678b85037dbSmrg linker_flags=-v 9679b85037dbSmrg verstring= 9680b85037dbSmrg output_objdir=. 9681b85037dbSmrg libname=conftest 9682b85037dbSmrg lt_save_allow_undefined_flag=$allow_undefined_flag 9683b85037dbSmrg allow_undefined_flag= 9684b85037dbSmrg if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9685b85037dbSmrg (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9686b85037dbSmrg ac_status=$? 9687b85037dbSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9688b85037dbSmrg test $ac_status = 0; } 9689b85037dbSmrg then 9690b85037dbSmrg lt_cv_archive_cmds_need_lc=no 9691b85037dbSmrg else 9692b85037dbSmrg lt_cv_archive_cmds_need_lc=yes 9693b85037dbSmrg fi 9694b85037dbSmrg allow_undefined_flag=$lt_save_allow_undefined_flag 9695b85037dbSmrg else 9696b85037dbSmrg cat conftest.err 1>&5 9697b85037dbSmrg fi 9698b85037dbSmrg $RM conftest* 9699b85037dbSmrg 9700b85037dbSmrgfi 9701b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9702b85037dbSmrg$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9703b85037dbSmrg archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9704b85037dbSmrg ;; 9705b85037dbSmrg esac 9706b85037dbSmrg fi 9707b85037dbSmrg ;; 9708b85037dbSmrgesac 9709b85037dbSmrg 9710b85037dbSmrg 9711b85037dbSmrg 9712b85037dbSmrg 9713b85037dbSmrg 9714b85037dbSmrg 9715b85037dbSmrg 9716b85037dbSmrg 9717b85037dbSmrg 9718b85037dbSmrg 9719b85037dbSmrg 9720b85037dbSmrg 9721b85037dbSmrg 9722b85037dbSmrg 9723b85037dbSmrg 9724b85037dbSmrg 9725b85037dbSmrg 9726b85037dbSmrg 9727b85037dbSmrg 9728b85037dbSmrg 9729b85037dbSmrg 9730b85037dbSmrg 9731b85037dbSmrg 9732b85037dbSmrg 9733b85037dbSmrg 9734b85037dbSmrg 9735b85037dbSmrg 9736b85037dbSmrg 9737b85037dbSmrg 9738b85037dbSmrg 9739b85037dbSmrg 9740b85037dbSmrg 9741b85037dbSmrg 9742b85037dbSmrg 9743b85037dbSmrg 9744b85037dbSmrg 9745b85037dbSmrg 9746b85037dbSmrg 9747b85037dbSmrg 9748b85037dbSmrg 9749b85037dbSmrg 9750b85037dbSmrg 9751b85037dbSmrg 9752b85037dbSmrg 9753b85037dbSmrg 9754b85037dbSmrg 9755b85037dbSmrg 9756b85037dbSmrg 9757b85037dbSmrg 9758b85037dbSmrg 9759b85037dbSmrg 9760b85037dbSmrg 9761b85037dbSmrg 9762b85037dbSmrg 9763b85037dbSmrg 9764b85037dbSmrg 9765b85037dbSmrg 9766b85037dbSmrg 9767b85037dbSmrg 9768b85037dbSmrg 9769b85037dbSmrg 9770b85037dbSmrg 9771b85037dbSmrg 9772b85037dbSmrg 9773b85037dbSmrg 9774b85037dbSmrg 9775b85037dbSmrg 9776b85037dbSmrg 9777b85037dbSmrg 9778b85037dbSmrg 9779b85037dbSmrg 9780b85037dbSmrg 9781b85037dbSmrg 9782b85037dbSmrg 9783b85037dbSmrg 9784b85037dbSmrg 9785b85037dbSmrg 9786b85037dbSmrg 9787b85037dbSmrg 9788b85037dbSmrg 9789b85037dbSmrg 9790b85037dbSmrg 9791b85037dbSmrg 9792b85037dbSmrg 9793b85037dbSmrg 9794b85037dbSmrg 9795b85037dbSmrg 9796b85037dbSmrg 9797b85037dbSmrg 9798b85037dbSmrg 9799b85037dbSmrg 9800b85037dbSmrg 9801b85037dbSmrg 9802b85037dbSmrg 9803b85037dbSmrg 9804b85037dbSmrg 9805b85037dbSmrg 9806b85037dbSmrg 9807b85037dbSmrg 9808b85037dbSmrg 9809b85037dbSmrg 9810b85037dbSmrg 9811b85037dbSmrg 9812b85037dbSmrg 9813b85037dbSmrg 9814b85037dbSmrg 9815b85037dbSmrg 9816b85037dbSmrg 9817b85037dbSmrg 9818b85037dbSmrg 9819b85037dbSmrg 9820b85037dbSmrg 9821b85037dbSmrg 9822b85037dbSmrg 9823b85037dbSmrg 9824b85037dbSmrg 9825b85037dbSmrg 9826b85037dbSmrg 9827b85037dbSmrg 9828b85037dbSmrg 9829b85037dbSmrg 9830b85037dbSmrg 9831b85037dbSmrg 9832b85037dbSmrg 9833b85037dbSmrg 9834b85037dbSmrg 9835b85037dbSmrg 9836b85037dbSmrg 9837b85037dbSmrg 9838b85037dbSmrg 9839b85037dbSmrg 9840b85037dbSmrg 9841b85037dbSmrg 9842b85037dbSmrg 9843b85037dbSmrg 9844b85037dbSmrg 9845b85037dbSmrg 9846b85037dbSmrg 9847b85037dbSmrg 9848b85037dbSmrg 9849b85037dbSmrg 9850b85037dbSmrg 9851b85037dbSmrg 9852b85037dbSmrg 9853b85037dbSmrg 9854b85037dbSmrg 9855b85037dbSmrg 9856b85037dbSmrg 9857b85037dbSmrg 9858b85037dbSmrg 9859b85037dbSmrg 9860b85037dbSmrg 9861b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9862b85037dbSmrg$as_echo_n "checking dynamic linker characteristics... " >&6; } 9863b85037dbSmrg 9864b85037dbSmrgif test "$GCC" = yes; then 9865b85037dbSmrg case $host_os in 9866b85037dbSmrg darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9867b85037dbSmrg *) lt_awk_arg="/^libraries:/" ;; 9868b85037dbSmrg esac 9869b85037dbSmrg case $host_os in 9870b85037dbSmrg mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 9871b85037dbSmrg *) lt_sed_strip_eq="s,=/,/,g" ;; 9872b85037dbSmrg esac 9873b85037dbSmrg lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 9874b85037dbSmrg case $lt_search_path_spec in 9875b85037dbSmrg *\;*) 9876b85037dbSmrg # if the path contains ";" then we assume it to be the separator 9877b85037dbSmrg # otherwise default to the standard path separator (i.e. ":") - it is 9878b85037dbSmrg # assumed that no part of a normal pathname contains ";" but that should 9879b85037dbSmrg # okay in the real world where ";" in dirpaths is itself problematic. 9880b85037dbSmrg lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 9881b85037dbSmrg ;; 9882b85037dbSmrg *) 9883b85037dbSmrg lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 9884b85037dbSmrg ;; 9885b85037dbSmrg esac 9886b85037dbSmrg # Ok, now we have the path, separated by spaces, we can step through it 9887b85037dbSmrg # and add multilib dir if necessary. 9888b85037dbSmrg lt_tmp_lt_search_path_spec= 9889b85037dbSmrg lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9890b85037dbSmrg for lt_sys_path in $lt_search_path_spec; do 9891b85037dbSmrg if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9892b85037dbSmrg lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9893b85037dbSmrg else 9894b85037dbSmrg test -d "$lt_sys_path" && \ 9895b85037dbSmrg lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9896b85037dbSmrg fi 9897b85037dbSmrg done 9898b85037dbSmrg lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 9899b85037dbSmrgBEGIN {RS=" "; FS="/|\n";} { 9900b85037dbSmrg lt_foo=""; 9901b85037dbSmrg lt_count=0; 9902b85037dbSmrg for (lt_i = NF; lt_i > 0; lt_i--) { 9903b85037dbSmrg if ($lt_i != "" && $lt_i != ".") { 9904b85037dbSmrg if ($lt_i == "..") { 9905b85037dbSmrg lt_count++; 9906b85037dbSmrg } else { 9907b85037dbSmrg if (lt_count == 0) { 9908b85037dbSmrg lt_foo="/" $lt_i lt_foo; 9909b85037dbSmrg } else { 9910b85037dbSmrg lt_count--; 9911b85037dbSmrg } 9912b85037dbSmrg } 9913b85037dbSmrg } 9914b85037dbSmrg } 9915b85037dbSmrg if (lt_foo != "") { lt_freq[lt_foo]++; } 9916b85037dbSmrg if (lt_freq[lt_foo] == 1) { print lt_foo; } 9917b85037dbSmrg}'` 9918b85037dbSmrg # AWK program above erroneously prepends '/' to C:/dos/paths 9919b85037dbSmrg # for these hosts. 9920b85037dbSmrg case $host_os in 9921b85037dbSmrg mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 9922b85037dbSmrg $SED 's,/\([A-Za-z]:\),\1,g'` ;; 9923b85037dbSmrg esac 9924b85037dbSmrg sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 9925b85037dbSmrgelse 9926b85037dbSmrg sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9927b85037dbSmrgfi 9928b85037dbSmrglibrary_names_spec= 9929b85037dbSmrglibname_spec='lib$name' 9930b85037dbSmrgsoname_spec= 9931b85037dbSmrgshrext_cmds=".so" 9932b85037dbSmrgpostinstall_cmds= 9933b85037dbSmrgpostuninstall_cmds= 9934b85037dbSmrgfinish_cmds= 9935b85037dbSmrgfinish_eval= 9936b85037dbSmrgshlibpath_var= 9937b85037dbSmrgshlibpath_overrides_runpath=unknown 9938b85037dbSmrgversion_type=none 9939b85037dbSmrgdynamic_linker="$host_os ld.so" 9940b85037dbSmrgsys_lib_dlsearch_path_spec="/lib /usr/lib" 9941b85037dbSmrgneed_lib_prefix=unknown 9942b85037dbSmrghardcode_into_libs=no 9943b85037dbSmrg 9944b85037dbSmrg# when you set need_version to no, make sure it does not cause -set_version 9945b85037dbSmrg# flags to be left without arguments 9946b85037dbSmrgneed_version=unknown 9947b85037dbSmrg 9948b85037dbSmrgcase $host_os in 9949b85037dbSmrgaix3*) 995028515619Smrg version_type=linux # correct to gnu/linux during the next big refactor 9951b85037dbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9952b85037dbSmrg shlibpath_var=LIBPATH 9953b85037dbSmrg 9954b85037dbSmrg # AIX 3 has no versioning support, so we append a major version to the name. 9955b85037dbSmrg soname_spec='${libname}${release}${shared_ext}$major' 9956b85037dbSmrg ;; 9957b85037dbSmrg 9958b85037dbSmrgaix[4-9]*) 995928515619Smrg version_type=linux # correct to gnu/linux during the next big refactor 9960b85037dbSmrg need_lib_prefix=no 9961b85037dbSmrg need_version=no 9962b85037dbSmrg hardcode_into_libs=yes 9963b85037dbSmrg if test "$host_cpu" = ia64; then 9964b85037dbSmrg # AIX 5 supports IA64 9965b85037dbSmrg library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9966b85037dbSmrg shlibpath_var=LD_LIBRARY_PATH 9967b85037dbSmrg else 9968b85037dbSmrg # With GCC up to 2.95.x, collect2 would create an import file 9969b85037dbSmrg # for dependence libraries. The import file would start with 9970b85037dbSmrg # the line `#! .'. This would cause the generated library to 9971b85037dbSmrg # depend on `.', always an invalid library. This was fixed in 9972b85037dbSmrg # development snapshots of GCC prior to 3.0. 9973b85037dbSmrg case $host_os in 9974b85037dbSmrg aix4 | aix4.[01] | aix4.[01].*) 9975b85037dbSmrg if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9976b85037dbSmrg echo ' yes ' 9977b85037dbSmrg echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9978b85037dbSmrg : 9979b85037dbSmrg else 9980b85037dbSmrg can_build_shared=no 9981b85037dbSmrg fi 9982b85037dbSmrg ;; 9983b85037dbSmrg esac 9984b85037dbSmrg # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9985b85037dbSmrg # soname into executable. Probably we can add versioning support to 9986b85037dbSmrg # collect2, so additional links can be useful in future. 9987b85037dbSmrg if test "$aix_use_runtimelinking" = yes; then 9988b85037dbSmrg # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9989b85037dbSmrg # instead of lib<name>.a to let people know that these are not 9990b85037dbSmrg # typical AIX shared libraries. 9991b85037dbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9992b85037dbSmrg else 9993b85037dbSmrg # We preserve .a as extension for shared libraries through AIX4.2 9994b85037dbSmrg # and later when we are not doing run time linking. 9995b85037dbSmrg library_names_spec='${libname}${release}.a $libname.a' 9996b85037dbSmrg soname_spec='${libname}${release}${shared_ext}$major' 9997b85037dbSmrg fi 9998b85037dbSmrg shlibpath_var=LIBPATH 9999b85037dbSmrg fi 10000b85037dbSmrg ;; 10001b85037dbSmrg 10002b85037dbSmrgamigaos*) 10003b85037dbSmrg case $host_cpu in 10004b85037dbSmrg powerpc) 10005b85037dbSmrg # Since July 2007 AmigaOS4 officially supports .so libraries. 10006b85037dbSmrg # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10007b85037dbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10008b85037dbSmrg ;; 10009b85037dbSmrg m68k) 10010b85037dbSmrg library_names_spec='$libname.ixlibrary $libname.a' 10011b85037dbSmrg # Create ${libname}_ixlibrary.a entries in /sys/libs. 10012b85037dbSmrg 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' 10013b85037dbSmrg ;; 10014b85037dbSmrg esac 10015b85037dbSmrg ;; 10016b85037dbSmrg 10017b85037dbSmrgbeos*) 10018b85037dbSmrg library_names_spec='${libname}${shared_ext}' 10019b85037dbSmrg dynamic_linker="$host_os ld.so" 10020b85037dbSmrg shlibpath_var=LIBRARY_PATH 10021b85037dbSmrg ;; 10022b85037dbSmrg 10023b85037dbSmrgbsdi[45]*) 1002428515619Smrg version_type=linux # correct to gnu/linux during the next big refactor 10025b85037dbSmrg need_version=no 10026b85037dbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10027b85037dbSmrg soname_spec='${libname}${release}${shared_ext}$major' 10028b85037dbSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10029b85037dbSmrg shlibpath_var=LD_LIBRARY_PATH 10030b85037dbSmrg sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10031b85037dbSmrg sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10032b85037dbSmrg # the default ld.so.conf also contains /usr/contrib/lib and 10033b85037dbSmrg # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10034b85037dbSmrg # libtool to hard-code these into programs 10035b85037dbSmrg ;; 10036b85037dbSmrg 10037b85037dbSmrgcygwin* | mingw* | pw32* | cegcc*) 10038b85037dbSmrg version_type=windows 10039b85037dbSmrg shrext_cmds=".dll" 10040b85037dbSmrg need_version=no 10041b85037dbSmrg need_lib_prefix=no 10042b85037dbSmrg 10043302b15bdSmrg case $GCC,$cc_basename in 10044302b15bdSmrg yes,*) 10045302b15bdSmrg # gcc 10046b85037dbSmrg library_names_spec='$libname.dll.a' 10047b85037dbSmrg # DLL is installed to $(libdir)/../bin by postinstall_cmds 10048b85037dbSmrg postinstall_cmds='base_file=`basename \${file}`~ 10049b85037dbSmrg dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10050b85037dbSmrg dldir=$destdir/`dirname \$dlpath`~ 10051b85037dbSmrg test -d \$dldir || mkdir -p \$dldir~ 10052b85037dbSmrg $install_prog $dir/$dlname \$dldir/$dlname~ 10053b85037dbSmrg chmod a+x \$dldir/$dlname~ 10054b85037dbSmrg if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10055b85037dbSmrg eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10056b85037dbSmrg fi' 10057b85037dbSmrg postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10058b85037dbSmrg dlpath=$dir/\$dldll~ 10059b85037dbSmrg $RM \$dlpath' 10060b85037dbSmrg shlibpath_overrides_runpath=yes 10061b85037dbSmrg 10062b85037dbSmrg case $host_os in 10063b85037dbSmrg cygwin*) 10064b85037dbSmrg # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10065b85037dbSmrg soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10066b85037dbSmrg 10067b85037dbSmrg sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10068b85037dbSmrg ;; 10069b85037dbSmrg mingw* | cegcc*) 10070b85037dbSmrg # MinGW DLLs use traditional 'lib' prefix 10071b85037dbSmrg soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10072b85037dbSmrg ;; 10073b85037dbSmrg pw32*) 10074b85037dbSmrg # pw32 DLLs use 'pw' prefix rather than 'lib' 10075b85037dbSmrg library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10076b85037dbSmrg ;; 10077b85037dbSmrg esac 10078302b15bdSmrg dynamic_linker='Win32 ld.exe' 10079302b15bdSmrg ;; 10080302b15bdSmrg 10081302b15bdSmrg *,cl*) 10082302b15bdSmrg # Native MSVC 10083302b15bdSmrg libname_spec='$name' 10084302b15bdSmrg soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10085302b15bdSmrg library_names_spec='${libname}.dll.lib' 10086302b15bdSmrg 10087302b15bdSmrg case $build_os in 10088302b15bdSmrg mingw*) 10089302b15bdSmrg sys_lib_search_path_spec= 10090302b15bdSmrg lt_save_ifs=$IFS 10091302b15bdSmrg IFS=';' 10092302b15bdSmrg for lt_path in $LIB 10093302b15bdSmrg do 10094302b15bdSmrg IFS=$lt_save_ifs 10095302b15bdSmrg # Let DOS variable expansion print the short 8.3 style file name. 10096302b15bdSmrg lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10097302b15bdSmrg sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10098302b15bdSmrg done 10099302b15bdSmrg IFS=$lt_save_ifs 10100302b15bdSmrg # Convert to MSYS style. 10101302b15bdSmrg sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10102302b15bdSmrg ;; 10103302b15bdSmrg cygwin*) 10104302b15bdSmrg # Convert to unix form, then to dos form, then back to unix form 10105302b15bdSmrg # but this time dos style (no spaces!) so that the unix form looks 10106302b15bdSmrg # like /cygdrive/c/PROGRA~1:/cygdr... 10107302b15bdSmrg sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10108302b15bdSmrg sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10109302b15bdSmrg sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10110302b15bdSmrg ;; 10111302b15bdSmrg *) 10112302b15bdSmrg sys_lib_search_path_spec="$LIB" 10113302b15bdSmrg if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10114302b15bdSmrg # It is most probably a Windows format PATH. 10115302b15bdSmrg sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10116302b15bdSmrg else 10117302b15bdSmrg sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10118302b15bdSmrg fi 10119302b15bdSmrg # FIXME: find the short name or the path components, as spaces are 10120302b15bdSmrg # common. (e.g. "Program Files" -> "PROGRA~1") 10121302b15bdSmrg ;; 10122302b15bdSmrg esac 10123302b15bdSmrg 10124302b15bdSmrg # DLL is installed to $(libdir)/../bin by postinstall_cmds 10125302b15bdSmrg postinstall_cmds='base_file=`basename \${file}`~ 10126302b15bdSmrg dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10127302b15bdSmrg dldir=$destdir/`dirname \$dlpath`~ 10128302b15bdSmrg test -d \$dldir || mkdir -p \$dldir~ 10129302b15bdSmrg $install_prog $dir/$dlname \$dldir/$dlname' 10130302b15bdSmrg postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10131302b15bdSmrg dlpath=$dir/\$dldll~ 10132302b15bdSmrg $RM \$dlpath' 10133302b15bdSmrg shlibpath_overrides_runpath=yes 10134302b15bdSmrg dynamic_linker='Win32 link.exe' 10135b85037dbSmrg ;; 10136b85037dbSmrg 10137b85037dbSmrg *) 10138302b15bdSmrg # Assume MSVC wrapper 10139b85037dbSmrg library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10140302b15bdSmrg dynamic_linker='Win32 ld.exe' 10141b85037dbSmrg ;; 10142b85037dbSmrg esac 10143b85037dbSmrg # FIXME: first we should search . and the directory the executable is in 10144b85037dbSmrg shlibpath_var=PATH 10145b85037dbSmrg ;; 10146b85037dbSmrg 10147b85037dbSmrgdarwin* | rhapsody*) 10148b85037dbSmrg dynamic_linker="$host_os dyld" 10149b85037dbSmrg version_type=darwin 10150b85037dbSmrg need_lib_prefix=no 10151b85037dbSmrg need_version=no 10152b85037dbSmrg library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10153b85037dbSmrg soname_spec='${libname}${release}${major}$shared_ext' 10154b85037dbSmrg shlibpath_overrides_runpath=yes 10155b85037dbSmrg shlibpath_var=DYLD_LIBRARY_PATH 10156b85037dbSmrg shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10157b85037dbSmrg 10158b85037dbSmrg sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10159b85037dbSmrg sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10160b85037dbSmrg ;; 10161b85037dbSmrg 10162b85037dbSmrgdgux*) 1016328515619Smrg version_type=linux # correct to gnu/linux during the next big refactor 10164b85037dbSmrg need_lib_prefix=no 10165b85037dbSmrg need_version=no 10166b85037dbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10167b85037dbSmrg soname_spec='${libname}${release}${shared_ext}$major' 10168b85037dbSmrg shlibpath_var=LD_LIBRARY_PATH 10169b85037dbSmrg ;; 10170b85037dbSmrg 10171b85037dbSmrgfreebsd* | dragonfly*) 10172b85037dbSmrg # DragonFly does not have aout. When/if they implement a new 10173b85037dbSmrg # versioning mechanism, adjust this. 10174b85037dbSmrg if test -x /usr/bin/objformat; then 10175b85037dbSmrg objformat=`/usr/bin/objformat` 10176b85037dbSmrg else 10177b85037dbSmrg case $host_os in 1017828515619Smrg freebsd[23].*) objformat=aout ;; 10179b85037dbSmrg *) objformat=elf ;; 10180b85037dbSmrg esac 10181b85037dbSmrg fi 10182b85037dbSmrg version_type=freebsd-$objformat 10183b85037dbSmrg case $version_type in 10184b85037dbSmrg freebsd-elf*) 10185b85037dbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10186b85037dbSmrg need_version=no 10187b85037dbSmrg need_lib_prefix=no 10188b85037dbSmrg ;; 10189b85037dbSmrg freebsd-*) 10190b85037dbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10191b85037dbSmrg need_version=yes 10192b85037dbSmrg ;; 10193b85037dbSmrg esac 10194b85037dbSmrg shlibpath_var=LD_LIBRARY_PATH 10195b85037dbSmrg case $host_os in 1019628515619Smrg freebsd2.*) 10197b85037dbSmrg shlibpath_overrides_runpath=yes 10198b85037dbSmrg ;; 10199b85037dbSmrg freebsd3.[01]* | freebsdelf3.[01]*) 10200b85037dbSmrg shlibpath_overrides_runpath=yes 10201b85037dbSmrg hardcode_into_libs=yes 10202b85037dbSmrg ;; 10203b85037dbSmrg freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10204b85037dbSmrg freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10205b85037dbSmrg shlibpath_overrides_runpath=no 10206b85037dbSmrg hardcode_into_libs=yes 10207b85037dbSmrg ;; 10208b85037dbSmrg *) # from 4.6 on, and DragonFly 10209b85037dbSmrg shlibpath_overrides_runpath=yes 10210b85037dbSmrg hardcode_into_libs=yes 10211b85037dbSmrg ;; 10212b85037dbSmrg esac 10213b85037dbSmrg ;; 10214b85037dbSmrg 10215b85037dbSmrggnu*) 1021628515619Smrg version_type=linux # correct to gnu/linux during the next big refactor 10217b85037dbSmrg need_lib_prefix=no 10218b85037dbSmrg need_version=no 10219b85037dbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10220b85037dbSmrg soname_spec='${libname}${release}${shared_ext}$major' 10221b85037dbSmrg shlibpath_var=LD_LIBRARY_PATH 1022228515619Smrg shlibpath_overrides_runpath=no 10223b85037dbSmrg hardcode_into_libs=yes 10224b85037dbSmrg ;; 10225b85037dbSmrg 10226b85037dbSmrghaiku*) 1022728515619Smrg version_type=linux # correct to gnu/linux during the next big refactor 10228b85037dbSmrg need_lib_prefix=no 10229b85037dbSmrg need_version=no 10230b85037dbSmrg dynamic_linker="$host_os runtime_loader" 10231b85037dbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10232b85037dbSmrg soname_spec='${libname}${release}${shared_ext}$major' 10233b85037dbSmrg shlibpath_var=LIBRARY_PATH 10234b85037dbSmrg shlibpath_overrides_runpath=yes 10235b85037dbSmrg sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10236b85037dbSmrg hardcode_into_libs=yes 10237b85037dbSmrg ;; 10238b85037dbSmrg 10239b85037dbSmrghpux9* | hpux10* | hpux11*) 10240b85037dbSmrg # Give a soname corresponding to the major version so that dld.sl refuses to 10241b85037dbSmrg # link against other versions. 10242b85037dbSmrg version_type=sunos 10243b85037dbSmrg need_lib_prefix=no 10244b85037dbSmrg need_version=no 10245b85037dbSmrg case $host_cpu in 10246b85037dbSmrg ia64*) 10247b85037dbSmrg shrext_cmds='.so' 10248b85037dbSmrg hardcode_into_libs=yes 10249b85037dbSmrg dynamic_linker="$host_os dld.so" 10250b85037dbSmrg shlibpath_var=LD_LIBRARY_PATH 10251b85037dbSmrg shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10252b85037dbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10253b85037dbSmrg soname_spec='${libname}${release}${shared_ext}$major' 10254b85037dbSmrg if test "X$HPUX_IA64_MODE" = X32; then 10255b85037dbSmrg sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10256b85037dbSmrg else 10257b85037dbSmrg sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10258b85037dbSmrg fi 10259b85037dbSmrg sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10260b85037dbSmrg ;; 10261b85037dbSmrg hppa*64*) 10262b85037dbSmrg shrext_cmds='.sl' 10263b85037dbSmrg hardcode_into_libs=yes 10264b85037dbSmrg dynamic_linker="$host_os dld.sl" 10265b85037dbSmrg shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10266b85037dbSmrg shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10267b85037dbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10268b85037dbSmrg soname_spec='${libname}${release}${shared_ext}$major' 10269b85037dbSmrg sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10270b85037dbSmrg sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10271b85037dbSmrg ;; 10272b85037dbSmrg *) 10273b85037dbSmrg shrext_cmds='.sl' 10274b85037dbSmrg dynamic_linker="$host_os dld.sl" 10275b85037dbSmrg shlibpath_var=SHLIB_PATH 10276b85037dbSmrg shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10277b85037dbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10278b85037dbSmrg soname_spec='${libname}${release}${shared_ext}$major' 10279b85037dbSmrg ;; 10280b85037dbSmrg esac 10281b85037dbSmrg # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10282b85037dbSmrg postinstall_cmds='chmod 555 $lib' 10283b85037dbSmrg # or fails outright, so override atomically: 10284b85037dbSmrg install_override_mode=555 10285b85037dbSmrg ;; 10286b85037dbSmrg 10287b85037dbSmrginterix[3-9]*) 1028828515619Smrg version_type=linux # correct to gnu/linux during the next big refactor 10289b85037dbSmrg need_lib_prefix=no 10290b85037dbSmrg need_version=no 10291b85037dbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10292b85037dbSmrg soname_spec='${libname}${release}${shared_ext}$major' 10293b85037dbSmrg dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10294b85037dbSmrg shlibpath_var=LD_LIBRARY_PATH 10295b85037dbSmrg shlibpath_overrides_runpath=no 10296b85037dbSmrg hardcode_into_libs=yes 10297b85037dbSmrg ;; 10298b85037dbSmrg 10299b85037dbSmrgirix5* | irix6* | nonstopux*) 10300b85037dbSmrg case $host_os in 10301b85037dbSmrg nonstopux*) version_type=nonstopux ;; 10302b85037dbSmrg *) 10303b85037dbSmrg if test "$lt_cv_prog_gnu_ld" = yes; then 1030428515619Smrg version_type=linux # correct to gnu/linux during the next big refactor 10305b85037dbSmrg else 10306b85037dbSmrg version_type=irix 10307b85037dbSmrg fi ;; 10308b85037dbSmrg esac 10309b85037dbSmrg need_lib_prefix=no 10310b85037dbSmrg need_version=no 10311b85037dbSmrg soname_spec='${libname}${release}${shared_ext}$major' 10312b85037dbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10313b85037dbSmrg case $host_os in 10314b85037dbSmrg irix5* | nonstopux*) 10315b85037dbSmrg libsuff= shlibsuff= 10316b85037dbSmrg ;; 10317b85037dbSmrg *) 10318b85037dbSmrg case $LD in # libtool.m4 will add one of these switches to LD 10319b85037dbSmrg *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10320b85037dbSmrg libsuff= shlibsuff= libmagic=32-bit;; 10321b85037dbSmrg *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10322b85037dbSmrg libsuff=32 shlibsuff=N32 libmagic=N32;; 10323b85037dbSmrg *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10324b85037dbSmrg libsuff=64 shlibsuff=64 libmagic=64-bit;; 10325b85037dbSmrg *) libsuff= shlibsuff= libmagic=never-match;; 10326b85037dbSmrg esac 10327b85037dbSmrg ;; 10328b85037dbSmrg esac 10329b85037dbSmrg shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10330b85037dbSmrg shlibpath_overrides_runpath=no 10331b85037dbSmrg sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10332b85037dbSmrg sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10333b85037dbSmrg hardcode_into_libs=yes 10334b85037dbSmrg ;; 10335b85037dbSmrg 10336b85037dbSmrg# No shared lib support for Linux oldld, aout, or coff. 10337b85037dbSmrglinux*oldld* | linux*aout* | linux*coff*) 10338b85037dbSmrg dynamic_linker=no 10339b85037dbSmrg ;; 10340b85037dbSmrg 1034128515619Smrg# This must be glibc/ELF. 10342b85037dbSmrglinux* | k*bsd*-gnu | kopensolaris*-gnu) 1034328515619Smrg version_type=linux # correct to gnu/linux during the next big refactor 10344b85037dbSmrg need_lib_prefix=no 10345b85037dbSmrg need_version=no 10346b85037dbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10347b85037dbSmrg soname_spec='${libname}${release}${shared_ext}$major' 10348b85037dbSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10349b85037dbSmrg shlibpath_var=LD_LIBRARY_PATH 10350b85037dbSmrg shlibpath_overrides_runpath=no 10351b85037dbSmrg 10352b85037dbSmrg # Some binutils ld are patched to set DT_RUNPATH 10353302b15bdSmrg if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10354b85037dbSmrg $as_echo_n "(cached) " >&6 10355b85037dbSmrgelse 10356b85037dbSmrg lt_cv_shlibpath_overrides_runpath=no 10357b85037dbSmrg save_LDFLAGS=$LDFLAGS 10358b85037dbSmrg save_libdir=$libdir 10359b85037dbSmrg eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10360b85037dbSmrg LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10361b85037dbSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10362b85037dbSmrg/* end confdefs.h. */ 10363b85037dbSmrg 10364b85037dbSmrgint 10365b85037dbSmrgmain () 10366b85037dbSmrg{ 10367b85037dbSmrg 10368b85037dbSmrg ; 10369b85037dbSmrg return 0; 10370b85037dbSmrg} 10371b85037dbSmrg_ACEOF 10372b85037dbSmrgif ac_fn_c_try_link "$LINENO"; then : 10373b85037dbSmrg if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10374b85037dbSmrg lt_cv_shlibpath_overrides_runpath=yes 10375b85037dbSmrgfi 10376b85037dbSmrgfi 10377b85037dbSmrgrm -f core conftest.err conftest.$ac_objext \ 10378b85037dbSmrg conftest$ac_exeext conftest.$ac_ext 10379b85037dbSmrg LDFLAGS=$save_LDFLAGS 10380b85037dbSmrg libdir=$save_libdir 10381b85037dbSmrg 10382b85037dbSmrgfi 10383b85037dbSmrg 10384b85037dbSmrg shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10385b85037dbSmrg 10386b85037dbSmrg # This implies no fast_install, which is unacceptable. 10387b85037dbSmrg # Some rework will be needed to allow for fast_install 10388b85037dbSmrg # before this can be enabled. 10389b85037dbSmrg hardcode_into_libs=yes 10390b85037dbSmrg 10391b85037dbSmrg # Add ABI-specific directories to the system library path. 10392b85037dbSmrg sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 10393b85037dbSmrg 10394b85037dbSmrg # Append ld.so.conf contents to the search path 10395b85037dbSmrg if test -f /etc/ld.so.conf; then 10396b85037dbSmrg 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' ' '` 10397b85037dbSmrg sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 10398b85037dbSmrg 10399b85037dbSmrg fi 10400b85037dbSmrg 10401b85037dbSmrg # We used to test for /lib/ld.so.1 and disable shared libraries on 10402b85037dbSmrg # powerpc, because MkLinux only supported shared libraries with the 10403b85037dbSmrg # GNU dynamic linker. Since this was broken with cross compilers, 10404b85037dbSmrg # most powerpc-linux boxes support dynamic linking these days and 10405b85037dbSmrg # people can always --disable-shared, the test was removed, and we 10406b85037dbSmrg # assume the GNU/Linux dynamic linker is in use. 10407b85037dbSmrg dynamic_linker='GNU/Linux ld.so' 10408b85037dbSmrg ;; 10409b85037dbSmrg 10410b85037dbSmrgnetbsd*) 10411b85037dbSmrg version_type=sunos 10412b85037dbSmrg need_lib_prefix=no 10413b85037dbSmrg need_version=no 10414b85037dbSmrg if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10415b85037dbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10416b85037dbSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10417b85037dbSmrg dynamic_linker='NetBSD (a.out) ld.so' 10418b85037dbSmrg else 10419b85037dbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10420b85037dbSmrg soname_spec='${libname}${release}${shared_ext}$major' 10421b85037dbSmrg dynamic_linker='NetBSD ld.elf_so' 10422b85037dbSmrg fi 10423b85037dbSmrg shlibpath_var=LD_LIBRARY_PATH 10424b85037dbSmrg shlibpath_overrides_runpath=yes 10425b85037dbSmrg hardcode_into_libs=yes 10426b85037dbSmrg ;; 10427b85037dbSmrg 10428b85037dbSmrgnewsos6) 1042928515619Smrg version_type=linux # correct to gnu/linux during the next big refactor 10430b85037dbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10431b85037dbSmrg shlibpath_var=LD_LIBRARY_PATH 10432b85037dbSmrg shlibpath_overrides_runpath=yes 10433b85037dbSmrg ;; 10434b85037dbSmrg 10435b85037dbSmrg*nto* | *qnx*) 10436b85037dbSmrg version_type=qnx 10437b85037dbSmrg need_lib_prefix=no 10438b85037dbSmrg need_version=no 10439b85037dbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10440b85037dbSmrg soname_spec='${libname}${release}${shared_ext}$major' 10441b85037dbSmrg shlibpath_var=LD_LIBRARY_PATH 10442b85037dbSmrg shlibpath_overrides_runpath=no 10443b85037dbSmrg hardcode_into_libs=yes 10444b85037dbSmrg dynamic_linker='ldqnx.so' 10445b85037dbSmrg ;; 10446b85037dbSmrg 10447b85037dbSmrgopenbsd*) 10448b85037dbSmrg version_type=sunos 10449b85037dbSmrg sys_lib_dlsearch_path_spec="/usr/lib" 10450b85037dbSmrg need_lib_prefix=no 10451b85037dbSmrg # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10452b85037dbSmrg case $host_os in 10453b85037dbSmrg openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10454b85037dbSmrg *) need_version=no ;; 10455b85037dbSmrg esac 10456b85037dbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10457b85037dbSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10458b85037dbSmrg shlibpath_var=LD_LIBRARY_PATH 10459b85037dbSmrg if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10460b85037dbSmrg case $host_os in 10461b85037dbSmrg openbsd2.[89] | openbsd2.[89].*) 10462b85037dbSmrg shlibpath_overrides_runpath=no 10463b85037dbSmrg ;; 10464b85037dbSmrg *) 10465b85037dbSmrg shlibpath_overrides_runpath=yes 10466b85037dbSmrg ;; 10467b85037dbSmrg esac 10468b85037dbSmrg else 10469b85037dbSmrg shlibpath_overrides_runpath=yes 10470b85037dbSmrg fi 10471b85037dbSmrg ;; 10472b85037dbSmrg 10473b85037dbSmrgos2*) 10474b85037dbSmrg libname_spec='$name' 10475b85037dbSmrg shrext_cmds=".dll" 10476b85037dbSmrg need_lib_prefix=no 10477b85037dbSmrg library_names_spec='$libname${shared_ext} $libname.a' 10478b85037dbSmrg dynamic_linker='OS/2 ld.exe' 10479b85037dbSmrg shlibpath_var=LIBPATH 10480b85037dbSmrg ;; 10481b85037dbSmrg 10482b85037dbSmrgosf3* | osf4* | osf5*) 10483b85037dbSmrg version_type=osf 10484b85037dbSmrg need_lib_prefix=no 10485b85037dbSmrg need_version=no 10486b85037dbSmrg soname_spec='${libname}${release}${shared_ext}$major' 10487b85037dbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10488b85037dbSmrg shlibpath_var=LD_LIBRARY_PATH 10489b85037dbSmrg sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10490b85037dbSmrg sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10491b85037dbSmrg ;; 10492b85037dbSmrg 10493b85037dbSmrgrdos*) 10494b85037dbSmrg dynamic_linker=no 10495b85037dbSmrg ;; 10496b85037dbSmrg 10497b85037dbSmrgsolaris*) 1049828515619Smrg version_type=linux # correct to gnu/linux during the next big refactor 10499b85037dbSmrg need_lib_prefix=no 10500b85037dbSmrg need_version=no 10501b85037dbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10502b85037dbSmrg soname_spec='${libname}${release}${shared_ext}$major' 10503b85037dbSmrg shlibpath_var=LD_LIBRARY_PATH 10504b85037dbSmrg shlibpath_overrides_runpath=yes 10505b85037dbSmrg hardcode_into_libs=yes 10506b85037dbSmrg # ldd complains unless libraries are executable 10507b85037dbSmrg postinstall_cmds='chmod +x $lib' 10508b85037dbSmrg ;; 10509b85037dbSmrg 10510b85037dbSmrgsunos4*) 10511b85037dbSmrg version_type=sunos 10512b85037dbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10513b85037dbSmrg finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10514b85037dbSmrg shlibpath_var=LD_LIBRARY_PATH 10515b85037dbSmrg shlibpath_overrides_runpath=yes 10516b85037dbSmrg if test "$with_gnu_ld" = yes; then 10517b85037dbSmrg need_lib_prefix=no 10518b85037dbSmrg fi 10519b85037dbSmrg need_version=yes 10520b85037dbSmrg ;; 10521b85037dbSmrg 10522b85037dbSmrgsysv4 | sysv4.3*) 1052328515619Smrg version_type=linux # correct to gnu/linux during the next big refactor 10524b85037dbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10525b85037dbSmrg soname_spec='${libname}${release}${shared_ext}$major' 10526b85037dbSmrg shlibpath_var=LD_LIBRARY_PATH 10527b85037dbSmrg case $host_vendor in 10528b85037dbSmrg sni) 10529b85037dbSmrg shlibpath_overrides_runpath=no 10530b85037dbSmrg need_lib_prefix=no 10531b85037dbSmrg runpath_var=LD_RUN_PATH 10532b85037dbSmrg ;; 10533b85037dbSmrg siemens) 10534b85037dbSmrg need_lib_prefix=no 10535b85037dbSmrg ;; 10536b85037dbSmrg motorola) 10537b85037dbSmrg need_lib_prefix=no 10538b85037dbSmrg need_version=no 10539b85037dbSmrg shlibpath_overrides_runpath=no 10540b85037dbSmrg sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10541b85037dbSmrg ;; 10542b85037dbSmrg esac 10543b85037dbSmrg ;; 10544b85037dbSmrg 10545b85037dbSmrgsysv4*MP*) 10546b85037dbSmrg if test -d /usr/nec ;then 1054728515619Smrg version_type=linux # correct to gnu/linux during the next big refactor 10548b85037dbSmrg library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10549b85037dbSmrg soname_spec='$libname${shared_ext}.$major' 10550b85037dbSmrg shlibpath_var=LD_LIBRARY_PATH 10551b85037dbSmrg fi 10552b85037dbSmrg ;; 10553b85037dbSmrg 10554b85037dbSmrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10555b85037dbSmrg version_type=freebsd-elf 10556b85037dbSmrg need_lib_prefix=no 10557b85037dbSmrg need_version=no 10558b85037dbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10559b85037dbSmrg soname_spec='${libname}${release}${shared_ext}$major' 10560b85037dbSmrg shlibpath_var=LD_LIBRARY_PATH 10561b85037dbSmrg shlibpath_overrides_runpath=yes 10562b85037dbSmrg hardcode_into_libs=yes 10563b85037dbSmrg if test "$with_gnu_ld" = yes; then 10564b85037dbSmrg sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10565b85037dbSmrg else 10566b85037dbSmrg sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10567b85037dbSmrg case $host_os in 10568b85037dbSmrg sco3.2v5*) 10569b85037dbSmrg sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10570b85037dbSmrg ;; 10571b85037dbSmrg esac 10572b85037dbSmrg fi 10573b85037dbSmrg sys_lib_dlsearch_path_spec='/usr/lib' 10574b85037dbSmrg ;; 10575b85037dbSmrg 10576b85037dbSmrgtpf*) 10577b85037dbSmrg # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 1057828515619Smrg version_type=linux # correct to gnu/linux during the next big refactor 10579b85037dbSmrg need_lib_prefix=no 10580b85037dbSmrg need_version=no 10581b85037dbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10582b85037dbSmrg shlibpath_var=LD_LIBRARY_PATH 10583b85037dbSmrg shlibpath_overrides_runpath=no 10584b85037dbSmrg hardcode_into_libs=yes 10585b85037dbSmrg ;; 10586b85037dbSmrg 10587b85037dbSmrguts4*) 1058828515619Smrg version_type=linux # correct to gnu/linux during the next big refactor 10589b85037dbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10590b85037dbSmrg soname_spec='${libname}${release}${shared_ext}$major' 10591b85037dbSmrg shlibpath_var=LD_LIBRARY_PATH 10592b85037dbSmrg ;; 10593b85037dbSmrg 10594b85037dbSmrg*) 10595b85037dbSmrg dynamic_linker=no 10596b85037dbSmrg ;; 10597b85037dbSmrgesac 10598b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10599b85037dbSmrg$as_echo "$dynamic_linker" >&6; } 10600b85037dbSmrgtest "$dynamic_linker" = no && can_build_shared=no 10601b85037dbSmrg 10602b85037dbSmrgvariables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10603b85037dbSmrgif test "$GCC" = yes; then 10604b85037dbSmrg variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10605b85037dbSmrgfi 10606b85037dbSmrg 10607b85037dbSmrgif test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10608b85037dbSmrg sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10609b85037dbSmrgfi 10610b85037dbSmrgif test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10611b85037dbSmrg sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10612b85037dbSmrgfi 10613b85037dbSmrg 10614b85037dbSmrg 10615b85037dbSmrg 10616b85037dbSmrg 10617b85037dbSmrg 10618b85037dbSmrg 10619b85037dbSmrg 10620b85037dbSmrg 10621b85037dbSmrg 10622b85037dbSmrg 10623b85037dbSmrg 10624b85037dbSmrg 10625b85037dbSmrg 10626b85037dbSmrg 10627b85037dbSmrg 10628b85037dbSmrg 10629b85037dbSmrg 10630b85037dbSmrg 10631b85037dbSmrg 10632b85037dbSmrg 10633b85037dbSmrg 10634b85037dbSmrg 10635b85037dbSmrg 10636b85037dbSmrg 10637b85037dbSmrg 10638b85037dbSmrg 10639b85037dbSmrg 10640b85037dbSmrg 10641b85037dbSmrg 10642b85037dbSmrg 10643b85037dbSmrg 10644b85037dbSmrg 10645b85037dbSmrg 10646b85037dbSmrg 10647b85037dbSmrg 10648b85037dbSmrg 10649b85037dbSmrg 10650b85037dbSmrg 10651b85037dbSmrg 10652b85037dbSmrg 10653b85037dbSmrg 10654b85037dbSmrg 10655b85037dbSmrg 10656b85037dbSmrg 10657b85037dbSmrg 10658b85037dbSmrg 10659b85037dbSmrg 10660b85037dbSmrg 10661b85037dbSmrg 10662b85037dbSmrg 10663b85037dbSmrg 10664b85037dbSmrg 10665b85037dbSmrg 10666b85037dbSmrg 10667b85037dbSmrg 10668b85037dbSmrg 10669b85037dbSmrg 10670b85037dbSmrg 10671b85037dbSmrg 10672b85037dbSmrg 10673b85037dbSmrg 10674b85037dbSmrg 10675b85037dbSmrg 10676b85037dbSmrg 10677b85037dbSmrg 10678b85037dbSmrg 10679b85037dbSmrg 10680b85037dbSmrg 10681b85037dbSmrg 10682b85037dbSmrg 10683b85037dbSmrg 10684b85037dbSmrg 10685b85037dbSmrg 10686b85037dbSmrg 10687b85037dbSmrg 10688b85037dbSmrg 10689b85037dbSmrg 10690b85037dbSmrg 10691b85037dbSmrg 10692b85037dbSmrg 10693b85037dbSmrg 10694b85037dbSmrg 10695b85037dbSmrg 10696b85037dbSmrg 10697b85037dbSmrg 10698b85037dbSmrg 10699b85037dbSmrg 10700b85037dbSmrg 10701b85037dbSmrg 10702b85037dbSmrg 10703b85037dbSmrg 10704b85037dbSmrg 10705b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10706b85037dbSmrg$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10707b85037dbSmrghardcode_action= 10708b85037dbSmrgif test -n "$hardcode_libdir_flag_spec" || 10709b85037dbSmrg test -n "$runpath_var" || 10710b85037dbSmrg test "X$hardcode_automatic" = "Xyes" ; then 10711b85037dbSmrg 10712b85037dbSmrg # We can hardcode non-existent directories. 10713b85037dbSmrg if test "$hardcode_direct" != no && 10714b85037dbSmrg # If the only mechanism to avoid hardcoding is shlibpath_var, we 10715b85037dbSmrg # have to relink, otherwise we might link with an installed library 10716b85037dbSmrg # when we should be linking with a yet-to-be-installed one 10717b85037dbSmrg ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10718b85037dbSmrg test "$hardcode_minus_L" != no; then 10719b85037dbSmrg # Linking always hardcodes the temporary library directory. 10720b85037dbSmrg hardcode_action=relink 10721b85037dbSmrg else 10722b85037dbSmrg # We can link without hardcoding, and we can hardcode nonexisting dirs. 10723b85037dbSmrg hardcode_action=immediate 10724b85037dbSmrg fi 10725b85037dbSmrgelse 10726b85037dbSmrg # We cannot hardcode anything, or else we can only hardcode existing 10727b85037dbSmrg # directories. 10728b85037dbSmrg hardcode_action=unsupported 10729b85037dbSmrgfi 10730b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10731b85037dbSmrg$as_echo "$hardcode_action" >&6; } 10732b85037dbSmrg 10733b85037dbSmrgif test "$hardcode_action" = relink || 10734b85037dbSmrg test "$inherit_rpath" = yes; then 10735b85037dbSmrg # Fast installation is not supported 10736b85037dbSmrg enable_fast_install=no 10737b85037dbSmrgelif test "$shlibpath_overrides_runpath" = yes || 10738b85037dbSmrg test "$enable_shared" = no; then 10739b85037dbSmrg # Fast installation is not necessary 10740b85037dbSmrg enable_fast_install=needless 10741b85037dbSmrgfi 10742b85037dbSmrg 10743b85037dbSmrg 10744b85037dbSmrg 10745b85037dbSmrg 10746b85037dbSmrg 10747b85037dbSmrg 10748b85037dbSmrg if test "x$enable_dlopen" != xyes; then 10749b85037dbSmrg enable_dlopen=unknown 10750b85037dbSmrg enable_dlopen_self=unknown 10751b85037dbSmrg enable_dlopen_self_static=unknown 10752b85037dbSmrgelse 10753b85037dbSmrg lt_cv_dlopen=no 10754b85037dbSmrg lt_cv_dlopen_libs= 10755b85037dbSmrg 10756b85037dbSmrg case $host_os in 10757b85037dbSmrg beos*) 10758b85037dbSmrg lt_cv_dlopen="load_add_on" 10759b85037dbSmrg lt_cv_dlopen_libs= 10760b85037dbSmrg lt_cv_dlopen_self=yes 10761b85037dbSmrg ;; 10762b85037dbSmrg 10763b85037dbSmrg mingw* | pw32* | cegcc*) 10764b85037dbSmrg lt_cv_dlopen="LoadLibrary" 10765b85037dbSmrg lt_cv_dlopen_libs= 10766b85037dbSmrg ;; 10767b85037dbSmrg 10768b85037dbSmrg cygwin*) 10769b85037dbSmrg lt_cv_dlopen="dlopen" 10770b85037dbSmrg lt_cv_dlopen_libs= 10771b85037dbSmrg ;; 10772b85037dbSmrg 10773b85037dbSmrg darwin*) 10774b85037dbSmrg # if libdl is installed we need to link against it 10775b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10776b85037dbSmrg$as_echo_n "checking for dlopen in -ldl... " >&6; } 10777302b15bdSmrgif ${ac_cv_lib_dl_dlopen+:} false; then : 10778b85037dbSmrg $as_echo_n "(cached) " >&6 10779b85037dbSmrgelse 10780b85037dbSmrg ac_check_lib_save_LIBS=$LIBS 10781b85037dbSmrgLIBS="-ldl $LIBS" 10782b85037dbSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 10783b85037dbSmrg/* end confdefs.h. */ 10784b85037dbSmrg 10785b85037dbSmrg/* Override any GCC internal prototype to avoid an error. 10786b85037dbSmrg Use char because int might match the return type of a GCC 10787b85037dbSmrg builtin and then its argument prototype would still apply. */ 10788b85037dbSmrg#ifdef __cplusplus 10789b85037dbSmrgextern "C" 10790b85037dbSmrg#endif 10791b85037dbSmrgchar dlopen (); 10792b85037dbSmrgint 10793b85037dbSmrgmain () 10794b85037dbSmrg{ 10795b85037dbSmrgreturn dlopen (); 10796b85037dbSmrg ; 10797b85037dbSmrg return 0; 10798b85037dbSmrg} 10799b85037dbSmrg_ACEOF 10800b85037dbSmrgif ac_fn_c_try_link "$LINENO"; then : 10801b85037dbSmrg ac_cv_lib_dl_dlopen=yes 10802b85037dbSmrgelse 10803b85037dbSmrg ac_cv_lib_dl_dlopen=no 10804b85037dbSmrgfi 10805b85037dbSmrgrm -f core conftest.err conftest.$ac_objext \ 10806b85037dbSmrg conftest$ac_exeext conftest.$ac_ext 10807b85037dbSmrgLIBS=$ac_check_lib_save_LIBS 10808b85037dbSmrgfi 10809b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10810b85037dbSmrg$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10811302b15bdSmrgif test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10812b85037dbSmrg lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10813b85037dbSmrgelse 10814b85037dbSmrg 10815b85037dbSmrg lt_cv_dlopen="dyld" 10816b85037dbSmrg lt_cv_dlopen_libs= 10817b85037dbSmrg lt_cv_dlopen_self=yes 10818b85037dbSmrg 10819b85037dbSmrgfi 10820b85037dbSmrg 10821b85037dbSmrg ;; 10822b85037dbSmrg 10823b85037dbSmrg *) 10824b85037dbSmrg ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10825302b15bdSmrgif test "x$ac_cv_func_shl_load" = xyes; then : 10826b85037dbSmrg lt_cv_dlopen="shl_load" 10827b85037dbSmrgelse 10828b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10829b85037dbSmrg$as_echo_n "checking for shl_load in -ldld... " >&6; } 10830302b15bdSmrgif ${ac_cv_lib_dld_shl_load+:} false; then : 10831b85037dbSmrg $as_echo_n "(cached) " >&6 10832b85037dbSmrgelse 10833b85037dbSmrg ac_check_lib_save_LIBS=$LIBS 10834b85037dbSmrgLIBS="-ldld $LIBS" 10835b85037dbSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 10836b85037dbSmrg/* end confdefs.h. */ 10837b85037dbSmrg 10838b85037dbSmrg/* Override any GCC internal prototype to avoid an error. 10839b85037dbSmrg Use char because int might match the return type of a GCC 10840b85037dbSmrg builtin and then its argument prototype would still apply. */ 10841b85037dbSmrg#ifdef __cplusplus 10842b85037dbSmrgextern "C" 10843b85037dbSmrg#endif 10844b85037dbSmrgchar shl_load (); 10845b85037dbSmrgint 10846b85037dbSmrgmain () 10847b85037dbSmrg{ 10848b85037dbSmrgreturn shl_load (); 10849b85037dbSmrg ; 10850b85037dbSmrg return 0; 10851b85037dbSmrg} 10852b85037dbSmrg_ACEOF 10853b85037dbSmrgif ac_fn_c_try_link "$LINENO"; then : 10854b85037dbSmrg ac_cv_lib_dld_shl_load=yes 10855b85037dbSmrgelse 10856b85037dbSmrg ac_cv_lib_dld_shl_load=no 10857b85037dbSmrgfi 10858b85037dbSmrgrm -f core conftest.err conftest.$ac_objext \ 10859b85037dbSmrg conftest$ac_exeext conftest.$ac_ext 10860b85037dbSmrgLIBS=$ac_check_lib_save_LIBS 10861b85037dbSmrgfi 10862b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10863b85037dbSmrg$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10864302b15bdSmrgif test "x$ac_cv_lib_dld_shl_load" = xyes; then : 10865b85037dbSmrg lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10866b85037dbSmrgelse 10867b85037dbSmrg ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10868302b15bdSmrgif test "x$ac_cv_func_dlopen" = xyes; then : 10869b85037dbSmrg lt_cv_dlopen="dlopen" 10870b85037dbSmrgelse 10871b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10872b85037dbSmrg$as_echo_n "checking for dlopen in -ldl... " >&6; } 10873302b15bdSmrgif ${ac_cv_lib_dl_dlopen+:} false; then : 10874b85037dbSmrg $as_echo_n "(cached) " >&6 10875b85037dbSmrgelse 10876b85037dbSmrg ac_check_lib_save_LIBS=$LIBS 10877b85037dbSmrgLIBS="-ldl $LIBS" 10878b85037dbSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 10879b85037dbSmrg/* end confdefs.h. */ 10880b85037dbSmrg 10881b85037dbSmrg/* Override any GCC internal prototype to avoid an error. 10882b85037dbSmrg Use char because int might match the return type of a GCC 10883b85037dbSmrg builtin and then its argument prototype would still apply. */ 10884b85037dbSmrg#ifdef __cplusplus 10885b85037dbSmrgextern "C" 10886b85037dbSmrg#endif 10887b85037dbSmrgchar dlopen (); 10888b85037dbSmrgint 10889b85037dbSmrgmain () 10890b85037dbSmrg{ 10891b85037dbSmrgreturn dlopen (); 10892b85037dbSmrg ; 10893b85037dbSmrg return 0; 10894b85037dbSmrg} 10895b85037dbSmrg_ACEOF 10896b85037dbSmrgif ac_fn_c_try_link "$LINENO"; then : 10897b85037dbSmrg ac_cv_lib_dl_dlopen=yes 10898b85037dbSmrgelse 10899b85037dbSmrg ac_cv_lib_dl_dlopen=no 10900b85037dbSmrgfi 10901b85037dbSmrgrm -f core conftest.err conftest.$ac_objext \ 10902b85037dbSmrg conftest$ac_exeext conftest.$ac_ext 10903b85037dbSmrgLIBS=$ac_check_lib_save_LIBS 10904b85037dbSmrgfi 10905b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10906b85037dbSmrg$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10907302b15bdSmrgif test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10908b85037dbSmrg lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10909b85037dbSmrgelse 10910b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10911b85037dbSmrg$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10912302b15bdSmrgif ${ac_cv_lib_svld_dlopen+:} false; then : 10913b85037dbSmrg $as_echo_n "(cached) " >&6 10914b85037dbSmrgelse 10915b85037dbSmrg ac_check_lib_save_LIBS=$LIBS 10916b85037dbSmrgLIBS="-lsvld $LIBS" 10917b85037dbSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 10918b85037dbSmrg/* end confdefs.h. */ 10919b85037dbSmrg 10920b85037dbSmrg/* Override any GCC internal prototype to avoid an error. 10921b85037dbSmrg Use char because int might match the return type of a GCC 10922b85037dbSmrg builtin and then its argument prototype would still apply. */ 10923b85037dbSmrg#ifdef __cplusplus 10924b85037dbSmrgextern "C" 10925b85037dbSmrg#endif 10926b85037dbSmrgchar dlopen (); 10927b85037dbSmrgint 10928b85037dbSmrgmain () 10929b85037dbSmrg{ 10930b85037dbSmrgreturn dlopen (); 10931b85037dbSmrg ; 10932b85037dbSmrg return 0; 10933b85037dbSmrg} 10934b85037dbSmrg_ACEOF 10935b85037dbSmrgif ac_fn_c_try_link "$LINENO"; then : 10936b85037dbSmrg ac_cv_lib_svld_dlopen=yes 10937b85037dbSmrgelse 10938b85037dbSmrg ac_cv_lib_svld_dlopen=no 10939b85037dbSmrgfi 10940b85037dbSmrgrm -f core conftest.err conftest.$ac_objext \ 10941b85037dbSmrg conftest$ac_exeext conftest.$ac_ext 10942b85037dbSmrgLIBS=$ac_check_lib_save_LIBS 10943b85037dbSmrgfi 10944b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 10945b85037dbSmrg$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10946302b15bdSmrgif test "x$ac_cv_lib_svld_dlopen" = xyes; then : 10947b85037dbSmrg lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10948b85037dbSmrgelse 10949b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 10950b85037dbSmrg$as_echo_n "checking for dld_link in -ldld... " >&6; } 10951302b15bdSmrgif ${ac_cv_lib_dld_dld_link+:} false; then : 10952b85037dbSmrg $as_echo_n "(cached) " >&6 10953b85037dbSmrgelse 10954b85037dbSmrg ac_check_lib_save_LIBS=$LIBS 10955b85037dbSmrgLIBS="-ldld $LIBS" 10956b85037dbSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 10957b85037dbSmrg/* end confdefs.h. */ 10958b85037dbSmrg 10959b85037dbSmrg/* Override any GCC internal prototype to avoid an error. 10960b85037dbSmrg Use char because int might match the return type of a GCC 10961b85037dbSmrg builtin and then its argument prototype would still apply. */ 10962b85037dbSmrg#ifdef __cplusplus 10963b85037dbSmrgextern "C" 10964b85037dbSmrg#endif 10965b85037dbSmrgchar dld_link (); 10966b85037dbSmrgint 10967b85037dbSmrgmain () 10968b85037dbSmrg{ 10969b85037dbSmrgreturn dld_link (); 10970b85037dbSmrg ; 10971b85037dbSmrg return 0; 10972b85037dbSmrg} 10973b85037dbSmrg_ACEOF 10974b85037dbSmrgif ac_fn_c_try_link "$LINENO"; then : 10975b85037dbSmrg ac_cv_lib_dld_dld_link=yes 10976b85037dbSmrgelse 10977b85037dbSmrg ac_cv_lib_dld_dld_link=no 10978b85037dbSmrgfi 10979b85037dbSmrgrm -f core conftest.err conftest.$ac_objext \ 10980b85037dbSmrg conftest$ac_exeext conftest.$ac_ext 10981b85037dbSmrgLIBS=$ac_check_lib_save_LIBS 10982b85037dbSmrgfi 10983b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 10984b85037dbSmrg$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10985302b15bdSmrgif test "x$ac_cv_lib_dld_dld_link" = xyes; then : 10986b85037dbSmrg lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10987b85037dbSmrgfi 10988b85037dbSmrg 10989b85037dbSmrg 10990b85037dbSmrgfi 10991b85037dbSmrg 10992b85037dbSmrg 10993b85037dbSmrgfi 10994b85037dbSmrg 10995b85037dbSmrg 10996b85037dbSmrgfi 10997b85037dbSmrg 10998b85037dbSmrg 10999b85037dbSmrgfi 11000b85037dbSmrg 11001b85037dbSmrg 11002b85037dbSmrgfi 11003b85037dbSmrg 11004b85037dbSmrg ;; 11005b85037dbSmrg esac 11006b85037dbSmrg 11007b85037dbSmrg if test "x$lt_cv_dlopen" != xno; then 11008b85037dbSmrg enable_dlopen=yes 11009b85037dbSmrg else 11010b85037dbSmrg enable_dlopen=no 11011b85037dbSmrg fi 11012b85037dbSmrg 11013b85037dbSmrg case $lt_cv_dlopen in 11014b85037dbSmrg dlopen) 11015b85037dbSmrg save_CPPFLAGS="$CPPFLAGS" 11016b85037dbSmrg test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11017b85037dbSmrg 11018b85037dbSmrg save_LDFLAGS="$LDFLAGS" 11019b85037dbSmrg wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11020b85037dbSmrg 11021b85037dbSmrg save_LIBS="$LIBS" 11022b85037dbSmrg LIBS="$lt_cv_dlopen_libs $LIBS" 11023b85037dbSmrg 11024b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11025b85037dbSmrg$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11026302b15bdSmrgif ${lt_cv_dlopen_self+:} false; then : 11027b85037dbSmrg $as_echo_n "(cached) " >&6 11028b85037dbSmrgelse 11029b85037dbSmrg if test "$cross_compiling" = yes; then : 11030b85037dbSmrg lt_cv_dlopen_self=cross 11031b85037dbSmrgelse 11032b85037dbSmrg lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11033b85037dbSmrg lt_status=$lt_dlunknown 11034b85037dbSmrg cat > conftest.$ac_ext <<_LT_EOF 11035b85037dbSmrg#line $LINENO "configure" 11036b85037dbSmrg#include "confdefs.h" 11037b85037dbSmrg 11038b85037dbSmrg#if HAVE_DLFCN_H 11039b85037dbSmrg#include <dlfcn.h> 11040b85037dbSmrg#endif 11041b85037dbSmrg 11042b85037dbSmrg#include <stdio.h> 11043b85037dbSmrg 11044b85037dbSmrg#ifdef RTLD_GLOBAL 11045b85037dbSmrg# define LT_DLGLOBAL RTLD_GLOBAL 11046b85037dbSmrg#else 11047b85037dbSmrg# ifdef DL_GLOBAL 11048b85037dbSmrg# define LT_DLGLOBAL DL_GLOBAL 11049b85037dbSmrg# else 11050b85037dbSmrg# define LT_DLGLOBAL 0 11051b85037dbSmrg# endif 11052b85037dbSmrg#endif 11053b85037dbSmrg 11054b85037dbSmrg/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11055b85037dbSmrg find out it does not work in some platform. */ 11056b85037dbSmrg#ifndef LT_DLLAZY_OR_NOW 11057b85037dbSmrg# ifdef RTLD_LAZY 11058b85037dbSmrg# define LT_DLLAZY_OR_NOW RTLD_LAZY 11059b85037dbSmrg# else 11060b85037dbSmrg# ifdef DL_LAZY 11061b85037dbSmrg# define LT_DLLAZY_OR_NOW DL_LAZY 11062b85037dbSmrg# else 11063b85037dbSmrg# ifdef RTLD_NOW 11064b85037dbSmrg# define LT_DLLAZY_OR_NOW RTLD_NOW 11065b85037dbSmrg# else 11066b85037dbSmrg# ifdef DL_NOW 11067b85037dbSmrg# define LT_DLLAZY_OR_NOW DL_NOW 11068b85037dbSmrg# else 11069b85037dbSmrg# define LT_DLLAZY_OR_NOW 0 11070b85037dbSmrg# endif 11071b85037dbSmrg# endif 11072b85037dbSmrg# endif 11073b85037dbSmrg# endif 11074b85037dbSmrg#endif 11075b85037dbSmrg 11076b85037dbSmrg/* When -fvisbility=hidden is used, assume the code has been annotated 11077b85037dbSmrg correspondingly for the symbols needed. */ 11078b85037dbSmrg#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11079302b15bdSmrgint fnord () __attribute__((visibility("default"))); 11080b85037dbSmrg#endif 11081b85037dbSmrg 11082302b15bdSmrgint fnord () { return 42; } 11083b85037dbSmrgint main () 11084b85037dbSmrg{ 11085b85037dbSmrg void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11086b85037dbSmrg int status = $lt_dlunknown; 11087b85037dbSmrg 11088b85037dbSmrg if (self) 11089b85037dbSmrg { 11090b85037dbSmrg if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11091b85037dbSmrg else 11092b85037dbSmrg { 11093b85037dbSmrg if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11094b85037dbSmrg else puts (dlerror ()); 11095b85037dbSmrg } 11096b85037dbSmrg /* dlclose (self); */ 11097b85037dbSmrg } 11098b85037dbSmrg else 11099b85037dbSmrg puts (dlerror ()); 11100b85037dbSmrg 11101b85037dbSmrg return status; 11102b85037dbSmrg} 11103b85037dbSmrg_LT_EOF 11104b85037dbSmrg if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11105b85037dbSmrg (eval $ac_link) 2>&5 11106b85037dbSmrg ac_status=$? 11107b85037dbSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11108b85037dbSmrg test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11109b85037dbSmrg (./conftest; exit; ) >&5 2>/dev/null 11110b85037dbSmrg lt_status=$? 11111b85037dbSmrg case x$lt_status in 11112b85037dbSmrg x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11113b85037dbSmrg x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11114b85037dbSmrg x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11115b85037dbSmrg esac 11116b85037dbSmrg else : 11117b85037dbSmrg # compilation failed 11118b85037dbSmrg lt_cv_dlopen_self=no 11119b85037dbSmrg fi 11120b85037dbSmrgfi 11121b85037dbSmrgrm -fr conftest* 11122b85037dbSmrg 11123b85037dbSmrg 11124b85037dbSmrgfi 11125b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11126b85037dbSmrg$as_echo "$lt_cv_dlopen_self" >&6; } 11127b85037dbSmrg 11128b85037dbSmrg if test "x$lt_cv_dlopen_self" = xyes; then 11129b85037dbSmrg wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11130b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11131b85037dbSmrg$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11132302b15bdSmrgif ${lt_cv_dlopen_self_static+:} false; then : 11133b85037dbSmrg $as_echo_n "(cached) " >&6 11134b85037dbSmrgelse 11135b85037dbSmrg if test "$cross_compiling" = yes; then : 11136b85037dbSmrg lt_cv_dlopen_self_static=cross 11137b85037dbSmrgelse 11138b85037dbSmrg lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11139b85037dbSmrg lt_status=$lt_dlunknown 11140b85037dbSmrg cat > conftest.$ac_ext <<_LT_EOF 11141b85037dbSmrg#line $LINENO "configure" 11142b85037dbSmrg#include "confdefs.h" 11143b85037dbSmrg 11144b85037dbSmrg#if HAVE_DLFCN_H 11145b85037dbSmrg#include <dlfcn.h> 11146b85037dbSmrg#endif 11147b85037dbSmrg 11148b85037dbSmrg#include <stdio.h> 11149b85037dbSmrg 11150b85037dbSmrg#ifdef RTLD_GLOBAL 11151b85037dbSmrg# define LT_DLGLOBAL RTLD_GLOBAL 11152b85037dbSmrg#else 11153b85037dbSmrg# ifdef DL_GLOBAL 11154b85037dbSmrg# define LT_DLGLOBAL DL_GLOBAL 11155b85037dbSmrg# else 11156b85037dbSmrg# define LT_DLGLOBAL 0 11157b85037dbSmrg# endif 11158b85037dbSmrg#endif 11159b85037dbSmrg 11160b85037dbSmrg/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11161b85037dbSmrg find out it does not work in some platform. */ 11162b85037dbSmrg#ifndef LT_DLLAZY_OR_NOW 11163b85037dbSmrg# ifdef RTLD_LAZY 11164b85037dbSmrg# define LT_DLLAZY_OR_NOW RTLD_LAZY 11165b85037dbSmrg# else 11166b85037dbSmrg# ifdef DL_LAZY 11167b85037dbSmrg# define LT_DLLAZY_OR_NOW DL_LAZY 11168b85037dbSmrg# else 11169b85037dbSmrg# ifdef RTLD_NOW 11170b85037dbSmrg# define LT_DLLAZY_OR_NOW RTLD_NOW 11171b85037dbSmrg# else 11172b85037dbSmrg# ifdef DL_NOW 11173b85037dbSmrg# define LT_DLLAZY_OR_NOW DL_NOW 11174b85037dbSmrg# else 11175b85037dbSmrg# define LT_DLLAZY_OR_NOW 0 11176b85037dbSmrg# endif 11177b85037dbSmrg# endif 11178b85037dbSmrg# endif 11179b85037dbSmrg# endif 11180b85037dbSmrg#endif 11181b85037dbSmrg 11182b85037dbSmrg/* When -fvisbility=hidden is used, assume the code has been annotated 11183b85037dbSmrg correspondingly for the symbols needed. */ 11184b85037dbSmrg#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11185302b15bdSmrgint fnord () __attribute__((visibility("default"))); 11186b85037dbSmrg#endif 11187b85037dbSmrg 11188302b15bdSmrgint fnord () { return 42; } 11189b85037dbSmrgint main () 11190b85037dbSmrg{ 11191b85037dbSmrg void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11192b85037dbSmrg int status = $lt_dlunknown; 11193b85037dbSmrg 11194b85037dbSmrg if (self) 11195b85037dbSmrg { 11196b85037dbSmrg if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11197b85037dbSmrg else 11198b85037dbSmrg { 11199b85037dbSmrg if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11200b85037dbSmrg else puts (dlerror ()); 11201b85037dbSmrg } 11202b85037dbSmrg /* dlclose (self); */ 11203b85037dbSmrg } 11204b85037dbSmrg else 11205b85037dbSmrg puts (dlerror ()); 11206b85037dbSmrg 11207b85037dbSmrg return status; 11208b85037dbSmrg} 11209b85037dbSmrg_LT_EOF 11210b85037dbSmrg if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11211b85037dbSmrg (eval $ac_link) 2>&5 11212b85037dbSmrg ac_status=$? 11213b85037dbSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11214b85037dbSmrg test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11215b85037dbSmrg (./conftest; exit; ) >&5 2>/dev/null 11216b85037dbSmrg lt_status=$? 11217b85037dbSmrg case x$lt_status in 11218b85037dbSmrg x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11219b85037dbSmrg x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11220b85037dbSmrg x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11221b85037dbSmrg esac 11222b85037dbSmrg else : 11223b85037dbSmrg # compilation failed 11224b85037dbSmrg lt_cv_dlopen_self_static=no 11225b85037dbSmrg fi 11226b85037dbSmrgfi 11227b85037dbSmrgrm -fr conftest* 11228b85037dbSmrg 11229b85037dbSmrg 11230b85037dbSmrgfi 11231b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11232b85037dbSmrg$as_echo "$lt_cv_dlopen_self_static" >&6; } 11233b85037dbSmrg fi 11234b85037dbSmrg 11235b85037dbSmrg CPPFLAGS="$save_CPPFLAGS" 11236b85037dbSmrg LDFLAGS="$save_LDFLAGS" 11237b85037dbSmrg LIBS="$save_LIBS" 11238b85037dbSmrg ;; 11239b85037dbSmrg esac 11240b85037dbSmrg 11241b85037dbSmrg case $lt_cv_dlopen_self in 11242b85037dbSmrg yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11243b85037dbSmrg *) enable_dlopen_self=unknown ;; 11244b85037dbSmrg esac 11245b85037dbSmrg 11246b85037dbSmrg case $lt_cv_dlopen_self_static in 11247b85037dbSmrg yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11248b85037dbSmrg *) enable_dlopen_self_static=unknown ;; 11249b85037dbSmrg esac 11250b85037dbSmrgfi 11251b85037dbSmrg 11252b85037dbSmrg 11253b85037dbSmrg 11254b85037dbSmrg 11255b85037dbSmrg 11256b85037dbSmrg 11257b85037dbSmrg 11258b85037dbSmrg 11259b85037dbSmrg 11260b85037dbSmrg 11261b85037dbSmrg 11262b85037dbSmrg 11263b85037dbSmrg 11264b85037dbSmrg 11265b85037dbSmrg 11266b85037dbSmrg 11267b85037dbSmrg 11268b85037dbSmrgstriplib= 11269b85037dbSmrgold_striplib= 11270b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11271b85037dbSmrg$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11272b85037dbSmrgif test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11273b85037dbSmrg test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11274b85037dbSmrg test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11275b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11276b85037dbSmrg$as_echo "yes" >&6; } 11277b85037dbSmrgelse 11278b85037dbSmrg# FIXME - insert some real tests, host_os isn't really good enough 11279b85037dbSmrg case $host_os in 11280b85037dbSmrg darwin*) 11281b85037dbSmrg if test -n "$STRIP" ; then 11282b85037dbSmrg striplib="$STRIP -x" 11283b85037dbSmrg old_striplib="$STRIP -S" 11284b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11285b85037dbSmrg$as_echo "yes" >&6; } 11286b85037dbSmrg else 11287b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11288b85037dbSmrg$as_echo "no" >&6; } 11289b85037dbSmrg fi 11290b85037dbSmrg ;; 11291b85037dbSmrg *) 11292b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11293b85037dbSmrg$as_echo "no" >&6; } 11294b85037dbSmrg ;; 11295b85037dbSmrg esac 11296b85037dbSmrgfi 11297b85037dbSmrg 11298b85037dbSmrg 11299b85037dbSmrg 11300b85037dbSmrg 11301b85037dbSmrg 11302b85037dbSmrg 11303b85037dbSmrg 11304b85037dbSmrg 11305b85037dbSmrg 11306b85037dbSmrg 11307b85037dbSmrg 11308b85037dbSmrg 11309b85037dbSmrg # Report which library types will actually be built 11310b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11311b85037dbSmrg$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11312b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11313b85037dbSmrg$as_echo "$can_build_shared" >&6; } 11314b85037dbSmrg 11315b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11316b85037dbSmrg$as_echo_n "checking whether to build shared libraries... " >&6; } 11317b85037dbSmrg test "$can_build_shared" = "no" && enable_shared=no 11318b85037dbSmrg 11319b85037dbSmrg # On AIX, shared libraries and static libraries use the same namespace, and 11320b85037dbSmrg # are all built from PIC. 11321b85037dbSmrg case $host_os in 11322b85037dbSmrg aix3*) 11323b85037dbSmrg test "$enable_shared" = yes && enable_static=no 11324b85037dbSmrg if test -n "$RANLIB"; then 11325b85037dbSmrg archive_cmds="$archive_cmds~\$RANLIB \$lib" 11326b85037dbSmrg postinstall_cmds='$RANLIB $lib' 11327b85037dbSmrg fi 11328b85037dbSmrg ;; 11329b85037dbSmrg 11330b85037dbSmrg aix[4-9]*) 11331b85037dbSmrg if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11332b85037dbSmrg test "$enable_shared" = yes && enable_static=no 11333b85037dbSmrg fi 11334b85037dbSmrg ;; 11335b85037dbSmrg esac 11336b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11337b85037dbSmrg$as_echo "$enable_shared" >&6; } 11338b85037dbSmrg 11339b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11340b85037dbSmrg$as_echo_n "checking whether to build static libraries... " >&6; } 11341b85037dbSmrg # Make sure either enable_shared or enable_static is yes. 11342b85037dbSmrg test "$enable_shared" = yes || enable_static=yes 11343b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11344b85037dbSmrg$as_echo "$enable_static" >&6; } 11345b85037dbSmrg 11346b85037dbSmrg 11347b85037dbSmrg 11348b85037dbSmrg 11349b85037dbSmrgfi 11350b85037dbSmrgac_ext=c 11351b85037dbSmrgac_cpp='$CPP $CPPFLAGS' 11352b85037dbSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11353b85037dbSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11354b85037dbSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 11355b85037dbSmrg 11356b85037dbSmrgCC="$lt_save_CC" 11357b85037dbSmrg 11358b85037dbSmrg 11359b85037dbSmrg 11360b85037dbSmrg 11361b85037dbSmrg 11362b85037dbSmrg 11363b85037dbSmrg 11364b85037dbSmrg 11365b85037dbSmrg 11366b85037dbSmrg 11367b85037dbSmrg 11368b85037dbSmrg 11369b85037dbSmrg 1137028515619Smrg 1137128515619Smrg 11372b85037dbSmrg ac_config_commands="$ac_config_commands libtool" 11373b85037dbSmrg 11374b85037dbSmrg 11375b85037dbSmrg 11376b85037dbSmrg 11377b85037dbSmrg# Only expand once: 11378b85037dbSmrg 11379b85037dbSmrg 11380b85037dbSmrg 1138128515619Smrg# Initialize X.Org macros 1.13 or later for XORG_ENABLE_UNIT_TESTS 11382b85037dbSmrg 11383b85037dbSmrg 11384b85037dbSmrg 11385b85037dbSmrg 11386b85037dbSmrg 11387b85037dbSmrg 11388b85037dbSmrg 11389b85037dbSmrg 11390b85037dbSmrg 11391b85037dbSmrg 11392b85037dbSmrg 11393b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 11394b85037dbSmrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 11395302b15bdSmrgif ${ac_cv_prog_cc_c99+:} false; then : 11396b85037dbSmrg $as_echo_n "(cached) " >&6 11397b85037dbSmrgelse 11398b85037dbSmrg ac_cv_prog_cc_c99=no 11399b85037dbSmrgac_save_CC=$CC 11400b85037dbSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 11401b85037dbSmrg/* end confdefs.h. */ 11402b85037dbSmrg#include <stdarg.h> 11403b85037dbSmrg#include <stdbool.h> 11404b85037dbSmrg#include <stdlib.h> 11405b85037dbSmrg#include <wchar.h> 11406b85037dbSmrg#include <stdio.h> 11407b85037dbSmrg 11408b85037dbSmrg// Check varargs macros. These examples are taken from C99 6.10.3.5. 11409b85037dbSmrg#define debug(...) fprintf (stderr, __VA_ARGS__) 11410b85037dbSmrg#define showlist(...) puts (#__VA_ARGS__) 11411b85037dbSmrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 11412b85037dbSmrgstatic void 11413b85037dbSmrgtest_varargs_macros (void) 11414b85037dbSmrg{ 11415b85037dbSmrg int x = 1234; 11416b85037dbSmrg int y = 5678; 11417b85037dbSmrg debug ("Flag"); 11418b85037dbSmrg debug ("X = %d\n", x); 11419b85037dbSmrg showlist (The first, second, and third items.); 11420b85037dbSmrg report (x>y, "x is %d but y is %d", x, y); 11421b85037dbSmrg} 11422b85037dbSmrg 11423b85037dbSmrg// Check long long types. 11424b85037dbSmrg#define BIG64 18446744073709551615ull 11425b85037dbSmrg#define BIG32 4294967295ul 11426b85037dbSmrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 11427b85037dbSmrg#if !BIG_OK 11428b85037dbSmrg your preprocessor is broken; 11429b85037dbSmrg#endif 11430b85037dbSmrg#if BIG_OK 11431b85037dbSmrg#else 11432b85037dbSmrg your preprocessor is broken; 11433b85037dbSmrg#endif 11434b85037dbSmrgstatic long long int bignum = -9223372036854775807LL; 11435b85037dbSmrgstatic unsigned long long int ubignum = BIG64; 11436b85037dbSmrg 11437b85037dbSmrgstruct incomplete_array 11438b85037dbSmrg{ 11439b85037dbSmrg int datasize; 11440b85037dbSmrg double data[]; 11441b85037dbSmrg}; 11442b85037dbSmrg 11443b85037dbSmrgstruct named_init { 11444b85037dbSmrg int number; 11445b85037dbSmrg const wchar_t *name; 11446b85037dbSmrg double average; 11447b85037dbSmrg}; 11448b85037dbSmrg 11449b85037dbSmrgtypedef const char *ccp; 11450b85037dbSmrg 11451b85037dbSmrgstatic inline int 11452b85037dbSmrgtest_restrict (ccp restrict text) 11453b85037dbSmrg{ 11454b85037dbSmrg // See if C++-style comments work. 11455b85037dbSmrg // Iterate through items via the restricted pointer. 11456b85037dbSmrg // Also check for declarations in for loops. 11457b85037dbSmrg for (unsigned int i = 0; *(text+i) != '\0'; ++i) 11458b85037dbSmrg continue; 11459b85037dbSmrg return 0; 11460b85037dbSmrg} 11461b85037dbSmrg 11462b85037dbSmrg// Check varargs and va_copy. 11463b85037dbSmrgstatic void 11464b85037dbSmrgtest_varargs (const char *format, ...) 11465b85037dbSmrg{ 11466b85037dbSmrg va_list args; 11467b85037dbSmrg va_start (args, format); 11468b85037dbSmrg va_list args_copy; 11469b85037dbSmrg va_copy (args_copy, args); 11470b85037dbSmrg 11471b85037dbSmrg const char *str; 11472b85037dbSmrg int number; 11473b85037dbSmrg float fnumber; 11474b85037dbSmrg 11475b85037dbSmrg while (*format) 11476b85037dbSmrg { 11477b85037dbSmrg switch (*format++) 11478b85037dbSmrg { 11479b85037dbSmrg case 's': // string 11480b85037dbSmrg str = va_arg (args_copy, const char *); 11481b85037dbSmrg break; 11482b85037dbSmrg case 'd': // int 11483b85037dbSmrg number = va_arg (args_copy, int); 11484b85037dbSmrg break; 11485b85037dbSmrg case 'f': // float 11486b85037dbSmrg fnumber = va_arg (args_copy, double); 11487b85037dbSmrg break; 11488b85037dbSmrg default: 11489b85037dbSmrg break; 11490b85037dbSmrg } 11491b85037dbSmrg } 11492b85037dbSmrg va_end (args_copy); 11493b85037dbSmrg va_end (args); 11494b85037dbSmrg} 11495b85037dbSmrg 11496b85037dbSmrgint 11497b85037dbSmrgmain () 11498b85037dbSmrg{ 11499b85037dbSmrg 11500b85037dbSmrg // Check bool. 11501b85037dbSmrg _Bool success = false; 11502b85037dbSmrg 11503b85037dbSmrg // Check restrict. 11504b85037dbSmrg if (test_restrict ("String literal") == 0) 11505b85037dbSmrg success = true; 11506b85037dbSmrg char *restrict newvar = "Another string"; 11507b85037dbSmrg 11508b85037dbSmrg // Check varargs. 11509b85037dbSmrg test_varargs ("s, d' f .", "string", 65, 34.234); 11510b85037dbSmrg test_varargs_macros (); 11511b85037dbSmrg 11512b85037dbSmrg // Check flexible array members. 11513b85037dbSmrg struct incomplete_array *ia = 11514b85037dbSmrg malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 11515b85037dbSmrg ia->datasize = 10; 11516b85037dbSmrg for (int i = 0; i < ia->datasize; ++i) 11517b85037dbSmrg ia->data[i] = i * 1.234; 11518b85037dbSmrg 11519b85037dbSmrg // Check named initializers. 11520b85037dbSmrg struct named_init ni = { 11521b85037dbSmrg .number = 34, 11522b85037dbSmrg .name = L"Test wide string", 11523b85037dbSmrg .average = 543.34343, 11524b85037dbSmrg }; 11525b85037dbSmrg 11526b85037dbSmrg ni.number = 58; 11527b85037dbSmrg 11528b85037dbSmrg int dynamic_array[ni.number]; 11529b85037dbSmrg dynamic_array[ni.number - 1] = 543; 11530b85037dbSmrg 11531b85037dbSmrg // work around unused variable warnings 11532b85037dbSmrg return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 11533b85037dbSmrg || dynamic_array[ni.number - 1] != 543); 11534b85037dbSmrg 11535b85037dbSmrg ; 11536b85037dbSmrg return 0; 11537b85037dbSmrg} 11538b85037dbSmrg_ACEOF 1153928515619Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 11540b85037dbSmrgdo 11541b85037dbSmrg CC="$ac_save_CC $ac_arg" 11542b85037dbSmrg if ac_fn_c_try_compile "$LINENO"; then : 11543b85037dbSmrg ac_cv_prog_cc_c99=$ac_arg 11544b85037dbSmrgfi 11545b85037dbSmrgrm -f core conftest.err conftest.$ac_objext 11546b85037dbSmrg test "x$ac_cv_prog_cc_c99" != "xno" && break 11547b85037dbSmrgdone 11548b85037dbSmrgrm -f conftest.$ac_ext 11549b85037dbSmrgCC=$ac_save_CC 11550b85037dbSmrg 11551b85037dbSmrgfi 11552b85037dbSmrg# AC_CACHE_VAL 11553b85037dbSmrgcase "x$ac_cv_prog_cc_c99" in 11554b85037dbSmrg x) 11555b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 11556b85037dbSmrg$as_echo "none needed" >&6; } ;; 11557b85037dbSmrg xno) 11558b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 11559b85037dbSmrg$as_echo "unsupported" >&6; } ;; 11560b85037dbSmrg *) 11561b85037dbSmrg CC="$CC $ac_cv_prog_cc_c99" 11562b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 11563b85037dbSmrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 11564b85037dbSmrgesac 11565b85037dbSmrgif test "x$ac_cv_prog_cc_c99" != xno; then : 11566b85037dbSmrg 11567b85037dbSmrgfi 11568b85037dbSmrg 11569b85037dbSmrg 11570b85037dbSmrg 11571b85037dbSmrg 1157228515619Smrg 1157328515619Smrg 11574302b15bdSmrgac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 11575302b15bdSmrgif test "x$ac_cv_have_decl___clang__" = xyes; then : 11576302b15bdSmrg CLANGCC="yes" 11577302b15bdSmrgelse 11578302b15bdSmrg CLANGCC="no" 11579302b15bdSmrgfi 11580302b15bdSmrg 11581302b15bdSmrgac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 11582302b15bdSmrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 11583302b15bdSmrg INTELCC="yes" 11584302b15bdSmrgelse 11585302b15bdSmrg INTELCC="no" 11586302b15bdSmrgfi 11587302b15bdSmrg 11588302b15bdSmrgac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 11589302b15bdSmrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 11590302b15bdSmrg SUNCC="yes" 11591302b15bdSmrgelse 11592302b15bdSmrg SUNCC="no" 11593302b15bdSmrgfi 11594302b15bdSmrg 11595302b15bdSmrg 11596302b15bdSmrg 11597302b15bdSmrg 11598b85037dbSmrg 11599b85037dbSmrg 11600b85037dbSmrg 11601b85037dbSmrg 1160228515619Smrg 11603b85037dbSmrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 11604b85037dbSmrg if test -n "$ac_tool_prefix"; then 11605b85037dbSmrg # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 11606b85037dbSmrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2 11607b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11608b85037dbSmrg$as_echo_n "checking for $ac_word... " >&6; } 11609302b15bdSmrgif ${ac_cv_path_PKG_CONFIG+:} false; then : 11610b85037dbSmrg $as_echo_n "(cached) " >&6 11611b85037dbSmrgelse 11612b85037dbSmrg case $PKG_CONFIG in 11613b85037dbSmrg [\\/]* | ?:[\\/]*) 11614b85037dbSmrg ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 11615b85037dbSmrg ;; 11616b85037dbSmrg *) 11617b85037dbSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11618b85037dbSmrgfor as_dir in $PATH 11619b85037dbSmrgdo 11620b85037dbSmrg IFS=$as_save_IFS 11621b85037dbSmrg test -z "$as_dir" && as_dir=. 11622b85037dbSmrg for ac_exec_ext in '' $ac_executable_extensions; do 1162328515619Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11624b85037dbSmrg ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11625b85037dbSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11626b85037dbSmrg break 2 11627b85037dbSmrg fi 11628b85037dbSmrgdone 11629b85037dbSmrg done 11630b85037dbSmrgIFS=$as_save_IFS 11631b85037dbSmrg 11632b85037dbSmrg ;; 11633b85037dbSmrgesac 11634b85037dbSmrgfi 11635b85037dbSmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG 11636b85037dbSmrgif test -n "$PKG_CONFIG"; then 11637b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 11638b85037dbSmrg$as_echo "$PKG_CONFIG" >&6; } 11639b85037dbSmrgelse 11640b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11641b85037dbSmrg$as_echo "no" >&6; } 11642b85037dbSmrgfi 11643b85037dbSmrg 11644b85037dbSmrg 11645b85037dbSmrgfi 11646b85037dbSmrgif test -z "$ac_cv_path_PKG_CONFIG"; then 11647b85037dbSmrg ac_pt_PKG_CONFIG=$PKG_CONFIG 11648b85037dbSmrg # Extract the first word of "pkg-config", so it can be a program name with args. 11649b85037dbSmrgset dummy pkg-config; ac_word=$2 11650b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11651b85037dbSmrg$as_echo_n "checking for $ac_word... " >&6; } 11652302b15bdSmrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 11653b85037dbSmrg $as_echo_n "(cached) " >&6 11654b85037dbSmrgelse 11655b85037dbSmrg case $ac_pt_PKG_CONFIG in 11656b85037dbSmrg [\\/]* | ?:[\\/]*) 11657b85037dbSmrg ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 11658b85037dbSmrg ;; 11659b85037dbSmrg *) 11660b85037dbSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11661b85037dbSmrgfor as_dir in $PATH 11662b85037dbSmrgdo 11663b85037dbSmrg IFS=$as_save_IFS 11664b85037dbSmrg test -z "$as_dir" && as_dir=. 11665b85037dbSmrg for ac_exec_ext in '' $ac_executable_extensions; do 1166628515619Smrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11667b85037dbSmrg ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11668b85037dbSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11669b85037dbSmrg break 2 11670b85037dbSmrg fi 11671b85037dbSmrgdone 11672b85037dbSmrg done 11673b85037dbSmrgIFS=$as_save_IFS 11674b85037dbSmrg 11675b85037dbSmrg ;; 11676b85037dbSmrgesac 11677b85037dbSmrgfi 11678b85037dbSmrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 11679b85037dbSmrgif test -n "$ac_pt_PKG_CONFIG"; then 11680b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 11681b85037dbSmrg$as_echo "$ac_pt_PKG_CONFIG" >&6; } 11682b85037dbSmrgelse 11683b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11684b85037dbSmrg$as_echo "no" >&6; } 11685b85037dbSmrgfi 11686b85037dbSmrg 11687b85037dbSmrg if test "x$ac_pt_PKG_CONFIG" = x; then 11688b85037dbSmrg PKG_CONFIG="" 11689b85037dbSmrg else 11690b85037dbSmrg case $cross_compiling:$ac_tool_warned in 11691b85037dbSmrgyes:) 11692b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11693b85037dbSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11694b85037dbSmrgac_tool_warned=yes ;; 11695b85037dbSmrgesac 11696b85037dbSmrg PKG_CONFIG=$ac_pt_PKG_CONFIG 11697b85037dbSmrg fi 11698b85037dbSmrgelse 11699b85037dbSmrg PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 11700b85037dbSmrgfi 11701b85037dbSmrg 11702b85037dbSmrgfi 11703b85037dbSmrgif test -n "$PKG_CONFIG"; then 11704b85037dbSmrg _pkg_min_version=0.9.0 11705b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 11706b85037dbSmrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 11707b85037dbSmrg if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 11708b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11709b85037dbSmrg$as_echo "yes" >&6; } 11710b85037dbSmrg else 11711b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11712b85037dbSmrg$as_echo "no" >&6; } 11713b85037dbSmrg PKG_CONFIG="" 11714b85037dbSmrg fi 11715b85037dbSmrgfi 11716b85037dbSmrg 11717b85037dbSmrg 11718b85037dbSmrg 11719b85037dbSmrg 11720302b15bdSmrg 1172128515619Smrg# Check whether --enable-selective-werror was given. 1172228515619Smrgif test "${enable_selective_werror+set}" = set; then : 1172328515619Smrg enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 11724b85037dbSmrgelse 1172528515619Smrg SELECTIVE_WERROR=yes 11726b85037dbSmrgfi 11727b85037dbSmrg 11728b85037dbSmrg 11729b85037dbSmrg 11730b85037dbSmrg 11731b85037dbSmrg 1173228515619Smrg# -v is too short to test reliably with XORG_TESTSET_CFLAG 1173328515619Smrgif test "x$SUNCC" = "xyes"; then 1173428515619Smrg BASE_CFLAGS="-v" 1173528515619Smrgelse 1173628515619Smrg BASE_CFLAGS="" 1173728515619Smrgfi 11738b85037dbSmrg 1173928515619Smrg# This chunk of warnings were those that existed in the legacy CWARNFLAGS 11740302b15bdSmrg 1174128515619Smrg 1174228515619Smrg 1174328515619Smrg 1174428515619Smrg 1174528515619Smrg 1174628515619Smrg 1174728515619Smrg 1174828515619Smrg 1174928515619Smrg 1175028515619Smrg 1175128515619Smrg 1175228515619Smrg 1175328515619Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1175428515619Smrg 1175528515619Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1175628515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1175728515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1175828515619Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1175928515619Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 1176028515619Smrg $as_echo_n "(cached) " >&6 11761b85037dbSmrgelse 1176228515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1176328515619Smrg/* end confdefs.h. */ 1176428515619Smrgint i; 1176528515619Smrg_ACEOF 1176628515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1176728515619Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1176828515619Smrgelse 1176928515619Smrg xorg_cv_cc_flag_unknown_warning_option=no 1177028515619Smrgfi 1177128515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1177228515619Smrgfi 1177328515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1177428515619Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1177528515619Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1177628515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 11777b85037dbSmrgfi 11778b85037dbSmrg 1177928515619Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1178028515619Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1178128515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1178228515619Smrg fi 1178328515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1178428515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1178528515619Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1178628515619Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 1178728515619Smrg $as_echo_n "(cached) " >&6 1178828515619Smrgelse 1178928515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11790302b15bdSmrg/* end confdefs.h. */ 1179128515619Smrgint i; 11792302b15bdSmrg_ACEOF 11793302b15bdSmrgif ac_fn_c_try_compile "$LINENO"; then : 1179428515619Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 11795b85037dbSmrgelse 1179628515619Smrg xorg_cv_cc_flag_unused_command_line_argument=no 11797b85037dbSmrgfi 11798302b15bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11799b85037dbSmrgfi 1180028515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1180128515619Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1180228515619Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1180328515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 11804b85037dbSmrgfi 11805302b15bdSmrg 1180628515619Smrgfound="no" 11807b85037dbSmrg 1180828515619Smrg if test $found = "no" ; then 1180928515619Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 1181028515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1181128515619Smrg fi 11812b85037dbSmrg 1181328515619Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 1181428515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1181528515619Smrg fi 11816b85037dbSmrg 1181728515619Smrg CFLAGS="$CFLAGS -Wall" 11818b85037dbSmrg 1181928515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wall" >&5 1182028515619Smrg$as_echo_n "checking if $CC supports-Wall... " >&6; } 1182128515619Smrg cacheid=xorg_cv_cc_flag__Wall 1182228515619Smrg if eval \${$cacheid+:} false; then : 1182328515619Smrg $as_echo_n "(cached) " >&6 1182428515619Smrgelse 1182528515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1182628515619Smrg/* end confdefs.h. */ 1182728515619Smrgint i; 1182828515619Smrgint 1182928515619Smrgmain () 1183028515619Smrg{ 1183128515619Smrg 1183228515619Smrg ; 1183328515619Smrg return 0; 1183428515619Smrg} 11835b85037dbSmrg_ACEOF 1183628515619Smrgif ac_fn_c_try_link "$LINENO"; then : 1183728515619Smrg eval $cacheid=yes 1183828515619Smrgelse 1183928515619Smrg eval $cacheid=no 1184028515619Smrgfi 1184128515619Smrgrm -f core conftest.err conftest.$ac_objext \ 1184228515619Smrg conftest$ac_exeext conftest.$ac_ext 1184328515619Smrgfi 11844b85037dbSmrg 11845b85037dbSmrg 1184628515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 11847b85037dbSmrg 1184828515619Smrg eval supported=\$$cacheid 1184928515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1185028515619Smrg$as_echo "$supported" >&6; } 1185128515619Smrg if test "$supported" = "yes" ; then 1185228515619Smrg BASE_CFLAGS="$BASE_CFLAGS -Wall" 1185328515619Smrg found="yes" 1185428515619Smrg fi 11855b85037dbSmrg fi 11856b85037dbSmrg 11857b85037dbSmrg 11858b85037dbSmrg 11859b85037dbSmrg 11860b85037dbSmrg 11861b85037dbSmrg 11862b85037dbSmrg 11863b85037dbSmrg 11864b85037dbSmrg 11865b85037dbSmrg 11866b85037dbSmrg 11867b85037dbSmrg 11868b85037dbSmrg 11869b85037dbSmrg 11870b85037dbSmrg 1187128515619Smrgxorg_testset_save_CFLAGS="$CFLAGS" 11872b85037dbSmrg 1187328515619Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1187428515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1187528515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1187628515619Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1187728515619Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 1187828515619Smrg $as_echo_n "(cached) " >&6 1187928515619Smrgelse 1188028515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1188128515619Smrg/* end confdefs.h. */ 1188228515619Smrgint i; 1188328515619Smrg_ACEOF 1188428515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1188528515619Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1188628515619Smrgelse 1188728515619Smrg xorg_cv_cc_flag_unknown_warning_option=no 11888b85037dbSmrgfi 1188928515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11890b85037dbSmrgfi 1189128515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1189228515619Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1189328515619Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1189428515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 11895b85037dbSmrgfi 11896b85037dbSmrg 1189728515619Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1189828515619Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1189928515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1190028515619Smrg fi 1190128515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1190228515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1190328515619Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1190428515619Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 1190528515619Smrg $as_echo_n "(cached) " >&6 1190628515619Smrgelse 1190728515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1190828515619Smrg/* end confdefs.h. */ 1190928515619Smrgint i; 1191028515619Smrg_ACEOF 1191128515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1191228515619Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1191328515619Smrgelse 1191428515619Smrg xorg_cv_cc_flag_unused_command_line_argument=no 11915b85037dbSmrgfi 1191628515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1191728515619Smrgfi 1191828515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1191928515619Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1192028515619Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1192128515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 11922b85037dbSmrgfi 11923b85037dbSmrg 1192428515619Smrgfound="no" 1192528515619Smrg 1192628515619Smrg if test $found = "no" ; then 1192728515619Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 1192828515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1192928515619Smrg fi 1193028515619Smrg 1193128515619Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 1193228515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1193328515619Smrg fi 1193428515619Smrg 1193528515619Smrg CFLAGS="$CFLAGS -Wpointer-arith" 1193628515619Smrg 1193728515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-arith" >&5 1193828515619Smrg$as_echo_n "checking if $CC supports-Wpointer-arith... " >&6; } 1193928515619Smrg cacheid=xorg_cv_cc_flag__Wpointer_arith 1194028515619Smrg if eval \${$cacheid+:} false; then : 1194128515619Smrg $as_echo_n "(cached) " >&6 1194228515619Smrgelse 1194328515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1194428515619Smrg/* end confdefs.h. */ 1194528515619Smrgint i; 1194628515619Smrgint 1194728515619Smrgmain () 1194828515619Smrg{ 1194928515619Smrg 1195028515619Smrg ; 1195128515619Smrg return 0; 1195228515619Smrg} 1195328515619Smrg_ACEOF 1195428515619Smrgif ac_fn_c_try_link "$LINENO"; then : 1195528515619Smrg eval $cacheid=yes 1195628515619Smrgelse 1195728515619Smrg eval $cacheid=no 11958b85037dbSmrgfi 1195928515619Smrgrm -f core conftest.err conftest.$ac_objext \ 1196028515619Smrg conftest$ac_exeext conftest.$ac_ext 11961b85037dbSmrgfi 11962b85037dbSmrg 11963b85037dbSmrg 1196428515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 11965b85037dbSmrg 1196628515619Smrg eval supported=\$$cacheid 1196728515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1196828515619Smrg$as_echo "$supported" >&6; } 1196928515619Smrg if test "$supported" = "yes" ; then 1197028515619Smrg BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 1197128515619Smrg found="yes" 1197228515619Smrg fi 1197328515619Smrg fi 11974b85037dbSmrg 11975b85037dbSmrg 11976b85037dbSmrg 11977b85037dbSmrg 11978b85037dbSmrg 11979b85037dbSmrg 11980b85037dbSmrg 11981b85037dbSmrg 11982b85037dbSmrg 11983b85037dbSmrg 11984b85037dbSmrg 11985b85037dbSmrg 11986b85037dbSmrg 11987b85037dbSmrg 11988b85037dbSmrg 1198928515619Smrgxorg_testset_save_CFLAGS="$CFLAGS" 11990b85037dbSmrg 1199128515619Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1199228515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1199328515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1199428515619Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1199528515619Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 1199628515619Smrg $as_echo_n "(cached) " >&6 1199728515619Smrgelse 1199828515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1199928515619Smrg/* end confdefs.h. */ 1200028515619Smrgint i; 1200128515619Smrg_ACEOF 1200228515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1200328515619Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1200428515619Smrgelse 1200528515619Smrg xorg_cv_cc_flag_unknown_warning_option=no 1200628515619Smrgfi 1200728515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1200828515619Smrgfi 1200928515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1201028515619Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1201128515619Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1201228515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1201328515619Smrgfi 1201428515619Smrg 1201528515619Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1201628515619Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1201728515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1201828515619Smrg fi 1201928515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1202028515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1202128515619Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1202228515619Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 1202328515619Smrg $as_echo_n "(cached) " >&6 1202428515619Smrgelse 1202528515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1202628515619Smrg/* end confdefs.h. */ 1202728515619Smrgint i; 1202828515619Smrg_ACEOF 1202928515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1203028515619Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1203128515619Smrgelse 1203228515619Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1203328515619Smrgfi 1203428515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1203528515619Smrgfi 1203628515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1203728515619Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1203828515619Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1203928515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1204028515619Smrgfi 1204128515619Smrg 1204228515619Smrgfound="no" 1204328515619Smrg 1204428515619Smrg if test $found = "no" ; then 1204528515619Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 1204628515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1204728515619Smrg fi 1204828515619Smrg 1204928515619Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 1205028515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1205128515619Smrg fi 1205228515619Smrg 1205328515619Smrg CFLAGS="$CFLAGS -Wmissing-declarations" 1205428515619Smrg 1205528515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-declarations" >&5 1205628515619Smrg$as_echo_n "checking if $CC supports-Wmissing-declarations... " >&6; } 1205728515619Smrg cacheid=xorg_cv_cc_flag__Wmissing_declarations 1205828515619Smrg if eval \${$cacheid+:} false; then : 1205928515619Smrg $as_echo_n "(cached) " >&6 1206028515619Smrgelse 1206128515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1206228515619Smrg/* end confdefs.h. */ 1206328515619Smrgint i; 1206428515619Smrgint 1206528515619Smrgmain () 1206628515619Smrg{ 1206728515619Smrg 1206828515619Smrg ; 1206928515619Smrg return 0; 1207028515619Smrg} 1207128515619Smrg_ACEOF 1207228515619Smrgif ac_fn_c_try_link "$LINENO"; then : 1207328515619Smrg eval $cacheid=yes 1207428515619Smrgelse 1207528515619Smrg eval $cacheid=no 1207628515619Smrgfi 1207728515619Smrgrm -f core conftest.err conftest.$ac_objext \ 1207828515619Smrg conftest$ac_exeext conftest.$ac_ext 1207928515619Smrgfi 1208028515619Smrg 1208128515619Smrg 1208228515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1208328515619Smrg 1208428515619Smrg eval supported=\$$cacheid 1208528515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1208628515619Smrg$as_echo "$supported" >&6; } 1208728515619Smrg if test "$supported" = "yes" ; then 1208828515619Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 1208928515619Smrg found="yes" 1209028515619Smrg fi 1209128515619Smrg fi 1209228515619Smrg 1209328515619Smrg 1209428515619Smrg 1209528515619Smrg 1209628515619Smrg 1209728515619Smrg 1209828515619Smrg 1209928515619Smrg 1210028515619Smrg 1210128515619Smrg 1210228515619Smrg 1210328515619Smrg 1210428515619Smrg 1210528515619Smrg 1210628515619Smrg 1210728515619Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1210828515619Smrg 1210928515619Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1211028515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1211128515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1211228515619Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1211328515619Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 1211428515619Smrg $as_echo_n "(cached) " >&6 1211528515619Smrgelse 1211628515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1211728515619Smrg/* end confdefs.h. */ 1211828515619Smrgint i; 1211928515619Smrg_ACEOF 1212028515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1212128515619Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1212228515619Smrgelse 1212328515619Smrg xorg_cv_cc_flag_unknown_warning_option=no 1212428515619Smrgfi 1212528515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1212628515619Smrgfi 1212728515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1212828515619Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1212928515619Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1213028515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1213128515619Smrgfi 1213228515619Smrg 1213328515619Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1213428515619Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1213528515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1213628515619Smrg fi 1213728515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1213828515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1213928515619Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1214028515619Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 1214128515619Smrg $as_echo_n "(cached) " >&6 1214228515619Smrgelse 1214328515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1214428515619Smrg/* end confdefs.h. */ 1214528515619Smrgint i; 1214628515619Smrg_ACEOF 1214728515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1214828515619Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1214928515619Smrgelse 1215028515619Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1215128515619Smrgfi 1215228515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1215328515619Smrgfi 1215428515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1215528515619Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1215628515619Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1215728515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1215828515619Smrgfi 1215928515619Smrg 1216028515619Smrgfound="no" 1216128515619Smrg 1216228515619Smrg if test $found = "no" ; then 1216328515619Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 1216428515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1216528515619Smrg fi 1216628515619Smrg 1216728515619Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 1216828515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1216928515619Smrg fi 1217028515619Smrg 1217128515619Smrg CFLAGS="$CFLAGS -Wformat=2" 1217228515619Smrg 1217328515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat=2" >&5 1217428515619Smrg$as_echo_n "checking if $CC supports-Wformat=2... " >&6; } 1217528515619Smrg cacheid=xorg_cv_cc_flag__Wformat_2 1217628515619Smrg if eval \${$cacheid+:} false; then : 1217728515619Smrg $as_echo_n "(cached) " >&6 1217828515619Smrgelse 1217928515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1218028515619Smrg/* end confdefs.h. */ 1218128515619Smrgint i; 1218228515619Smrgint 1218328515619Smrgmain () 1218428515619Smrg{ 1218528515619Smrg 1218628515619Smrg ; 1218728515619Smrg return 0; 1218828515619Smrg} 1218928515619Smrg_ACEOF 1219028515619Smrgif ac_fn_c_try_link "$LINENO"; then : 1219128515619Smrg eval $cacheid=yes 1219228515619Smrgelse 1219328515619Smrg eval $cacheid=no 1219428515619Smrgfi 1219528515619Smrgrm -f core conftest.err conftest.$ac_objext \ 1219628515619Smrg conftest$ac_exeext conftest.$ac_ext 1219728515619Smrgfi 1219828515619Smrg 1219928515619Smrg 1220028515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1220128515619Smrg 1220228515619Smrg eval supported=\$$cacheid 1220328515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1220428515619Smrg$as_echo "$supported" >&6; } 1220528515619Smrg if test "$supported" = "yes" ; then 1220628515619Smrg BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 1220728515619Smrg found="yes" 1220828515619Smrg fi 1220928515619Smrg fi 1221028515619Smrg 1221128515619Smrg if test $found = "no" ; then 1221228515619Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 1221328515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1221428515619Smrg fi 1221528515619Smrg 1221628515619Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 1221728515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1221828515619Smrg fi 1221928515619Smrg 1222028515619Smrg CFLAGS="$CFLAGS -Wformat" 1222128515619Smrg 1222228515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat" >&5 1222328515619Smrg$as_echo_n "checking if $CC supports-Wformat... " >&6; } 1222428515619Smrg cacheid=xorg_cv_cc_flag__Wformat 1222528515619Smrg if eval \${$cacheid+:} false; then : 1222628515619Smrg $as_echo_n "(cached) " >&6 1222728515619Smrgelse 1222828515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1222928515619Smrg/* end confdefs.h. */ 1223028515619Smrgint i; 1223128515619Smrgint 1223228515619Smrgmain () 1223328515619Smrg{ 1223428515619Smrg 1223528515619Smrg ; 1223628515619Smrg return 0; 1223728515619Smrg} 1223828515619Smrg_ACEOF 1223928515619Smrgif ac_fn_c_try_link "$LINENO"; then : 1224028515619Smrg eval $cacheid=yes 1224128515619Smrgelse 1224228515619Smrg eval $cacheid=no 1224328515619Smrgfi 1224428515619Smrgrm -f core conftest.err conftest.$ac_objext \ 1224528515619Smrg conftest$ac_exeext conftest.$ac_ext 1224628515619Smrgfi 1224728515619Smrg 1224828515619Smrg 1224928515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1225028515619Smrg 1225128515619Smrg eval supported=\$$cacheid 1225228515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1225328515619Smrg$as_echo "$supported" >&6; } 1225428515619Smrg if test "$supported" = "yes" ; then 1225528515619Smrg BASE_CFLAGS="$BASE_CFLAGS -Wformat" 1225628515619Smrg found="yes" 1225728515619Smrg fi 1225828515619Smrg fi 1225928515619Smrg 1226028515619Smrg 1226128515619Smrg 1226228515619Smrg 1226328515619Smrg 1226428515619Smrg 1226528515619Smrg 1226628515619Smrg 1226728515619Smrg 1226828515619Smrg 1226928515619Smrg 1227028515619Smrg 1227128515619Smrg 1227228515619Smrg 1227328515619Smrg 1227428515619Smrg 1227528515619Smrg 1227628515619Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1227728515619Smrg 1227828515619Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1227928515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1228028515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1228128515619Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1228228515619Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 1228328515619Smrg $as_echo_n "(cached) " >&6 1228428515619Smrgelse 1228528515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1228628515619Smrg/* end confdefs.h. */ 1228728515619Smrgint i; 1228828515619Smrg_ACEOF 1228928515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1229028515619Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1229128515619Smrgelse 1229228515619Smrg xorg_cv_cc_flag_unknown_warning_option=no 1229328515619Smrgfi 1229428515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1229528515619Smrgfi 1229628515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1229728515619Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1229828515619Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1229928515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1230028515619Smrgfi 1230128515619Smrg 1230228515619Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1230328515619Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1230428515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1230528515619Smrg fi 1230628515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1230728515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1230828515619Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1230928515619Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 1231028515619Smrg $as_echo_n "(cached) " >&6 1231128515619Smrgelse 1231228515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1231328515619Smrg/* end confdefs.h. */ 1231428515619Smrgint i; 1231528515619Smrg_ACEOF 1231628515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1231728515619Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1231828515619Smrgelse 1231928515619Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1232028515619Smrgfi 1232128515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1232228515619Smrgfi 1232328515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1232428515619Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1232528515619Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1232628515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1232728515619Smrgfi 1232828515619Smrg 1232928515619Smrgfound="no" 1233028515619Smrg 1233128515619Smrg if test $found = "no" ; then 1233228515619Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 1233328515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1233428515619Smrg fi 1233528515619Smrg 1233628515619Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 1233728515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1233828515619Smrg fi 1233928515619Smrg 1234028515619Smrg CFLAGS="$CFLAGS -Wstrict-prototypes" 1234128515619Smrg 1234228515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wstrict-prototypes" >&5 1234328515619Smrg$as_echo_n "checking if $CC supports-Wstrict-prototypes... " >&6; } 1234428515619Smrg cacheid=xorg_cv_cc_flag__Wstrict_prototypes 1234528515619Smrg if eval \${$cacheid+:} false; then : 1234628515619Smrg $as_echo_n "(cached) " >&6 1234728515619Smrgelse 1234828515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1234928515619Smrg/* end confdefs.h. */ 1235028515619Smrgint i; 1235128515619Smrgint 1235228515619Smrgmain () 1235328515619Smrg{ 1235428515619Smrg 1235528515619Smrg ; 1235628515619Smrg return 0; 1235728515619Smrg} 1235828515619Smrg_ACEOF 1235928515619Smrgif ac_fn_c_try_link "$LINENO"; then : 1236028515619Smrg eval $cacheid=yes 1236128515619Smrgelse 1236228515619Smrg eval $cacheid=no 1236328515619Smrgfi 1236428515619Smrgrm -f core conftest.err conftest.$ac_objext \ 1236528515619Smrg conftest$ac_exeext conftest.$ac_ext 1236628515619Smrgfi 1236728515619Smrg 1236828515619Smrg 1236928515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1237028515619Smrg 1237128515619Smrg eval supported=\$$cacheid 1237228515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1237328515619Smrg$as_echo "$supported" >&6; } 1237428515619Smrg if test "$supported" = "yes" ; then 1237528515619Smrg BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 1237628515619Smrg found="yes" 1237728515619Smrg fi 1237828515619Smrg fi 1237928515619Smrg 1238028515619Smrg 1238128515619Smrg 1238228515619Smrg 1238328515619Smrg 1238428515619Smrg 1238528515619Smrg 1238628515619Smrg 1238728515619Smrg 1238828515619Smrg 1238928515619Smrg 1239028515619Smrg 1239128515619Smrg 1239228515619Smrg 1239328515619Smrg 1239428515619Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1239528515619Smrg 1239628515619Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1239728515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1239828515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1239928515619Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1240028515619Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 1240128515619Smrg $as_echo_n "(cached) " >&6 1240228515619Smrgelse 1240328515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1240428515619Smrg/* end confdefs.h. */ 1240528515619Smrgint i; 1240628515619Smrg_ACEOF 1240728515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1240828515619Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1240928515619Smrgelse 1241028515619Smrg xorg_cv_cc_flag_unknown_warning_option=no 1241128515619Smrgfi 1241228515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1241328515619Smrgfi 1241428515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1241528515619Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1241628515619Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1241728515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1241828515619Smrgfi 1241928515619Smrg 1242028515619Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1242128515619Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1242228515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1242328515619Smrg fi 1242428515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1242528515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1242628515619Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1242728515619Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 1242828515619Smrg $as_echo_n "(cached) " >&6 1242928515619Smrgelse 1243028515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1243128515619Smrg/* end confdefs.h. */ 1243228515619Smrgint i; 1243328515619Smrg_ACEOF 1243428515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1243528515619Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1243628515619Smrgelse 1243728515619Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1243828515619Smrgfi 1243928515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1244028515619Smrgfi 1244128515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1244228515619Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1244328515619Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1244428515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1244528515619Smrgfi 1244628515619Smrg 1244728515619Smrgfound="no" 1244828515619Smrg 1244928515619Smrg if test $found = "no" ; then 1245028515619Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 1245128515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1245228515619Smrg fi 1245328515619Smrg 1245428515619Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 1245528515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1245628515619Smrg fi 1245728515619Smrg 1245828515619Smrg CFLAGS="$CFLAGS -Wmissing-prototypes" 1245928515619Smrg 1246028515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-prototypes" >&5 1246128515619Smrg$as_echo_n "checking if $CC supports-Wmissing-prototypes... " >&6; } 1246228515619Smrg cacheid=xorg_cv_cc_flag__Wmissing_prototypes 1246328515619Smrg if eval \${$cacheid+:} false; then : 1246428515619Smrg $as_echo_n "(cached) " >&6 1246528515619Smrgelse 1246628515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1246728515619Smrg/* end confdefs.h. */ 1246828515619Smrgint i; 1246928515619Smrgint 1247028515619Smrgmain () 1247128515619Smrg{ 1247228515619Smrg 1247328515619Smrg ; 1247428515619Smrg return 0; 1247528515619Smrg} 1247628515619Smrg_ACEOF 1247728515619Smrgif ac_fn_c_try_link "$LINENO"; then : 1247828515619Smrg eval $cacheid=yes 1247928515619Smrgelse 1248028515619Smrg eval $cacheid=no 1248128515619Smrgfi 1248228515619Smrgrm -f core conftest.err conftest.$ac_objext \ 1248328515619Smrg conftest$ac_exeext conftest.$ac_ext 1248428515619Smrgfi 1248528515619Smrg 1248628515619Smrg 1248728515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1248828515619Smrg 1248928515619Smrg eval supported=\$$cacheid 1249028515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1249128515619Smrg$as_echo "$supported" >&6; } 1249228515619Smrg if test "$supported" = "yes" ; then 1249328515619Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 1249428515619Smrg found="yes" 1249528515619Smrg fi 1249628515619Smrg fi 1249728515619Smrg 1249828515619Smrg 1249928515619Smrg 1250028515619Smrg 1250128515619Smrg 1250228515619Smrg 1250328515619Smrg 1250428515619Smrg 1250528515619Smrg 1250628515619Smrg 1250728515619Smrg 1250828515619Smrg 1250928515619Smrg 1251028515619Smrg 1251128515619Smrg 1251228515619Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1251328515619Smrg 1251428515619Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1251528515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1251628515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1251728515619Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1251828515619Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 1251928515619Smrg $as_echo_n "(cached) " >&6 1252028515619Smrgelse 1252128515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1252228515619Smrg/* end confdefs.h. */ 1252328515619Smrgint i; 1252428515619Smrg_ACEOF 1252528515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1252628515619Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1252728515619Smrgelse 1252828515619Smrg xorg_cv_cc_flag_unknown_warning_option=no 1252928515619Smrgfi 1253028515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1253128515619Smrgfi 1253228515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1253328515619Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1253428515619Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1253528515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1253628515619Smrgfi 1253728515619Smrg 1253828515619Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1253928515619Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1254028515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1254128515619Smrg fi 1254228515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1254328515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1254428515619Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1254528515619Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 1254628515619Smrg $as_echo_n "(cached) " >&6 1254728515619Smrgelse 1254828515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1254928515619Smrg/* end confdefs.h. */ 1255028515619Smrgint i; 1255128515619Smrg_ACEOF 1255228515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1255328515619Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1255428515619Smrgelse 1255528515619Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1255628515619Smrgfi 1255728515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1255828515619Smrgfi 1255928515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1256028515619Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1256128515619Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1256228515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1256328515619Smrgfi 1256428515619Smrg 1256528515619Smrgfound="no" 1256628515619Smrg 1256728515619Smrg if test $found = "no" ; then 1256828515619Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 1256928515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1257028515619Smrg fi 1257128515619Smrg 1257228515619Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 1257328515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1257428515619Smrg fi 1257528515619Smrg 1257628515619Smrg CFLAGS="$CFLAGS -Wnested-externs" 1257728515619Smrg 1257828515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnested-externs" >&5 1257928515619Smrg$as_echo_n "checking if $CC supports-Wnested-externs... " >&6; } 1258028515619Smrg cacheid=xorg_cv_cc_flag__Wnested_externs 1258128515619Smrg if eval \${$cacheid+:} false; then : 1258228515619Smrg $as_echo_n "(cached) " >&6 1258328515619Smrgelse 1258428515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1258528515619Smrg/* end confdefs.h. */ 1258628515619Smrgint i; 1258728515619Smrgint 1258828515619Smrgmain () 1258928515619Smrg{ 1259028515619Smrg 1259128515619Smrg ; 1259228515619Smrg return 0; 1259328515619Smrg} 1259428515619Smrg_ACEOF 1259528515619Smrgif ac_fn_c_try_link "$LINENO"; then : 1259628515619Smrg eval $cacheid=yes 1259728515619Smrgelse 1259828515619Smrg eval $cacheid=no 1259928515619Smrgfi 1260028515619Smrgrm -f core conftest.err conftest.$ac_objext \ 1260128515619Smrg conftest$ac_exeext conftest.$ac_ext 1260228515619Smrgfi 1260328515619Smrg 1260428515619Smrg 1260528515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1260628515619Smrg 1260728515619Smrg eval supported=\$$cacheid 1260828515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1260928515619Smrg$as_echo "$supported" >&6; } 1261028515619Smrg if test "$supported" = "yes" ; then 1261128515619Smrg BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 1261228515619Smrg found="yes" 1261328515619Smrg fi 1261428515619Smrg fi 1261528515619Smrg 1261628515619Smrg 1261728515619Smrg 1261828515619Smrg 1261928515619Smrg 1262028515619Smrg 1262128515619Smrg 1262228515619Smrg 1262328515619Smrg 1262428515619Smrg 1262528515619Smrg 1262628515619Smrg 1262728515619Smrg 1262828515619Smrg 1262928515619Smrg 1263028515619Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1263128515619Smrg 1263228515619Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1263328515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1263428515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1263528515619Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1263628515619Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 1263728515619Smrg $as_echo_n "(cached) " >&6 1263828515619Smrgelse 1263928515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1264028515619Smrg/* end confdefs.h. */ 1264128515619Smrgint i; 1264228515619Smrg_ACEOF 1264328515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1264428515619Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1264528515619Smrgelse 1264628515619Smrg xorg_cv_cc_flag_unknown_warning_option=no 1264728515619Smrgfi 1264828515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1264928515619Smrgfi 1265028515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1265128515619Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1265228515619Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1265328515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1265428515619Smrgfi 1265528515619Smrg 1265628515619Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1265728515619Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1265828515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1265928515619Smrg fi 1266028515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1266128515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1266228515619Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1266328515619Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 1266428515619Smrg $as_echo_n "(cached) " >&6 1266528515619Smrgelse 1266628515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1266728515619Smrg/* end confdefs.h. */ 1266828515619Smrgint i; 1266928515619Smrg_ACEOF 1267028515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1267128515619Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1267228515619Smrgelse 1267328515619Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1267428515619Smrgfi 1267528515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1267628515619Smrgfi 1267728515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1267828515619Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1267928515619Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1268028515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1268128515619Smrgfi 1268228515619Smrg 1268328515619Smrgfound="no" 1268428515619Smrg 1268528515619Smrg if test $found = "no" ; then 1268628515619Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 1268728515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1268828515619Smrg fi 1268928515619Smrg 1269028515619Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 1269128515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1269228515619Smrg fi 1269328515619Smrg 1269428515619Smrg CFLAGS="$CFLAGS -Wbad-function-cast" 1269528515619Smrg 1269628515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wbad-function-cast" >&5 1269728515619Smrg$as_echo_n "checking if $CC supports-Wbad-function-cast... " >&6; } 1269828515619Smrg cacheid=xorg_cv_cc_flag__Wbad_function_cast 1269928515619Smrg if eval \${$cacheid+:} false; then : 1270028515619Smrg $as_echo_n "(cached) " >&6 1270128515619Smrgelse 1270228515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1270328515619Smrg/* end confdefs.h. */ 1270428515619Smrgint i; 1270528515619Smrgint 1270628515619Smrgmain () 1270728515619Smrg{ 1270828515619Smrg 1270928515619Smrg ; 1271028515619Smrg return 0; 1271128515619Smrg} 1271228515619Smrg_ACEOF 1271328515619Smrgif ac_fn_c_try_link "$LINENO"; then : 1271428515619Smrg eval $cacheid=yes 1271528515619Smrgelse 1271628515619Smrg eval $cacheid=no 1271728515619Smrgfi 1271828515619Smrgrm -f core conftest.err conftest.$ac_objext \ 1271928515619Smrg conftest$ac_exeext conftest.$ac_ext 1272028515619Smrgfi 1272128515619Smrg 1272228515619Smrg 1272328515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1272428515619Smrg 1272528515619Smrg eval supported=\$$cacheid 1272628515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1272728515619Smrg$as_echo "$supported" >&6; } 1272828515619Smrg if test "$supported" = "yes" ; then 1272928515619Smrg BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 1273028515619Smrg found="yes" 1273128515619Smrg fi 1273228515619Smrg fi 1273328515619Smrg 1273428515619Smrg 1273528515619Smrg 1273628515619Smrg 1273728515619Smrg 1273828515619Smrg 1273928515619Smrg 1274028515619Smrg 1274128515619Smrg 1274228515619Smrg 1274328515619Smrg 1274428515619Smrg 1274528515619Smrg 1274628515619Smrg 1274728515619Smrg 1274828515619Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1274928515619Smrg 1275028515619Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1275128515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1275228515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1275328515619Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1275428515619Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 1275528515619Smrg $as_echo_n "(cached) " >&6 1275628515619Smrgelse 1275728515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1275828515619Smrg/* end confdefs.h. */ 1275928515619Smrgint i; 1276028515619Smrg_ACEOF 1276128515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1276228515619Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1276328515619Smrgelse 1276428515619Smrg xorg_cv_cc_flag_unknown_warning_option=no 1276528515619Smrgfi 1276628515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1276728515619Smrgfi 1276828515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1276928515619Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1277028515619Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1277128515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1277228515619Smrgfi 1277328515619Smrg 1277428515619Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1277528515619Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1277628515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1277728515619Smrg fi 1277828515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1277928515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1278028515619Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1278128515619Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 1278228515619Smrg $as_echo_n "(cached) " >&6 1278328515619Smrgelse 1278428515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1278528515619Smrg/* end confdefs.h. */ 1278628515619Smrgint i; 1278728515619Smrg_ACEOF 1278828515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1278928515619Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1279028515619Smrgelse 1279128515619Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1279228515619Smrgfi 1279328515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1279428515619Smrgfi 1279528515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1279628515619Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1279728515619Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1279828515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1279928515619Smrgfi 1280028515619Smrg 1280128515619Smrgfound="no" 1280228515619Smrg 1280328515619Smrg if test $found = "no" ; then 1280428515619Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 1280528515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1280628515619Smrg fi 1280728515619Smrg 1280828515619Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 1280928515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1281028515619Smrg fi 1281128515619Smrg 1281228515619Smrg CFLAGS="$CFLAGS -Wold-style-definition" 1281328515619Smrg 1281428515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wold-style-definition" >&5 1281528515619Smrg$as_echo_n "checking if $CC supports-Wold-style-definition... " >&6; } 1281628515619Smrg cacheid=xorg_cv_cc_flag__Wold_style_definition 1281728515619Smrg if eval \${$cacheid+:} false; then : 1281828515619Smrg $as_echo_n "(cached) " >&6 1281928515619Smrgelse 1282028515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1282128515619Smrg/* end confdefs.h. */ 1282228515619Smrgint i; 1282328515619Smrgint 1282428515619Smrgmain () 1282528515619Smrg{ 1282628515619Smrg 1282728515619Smrg ; 1282828515619Smrg return 0; 1282928515619Smrg} 1283028515619Smrg_ACEOF 1283128515619Smrgif ac_fn_c_try_link "$LINENO"; then : 1283228515619Smrg eval $cacheid=yes 1283328515619Smrgelse 1283428515619Smrg eval $cacheid=no 1283528515619Smrgfi 1283628515619Smrgrm -f core conftest.err conftest.$ac_objext \ 1283728515619Smrg conftest$ac_exeext conftest.$ac_ext 1283828515619Smrgfi 1283928515619Smrg 1284028515619Smrg 1284128515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1284228515619Smrg 1284328515619Smrg eval supported=\$$cacheid 1284428515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1284528515619Smrg$as_echo "$supported" >&6; } 1284628515619Smrg if test "$supported" = "yes" ; then 1284728515619Smrg BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 1284828515619Smrg found="yes" 1284928515619Smrg fi 1285028515619Smrg fi 1285128515619Smrg 1285228515619Smrg 1285328515619Smrg 1285428515619Smrg 1285528515619Smrg 1285628515619Smrg 1285728515619Smrg 1285828515619Smrg 1285928515619Smrg 1286028515619Smrg 1286128515619Smrg 1286228515619Smrg 1286328515619Smrg 1286428515619Smrg 1286528515619Smrg 1286628515619Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1286728515619Smrg 1286828515619Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1286928515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1287028515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1287128515619Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1287228515619Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 1287328515619Smrg $as_echo_n "(cached) " >&6 1287428515619Smrgelse 1287528515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1287628515619Smrg/* end confdefs.h. */ 1287728515619Smrgint i; 1287828515619Smrg_ACEOF 1287928515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1288028515619Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1288128515619Smrgelse 1288228515619Smrg xorg_cv_cc_flag_unknown_warning_option=no 1288328515619Smrgfi 1288428515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1288528515619Smrgfi 1288628515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1288728515619Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1288828515619Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1288928515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1289028515619Smrgfi 1289128515619Smrg 1289228515619Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1289328515619Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1289428515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1289528515619Smrg fi 1289628515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1289728515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1289828515619Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1289928515619Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 1290028515619Smrg $as_echo_n "(cached) " >&6 1290128515619Smrgelse 1290228515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1290328515619Smrg/* end confdefs.h. */ 1290428515619Smrgint i; 1290528515619Smrg_ACEOF 1290628515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1290728515619Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1290828515619Smrgelse 1290928515619Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1291028515619Smrgfi 1291128515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1291228515619Smrgfi 1291328515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1291428515619Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1291528515619Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1291628515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1291728515619Smrgfi 1291828515619Smrg 1291928515619Smrgfound="no" 1292028515619Smrg 1292128515619Smrg if test $found = "no" ; then 1292228515619Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 1292328515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1292428515619Smrg fi 1292528515619Smrg 1292628515619Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 1292728515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1292828515619Smrg fi 1292928515619Smrg 1293028515619Smrg CFLAGS="$CFLAGS -Wdeclaration-after-statement" 1293128515619Smrg 1293228515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wdeclaration-after-statement" >&5 1293328515619Smrg$as_echo_n "checking if $CC supports-Wdeclaration-after-statement... " >&6; } 1293428515619Smrg cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 1293528515619Smrg if eval \${$cacheid+:} false; then : 1293628515619Smrg $as_echo_n "(cached) " >&6 1293728515619Smrgelse 1293828515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1293928515619Smrg/* end confdefs.h. */ 1294028515619Smrgint i; 1294128515619Smrgint 1294228515619Smrgmain () 1294328515619Smrg{ 1294428515619Smrg 1294528515619Smrg ; 1294628515619Smrg return 0; 1294728515619Smrg} 1294828515619Smrg_ACEOF 1294928515619Smrgif ac_fn_c_try_link "$LINENO"; then : 1295028515619Smrg eval $cacheid=yes 1295128515619Smrgelse 1295228515619Smrg eval $cacheid=no 1295328515619Smrgfi 1295428515619Smrgrm -f core conftest.err conftest.$ac_objext \ 1295528515619Smrg conftest$ac_exeext conftest.$ac_ext 1295628515619Smrgfi 1295728515619Smrg 1295828515619Smrg 1295928515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1296028515619Smrg 1296128515619Smrg eval supported=\$$cacheid 1296228515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1296328515619Smrg$as_echo "$supported" >&6; } 1296428515619Smrg if test "$supported" = "yes" ; then 1296528515619Smrg BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 1296628515619Smrg found="yes" 1296728515619Smrg fi 1296828515619Smrg fi 1296928515619Smrg 1297028515619Smrg 1297128515619Smrg 1297228515619Smrg 1297328515619Smrg 1297428515619Smrg# This chunk adds additional warnings that could catch undesired effects. 1297528515619Smrg 1297628515619Smrg 1297728515619Smrg 1297828515619Smrg 1297928515619Smrg 1298028515619Smrg 1298128515619Smrg 1298228515619Smrg 1298328515619Smrg 1298428515619Smrg 1298528515619Smrg 1298628515619Smrg 1298728515619Smrg 1298828515619Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1298928515619Smrg 1299028515619Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1299128515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1299228515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1299328515619Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1299428515619Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 1299528515619Smrg $as_echo_n "(cached) " >&6 1299628515619Smrgelse 1299728515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1299828515619Smrg/* end confdefs.h. */ 1299928515619Smrgint i; 1300028515619Smrg_ACEOF 1300128515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1300228515619Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1300328515619Smrgelse 1300428515619Smrg xorg_cv_cc_flag_unknown_warning_option=no 1300528515619Smrgfi 1300628515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1300728515619Smrgfi 1300828515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1300928515619Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1301028515619Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1301128515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1301228515619Smrgfi 1301328515619Smrg 1301428515619Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1301528515619Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1301628515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1301728515619Smrg fi 1301828515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1301928515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1302028515619Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1302128515619Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 1302228515619Smrg $as_echo_n "(cached) " >&6 1302328515619Smrgelse 1302428515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1302528515619Smrg/* end confdefs.h. */ 1302628515619Smrgint i; 1302728515619Smrg_ACEOF 1302828515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1302928515619Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1303028515619Smrgelse 1303128515619Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1303228515619Smrgfi 1303328515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1303428515619Smrgfi 1303528515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1303628515619Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1303728515619Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1303828515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1303928515619Smrgfi 1304028515619Smrg 1304128515619Smrgfound="no" 1304228515619Smrg 1304328515619Smrg if test $found = "no" ; then 1304428515619Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 1304528515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1304628515619Smrg fi 1304728515619Smrg 1304828515619Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 1304928515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1305028515619Smrg fi 1305128515619Smrg 1305228515619Smrg CFLAGS="$CFLAGS -Wunused" 1305328515619Smrg 1305428515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wunused" >&5 1305528515619Smrg$as_echo_n "checking if $CC supports-Wunused... " >&6; } 1305628515619Smrg cacheid=xorg_cv_cc_flag__Wunused 1305728515619Smrg if eval \${$cacheid+:} false; then : 1305828515619Smrg $as_echo_n "(cached) " >&6 1305928515619Smrgelse 1306028515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1306128515619Smrg/* end confdefs.h. */ 1306228515619Smrgint i; 1306328515619Smrgint 1306428515619Smrgmain () 1306528515619Smrg{ 1306628515619Smrg 1306728515619Smrg ; 1306828515619Smrg return 0; 1306928515619Smrg} 1307028515619Smrg_ACEOF 1307128515619Smrgif ac_fn_c_try_link "$LINENO"; then : 1307228515619Smrg eval $cacheid=yes 1307328515619Smrgelse 1307428515619Smrg eval $cacheid=no 1307528515619Smrgfi 1307628515619Smrgrm -f core conftest.err conftest.$ac_objext \ 1307728515619Smrg conftest$ac_exeext conftest.$ac_ext 1307828515619Smrgfi 1307928515619Smrg 1308028515619Smrg 1308128515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1308228515619Smrg 1308328515619Smrg eval supported=\$$cacheid 1308428515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1308528515619Smrg$as_echo "$supported" >&6; } 1308628515619Smrg if test "$supported" = "yes" ; then 1308728515619Smrg BASE_CFLAGS="$BASE_CFLAGS -Wunused" 1308828515619Smrg found="yes" 1308928515619Smrg fi 1309028515619Smrg fi 1309128515619Smrg 1309228515619Smrg 1309328515619Smrg 1309428515619Smrg 1309528515619Smrg 1309628515619Smrg 1309728515619Smrg 1309828515619Smrg 1309928515619Smrg 1310028515619Smrg 1310128515619Smrg 1310228515619Smrg 1310328515619Smrg 1310428515619Smrg 1310528515619Smrg 1310628515619Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1310728515619Smrg 1310828515619Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1310928515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1311028515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1311128515619Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1311228515619Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 1311328515619Smrg $as_echo_n "(cached) " >&6 1311428515619Smrgelse 1311528515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1311628515619Smrg/* end confdefs.h. */ 1311728515619Smrgint i; 1311828515619Smrg_ACEOF 1311928515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1312028515619Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1312128515619Smrgelse 1312228515619Smrg xorg_cv_cc_flag_unknown_warning_option=no 1312328515619Smrgfi 1312428515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1312528515619Smrgfi 1312628515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1312728515619Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1312828515619Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1312928515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1313028515619Smrgfi 1313128515619Smrg 1313228515619Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1313328515619Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1313428515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1313528515619Smrg fi 1313628515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1313728515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1313828515619Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1313928515619Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 1314028515619Smrg $as_echo_n "(cached) " >&6 1314128515619Smrgelse 1314228515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1314328515619Smrg/* end confdefs.h. */ 1314428515619Smrgint i; 1314528515619Smrg_ACEOF 1314628515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1314728515619Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1314828515619Smrgelse 1314928515619Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1315028515619Smrgfi 1315128515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1315228515619Smrgfi 1315328515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1315428515619Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1315528515619Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1315628515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1315728515619Smrgfi 1315828515619Smrg 1315928515619Smrgfound="no" 1316028515619Smrg 1316128515619Smrg if test $found = "no" ; then 1316228515619Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 1316328515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1316428515619Smrg fi 1316528515619Smrg 1316628515619Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 1316728515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1316828515619Smrg fi 1316928515619Smrg 1317028515619Smrg CFLAGS="$CFLAGS -Wuninitialized" 1317128515619Smrg 1317228515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wuninitialized" >&5 1317328515619Smrg$as_echo_n "checking if $CC supports-Wuninitialized... " >&6; } 1317428515619Smrg cacheid=xorg_cv_cc_flag__Wuninitialized 1317528515619Smrg if eval \${$cacheid+:} false; then : 1317628515619Smrg $as_echo_n "(cached) " >&6 1317728515619Smrgelse 1317828515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1317928515619Smrg/* end confdefs.h. */ 1318028515619Smrgint i; 1318128515619Smrgint 1318228515619Smrgmain () 1318328515619Smrg{ 1318428515619Smrg 1318528515619Smrg ; 1318628515619Smrg return 0; 1318728515619Smrg} 1318828515619Smrg_ACEOF 1318928515619Smrgif ac_fn_c_try_link "$LINENO"; then : 1319028515619Smrg eval $cacheid=yes 1319128515619Smrgelse 1319228515619Smrg eval $cacheid=no 1319328515619Smrgfi 1319428515619Smrgrm -f core conftest.err conftest.$ac_objext \ 1319528515619Smrg conftest$ac_exeext conftest.$ac_ext 1319628515619Smrgfi 1319728515619Smrg 1319828515619Smrg 1319928515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1320028515619Smrg 1320128515619Smrg eval supported=\$$cacheid 1320228515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1320328515619Smrg$as_echo "$supported" >&6; } 1320428515619Smrg if test "$supported" = "yes" ; then 1320528515619Smrg BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 1320628515619Smrg found="yes" 1320728515619Smrg fi 1320828515619Smrg fi 1320928515619Smrg 1321028515619Smrg 1321128515619Smrg 1321228515619Smrg 1321328515619Smrg 1321428515619Smrg 1321528515619Smrg 1321628515619Smrg 1321728515619Smrg 1321828515619Smrg 1321928515619Smrg 1322028515619Smrg 1322128515619Smrg 1322228515619Smrg 1322328515619Smrg 1322428515619Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1322528515619Smrg 1322628515619Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1322728515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1322828515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1322928515619Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1323028515619Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 1323128515619Smrg $as_echo_n "(cached) " >&6 1323228515619Smrgelse 1323328515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1323428515619Smrg/* end confdefs.h. */ 1323528515619Smrgint i; 1323628515619Smrg_ACEOF 1323728515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1323828515619Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1323928515619Smrgelse 1324028515619Smrg xorg_cv_cc_flag_unknown_warning_option=no 1324128515619Smrgfi 1324228515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1324328515619Smrgfi 1324428515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1324528515619Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1324628515619Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1324728515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1324828515619Smrgfi 1324928515619Smrg 1325028515619Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1325128515619Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1325228515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1325328515619Smrg fi 1325428515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1325528515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1325628515619Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1325728515619Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 1325828515619Smrg $as_echo_n "(cached) " >&6 1325928515619Smrgelse 1326028515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1326128515619Smrg/* end confdefs.h. */ 1326228515619Smrgint i; 1326328515619Smrg_ACEOF 1326428515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1326528515619Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1326628515619Smrgelse 1326728515619Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1326828515619Smrgfi 1326928515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1327028515619Smrgfi 1327128515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1327228515619Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1327328515619Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1327428515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1327528515619Smrgfi 1327628515619Smrg 1327728515619Smrgfound="no" 1327828515619Smrg 1327928515619Smrg if test $found = "no" ; then 1328028515619Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 1328128515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1328228515619Smrg fi 1328328515619Smrg 1328428515619Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 1328528515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1328628515619Smrg fi 1328728515619Smrg 1328828515619Smrg CFLAGS="$CFLAGS -Wshadow" 1328928515619Smrg 1329028515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wshadow" >&5 1329128515619Smrg$as_echo_n "checking if $CC supports-Wshadow... " >&6; } 1329228515619Smrg cacheid=xorg_cv_cc_flag__Wshadow 1329328515619Smrg if eval \${$cacheid+:} false; then : 1329428515619Smrg $as_echo_n "(cached) " >&6 1329528515619Smrgelse 1329628515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1329728515619Smrg/* end confdefs.h. */ 1329828515619Smrgint i; 1329928515619Smrgint 1330028515619Smrgmain () 1330128515619Smrg{ 1330228515619Smrg 1330328515619Smrg ; 1330428515619Smrg return 0; 1330528515619Smrg} 1330628515619Smrg_ACEOF 1330728515619Smrgif ac_fn_c_try_link "$LINENO"; then : 1330828515619Smrg eval $cacheid=yes 1330928515619Smrgelse 1331028515619Smrg eval $cacheid=no 1331128515619Smrgfi 1331228515619Smrgrm -f core conftest.err conftest.$ac_objext \ 1331328515619Smrg conftest$ac_exeext conftest.$ac_ext 1331428515619Smrgfi 1331528515619Smrg 1331628515619Smrg 1331728515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1331828515619Smrg 1331928515619Smrg eval supported=\$$cacheid 1332028515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1332128515619Smrg$as_echo "$supported" >&6; } 1332228515619Smrg if test "$supported" = "yes" ; then 1332328515619Smrg BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 1332428515619Smrg found="yes" 1332528515619Smrg fi 1332628515619Smrg fi 1332728515619Smrg 1332828515619Smrg 1332928515619Smrg 1333028515619Smrg 1333128515619Smrg 1333228515619Smrg 1333328515619Smrg 1333428515619Smrg 1333528515619Smrg 1333628515619Smrg 1333728515619Smrg 1333828515619Smrg 1333928515619Smrg 1334028515619Smrg 1334128515619Smrg 1334228515619Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1334328515619Smrg 1334428515619Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1334528515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1334628515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1334728515619Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1334828515619Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 1334928515619Smrg $as_echo_n "(cached) " >&6 1335028515619Smrgelse 1335128515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1335228515619Smrg/* end confdefs.h. */ 1335328515619Smrgint i; 1335428515619Smrg_ACEOF 1335528515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1335628515619Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1335728515619Smrgelse 1335828515619Smrg xorg_cv_cc_flag_unknown_warning_option=no 1335928515619Smrgfi 1336028515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1336128515619Smrgfi 1336228515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1336328515619Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1336428515619Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1336528515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1336628515619Smrgfi 1336728515619Smrg 1336828515619Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1336928515619Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1337028515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1337128515619Smrg fi 1337228515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1337328515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1337428515619Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1337528515619Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 1337628515619Smrg $as_echo_n "(cached) " >&6 1337728515619Smrgelse 1337828515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1337928515619Smrg/* end confdefs.h. */ 1338028515619Smrgint i; 1338128515619Smrg_ACEOF 1338228515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1338328515619Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1338428515619Smrgelse 1338528515619Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1338628515619Smrgfi 1338728515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1338828515619Smrgfi 1338928515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1339028515619Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1339128515619Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1339228515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1339328515619Smrgfi 1339428515619Smrg 1339528515619Smrgfound="no" 1339628515619Smrg 1339728515619Smrg if test $found = "no" ; then 1339828515619Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 1339928515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1340028515619Smrg fi 1340128515619Smrg 1340228515619Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 1340328515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1340428515619Smrg fi 1340528515619Smrg 1340628515619Smrg CFLAGS="$CFLAGS -Wcast-qual" 1340728515619Smrg 1340828515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wcast-qual" >&5 1340928515619Smrg$as_echo_n "checking if $CC supports-Wcast-qual... " >&6; } 1341028515619Smrg cacheid=xorg_cv_cc_flag__Wcast_qual 1341128515619Smrg if eval \${$cacheid+:} false; then : 1341228515619Smrg $as_echo_n "(cached) " >&6 1341328515619Smrgelse 1341428515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1341528515619Smrg/* end confdefs.h. */ 1341628515619Smrgint i; 1341728515619Smrgint 1341828515619Smrgmain () 1341928515619Smrg{ 1342028515619Smrg 1342128515619Smrg ; 1342228515619Smrg return 0; 1342328515619Smrg} 1342428515619Smrg_ACEOF 1342528515619Smrgif ac_fn_c_try_link "$LINENO"; then : 1342628515619Smrg eval $cacheid=yes 1342728515619Smrgelse 1342828515619Smrg eval $cacheid=no 1342928515619Smrgfi 1343028515619Smrgrm -f core conftest.err conftest.$ac_objext \ 1343128515619Smrg conftest$ac_exeext conftest.$ac_ext 1343228515619Smrgfi 1343328515619Smrg 1343428515619Smrg 1343528515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1343628515619Smrg 1343728515619Smrg eval supported=\$$cacheid 1343828515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1343928515619Smrg$as_echo "$supported" >&6; } 1344028515619Smrg if test "$supported" = "yes" ; then 1344128515619Smrg BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 1344228515619Smrg found="yes" 1344328515619Smrg fi 1344428515619Smrg fi 1344528515619Smrg 1344628515619Smrg 1344728515619Smrg 1344828515619Smrg 1344928515619Smrg 1345028515619Smrg 1345128515619Smrg 1345228515619Smrg 1345328515619Smrg 1345428515619Smrg 1345528515619Smrg 1345628515619Smrg 1345728515619Smrg 1345828515619Smrg 1345928515619Smrg 1346028515619Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1346128515619Smrg 1346228515619Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1346328515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1346428515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1346528515619Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1346628515619Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 1346728515619Smrg $as_echo_n "(cached) " >&6 1346828515619Smrgelse 1346928515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1347028515619Smrg/* end confdefs.h. */ 1347128515619Smrgint i; 1347228515619Smrg_ACEOF 1347328515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1347428515619Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1347528515619Smrgelse 1347628515619Smrg xorg_cv_cc_flag_unknown_warning_option=no 1347728515619Smrgfi 1347828515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1347928515619Smrgfi 1348028515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1348128515619Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1348228515619Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1348328515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1348428515619Smrgfi 1348528515619Smrg 1348628515619Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1348728515619Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1348828515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1348928515619Smrg fi 1349028515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1349128515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1349228515619Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1349328515619Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 1349428515619Smrg $as_echo_n "(cached) " >&6 1349528515619Smrgelse 1349628515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1349728515619Smrg/* end confdefs.h. */ 1349828515619Smrgint i; 1349928515619Smrg_ACEOF 1350028515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1350128515619Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1350228515619Smrgelse 1350328515619Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1350428515619Smrgfi 1350528515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1350628515619Smrgfi 1350728515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1350828515619Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1350928515619Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1351028515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1351128515619Smrgfi 1351228515619Smrg 1351328515619Smrgfound="no" 1351428515619Smrg 1351528515619Smrg if test $found = "no" ; then 1351628515619Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 1351728515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1351828515619Smrg fi 1351928515619Smrg 1352028515619Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 1352128515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1352228515619Smrg fi 1352328515619Smrg 1352428515619Smrg CFLAGS="$CFLAGS -Wmissing-noreturn" 1352528515619Smrg 1352628515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-noreturn" >&5 1352728515619Smrg$as_echo_n "checking if $CC supports-Wmissing-noreturn... " >&6; } 1352828515619Smrg cacheid=xorg_cv_cc_flag__Wmissing_noreturn 1352928515619Smrg if eval \${$cacheid+:} false; then : 1353028515619Smrg $as_echo_n "(cached) " >&6 1353128515619Smrgelse 1353228515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1353328515619Smrg/* end confdefs.h. */ 1353428515619Smrgint i; 1353528515619Smrgint 1353628515619Smrgmain () 1353728515619Smrg{ 1353828515619Smrg 1353928515619Smrg ; 1354028515619Smrg return 0; 1354128515619Smrg} 1354228515619Smrg_ACEOF 1354328515619Smrgif ac_fn_c_try_link "$LINENO"; then : 1354428515619Smrg eval $cacheid=yes 1354528515619Smrgelse 1354628515619Smrg eval $cacheid=no 1354728515619Smrgfi 1354828515619Smrgrm -f core conftest.err conftest.$ac_objext \ 1354928515619Smrg conftest$ac_exeext conftest.$ac_ext 1355028515619Smrgfi 1355128515619Smrg 1355228515619Smrg 1355328515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1355428515619Smrg 1355528515619Smrg eval supported=\$$cacheid 1355628515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1355728515619Smrg$as_echo "$supported" >&6; } 1355828515619Smrg if test "$supported" = "yes" ; then 1355928515619Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 1356028515619Smrg found="yes" 1356128515619Smrg fi 1356228515619Smrg fi 1356328515619Smrg 1356428515619Smrg 1356528515619Smrg 1356628515619Smrg 1356728515619Smrg 1356828515619Smrg 1356928515619Smrg 1357028515619Smrg 1357128515619Smrg 1357228515619Smrg 1357328515619Smrg 1357428515619Smrg 1357528515619Smrg 1357628515619Smrg 1357728515619Smrg 1357828515619Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1357928515619Smrg 1358028515619Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1358128515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1358228515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1358328515619Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1358428515619Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 1358528515619Smrg $as_echo_n "(cached) " >&6 1358628515619Smrgelse 1358728515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1358828515619Smrg/* end confdefs.h. */ 1358928515619Smrgint i; 1359028515619Smrg_ACEOF 1359128515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1359228515619Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1359328515619Smrgelse 1359428515619Smrg xorg_cv_cc_flag_unknown_warning_option=no 1359528515619Smrgfi 1359628515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1359728515619Smrgfi 1359828515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1359928515619Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1360028515619Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1360128515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1360228515619Smrgfi 1360328515619Smrg 1360428515619Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1360528515619Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1360628515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1360728515619Smrg fi 1360828515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1360928515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1361028515619Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1361128515619Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 1361228515619Smrg $as_echo_n "(cached) " >&6 1361328515619Smrgelse 1361428515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1361528515619Smrg/* end confdefs.h. */ 1361628515619Smrgint i; 1361728515619Smrg_ACEOF 1361828515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1361928515619Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1362028515619Smrgelse 1362128515619Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1362228515619Smrgfi 1362328515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1362428515619Smrgfi 1362528515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1362628515619Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1362728515619Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1362828515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1362928515619Smrgfi 1363028515619Smrg 1363128515619Smrgfound="no" 1363228515619Smrg 1363328515619Smrg if test $found = "no" ; then 1363428515619Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 1363528515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1363628515619Smrg fi 1363728515619Smrg 1363828515619Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 1363928515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1364028515619Smrg fi 1364128515619Smrg 1364228515619Smrg CFLAGS="$CFLAGS -Wmissing-format-attribute" 1364328515619Smrg 1364428515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-format-attribute" >&5 1364528515619Smrg$as_echo_n "checking if $CC supports-Wmissing-format-attribute... " >&6; } 1364628515619Smrg cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 1364728515619Smrg if eval \${$cacheid+:} false; then : 1364828515619Smrg $as_echo_n "(cached) " >&6 1364928515619Smrgelse 1365028515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1365128515619Smrg/* end confdefs.h. */ 1365228515619Smrgint i; 1365328515619Smrgint 1365428515619Smrgmain () 1365528515619Smrg{ 1365628515619Smrg 1365728515619Smrg ; 1365828515619Smrg return 0; 1365928515619Smrg} 1366028515619Smrg_ACEOF 1366128515619Smrgif ac_fn_c_try_link "$LINENO"; then : 1366228515619Smrg eval $cacheid=yes 1366328515619Smrgelse 1366428515619Smrg eval $cacheid=no 1366528515619Smrgfi 1366628515619Smrgrm -f core conftest.err conftest.$ac_objext \ 1366728515619Smrg conftest$ac_exeext conftest.$ac_ext 1366828515619Smrgfi 1366928515619Smrg 1367028515619Smrg 1367128515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1367228515619Smrg 1367328515619Smrg eval supported=\$$cacheid 1367428515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1367528515619Smrg$as_echo "$supported" >&6; } 1367628515619Smrg if test "$supported" = "yes" ; then 1367728515619Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 1367828515619Smrg found="yes" 1367928515619Smrg fi 1368028515619Smrg fi 1368128515619Smrg 1368228515619Smrg 1368328515619Smrg 1368428515619Smrg 1368528515619Smrg 1368628515619Smrg 1368728515619Smrg 1368828515619Smrg 1368928515619Smrg 1369028515619Smrg 1369128515619Smrg 1369228515619Smrg 1369328515619Smrg 1369428515619Smrg 1369528515619Smrg 1369628515619Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1369728515619Smrg 1369828515619Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1369928515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1370028515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1370128515619Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1370228515619Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 1370328515619Smrg $as_echo_n "(cached) " >&6 1370428515619Smrgelse 1370528515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1370628515619Smrg/* end confdefs.h. */ 1370728515619Smrgint i; 1370828515619Smrg_ACEOF 1370928515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1371028515619Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1371128515619Smrgelse 1371228515619Smrg xorg_cv_cc_flag_unknown_warning_option=no 1371328515619Smrgfi 1371428515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1371528515619Smrgfi 1371628515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1371728515619Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1371828515619Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1371928515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1372028515619Smrgfi 1372128515619Smrg 1372228515619Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1372328515619Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1372428515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1372528515619Smrg fi 1372628515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1372728515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1372828515619Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1372928515619Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 1373028515619Smrg $as_echo_n "(cached) " >&6 1373128515619Smrgelse 1373228515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1373328515619Smrg/* end confdefs.h. */ 1373428515619Smrgint i; 1373528515619Smrg_ACEOF 1373628515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1373728515619Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1373828515619Smrgelse 1373928515619Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1374028515619Smrgfi 1374128515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1374228515619Smrgfi 1374328515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1374428515619Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1374528515619Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1374628515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1374728515619Smrgfi 1374828515619Smrg 1374928515619Smrgfound="no" 1375028515619Smrg 1375128515619Smrg if test $found = "no" ; then 1375228515619Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 1375328515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1375428515619Smrg fi 1375528515619Smrg 1375628515619Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 1375728515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1375828515619Smrg fi 1375928515619Smrg 1376028515619Smrg CFLAGS="$CFLAGS -Wredundant-decls" 1376128515619Smrg 1376228515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wredundant-decls" >&5 1376328515619Smrg$as_echo_n "checking if $CC supports-Wredundant-decls... " >&6; } 1376428515619Smrg cacheid=xorg_cv_cc_flag__Wredundant_decls 1376528515619Smrg if eval \${$cacheid+:} false; then : 1376628515619Smrg $as_echo_n "(cached) " >&6 1376728515619Smrgelse 1376828515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1376928515619Smrg/* end confdefs.h. */ 1377028515619Smrgint i; 1377128515619Smrgint 1377228515619Smrgmain () 1377328515619Smrg{ 1377428515619Smrg 1377528515619Smrg ; 1377628515619Smrg return 0; 1377728515619Smrg} 1377828515619Smrg_ACEOF 1377928515619Smrgif ac_fn_c_try_link "$LINENO"; then : 1378028515619Smrg eval $cacheid=yes 1378128515619Smrgelse 1378228515619Smrg eval $cacheid=no 1378328515619Smrgfi 1378428515619Smrgrm -f core conftest.err conftest.$ac_objext \ 1378528515619Smrg conftest$ac_exeext conftest.$ac_ext 1378628515619Smrgfi 1378728515619Smrg 1378828515619Smrg 1378928515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1379028515619Smrg 1379128515619Smrg eval supported=\$$cacheid 1379228515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1379328515619Smrg$as_echo "$supported" >&6; } 1379428515619Smrg if test "$supported" = "yes" ; then 1379528515619Smrg BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 1379628515619Smrg found="yes" 1379728515619Smrg fi 1379828515619Smrg fi 1379928515619Smrg 1380028515619Smrg 1380128515619Smrg 1380228515619Smrg# These are currently disabled because they are noisy. They will be enabled 1380328515619Smrg# in the future once the codebase is sufficiently modernized to silence 1380428515619Smrg# them. For now, I don't want them to drown out the other warnings. 1380528515619Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 1380628515619Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 1380728515619Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 1380828515619Smrg 1380928515619Smrg# Turn some warnings into errors, so we don't accidently get successful builds 1381028515619Smrg# when there are problems that should be fixed. 1381128515619Smrg 1381228515619Smrgif test "x$SELECTIVE_WERROR" = "xyes" ; then 1381328515619Smrg 1381428515619Smrg 1381528515619Smrg 1381628515619Smrg 1381728515619Smrg 1381828515619Smrg 1381928515619Smrg 1382028515619Smrg 1382128515619Smrg 1382228515619Smrg 1382328515619Smrg 1382428515619Smrg 1382528515619Smrg 1382628515619Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1382728515619Smrg 1382828515619Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1382928515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1383028515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1383128515619Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1383228515619Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 1383328515619Smrg $as_echo_n "(cached) " >&6 1383428515619Smrgelse 1383528515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1383628515619Smrg/* end confdefs.h. */ 1383728515619Smrgint i; 1383828515619Smrg_ACEOF 1383928515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1384028515619Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1384128515619Smrgelse 1384228515619Smrg xorg_cv_cc_flag_unknown_warning_option=no 1384328515619Smrgfi 1384428515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1384528515619Smrgfi 1384628515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1384728515619Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1384828515619Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1384928515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1385028515619Smrgfi 1385128515619Smrg 1385228515619Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1385328515619Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1385428515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1385528515619Smrg fi 1385628515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1385728515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1385828515619Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1385928515619Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 1386028515619Smrg $as_echo_n "(cached) " >&6 1386128515619Smrgelse 1386228515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1386328515619Smrg/* end confdefs.h. */ 1386428515619Smrgint i; 1386528515619Smrg_ACEOF 1386628515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1386728515619Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1386828515619Smrgelse 1386928515619Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1387028515619Smrgfi 1387128515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1387228515619Smrgfi 1387328515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1387428515619Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1387528515619Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1387628515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1387728515619Smrgfi 1387828515619Smrg 1387928515619Smrgfound="no" 1388028515619Smrg 1388128515619Smrg if test $found = "no" ; then 1388228515619Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 1388328515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1388428515619Smrg fi 1388528515619Smrg 1388628515619Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 1388728515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1388828515619Smrg fi 1388928515619Smrg 1389028515619Smrg CFLAGS="$CFLAGS -Werror=implicit" 1389128515619Smrg 1389228515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=implicit" >&5 1389328515619Smrg$as_echo_n "checking if $CC supports-Werror=implicit... " >&6; } 1389428515619Smrg cacheid=xorg_cv_cc_flag__Werror_implicit 1389528515619Smrg if eval \${$cacheid+:} false; then : 1389628515619Smrg $as_echo_n "(cached) " >&6 1389728515619Smrgelse 1389828515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1389928515619Smrg/* end confdefs.h. */ 1390028515619Smrgint i; 1390128515619Smrgint 1390228515619Smrgmain () 1390328515619Smrg{ 1390428515619Smrg 1390528515619Smrg ; 1390628515619Smrg return 0; 1390728515619Smrg} 1390828515619Smrg_ACEOF 1390928515619Smrgif ac_fn_c_try_link "$LINENO"; then : 1391028515619Smrg eval $cacheid=yes 1391128515619Smrgelse 1391228515619Smrg eval $cacheid=no 1391328515619Smrgfi 1391428515619Smrgrm -f core conftest.err conftest.$ac_objext \ 1391528515619Smrg conftest$ac_exeext conftest.$ac_ext 1391628515619Smrgfi 1391728515619Smrg 1391828515619Smrg 1391928515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1392028515619Smrg 1392128515619Smrg eval supported=\$$cacheid 1392228515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1392328515619Smrg$as_echo "$supported" >&6; } 1392428515619Smrg if test "$supported" = "yes" ; then 1392528515619Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 1392628515619Smrg found="yes" 1392728515619Smrg fi 1392828515619Smrg fi 1392928515619Smrg 1393028515619Smrg if test $found = "no" ; then 1393128515619Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 1393228515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1393328515619Smrg fi 1393428515619Smrg 1393528515619Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 1393628515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1393728515619Smrg fi 1393828515619Smrg 1393928515619Smrg CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 1394028515619Smrg 1394128515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 1394228515619Smrg$as_echo_n "checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 1394328515619Smrg cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 1394428515619Smrg if eval \${$cacheid+:} false; then : 1394528515619Smrg $as_echo_n "(cached) " >&6 1394628515619Smrgelse 1394728515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1394828515619Smrg/* end confdefs.h. */ 1394928515619Smrgint i; 1395028515619Smrgint 1395128515619Smrgmain () 1395228515619Smrg{ 1395328515619Smrg 1395428515619Smrg ; 1395528515619Smrg return 0; 1395628515619Smrg} 1395728515619Smrg_ACEOF 1395828515619Smrgif ac_fn_c_try_link "$LINENO"; then : 1395928515619Smrg eval $cacheid=yes 1396028515619Smrgelse 1396128515619Smrg eval $cacheid=no 1396228515619Smrgfi 1396328515619Smrgrm -f core conftest.err conftest.$ac_objext \ 1396428515619Smrg conftest$ac_exeext conftest.$ac_ext 1396528515619Smrgfi 1396628515619Smrg 1396728515619Smrg 1396828515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1396928515619Smrg 1397028515619Smrg eval supported=\$$cacheid 1397128515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1397228515619Smrg$as_echo "$supported" >&6; } 1397328515619Smrg if test "$supported" = "yes" ; then 1397428515619Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 1397528515619Smrg found="yes" 1397628515619Smrg fi 1397728515619Smrg fi 1397828515619Smrg 1397928515619Smrg 1398028515619Smrg 1398128515619Smrg 1398228515619Smrg 1398328515619Smrg 1398428515619Smrg 1398528515619Smrg 1398628515619Smrg 1398728515619Smrg 1398828515619Smrg 1398928515619Smrg 1399028515619Smrg 1399128515619Smrg 1399228515619Smrg 1399328515619Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1399428515619Smrg 1399528515619Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1399628515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1399728515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1399828515619Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1399928515619Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 1400028515619Smrg $as_echo_n "(cached) " >&6 1400128515619Smrgelse 1400228515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1400328515619Smrg/* end confdefs.h. */ 1400428515619Smrgint i; 1400528515619Smrg_ACEOF 1400628515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1400728515619Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1400828515619Smrgelse 1400928515619Smrg xorg_cv_cc_flag_unknown_warning_option=no 1401028515619Smrgfi 1401128515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1401228515619Smrgfi 1401328515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1401428515619Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1401528515619Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1401628515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1401728515619Smrgfi 1401828515619Smrg 1401928515619Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1402028515619Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1402128515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1402228515619Smrg fi 1402328515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1402428515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1402528515619Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1402628515619Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 1402728515619Smrg $as_echo_n "(cached) " >&6 1402828515619Smrgelse 1402928515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1403028515619Smrg/* end confdefs.h. */ 1403128515619Smrgint i; 1403228515619Smrg_ACEOF 1403328515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1403428515619Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1403528515619Smrgelse 1403628515619Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1403728515619Smrgfi 1403828515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1403928515619Smrgfi 1404028515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1404128515619Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1404228515619Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1404328515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1404428515619Smrgfi 1404528515619Smrg 1404628515619Smrgfound="no" 1404728515619Smrg 1404828515619Smrg if test $found = "no" ; then 1404928515619Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 1405028515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1405128515619Smrg fi 1405228515619Smrg 1405328515619Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 1405428515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1405528515619Smrg fi 1405628515619Smrg 1405728515619Smrg CFLAGS="$CFLAGS -Werror=nonnull" 1405828515619Smrg 1405928515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=nonnull" >&5 1406028515619Smrg$as_echo_n "checking if $CC supports-Werror=nonnull... " >&6; } 1406128515619Smrg cacheid=xorg_cv_cc_flag__Werror_nonnull 1406228515619Smrg if eval \${$cacheid+:} false; then : 1406328515619Smrg $as_echo_n "(cached) " >&6 1406428515619Smrgelse 1406528515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1406628515619Smrg/* end confdefs.h. */ 1406728515619Smrgint i; 1406828515619Smrgint 1406928515619Smrgmain () 1407028515619Smrg{ 1407128515619Smrg 1407228515619Smrg ; 1407328515619Smrg return 0; 1407428515619Smrg} 1407528515619Smrg_ACEOF 1407628515619Smrgif ac_fn_c_try_link "$LINENO"; then : 1407728515619Smrg eval $cacheid=yes 1407828515619Smrgelse 1407928515619Smrg eval $cacheid=no 1408028515619Smrgfi 1408128515619Smrgrm -f core conftest.err conftest.$ac_objext \ 1408228515619Smrg conftest$ac_exeext conftest.$ac_ext 1408328515619Smrgfi 1408428515619Smrg 1408528515619Smrg 1408628515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1408728515619Smrg 1408828515619Smrg eval supported=\$$cacheid 1408928515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1409028515619Smrg$as_echo "$supported" >&6; } 1409128515619Smrg if test "$supported" = "yes" ; then 1409228515619Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 1409328515619Smrg found="yes" 1409428515619Smrg fi 1409528515619Smrg fi 1409628515619Smrg 1409728515619Smrg 1409828515619Smrg 1409928515619Smrg 1410028515619Smrg 1410128515619Smrg 1410228515619Smrg 1410328515619Smrg 1410428515619Smrg 1410528515619Smrg 1410628515619Smrg 1410728515619Smrg 1410828515619Smrg 1410928515619Smrg 1411028515619Smrg 1411128515619Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1411228515619Smrg 1411328515619Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1411428515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1411528515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1411628515619Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1411728515619Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 1411828515619Smrg $as_echo_n "(cached) " >&6 1411928515619Smrgelse 1412028515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1412128515619Smrg/* end confdefs.h. */ 1412228515619Smrgint i; 1412328515619Smrg_ACEOF 1412428515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1412528515619Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1412628515619Smrgelse 1412728515619Smrg xorg_cv_cc_flag_unknown_warning_option=no 1412828515619Smrgfi 1412928515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1413028515619Smrgfi 1413128515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1413228515619Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1413328515619Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1413428515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1413528515619Smrgfi 1413628515619Smrg 1413728515619Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1413828515619Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1413928515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1414028515619Smrg fi 1414128515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1414228515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1414328515619Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1414428515619Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 1414528515619Smrg $as_echo_n "(cached) " >&6 1414628515619Smrgelse 1414728515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1414828515619Smrg/* end confdefs.h. */ 1414928515619Smrgint i; 1415028515619Smrg_ACEOF 1415128515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1415228515619Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1415328515619Smrgelse 1415428515619Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1415528515619Smrgfi 1415628515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1415728515619Smrgfi 1415828515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1415928515619Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1416028515619Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1416128515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1416228515619Smrgfi 1416328515619Smrg 1416428515619Smrgfound="no" 1416528515619Smrg 1416628515619Smrg if test $found = "no" ; then 1416728515619Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 1416828515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1416928515619Smrg fi 1417028515619Smrg 1417128515619Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 1417228515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1417328515619Smrg fi 1417428515619Smrg 1417528515619Smrg CFLAGS="$CFLAGS -Werror=init-self" 1417628515619Smrg 1417728515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=init-self" >&5 1417828515619Smrg$as_echo_n "checking if $CC supports-Werror=init-self... " >&6; } 1417928515619Smrg cacheid=xorg_cv_cc_flag__Werror_init_self 1418028515619Smrg if eval \${$cacheid+:} false; then : 1418128515619Smrg $as_echo_n "(cached) " >&6 1418228515619Smrgelse 1418328515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1418428515619Smrg/* end confdefs.h. */ 1418528515619Smrgint i; 1418628515619Smrgint 1418728515619Smrgmain () 1418828515619Smrg{ 1418928515619Smrg 1419028515619Smrg ; 1419128515619Smrg return 0; 1419228515619Smrg} 1419328515619Smrg_ACEOF 1419428515619Smrgif ac_fn_c_try_link "$LINENO"; then : 1419528515619Smrg eval $cacheid=yes 1419628515619Smrgelse 1419728515619Smrg eval $cacheid=no 1419828515619Smrgfi 1419928515619Smrgrm -f core conftest.err conftest.$ac_objext \ 1420028515619Smrg conftest$ac_exeext conftest.$ac_ext 1420128515619Smrgfi 1420228515619Smrg 1420328515619Smrg 1420428515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1420528515619Smrg 1420628515619Smrg eval supported=\$$cacheid 1420728515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1420828515619Smrg$as_echo "$supported" >&6; } 1420928515619Smrg if test "$supported" = "yes" ; then 1421028515619Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 1421128515619Smrg found="yes" 1421228515619Smrg fi 1421328515619Smrg fi 1421428515619Smrg 1421528515619Smrg 1421628515619Smrg 1421728515619Smrg 1421828515619Smrg 1421928515619Smrg 1422028515619Smrg 1422128515619Smrg 1422228515619Smrg 1422328515619Smrg 1422428515619Smrg 1422528515619Smrg 1422628515619Smrg 1422728515619Smrg 1422828515619Smrg 1422928515619Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1423028515619Smrg 1423128515619Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1423228515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1423328515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1423428515619Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1423528515619Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 1423628515619Smrg $as_echo_n "(cached) " >&6 1423728515619Smrgelse 1423828515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1423928515619Smrg/* end confdefs.h. */ 1424028515619Smrgint i; 1424128515619Smrg_ACEOF 1424228515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1424328515619Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1424428515619Smrgelse 1424528515619Smrg xorg_cv_cc_flag_unknown_warning_option=no 1424628515619Smrgfi 1424728515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1424828515619Smrgfi 1424928515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1425028515619Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1425128515619Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1425228515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1425328515619Smrgfi 1425428515619Smrg 1425528515619Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1425628515619Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1425728515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1425828515619Smrg fi 1425928515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1426028515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1426128515619Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1426228515619Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 1426328515619Smrg $as_echo_n "(cached) " >&6 1426428515619Smrgelse 1426528515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1426628515619Smrg/* end confdefs.h. */ 1426728515619Smrgint i; 1426828515619Smrg_ACEOF 1426928515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1427028515619Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1427128515619Smrgelse 1427228515619Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1427328515619Smrgfi 1427428515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1427528515619Smrgfi 1427628515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1427728515619Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1427828515619Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1427928515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1428028515619Smrgfi 1428128515619Smrg 1428228515619Smrgfound="no" 1428328515619Smrg 1428428515619Smrg if test $found = "no" ; then 1428528515619Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 1428628515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1428728515619Smrg fi 1428828515619Smrg 1428928515619Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 1429028515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1429128515619Smrg fi 1429228515619Smrg 1429328515619Smrg CFLAGS="$CFLAGS -Werror=main" 1429428515619Smrg 1429528515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=main" >&5 1429628515619Smrg$as_echo_n "checking if $CC supports-Werror=main... " >&6; } 1429728515619Smrg cacheid=xorg_cv_cc_flag__Werror_main 1429828515619Smrg if eval \${$cacheid+:} false; then : 1429928515619Smrg $as_echo_n "(cached) " >&6 1430028515619Smrgelse 1430128515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1430228515619Smrg/* end confdefs.h. */ 1430328515619Smrgint i; 1430428515619Smrgint 1430528515619Smrgmain () 1430628515619Smrg{ 1430728515619Smrg 1430828515619Smrg ; 1430928515619Smrg return 0; 1431028515619Smrg} 1431128515619Smrg_ACEOF 1431228515619Smrgif ac_fn_c_try_link "$LINENO"; then : 1431328515619Smrg eval $cacheid=yes 1431428515619Smrgelse 1431528515619Smrg eval $cacheid=no 1431628515619Smrgfi 1431728515619Smrgrm -f core conftest.err conftest.$ac_objext \ 1431828515619Smrg conftest$ac_exeext conftest.$ac_ext 1431928515619Smrgfi 1432028515619Smrg 1432128515619Smrg 1432228515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1432328515619Smrg 1432428515619Smrg eval supported=\$$cacheid 1432528515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1432628515619Smrg$as_echo "$supported" >&6; } 1432728515619Smrg if test "$supported" = "yes" ; then 1432828515619Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 1432928515619Smrg found="yes" 1433028515619Smrg fi 1433128515619Smrg fi 1433228515619Smrg 1433328515619Smrg 1433428515619Smrg 1433528515619Smrg 1433628515619Smrg 1433728515619Smrg 1433828515619Smrg 1433928515619Smrg 1434028515619Smrg 1434128515619Smrg 1434228515619Smrg 1434328515619Smrg 1434428515619Smrg 1434528515619Smrg 1434628515619Smrg 1434728515619Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1434828515619Smrg 1434928515619Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1435028515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1435128515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1435228515619Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1435328515619Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 1435428515619Smrg $as_echo_n "(cached) " >&6 1435528515619Smrgelse 1435628515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1435728515619Smrg/* end confdefs.h. */ 1435828515619Smrgint i; 1435928515619Smrg_ACEOF 1436028515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1436128515619Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1436228515619Smrgelse 1436328515619Smrg xorg_cv_cc_flag_unknown_warning_option=no 1436428515619Smrgfi 1436528515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1436628515619Smrgfi 1436728515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1436828515619Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1436928515619Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1437028515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1437128515619Smrgfi 1437228515619Smrg 1437328515619Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1437428515619Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1437528515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1437628515619Smrg fi 1437728515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1437828515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1437928515619Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1438028515619Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 1438128515619Smrg $as_echo_n "(cached) " >&6 1438228515619Smrgelse 1438328515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1438428515619Smrg/* end confdefs.h. */ 1438528515619Smrgint i; 1438628515619Smrg_ACEOF 1438728515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1438828515619Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1438928515619Smrgelse 1439028515619Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1439128515619Smrgfi 1439228515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1439328515619Smrgfi 1439428515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1439528515619Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1439628515619Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1439728515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1439828515619Smrgfi 1439928515619Smrg 1440028515619Smrgfound="no" 1440128515619Smrg 1440228515619Smrg if test $found = "no" ; then 1440328515619Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 1440428515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1440528515619Smrg fi 1440628515619Smrg 1440728515619Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 1440828515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1440928515619Smrg fi 1441028515619Smrg 1441128515619Smrg CFLAGS="$CFLAGS -Werror=missing-braces" 1441228515619Smrg 1441328515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=missing-braces" >&5 1441428515619Smrg$as_echo_n "checking if $CC supports-Werror=missing-braces... " >&6; } 1441528515619Smrg cacheid=xorg_cv_cc_flag__Werror_missing_braces 1441628515619Smrg if eval \${$cacheid+:} false; then : 1441728515619Smrg $as_echo_n "(cached) " >&6 1441828515619Smrgelse 1441928515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1442028515619Smrg/* end confdefs.h. */ 1442128515619Smrgint i; 1442228515619Smrgint 1442328515619Smrgmain () 1442428515619Smrg{ 1442528515619Smrg 1442628515619Smrg ; 1442728515619Smrg return 0; 1442828515619Smrg} 1442928515619Smrg_ACEOF 1443028515619Smrgif ac_fn_c_try_link "$LINENO"; then : 1443128515619Smrg eval $cacheid=yes 1443228515619Smrgelse 1443328515619Smrg eval $cacheid=no 1443428515619Smrgfi 1443528515619Smrgrm -f core conftest.err conftest.$ac_objext \ 1443628515619Smrg conftest$ac_exeext conftest.$ac_ext 1443728515619Smrgfi 1443828515619Smrg 1443928515619Smrg 1444028515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1444128515619Smrg 1444228515619Smrg eval supported=\$$cacheid 1444328515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1444428515619Smrg$as_echo "$supported" >&6; } 1444528515619Smrg if test "$supported" = "yes" ; then 1444628515619Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 1444728515619Smrg found="yes" 1444828515619Smrg fi 1444928515619Smrg fi 1445028515619Smrg 1445128515619Smrg 1445228515619Smrg 1445328515619Smrg 1445428515619Smrg 1445528515619Smrg 1445628515619Smrg 1445728515619Smrg 1445828515619Smrg 1445928515619Smrg 1446028515619Smrg 1446128515619Smrg 1446228515619Smrg 1446328515619Smrg 1446428515619Smrg 1446528515619Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1446628515619Smrg 1446728515619Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1446828515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1446928515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1447028515619Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1447128515619Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 1447228515619Smrg $as_echo_n "(cached) " >&6 1447328515619Smrgelse 1447428515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1447528515619Smrg/* end confdefs.h. */ 1447628515619Smrgint i; 1447728515619Smrg_ACEOF 1447828515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1447928515619Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1448028515619Smrgelse 1448128515619Smrg xorg_cv_cc_flag_unknown_warning_option=no 1448228515619Smrgfi 1448328515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1448428515619Smrgfi 1448528515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1448628515619Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1448728515619Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1448828515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1448928515619Smrgfi 1449028515619Smrg 1449128515619Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1449228515619Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1449328515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1449428515619Smrg fi 1449528515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1449628515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1449728515619Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1449828515619Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 1449928515619Smrg $as_echo_n "(cached) " >&6 1450028515619Smrgelse 1450128515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1450228515619Smrg/* end confdefs.h. */ 1450328515619Smrgint i; 1450428515619Smrg_ACEOF 1450528515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1450628515619Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1450728515619Smrgelse 1450828515619Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1450928515619Smrgfi 1451028515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1451128515619Smrgfi 1451228515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1451328515619Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1451428515619Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1451528515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1451628515619Smrgfi 1451728515619Smrg 1451828515619Smrgfound="no" 1451928515619Smrg 1452028515619Smrg if test $found = "no" ; then 1452128515619Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 1452228515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1452328515619Smrg fi 1452428515619Smrg 1452528515619Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 1452628515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1452728515619Smrg fi 1452828515619Smrg 1452928515619Smrg CFLAGS="$CFLAGS -Werror=sequence-point" 1453028515619Smrg 1453128515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=sequence-point" >&5 1453228515619Smrg$as_echo_n "checking if $CC supports-Werror=sequence-point... " >&6; } 1453328515619Smrg cacheid=xorg_cv_cc_flag__Werror_sequence_point 1453428515619Smrg if eval \${$cacheid+:} false; then : 1453528515619Smrg $as_echo_n "(cached) " >&6 1453628515619Smrgelse 1453728515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1453828515619Smrg/* end confdefs.h. */ 1453928515619Smrgint i; 1454028515619Smrgint 1454128515619Smrgmain () 1454228515619Smrg{ 1454328515619Smrg 1454428515619Smrg ; 1454528515619Smrg return 0; 1454628515619Smrg} 1454728515619Smrg_ACEOF 1454828515619Smrgif ac_fn_c_try_link "$LINENO"; then : 1454928515619Smrg eval $cacheid=yes 1455028515619Smrgelse 1455128515619Smrg eval $cacheid=no 1455228515619Smrgfi 1455328515619Smrgrm -f core conftest.err conftest.$ac_objext \ 1455428515619Smrg conftest$ac_exeext conftest.$ac_ext 1455528515619Smrgfi 1455628515619Smrg 1455728515619Smrg 1455828515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1455928515619Smrg 1456028515619Smrg eval supported=\$$cacheid 1456128515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1456228515619Smrg$as_echo "$supported" >&6; } 1456328515619Smrg if test "$supported" = "yes" ; then 1456428515619Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 1456528515619Smrg found="yes" 1456628515619Smrg fi 1456728515619Smrg fi 1456828515619Smrg 1456928515619Smrg 1457028515619Smrg 1457128515619Smrg 1457228515619Smrg 1457328515619Smrg 1457428515619Smrg 1457528515619Smrg 1457628515619Smrg 1457728515619Smrg 1457828515619Smrg 1457928515619Smrg 1458028515619Smrg 1458128515619Smrg 1458228515619Smrg 1458328515619Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1458428515619Smrg 1458528515619Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1458628515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1458728515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1458828515619Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1458928515619Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 1459028515619Smrg $as_echo_n "(cached) " >&6 1459128515619Smrgelse 1459228515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1459328515619Smrg/* end confdefs.h. */ 1459428515619Smrgint i; 1459528515619Smrg_ACEOF 1459628515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1459728515619Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1459828515619Smrgelse 1459928515619Smrg xorg_cv_cc_flag_unknown_warning_option=no 1460028515619Smrgfi 1460128515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1460228515619Smrgfi 1460328515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1460428515619Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1460528515619Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1460628515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1460728515619Smrgfi 1460828515619Smrg 1460928515619Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1461028515619Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1461128515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1461228515619Smrg fi 1461328515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1461428515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1461528515619Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1461628515619Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 1461728515619Smrg $as_echo_n "(cached) " >&6 1461828515619Smrgelse 1461928515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1462028515619Smrg/* end confdefs.h. */ 1462128515619Smrgint i; 1462228515619Smrg_ACEOF 1462328515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1462428515619Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1462528515619Smrgelse 1462628515619Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1462728515619Smrgfi 1462828515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1462928515619Smrgfi 1463028515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1463128515619Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1463228515619Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1463328515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1463428515619Smrgfi 1463528515619Smrg 1463628515619Smrgfound="no" 1463728515619Smrg 1463828515619Smrg if test $found = "no" ; then 1463928515619Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 1464028515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1464128515619Smrg fi 1464228515619Smrg 1464328515619Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 1464428515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1464528515619Smrg fi 1464628515619Smrg 1464728515619Smrg CFLAGS="$CFLAGS -Werror=return-type" 1464828515619Smrg 1464928515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=return-type" >&5 1465028515619Smrg$as_echo_n "checking if $CC supports-Werror=return-type... " >&6; } 1465128515619Smrg cacheid=xorg_cv_cc_flag__Werror_return_type 1465228515619Smrg if eval \${$cacheid+:} false; then : 1465328515619Smrg $as_echo_n "(cached) " >&6 1465428515619Smrgelse 1465528515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1465628515619Smrg/* end confdefs.h. */ 1465728515619Smrgint i; 1465828515619Smrgint 1465928515619Smrgmain () 1466028515619Smrg{ 1466128515619Smrg 1466228515619Smrg ; 1466328515619Smrg return 0; 1466428515619Smrg} 1466528515619Smrg_ACEOF 1466628515619Smrgif ac_fn_c_try_link "$LINENO"; then : 1466728515619Smrg eval $cacheid=yes 1466828515619Smrgelse 1466928515619Smrg eval $cacheid=no 1467028515619Smrgfi 1467128515619Smrgrm -f core conftest.err conftest.$ac_objext \ 1467228515619Smrg conftest$ac_exeext conftest.$ac_ext 1467328515619Smrgfi 1467428515619Smrg 1467528515619Smrg 1467628515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1467728515619Smrg 1467828515619Smrg eval supported=\$$cacheid 1467928515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1468028515619Smrg$as_echo "$supported" >&6; } 1468128515619Smrg if test "$supported" = "yes" ; then 1468228515619Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 1468328515619Smrg found="yes" 1468428515619Smrg fi 1468528515619Smrg fi 1468628515619Smrg 1468728515619Smrg if test $found = "no" ; then 1468828515619Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 1468928515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1469028515619Smrg fi 1469128515619Smrg 1469228515619Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 1469328515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1469428515619Smrg fi 1469528515619Smrg 1469628515619Smrg CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 1469728515619Smrg 1469828515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 1469928515619Smrg$as_echo_n "checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 1470028515619Smrg cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 1470128515619Smrg if eval \${$cacheid+:} false; then : 1470228515619Smrg $as_echo_n "(cached) " >&6 1470328515619Smrgelse 1470428515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1470528515619Smrg/* end confdefs.h. */ 1470628515619Smrgint i; 1470728515619Smrgint 1470828515619Smrgmain () 1470928515619Smrg{ 1471028515619Smrg 1471128515619Smrg ; 1471228515619Smrg return 0; 1471328515619Smrg} 1471428515619Smrg_ACEOF 1471528515619Smrgif ac_fn_c_try_link "$LINENO"; then : 1471628515619Smrg eval $cacheid=yes 1471728515619Smrgelse 1471828515619Smrg eval $cacheid=no 1471928515619Smrgfi 1472028515619Smrgrm -f core conftest.err conftest.$ac_objext \ 1472128515619Smrg conftest$ac_exeext conftest.$ac_ext 1472228515619Smrgfi 1472328515619Smrg 1472428515619Smrg 1472528515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1472628515619Smrg 1472728515619Smrg eval supported=\$$cacheid 1472828515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1472928515619Smrg$as_echo "$supported" >&6; } 1473028515619Smrg if test "$supported" = "yes" ; then 1473128515619Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 1473228515619Smrg found="yes" 1473328515619Smrg fi 1473428515619Smrg fi 1473528515619Smrg 1473628515619Smrg 1473728515619Smrg 1473828515619Smrg 1473928515619Smrg 1474028515619Smrg 1474128515619Smrg 1474228515619Smrg 1474328515619Smrg 1474428515619Smrg 1474528515619Smrg 1474628515619Smrg 1474728515619Smrg 1474828515619Smrg 1474928515619Smrg 1475028515619Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1475128515619Smrg 1475228515619Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1475328515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1475428515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1475528515619Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1475628515619Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 1475728515619Smrg $as_echo_n "(cached) " >&6 1475828515619Smrgelse 1475928515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1476028515619Smrg/* end confdefs.h. */ 1476128515619Smrgint i; 1476228515619Smrg_ACEOF 1476328515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1476428515619Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1476528515619Smrgelse 1476628515619Smrg xorg_cv_cc_flag_unknown_warning_option=no 1476728515619Smrgfi 1476828515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1476928515619Smrgfi 1477028515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1477128515619Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1477228515619Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1477328515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1477428515619Smrgfi 1477528515619Smrg 1477628515619Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1477728515619Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1477828515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1477928515619Smrg fi 1478028515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1478128515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1478228515619Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1478328515619Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 1478428515619Smrg $as_echo_n "(cached) " >&6 1478528515619Smrgelse 1478628515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1478728515619Smrg/* end confdefs.h. */ 1478828515619Smrgint i; 1478928515619Smrg_ACEOF 1479028515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1479128515619Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1479228515619Smrgelse 1479328515619Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1479428515619Smrgfi 1479528515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1479628515619Smrgfi 1479728515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1479828515619Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1479928515619Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1480028515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1480128515619Smrgfi 1480228515619Smrg 1480328515619Smrgfound="no" 1480428515619Smrg 1480528515619Smrg if test $found = "no" ; then 1480628515619Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 1480728515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1480828515619Smrg fi 1480928515619Smrg 1481028515619Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 1481128515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1481228515619Smrg fi 1481328515619Smrg 1481428515619Smrg CFLAGS="$CFLAGS -Werror=trigraphs" 1481528515619Smrg 1481628515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=trigraphs" >&5 1481728515619Smrg$as_echo_n "checking if $CC supports-Werror=trigraphs... " >&6; } 1481828515619Smrg cacheid=xorg_cv_cc_flag__Werror_trigraphs 1481928515619Smrg if eval \${$cacheid+:} false; then : 1482028515619Smrg $as_echo_n "(cached) " >&6 1482128515619Smrgelse 1482228515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1482328515619Smrg/* end confdefs.h. */ 1482428515619Smrgint i; 1482528515619Smrgint 1482628515619Smrgmain () 1482728515619Smrg{ 1482828515619Smrg 1482928515619Smrg ; 1483028515619Smrg return 0; 1483128515619Smrg} 1483228515619Smrg_ACEOF 1483328515619Smrgif ac_fn_c_try_link "$LINENO"; then : 1483428515619Smrg eval $cacheid=yes 1483528515619Smrgelse 1483628515619Smrg eval $cacheid=no 1483728515619Smrgfi 1483828515619Smrgrm -f core conftest.err conftest.$ac_objext \ 1483928515619Smrg conftest$ac_exeext conftest.$ac_ext 1484028515619Smrgfi 1484128515619Smrg 1484228515619Smrg 1484328515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1484428515619Smrg 1484528515619Smrg eval supported=\$$cacheid 1484628515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1484728515619Smrg$as_echo "$supported" >&6; } 1484828515619Smrg if test "$supported" = "yes" ; then 1484928515619Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 1485028515619Smrg found="yes" 1485128515619Smrg fi 1485228515619Smrg fi 1485328515619Smrg 1485428515619Smrg 1485528515619Smrg 1485628515619Smrg 1485728515619Smrg 1485828515619Smrg 1485928515619Smrg 1486028515619Smrg 1486128515619Smrg 1486228515619Smrg 1486328515619Smrg 1486428515619Smrg 1486528515619Smrg 1486628515619Smrg 1486728515619Smrg 1486828515619Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1486928515619Smrg 1487028515619Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1487128515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1487228515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1487328515619Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1487428515619Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 1487528515619Smrg $as_echo_n "(cached) " >&6 1487628515619Smrgelse 1487728515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1487828515619Smrg/* end confdefs.h. */ 1487928515619Smrgint i; 1488028515619Smrg_ACEOF 1488128515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1488228515619Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1488328515619Smrgelse 1488428515619Smrg xorg_cv_cc_flag_unknown_warning_option=no 1488528515619Smrgfi 1488628515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1488728515619Smrgfi 1488828515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1488928515619Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1489028515619Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1489128515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1489228515619Smrgfi 1489328515619Smrg 1489428515619Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1489528515619Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1489628515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1489728515619Smrg fi 1489828515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1489928515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1490028515619Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1490128515619Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 1490228515619Smrg $as_echo_n "(cached) " >&6 1490328515619Smrgelse 1490428515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1490528515619Smrg/* end confdefs.h. */ 1490628515619Smrgint i; 1490728515619Smrg_ACEOF 1490828515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1490928515619Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1491028515619Smrgelse 1491128515619Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1491228515619Smrgfi 1491328515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1491428515619Smrgfi 1491528515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1491628515619Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1491728515619Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1491828515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1491928515619Smrgfi 1492028515619Smrg 1492128515619Smrgfound="no" 1492228515619Smrg 1492328515619Smrg if test $found = "no" ; then 1492428515619Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 1492528515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1492628515619Smrg fi 1492728515619Smrg 1492828515619Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 1492928515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1493028515619Smrg fi 1493128515619Smrg 1493228515619Smrg CFLAGS="$CFLAGS -Werror=array-bounds" 1493328515619Smrg 1493428515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=array-bounds" >&5 1493528515619Smrg$as_echo_n "checking if $CC supports-Werror=array-bounds... " >&6; } 1493628515619Smrg cacheid=xorg_cv_cc_flag__Werror_array_bounds 1493728515619Smrg if eval \${$cacheid+:} false; then : 1493828515619Smrg $as_echo_n "(cached) " >&6 1493928515619Smrgelse 1494028515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1494128515619Smrg/* end confdefs.h. */ 1494228515619Smrgint i; 1494328515619Smrgint 1494428515619Smrgmain () 1494528515619Smrg{ 1494628515619Smrg 1494728515619Smrg ; 1494828515619Smrg return 0; 1494928515619Smrg} 1495028515619Smrg_ACEOF 1495128515619Smrgif ac_fn_c_try_link "$LINENO"; then : 1495228515619Smrg eval $cacheid=yes 1495328515619Smrgelse 1495428515619Smrg eval $cacheid=no 1495528515619Smrgfi 1495628515619Smrgrm -f core conftest.err conftest.$ac_objext \ 1495728515619Smrg conftest$ac_exeext conftest.$ac_ext 1495828515619Smrgfi 1495928515619Smrg 1496028515619Smrg 1496128515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1496228515619Smrg 1496328515619Smrg eval supported=\$$cacheid 1496428515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1496528515619Smrg$as_echo "$supported" >&6; } 1496628515619Smrg if test "$supported" = "yes" ; then 1496728515619Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 1496828515619Smrg found="yes" 1496928515619Smrg fi 1497028515619Smrg fi 1497128515619Smrg 1497228515619Smrg 1497328515619Smrg 1497428515619Smrg 1497528515619Smrg 1497628515619Smrg 1497728515619Smrg 1497828515619Smrg 1497928515619Smrg 1498028515619Smrg 1498128515619Smrg 1498228515619Smrg 1498328515619Smrg 1498428515619Smrg 1498528515619Smrg 1498628515619Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1498728515619Smrg 1498828515619Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1498928515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1499028515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1499128515619Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1499228515619Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 1499328515619Smrg $as_echo_n "(cached) " >&6 1499428515619Smrgelse 1499528515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1499628515619Smrg/* end confdefs.h. */ 1499728515619Smrgint i; 1499828515619Smrg_ACEOF 1499928515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1500028515619Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1500128515619Smrgelse 1500228515619Smrg xorg_cv_cc_flag_unknown_warning_option=no 1500328515619Smrgfi 1500428515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1500528515619Smrgfi 1500628515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1500728515619Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1500828515619Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1500928515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1501028515619Smrgfi 1501128515619Smrg 1501228515619Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1501328515619Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1501428515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1501528515619Smrg fi 1501628515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1501728515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1501828515619Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1501928515619Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 1502028515619Smrg $as_echo_n "(cached) " >&6 1502128515619Smrgelse 1502228515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1502328515619Smrg/* end confdefs.h. */ 1502428515619Smrgint i; 1502528515619Smrg_ACEOF 1502628515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1502728515619Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1502828515619Smrgelse 1502928515619Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1503028515619Smrgfi 1503128515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1503228515619Smrgfi 1503328515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1503428515619Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1503528515619Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1503628515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1503728515619Smrgfi 1503828515619Smrg 1503928515619Smrgfound="no" 1504028515619Smrg 1504128515619Smrg if test $found = "no" ; then 1504228515619Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 1504328515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1504428515619Smrg fi 1504528515619Smrg 1504628515619Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 1504728515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1504828515619Smrg fi 1504928515619Smrg 1505028515619Smrg CFLAGS="$CFLAGS -Werror=write-strings" 1505128515619Smrg 1505228515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=write-strings" >&5 1505328515619Smrg$as_echo_n "checking if $CC supports-Werror=write-strings... " >&6; } 1505428515619Smrg cacheid=xorg_cv_cc_flag__Werror_write_strings 1505528515619Smrg if eval \${$cacheid+:} false; then : 1505628515619Smrg $as_echo_n "(cached) " >&6 1505728515619Smrgelse 1505828515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1505928515619Smrg/* end confdefs.h. */ 1506028515619Smrgint i; 1506128515619Smrgint 1506228515619Smrgmain () 1506328515619Smrg{ 1506428515619Smrg 1506528515619Smrg ; 1506628515619Smrg return 0; 1506728515619Smrg} 1506828515619Smrg_ACEOF 1506928515619Smrgif ac_fn_c_try_link "$LINENO"; then : 1507028515619Smrg eval $cacheid=yes 1507128515619Smrgelse 1507228515619Smrg eval $cacheid=no 1507328515619Smrgfi 1507428515619Smrgrm -f core conftest.err conftest.$ac_objext \ 1507528515619Smrg conftest$ac_exeext conftest.$ac_ext 1507628515619Smrgfi 1507728515619Smrg 1507828515619Smrg 1507928515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1508028515619Smrg 1508128515619Smrg eval supported=\$$cacheid 1508228515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1508328515619Smrg$as_echo "$supported" >&6; } 1508428515619Smrg if test "$supported" = "yes" ; then 1508528515619Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 1508628515619Smrg found="yes" 1508728515619Smrg fi 1508828515619Smrg fi 1508928515619Smrg 1509028515619Smrg 1509128515619Smrg 1509228515619Smrg 1509328515619Smrg 1509428515619Smrg 1509528515619Smrg 1509628515619Smrg 1509728515619Smrg 1509828515619Smrg 1509928515619Smrg 1510028515619Smrg 1510128515619Smrg 1510228515619Smrg 1510328515619Smrg 1510428515619Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1510528515619Smrg 1510628515619Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1510728515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1510828515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1510928515619Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1511028515619Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 1511128515619Smrg $as_echo_n "(cached) " >&6 1511228515619Smrgelse 1511328515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1511428515619Smrg/* end confdefs.h. */ 1511528515619Smrgint i; 1511628515619Smrg_ACEOF 1511728515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1511828515619Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1511928515619Smrgelse 1512028515619Smrg xorg_cv_cc_flag_unknown_warning_option=no 1512128515619Smrgfi 1512228515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1512328515619Smrgfi 1512428515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1512528515619Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1512628515619Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1512728515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1512828515619Smrgfi 1512928515619Smrg 1513028515619Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1513128515619Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1513228515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1513328515619Smrg fi 1513428515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1513528515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1513628515619Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1513728515619Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 1513828515619Smrg $as_echo_n "(cached) " >&6 1513928515619Smrgelse 1514028515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1514128515619Smrg/* end confdefs.h. */ 1514228515619Smrgint i; 1514328515619Smrg_ACEOF 1514428515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1514528515619Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1514628515619Smrgelse 1514728515619Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1514828515619Smrgfi 1514928515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1515028515619Smrgfi 1515128515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1515228515619Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1515328515619Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1515428515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1515528515619Smrgfi 1515628515619Smrg 1515728515619Smrgfound="no" 1515828515619Smrg 1515928515619Smrg if test $found = "no" ; then 1516028515619Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 1516128515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1516228515619Smrg fi 1516328515619Smrg 1516428515619Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 1516528515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1516628515619Smrg fi 1516728515619Smrg 1516828515619Smrg CFLAGS="$CFLAGS -Werror=address" 1516928515619Smrg 1517028515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=address" >&5 1517128515619Smrg$as_echo_n "checking if $CC supports-Werror=address... " >&6; } 1517228515619Smrg cacheid=xorg_cv_cc_flag__Werror_address 1517328515619Smrg if eval \${$cacheid+:} false; then : 1517428515619Smrg $as_echo_n "(cached) " >&6 1517528515619Smrgelse 1517628515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1517728515619Smrg/* end confdefs.h. */ 1517828515619Smrgint i; 1517928515619Smrgint 1518028515619Smrgmain () 1518128515619Smrg{ 1518228515619Smrg 1518328515619Smrg ; 1518428515619Smrg return 0; 1518528515619Smrg} 1518628515619Smrg_ACEOF 1518728515619Smrgif ac_fn_c_try_link "$LINENO"; then : 1518828515619Smrg eval $cacheid=yes 1518928515619Smrgelse 1519028515619Smrg eval $cacheid=no 1519128515619Smrgfi 1519228515619Smrgrm -f core conftest.err conftest.$ac_objext \ 1519328515619Smrg conftest$ac_exeext conftest.$ac_ext 1519428515619Smrgfi 1519528515619Smrg 1519628515619Smrg 1519728515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1519828515619Smrg 1519928515619Smrg eval supported=\$$cacheid 1520028515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1520128515619Smrg$as_echo "$supported" >&6; } 1520228515619Smrg if test "$supported" = "yes" ; then 1520328515619Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 1520428515619Smrg found="yes" 1520528515619Smrg fi 1520628515619Smrg fi 1520728515619Smrg 1520828515619Smrg 1520928515619Smrg 1521028515619Smrg 1521128515619Smrg 1521228515619Smrg 1521328515619Smrg 1521428515619Smrg 1521528515619Smrg 1521628515619Smrg 1521728515619Smrg 1521828515619Smrg 1521928515619Smrg 1522028515619Smrg 1522128515619Smrg 1522228515619Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1522328515619Smrg 1522428515619Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1522528515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1522628515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1522728515619Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1522828515619Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 1522928515619Smrg $as_echo_n "(cached) " >&6 1523028515619Smrgelse 1523128515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1523228515619Smrg/* end confdefs.h. */ 1523328515619Smrgint i; 1523428515619Smrg_ACEOF 1523528515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1523628515619Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1523728515619Smrgelse 1523828515619Smrg xorg_cv_cc_flag_unknown_warning_option=no 1523928515619Smrgfi 1524028515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1524128515619Smrgfi 1524228515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1524328515619Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1524428515619Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1524528515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1524628515619Smrgfi 1524728515619Smrg 1524828515619Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1524928515619Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1525028515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1525128515619Smrg fi 1525228515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1525328515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1525428515619Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1525528515619Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 1525628515619Smrg $as_echo_n "(cached) " >&6 1525728515619Smrgelse 1525828515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1525928515619Smrg/* end confdefs.h. */ 1526028515619Smrgint i; 1526128515619Smrg_ACEOF 1526228515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1526328515619Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1526428515619Smrgelse 1526528515619Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1526628515619Smrgfi 1526728515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1526828515619Smrgfi 1526928515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1527028515619Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1527128515619Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1527228515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1527328515619Smrgfi 1527428515619Smrg 1527528515619Smrgfound="no" 1527628515619Smrg 1527728515619Smrg if test $found = "no" ; then 1527828515619Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 1527928515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1528028515619Smrg fi 1528128515619Smrg 1528228515619Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 1528328515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1528428515619Smrg fi 1528528515619Smrg 1528628515619Smrg CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 1528728515619Smrg 1528828515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=int-to-pointer-cast" >&5 1528928515619Smrg$as_echo_n "checking if $CC supports-Werror=int-to-pointer-cast... " >&6; } 1529028515619Smrg cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 1529128515619Smrg if eval \${$cacheid+:} false; then : 1529228515619Smrg $as_echo_n "(cached) " >&6 1529328515619Smrgelse 1529428515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1529528515619Smrg/* end confdefs.h. */ 1529628515619Smrgint i; 1529728515619Smrgint 1529828515619Smrgmain () 1529928515619Smrg{ 1530028515619Smrg 1530128515619Smrg ; 1530228515619Smrg return 0; 1530328515619Smrg} 1530428515619Smrg_ACEOF 1530528515619Smrgif ac_fn_c_try_link "$LINENO"; then : 1530628515619Smrg eval $cacheid=yes 1530728515619Smrgelse 1530828515619Smrg eval $cacheid=no 1530928515619Smrgfi 1531028515619Smrgrm -f core conftest.err conftest.$ac_objext \ 1531128515619Smrg conftest$ac_exeext conftest.$ac_ext 1531228515619Smrgfi 1531328515619Smrg 1531428515619Smrg 1531528515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1531628515619Smrg 1531728515619Smrg eval supported=\$$cacheid 1531828515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1531928515619Smrg$as_echo "$supported" >&6; } 1532028515619Smrg if test "$supported" = "yes" ; then 1532128515619Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 1532228515619Smrg found="yes" 1532328515619Smrg fi 1532428515619Smrg fi 1532528515619Smrg 1532628515619Smrg if test $found = "no" ; then 1532728515619Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 1532828515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1532928515619Smrg fi 1533028515619Smrg 1533128515619Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 1533228515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1533328515619Smrg fi 1533428515619Smrg 1533528515619Smrg CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 1533628515619Smrg 1533728515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION" >&5 1533828515619Smrg$as_echo_n "checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 1533928515619Smrg cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 1534028515619Smrg if eval \${$cacheid+:} false; then : 1534128515619Smrg $as_echo_n "(cached) " >&6 1534228515619Smrgelse 1534328515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1534428515619Smrg/* end confdefs.h. */ 1534528515619Smrgint i; 1534628515619Smrgint 1534728515619Smrgmain () 1534828515619Smrg{ 1534928515619Smrg 1535028515619Smrg ; 1535128515619Smrg return 0; 1535228515619Smrg} 1535328515619Smrg_ACEOF 1535428515619Smrgif ac_fn_c_try_link "$LINENO"; then : 1535528515619Smrg eval $cacheid=yes 1535628515619Smrgelse 1535728515619Smrg eval $cacheid=no 1535828515619Smrgfi 1535928515619Smrgrm -f core conftest.err conftest.$ac_objext \ 1536028515619Smrg conftest$ac_exeext conftest.$ac_ext 1536128515619Smrgfi 1536228515619Smrg 1536328515619Smrg 1536428515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1536528515619Smrg 1536628515619Smrg eval supported=\$$cacheid 1536728515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1536828515619Smrg$as_echo "$supported" >&6; } 1536928515619Smrg if test "$supported" = "yes" ; then 1537028515619Smrg BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 1537128515619Smrg found="yes" 1537228515619Smrg fi 1537328515619Smrg fi 1537428515619Smrg 1537528515619Smrg 1537628515619Smrg 1537728515619Smrg 1537828515619Smrg 1537928515619Smrg 1538028515619Smrg 1538128515619Smrg 1538228515619Smrg 1538328515619Smrg 1538428515619Smrg 1538528515619Smrg 1538628515619Smrg 1538728515619Smrg 1538828515619Smrg 1538928515619Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1539028515619Smrg 1539128515619Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1539228515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1539328515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1539428515619Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1539528515619Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 1539628515619Smrg $as_echo_n "(cached) " >&6 1539728515619Smrgelse 1539828515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1539928515619Smrg/* end confdefs.h. */ 1540028515619Smrgint i; 1540128515619Smrg_ACEOF 1540228515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1540328515619Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1540428515619Smrgelse 1540528515619Smrg xorg_cv_cc_flag_unknown_warning_option=no 1540628515619Smrgfi 1540728515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1540828515619Smrgfi 1540928515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1541028515619Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1541128515619Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1541228515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1541328515619Smrgfi 1541428515619Smrg 1541528515619Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1541628515619Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1541728515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1541828515619Smrg fi 1541928515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1542028515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1542128515619Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1542228515619Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 1542328515619Smrg $as_echo_n "(cached) " >&6 1542428515619Smrgelse 1542528515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1542628515619Smrg/* end confdefs.h. */ 1542728515619Smrgint i; 1542828515619Smrg_ACEOF 1542928515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1543028515619Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1543128515619Smrgelse 1543228515619Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1543328515619Smrgfi 1543428515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1543528515619Smrgfi 1543628515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1543728515619Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1543828515619Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1543928515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1544028515619Smrgfi 1544128515619Smrg 1544228515619Smrgfound="no" 1544328515619Smrg 1544428515619Smrg if test $found = "no" ; then 1544528515619Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 1544628515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1544728515619Smrg fi 1544828515619Smrg 1544928515619Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 1545028515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1545128515619Smrg fi 1545228515619Smrg 1545328515619Smrg CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 1545428515619Smrg 1545528515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=pointer-to-int-cast" >&5 1545628515619Smrg$as_echo_n "checking if $CC supports-Werror=pointer-to-int-cast... " >&6; } 1545728515619Smrg cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 1545828515619Smrg if eval \${$cacheid+:} false; then : 1545928515619Smrg $as_echo_n "(cached) " >&6 1546028515619Smrgelse 1546128515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1546228515619Smrg/* end confdefs.h. */ 1546328515619Smrgint i; 1546428515619Smrgint 1546528515619Smrgmain () 1546628515619Smrg{ 1546728515619Smrg 1546828515619Smrg ; 1546928515619Smrg return 0; 1547028515619Smrg} 1547128515619Smrg_ACEOF 1547228515619Smrgif ac_fn_c_try_link "$LINENO"; then : 1547328515619Smrg eval $cacheid=yes 1547428515619Smrgelse 1547528515619Smrg eval $cacheid=no 1547628515619Smrgfi 1547728515619Smrgrm -f core conftest.err conftest.$ac_objext \ 1547828515619Smrg conftest$ac_exeext conftest.$ac_ext 1547928515619Smrgfi 1548028515619Smrg 1548128515619Smrg 1548228515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1548328515619Smrg 1548428515619Smrg eval supported=\$$cacheid 1548528515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1548628515619Smrg$as_echo "$supported" >&6; } 1548728515619Smrg if test "$supported" = "yes" ; then 1548828515619Smrg BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 1548928515619Smrg found="yes" 1549028515619Smrg fi 1549128515619Smrg fi 1549228515619Smrg 1549328515619Smrg # Also -errwarn=E_BAD_PTR_INT_COMBINATION 1549428515619Smrgelse 1549528515619Smrg{ $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 1549628515619Smrg$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;} 1549728515619Smrg 1549828515619Smrg 1549928515619Smrg 1550028515619Smrg 1550128515619Smrg 1550228515619Smrg 1550328515619Smrg 1550428515619Smrg 1550528515619Smrg 1550628515619Smrg 1550728515619Smrg 1550828515619Smrg 1550928515619Smrg 1551028515619Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1551128515619Smrg 1551228515619Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1551328515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1551428515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1551528515619Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1551628515619Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 1551728515619Smrg $as_echo_n "(cached) " >&6 1551828515619Smrgelse 1551928515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1552028515619Smrg/* end confdefs.h. */ 1552128515619Smrgint i; 1552228515619Smrg_ACEOF 1552328515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1552428515619Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1552528515619Smrgelse 1552628515619Smrg xorg_cv_cc_flag_unknown_warning_option=no 1552728515619Smrgfi 1552828515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1552928515619Smrgfi 1553028515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1553128515619Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1553228515619Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1553328515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1553428515619Smrgfi 1553528515619Smrg 1553628515619Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1553728515619Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1553828515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1553928515619Smrg fi 1554028515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1554128515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1554228515619Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1554328515619Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 1554428515619Smrg $as_echo_n "(cached) " >&6 1554528515619Smrgelse 1554628515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1554728515619Smrg/* end confdefs.h. */ 1554828515619Smrgint i; 1554928515619Smrg_ACEOF 1555028515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1555128515619Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1555228515619Smrgelse 1555328515619Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1555428515619Smrgfi 1555528515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1555628515619Smrgfi 1555728515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1555828515619Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1555928515619Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1556028515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1556128515619Smrgfi 1556228515619Smrg 1556328515619Smrgfound="no" 1556428515619Smrg 1556528515619Smrg if test $found = "no" ; then 1556628515619Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 1556728515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1556828515619Smrg fi 1556928515619Smrg 1557028515619Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 1557128515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1557228515619Smrg fi 1557328515619Smrg 1557428515619Smrg CFLAGS="$CFLAGS -Wimplicit" 1557528515619Smrg 1557628515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wimplicit" >&5 1557728515619Smrg$as_echo_n "checking if $CC supports-Wimplicit... " >&6; } 1557828515619Smrg cacheid=xorg_cv_cc_flag__Wimplicit 1557928515619Smrg if eval \${$cacheid+:} false; then : 1558028515619Smrg $as_echo_n "(cached) " >&6 1558128515619Smrgelse 1558228515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1558328515619Smrg/* end confdefs.h. */ 1558428515619Smrgint i; 1558528515619Smrgint 1558628515619Smrgmain () 1558728515619Smrg{ 1558828515619Smrg 1558928515619Smrg ; 1559028515619Smrg return 0; 1559128515619Smrg} 1559228515619Smrg_ACEOF 1559328515619Smrgif ac_fn_c_try_link "$LINENO"; then : 1559428515619Smrg eval $cacheid=yes 1559528515619Smrgelse 1559628515619Smrg eval $cacheid=no 1559728515619Smrgfi 1559828515619Smrgrm -f core conftest.err conftest.$ac_objext \ 1559928515619Smrg conftest$ac_exeext conftest.$ac_ext 1560028515619Smrgfi 1560128515619Smrg 1560228515619Smrg 1560328515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1560428515619Smrg 1560528515619Smrg eval supported=\$$cacheid 1560628515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1560728515619Smrg$as_echo "$supported" >&6; } 1560828515619Smrg if test "$supported" = "yes" ; then 1560928515619Smrg BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 1561028515619Smrg found="yes" 1561128515619Smrg fi 1561228515619Smrg fi 1561328515619Smrg 1561428515619Smrg 1561528515619Smrg 1561628515619Smrg 1561728515619Smrg 1561828515619Smrg 1561928515619Smrg 1562028515619Smrg 1562128515619Smrg 1562228515619Smrg 1562328515619Smrg 1562428515619Smrg 1562528515619Smrg 1562628515619Smrg 1562728515619Smrg 1562828515619Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1562928515619Smrg 1563028515619Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1563128515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1563228515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1563328515619Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1563428515619Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 1563528515619Smrg $as_echo_n "(cached) " >&6 1563628515619Smrgelse 1563728515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1563828515619Smrg/* end confdefs.h. */ 1563928515619Smrgint i; 1564028515619Smrg_ACEOF 1564128515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1564228515619Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1564328515619Smrgelse 1564428515619Smrg xorg_cv_cc_flag_unknown_warning_option=no 1564528515619Smrgfi 1564628515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1564728515619Smrgfi 1564828515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1564928515619Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1565028515619Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1565128515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1565228515619Smrgfi 1565328515619Smrg 1565428515619Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1565528515619Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1565628515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1565728515619Smrg fi 1565828515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1565928515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1566028515619Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1566128515619Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 1566228515619Smrg $as_echo_n "(cached) " >&6 1566328515619Smrgelse 1566428515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1566528515619Smrg/* end confdefs.h. */ 1566628515619Smrgint i; 1566728515619Smrg_ACEOF 1566828515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1566928515619Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1567028515619Smrgelse 1567128515619Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1567228515619Smrgfi 1567328515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1567428515619Smrgfi 1567528515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1567628515619Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1567728515619Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1567828515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1567928515619Smrgfi 1568028515619Smrg 1568128515619Smrgfound="no" 1568228515619Smrg 1568328515619Smrg if test $found = "no" ; then 1568428515619Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 1568528515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1568628515619Smrg fi 1568728515619Smrg 1568828515619Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 1568928515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1569028515619Smrg fi 1569128515619Smrg 1569228515619Smrg CFLAGS="$CFLAGS -Wnonnull" 1569328515619Smrg 1569428515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnonnull" >&5 1569528515619Smrg$as_echo_n "checking if $CC supports-Wnonnull... " >&6; } 1569628515619Smrg cacheid=xorg_cv_cc_flag__Wnonnull 1569728515619Smrg if eval \${$cacheid+:} false; then : 1569828515619Smrg $as_echo_n "(cached) " >&6 1569928515619Smrgelse 1570028515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1570128515619Smrg/* end confdefs.h. */ 1570228515619Smrgint i; 1570328515619Smrgint 1570428515619Smrgmain () 1570528515619Smrg{ 1570628515619Smrg 1570728515619Smrg ; 1570828515619Smrg return 0; 1570928515619Smrg} 1571028515619Smrg_ACEOF 1571128515619Smrgif ac_fn_c_try_link "$LINENO"; then : 1571228515619Smrg eval $cacheid=yes 1571328515619Smrgelse 1571428515619Smrg eval $cacheid=no 1571528515619Smrgfi 1571628515619Smrgrm -f core conftest.err conftest.$ac_objext \ 1571728515619Smrg conftest$ac_exeext conftest.$ac_ext 1571828515619Smrgfi 1571928515619Smrg 1572028515619Smrg 1572128515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1572228515619Smrg 1572328515619Smrg eval supported=\$$cacheid 1572428515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1572528515619Smrg$as_echo "$supported" >&6; } 1572628515619Smrg if test "$supported" = "yes" ; then 1572728515619Smrg BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 1572828515619Smrg found="yes" 1572928515619Smrg fi 1573028515619Smrg fi 1573128515619Smrg 1573228515619Smrg 1573328515619Smrg 1573428515619Smrg 1573528515619Smrg 1573628515619Smrg 1573728515619Smrg 1573828515619Smrg 1573928515619Smrg 1574028515619Smrg 1574128515619Smrg 1574228515619Smrg 1574328515619Smrg 1574428515619Smrg 1574528515619Smrg 1574628515619Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1574728515619Smrg 1574828515619Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1574928515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1575028515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1575128515619Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1575228515619Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 1575328515619Smrg $as_echo_n "(cached) " >&6 1575428515619Smrgelse 1575528515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1575628515619Smrg/* end confdefs.h. */ 1575728515619Smrgint i; 1575828515619Smrg_ACEOF 1575928515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1576028515619Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1576128515619Smrgelse 1576228515619Smrg xorg_cv_cc_flag_unknown_warning_option=no 1576328515619Smrgfi 1576428515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1576528515619Smrgfi 1576628515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1576728515619Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1576828515619Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1576928515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1577028515619Smrgfi 1577128515619Smrg 1577228515619Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1577328515619Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1577428515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1577528515619Smrg fi 1577628515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1577728515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1577828515619Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1577928515619Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 1578028515619Smrg $as_echo_n "(cached) " >&6 1578128515619Smrgelse 1578228515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1578328515619Smrg/* end confdefs.h. */ 1578428515619Smrgint i; 1578528515619Smrg_ACEOF 1578628515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1578728515619Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1578828515619Smrgelse 1578928515619Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1579028515619Smrgfi 1579128515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1579228515619Smrgfi 1579328515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1579428515619Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1579528515619Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1579628515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1579728515619Smrgfi 1579828515619Smrg 1579928515619Smrgfound="no" 1580028515619Smrg 1580128515619Smrg if test $found = "no" ; then 1580228515619Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 1580328515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1580428515619Smrg fi 1580528515619Smrg 1580628515619Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 1580728515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1580828515619Smrg fi 1580928515619Smrg 1581028515619Smrg CFLAGS="$CFLAGS -Winit-self" 1581128515619Smrg 1581228515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Winit-self" >&5 1581328515619Smrg$as_echo_n "checking if $CC supports-Winit-self... " >&6; } 1581428515619Smrg cacheid=xorg_cv_cc_flag__Winit_self 1581528515619Smrg if eval \${$cacheid+:} false; then : 1581628515619Smrg $as_echo_n "(cached) " >&6 1581728515619Smrgelse 1581828515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1581928515619Smrg/* end confdefs.h. */ 1582028515619Smrgint i; 1582128515619Smrgint 1582228515619Smrgmain () 1582328515619Smrg{ 1582428515619Smrg 1582528515619Smrg ; 1582628515619Smrg return 0; 1582728515619Smrg} 1582828515619Smrg_ACEOF 1582928515619Smrgif ac_fn_c_try_link "$LINENO"; then : 1583028515619Smrg eval $cacheid=yes 1583128515619Smrgelse 1583228515619Smrg eval $cacheid=no 1583328515619Smrgfi 1583428515619Smrgrm -f core conftest.err conftest.$ac_objext \ 1583528515619Smrg conftest$ac_exeext conftest.$ac_ext 1583628515619Smrgfi 1583728515619Smrg 1583828515619Smrg 1583928515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1584028515619Smrg 1584128515619Smrg eval supported=\$$cacheid 1584228515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1584328515619Smrg$as_echo "$supported" >&6; } 1584428515619Smrg if test "$supported" = "yes" ; then 1584528515619Smrg BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 1584628515619Smrg found="yes" 1584728515619Smrg fi 1584828515619Smrg fi 1584928515619Smrg 1585028515619Smrg 1585128515619Smrg 1585228515619Smrg 1585328515619Smrg 1585428515619Smrg 1585528515619Smrg 1585628515619Smrg 1585728515619Smrg 1585828515619Smrg 1585928515619Smrg 1586028515619Smrg 1586128515619Smrg 1586228515619Smrg 1586328515619Smrg 1586428515619Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1586528515619Smrg 1586628515619Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1586728515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1586828515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1586928515619Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1587028515619Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 1587128515619Smrg $as_echo_n "(cached) " >&6 1587228515619Smrgelse 1587328515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1587428515619Smrg/* end confdefs.h. */ 1587528515619Smrgint i; 1587628515619Smrg_ACEOF 1587728515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1587828515619Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1587928515619Smrgelse 1588028515619Smrg xorg_cv_cc_flag_unknown_warning_option=no 1588128515619Smrgfi 1588228515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1588328515619Smrgfi 1588428515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1588528515619Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1588628515619Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1588728515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1588828515619Smrgfi 1588928515619Smrg 1589028515619Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1589128515619Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1589228515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1589328515619Smrg fi 1589428515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1589528515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1589628515619Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1589728515619Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 1589828515619Smrg $as_echo_n "(cached) " >&6 1589928515619Smrgelse 1590028515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1590128515619Smrg/* end confdefs.h. */ 1590228515619Smrgint i; 1590328515619Smrg_ACEOF 1590428515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1590528515619Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1590628515619Smrgelse 1590728515619Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1590828515619Smrgfi 1590928515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1591028515619Smrgfi 1591128515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1591228515619Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1591328515619Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1591428515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1591528515619Smrgfi 1591628515619Smrg 1591728515619Smrgfound="no" 1591828515619Smrg 1591928515619Smrg if test $found = "no" ; then 1592028515619Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 1592128515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1592228515619Smrg fi 1592328515619Smrg 1592428515619Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 1592528515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1592628515619Smrg fi 1592728515619Smrg 1592828515619Smrg CFLAGS="$CFLAGS -Wmain" 1592928515619Smrg 1593028515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmain" >&5 1593128515619Smrg$as_echo_n "checking if $CC supports-Wmain... " >&6; } 1593228515619Smrg cacheid=xorg_cv_cc_flag__Wmain 1593328515619Smrg if eval \${$cacheid+:} false; then : 1593428515619Smrg $as_echo_n "(cached) " >&6 1593528515619Smrgelse 1593628515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1593728515619Smrg/* end confdefs.h. */ 1593828515619Smrgint i; 1593928515619Smrgint 1594028515619Smrgmain () 1594128515619Smrg{ 1594228515619Smrg 1594328515619Smrg ; 1594428515619Smrg return 0; 1594528515619Smrg} 1594628515619Smrg_ACEOF 1594728515619Smrgif ac_fn_c_try_link "$LINENO"; then : 1594828515619Smrg eval $cacheid=yes 1594928515619Smrgelse 1595028515619Smrg eval $cacheid=no 1595128515619Smrgfi 1595228515619Smrgrm -f core conftest.err conftest.$ac_objext \ 1595328515619Smrg conftest$ac_exeext conftest.$ac_ext 1595428515619Smrgfi 1595528515619Smrg 1595628515619Smrg 1595728515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1595828515619Smrg 1595928515619Smrg eval supported=\$$cacheid 1596028515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1596128515619Smrg$as_echo "$supported" >&6; } 1596228515619Smrg if test "$supported" = "yes" ; then 1596328515619Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmain" 1596428515619Smrg found="yes" 1596528515619Smrg fi 1596628515619Smrg fi 1596728515619Smrg 1596828515619Smrg 1596928515619Smrg 1597028515619Smrg 1597128515619Smrg 1597228515619Smrg 1597328515619Smrg 1597428515619Smrg 1597528515619Smrg 1597628515619Smrg 1597728515619Smrg 1597828515619Smrg 1597928515619Smrg 1598028515619Smrg 1598128515619Smrg 1598228515619Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1598328515619Smrg 1598428515619Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1598528515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1598628515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1598728515619Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1598828515619Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 1598928515619Smrg $as_echo_n "(cached) " >&6 1599028515619Smrgelse 1599128515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1599228515619Smrg/* end confdefs.h. */ 1599328515619Smrgint i; 1599428515619Smrg_ACEOF 1599528515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1599628515619Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1599728515619Smrgelse 1599828515619Smrg xorg_cv_cc_flag_unknown_warning_option=no 1599928515619Smrgfi 1600028515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1600128515619Smrgfi 1600228515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1600328515619Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1600428515619Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1600528515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1600628515619Smrgfi 1600728515619Smrg 1600828515619Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1600928515619Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1601028515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1601128515619Smrg fi 1601228515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1601328515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1601428515619Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1601528515619Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 1601628515619Smrg $as_echo_n "(cached) " >&6 1601728515619Smrgelse 1601828515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1601928515619Smrg/* end confdefs.h. */ 1602028515619Smrgint i; 1602128515619Smrg_ACEOF 1602228515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1602328515619Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1602428515619Smrgelse 1602528515619Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1602628515619Smrgfi 1602728515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1602828515619Smrgfi 1602928515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1603028515619Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1603128515619Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1603228515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1603328515619Smrgfi 1603428515619Smrg 1603528515619Smrgfound="no" 1603628515619Smrg 1603728515619Smrg if test $found = "no" ; then 1603828515619Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 1603928515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1604028515619Smrg fi 1604128515619Smrg 1604228515619Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 1604328515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1604428515619Smrg fi 1604528515619Smrg 1604628515619Smrg CFLAGS="$CFLAGS -Wmissing-braces" 1604728515619Smrg 1604828515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-braces" >&5 1604928515619Smrg$as_echo_n "checking if $CC supports-Wmissing-braces... " >&6; } 1605028515619Smrg cacheid=xorg_cv_cc_flag__Wmissing_braces 1605128515619Smrg if eval \${$cacheid+:} false; then : 1605228515619Smrg $as_echo_n "(cached) " >&6 1605328515619Smrgelse 1605428515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1605528515619Smrg/* end confdefs.h. */ 1605628515619Smrgint i; 1605728515619Smrgint 1605828515619Smrgmain () 1605928515619Smrg{ 1606028515619Smrg 1606128515619Smrg ; 1606228515619Smrg return 0; 1606328515619Smrg} 1606428515619Smrg_ACEOF 1606528515619Smrgif ac_fn_c_try_link "$LINENO"; then : 1606628515619Smrg eval $cacheid=yes 1606728515619Smrgelse 1606828515619Smrg eval $cacheid=no 1606928515619Smrgfi 1607028515619Smrgrm -f core conftest.err conftest.$ac_objext \ 1607128515619Smrg conftest$ac_exeext conftest.$ac_ext 1607228515619Smrgfi 1607328515619Smrg 1607428515619Smrg 1607528515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1607628515619Smrg 1607728515619Smrg eval supported=\$$cacheid 1607828515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1607928515619Smrg$as_echo "$supported" >&6; } 1608028515619Smrg if test "$supported" = "yes" ; then 1608128515619Smrg BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 1608228515619Smrg found="yes" 1608328515619Smrg fi 1608428515619Smrg fi 1608528515619Smrg 1608628515619Smrg 1608728515619Smrg 1608828515619Smrg 1608928515619Smrg 1609028515619Smrg 1609128515619Smrg 1609228515619Smrg 1609328515619Smrg 1609428515619Smrg 1609528515619Smrg 1609628515619Smrg 1609728515619Smrg 1609828515619Smrg 1609928515619Smrg 1610028515619Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1610128515619Smrg 1610228515619Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1610328515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1610428515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1610528515619Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1610628515619Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 1610728515619Smrg $as_echo_n "(cached) " >&6 1610828515619Smrgelse 1610928515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1611028515619Smrg/* end confdefs.h. */ 1611128515619Smrgint i; 1611228515619Smrg_ACEOF 1611328515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1611428515619Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1611528515619Smrgelse 1611628515619Smrg xorg_cv_cc_flag_unknown_warning_option=no 1611728515619Smrgfi 1611828515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1611928515619Smrgfi 1612028515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1612128515619Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1612228515619Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1612328515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1612428515619Smrgfi 1612528515619Smrg 1612628515619Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1612728515619Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1612828515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1612928515619Smrg fi 1613028515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1613128515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1613228515619Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1613328515619Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 1613428515619Smrg $as_echo_n "(cached) " >&6 1613528515619Smrgelse 1613628515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1613728515619Smrg/* end confdefs.h. */ 1613828515619Smrgint i; 1613928515619Smrg_ACEOF 1614028515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1614128515619Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1614228515619Smrgelse 1614328515619Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1614428515619Smrgfi 1614528515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1614628515619Smrgfi 1614728515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1614828515619Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1614928515619Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1615028515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1615128515619Smrgfi 1615228515619Smrg 1615328515619Smrgfound="no" 1615428515619Smrg 1615528515619Smrg if test $found = "no" ; then 1615628515619Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 1615728515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1615828515619Smrg fi 1615928515619Smrg 1616028515619Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 1616128515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1616228515619Smrg fi 1616328515619Smrg 1616428515619Smrg CFLAGS="$CFLAGS -Wsequence-point" 1616528515619Smrg 1616628515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wsequence-point" >&5 1616728515619Smrg$as_echo_n "checking if $CC supports-Wsequence-point... " >&6; } 1616828515619Smrg cacheid=xorg_cv_cc_flag__Wsequence_point 1616928515619Smrg if eval \${$cacheid+:} false; then : 1617028515619Smrg $as_echo_n "(cached) " >&6 1617128515619Smrgelse 1617228515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1617328515619Smrg/* end confdefs.h. */ 1617428515619Smrgint i; 1617528515619Smrgint 1617628515619Smrgmain () 1617728515619Smrg{ 1617828515619Smrg 1617928515619Smrg ; 1618028515619Smrg return 0; 1618128515619Smrg} 1618228515619Smrg_ACEOF 1618328515619Smrgif ac_fn_c_try_link "$LINENO"; then : 1618428515619Smrg eval $cacheid=yes 1618528515619Smrgelse 1618628515619Smrg eval $cacheid=no 1618728515619Smrgfi 1618828515619Smrgrm -f core conftest.err conftest.$ac_objext \ 1618928515619Smrg conftest$ac_exeext conftest.$ac_ext 1619028515619Smrgfi 1619128515619Smrg 1619228515619Smrg 1619328515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1619428515619Smrg 1619528515619Smrg eval supported=\$$cacheid 1619628515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1619728515619Smrg$as_echo "$supported" >&6; } 1619828515619Smrg if test "$supported" = "yes" ; then 1619928515619Smrg BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 1620028515619Smrg found="yes" 1620128515619Smrg fi 1620228515619Smrg fi 1620328515619Smrg 1620428515619Smrg 1620528515619Smrg 1620628515619Smrg 1620728515619Smrg 1620828515619Smrg 1620928515619Smrg 1621028515619Smrg 1621128515619Smrg 1621228515619Smrg 1621328515619Smrg 1621428515619Smrg 1621528515619Smrg 1621628515619Smrg 1621728515619Smrg 1621828515619Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1621928515619Smrg 1622028515619Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1622128515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1622228515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1622328515619Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1622428515619Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 1622528515619Smrg $as_echo_n "(cached) " >&6 1622628515619Smrgelse 1622728515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1622828515619Smrg/* end confdefs.h. */ 1622928515619Smrgint i; 1623028515619Smrg_ACEOF 1623128515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1623228515619Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1623328515619Smrgelse 1623428515619Smrg xorg_cv_cc_flag_unknown_warning_option=no 1623528515619Smrgfi 1623628515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1623728515619Smrgfi 1623828515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1623928515619Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1624028515619Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1624128515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1624228515619Smrgfi 1624328515619Smrg 1624428515619Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1624528515619Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1624628515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1624728515619Smrg fi 1624828515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1624928515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1625028515619Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1625128515619Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 1625228515619Smrg $as_echo_n "(cached) " >&6 1625328515619Smrgelse 1625428515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1625528515619Smrg/* end confdefs.h. */ 1625628515619Smrgint i; 1625728515619Smrg_ACEOF 1625828515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1625928515619Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1626028515619Smrgelse 1626128515619Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1626228515619Smrgfi 1626328515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1626428515619Smrgfi 1626528515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1626628515619Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1626728515619Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1626828515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1626928515619Smrgfi 1627028515619Smrg 1627128515619Smrgfound="no" 1627228515619Smrg 1627328515619Smrg if test $found = "no" ; then 1627428515619Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 1627528515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1627628515619Smrg fi 1627728515619Smrg 1627828515619Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 1627928515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1628028515619Smrg fi 1628128515619Smrg 1628228515619Smrg CFLAGS="$CFLAGS -Wreturn-type" 1628328515619Smrg 1628428515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wreturn-type" >&5 1628528515619Smrg$as_echo_n "checking if $CC supports-Wreturn-type... " >&6; } 1628628515619Smrg cacheid=xorg_cv_cc_flag__Wreturn_type 1628728515619Smrg if eval \${$cacheid+:} false; then : 1628828515619Smrg $as_echo_n "(cached) " >&6 1628928515619Smrgelse 1629028515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1629128515619Smrg/* end confdefs.h. */ 1629228515619Smrgint i; 1629328515619Smrgint 1629428515619Smrgmain () 1629528515619Smrg{ 1629628515619Smrg 1629728515619Smrg ; 1629828515619Smrg return 0; 1629928515619Smrg} 1630028515619Smrg_ACEOF 1630128515619Smrgif ac_fn_c_try_link "$LINENO"; then : 1630228515619Smrg eval $cacheid=yes 1630328515619Smrgelse 1630428515619Smrg eval $cacheid=no 1630528515619Smrgfi 1630628515619Smrgrm -f core conftest.err conftest.$ac_objext \ 1630728515619Smrg conftest$ac_exeext conftest.$ac_ext 1630828515619Smrgfi 1630928515619Smrg 1631028515619Smrg 1631128515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1631228515619Smrg 1631328515619Smrg eval supported=\$$cacheid 1631428515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1631528515619Smrg$as_echo "$supported" >&6; } 1631628515619Smrg if test "$supported" = "yes" ; then 1631728515619Smrg BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 1631828515619Smrg found="yes" 1631928515619Smrg fi 1632028515619Smrg fi 1632128515619Smrg 1632228515619Smrg 1632328515619Smrg 1632428515619Smrg 1632528515619Smrg 1632628515619Smrg 1632728515619Smrg 1632828515619Smrg 1632928515619Smrg 1633028515619Smrg 1633128515619Smrg 1633228515619Smrg 1633328515619Smrg 1633428515619Smrg 1633528515619Smrg 1633628515619Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1633728515619Smrg 1633828515619Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1633928515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1634028515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1634128515619Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1634228515619Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 1634328515619Smrg $as_echo_n "(cached) " >&6 1634428515619Smrgelse 1634528515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1634628515619Smrg/* end confdefs.h. */ 1634728515619Smrgint i; 1634828515619Smrg_ACEOF 1634928515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1635028515619Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1635128515619Smrgelse 1635228515619Smrg xorg_cv_cc_flag_unknown_warning_option=no 1635328515619Smrgfi 1635428515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1635528515619Smrgfi 1635628515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1635728515619Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1635828515619Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1635928515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1636028515619Smrgfi 1636128515619Smrg 1636228515619Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1636328515619Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1636428515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1636528515619Smrg fi 1636628515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1636728515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1636828515619Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1636928515619Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 1637028515619Smrg $as_echo_n "(cached) " >&6 1637128515619Smrgelse 1637228515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1637328515619Smrg/* end confdefs.h. */ 1637428515619Smrgint i; 1637528515619Smrg_ACEOF 1637628515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1637728515619Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1637828515619Smrgelse 1637928515619Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1638028515619Smrgfi 1638128515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1638228515619Smrgfi 1638328515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1638428515619Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1638528515619Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1638628515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1638728515619Smrgfi 1638828515619Smrg 1638928515619Smrgfound="no" 1639028515619Smrg 1639128515619Smrg if test $found = "no" ; then 1639228515619Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 1639328515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1639428515619Smrg fi 1639528515619Smrg 1639628515619Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 1639728515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1639828515619Smrg fi 1639928515619Smrg 1640028515619Smrg CFLAGS="$CFLAGS -Wtrigraphs" 1640128515619Smrg 1640228515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wtrigraphs" >&5 1640328515619Smrg$as_echo_n "checking if $CC supports-Wtrigraphs... " >&6; } 1640428515619Smrg cacheid=xorg_cv_cc_flag__Wtrigraphs 1640528515619Smrg if eval \${$cacheid+:} false; then : 1640628515619Smrg $as_echo_n "(cached) " >&6 1640728515619Smrgelse 1640828515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1640928515619Smrg/* end confdefs.h. */ 1641028515619Smrgint i; 1641128515619Smrgint 1641228515619Smrgmain () 1641328515619Smrg{ 1641428515619Smrg 1641528515619Smrg ; 1641628515619Smrg return 0; 1641728515619Smrg} 1641828515619Smrg_ACEOF 1641928515619Smrgif ac_fn_c_try_link "$LINENO"; then : 1642028515619Smrg eval $cacheid=yes 1642128515619Smrgelse 1642228515619Smrg eval $cacheid=no 1642328515619Smrgfi 1642428515619Smrgrm -f core conftest.err conftest.$ac_objext \ 1642528515619Smrg conftest$ac_exeext conftest.$ac_ext 1642628515619Smrgfi 1642728515619Smrg 1642828515619Smrg 1642928515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1643028515619Smrg 1643128515619Smrg eval supported=\$$cacheid 1643228515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1643328515619Smrg$as_echo "$supported" >&6; } 1643428515619Smrg if test "$supported" = "yes" ; then 1643528515619Smrg BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 1643628515619Smrg found="yes" 1643728515619Smrg fi 1643828515619Smrg fi 1643928515619Smrg 1644028515619Smrg 1644128515619Smrg 1644228515619Smrg 1644328515619Smrg 1644428515619Smrg 1644528515619Smrg 1644628515619Smrg 1644728515619Smrg 1644828515619Smrg 1644928515619Smrg 1645028515619Smrg 1645128515619Smrg 1645228515619Smrg 1645328515619Smrg 1645428515619Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1645528515619Smrg 1645628515619Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1645728515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1645828515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1645928515619Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1646028515619Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 1646128515619Smrg $as_echo_n "(cached) " >&6 1646228515619Smrgelse 1646328515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1646428515619Smrg/* end confdefs.h. */ 1646528515619Smrgint i; 1646628515619Smrg_ACEOF 1646728515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1646828515619Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1646928515619Smrgelse 1647028515619Smrg xorg_cv_cc_flag_unknown_warning_option=no 1647128515619Smrgfi 1647228515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1647328515619Smrgfi 1647428515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1647528515619Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1647628515619Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1647728515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1647828515619Smrgfi 1647928515619Smrg 1648028515619Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1648128515619Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1648228515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1648328515619Smrg fi 1648428515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1648528515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1648628515619Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1648728515619Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 1648828515619Smrg $as_echo_n "(cached) " >&6 1648928515619Smrgelse 1649028515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1649128515619Smrg/* end confdefs.h. */ 1649228515619Smrgint i; 1649328515619Smrg_ACEOF 1649428515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1649528515619Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1649628515619Smrgelse 1649728515619Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1649828515619Smrgfi 1649928515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1650028515619Smrgfi 1650128515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1650228515619Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1650328515619Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1650428515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1650528515619Smrgfi 1650628515619Smrg 1650728515619Smrgfound="no" 1650828515619Smrg 1650928515619Smrg if test $found = "no" ; then 1651028515619Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 1651128515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1651228515619Smrg fi 1651328515619Smrg 1651428515619Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 1651528515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1651628515619Smrg fi 1651728515619Smrg 1651828515619Smrg CFLAGS="$CFLAGS -Warray-bounds" 1651928515619Smrg 1652028515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Warray-bounds" >&5 1652128515619Smrg$as_echo_n "checking if $CC supports-Warray-bounds... " >&6; } 1652228515619Smrg cacheid=xorg_cv_cc_flag__Warray_bounds 1652328515619Smrg if eval \${$cacheid+:} false; then : 1652428515619Smrg $as_echo_n "(cached) " >&6 1652528515619Smrgelse 1652628515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1652728515619Smrg/* end confdefs.h. */ 1652828515619Smrgint i; 1652928515619Smrgint 1653028515619Smrgmain () 1653128515619Smrg{ 1653228515619Smrg 1653328515619Smrg ; 1653428515619Smrg return 0; 1653528515619Smrg} 1653628515619Smrg_ACEOF 1653728515619Smrgif ac_fn_c_try_link "$LINENO"; then : 1653828515619Smrg eval $cacheid=yes 1653928515619Smrgelse 1654028515619Smrg eval $cacheid=no 1654128515619Smrgfi 1654228515619Smrgrm -f core conftest.err conftest.$ac_objext \ 1654328515619Smrg conftest$ac_exeext conftest.$ac_ext 1654428515619Smrgfi 1654528515619Smrg 1654628515619Smrg 1654728515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1654828515619Smrg 1654928515619Smrg eval supported=\$$cacheid 1655028515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1655128515619Smrg$as_echo "$supported" >&6; } 1655228515619Smrg if test "$supported" = "yes" ; then 1655328515619Smrg BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 1655428515619Smrg found="yes" 1655528515619Smrg fi 1655628515619Smrg fi 1655728515619Smrg 1655828515619Smrg 1655928515619Smrg 1656028515619Smrg 1656128515619Smrg 1656228515619Smrg 1656328515619Smrg 1656428515619Smrg 1656528515619Smrg 1656628515619Smrg 1656728515619Smrg 1656828515619Smrg 1656928515619Smrg 1657028515619Smrg 1657128515619Smrg 1657228515619Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1657328515619Smrg 1657428515619Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1657528515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1657628515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1657728515619Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1657828515619Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 1657928515619Smrg $as_echo_n "(cached) " >&6 1658028515619Smrgelse 1658128515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1658228515619Smrg/* end confdefs.h. */ 1658328515619Smrgint i; 1658428515619Smrg_ACEOF 1658528515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1658628515619Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1658728515619Smrgelse 1658828515619Smrg xorg_cv_cc_flag_unknown_warning_option=no 1658928515619Smrgfi 1659028515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1659128515619Smrgfi 1659228515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1659328515619Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1659428515619Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1659528515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1659628515619Smrgfi 1659728515619Smrg 1659828515619Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1659928515619Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1660028515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1660128515619Smrg fi 1660228515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1660328515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1660428515619Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1660528515619Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 1660628515619Smrg $as_echo_n "(cached) " >&6 1660728515619Smrgelse 1660828515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1660928515619Smrg/* end confdefs.h. */ 1661028515619Smrgint i; 1661128515619Smrg_ACEOF 1661228515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1661328515619Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1661428515619Smrgelse 1661528515619Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1661628515619Smrgfi 1661728515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1661828515619Smrgfi 1661928515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1662028515619Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1662128515619Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1662228515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1662328515619Smrgfi 1662428515619Smrg 1662528515619Smrgfound="no" 1662628515619Smrg 1662728515619Smrg if test $found = "no" ; then 1662828515619Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 1662928515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1663028515619Smrg fi 1663128515619Smrg 1663228515619Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 1663328515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1663428515619Smrg fi 1663528515619Smrg 1663628515619Smrg CFLAGS="$CFLAGS -Wwrite-strings" 1663728515619Smrg 1663828515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wwrite-strings" >&5 1663928515619Smrg$as_echo_n "checking if $CC supports-Wwrite-strings... " >&6; } 1664028515619Smrg cacheid=xorg_cv_cc_flag__Wwrite_strings 1664128515619Smrg if eval \${$cacheid+:} false; then : 1664228515619Smrg $as_echo_n "(cached) " >&6 1664328515619Smrgelse 1664428515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1664528515619Smrg/* end confdefs.h. */ 1664628515619Smrgint i; 1664728515619Smrgint 1664828515619Smrgmain () 1664928515619Smrg{ 1665028515619Smrg 1665128515619Smrg ; 1665228515619Smrg return 0; 1665328515619Smrg} 1665428515619Smrg_ACEOF 1665528515619Smrgif ac_fn_c_try_link "$LINENO"; then : 1665628515619Smrg eval $cacheid=yes 1665728515619Smrgelse 1665828515619Smrg eval $cacheid=no 1665928515619Smrgfi 1666028515619Smrgrm -f core conftest.err conftest.$ac_objext \ 1666128515619Smrg conftest$ac_exeext conftest.$ac_ext 1666228515619Smrgfi 1666328515619Smrg 1666428515619Smrg 1666528515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1666628515619Smrg 1666728515619Smrg eval supported=\$$cacheid 1666828515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1666928515619Smrg$as_echo "$supported" >&6; } 1667028515619Smrg if test "$supported" = "yes" ; then 1667128515619Smrg BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 1667228515619Smrg found="yes" 1667328515619Smrg fi 1667428515619Smrg fi 1667528515619Smrg 1667628515619Smrg 1667728515619Smrg 1667828515619Smrg 1667928515619Smrg 1668028515619Smrg 1668128515619Smrg 1668228515619Smrg 1668328515619Smrg 1668428515619Smrg 1668528515619Smrg 1668628515619Smrg 1668728515619Smrg 1668828515619Smrg 1668928515619Smrg 1669028515619Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1669128515619Smrg 1669228515619Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1669328515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1669428515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1669528515619Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1669628515619Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 1669728515619Smrg $as_echo_n "(cached) " >&6 1669828515619Smrgelse 1669928515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1670028515619Smrg/* end confdefs.h. */ 1670128515619Smrgint i; 1670228515619Smrg_ACEOF 1670328515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1670428515619Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1670528515619Smrgelse 1670628515619Smrg xorg_cv_cc_flag_unknown_warning_option=no 1670728515619Smrgfi 1670828515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1670928515619Smrgfi 1671028515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1671128515619Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1671228515619Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1671328515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1671428515619Smrgfi 1671528515619Smrg 1671628515619Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1671728515619Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1671828515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1671928515619Smrg fi 1672028515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1672128515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1672228515619Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1672328515619Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 1672428515619Smrg $as_echo_n "(cached) " >&6 1672528515619Smrgelse 1672628515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1672728515619Smrg/* end confdefs.h. */ 1672828515619Smrgint i; 1672928515619Smrg_ACEOF 1673028515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1673128515619Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1673228515619Smrgelse 1673328515619Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1673428515619Smrgfi 1673528515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1673628515619Smrgfi 1673728515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1673828515619Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1673928515619Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1674028515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1674128515619Smrgfi 1674228515619Smrg 1674328515619Smrgfound="no" 1674428515619Smrg 1674528515619Smrg if test $found = "no" ; then 1674628515619Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 1674728515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1674828515619Smrg fi 1674928515619Smrg 1675028515619Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 1675128515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1675228515619Smrg fi 1675328515619Smrg 1675428515619Smrg CFLAGS="$CFLAGS -Waddress" 1675528515619Smrg 1675628515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Waddress" >&5 1675728515619Smrg$as_echo_n "checking if $CC supports-Waddress... " >&6; } 1675828515619Smrg cacheid=xorg_cv_cc_flag__Waddress 1675928515619Smrg if eval \${$cacheid+:} false; then : 1676028515619Smrg $as_echo_n "(cached) " >&6 1676128515619Smrgelse 1676228515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1676328515619Smrg/* end confdefs.h. */ 1676428515619Smrgint i; 1676528515619Smrgint 1676628515619Smrgmain () 1676728515619Smrg{ 1676828515619Smrg 1676928515619Smrg ; 1677028515619Smrg return 0; 1677128515619Smrg} 1677228515619Smrg_ACEOF 1677328515619Smrgif ac_fn_c_try_link "$LINENO"; then : 1677428515619Smrg eval $cacheid=yes 1677528515619Smrgelse 1677628515619Smrg eval $cacheid=no 1677728515619Smrgfi 1677828515619Smrgrm -f core conftest.err conftest.$ac_objext \ 1677928515619Smrg conftest$ac_exeext conftest.$ac_ext 1678028515619Smrgfi 1678128515619Smrg 1678228515619Smrg 1678328515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1678428515619Smrg 1678528515619Smrg eval supported=\$$cacheid 1678628515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1678728515619Smrg$as_echo "$supported" >&6; } 1678828515619Smrg if test "$supported" = "yes" ; then 1678928515619Smrg BASE_CFLAGS="$BASE_CFLAGS -Waddress" 1679028515619Smrg found="yes" 1679128515619Smrg fi 1679228515619Smrg fi 1679328515619Smrg 1679428515619Smrg 1679528515619Smrg 1679628515619Smrg 1679728515619Smrg 1679828515619Smrg 1679928515619Smrg 1680028515619Smrg 1680128515619Smrg 1680228515619Smrg 1680328515619Smrg 1680428515619Smrg 1680528515619Smrg 1680628515619Smrg 1680728515619Smrg 1680828515619Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1680928515619Smrg 1681028515619Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1681128515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1681228515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1681328515619Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1681428515619Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 1681528515619Smrg $as_echo_n "(cached) " >&6 1681628515619Smrgelse 1681728515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1681828515619Smrg/* end confdefs.h. */ 1681928515619Smrgint i; 1682028515619Smrg_ACEOF 1682128515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1682228515619Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1682328515619Smrgelse 1682428515619Smrg xorg_cv_cc_flag_unknown_warning_option=no 1682528515619Smrgfi 1682628515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1682728515619Smrgfi 1682828515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1682928515619Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1683028515619Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1683128515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1683228515619Smrgfi 1683328515619Smrg 1683428515619Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1683528515619Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1683628515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1683728515619Smrg fi 1683828515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1683928515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1684028515619Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1684128515619Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 1684228515619Smrg $as_echo_n "(cached) " >&6 1684328515619Smrgelse 1684428515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1684528515619Smrg/* end confdefs.h. */ 1684628515619Smrgint i; 1684728515619Smrg_ACEOF 1684828515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1684928515619Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1685028515619Smrgelse 1685128515619Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1685228515619Smrgfi 1685328515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1685428515619Smrgfi 1685528515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1685628515619Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1685728515619Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1685828515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1685928515619Smrgfi 1686028515619Smrg 1686128515619Smrgfound="no" 1686228515619Smrg 1686328515619Smrg if test $found = "no" ; then 1686428515619Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 1686528515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1686628515619Smrg fi 1686728515619Smrg 1686828515619Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 1686928515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1687028515619Smrg fi 1687128515619Smrg 1687228515619Smrg CFLAGS="$CFLAGS -Wint-to-pointer-cast" 1687328515619Smrg 1687428515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wint-to-pointer-cast" >&5 1687528515619Smrg$as_echo_n "checking if $CC supports-Wint-to-pointer-cast... " >&6; } 1687628515619Smrg cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 1687728515619Smrg if eval \${$cacheid+:} false; then : 1687828515619Smrg $as_echo_n "(cached) " >&6 1687928515619Smrgelse 1688028515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1688128515619Smrg/* end confdefs.h. */ 1688228515619Smrgint i; 1688328515619Smrgint 1688428515619Smrgmain () 1688528515619Smrg{ 1688628515619Smrg 1688728515619Smrg ; 1688828515619Smrg return 0; 1688928515619Smrg} 1689028515619Smrg_ACEOF 1689128515619Smrgif ac_fn_c_try_link "$LINENO"; then : 1689228515619Smrg eval $cacheid=yes 1689328515619Smrgelse 1689428515619Smrg eval $cacheid=no 1689528515619Smrgfi 1689628515619Smrgrm -f core conftest.err conftest.$ac_objext \ 1689728515619Smrg conftest$ac_exeext conftest.$ac_ext 1689828515619Smrgfi 1689928515619Smrg 1690028515619Smrg 1690128515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1690228515619Smrg 1690328515619Smrg eval supported=\$$cacheid 1690428515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1690528515619Smrg$as_echo "$supported" >&6; } 1690628515619Smrg if test "$supported" = "yes" ; then 1690728515619Smrg BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 1690828515619Smrg found="yes" 1690928515619Smrg fi 1691028515619Smrg fi 1691128515619Smrg 1691228515619Smrg 1691328515619Smrg 1691428515619Smrg 1691528515619Smrg 1691628515619Smrg 1691728515619Smrg 1691828515619Smrg 1691928515619Smrg 1692028515619Smrg 1692128515619Smrg 1692228515619Smrg 1692328515619Smrg 1692428515619Smrg 1692528515619Smrg 1692628515619Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1692728515619Smrg 1692828515619Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1692928515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1693028515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1693128515619Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1693228515619Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 1693328515619Smrg $as_echo_n "(cached) " >&6 1693428515619Smrgelse 1693528515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1693628515619Smrg/* end confdefs.h. */ 1693728515619Smrgint i; 1693828515619Smrg_ACEOF 1693928515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1694028515619Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1694128515619Smrgelse 1694228515619Smrg xorg_cv_cc_flag_unknown_warning_option=no 1694328515619Smrgfi 1694428515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1694528515619Smrgfi 1694628515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1694728515619Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1694828515619Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1694928515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1695028515619Smrgfi 1695128515619Smrg 1695228515619Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1695328515619Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1695428515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1695528515619Smrg fi 1695628515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1695728515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1695828515619Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1695928515619Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 1696028515619Smrg $as_echo_n "(cached) " >&6 1696128515619Smrgelse 1696228515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1696328515619Smrg/* end confdefs.h. */ 1696428515619Smrgint i; 1696528515619Smrg_ACEOF 1696628515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1696728515619Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1696828515619Smrgelse 1696928515619Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1697028515619Smrgfi 1697128515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1697228515619Smrgfi 1697328515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1697428515619Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1697528515619Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1697628515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1697728515619Smrgfi 1697828515619Smrg 1697928515619Smrgfound="no" 1698028515619Smrg 1698128515619Smrg if test $found = "no" ; then 1698228515619Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 1698328515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1698428515619Smrg fi 1698528515619Smrg 1698628515619Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 1698728515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1698828515619Smrg fi 1698928515619Smrg 1699028515619Smrg CFLAGS="$CFLAGS -Wpointer-to-int-cast" 1699128515619Smrg 1699228515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-to-int-cast" >&5 1699328515619Smrg$as_echo_n "checking if $CC supports-Wpointer-to-int-cast... " >&6; } 1699428515619Smrg cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 1699528515619Smrg if eval \${$cacheid+:} false; then : 1699628515619Smrg $as_echo_n "(cached) " >&6 1699728515619Smrgelse 1699828515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1699928515619Smrg/* end confdefs.h. */ 1700028515619Smrgint i; 1700128515619Smrgint 1700228515619Smrgmain () 1700328515619Smrg{ 1700428515619Smrg 1700528515619Smrg ; 1700628515619Smrg return 0; 1700728515619Smrg} 1700828515619Smrg_ACEOF 1700928515619Smrgif ac_fn_c_try_link "$LINENO"; then : 1701028515619Smrg eval $cacheid=yes 1701128515619Smrgelse 1701228515619Smrg eval $cacheid=no 1701328515619Smrgfi 1701428515619Smrgrm -f core conftest.err conftest.$ac_objext \ 1701528515619Smrg conftest$ac_exeext conftest.$ac_ext 1701628515619Smrgfi 1701728515619Smrg 1701828515619Smrg 1701928515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1702028515619Smrg 1702128515619Smrg eval supported=\$$cacheid 1702228515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1702328515619Smrg$as_echo "$supported" >&6; } 1702428515619Smrg if test "$supported" = "yes" ; then 1702528515619Smrg BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 1702628515619Smrg found="yes" 1702728515619Smrg fi 1702828515619Smrg fi 1702928515619Smrg 1703028515619Smrg 1703128515619Smrgfi 1703228515619Smrg 1703328515619Smrg 1703428515619Smrg 1703528515619Smrg 1703628515619Smrg 1703728515619Smrg 1703828515619Smrg 1703928515619Smrg CWARNFLAGS="$BASE_CFLAGS" 1704028515619Smrg if test "x$GCC" = xyes ; then 1704128515619Smrg CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 1704228515619Smrg fi 1704328515619Smrg 1704428515619Smrg 1704528515619Smrg 1704628515619Smrg 1704728515619Smrg 1704828515619Smrg 1704928515619Smrg 1705028515619Smrg 1705128515619Smrg# Check whether --enable-strict-compilation was given. 1705228515619Smrgif test "${enable_strict_compilation+set}" = set; then : 1705328515619Smrg enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 1705428515619Smrgelse 1705528515619Smrg STRICT_COMPILE=no 1705628515619Smrgfi 1705728515619Smrg 1705828515619Smrg 1705928515619Smrg 1706028515619Smrg 1706128515619Smrg 1706228515619Smrg 1706328515619SmrgSTRICT_CFLAGS="" 1706428515619Smrg 1706528515619Smrg 1706628515619Smrg 1706728515619Smrg 1706828515619Smrg 1706928515619Smrg 1707028515619Smrg 1707128515619Smrg 1707228515619Smrg 1707328515619Smrg 1707428515619Smrg 1707528515619Smrg 1707628515619Smrg 1707728515619Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1707828515619Smrg 1707928515619Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1708028515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1708128515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1708228515619Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1708328515619Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 1708428515619Smrg $as_echo_n "(cached) " >&6 1708528515619Smrgelse 1708628515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1708728515619Smrg/* end confdefs.h. */ 1708828515619Smrgint i; 1708928515619Smrg_ACEOF 1709028515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1709128515619Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1709228515619Smrgelse 1709328515619Smrg xorg_cv_cc_flag_unknown_warning_option=no 1709428515619Smrgfi 1709528515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1709628515619Smrgfi 1709728515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1709828515619Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1709928515619Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1710028515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1710128515619Smrgfi 1710228515619Smrg 1710328515619Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1710428515619Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1710528515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1710628515619Smrg fi 1710728515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1710828515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1710928515619Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1711028515619Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 1711128515619Smrg $as_echo_n "(cached) " >&6 1711228515619Smrgelse 1711328515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1711428515619Smrg/* end confdefs.h. */ 1711528515619Smrgint i; 1711628515619Smrg_ACEOF 1711728515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1711828515619Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1711928515619Smrgelse 1712028515619Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1712128515619Smrgfi 1712228515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1712328515619Smrgfi 1712428515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1712528515619Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1712628515619Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1712728515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1712828515619Smrgfi 1712928515619Smrg 1713028515619Smrgfound="no" 1713128515619Smrg 1713228515619Smrg if test $found = "no" ; then 1713328515619Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 1713428515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1713528515619Smrg fi 1713628515619Smrg 1713728515619Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 1713828515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1713928515619Smrg fi 1714028515619Smrg 1714128515619Smrg CFLAGS="$CFLAGS -pedantic" 1714228515619Smrg 1714328515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-pedantic" >&5 1714428515619Smrg$as_echo_n "checking if $CC supports-pedantic... " >&6; } 1714528515619Smrg cacheid=xorg_cv_cc_flag__pedantic 1714628515619Smrg if eval \${$cacheid+:} false; then : 1714728515619Smrg $as_echo_n "(cached) " >&6 1714828515619Smrgelse 1714928515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1715028515619Smrg/* end confdefs.h. */ 1715128515619Smrgint i; 1715228515619Smrgint 1715328515619Smrgmain () 1715428515619Smrg{ 1715528515619Smrg 1715628515619Smrg ; 1715728515619Smrg return 0; 1715828515619Smrg} 1715928515619Smrg_ACEOF 1716028515619Smrgif ac_fn_c_try_link "$LINENO"; then : 1716128515619Smrg eval $cacheid=yes 1716228515619Smrgelse 1716328515619Smrg eval $cacheid=no 1716428515619Smrgfi 1716528515619Smrgrm -f core conftest.err conftest.$ac_objext \ 1716628515619Smrg conftest$ac_exeext conftest.$ac_ext 1716728515619Smrgfi 1716828515619Smrg 1716928515619Smrg 1717028515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1717128515619Smrg 1717228515619Smrg eval supported=\$$cacheid 1717328515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1717428515619Smrg$as_echo "$supported" >&6; } 1717528515619Smrg if test "$supported" = "yes" ; then 1717628515619Smrg STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 1717728515619Smrg found="yes" 1717828515619Smrg fi 1717928515619Smrg fi 1718028515619Smrg 1718128515619Smrg 1718228515619Smrg 1718328515619Smrg 1718428515619Smrg 1718528515619Smrg 1718628515619Smrg 1718728515619Smrg 1718828515619Smrg 1718928515619Smrg 1719028515619Smrg 1719128515619Smrg 1719228515619Smrg 1719328515619Smrg 1719428515619Smrg 1719528515619Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1719628515619Smrg 1719728515619Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1719828515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1719928515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1720028515619Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1720128515619Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 1720228515619Smrg $as_echo_n "(cached) " >&6 1720328515619Smrgelse 1720428515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1720528515619Smrg/* end confdefs.h. */ 1720628515619Smrgint i; 1720728515619Smrg_ACEOF 1720828515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1720928515619Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1721028515619Smrgelse 1721128515619Smrg xorg_cv_cc_flag_unknown_warning_option=no 1721228515619Smrgfi 1721328515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1721428515619Smrgfi 1721528515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1721628515619Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1721728515619Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1721828515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1721928515619Smrgfi 1722028515619Smrg 1722128515619Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1722228515619Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1722328515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1722428515619Smrg fi 1722528515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1722628515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1722728515619Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1722828515619Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 1722928515619Smrg $as_echo_n "(cached) " >&6 1723028515619Smrgelse 1723128515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1723228515619Smrg/* end confdefs.h. */ 1723328515619Smrgint i; 1723428515619Smrg_ACEOF 1723528515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1723628515619Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1723728515619Smrgelse 1723828515619Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1723928515619Smrgfi 1724028515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1724128515619Smrgfi 1724228515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1724328515619Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1724428515619Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1724528515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1724628515619Smrgfi 1724728515619Smrg 1724828515619Smrgfound="no" 1724928515619Smrg 1725028515619Smrg if test $found = "no" ; then 1725128515619Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 1725228515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1725328515619Smrg fi 1725428515619Smrg 1725528515619Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 1725628515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1725728515619Smrg fi 1725828515619Smrg 1725928515619Smrg CFLAGS="$CFLAGS -Werror" 1726028515619Smrg 1726128515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror" >&5 1726228515619Smrg$as_echo_n "checking if $CC supports-Werror... " >&6; } 1726328515619Smrg cacheid=xorg_cv_cc_flag__Werror 1726428515619Smrg if eval \${$cacheid+:} false; then : 1726528515619Smrg $as_echo_n "(cached) " >&6 1726628515619Smrgelse 1726728515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1726828515619Smrg/* end confdefs.h. */ 1726928515619Smrgint i; 1727028515619Smrgint 1727128515619Smrgmain () 1727228515619Smrg{ 1727328515619Smrg 1727428515619Smrg ; 1727528515619Smrg return 0; 1727628515619Smrg} 1727728515619Smrg_ACEOF 1727828515619Smrgif ac_fn_c_try_link "$LINENO"; then : 1727928515619Smrg eval $cacheid=yes 1728028515619Smrgelse 1728128515619Smrg eval $cacheid=no 1728228515619Smrgfi 1728328515619Smrgrm -f core conftest.err conftest.$ac_objext \ 1728428515619Smrg conftest$ac_exeext conftest.$ac_ext 1728528515619Smrgfi 1728628515619Smrg 1728728515619Smrg 1728828515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1728928515619Smrg 1729028515619Smrg eval supported=\$$cacheid 1729128515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1729228515619Smrg$as_echo "$supported" >&6; } 1729328515619Smrg if test "$supported" = "yes" ; then 1729428515619Smrg STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 1729528515619Smrg found="yes" 1729628515619Smrg fi 1729728515619Smrg fi 1729828515619Smrg 1729928515619Smrg if test $found = "no" ; then 1730028515619Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 1730128515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1730228515619Smrg fi 1730328515619Smrg 1730428515619Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 1730528515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1730628515619Smrg fi 1730728515619Smrg 1730828515619Smrg CFLAGS="$CFLAGS -errwarn" 1730928515619Smrg 1731028515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn" >&5 1731128515619Smrg$as_echo_n "checking if $CC supports-errwarn... " >&6; } 1731228515619Smrg cacheid=xorg_cv_cc_flag__errwarn 1731328515619Smrg if eval \${$cacheid+:} false; then : 1731428515619Smrg $as_echo_n "(cached) " >&6 1731528515619Smrgelse 1731628515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1731728515619Smrg/* end confdefs.h. */ 1731828515619Smrgint i; 1731928515619Smrgint 1732028515619Smrgmain () 1732128515619Smrg{ 1732228515619Smrg 1732328515619Smrg ; 1732428515619Smrg return 0; 1732528515619Smrg} 1732628515619Smrg_ACEOF 1732728515619Smrgif ac_fn_c_try_link "$LINENO"; then : 1732828515619Smrg eval $cacheid=yes 1732928515619Smrgelse 1733028515619Smrg eval $cacheid=no 1733128515619Smrgfi 1733228515619Smrgrm -f core conftest.err conftest.$ac_objext \ 1733328515619Smrg conftest$ac_exeext conftest.$ac_ext 1733428515619Smrgfi 1733528515619Smrg 1733628515619Smrg 1733728515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1733828515619Smrg 1733928515619Smrg eval supported=\$$cacheid 1734028515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1734128515619Smrg$as_echo "$supported" >&6; } 1734228515619Smrg if test "$supported" = "yes" ; then 1734328515619Smrg STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 1734428515619Smrg found="yes" 1734528515619Smrg fi 1734628515619Smrg fi 1734728515619Smrg 1734828515619Smrg 1734928515619Smrg 1735028515619Smrg# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 1735128515619Smrg# activate it with -Werror, so we add it here explicitly. 1735228515619Smrg 1735328515619Smrg 1735428515619Smrg 1735528515619Smrg 1735628515619Smrg 1735728515619Smrg 1735828515619Smrg 1735928515619Smrg 1736028515619Smrg 1736128515619Smrg 1736228515619Smrg 1736328515619Smrg 1736428515619Smrg 1736528515619Smrgxorg_testset_save_CFLAGS="$CFLAGS" 1736628515619Smrg 1736728515619Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 1736828515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1736928515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 1737028515619Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 1737128515619Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 1737228515619Smrg $as_echo_n "(cached) " >&6 1737328515619Smrgelse 1737428515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1737528515619Smrg/* end confdefs.h. */ 1737628515619Smrgint i; 1737728515619Smrg_ACEOF 1737828515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1737928515619Smrg xorg_cv_cc_flag_unknown_warning_option=yes 1738028515619Smrgelse 1738128515619Smrg xorg_cv_cc_flag_unknown_warning_option=no 1738228515619Smrgfi 1738328515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1738428515619Smrgfi 1738528515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 1738628515619Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 1738728515619Smrg xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 1738828515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1738928515619Smrgfi 1739028515619Smrg 1739128515619Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 1739228515619Smrg if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 1739328515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1739428515619Smrg fi 1739528515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1739628515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 1739728515619Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 1739828515619Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 1739928515619Smrg $as_echo_n "(cached) " >&6 1740028515619Smrgelse 1740128515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1740228515619Smrg/* end confdefs.h. */ 1740328515619Smrgint i; 1740428515619Smrg_ACEOF 1740528515619Smrgif ac_fn_c_try_compile "$LINENO"; then : 1740628515619Smrg xorg_cv_cc_flag_unused_command_line_argument=yes 1740728515619Smrgelse 1740828515619Smrg xorg_cv_cc_flag_unused_command_line_argument=no 1740928515619Smrgfi 1741028515619Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1741128515619Smrgfi 1741228515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 1741328515619Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 1741428515619Smrg xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 1741528515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1741628515619Smrgfi 1741728515619Smrg 1741828515619Smrgfound="no" 1741928515619Smrg 1742028515619Smrg if test $found = "no" ; then 1742128515619Smrg if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 1742228515619Smrg CFLAGS="$CFLAGS -Werror=unknown-warning-option" 1742328515619Smrg fi 1742428515619Smrg 1742528515619Smrg if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 1742628515619Smrg CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 1742728515619Smrg fi 1742828515619Smrg 1742928515619Smrg CFLAGS="$CFLAGS -Werror=attributes" 1743028515619Smrg 1743128515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=attributes" >&5 1743228515619Smrg$as_echo_n "checking if $CC supports-Werror=attributes... " >&6; } 1743328515619Smrg cacheid=xorg_cv_cc_flag__Werror_attributes 1743428515619Smrg if eval \${$cacheid+:} false; then : 1743528515619Smrg $as_echo_n "(cached) " >&6 1743628515619Smrgelse 1743728515619Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1743828515619Smrg/* end confdefs.h. */ 1743928515619Smrgint i; 1744028515619Smrgint 1744128515619Smrgmain () 1744228515619Smrg{ 1744328515619Smrg 1744428515619Smrg ; 1744528515619Smrg return 0; 1744628515619Smrg} 1744728515619Smrg_ACEOF 1744828515619Smrgif ac_fn_c_try_link "$LINENO"; then : 1744928515619Smrg eval $cacheid=yes 1745028515619Smrgelse 1745128515619Smrg eval $cacheid=no 1745228515619Smrgfi 1745328515619Smrgrm -f core conftest.err conftest.$ac_objext \ 1745428515619Smrg conftest$ac_exeext conftest.$ac_ext 1745528515619Smrgfi 1745628515619Smrg 1745728515619Smrg 1745828515619Smrg CFLAGS="$xorg_testset_save_CFLAGS" 1745928515619Smrg 1746028515619Smrg eval supported=\$$cacheid 1746128515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 1746228515619Smrg$as_echo "$supported" >&6; } 1746328515619Smrg if test "$supported" = "yes" ; then 1746428515619Smrg STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 1746528515619Smrg found="yes" 1746628515619Smrg fi 1746728515619Smrg fi 1746828515619Smrg 1746928515619Smrg 1747028515619Smrg 1747128515619Smrgif test "x$STRICT_COMPILE" = "xyes"; then 1747228515619Smrg BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 1747328515619Smrg CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 1747428515619Smrgfi 1747528515619Smrg 1747628515619Smrg 1747728515619Smrg 1747828515619Smrg 1747928515619Smrg 1748028515619Smrg 1748128515619Smrgcat >>confdefs.h <<_ACEOF 1748228515619Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 1748328515619Smrg_ACEOF 1748428515619Smrg 1748528515619Smrg PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 1748628515619Smrg if test "x$PVM" = "x"; then 1748728515619Smrg PVM="0" 1748828515619Smrg fi 1748928515619Smrg 1749028515619Smrgcat >>confdefs.h <<_ACEOF 1749128515619Smrg#define PACKAGE_VERSION_MINOR $PVM 1749228515619Smrg_ACEOF 1749328515619Smrg 1749428515619Smrg PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 1749528515619Smrg if test "x$PVP" = "x"; then 1749628515619Smrg PVP="0" 1749728515619Smrg fi 1749828515619Smrg 1749928515619Smrgcat >>confdefs.h <<_ACEOF 1750028515619Smrg#define PACKAGE_VERSION_PATCHLEVEL $PVP 1750128515619Smrg_ACEOF 1750228515619Smrg 1750328515619Smrg 1750428515619Smrg 1750528515619SmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 1750628515619Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 1750728515619Smrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 1750828515619Smrgecho 'git directory not found: installing possibly empty changelog.' >&2)" 1750928515619Smrg 1751028515619Smrg 1751128515619Smrg 1751228515619Smrg 1751328515619Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 1751428515619SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 1751528515619Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 1751628515619Smrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 1751728515619Smrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 1751828515619Smrg 1751928515619Smrg 1752028515619Smrg 1752128515619Smrg 1752228515619Smrg 1752328515619Smrg 1752428515619Smrgif test x$APP_MAN_SUFFIX = x ; then 1752528515619Smrg APP_MAN_SUFFIX=1 1752628515619Smrgfi 1752728515619Smrgif test x$APP_MAN_DIR = x ; then 1752828515619Smrg APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 1752928515619Smrgfi 1753028515619Smrg 1753128515619Smrgif test x$LIB_MAN_SUFFIX = x ; then 1753228515619Smrg LIB_MAN_SUFFIX=3 1753328515619Smrgfi 1753428515619Smrgif test x$LIB_MAN_DIR = x ; then 1753528515619Smrg LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 1753628515619Smrgfi 1753728515619Smrg 1753828515619Smrgif test x$FILE_MAN_SUFFIX = x ; then 1753928515619Smrg case $host_os in 1754028515619Smrg solaris*) FILE_MAN_SUFFIX=4 ;; 1754128515619Smrg *) FILE_MAN_SUFFIX=5 ;; 1754228515619Smrg esac 1754328515619Smrgfi 1754428515619Smrgif test x$FILE_MAN_DIR = x ; then 1754528515619Smrg FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 1754628515619Smrgfi 1754728515619Smrg 1754828515619Smrgif test x$MISC_MAN_SUFFIX = x ; then 1754928515619Smrg case $host_os in 1755028515619Smrg solaris*) MISC_MAN_SUFFIX=5 ;; 1755128515619Smrg *) MISC_MAN_SUFFIX=7 ;; 1755228515619Smrg esac 1755328515619Smrgfi 1755428515619Smrgif test x$MISC_MAN_DIR = x ; then 1755528515619Smrg MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 1755628515619Smrgfi 1755728515619Smrg 1755828515619Smrgif test x$DRIVER_MAN_SUFFIX = x ; then 1755928515619Smrg case $host_os in 1756028515619Smrg solaris*) DRIVER_MAN_SUFFIX=7 ;; 1756128515619Smrg *) DRIVER_MAN_SUFFIX=4 ;; 1756228515619Smrg esac 1756328515619Smrgfi 1756428515619Smrgif test x$DRIVER_MAN_DIR = x ; then 1756528515619Smrg DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 1756628515619Smrgfi 1756728515619Smrg 1756828515619Smrgif test x$ADMIN_MAN_SUFFIX = x ; then 1756928515619Smrg case $host_os in 1757028515619Smrg solaris*) ADMIN_MAN_SUFFIX=1m ;; 1757128515619Smrg *) ADMIN_MAN_SUFFIX=8 ;; 1757228515619Smrg esac 1757328515619Smrgfi 1757428515619Smrgif test x$ADMIN_MAN_DIR = x ; then 1757528515619Smrg ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 1757628515619Smrgfi 1757728515619Smrg 1757828515619Smrg 1757928515619Smrg 1758028515619Smrg 1758128515619Smrg 1758228515619Smrg 1758328515619Smrg 1758428515619Smrg 1758528515619Smrg 1758628515619Smrg 1758728515619Smrg 1758828515619Smrg 1758928515619Smrg 1759028515619Smrg 1759128515619Smrg 1759228515619SmrgXORG_MAN_PAGE="X Version 11" 1759328515619Smrg 1759428515619SmrgMAN_SUBSTS="\ 1759528515619Smrg -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 1759628515619Smrg -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 1759728515619Smrg -e 's|__xservername__|Xorg|g' \ 1759828515619Smrg -e 's|__xconfigfile__|xorg.conf|g' \ 1759928515619Smrg -e 's|__projectroot__|\$(prefix)|g' \ 1760028515619Smrg -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 1760128515619Smrg -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 1760228515619Smrg -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 1760328515619Smrg -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 1760428515619Smrg -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 1760528515619Smrg -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 1760628515619Smrg -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 1760728515619Smrg 1760828515619Smrg 1760928515619Smrg 1761028515619Smrg# Check whether --enable-silent-rules was given. 17611b85037dbSmrgif test "${enable_silent_rules+set}" = set; then : 17612b85037dbSmrg enableval=$enable_silent_rules; 17613b85037dbSmrgfi 17614b85037dbSmrg 1761528515619Smrgcase $enable_silent_rules in # ((( 1761628515619Smrg yes) AM_DEFAULT_VERBOSITY=0;; 1761728515619Smrg no) AM_DEFAULT_VERBOSITY=1;; 1761828515619Smrg *) AM_DEFAULT_VERBOSITY=0;; 17619b85037dbSmrgesac 1762028515619Smrgam_make=${MAKE-make} 1762128515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 1762228515619Smrg$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 1762328515619Smrgif ${am_cv_make_support_nested_variables+:} false; then : 1762428515619Smrg $as_echo_n "(cached) " >&6 1762528515619Smrgelse 1762628515619Smrg if $as_echo 'TRUE=$(BAR$(V)) 1762728515619SmrgBAR0=false 1762828515619SmrgBAR1=true 1762928515619SmrgV=1 1763028515619Smrgam__doit: 1763128515619Smrg @$(TRUE) 1763228515619Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 1763328515619Smrg am_cv_make_support_nested_variables=yes 1763428515619Smrgelse 1763528515619Smrg am_cv_make_support_nested_variables=no 1763628515619Smrgfi 1763728515619Smrgfi 1763828515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 1763928515619Smrg$as_echo "$am_cv_make_support_nested_variables" >&6; } 1764028515619Smrgif test $am_cv_make_support_nested_variables = yes; then 1764128515619Smrg AM_V='$(V)' 1764228515619Smrg AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 1764328515619Smrgelse 1764428515619Smrg AM_V=$AM_DEFAULT_VERBOSITY 1764528515619Smrg AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 1764628515619Smrgfi 17647b85037dbSmrgAM_BACKSLASH='\' 17648b85037dbSmrg 17649b85037dbSmrg 17650b85037dbSmrg 1765128515619Smrg 1765228515619Smrg 1765328515619Smrg 1765428515619Smrg 1765528515619Smrg# Check for different types of support on different platforms 1765628515619Smrgcase $host_os in 1765728515619Smrg solaris*) 1765828515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5 1765928515619Smrg$as_echo_n "checking for umem_alloc in -lumem... " >&6; } 1766028515619Smrgif ${ac_cv_lib_umem_umem_alloc+:} false; then : 1766128515619Smrg $as_echo_n "(cached) " >&6 1766228515619Smrgelse 1766328515619Smrg ac_check_lib_save_LIBS=$LIBS 1766428515619SmrgLIBS="-lumem $LIBS" 1766528515619Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 1766628515619Smrg/* end confdefs.h. */ 1766728515619Smrg 1766828515619Smrg/* Override any GCC internal prototype to avoid an error. 1766928515619Smrg Use char because int might match the return type of a GCC 1767028515619Smrg builtin and then its argument prototype would still apply. */ 1767128515619Smrg#ifdef __cplusplus 1767228515619Smrgextern "C" 1767328515619Smrg#endif 1767428515619Smrgchar umem_alloc (); 1767528515619Smrgint 1767628515619Smrgmain () 1767728515619Smrg{ 1767828515619Smrgreturn umem_alloc (); 1767928515619Smrg ; 1768028515619Smrg return 0; 1768128515619Smrg} 1768228515619Smrg_ACEOF 1768328515619Smrgif ac_fn_c_try_link "$LINENO"; then : 1768428515619Smrg ac_cv_lib_umem_umem_alloc=yes 1768528515619Smrgelse 1768628515619Smrg ac_cv_lib_umem_umem_alloc=no 1768728515619Smrgfi 1768828515619Smrgrm -f core conftest.err conftest.$ac_objext \ 1768928515619Smrg conftest$ac_exeext conftest.$ac_ext 1769028515619SmrgLIBS=$ac_check_lib_save_LIBS 1769128515619Smrgfi 1769228515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5 1769328515619Smrg$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; } 1769428515619Smrgif test "x$ac_cv_lib_umem_umem_alloc" = xyes; then : 1769528515619Smrg malloc_debug_env='LD_PRELOAD=libumem.so UMEM_DEBUG=default' 1769628515619Smrgfi 1769728515619Smrg 1769828515619Smrg ;; 1769928515619Smrg *-gnu*) # GNU libc - Value is used as a single byte bit pattern, 1770028515619Smrg # both directly and inverted, so should not be 0 or 255. 1770128515619Smrg malloc_debug_env='MALLOC_PERTURB_=15' 1770228515619Smrg ;; 1770328515619Smrg darwin*) 1770428515619Smrg malloc_debug_env='MallocPreScribble=1 MallocScribble=1 DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib' 1770528515619Smrg ;; 1770628515619Smrg *bsd*) 1770728515619Smrg malloc_debug_env='MallocPreScribble=1 MallocScribble=1' 1770828515619Smrg ;; 1770928515619Smrgesac 1771028515619Smrg 1771128515619Smrg# User supplied flags override default flags 1771228515619Smrgif test "x$XORG_MALLOC_DEBUG_ENV" != "x"; then 1771328515619Smrg malloc_debug_env="$XORG_MALLOC_DEBUG_ENV" 1771428515619Smrgfi 1771528515619Smrg 1771628515619SmrgXORG_MALLOC_DEBUG_ENV=$malloc_debug_env 1771728515619Smrg 1771828515619Smrg 1771928515619Smrg 1772028515619Smrg 1772128515619Smrg 1772228515619Smrg 1772328515619Smrg 1772428515619Smrg# Check whether --enable-unit-tests was given. 1772528515619Smrgif test "${enable_unit_tests+set}" = set; then : 1772628515619Smrg enableval=$enable_unit_tests; enable_unit_tests=$enableval 1772728515619Smrgelse 1772828515619Smrg enable_unit_tests=auto 1772928515619Smrgfi 1773028515619Smrg 1773128515619Smrg 1773228515619Smrg if test "x$enable_unit_tests" != xno; then 1773328515619Smrg ENABLE_UNIT_TESTS_TRUE= 1773428515619Smrg ENABLE_UNIT_TESTS_FALSE='#' 1773528515619Smrgelse 1773628515619Smrg ENABLE_UNIT_TESTS_TRUE='#' 1773728515619Smrg ENABLE_UNIT_TESTS_FALSE= 1773828515619Smrgfi 1773928515619Smrg 1774028515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build unit test cases" >&5 1774128515619Smrg$as_echo_n "checking whether to build unit test cases... " >&6; } 1774228515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_unit_tests" >&5 1774328515619Smrg$as_echo "$enable_unit_tests" >&6; } 1774428515619Smrg 1774528515619Smrg 17746b85037dbSmrg# Checks for libraries. 17747b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rint in -lm" >&5 17748b85037dbSmrg$as_echo_n "checking for rint in -lm... " >&6; } 17749302b15bdSmrgif ${ac_cv_lib_m_rint+:} false; then : 17750b85037dbSmrg $as_echo_n "(cached) " >&6 17751b85037dbSmrgelse 17752b85037dbSmrg ac_check_lib_save_LIBS=$LIBS 17753b85037dbSmrgLIBS="-lm $LIBS" 17754b85037dbSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 17755b85037dbSmrg/* end confdefs.h. */ 17756b85037dbSmrg 17757b85037dbSmrg/* Override any GCC internal prototype to avoid an error. 17758b85037dbSmrg Use char because int might match the return type of a GCC 17759b85037dbSmrg builtin and then its argument prototype would still apply. */ 17760b85037dbSmrg#ifdef __cplusplus 17761b85037dbSmrgextern "C" 17762b85037dbSmrg#endif 17763b85037dbSmrgchar rint (); 17764b85037dbSmrgint 17765b85037dbSmrgmain () 17766b85037dbSmrg{ 17767b85037dbSmrgreturn rint (); 17768b85037dbSmrg ; 17769b85037dbSmrg return 0; 17770b85037dbSmrg} 17771b85037dbSmrg_ACEOF 17772b85037dbSmrgif ac_fn_c_try_link "$LINENO"; then : 17773b85037dbSmrg ac_cv_lib_m_rint=yes 17774b85037dbSmrgelse 17775b85037dbSmrg ac_cv_lib_m_rint=no 17776b85037dbSmrgfi 17777b85037dbSmrgrm -f core conftest.err conftest.$ac_objext \ 17778b85037dbSmrg conftest$ac_exeext conftest.$ac_ext 17779b85037dbSmrgLIBS=$ac_check_lib_save_LIBS 17780b85037dbSmrgfi 17781b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_rint" >&5 17782b85037dbSmrg$as_echo "$ac_cv_lib_m_rint" >&6; } 17783302b15bdSmrgif test "x$ac_cv_lib_m_rint" = xyes; then : 17784b85037dbSmrg cat >>confdefs.h <<_ACEOF 17785b85037dbSmrg#define HAVE_LIBM 1 17786b85037dbSmrg_ACEOF 17787b85037dbSmrg 17788b85037dbSmrg LIBS="-lm $LIBS" 17789b85037dbSmrg 17790b85037dbSmrgfi 17791b85037dbSmrg 17792b85037dbSmrg 17793b85037dbSmrg# Store the list of server defined optional extensions in REQUIRED_MODULES 17794b85037dbSmrg 17795b85037dbSmrg 1779628515619Smrg 17797b85037dbSmrg SAVE_CFLAGS="$CFLAGS" 17798b85037dbSmrg CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 17799b85037dbSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17800b85037dbSmrg/* end confdefs.h. */ 17801b85037dbSmrg 17802b85037dbSmrg#include "xorg-server.h" 17803b85037dbSmrg#if !defined RANDR 17804b85037dbSmrg#error RANDR not defined 17805b85037dbSmrg#endif 17806b85037dbSmrg 17807b85037dbSmrgint 17808b85037dbSmrgmain () 17809b85037dbSmrg{ 17810b85037dbSmrg 17811b85037dbSmrg ; 17812b85037dbSmrg return 0; 17813b85037dbSmrg} 17814b85037dbSmrg_ACEOF 17815b85037dbSmrgif ac_fn_c_try_compile "$LINENO"; then : 17816b85037dbSmrg _EXT_CHECK=yes 17817b85037dbSmrgelse 17818b85037dbSmrg _EXT_CHECK=no 17819b85037dbSmrgfi 17820b85037dbSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17821b85037dbSmrg CFLAGS="$SAVE_CFLAGS" 17822b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5 17823b85037dbSmrg$as_echo_n "checking if RANDR is defined... " >&6; } 17824b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 17825b85037dbSmrg$as_echo "$_EXT_CHECK" >&6; } 17826b85037dbSmrg if test "$_EXT_CHECK" != no; then 17827b85037dbSmrg REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 17828b85037dbSmrg fi 17829b85037dbSmrg 17830b85037dbSmrg 17831b85037dbSmrg# Obtain compiler/linker options for the Synaptics driver dependencies 17832b85037dbSmrg 17833b85037dbSmrgpkg_failed=no 17834b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 17835b85037dbSmrg$as_echo_n "checking for XORG... " >&6; } 17836b85037dbSmrg 17837b85037dbSmrgif test -n "$XORG_CFLAGS"; then 17838b85037dbSmrg pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 17839b85037dbSmrg elif test -n "$PKG_CONFIG"; then 17840b85037dbSmrg if test -n "$PKG_CONFIG" && \ 1784128515619Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"inputproto >= 2.1.99.3 xorg-server >= 1.12 xproto inputproto \$REQUIRED_MODULES\""; } >&5 1784228515619Smrg ($PKG_CONFIG --exists --print-errors "inputproto >= 2.1.99.3 xorg-server >= 1.12 xproto inputproto $REQUIRED_MODULES") 2>&5 17843b85037dbSmrg ac_status=$? 17844b85037dbSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17845b85037dbSmrg test $ac_status = 0; }; then 1784628515619Smrg pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "inputproto >= 2.1.99.3 xorg-server >= 1.12 xproto inputproto $REQUIRED_MODULES" 2>/dev/null` 1784728515619Smrg test "x$?" != "x0" && pkg_failed=yes 17848b85037dbSmrgelse 17849b85037dbSmrg pkg_failed=yes 17850b85037dbSmrgfi 17851b85037dbSmrg else 17852b85037dbSmrg pkg_failed=untried 17853b85037dbSmrgfi 17854b85037dbSmrgif test -n "$XORG_LIBS"; then 17855b85037dbSmrg pkg_cv_XORG_LIBS="$XORG_LIBS" 17856b85037dbSmrg elif test -n "$PKG_CONFIG"; then 17857b85037dbSmrg if test -n "$PKG_CONFIG" && \ 1785828515619Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"inputproto >= 2.1.99.3 xorg-server >= 1.12 xproto inputproto \$REQUIRED_MODULES\""; } >&5 1785928515619Smrg ($PKG_CONFIG --exists --print-errors "inputproto >= 2.1.99.3 xorg-server >= 1.12 xproto inputproto $REQUIRED_MODULES") 2>&5 17860b85037dbSmrg ac_status=$? 17861b85037dbSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17862b85037dbSmrg test $ac_status = 0; }; then 1786328515619Smrg pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "inputproto >= 2.1.99.3 xorg-server >= 1.12 xproto inputproto $REQUIRED_MODULES" 2>/dev/null` 1786428515619Smrg test "x$?" != "x0" && pkg_failed=yes 17865b85037dbSmrgelse 17866b85037dbSmrg pkg_failed=yes 17867b85037dbSmrgfi 17868b85037dbSmrg else 17869b85037dbSmrg pkg_failed=untried 17870b85037dbSmrgfi 17871b85037dbSmrg 17872b85037dbSmrg 17873b85037dbSmrg 17874b85037dbSmrgif test $pkg_failed = yes; then 17875b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17876b85037dbSmrg$as_echo "no" >&6; } 17877b85037dbSmrg 17878b85037dbSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17879b85037dbSmrg _pkg_short_errors_supported=yes 17880b85037dbSmrgelse 17881b85037dbSmrg _pkg_short_errors_supported=no 17882b85037dbSmrgfi 17883b85037dbSmrg if test $_pkg_short_errors_supported = yes; then 1788428515619Smrg XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "inputproto >= 2.1.99.3 xorg-server >= 1.12 xproto inputproto $REQUIRED_MODULES" 2>&1` 17885b85037dbSmrg else 1788628515619Smrg XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "inputproto >= 2.1.99.3 xorg-server >= 1.12 xproto inputproto $REQUIRED_MODULES" 2>&1` 17887b85037dbSmrg fi 17888b85037dbSmrg # Put the nasty error message in config.log where it belongs 17889b85037dbSmrg echo "$XORG_PKG_ERRORS" >&5 17890b85037dbSmrg 1789128515619Smrg as_fn_error $? "Package requirements (inputproto >= 2.1.99.3 xorg-server >= 1.12 xproto inputproto $REQUIRED_MODULES) were not met: 17892b85037dbSmrg 17893b85037dbSmrg$XORG_PKG_ERRORS 17894b85037dbSmrg 17895b85037dbSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 17896b85037dbSmrginstalled software in a non-standard prefix. 17897b85037dbSmrg 17898b85037dbSmrgAlternatively, you may set the environment variables XORG_CFLAGS 17899b85037dbSmrgand XORG_LIBS to avoid the need to call pkg-config. 17900b85037dbSmrgSee the pkg-config man page for more details." "$LINENO" 5 17901b85037dbSmrgelif test $pkg_failed = untried; then 17902b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17903b85037dbSmrg$as_echo "no" >&6; } 17904b85037dbSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17905b85037dbSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17906b85037dbSmrgas_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 17907b85037dbSmrgis in your PATH or set the PKG_CONFIG environment variable to the full 17908b85037dbSmrgpath to pkg-config. 17909b85037dbSmrg 17910b85037dbSmrgAlternatively, you may set the environment variables XORG_CFLAGS 17911b85037dbSmrgand XORG_LIBS to avoid the need to call pkg-config. 17912b85037dbSmrgSee the pkg-config man page for more details. 17913b85037dbSmrg 17914b85037dbSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 17915b85037dbSmrgSee \`config.log' for more details" "$LINENO" 5; } 17916b85037dbSmrgelse 17917b85037dbSmrg XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 17918b85037dbSmrg XORG_LIBS=$pkg_cv_XORG_LIBS 17919b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17920b85037dbSmrg$as_echo "yes" >&6; } 17921b85037dbSmrg 17922b85037dbSmrgfi 17923b85037dbSmrg 17924b85037dbSmrg# X Server SDK location is required to install Synaptics header files 17925b85037dbSmrg# This location is also relayed in the xorg-synaptics.pc file 17926b85037dbSmrgsdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server` 17927b85037dbSmrg 17928b85037dbSmrg 17929b85037dbSmrg# ----------------------------------------------------------------------------- 17930b85037dbSmrg# Configuration options 17931b85037dbSmrg# ----------------------------------------------------------------------------- 17932b85037dbSmrg# Define a configure option for an alternate input module directory 17933b85037dbSmrg 17934b85037dbSmrg# Check whether --with-xorg-module-dir was given. 17935b85037dbSmrgif test "${with_xorg_module_dir+set}" = set; then : 17936b85037dbSmrg withval=$with_xorg_module_dir; moduledir="$withval" 17937b85037dbSmrgelse 17938b85037dbSmrg moduledir="$libdir/xorg/modules" 17939b85037dbSmrgfi 17940b85037dbSmrg 17941b85037dbSmrginputdir=${moduledir}/input 17942b85037dbSmrg 17943b85037dbSmrg 17944b85037dbSmrg# Define a configure option for an alternate X Server configuration directory 17945b85037dbSmrgsysconfigdir=`$PKG_CONFIG --variable=sysconfigdir xorg-server` 17946b85037dbSmrg 17947b85037dbSmrg# Check whether --with-xorg-conf-dir was given. 17948b85037dbSmrgif test "${with_xorg_conf_dir+set}" = set; then : 17949b85037dbSmrg withval=$with_xorg_conf_dir; configdir="$withval" 17950b85037dbSmrgelse 17951b85037dbSmrg configdir="$sysconfigdir" 17952b85037dbSmrgfi 17953b85037dbSmrg 17954b85037dbSmrg 17955b85037dbSmrg if test "x$sysconfigdir" != "x"; then 17956b85037dbSmrg HAS_XORG_CONF_DIR_TRUE= 17957b85037dbSmrg HAS_XORG_CONF_DIR_FALSE='#' 17958b85037dbSmrgelse 17959b85037dbSmrg HAS_XORG_CONF_DIR_TRUE='#' 17960b85037dbSmrg HAS_XORG_CONF_DIR_FALSE= 17961b85037dbSmrgfi 17962b85037dbSmrg 17963b85037dbSmrg 17964b85037dbSmrg# Define a configure option to enable code debugging 17965b85037dbSmrg# Check whether --enable-debug was given. 17966b85037dbSmrgif test "${enable_debug+set}" = set; then : 17967b85037dbSmrg enableval=$enable_debug; DEBUGGING=$enableval 17968b85037dbSmrgelse 17969b85037dbSmrg DEBUGGING=no 17970b85037dbSmrgfi 17971b85037dbSmrg 17972b85037dbSmrgif test "x$DEBUGGING" = xyes; then 17973b85037dbSmrg 17974b85037dbSmrg$as_echo "#define DEBUG 1" >>confdefs.h 17975b85037dbSmrg 17976b85037dbSmrgfi 17977b85037dbSmrg if test "x$DEBUGGING" = xyes; then 17978b85037dbSmrg DEBUG_TRUE= 17979b85037dbSmrg DEBUG_FALSE='#' 17980b85037dbSmrgelse 17981b85037dbSmrg DEBUG_TRUE='#' 17982b85037dbSmrg DEBUG_FALSE= 17983b85037dbSmrgfi 17984b85037dbSmrg 17985b85037dbSmrg 17986b85037dbSmrg# ----------------------------------------------------------------------------- 17987b85037dbSmrg# Determine which backend, if any, to build 17988b85037dbSmrg# ----------------------------------------------------------------------------- 17989b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which optional backends will be build" >&5 17990b85037dbSmrg$as_echo_n "checking which optional backends will be build... " >&6; } 17991b85037dbSmrgcase "${host}" in 17992b85037dbSmrg*linux*) 1799328515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: ps2comm alpscomm eventcomm" >&5 1799428515619Smrg$as_echo "ps2comm alpscomm eventcomm" >&6; } 1799528515619Smrg BUILD_PS2COMM="yes" 17996b85037dbSmrg BUILD_EVENTCOMM="yes" 17997b85037dbSmrg ;; 1799828515619Smrg*freebsd* | *netbsd* | *dragonfly*) 1799928515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: ps2comm alpscomm psmcomm" >&5 1800028515619Smrg$as_echo "ps2comm alpscomm psmcomm" >&6; } 1800128515619Smrg BUILD_PS2COMM="yes" 18002b85037dbSmrg BUILD_PSMCOMM="yes" 1800328515619Smrg ;; 1800428515619Smrg*solaris* | *gnu*) 1800528515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: ps2comm alpscomm" >&5 1800628515619Smrg$as_echo "ps2comm alpscomm" >&6; } 1800728515619Smrg BUILD_PS2COMM="yes" 18008b85037dbSmrg ;; 18009b85037dbSmrg*) 1801028515619Smrg as_fn_error $? "Cannot find suitable backends for this platform." "$LINENO" 5 18011b85037dbSmrg ;; 18012b85037dbSmrgesac 1801328515619Smrgif test "x$BUILD_EVENTCOMM" = xyes; then 1801428515619Smrg 1801528515619Smrg$as_echo "#define BUILD_EVENTCOMM 1" >>confdefs.h 1801628515619Smrg 1801728515619Smrg 1801828515619Smrg # Obtain compiler/linker options for mtdev 1801928515619Smrg 1802028515619Smrgpkg_failed=no 1802128515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MTDEV" >&5 1802228515619Smrg$as_echo_n "checking for MTDEV... " >&6; } 1802328515619Smrg 1802428515619Smrgif test -n "$MTDEV_CFLAGS"; then 1802528515619Smrg pkg_cv_MTDEV_CFLAGS="$MTDEV_CFLAGS" 1802628515619Smrg elif test -n "$PKG_CONFIG"; then 1802728515619Smrg if test -n "$PKG_CONFIG" && \ 1802828515619Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mtdev\""; } >&5 1802928515619Smrg ($PKG_CONFIG --exists --print-errors "mtdev") 2>&5 1803028515619Smrg ac_status=$? 1803128515619Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1803228515619Smrg test $ac_status = 0; }; then 1803328515619Smrg pkg_cv_MTDEV_CFLAGS=`$PKG_CONFIG --cflags "mtdev" 2>/dev/null` 1803428515619Smrg test "x$?" != "x0" && pkg_failed=yes 1803528515619Smrgelse 1803628515619Smrg pkg_failed=yes 1803728515619Smrgfi 1803828515619Smrg else 1803928515619Smrg pkg_failed=untried 1804028515619Smrgfi 1804128515619Smrgif test -n "$MTDEV_LIBS"; then 1804228515619Smrg pkg_cv_MTDEV_LIBS="$MTDEV_LIBS" 1804328515619Smrg elif test -n "$PKG_CONFIG"; then 1804428515619Smrg if test -n "$PKG_CONFIG" && \ 1804528515619Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mtdev\""; } >&5 1804628515619Smrg ($PKG_CONFIG --exists --print-errors "mtdev") 2>&5 1804728515619Smrg ac_status=$? 1804828515619Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1804928515619Smrg test $ac_status = 0; }; then 1805028515619Smrg pkg_cv_MTDEV_LIBS=`$PKG_CONFIG --libs "mtdev" 2>/dev/null` 1805128515619Smrg test "x$?" != "x0" && pkg_failed=yes 1805228515619Smrgelse 1805328515619Smrg pkg_failed=yes 1805428515619Smrgfi 1805528515619Smrg else 1805628515619Smrg pkg_failed=untried 1805728515619Smrgfi 1805828515619Smrg 1805928515619Smrg 1806028515619Smrg 1806128515619Smrgif test $pkg_failed = yes; then 1806228515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 1806328515619Smrg$as_echo "no" >&6; } 1806428515619Smrg 1806528515619Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 1806628515619Smrg _pkg_short_errors_supported=yes 1806728515619Smrgelse 1806828515619Smrg _pkg_short_errors_supported=no 1806928515619Smrgfi 1807028515619Smrg if test $_pkg_short_errors_supported = yes; then 1807128515619Smrg MTDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "mtdev" 2>&1` 1807228515619Smrg else 1807328515619Smrg MTDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "mtdev" 2>&1` 1807428515619Smrg fi 1807528515619Smrg # Put the nasty error message in config.log where it belongs 1807628515619Smrg echo "$MTDEV_PKG_ERRORS" >&5 1807728515619Smrg 1807828515619Smrg as_fn_error $? "Package requirements (mtdev) were not met: 1807928515619Smrg 1808028515619Smrg$MTDEV_PKG_ERRORS 1808128515619Smrg 1808228515619SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 1808328515619Smrginstalled software in a non-standard prefix. 1808428515619Smrg 1808528515619SmrgAlternatively, you may set the environment variables MTDEV_CFLAGS 1808628515619Smrgand MTDEV_LIBS to avoid the need to call pkg-config. 1808728515619SmrgSee the pkg-config man page for more details." "$LINENO" 5 1808828515619Smrgelif test $pkg_failed = untried; then 1808928515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 1809028515619Smrg$as_echo "no" >&6; } 1809128515619Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 1809228515619Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 1809328515619Smrgas_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 1809428515619Smrgis in your PATH or set the PKG_CONFIG environment variable to the full 1809528515619Smrgpath to pkg-config. 1809628515619Smrg 1809728515619SmrgAlternatively, you may set the environment variables MTDEV_CFLAGS 1809828515619Smrgand MTDEV_LIBS to avoid the need to call pkg-config. 1809928515619SmrgSee the pkg-config man page for more details. 1810028515619Smrg 1810128515619SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 1810228515619SmrgSee \`config.log' for more details" "$LINENO" 5; } 1810328515619Smrgelse 1810428515619Smrg MTDEV_CFLAGS=$pkg_cv_MTDEV_CFLAGS 1810528515619Smrg MTDEV_LIBS=$pkg_cv_MTDEV_LIBS 1810628515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 1810728515619Smrg$as_echo "yes" >&6; } 1810828515619Smrg 1810928515619Smrgfi 1811028515619Smrgfi 1811128515619Smrgif test "x$BUILD_PSMCOMM" = xyes; then 1811228515619Smrg 1811328515619Smrg$as_echo "#define BUILD_PSMCOMM 1" >>confdefs.h 1811428515619Smrg 1811528515619Smrgfi 1811628515619Smrgif test "x$BUILD_PS2COMM" = xyes; then 1811728515619Smrg 1811828515619Smrg$as_echo "#define BUILD_PS2COMM 1" >>confdefs.h 1811928515619Smrg 1812028515619Smrgfi 18121b85037dbSmrg if test "x${BUILD_EVENTCOMM}" = "xyes"; then 18122b85037dbSmrg BUILD_EVENTCOMM_TRUE= 18123b85037dbSmrg BUILD_EVENTCOMM_FALSE='#' 18124b85037dbSmrgelse 18125b85037dbSmrg BUILD_EVENTCOMM_TRUE='#' 18126b85037dbSmrg BUILD_EVENTCOMM_FALSE= 18127b85037dbSmrgfi 18128b85037dbSmrg 18129b85037dbSmrg if test "x${BUILD_PSMCOMM}" = "xyes"; then 18130b85037dbSmrg BUILD_PSMCOMM_TRUE= 18131b85037dbSmrg BUILD_PSMCOMM_FALSE='#' 18132b85037dbSmrgelse 18133b85037dbSmrg BUILD_PSMCOMM_TRUE='#' 18134b85037dbSmrg BUILD_PSMCOMM_FALSE= 18135b85037dbSmrgfi 18136b85037dbSmrg 1813728515619Smrg if test "x${BUILD_PS2COMM}" = "xyes"; then 1813828515619Smrg BUILD_PS2COMM_TRUE= 1813928515619Smrg BUILD_PS2COMM_FALSE='#' 1814028515619Smrgelse 1814128515619Smrg BUILD_PS2COMM_TRUE='#' 1814228515619Smrg BUILD_PS2COMM_FALSE= 1814328515619Smrgfi 1814428515619Smrg 18145b85037dbSmrg 18146b85037dbSmrg# ----------------------------------------------------------------------------- 18147b85037dbSmrg# Dependencies for synclient and syndaemon 18148b85037dbSmrg# ----------------------------------------------------------------------------- 18149b85037dbSmrg# Obtain compiler/linker options for the Synaptics apps dependencies 18150b85037dbSmrg 18151b85037dbSmrgpkg_failed=no 18152b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XI" >&5 18153b85037dbSmrg$as_echo_n "checking for XI... " >&6; } 18154b85037dbSmrg 18155b85037dbSmrgif test -n "$XI_CFLAGS"; then 18156b85037dbSmrg pkg_cv_XI_CFLAGS="$XI_CFLAGS" 18157b85037dbSmrg elif test -n "$PKG_CONFIG"; then 18158b85037dbSmrg if test -n "$PKG_CONFIG" && \ 18159b85037dbSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 inputproto xi >= 1.2\""; } >&5 18160b85037dbSmrg ($PKG_CONFIG --exists --print-errors "x11 inputproto xi >= 1.2") 2>&5 18161b85037dbSmrg ac_status=$? 18162b85037dbSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18163b85037dbSmrg test $ac_status = 0; }; then 18164b85037dbSmrg pkg_cv_XI_CFLAGS=`$PKG_CONFIG --cflags "x11 inputproto xi >= 1.2" 2>/dev/null` 1816528515619Smrg test "x$?" != "x0" && pkg_failed=yes 18166b85037dbSmrgelse 18167b85037dbSmrg pkg_failed=yes 18168b85037dbSmrgfi 18169b85037dbSmrg else 18170b85037dbSmrg pkg_failed=untried 18171b85037dbSmrgfi 18172b85037dbSmrgif test -n "$XI_LIBS"; then 18173b85037dbSmrg pkg_cv_XI_LIBS="$XI_LIBS" 18174b85037dbSmrg elif test -n "$PKG_CONFIG"; then 18175b85037dbSmrg if test -n "$PKG_CONFIG" && \ 18176b85037dbSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 inputproto xi >= 1.2\""; } >&5 18177b85037dbSmrg ($PKG_CONFIG --exists --print-errors "x11 inputproto xi >= 1.2") 2>&5 18178b85037dbSmrg ac_status=$? 18179b85037dbSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18180b85037dbSmrg test $ac_status = 0; }; then 18181b85037dbSmrg pkg_cv_XI_LIBS=`$PKG_CONFIG --libs "x11 inputproto xi >= 1.2" 2>/dev/null` 1818228515619Smrg test "x$?" != "x0" && pkg_failed=yes 18183b85037dbSmrgelse 18184b85037dbSmrg pkg_failed=yes 18185b85037dbSmrgfi 18186b85037dbSmrg else 18187b85037dbSmrg pkg_failed=untried 18188b85037dbSmrgfi 18189b85037dbSmrg 18190b85037dbSmrg 18191b85037dbSmrg 18192b85037dbSmrgif test $pkg_failed = yes; then 18193b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18194b85037dbSmrg$as_echo "no" >&6; } 18195b85037dbSmrg 18196b85037dbSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18197b85037dbSmrg _pkg_short_errors_supported=yes 18198b85037dbSmrgelse 18199b85037dbSmrg _pkg_short_errors_supported=no 18200b85037dbSmrgfi 18201b85037dbSmrg if test $_pkg_short_errors_supported = yes; then 1820228515619Smrg XI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 inputproto xi >= 1.2" 2>&1` 18203b85037dbSmrg else 1820428515619Smrg XI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 inputproto xi >= 1.2" 2>&1` 18205b85037dbSmrg fi 18206b85037dbSmrg # Put the nasty error message in config.log where it belongs 18207b85037dbSmrg echo "$XI_PKG_ERRORS" >&5 18208b85037dbSmrg 18209b85037dbSmrg as_fn_error $? "Package requirements (x11 inputproto xi >= 1.2) were not met: 18210b85037dbSmrg 18211b85037dbSmrg$XI_PKG_ERRORS 18212b85037dbSmrg 18213b85037dbSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 18214b85037dbSmrginstalled software in a non-standard prefix. 18215b85037dbSmrg 18216b85037dbSmrgAlternatively, you may set the environment variables XI_CFLAGS 18217b85037dbSmrgand XI_LIBS to avoid the need to call pkg-config. 18218b85037dbSmrgSee the pkg-config man page for more details." "$LINENO" 5 18219b85037dbSmrgelif test $pkg_failed = untried; then 18220b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18221b85037dbSmrg$as_echo "no" >&6; } 18222b85037dbSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18223b85037dbSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18224b85037dbSmrgas_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18225b85037dbSmrgis in your PATH or set the PKG_CONFIG environment variable to the full 18226b85037dbSmrgpath to pkg-config. 18227b85037dbSmrg 18228b85037dbSmrgAlternatively, you may set the environment variables XI_CFLAGS 18229b85037dbSmrgand XI_LIBS to avoid the need to call pkg-config. 18230b85037dbSmrgSee the pkg-config man page for more details. 18231b85037dbSmrg 18232b85037dbSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 18233b85037dbSmrgSee \`config.log' for more details" "$LINENO" 5; } 18234b85037dbSmrgelse 18235b85037dbSmrg XI_CFLAGS=$pkg_cv_XI_CFLAGS 18236b85037dbSmrg XI_LIBS=$pkg_cv_XI_LIBS 18237b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18238b85037dbSmrg$as_echo "yes" >&6; } 18239b85037dbSmrg 18240b85037dbSmrgfi 18241b85037dbSmrg 18242b85037dbSmrg# The syndaemon program uses an optional XRecord extension implementation 18243b85037dbSmrg# If libxtst >= 1.0.99 is installed, Cflags contains the path to record.h 18244b85037dbSmrg# If recordproto < 1.13.99.1 is installed, Cflags contains the path to record.h 18245b85037dbSmrg 18246b85037dbSmrgpkg_failed=no 18247b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTST" >&5 18248b85037dbSmrg$as_echo_n "checking for XTST... " >&6; } 18249b85037dbSmrg 18250b85037dbSmrgif test -n "$XTST_CFLAGS"; then 18251b85037dbSmrg pkg_cv_XTST_CFLAGS="$XTST_CFLAGS" 18252b85037dbSmrg elif test -n "$PKG_CONFIG"; then 18253b85037dbSmrg if test -n "$PKG_CONFIG" && \ 18254b85037dbSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xtst recordproto\""; } >&5 18255b85037dbSmrg ($PKG_CONFIG --exists --print-errors "xtst recordproto") 2>&5 18256b85037dbSmrg ac_status=$? 18257b85037dbSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18258b85037dbSmrg test $ac_status = 0; }; then 18259b85037dbSmrg pkg_cv_XTST_CFLAGS=`$PKG_CONFIG --cflags "xtst recordproto" 2>/dev/null` 1826028515619Smrg test "x$?" != "x0" && pkg_failed=yes 18261b85037dbSmrgelse 18262b85037dbSmrg pkg_failed=yes 18263b85037dbSmrgfi 18264b85037dbSmrg else 18265b85037dbSmrg pkg_failed=untried 18266b85037dbSmrgfi 18267b85037dbSmrgif test -n "$XTST_LIBS"; then 18268b85037dbSmrg pkg_cv_XTST_LIBS="$XTST_LIBS" 18269b85037dbSmrg elif test -n "$PKG_CONFIG"; then 18270b85037dbSmrg if test -n "$PKG_CONFIG" && \ 18271b85037dbSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xtst recordproto\""; } >&5 18272b85037dbSmrg ($PKG_CONFIG --exists --print-errors "xtst recordproto") 2>&5 18273b85037dbSmrg ac_status=$? 18274b85037dbSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18275b85037dbSmrg test $ac_status = 0; }; then 18276b85037dbSmrg pkg_cv_XTST_LIBS=`$PKG_CONFIG --libs "xtst recordproto" 2>/dev/null` 1827728515619Smrg test "x$?" != "x0" && pkg_failed=yes 18278b85037dbSmrgelse 18279b85037dbSmrg pkg_failed=yes 18280b85037dbSmrgfi 18281b85037dbSmrg else 18282b85037dbSmrg pkg_failed=untried 18283b85037dbSmrgfi 18284b85037dbSmrg 18285b85037dbSmrg 18286b85037dbSmrg 18287b85037dbSmrgif test $pkg_failed = yes; then 18288b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18289b85037dbSmrg$as_echo "no" >&6; } 18290b85037dbSmrg 18291b85037dbSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18292b85037dbSmrg _pkg_short_errors_supported=yes 18293b85037dbSmrgelse 18294b85037dbSmrg _pkg_short_errors_supported=no 18295b85037dbSmrgfi 18296b85037dbSmrg if test $_pkg_short_errors_supported = yes; then 1829728515619Smrg XTST_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xtst recordproto" 2>&1` 18298b85037dbSmrg else 1829928515619Smrg XTST_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xtst recordproto" 2>&1` 18300b85037dbSmrg fi 18301b85037dbSmrg # Put the nasty error message in config.log where it belongs 18302b85037dbSmrg echo "$XTST_PKG_ERRORS" >&5 18303b85037dbSmrg 18304b85037dbSmrg have_libxtst="no" 18305b85037dbSmrgelif test $pkg_failed = untried; then 18306b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18307b85037dbSmrg$as_echo "no" >&6; } 18308b85037dbSmrg have_libxtst="no" 18309b85037dbSmrgelse 18310b85037dbSmrg XTST_CFLAGS=$pkg_cv_XTST_CFLAGS 18311b85037dbSmrg XTST_LIBS=$pkg_cv_XTST_LIBS 18312b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18313b85037dbSmrg$as_echo "yes" >&6; } 18314b85037dbSmrg have_libxtst="yes" 18315b85037dbSmrgfi 18316b85037dbSmrgif test "x$have_libxtst" = "xyes" ; then 18317b85037dbSmrg # Header record.h may come from the xtst or recordproto package, or may be missing 18318b85037dbSmrg SAVE_CPPFLAGS="$CPPFLAGS" 18319b85037dbSmrg CPPFLAGS="$CPPFLAGS $XTST_CFLAGS" 18320b85037dbSmrg for ac_header in X11/extensions/record.h 18321b85037dbSmrgdo : 18322b85037dbSmrg ac_fn_c_check_header_compile "$LINENO" "X11/extensions/record.h" "ac_cv_header_X11_extensions_record_h" "#include <X11/Xlib.h> 18323b85037dbSmrg" 18324302b15bdSmrgif test "x$ac_cv_header_X11_extensions_record_h" = xyes; then : 18325b85037dbSmrg cat >>confdefs.h <<_ACEOF 18326b85037dbSmrg#define HAVE_X11_EXTENSIONS_RECORD_H 1 18327b85037dbSmrg_ACEOF 18328b85037dbSmrg 18329b85037dbSmrgfi 18330b85037dbSmrg 18331b85037dbSmrgdone 18332b85037dbSmrg 18333b85037dbSmrg CPPFLAGS="$SAVE_CPPFLAGS" 18334b85037dbSmrgfi 18335b85037dbSmrg# ----------------------------------------------------------------------------- 18336b85037dbSmrg 1833728515619Smrg# Workaround overriding sdkdir to be able to create a tarball when user has no 1833828515619Smrg# write permission in sdkdir. See DISTCHECK_CONFIGURE_FLAGS in Makefile.am 1833928515619Smrg 1834028515619Smrg# Check whether --with-sdkdir was given. 1834128515619Smrgif test "${with_sdkdir+set}" = set; then : 1834228515619Smrg withval=$with_sdkdir; sdkdir="$withval" 1834328515619Smrgfi 1834428515619Smrg 1834528515619Smrg 1834628515619Smrgac_config_files="$ac_config_files Makefile src/Makefile man/Makefile tools/Makefile conf/Makefile include/Makefile test/Makefile xorg-synaptics.pc" 18347b85037dbSmrg 18348b85037dbSmrgcat >confcache <<\_ACEOF 18349b85037dbSmrg# This file is a shell script that caches the results of configure 18350b85037dbSmrg# tests run on this system so they can be shared between configure 18351b85037dbSmrg# scripts and configure runs, see configure's option --config-cache. 18352b85037dbSmrg# It is not useful on other systems. If it contains results you don't 18353b85037dbSmrg# want to keep, you may remove or edit it. 18354b85037dbSmrg# 18355b85037dbSmrg# config.status only pays attention to the cache file if you give it 18356b85037dbSmrg# the --recheck option to rerun configure. 18357b85037dbSmrg# 18358b85037dbSmrg# `ac_cv_env_foo' variables (set or unset) will be overridden when 18359b85037dbSmrg# loading this file, other *unset* `ac_cv_foo' will be assigned the 18360b85037dbSmrg# following values. 18361b85037dbSmrg 18362b85037dbSmrg_ACEOF 18363b85037dbSmrg 18364b85037dbSmrg# The following way of writing the cache mishandles newlines in values, 18365b85037dbSmrg# but we know of no workaround that is simple, portable, and efficient. 18366b85037dbSmrg# So, we kill variables containing newlines. 18367b85037dbSmrg# Ultrix sh set writes to stderr and can't be redirected directly, 18368b85037dbSmrg# and sets the high bit in the cache file unless we assign to the vars. 18369b85037dbSmrg( 18370b85037dbSmrg for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18371b85037dbSmrg eval ac_val=\$$ac_var 18372b85037dbSmrg case $ac_val in #( 18373b85037dbSmrg *${as_nl}*) 18374b85037dbSmrg case $ac_var in #( 18375b85037dbSmrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18376b85037dbSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18377b85037dbSmrg esac 18378b85037dbSmrg case $ac_var in #( 18379b85037dbSmrg _ | IFS | as_nl) ;; #( 18380b85037dbSmrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18381b85037dbSmrg *) { eval $ac_var=; unset $ac_var;} ;; 18382b85037dbSmrg esac ;; 18383b85037dbSmrg esac 18384b85037dbSmrg done 18385b85037dbSmrg 18386b85037dbSmrg (set) 2>&1 | 18387b85037dbSmrg case $as_nl`(ac_space=' '; set) 2>&1` in #( 18388b85037dbSmrg *${as_nl}ac_space=\ *) 18389b85037dbSmrg # `set' does not quote correctly, so add quotes: double-quote 18390b85037dbSmrg # substitution turns \\\\ into \\, and sed turns \\ into \. 18391b85037dbSmrg sed -n \ 18392b85037dbSmrg "s/'/'\\\\''/g; 18393b85037dbSmrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18394b85037dbSmrg ;; #( 18395b85037dbSmrg *) 18396b85037dbSmrg # `set' quotes correctly as required by POSIX, so do not add quotes. 18397b85037dbSmrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18398b85037dbSmrg ;; 18399b85037dbSmrg esac | 18400b85037dbSmrg sort 18401b85037dbSmrg) | 18402b85037dbSmrg sed ' 18403b85037dbSmrg /^ac_cv_env_/b end 18404b85037dbSmrg t clear 18405b85037dbSmrg :clear 18406b85037dbSmrg s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18407b85037dbSmrg t end 18408b85037dbSmrg s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18409b85037dbSmrg :end' >>confcache 18410b85037dbSmrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18411b85037dbSmrg if test -w "$cache_file"; then 18412302b15bdSmrg if test "x$cache_file" != "x/dev/null"; then 18413b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18414b85037dbSmrg$as_echo "$as_me: updating cache $cache_file" >&6;} 18415302b15bdSmrg if test ! -f "$cache_file" || test -h "$cache_file"; then 18416302b15bdSmrg cat confcache >"$cache_file" 18417302b15bdSmrg else 18418302b15bdSmrg case $cache_file in #( 18419302b15bdSmrg */* | ?:*) 18420302b15bdSmrg mv -f confcache "$cache_file"$$ && 18421302b15bdSmrg mv -f "$cache_file"$$ "$cache_file" ;; #( 18422302b15bdSmrg *) 18423302b15bdSmrg mv -f confcache "$cache_file" ;; 18424302b15bdSmrg esac 18425302b15bdSmrg fi 18426302b15bdSmrg fi 18427b85037dbSmrg else 18428b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18429b85037dbSmrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18430b85037dbSmrg fi 18431b85037dbSmrgfi 18432b85037dbSmrgrm -f confcache 18433b85037dbSmrg 18434b85037dbSmrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix 18435b85037dbSmrg# Let make expand exec_prefix. 18436b85037dbSmrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18437b85037dbSmrg 18438b85037dbSmrgDEFS=-DHAVE_CONFIG_H 18439b85037dbSmrg 18440b85037dbSmrgac_libobjs= 18441b85037dbSmrgac_ltlibobjs= 18442b85037dbSmrgU= 18443b85037dbSmrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18444b85037dbSmrg # 1. Remove the extension, and $U if already installed. 18445b85037dbSmrg ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18446b85037dbSmrg ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18447b85037dbSmrg # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18448b85037dbSmrg # will be set to the directory where LIBOBJS objects are built. 18449b85037dbSmrg as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18450b85037dbSmrg as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18451b85037dbSmrgdone 18452b85037dbSmrgLIBOBJS=$ac_libobjs 18453b85037dbSmrg 18454b85037dbSmrgLTLIBOBJS=$ac_ltlibobjs 18455b85037dbSmrg 18456b85037dbSmrg 1845728515619Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 1845828515619Smrg$as_echo_n "checking that generated files are newer than configure... " >&6; } 1845928515619Smrg if test -n "$am_sleep_pid"; then 1846028515619Smrg # Hide warnings about reused PIDs. 1846128515619Smrg wait $am_sleep_pid 2>/dev/null 1846228515619Smrg fi 1846328515619Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 1846428515619Smrg$as_echo "done" >&6; } 18465b85037dbSmrg if test -n "$EXEEXT"; then 18466b85037dbSmrg am__EXEEXT_TRUE= 18467b85037dbSmrg am__EXEEXT_FALSE='#' 18468b85037dbSmrgelse 18469b85037dbSmrg am__EXEEXT_TRUE='#' 18470b85037dbSmrg am__EXEEXT_FALSE= 18471b85037dbSmrgfi 18472b85037dbSmrg 18473b85037dbSmrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 18474b85037dbSmrg as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 18475b85037dbSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 18476b85037dbSmrgfi 18477b85037dbSmrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 18478b85037dbSmrg as_fn_error $? "conditional \"AMDEP\" was never defined. 18479b85037dbSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 18480b85037dbSmrgfi 18481b85037dbSmrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18482b85037dbSmrg as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18483b85037dbSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 18484b85037dbSmrgfi 1848528515619Smrgif test -z "${ENABLE_UNIT_TESTS_TRUE}" && test -z "${ENABLE_UNIT_TESTS_FALSE}"; then 1848628515619Smrg as_fn_error $? "conditional \"ENABLE_UNIT_TESTS\" was never defined. 1848728515619SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 1848828515619Smrgfi 18489b85037dbSmrgif test -z "${HAS_XORG_CONF_DIR_TRUE}" && test -z "${HAS_XORG_CONF_DIR_FALSE}"; then 18490b85037dbSmrg as_fn_error $? "conditional \"HAS_XORG_CONF_DIR\" was never defined. 18491b85037dbSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 18492b85037dbSmrgfi 18493b85037dbSmrgif test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then 18494b85037dbSmrg as_fn_error $? "conditional \"DEBUG\" was never defined. 18495b85037dbSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 18496b85037dbSmrgfi 18497b85037dbSmrgif test -z "${BUILD_EVENTCOMM_TRUE}" && test -z "${BUILD_EVENTCOMM_FALSE}"; then 18498b85037dbSmrg as_fn_error $? "conditional \"BUILD_EVENTCOMM\" was never defined. 18499b85037dbSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 18500b85037dbSmrgfi 18501b85037dbSmrgif test -z "${BUILD_PSMCOMM_TRUE}" && test -z "${BUILD_PSMCOMM_FALSE}"; then 18502b85037dbSmrg as_fn_error $? "conditional \"BUILD_PSMCOMM\" was never defined. 18503b85037dbSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 18504b85037dbSmrgfi 1850528515619Smrgif test -z "${BUILD_PS2COMM_TRUE}" && test -z "${BUILD_PS2COMM_FALSE}"; then 1850628515619Smrg as_fn_error $? "conditional \"BUILD_PS2COMM\" was never defined. 1850728515619SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 1850828515619Smrgfi 18509b85037dbSmrg 18510302b15bdSmrg: "${CONFIG_STATUS=./config.status}" 18511b85037dbSmrgac_write_fail=0 18512b85037dbSmrgac_clean_files_save=$ac_clean_files 18513b85037dbSmrgac_clean_files="$ac_clean_files $CONFIG_STATUS" 18514b85037dbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 18515b85037dbSmrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 18516b85037dbSmrgas_write_fail=0 18517b85037dbSmrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 18518b85037dbSmrg#! $SHELL 18519b85037dbSmrg# Generated by $as_me. 18520b85037dbSmrg# Run this file to recreate the current configuration. 18521b85037dbSmrg# Compiler output produced by configure, useful for debugging 18522b85037dbSmrg# configure, is in config.log if it exists. 18523b85037dbSmrg 18524b85037dbSmrgdebug=false 18525b85037dbSmrgac_cs_recheck=false 18526b85037dbSmrgac_cs_silent=false 18527b85037dbSmrg 18528b85037dbSmrgSHELL=\${CONFIG_SHELL-$SHELL} 18529b85037dbSmrgexport SHELL 18530b85037dbSmrg_ASEOF 18531b85037dbSmrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18532b85037dbSmrg## -------------------- ## 18533b85037dbSmrg## M4sh Initialization. ## 18534b85037dbSmrg## -------------------- ## 18535b85037dbSmrg 18536b85037dbSmrg# Be more Bourne compatible 18537b85037dbSmrgDUALCASE=1; export DUALCASE # for MKS sh 18538b85037dbSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18539b85037dbSmrg emulate sh 18540b85037dbSmrg NULLCMD=: 18541b85037dbSmrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18542b85037dbSmrg # is contrary to our usage. Disable this feature. 18543b85037dbSmrg alias -g '${1+"$@"}'='"$@"' 18544b85037dbSmrg setopt NO_GLOB_SUBST 18545b85037dbSmrgelse 18546b85037dbSmrg case `(set -o) 2>/dev/null` in #( 18547b85037dbSmrg *posix*) : 18548b85037dbSmrg set -o posix ;; #( 18549b85037dbSmrg *) : 18550b85037dbSmrg ;; 18551b85037dbSmrgesac 18552b85037dbSmrgfi 18553b85037dbSmrg 18554b85037dbSmrg 18555b85037dbSmrgas_nl=' 18556b85037dbSmrg' 18557b85037dbSmrgexport as_nl 18558b85037dbSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 18559b85037dbSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18560b85037dbSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18561b85037dbSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18562b85037dbSmrg# Prefer a ksh shell builtin over an external printf program on Solaris, 18563b85037dbSmrg# but without wasting forks for bash or zsh. 18564b85037dbSmrgif test -z "$BASH_VERSION$ZSH_VERSION" \ 18565b85037dbSmrg && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 18566b85037dbSmrg as_echo='print -r --' 18567b85037dbSmrg as_echo_n='print -rn --' 18568b85037dbSmrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18569b85037dbSmrg as_echo='printf %s\n' 18570b85037dbSmrg as_echo_n='printf %s' 18571b85037dbSmrgelse 18572b85037dbSmrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18573b85037dbSmrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18574b85037dbSmrg as_echo_n='/usr/ucb/echo -n' 18575b85037dbSmrg else 18576b85037dbSmrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18577b85037dbSmrg as_echo_n_body='eval 18578b85037dbSmrg arg=$1; 18579b85037dbSmrg case $arg in #( 18580b85037dbSmrg *"$as_nl"*) 18581b85037dbSmrg expr "X$arg" : "X\\(.*\\)$as_nl"; 18582b85037dbSmrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 18583b85037dbSmrg esac; 18584b85037dbSmrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18585b85037dbSmrg ' 18586b85037dbSmrg export as_echo_n_body 18587b85037dbSmrg as_echo_n='sh -c $as_echo_n_body as_echo' 18588b85037dbSmrg fi 18589b85037dbSmrg export as_echo_body 18590b85037dbSmrg as_echo='sh -c $as_echo_body as_echo' 18591b85037dbSmrgfi 18592b85037dbSmrg 18593b85037dbSmrg# The user is always right. 18594b85037dbSmrgif test "${PATH_SEPARATOR+set}" != set; then 18595b85037dbSmrg PATH_SEPARATOR=: 18596b85037dbSmrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18597b85037dbSmrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18598b85037dbSmrg PATH_SEPARATOR=';' 18599b85037dbSmrg } 18600b85037dbSmrgfi 18601b85037dbSmrg 18602b85037dbSmrg 18603b85037dbSmrg# IFS 18604b85037dbSmrg# We need space, tab and new line, in precisely that order. Quoting is 18605b85037dbSmrg# there to prevent editors from complaining about space-tab. 18606b85037dbSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18607b85037dbSmrg# splitting by setting IFS to empty value.) 18608b85037dbSmrgIFS=" "" $as_nl" 18609b85037dbSmrg 18610b85037dbSmrg# Find who we are. Look in the path if we contain no directory separator. 18611302b15bdSmrgas_myself= 18612b85037dbSmrgcase $0 in #(( 18613b85037dbSmrg *[\\/]* ) as_myself=$0 ;; 18614b85037dbSmrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18615b85037dbSmrgfor as_dir in $PATH 18616b85037dbSmrgdo 18617b85037dbSmrg IFS=$as_save_IFS 18618b85037dbSmrg test -z "$as_dir" && as_dir=. 18619b85037dbSmrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18620b85037dbSmrg done 18621b85037dbSmrgIFS=$as_save_IFS 18622b85037dbSmrg 18623b85037dbSmrg ;; 18624b85037dbSmrgesac 18625b85037dbSmrg# We did not find ourselves, most probably we were run as `sh COMMAND' 18626b85037dbSmrg# in which case we are not to be found in the path. 18627b85037dbSmrgif test "x$as_myself" = x; then 18628b85037dbSmrg as_myself=$0 18629b85037dbSmrgfi 18630b85037dbSmrgif test ! -f "$as_myself"; then 18631b85037dbSmrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18632b85037dbSmrg exit 1 18633b85037dbSmrgfi 18634b85037dbSmrg 18635b85037dbSmrg# Unset variables that we do not need and which cause bugs (e.g. in 18636b85037dbSmrg# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 18637b85037dbSmrg# suppresses any "Segmentation fault" message there. '((' could 18638b85037dbSmrg# trigger a bug in pdksh 5.2.14. 18639b85037dbSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH 18640b85037dbSmrgdo eval test x\${$as_var+set} = xset \ 18641b85037dbSmrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 18642b85037dbSmrgdone 18643b85037dbSmrgPS1='$ ' 18644b85037dbSmrgPS2='> ' 18645b85037dbSmrgPS4='+ ' 18646b85037dbSmrg 18647b85037dbSmrg# NLS nuisances. 18648b85037dbSmrgLC_ALL=C 18649b85037dbSmrgexport LC_ALL 18650b85037dbSmrgLANGUAGE=C 18651b85037dbSmrgexport LANGUAGE 18652b85037dbSmrg 18653b85037dbSmrg# CDPATH. 18654b85037dbSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18655b85037dbSmrg 18656b85037dbSmrg 18657b85037dbSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 18658b85037dbSmrg# ---------------------------------------- 18659b85037dbSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 18660b85037dbSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 18661b85037dbSmrg# script with STATUS, using 1 if that was 0. 18662b85037dbSmrgas_fn_error () 18663b85037dbSmrg{ 18664b85037dbSmrg as_status=$1; test $as_status -eq 0 && as_status=1 18665b85037dbSmrg if test "$4"; then 18666b85037dbSmrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18667b85037dbSmrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 18668b85037dbSmrg fi 18669b85037dbSmrg $as_echo "$as_me: error: $2" >&2 18670b85037dbSmrg as_fn_exit $as_status 18671b85037dbSmrg} # as_fn_error 18672b85037dbSmrg 18673b85037dbSmrg 18674b85037dbSmrg# as_fn_set_status STATUS 18675b85037dbSmrg# ----------------------- 18676b85037dbSmrg# Set $? to STATUS, without forking. 18677b85037dbSmrgas_fn_set_status () 18678b85037dbSmrg{ 18679b85037dbSmrg return $1 18680b85037dbSmrg} # as_fn_set_status 18681b85037dbSmrg 18682b85037dbSmrg# as_fn_exit STATUS 18683b85037dbSmrg# ----------------- 18684b85037dbSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 18685b85037dbSmrgas_fn_exit () 18686b85037dbSmrg{ 18687b85037dbSmrg set +e 18688b85037dbSmrg as_fn_set_status $1 18689b85037dbSmrg exit $1 18690b85037dbSmrg} # as_fn_exit 18691b85037dbSmrg 18692b85037dbSmrg# as_fn_unset VAR 18693b85037dbSmrg# --------------- 18694b85037dbSmrg# Portably unset VAR. 18695b85037dbSmrgas_fn_unset () 18696b85037dbSmrg{ 18697b85037dbSmrg { eval $1=; unset $1;} 18698b85037dbSmrg} 18699b85037dbSmrgas_unset=as_fn_unset 18700b85037dbSmrg# as_fn_append VAR VALUE 18701b85037dbSmrg# ---------------------- 18702b85037dbSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take 18703b85037dbSmrg# advantage of any shell optimizations that allow amortized linear growth over 18704b85037dbSmrg# repeated appends, instead of the typical quadratic growth present in naive 18705b85037dbSmrg# implementations. 18706b85037dbSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 18707b85037dbSmrg eval 'as_fn_append () 18708b85037dbSmrg { 18709b85037dbSmrg eval $1+=\$2 18710b85037dbSmrg }' 18711b85037dbSmrgelse 18712b85037dbSmrg as_fn_append () 18713b85037dbSmrg { 18714b85037dbSmrg eval $1=\$$1\$2 18715b85037dbSmrg } 18716b85037dbSmrgfi # as_fn_append 18717b85037dbSmrg 18718b85037dbSmrg# as_fn_arith ARG... 18719b85037dbSmrg# ------------------ 18720b85037dbSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the 18721b85037dbSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 18722b85037dbSmrg# must be portable across $(()) and expr. 18723b85037dbSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 18724b85037dbSmrg eval 'as_fn_arith () 18725b85037dbSmrg { 18726b85037dbSmrg as_val=$(( $* )) 18727b85037dbSmrg }' 18728b85037dbSmrgelse 18729b85037dbSmrg as_fn_arith () 18730b85037dbSmrg { 18731b85037dbSmrg as_val=`expr "$@" || test $? -eq 1` 18732b85037dbSmrg } 18733b85037dbSmrgfi # as_fn_arith 18734b85037dbSmrg 18735b85037dbSmrg 18736b85037dbSmrgif expr a : '\(a\)' >/dev/null 2>&1 && 18737b85037dbSmrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 18738b85037dbSmrg as_expr=expr 18739b85037dbSmrgelse 18740b85037dbSmrg as_expr=false 18741b85037dbSmrgfi 18742b85037dbSmrg 18743b85037dbSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 18744b85037dbSmrg as_basename=basename 18745b85037dbSmrgelse 18746b85037dbSmrg as_basename=false 18747b85037dbSmrgfi 18748b85037dbSmrg 18749b85037dbSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 18750b85037dbSmrg as_dirname=dirname 18751b85037dbSmrgelse 18752b85037dbSmrg as_dirname=false 18753b85037dbSmrgfi 18754b85037dbSmrg 18755b85037dbSmrgas_me=`$as_basename -- "$0" || 18756b85037dbSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 18757b85037dbSmrg X"$0" : 'X\(//\)$' \| \ 18758b85037dbSmrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 18759b85037dbSmrg$as_echo X/"$0" | 18760b85037dbSmrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 18761b85037dbSmrg s//\1/ 18762b85037dbSmrg q 18763b85037dbSmrg } 18764b85037dbSmrg /^X\/\(\/\/\)$/{ 18765b85037dbSmrg s//\1/ 18766b85037dbSmrg q 18767b85037dbSmrg } 18768b85037dbSmrg /^X\/\(\/\).*/{ 18769b85037dbSmrg s//\1/ 18770b85037dbSmrg q 18771b85037dbSmrg } 18772b85037dbSmrg s/.*/./; q'` 18773b85037dbSmrg 18774b85037dbSmrg# Avoid depending upon Character Ranges. 18775b85037dbSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 18776b85037dbSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 18777b85037dbSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 18778b85037dbSmrgas_cr_digits='0123456789' 18779b85037dbSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits 18780b85037dbSmrg 18781b85037dbSmrgECHO_C= ECHO_N= ECHO_T= 18782b85037dbSmrgcase `echo -n x` in #((((( 18783b85037dbSmrg-n*) 18784b85037dbSmrg case `echo 'xy\c'` in 18785b85037dbSmrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 18786b85037dbSmrg xy) ECHO_C='\c';; 18787b85037dbSmrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 18788b85037dbSmrg ECHO_T=' ';; 18789b85037dbSmrg esac;; 18790b85037dbSmrg*) 18791b85037dbSmrg ECHO_N='-n';; 18792b85037dbSmrgesac 18793b85037dbSmrg 18794b85037dbSmrgrm -f conf$$ conf$$.exe conf$$.file 18795b85037dbSmrgif test -d conf$$.dir; then 18796b85037dbSmrg rm -f conf$$.dir/conf$$.file 18797b85037dbSmrgelse 18798b85037dbSmrg rm -f conf$$.dir 18799b85037dbSmrg mkdir conf$$.dir 2>/dev/null 18800b85037dbSmrgfi 18801b85037dbSmrgif (echo >conf$$.file) 2>/dev/null; then 18802b85037dbSmrg if ln -s conf$$.file conf$$ 2>/dev/null; then 18803b85037dbSmrg as_ln_s='ln -s' 18804b85037dbSmrg # ... but there are two gotchas: 18805b85037dbSmrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 18806b85037dbSmrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 1880728515619Smrg # In both cases, we have to default to `cp -pR'. 18808b85037dbSmrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 1880928515619Smrg as_ln_s='cp -pR' 18810b85037dbSmrg elif ln conf$$.file conf$$ 2>/dev/null; then 18811b85037dbSmrg as_ln_s=ln 18812b85037dbSmrg else 1881328515619Smrg as_ln_s='cp -pR' 18814b85037dbSmrg fi 18815b85037dbSmrgelse 1881628515619Smrg as_ln_s='cp -pR' 18817b85037dbSmrgfi 18818b85037dbSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 18819b85037dbSmrgrmdir conf$$.dir 2>/dev/null 18820b85037dbSmrg 18821b85037dbSmrg 18822b85037dbSmrg# as_fn_mkdir_p 18823b85037dbSmrg# ------------- 18824b85037dbSmrg# Create "$as_dir" as a directory, including parents if necessary. 18825b85037dbSmrgas_fn_mkdir_p () 18826b85037dbSmrg{ 18827b85037dbSmrg 18828b85037dbSmrg case $as_dir in #( 18829b85037dbSmrg -*) as_dir=./$as_dir;; 18830b85037dbSmrg esac 18831b85037dbSmrg test -d "$as_dir" || eval $as_mkdir_p || { 18832b85037dbSmrg as_dirs= 18833b85037dbSmrg while :; do 18834b85037dbSmrg case $as_dir in #( 18835b85037dbSmrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 18836b85037dbSmrg *) as_qdir=$as_dir;; 18837b85037dbSmrg esac 18838b85037dbSmrg as_dirs="'$as_qdir' $as_dirs" 18839b85037dbSmrg as_dir=`$as_dirname -- "$as_dir" || 18840b85037dbSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18841b85037dbSmrg X"$as_dir" : 'X\(//\)[^/]' \| \ 18842b85037dbSmrg X"$as_dir" : 'X\(//\)$' \| \ 18843b85037dbSmrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 18844b85037dbSmrg$as_echo X"$as_dir" | 18845b85037dbSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18846b85037dbSmrg s//\1/ 18847b85037dbSmrg q 18848b85037dbSmrg } 18849b85037dbSmrg /^X\(\/\/\)[^/].*/{ 18850b85037dbSmrg s//\1/ 18851b85037dbSmrg q 18852b85037dbSmrg } 18853b85037dbSmrg /^X\(\/\/\)$/{ 18854b85037dbSmrg s//\1/ 18855b85037dbSmrg q 18856b85037dbSmrg } 18857b85037dbSmrg /^X\(\/\).*/{ 18858b85037dbSmrg s//\1/ 18859b85037dbSmrg q 18860b85037dbSmrg } 18861b85037dbSmrg s/.*/./; q'` 18862b85037dbSmrg test -d "$as_dir" && break 18863b85037dbSmrg done 18864b85037dbSmrg test -z "$as_dirs" || eval "mkdir $as_dirs" 18865b85037dbSmrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 18866b85037dbSmrg 18867b85037dbSmrg 18868b85037dbSmrg} # as_fn_mkdir_p 18869b85037dbSmrgif mkdir -p . 2>/dev/null; then 18870b85037dbSmrg as_mkdir_p='mkdir -p "$as_dir"' 18871b85037dbSmrgelse 18872b85037dbSmrg test -d ./-p && rmdir ./-p 18873b85037dbSmrg as_mkdir_p=false 18874b85037dbSmrgfi 18875b85037dbSmrg 1887628515619Smrg 1887728515619Smrg# as_fn_executable_p FILE 1887828515619Smrg# ----------------------- 1887928515619Smrg# Test if FILE is an executable regular file. 1888028515619Smrgas_fn_executable_p () 1888128515619Smrg{ 1888228515619Smrg test -f "$1" && test -x "$1" 1888328515619Smrg} # as_fn_executable_p 1888428515619Smrgas_test_x='test -x' 1888528515619Smrgas_executable_p=as_fn_executable_p 18886b85037dbSmrg 18887b85037dbSmrg# Sed expression to map a string onto a valid CPP name. 18888b85037dbSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 18889b85037dbSmrg 18890b85037dbSmrg# Sed expression to map a string onto a valid variable name. 18891b85037dbSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 18892b85037dbSmrg 18893b85037dbSmrg 18894b85037dbSmrgexec 6>&1 18895b85037dbSmrg## ----------------------------------- ## 18896b85037dbSmrg## Main body of $CONFIG_STATUS script. ## 18897b85037dbSmrg## ----------------------------------- ## 18898b85037dbSmrg_ASEOF 18899b85037dbSmrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 18900b85037dbSmrg 18901b85037dbSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18902b85037dbSmrg# Save the log message, to keep $0 and so on meaningful, and to 18903b85037dbSmrg# report actual input values of CONFIG_FILES etc. instead of their 18904b85037dbSmrg# values after options handling. 18905b85037dbSmrgac_log=" 1890628515619SmrgThis file was extended by xf86-input-synaptics $as_me 1.7.1, which was 1890728515619Smrggenerated by GNU Autoconf 2.69. Invocation command line was 18908b85037dbSmrg 18909b85037dbSmrg CONFIG_FILES = $CONFIG_FILES 18910b85037dbSmrg CONFIG_HEADERS = $CONFIG_HEADERS 18911b85037dbSmrg CONFIG_LINKS = $CONFIG_LINKS 18912b85037dbSmrg CONFIG_COMMANDS = $CONFIG_COMMANDS 18913b85037dbSmrg $ $0 $@ 18914b85037dbSmrg 18915b85037dbSmrgon `(hostname || uname -n) 2>/dev/null | sed 1q` 18916b85037dbSmrg" 18917b85037dbSmrg 18918b85037dbSmrg_ACEOF 18919b85037dbSmrg 18920b85037dbSmrgcase $ac_config_files in *" 18921b85037dbSmrg"*) set x $ac_config_files; shift; ac_config_files=$*;; 18922b85037dbSmrgesac 18923b85037dbSmrg 18924b85037dbSmrgcase $ac_config_headers in *" 18925b85037dbSmrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 18926b85037dbSmrgesac 18927b85037dbSmrg 18928b85037dbSmrg 18929b85037dbSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18930b85037dbSmrg# Files that config.status was made for. 18931b85037dbSmrgconfig_files="$ac_config_files" 18932b85037dbSmrgconfig_headers="$ac_config_headers" 18933b85037dbSmrgconfig_commands="$ac_config_commands" 18934b85037dbSmrg 18935b85037dbSmrg_ACEOF 18936b85037dbSmrg 18937b85037dbSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18938b85037dbSmrgac_cs_usage="\ 18939b85037dbSmrg\`$as_me' instantiates files and other configuration actions 18940b85037dbSmrgfrom templates according to the current configuration. Unless the files 18941b85037dbSmrgand actions are specified as TAGs, all are instantiated by default. 18942b85037dbSmrg 18943b85037dbSmrgUsage: $0 [OPTION]... [TAG]... 18944b85037dbSmrg 18945b85037dbSmrg -h, --help print this help, then exit 18946b85037dbSmrg -V, --version print version number and configuration settings, then exit 18947b85037dbSmrg --config print configuration, then exit 18948b85037dbSmrg -q, --quiet, --silent 18949b85037dbSmrg do not print progress messages 18950b85037dbSmrg -d, --debug don't remove temporary files 18951b85037dbSmrg --recheck update $as_me by reconfiguring in the same conditions 18952b85037dbSmrg --file=FILE[:TEMPLATE] 18953b85037dbSmrg instantiate the configuration file FILE 18954b85037dbSmrg --header=FILE[:TEMPLATE] 18955b85037dbSmrg instantiate the configuration header FILE 18956b85037dbSmrg 18957b85037dbSmrgConfiguration files: 18958b85037dbSmrg$config_files 18959b85037dbSmrg 18960b85037dbSmrgConfiguration headers: 18961b85037dbSmrg$config_headers 18962b85037dbSmrg 18963b85037dbSmrgConfiguration commands: 18964b85037dbSmrg$config_commands 18965b85037dbSmrg 18966b85037dbSmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 18967b85037dbSmrg 18968b85037dbSmrg_ACEOF 18969b85037dbSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18970b85037dbSmrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 18971b85037dbSmrgac_cs_version="\\ 1897228515619Smrgxf86-input-synaptics config.status 1.7.1 1897328515619Smrgconfigured by $0, generated by GNU Autoconf 2.69, 18974b85037dbSmrg with options \\"\$ac_cs_config\\" 18975b85037dbSmrg 1897628515619SmrgCopyright (C) 2012 Free Software Foundation, Inc. 18977b85037dbSmrgThis config.status script is free software; the Free Software Foundation 18978b85037dbSmrggives unlimited permission to copy, distribute and modify it." 18979b85037dbSmrg 18980b85037dbSmrgac_pwd='$ac_pwd' 18981b85037dbSmrgsrcdir='$srcdir' 18982b85037dbSmrgINSTALL='$INSTALL' 18983b85037dbSmrgMKDIR_P='$MKDIR_P' 18984b85037dbSmrgAWK='$AWK' 18985b85037dbSmrgtest -n "\$AWK" || AWK=awk 18986b85037dbSmrg_ACEOF 18987b85037dbSmrg 18988b85037dbSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18989b85037dbSmrg# The default lists apply if the user does not specify any file. 18990b85037dbSmrgac_need_defaults=: 18991b85037dbSmrgwhile test $# != 0 18992b85037dbSmrgdo 18993b85037dbSmrg case $1 in 18994302b15bdSmrg --*=?*) 18995b85037dbSmrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 18996b85037dbSmrg ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 18997b85037dbSmrg ac_shift=: 18998b85037dbSmrg ;; 18999302b15bdSmrg --*=) 19000302b15bdSmrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 19001302b15bdSmrg ac_optarg= 19002302b15bdSmrg ac_shift=: 19003302b15bdSmrg ;; 19004b85037dbSmrg *) 19005b85037dbSmrg ac_option=$1 19006b85037dbSmrg ac_optarg=$2 19007b85037dbSmrg ac_shift=shift 19008b85037dbSmrg ;; 19009b85037dbSmrg esac 19010b85037dbSmrg 19011b85037dbSmrg case $ac_option in 19012b85037dbSmrg # Handling of the options. 19013b85037dbSmrg -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19014b85037dbSmrg ac_cs_recheck=: ;; 19015b85037dbSmrg --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19016b85037dbSmrg $as_echo "$ac_cs_version"; exit ;; 19017b85037dbSmrg --config | --confi | --conf | --con | --co | --c ) 19018b85037dbSmrg $as_echo "$ac_cs_config"; exit ;; 19019b85037dbSmrg --debug | --debu | --deb | --de | --d | -d ) 19020b85037dbSmrg debug=: ;; 19021b85037dbSmrg --file | --fil | --fi | --f ) 19022b85037dbSmrg $ac_shift 19023b85037dbSmrg case $ac_optarg in 19024b85037dbSmrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19025302b15bdSmrg '') as_fn_error $? "missing file argument" ;; 19026b85037dbSmrg esac 19027b85037dbSmrg as_fn_append CONFIG_FILES " '$ac_optarg'" 19028b85037dbSmrg ac_need_defaults=false;; 19029b85037dbSmrg --header | --heade | --head | --hea ) 19030b85037dbSmrg $ac_shift 19031b85037dbSmrg case $ac_optarg in 19032b85037dbSmrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19033b85037dbSmrg esac 19034b85037dbSmrg as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19035b85037dbSmrg ac_need_defaults=false;; 19036b85037dbSmrg --he | --h) 19037b85037dbSmrg # Conflict between --help and --header 19038b85037dbSmrg as_fn_error $? "ambiguous option: \`$1' 19039b85037dbSmrgTry \`$0 --help' for more information.";; 19040b85037dbSmrg --help | --hel | -h ) 19041b85037dbSmrg $as_echo "$ac_cs_usage"; exit ;; 19042b85037dbSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19043b85037dbSmrg | -silent | --silent | --silen | --sile | --sil | --si | --s) 19044b85037dbSmrg ac_cs_silent=: ;; 19045b85037dbSmrg 19046b85037dbSmrg # This is an error. 19047b85037dbSmrg -*) as_fn_error $? "unrecognized option: \`$1' 19048b85037dbSmrgTry \`$0 --help' for more information." ;; 19049b85037dbSmrg 19050b85037dbSmrg *) as_fn_append ac_config_targets " $1" 19051b85037dbSmrg ac_need_defaults=false ;; 19052b85037dbSmrg 19053b85037dbSmrg esac 19054b85037dbSmrg shift 19055b85037dbSmrgdone 19056b85037dbSmrg 19057b85037dbSmrgac_configure_extra_args= 19058b85037dbSmrg 19059b85037dbSmrgif $ac_cs_silent; then 19060b85037dbSmrg exec 6>/dev/null 19061b85037dbSmrg ac_configure_extra_args="$ac_configure_extra_args --silent" 19062b85037dbSmrgfi 19063b85037dbSmrg 19064b85037dbSmrg_ACEOF 19065b85037dbSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19066b85037dbSmrgif \$ac_cs_recheck; then 1906728515619Smrg set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19068b85037dbSmrg shift 19069b85037dbSmrg \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19070b85037dbSmrg CONFIG_SHELL='$SHELL' 19071b85037dbSmrg export CONFIG_SHELL 19072b85037dbSmrg exec "\$@" 19073b85037dbSmrgfi 19074b85037dbSmrg 19075b85037dbSmrg_ACEOF 19076b85037dbSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19077b85037dbSmrgexec 5>>config.log 19078b85037dbSmrg{ 19079b85037dbSmrg echo 19080b85037dbSmrg sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19081b85037dbSmrg## Running $as_me. ## 19082b85037dbSmrg_ASBOX 19083b85037dbSmrg $as_echo "$ac_log" 19084b85037dbSmrg} >&5 19085b85037dbSmrg 19086b85037dbSmrg_ACEOF 19087b85037dbSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19088b85037dbSmrg# 19089b85037dbSmrg# INIT-COMMANDS 19090b85037dbSmrg# 19091b85037dbSmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 19092b85037dbSmrg 19093b85037dbSmrg 19094b85037dbSmrg# The HP-UX ksh and POSIX shell print the target directory to stdout 19095b85037dbSmrg# if CDPATH is set. 19096b85037dbSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19097b85037dbSmrg 19098b85037dbSmrgsed_quote_subst='$sed_quote_subst' 19099b85037dbSmrgdouble_quote_subst='$double_quote_subst' 19100b85037dbSmrgdelay_variable_subst='$delay_variable_subst' 19101b85037dbSmrgenable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19102b85037dbSmrgmacro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19103b85037dbSmrgmacro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19104b85037dbSmrgenable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19105b85037dbSmrgpic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19106b85037dbSmrgenable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19107b85037dbSmrgSHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19108b85037dbSmrgECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 1910928515619SmrgPATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 19110b85037dbSmrghost_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19111b85037dbSmrghost='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19112b85037dbSmrghost_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19113b85037dbSmrgbuild_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19114b85037dbSmrgbuild='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19115b85037dbSmrgbuild_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19116b85037dbSmrgSED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19117b85037dbSmrgXsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19118b85037dbSmrgGREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19119b85037dbSmrgEGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19120b85037dbSmrgFGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19121b85037dbSmrgLD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19122b85037dbSmrgNM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19123b85037dbSmrgLN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19124b85037dbSmrgmax_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19125b85037dbSmrgac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19126b85037dbSmrgexeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19127b85037dbSmrglt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19128b85037dbSmrglt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19129b85037dbSmrglt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19130302b15bdSmrglt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19131302b15bdSmrglt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19132b85037dbSmrgreload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19133b85037dbSmrgreload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19134b85037dbSmrgOBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19135b85037dbSmrgdeplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 19136b85037dbSmrgfile_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 19137302b15bdSmrgfile_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 19138302b15bdSmrgwant_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 19139302b15bdSmrgDLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 19140302b15bdSmrgsharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 19141b85037dbSmrgAR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 19142b85037dbSmrgAR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 19143302b15bdSmrgarchiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 19144b85037dbSmrgSTRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 19145b85037dbSmrgRANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 19146b85037dbSmrgold_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19147b85037dbSmrgold_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19148b85037dbSmrgold_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 19149b85037dbSmrglock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 19150b85037dbSmrgCC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 19151b85037dbSmrgCFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 19152b85037dbSmrgcompiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 19153b85037dbSmrgGCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 19154b85037dbSmrglt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 19155b85037dbSmrglt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 19156b85037dbSmrglt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 19157b85037dbSmrglt_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"`' 19158302b15bdSmrgnm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 19159302b15bdSmrglt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 19160b85037dbSmrgobjdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 19161b85037dbSmrgMAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 19162b85037dbSmrglt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 19163b85037dbSmrglt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 19164302b15bdSmrglt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 19165b85037dbSmrglt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 19166b85037dbSmrglt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 19167b85037dbSmrgneed_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 19168302b15bdSmrgMANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 19169b85037dbSmrgDSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 19170b85037dbSmrgNMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 19171b85037dbSmrgLIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 19172b85037dbSmrgOTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 19173b85037dbSmrgOTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 19174b85037dbSmrglibext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 19175b85037dbSmrgshrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 19176b85037dbSmrgextract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19177b85037dbSmrgarchive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 19178b85037dbSmrgenable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 19179b85037dbSmrgexport_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 19180b85037dbSmrgwhole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 19181b85037dbSmrgcompiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 19182b85037dbSmrgold_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 19183b85037dbSmrgold_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19184b85037dbSmrgarchive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 19185b85037dbSmrgarchive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19186b85037dbSmrgmodule_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 19187b85037dbSmrgmodule_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19188b85037dbSmrgwith_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 19189b85037dbSmrgallow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 19190b85037dbSmrgno_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 19191b85037dbSmrghardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 19192b85037dbSmrghardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 19193b85037dbSmrghardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 19194b85037dbSmrghardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 19195b85037dbSmrghardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 19196b85037dbSmrghardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 19197b85037dbSmrghardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 19198b85037dbSmrginherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 19199b85037dbSmrglink_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 19200b85037dbSmrgalways_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 19201b85037dbSmrgexport_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 19202b85037dbSmrgexclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 19203b85037dbSmrginclude_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 19204b85037dbSmrgprelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 19205302b15bdSmrgpostlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 19206b85037dbSmrgfile_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 19207b85037dbSmrgvariables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 19208b85037dbSmrgneed_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 19209b85037dbSmrgneed_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 19210b85037dbSmrgversion_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 19211b85037dbSmrgrunpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 19212b85037dbSmrgshlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 19213b85037dbSmrgshlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 19214b85037dbSmrglibname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 19215b85037dbSmrglibrary_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 19216b85037dbSmrgsoname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 19217b85037dbSmrginstall_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 19218b85037dbSmrgpostinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19219b85037dbSmrgpostuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19220b85037dbSmrgfinish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 19221b85037dbSmrgfinish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 19222b85037dbSmrghardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 19223b85037dbSmrgsys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 19224b85037dbSmrgsys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 19225b85037dbSmrghardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 19226b85037dbSmrgenable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 19227b85037dbSmrgenable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 19228b85037dbSmrgenable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 19229b85037dbSmrgold_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 19230b85037dbSmrgstriplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 19231b85037dbSmrg 19232b85037dbSmrgLTCC='$LTCC' 19233b85037dbSmrgLTCFLAGS='$LTCFLAGS' 19234b85037dbSmrgcompiler='$compiler_DEFAULT' 19235b85037dbSmrg 19236b85037dbSmrg# A function that is used when there is no print builtin or printf. 19237b85037dbSmrgfunc_fallback_echo () 19238b85037dbSmrg{ 19239b85037dbSmrg eval 'cat <<_LTECHO_EOF 19240b85037dbSmrg\$1 19241b85037dbSmrg_LTECHO_EOF' 19242b85037dbSmrg} 19243b85037dbSmrg 19244b85037dbSmrg# Quote evaled strings. 19245b85037dbSmrgfor var in SHELL \ 19246b85037dbSmrgECHO \ 1924728515619SmrgPATH_SEPARATOR \ 19248b85037dbSmrgSED \ 19249b85037dbSmrgGREP \ 19250b85037dbSmrgEGREP \ 19251b85037dbSmrgFGREP \ 19252b85037dbSmrgLD \ 19253b85037dbSmrgNM \ 19254b85037dbSmrgLN_S \ 19255b85037dbSmrglt_SP2NL \ 19256b85037dbSmrglt_NL2SP \ 19257b85037dbSmrgreload_flag \ 19258b85037dbSmrgOBJDUMP \ 19259b85037dbSmrgdeplibs_check_method \ 19260b85037dbSmrgfile_magic_cmd \ 19261302b15bdSmrgfile_magic_glob \ 19262302b15bdSmrgwant_nocaseglob \ 19263302b15bdSmrgDLLTOOL \ 19264302b15bdSmrgsharedlib_from_linklib_cmd \ 19265b85037dbSmrgAR \ 19266b85037dbSmrgAR_FLAGS \ 19267302b15bdSmrgarchiver_list_spec \ 19268b85037dbSmrgSTRIP \ 19269b85037dbSmrgRANLIB \ 19270b85037dbSmrgCC \ 19271b85037dbSmrgCFLAGS \ 19272b85037dbSmrgcompiler \ 19273b85037dbSmrglt_cv_sys_global_symbol_pipe \ 19274b85037dbSmrglt_cv_sys_global_symbol_to_cdecl \ 19275b85037dbSmrglt_cv_sys_global_symbol_to_c_name_address \ 19276b85037dbSmrglt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19277302b15bdSmrgnm_file_list_spec \ 19278b85037dbSmrglt_prog_compiler_no_builtin_flag \ 19279b85037dbSmrglt_prog_compiler_pic \ 19280302b15bdSmrglt_prog_compiler_wl \ 19281b85037dbSmrglt_prog_compiler_static \ 19282b85037dbSmrglt_cv_prog_compiler_c_o \ 19283b85037dbSmrgneed_locks \ 19284302b15bdSmrgMANIFEST_TOOL \ 19285b85037dbSmrgDSYMUTIL \ 19286b85037dbSmrgNMEDIT \ 19287b85037dbSmrgLIPO \ 19288b85037dbSmrgOTOOL \ 19289b85037dbSmrgOTOOL64 \ 19290b85037dbSmrgshrext_cmds \ 19291b85037dbSmrgexport_dynamic_flag_spec \ 19292b85037dbSmrgwhole_archive_flag_spec \ 19293b85037dbSmrgcompiler_needs_object \ 19294b85037dbSmrgwith_gnu_ld \ 19295b85037dbSmrgallow_undefined_flag \ 19296b85037dbSmrgno_undefined_flag \ 19297b85037dbSmrghardcode_libdir_flag_spec \ 19298b85037dbSmrghardcode_libdir_separator \ 19299b85037dbSmrgexclude_expsyms \ 19300b85037dbSmrginclude_expsyms \ 19301b85037dbSmrgfile_list_spec \ 19302b85037dbSmrgvariables_saved_for_relink \ 19303b85037dbSmrglibname_spec \ 19304b85037dbSmrglibrary_names_spec \ 19305b85037dbSmrgsoname_spec \ 19306b85037dbSmrginstall_override_mode \ 19307b85037dbSmrgfinish_eval \ 19308b85037dbSmrgold_striplib \ 19309b85037dbSmrgstriplib; do 19310b85037dbSmrg case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19311b85037dbSmrg *[\\\\\\\`\\"\\\$]*) 19312b85037dbSmrg eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 19313b85037dbSmrg ;; 19314b85037dbSmrg *) 19315b85037dbSmrg eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19316b85037dbSmrg ;; 19317b85037dbSmrg esac 19318b85037dbSmrgdone 19319b85037dbSmrg 19320b85037dbSmrg# Double-quote double-evaled strings. 19321b85037dbSmrgfor var in reload_cmds \ 19322b85037dbSmrgold_postinstall_cmds \ 19323b85037dbSmrgold_postuninstall_cmds \ 19324b85037dbSmrgold_archive_cmds \ 19325b85037dbSmrgextract_expsyms_cmds \ 19326b85037dbSmrgold_archive_from_new_cmds \ 19327b85037dbSmrgold_archive_from_expsyms_cmds \ 19328b85037dbSmrgarchive_cmds \ 19329b85037dbSmrgarchive_expsym_cmds \ 19330b85037dbSmrgmodule_cmds \ 19331b85037dbSmrgmodule_expsym_cmds \ 19332b85037dbSmrgexport_symbols_cmds \ 19333b85037dbSmrgprelink_cmds \ 19334302b15bdSmrgpostlink_cmds \ 19335b85037dbSmrgpostinstall_cmds \ 19336b85037dbSmrgpostuninstall_cmds \ 19337b85037dbSmrgfinish_cmds \ 19338b85037dbSmrgsys_lib_search_path_spec \ 19339b85037dbSmrgsys_lib_dlsearch_path_spec; do 19340b85037dbSmrg case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19341b85037dbSmrg *[\\\\\\\`\\"\\\$]*) 19342b85037dbSmrg eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 19343b85037dbSmrg ;; 19344b85037dbSmrg *) 19345b85037dbSmrg eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19346b85037dbSmrg ;; 19347b85037dbSmrg esac 19348b85037dbSmrgdone 19349b85037dbSmrg 19350b85037dbSmrgac_aux_dir='$ac_aux_dir' 19351b85037dbSmrgxsi_shell='$xsi_shell' 19352b85037dbSmrglt_shell_append='$lt_shell_append' 19353b85037dbSmrg 19354b85037dbSmrg# See if we are running on zsh, and set the options which allow our 19355b85037dbSmrg# commands through without removal of \ escapes INIT. 19356b85037dbSmrgif test -n "\${ZSH_VERSION+set}" ; then 19357b85037dbSmrg setopt NO_GLOB_SUBST 19358b85037dbSmrgfi 19359b85037dbSmrg 19360b85037dbSmrg 19361b85037dbSmrg PACKAGE='$PACKAGE' 19362b85037dbSmrg VERSION='$VERSION' 19363b85037dbSmrg TIMESTAMP='$TIMESTAMP' 19364b85037dbSmrg RM='$RM' 19365b85037dbSmrg ofile='$ofile' 19366b85037dbSmrg 19367b85037dbSmrg 19368b85037dbSmrg 19369b85037dbSmrg 19370b85037dbSmrg_ACEOF 19371b85037dbSmrg 19372b85037dbSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19373b85037dbSmrg 19374b85037dbSmrg# Handling of arguments. 19375b85037dbSmrgfor ac_config_target in $ac_config_targets 19376b85037dbSmrgdo 19377b85037dbSmrg case $ac_config_target in 19378b85037dbSmrg "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 19379b85037dbSmrg "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19380b85037dbSmrg "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19381b85037dbSmrg "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19382b85037dbSmrg "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 19383b85037dbSmrg "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 19384b85037dbSmrg "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; 19385b85037dbSmrg "conf/Makefile") CONFIG_FILES="$CONFIG_FILES conf/Makefile" ;; 19386b85037dbSmrg "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 1938728515619Smrg "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 19388b85037dbSmrg "xorg-synaptics.pc") CONFIG_FILES="$CONFIG_FILES xorg-synaptics.pc" ;; 19389b85037dbSmrg 19390b85037dbSmrg *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19391b85037dbSmrg esac 19392b85037dbSmrgdone 19393b85037dbSmrg 19394b85037dbSmrg 19395b85037dbSmrg# If the user did not use the arguments to specify the items to instantiate, 19396b85037dbSmrg# then the envvar interface is used. Set only those that are not. 19397b85037dbSmrg# We use the long form for the default assignment because of an extremely 19398b85037dbSmrg# bizarre bug on SunOS 4.1.3. 19399b85037dbSmrgif $ac_need_defaults; then 19400b85037dbSmrg test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19401b85037dbSmrg test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19402b85037dbSmrg test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19403b85037dbSmrgfi 19404b85037dbSmrg 19405b85037dbSmrg# Have a temporary directory for convenience. Make it in the build tree 19406b85037dbSmrg# simply because there is no reason against having it here, and in addition, 19407b85037dbSmrg# creating and moving files from /tmp can sometimes cause problems. 19408b85037dbSmrg# Hook for its removal unless debugging. 19409b85037dbSmrg# Note that there is a small window in which the directory will not be cleaned: 19410b85037dbSmrg# after its creation but before its name has been assigned to `$tmp'. 19411b85037dbSmrg$debug || 19412b85037dbSmrg{ 19413302b15bdSmrg tmp= ac_tmp= 19414b85037dbSmrg trap 'exit_status=$? 19415302b15bdSmrg : "${ac_tmp:=$tmp}" 19416302b15bdSmrg { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19417b85037dbSmrg' 0 19418b85037dbSmrg trap 'as_fn_exit 1' 1 2 13 15 19419b85037dbSmrg} 19420b85037dbSmrg# Create a (secure) tmp directory for tmp files. 19421b85037dbSmrg 19422b85037dbSmrg{ 19423b85037dbSmrg tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19424302b15bdSmrg test -d "$tmp" 19425b85037dbSmrg} || 19426b85037dbSmrg{ 19427b85037dbSmrg tmp=./conf$$-$RANDOM 19428b85037dbSmrg (umask 077 && mkdir "$tmp") 19429b85037dbSmrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 19430302b15bdSmrgac_tmp=$tmp 19431b85037dbSmrg 19432b85037dbSmrg# Set up the scripts for CONFIG_FILES section. 19433b85037dbSmrg# No need to generate them if there are no CONFIG_FILES. 19434b85037dbSmrg# This happens for instance with `./config.status config.h'. 19435b85037dbSmrgif test -n "$CONFIG_FILES"; then 19436b85037dbSmrg 19437b85037dbSmrg 19438b85037dbSmrgac_cr=`echo X | tr X '\015'` 19439b85037dbSmrg# On cygwin, bash can eat \r inside `` if the user requested igncr. 19440b85037dbSmrg# But we know of no other shell where ac_cr would be empty at this 19441b85037dbSmrg# point, so we can use a bashism as a fallback. 19442b85037dbSmrgif test "x$ac_cr" = x; then 19443b85037dbSmrg eval ac_cr=\$\'\\r\' 19444b85037dbSmrgfi 19445b85037dbSmrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19446b85037dbSmrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19447b85037dbSmrg ac_cs_awk_cr='\\r' 19448b85037dbSmrgelse 19449b85037dbSmrg ac_cs_awk_cr=$ac_cr 19450b85037dbSmrgfi 19451b85037dbSmrg 19452302b15bdSmrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" && 19453b85037dbSmrg_ACEOF 19454b85037dbSmrg 19455b85037dbSmrg 19456b85037dbSmrg{ 19457b85037dbSmrg echo "cat >conf$$subs.awk <<_ACEOF" && 19458b85037dbSmrg echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19459b85037dbSmrg echo "_ACEOF" 19460b85037dbSmrg} >conf$$subs.sh || 19461b85037dbSmrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19462b85037dbSmrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19463b85037dbSmrgac_delim='%!_!# ' 19464b85037dbSmrgfor ac_last_try in false false false false false :; do 19465b85037dbSmrg . ./conf$$subs.sh || 19466b85037dbSmrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19467b85037dbSmrg 19468b85037dbSmrg ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19469b85037dbSmrg if test $ac_delim_n = $ac_delim_num; then 19470b85037dbSmrg break 19471b85037dbSmrg elif $ac_last_try; then 19472b85037dbSmrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19473b85037dbSmrg else 19474b85037dbSmrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19475b85037dbSmrg fi 19476b85037dbSmrgdone 19477b85037dbSmrgrm -f conf$$subs.sh 19478b85037dbSmrg 19479b85037dbSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19480302b15bdSmrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19481b85037dbSmrg_ACEOF 19482b85037dbSmrgsed -n ' 19483b85037dbSmrgh 19484b85037dbSmrgs/^/S["/; s/!.*/"]=/ 19485b85037dbSmrgp 19486b85037dbSmrgg 19487b85037dbSmrgs/^[^!]*!// 19488b85037dbSmrg:repl 19489b85037dbSmrgt repl 19490b85037dbSmrgs/'"$ac_delim"'$// 19491b85037dbSmrgt delim 19492b85037dbSmrg:nl 19493b85037dbSmrgh 19494b85037dbSmrgs/\(.\{148\}\)..*/\1/ 19495b85037dbSmrgt more1 19496b85037dbSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19497b85037dbSmrgp 19498b85037dbSmrgn 19499b85037dbSmrgb repl 19500b85037dbSmrg:more1 19501b85037dbSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19502b85037dbSmrgp 19503b85037dbSmrgg 19504b85037dbSmrgs/.\{148\}// 19505b85037dbSmrgt nl 19506b85037dbSmrg:delim 19507b85037dbSmrgh 19508b85037dbSmrgs/\(.\{148\}\)..*/\1/ 19509b85037dbSmrgt more2 19510b85037dbSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/ 19511b85037dbSmrgp 19512b85037dbSmrgb 19513b85037dbSmrg:more2 19514b85037dbSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19515b85037dbSmrgp 19516b85037dbSmrgg 19517b85037dbSmrgs/.\{148\}// 19518b85037dbSmrgt delim 19519b85037dbSmrg' <conf$$subs.awk | sed ' 19520b85037dbSmrg/^[^""]/{ 19521b85037dbSmrg N 19522b85037dbSmrg s/\n// 19523b85037dbSmrg} 19524b85037dbSmrg' >>$CONFIG_STATUS || ac_write_fail=1 19525b85037dbSmrgrm -f conf$$subs.awk 19526b85037dbSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19527b85037dbSmrg_ACAWK 19528302b15bdSmrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 19529b85037dbSmrg for (key in S) S_is_set[key] = 1 19530b85037dbSmrg FS = "" 19531b85037dbSmrg 19532b85037dbSmrg} 19533b85037dbSmrg{ 19534b85037dbSmrg line = $ 0 19535b85037dbSmrg nfields = split(line, field, "@") 19536b85037dbSmrg substed = 0 19537b85037dbSmrg len = length(field[1]) 19538b85037dbSmrg for (i = 2; i < nfields; i++) { 19539b85037dbSmrg key = field[i] 19540b85037dbSmrg keylen = length(key) 19541b85037dbSmrg if (S_is_set[key]) { 19542b85037dbSmrg value = S[key] 19543b85037dbSmrg line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19544b85037dbSmrg len += length(value) + length(field[++i]) 19545b85037dbSmrg substed = 1 19546b85037dbSmrg } else 19547b85037dbSmrg len += 1 + keylen 19548b85037dbSmrg } 19549b85037dbSmrg 19550b85037dbSmrg print line 19551b85037dbSmrg} 19552b85037dbSmrg 19553b85037dbSmrg_ACAWK 19554b85037dbSmrg_ACEOF 19555b85037dbSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19556b85037dbSmrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19557b85037dbSmrg sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19558b85037dbSmrgelse 19559b85037dbSmrg cat 19560302b15bdSmrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19561b85037dbSmrg || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19562b85037dbSmrg_ACEOF 19563b85037dbSmrg 19564b85037dbSmrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19565b85037dbSmrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19566b85037dbSmrg# trailing colons and then remove the whole line if VPATH becomes empty 19567b85037dbSmrg# (actually we leave an empty line to preserve line numbers). 19568b85037dbSmrgif test "x$srcdir" = x.; then 19569b85037dbSmrg ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19570b85037dbSmrgh 19571b85037dbSmrgs/// 19572b85037dbSmrgs/^/:/ 19573b85037dbSmrgs/[ ]*$/:/ 19574b85037dbSmrgs/:\$(srcdir):/:/g 19575b85037dbSmrgs/:\${srcdir}:/:/g 19576b85037dbSmrgs/:@srcdir@:/:/g 19577b85037dbSmrgs/^:*// 19578b85037dbSmrgs/:*$// 19579b85037dbSmrgx 19580b85037dbSmrgs/\(=[ ]*\).*/\1/ 19581b85037dbSmrgG 19582b85037dbSmrgs/\n// 19583b85037dbSmrgs/^[^=]*=[ ]*$// 19584b85037dbSmrg}' 19585b85037dbSmrgfi 19586b85037dbSmrg 19587b85037dbSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19588b85037dbSmrgfi # test -n "$CONFIG_FILES" 19589b85037dbSmrg 19590b85037dbSmrg# Set up the scripts for CONFIG_HEADERS section. 19591b85037dbSmrg# No need to generate them if there are no CONFIG_HEADERS. 19592b85037dbSmrg# This happens for instance with `./config.status Makefile'. 19593b85037dbSmrgif test -n "$CONFIG_HEADERS"; then 19594302b15bdSmrgcat >"$ac_tmp/defines.awk" <<\_ACAWK || 19595b85037dbSmrgBEGIN { 19596b85037dbSmrg_ACEOF 19597b85037dbSmrg 19598b85037dbSmrg# Transform confdefs.h into an awk script `defines.awk', embedded as 19599b85037dbSmrg# here-document in config.status, that substitutes the proper values into 19600b85037dbSmrg# config.h.in to produce config.h. 19601b85037dbSmrg 19602b85037dbSmrg# Create a delimiter string that does not exist in confdefs.h, to ease 19603b85037dbSmrg# handling of long lines. 19604b85037dbSmrgac_delim='%!_!# ' 19605b85037dbSmrgfor ac_last_try in false false :; do 19606302b15bdSmrg ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 19607302b15bdSmrg if test -z "$ac_tt"; then 19608b85037dbSmrg break 19609b85037dbSmrg elif $ac_last_try; then 19610b85037dbSmrg as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 19611b85037dbSmrg else 19612b85037dbSmrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19613b85037dbSmrg fi 19614b85037dbSmrgdone 19615b85037dbSmrg 19616b85037dbSmrg# For the awk script, D is an array of macro values keyed by name, 19617b85037dbSmrg# likewise P contains macro parameters if any. Preserve backslash 19618b85037dbSmrg# newline sequences. 19619b85037dbSmrg 19620b85037dbSmrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19621b85037dbSmrgsed -n ' 19622b85037dbSmrgs/.\{148\}/&'"$ac_delim"'/g 19623b85037dbSmrgt rset 19624b85037dbSmrg:rset 19625b85037dbSmrgs/^[ ]*#[ ]*define[ ][ ]*/ / 19626b85037dbSmrgt def 19627b85037dbSmrgd 19628b85037dbSmrg:def 19629b85037dbSmrgs/\\$// 19630b85037dbSmrgt bsnl 19631b85037dbSmrgs/["\\]/\\&/g 19632b85037dbSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19633b85037dbSmrgD["\1"]=" \3"/p 19634b85037dbSmrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 19635b85037dbSmrgd 19636b85037dbSmrg:bsnl 19637b85037dbSmrgs/["\\]/\\&/g 19638b85037dbSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19639b85037dbSmrgD["\1"]=" \3\\\\\\n"\\/p 19640b85037dbSmrgt cont 19641b85037dbSmrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 19642b85037dbSmrgt cont 19643b85037dbSmrgd 19644b85037dbSmrg:cont 19645b85037dbSmrgn 19646b85037dbSmrgs/.\{148\}/&'"$ac_delim"'/g 19647b85037dbSmrgt clear 19648b85037dbSmrg:clear 19649b85037dbSmrgs/\\$// 19650b85037dbSmrgt bsnlc 19651b85037dbSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/p 19652b85037dbSmrgd 19653b85037dbSmrg:bsnlc 19654b85037dbSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 19655b85037dbSmrgb cont 19656b85037dbSmrg' <confdefs.h | sed ' 19657b85037dbSmrgs/'"$ac_delim"'/"\\\ 19658b85037dbSmrg"/g' >>$CONFIG_STATUS || ac_write_fail=1 19659b85037dbSmrg 19660b85037dbSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19661b85037dbSmrg for (key in D) D_is_set[key] = 1 19662b85037dbSmrg FS = "" 19663b85037dbSmrg} 19664b85037dbSmrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 19665b85037dbSmrg line = \$ 0 19666b85037dbSmrg split(line, arg, " ") 19667b85037dbSmrg if (arg[1] == "#") { 19668b85037dbSmrg defundef = arg[2] 19669b85037dbSmrg mac1 = arg[3] 19670b85037dbSmrg } else { 19671b85037dbSmrg defundef = substr(arg[1], 2) 19672b85037dbSmrg mac1 = arg[2] 19673b85037dbSmrg } 19674b85037dbSmrg split(mac1, mac2, "(") #) 19675b85037dbSmrg macro = mac2[1] 19676b85037dbSmrg prefix = substr(line, 1, index(line, defundef) - 1) 19677b85037dbSmrg if (D_is_set[macro]) { 19678b85037dbSmrg # Preserve the white space surrounding the "#". 19679b85037dbSmrg print prefix "define", macro P[macro] D[macro] 19680b85037dbSmrg next 19681b85037dbSmrg } else { 19682b85037dbSmrg # Replace #undef with comments. This is necessary, for example, 19683b85037dbSmrg # in the case of _POSIX_SOURCE, which is predefined and required 19684b85037dbSmrg # on some systems where configure will not decide to define it. 19685b85037dbSmrg if (defundef == "undef") { 19686b85037dbSmrg print "/*", prefix defundef, macro, "*/" 19687b85037dbSmrg next 19688b85037dbSmrg } 19689b85037dbSmrg } 19690b85037dbSmrg} 19691b85037dbSmrg{ print } 19692b85037dbSmrg_ACAWK 19693b85037dbSmrg_ACEOF 19694b85037dbSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19695b85037dbSmrg as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 19696b85037dbSmrgfi # test -n "$CONFIG_HEADERS" 19697b85037dbSmrg 19698b85037dbSmrg 19699b85037dbSmrgeval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 19700b85037dbSmrgshift 19701b85037dbSmrgfor ac_tag 19702b85037dbSmrgdo 19703b85037dbSmrg case $ac_tag in 19704b85037dbSmrg :[FHLC]) ac_mode=$ac_tag; continue;; 19705b85037dbSmrg esac 19706b85037dbSmrg case $ac_mode$ac_tag in 19707b85037dbSmrg :[FHL]*:*);; 19708b85037dbSmrg :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 19709b85037dbSmrg :[FH]-) ac_tag=-:-;; 19710b85037dbSmrg :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 19711b85037dbSmrg esac 19712b85037dbSmrg ac_save_IFS=$IFS 19713b85037dbSmrg IFS=: 19714b85037dbSmrg set x $ac_tag 19715b85037dbSmrg IFS=$ac_save_IFS 19716b85037dbSmrg shift 19717b85037dbSmrg ac_file=$1 19718b85037dbSmrg shift 19719b85037dbSmrg 19720b85037dbSmrg case $ac_mode in 19721b85037dbSmrg :L) ac_source=$1;; 19722b85037dbSmrg :[FH]) 19723b85037dbSmrg ac_file_inputs= 19724b85037dbSmrg for ac_f 19725b85037dbSmrg do 19726b85037dbSmrg case $ac_f in 19727302b15bdSmrg -) ac_f="$ac_tmp/stdin";; 19728b85037dbSmrg *) # Look for the file first in the build tree, then in the source tree 19729b85037dbSmrg # (if the path is not absolute). The absolute path cannot be DOS-style, 19730b85037dbSmrg # because $ac_f cannot contain `:'. 19731b85037dbSmrg test -f "$ac_f" || 19732b85037dbSmrg case $ac_f in 19733b85037dbSmrg [\\/$]*) false;; 19734b85037dbSmrg *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 19735b85037dbSmrg esac || 19736b85037dbSmrg as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 19737b85037dbSmrg esac 19738b85037dbSmrg case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 19739b85037dbSmrg as_fn_append ac_file_inputs " '$ac_f'" 19740b85037dbSmrg done 19741b85037dbSmrg 19742b85037dbSmrg # Let's still pretend it is `configure' which instantiates (i.e., don't 19743b85037dbSmrg # use $as_me), people would be surprised to read: 19744b85037dbSmrg # /* config.h. Generated by config.status. */ 19745b85037dbSmrg configure_input='Generated from '` 19746b85037dbSmrg $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 19747b85037dbSmrg `' by configure.' 19748b85037dbSmrg if test x"$ac_file" != x-; then 19749b85037dbSmrg configure_input="$ac_file. $configure_input" 19750b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 19751b85037dbSmrg$as_echo "$as_me: creating $ac_file" >&6;} 19752b85037dbSmrg fi 19753b85037dbSmrg # Neutralize special characters interpreted by sed in replacement strings. 19754b85037dbSmrg case $configure_input in #( 19755b85037dbSmrg *\&* | *\|* | *\\* ) 19756b85037dbSmrg ac_sed_conf_input=`$as_echo "$configure_input" | 19757b85037dbSmrg sed 's/[\\\\&|]/\\\\&/g'`;; #( 19758b85037dbSmrg *) ac_sed_conf_input=$configure_input;; 19759b85037dbSmrg esac 19760b85037dbSmrg 19761b85037dbSmrg case $ac_tag in 19762302b15bdSmrg *:-:* | *:-) cat >"$ac_tmp/stdin" \ 19763b85037dbSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 19764b85037dbSmrg esac 19765b85037dbSmrg ;; 19766b85037dbSmrg esac 19767b85037dbSmrg 19768b85037dbSmrg ac_dir=`$as_dirname -- "$ac_file" || 19769b85037dbSmrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19770b85037dbSmrg X"$ac_file" : 'X\(//\)[^/]' \| \ 19771b85037dbSmrg X"$ac_file" : 'X\(//\)$' \| \ 19772b85037dbSmrg X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 19773b85037dbSmrg$as_echo X"$ac_file" | 19774b85037dbSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19775b85037dbSmrg s//\1/ 19776b85037dbSmrg q 19777b85037dbSmrg } 19778b85037dbSmrg /^X\(\/\/\)[^/].*/{ 19779b85037dbSmrg s//\1/ 19780b85037dbSmrg q 19781b85037dbSmrg } 19782b85037dbSmrg /^X\(\/\/\)$/{ 19783b85037dbSmrg s//\1/ 19784b85037dbSmrg q 19785b85037dbSmrg } 19786b85037dbSmrg /^X\(\/\).*/{ 19787b85037dbSmrg s//\1/ 19788b85037dbSmrg q 19789b85037dbSmrg } 19790b85037dbSmrg s/.*/./; q'` 19791b85037dbSmrg as_dir="$ac_dir"; as_fn_mkdir_p 19792b85037dbSmrg ac_builddir=. 19793b85037dbSmrg 19794b85037dbSmrgcase "$ac_dir" in 19795b85037dbSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 19796b85037dbSmrg*) 19797b85037dbSmrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 19798b85037dbSmrg # A ".." for each directory in $ac_dir_suffix. 19799b85037dbSmrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 19800b85037dbSmrg case $ac_top_builddir_sub in 19801b85037dbSmrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 19802b85037dbSmrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 19803b85037dbSmrg esac ;; 19804b85037dbSmrgesac 19805b85037dbSmrgac_abs_top_builddir=$ac_pwd 19806b85037dbSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix 19807b85037dbSmrg# for backward compatibility: 19808b85037dbSmrgac_top_builddir=$ac_top_build_prefix 19809b85037dbSmrg 19810b85037dbSmrgcase $srcdir in 19811b85037dbSmrg .) # We are building in place. 19812b85037dbSmrg ac_srcdir=. 19813b85037dbSmrg ac_top_srcdir=$ac_top_builddir_sub 19814b85037dbSmrg ac_abs_top_srcdir=$ac_pwd ;; 19815b85037dbSmrg [\\/]* | ?:[\\/]* ) # Absolute name. 19816b85037dbSmrg ac_srcdir=$srcdir$ac_dir_suffix; 19817b85037dbSmrg ac_top_srcdir=$srcdir 19818b85037dbSmrg ac_abs_top_srcdir=$srcdir ;; 19819b85037dbSmrg *) # Relative name. 19820b85037dbSmrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 19821b85037dbSmrg ac_top_srcdir=$ac_top_build_prefix$srcdir 19822b85037dbSmrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 19823b85037dbSmrgesac 19824b85037dbSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 19825b85037dbSmrg 19826b85037dbSmrg 19827b85037dbSmrg case $ac_mode in 19828b85037dbSmrg :F) 19829b85037dbSmrg # 19830b85037dbSmrg # CONFIG_FILE 19831b85037dbSmrg # 19832b85037dbSmrg 19833b85037dbSmrg case $INSTALL in 19834b85037dbSmrg [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 19835b85037dbSmrg *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 19836b85037dbSmrg esac 19837b85037dbSmrg ac_MKDIR_P=$MKDIR_P 19838b85037dbSmrg case $MKDIR_P in 19839b85037dbSmrg [\\/$]* | ?:[\\/]* ) ;; 19840b85037dbSmrg */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 19841b85037dbSmrg esac 19842b85037dbSmrg_ACEOF 19843b85037dbSmrg 19844b85037dbSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19845b85037dbSmrg# If the template does not know about datarootdir, expand it. 19846b85037dbSmrg# FIXME: This hack should be removed a few years after 2.60. 19847b85037dbSmrgac_datarootdir_hack=; ac_datarootdir_seen= 19848b85037dbSmrgac_sed_dataroot=' 19849b85037dbSmrg/datarootdir/ { 19850b85037dbSmrg p 19851b85037dbSmrg q 19852b85037dbSmrg} 19853b85037dbSmrg/@datadir@/p 19854b85037dbSmrg/@docdir@/p 19855b85037dbSmrg/@infodir@/p 19856b85037dbSmrg/@localedir@/p 19857b85037dbSmrg/@mandir@/p' 19858b85037dbSmrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 19859b85037dbSmrg*datarootdir*) ac_datarootdir_seen=yes;; 19860b85037dbSmrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 19861b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 19862b85037dbSmrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 19863b85037dbSmrg_ACEOF 19864b85037dbSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19865b85037dbSmrg ac_datarootdir_hack=' 19866b85037dbSmrg s&@datadir@&$datadir&g 19867b85037dbSmrg s&@docdir@&$docdir&g 19868b85037dbSmrg s&@infodir@&$infodir&g 19869b85037dbSmrg s&@localedir@&$localedir&g 19870b85037dbSmrg s&@mandir@&$mandir&g 19871b85037dbSmrg s&\\\${datarootdir}&$datarootdir&g' ;; 19872b85037dbSmrgesac 19873b85037dbSmrg_ACEOF 19874b85037dbSmrg 19875b85037dbSmrg# Neutralize VPATH when `$srcdir' = `.'. 19876b85037dbSmrg# Shell code in configure.ac might set extrasub. 19877b85037dbSmrg# FIXME: do we really want to maintain this feature? 19878b85037dbSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19879b85037dbSmrgac_sed_extra="$ac_vpsub 19880b85037dbSmrg$extrasub 19881b85037dbSmrg_ACEOF 19882b85037dbSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19883b85037dbSmrg:t 19884b85037dbSmrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 19885b85037dbSmrgs|@configure_input@|$ac_sed_conf_input|;t t 19886b85037dbSmrgs&@top_builddir@&$ac_top_builddir_sub&;t t 19887b85037dbSmrgs&@top_build_prefix@&$ac_top_build_prefix&;t t 19888b85037dbSmrgs&@srcdir@&$ac_srcdir&;t t 19889b85037dbSmrgs&@abs_srcdir@&$ac_abs_srcdir&;t t 19890b85037dbSmrgs&@top_srcdir@&$ac_top_srcdir&;t t 19891b85037dbSmrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 19892b85037dbSmrgs&@builddir@&$ac_builddir&;t t 19893b85037dbSmrgs&@abs_builddir@&$ac_abs_builddir&;t t 19894b85037dbSmrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t 19895b85037dbSmrgs&@INSTALL@&$ac_INSTALL&;t t 19896b85037dbSmrgs&@MKDIR_P@&$ac_MKDIR_P&;t t 19897b85037dbSmrg$ac_datarootdir_hack 19898b85037dbSmrg" 19899302b15bdSmrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 19900302b15bdSmrg >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19901b85037dbSmrg 19902b85037dbSmrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 19903302b15bdSmrg { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 19904302b15bdSmrg { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 19905302b15bdSmrg "$ac_tmp/out"`; test -z "$ac_out"; } && 19906b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19907b85037dbSmrgwhich seems to be undefined. Please make sure it is defined" >&5 19908b85037dbSmrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19909b85037dbSmrgwhich seems to be undefined. Please make sure it is defined" >&2;} 19910b85037dbSmrg 19911302b15bdSmrg rm -f "$ac_tmp/stdin" 19912b85037dbSmrg case $ac_file in 19913302b15bdSmrg -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 19914302b15bdSmrg *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 19915b85037dbSmrg esac \ 19916b85037dbSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19917b85037dbSmrg ;; 19918b85037dbSmrg :H) 19919b85037dbSmrg # 19920b85037dbSmrg # CONFIG_HEADER 19921b85037dbSmrg # 19922b85037dbSmrg if test x"$ac_file" != x-; then 19923b85037dbSmrg { 19924b85037dbSmrg $as_echo "/* $configure_input */" \ 19925302b15bdSmrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 19926302b15bdSmrg } >"$ac_tmp/config.h" \ 19927b85037dbSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19928302b15bdSmrg if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 19929b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 19930b85037dbSmrg$as_echo "$as_me: $ac_file is unchanged" >&6;} 19931b85037dbSmrg else 19932b85037dbSmrg rm -f "$ac_file" 19933302b15bdSmrg mv "$ac_tmp/config.h" "$ac_file" \ 19934b85037dbSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19935b85037dbSmrg fi 19936b85037dbSmrg else 19937b85037dbSmrg $as_echo "/* $configure_input */" \ 19938302b15bdSmrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 19939b85037dbSmrg || as_fn_error $? "could not create -" "$LINENO" 5 19940b85037dbSmrg fi 19941b85037dbSmrg# Compute "$ac_file"'s index in $config_headers. 19942b85037dbSmrg_am_arg="$ac_file" 19943b85037dbSmrg_am_stamp_count=1 19944b85037dbSmrgfor _am_header in $config_headers :; do 19945b85037dbSmrg case $_am_header in 19946b85037dbSmrg $_am_arg | $_am_arg:* ) 19947b85037dbSmrg break ;; 19948b85037dbSmrg * ) 19949b85037dbSmrg _am_stamp_count=`expr $_am_stamp_count + 1` ;; 19950b85037dbSmrg esac 19951b85037dbSmrgdone 19952b85037dbSmrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 19953b85037dbSmrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19954b85037dbSmrg X"$_am_arg" : 'X\(//\)[^/]' \| \ 19955b85037dbSmrg X"$_am_arg" : 'X\(//\)$' \| \ 19956b85037dbSmrg X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 19957b85037dbSmrg$as_echo X"$_am_arg" | 19958b85037dbSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19959b85037dbSmrg s//\1/ 19960b85037dbSmrg q 19961b85037dbSmrg } 19962b85037dbSmrg /^X\(\/\/\)[^/].*/{ 19963b85037dbSmrg s//\1/ 19964b85037dbSmrg q 19965b85037dbSmrg } 19966b85037dbSmrg /^X\(\/\/\)$/{ 19967b85037dbSmrg s//\1/ 19968b85037dbSmrg q 19969b85037dbSmrg } 19970b85037dbSmrg /^X\(\/\).*/{ 19971b85037dbSmrg s//\1/ 19972b85037dbSmrg q 19973b85037dbSmrg } 19974b85037dbSmrg s/.*/./; q'`/stamp-h$_am_stamp_count 19975b85037dbSmrg ;; 19976b85037dbSmrg 19977b85037dbSmrg :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 19978b85037dbSmrg$as_echo "$as_me: executing $ac_file commands" >&6;} 19979b85037dbSmrg ;; 19980b85037dbSmrg esac 19981b85037dbSmrg 19982b85037dbSmrg 19983b85037dbSmrg case $ac_file$ac_mode in 19984b85037dbSmrg "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 19985b85037dbSmrg # Autoconf 2.62 quotes --file arguments for eval, but not when files 19986b85037dbSmrg # are listed without --file. Let's play safe and only enable the eval 19987b85037dbSmrg # if we detect the quoting. 19988b85037dbSmrg case $CONFIG_FILES in 19989b85037dbSmrg *\'*) eval set x "$CONFIG_FILES" ;; 19990b85037dbSmrg *) set x $CONFIG_FILES ;; 19991b85037dbSmrg esac 19992b85037dbSmrg shift 19993b85037dbSmrg for mf 19994b85037dbSmrg do 19995b85037dbSmrg # Strip MF so we end up with the name of the file. 19996b85037dbSmrg mf=`echo "$mf" | sed -e 's/:.*$//'` 19997b85037dbSmrg # Check whether this is an Automake generated Makefile or not. 1999828515619Smrg # We used to match only the files named 'Makefile.in', but 19999b85037dbSmrg # some people rename them; so instead we look at the file content. 20000b85037dbSmrg # Grep'ing the first line is not enough: some people post-process 20001b85037dbSmrg # each Makefile.in and add a new line on top of each file to say so. 20002b85037dbSmrg # Grep'ing the whole file is not good either: AIX grep has a line 20003b85037dbSmrg # limit of 2048, but all sed's we know have understand at least 4000. 20004b85037dbSmrg if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 20005b85037dbSmrg dirpart=`$as_dirname -- "$mf" || 20006b85037dbSmrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20007b85037dbSmrg X"$mf" : 'X\(//\)[^/]' \| \ 20008b85037dbSmrg X"$mf" : 'X\(//\)$' \| \ 20009b85037dbSmrg X"$mf" : 'X\(/\)' \| . 2>/dev/null || 20010b85037dbSmrg$as_echo X"$mf" | 20011b85037dbSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20012b85037dbSmrg s//\1/ 20013b85037dbSmrg q 20014b85037dbSmrg } 20015b85037dbSmrg /^X\(\/\/\)[^/].*/{ 20016b85037dbSmrg s//\1/ 20017b85037dbSmrg q 20018b85037dbSmrg } 20019b85037dbSmrg /^X\(\/\/\)$/{ 20020b85037dbSmrg s//\1/ 20021b85037dbSmrg q 20022b85037dbSmrg } 20023b85037dbSmrg /^X\(\/\).*/{ 20024b85037dbSmrg s//\1/ 20025b85037dbSmrg q 20026b85037dbSmrg } 20027b85037dbSmrg s/.*/./; q'` 20028b85037dbSmrg else 20029b85037dbSmrg continue 20030b85037dbSmrg fi 20031b85037dbSmrg # Extract the definition of DEPDIR, am__include, and am__quote 2003228515619Smrg # from the Makefile without running 'make'. 20033b85037dbSmrg DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 20034b85037dbSmrg test -z "$DEPDIR" && continue 20035b85037dbSmrg am__include=`sed -n 's/^am__include = //p' < "$mf"` 20036b85037dbSmrg test -z "am__include" && continue 20037b85037dbSmrg am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 20038b85037dbSmrg # Find all dependency output files, they are included files with 20039b85037dbSmrg # $(DEPDIR) in their names. We invoke sed twice because it is the 20040b85037dbSmrg # simplest approach to changing $(DEPDIR) to its actual value in the 20041b85037dbSmrg # expansion. 20042b85037dbSmrg for file in `sed -n " 20043b85037dbSmrg s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 2004428515619Smrg sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 20045b85037dbSmrg # Make sure the directory exists. 20046b85037dbSmrg test -f "$dirpart/$file" && continue 20047b85037dbSmrg fdir=`$as_dirname -- "$file" || 20048b85037dbSmrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20049b85037dbSmrg X"$file" : 'X\(//\)[^/]' \| \ 20050b85037dbSmrg X"$file" : 'X\(//\)$' \| \ 20051b85037dbSmrg X"$file" : 'X\(/\)' \| . 2>/dev/null || 20052b85037dbSmrg$as_echo X"$file" | 20053b85037dbSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20054b85037dbSmrg s//\1/ 20055b85037dbSmrg q 20056b85037dbSmrg } 20057b85037dbSmrg /^X\(\/\/\)[^/].*/{ 20058b85037dbSmrg s//\1/ 20059b85037dbSmrg q 20060b85037dbSmrg } 20061b85037dbSmrg /^X\(\/\/\)$/{ 20062b85037dbSmrg s//\1/ 20063b85037dbSmrg q 20064b85037dbSmrg } 20065b85037dbSmrg /^X\(\/\).*/{ 20066b85037dbSmrg s//\1/ 20067b85037dbSmrg q 20068b85037dbSmrg } 20069b85037dbSmrg s/.*/./; q'` 20070b85037dbSmrg as_dir=$dirpart/$fdir; as_fn_mkdir_p 20071b85037dbSmrg # echo "creating $dirpart/$file" 20072b85037dbSmrg echo '# dummy' > "$dirpart/$file" 20073b85037dbSmrg done 20074b85037dbSmrg done 20075b85037dbSmrg} 20076b85037dbSmrg ;; 20077b85037dbSmrg "libtool":C) 20078b85037dbSmrg 20079b85037dbSmrg # See if we are running on zsh, and set the options which allow our 20080b85037dbSmrg # commands through without removal of \ escapes. 20081b85037dbSmrg if test -n "${ZSH_VERSION+set}" ; then 20082b85037dbSmrg setopt NO_GLOB_SUBST 20083b85037dbSmrg fi 20084b85037dbSmrg 20085b85037dbSmrg cfgfile="${ofile}T" 20086b85037dbSmrg trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20087b85037dbSmrg $RM "$cfgfile" 20088b85037dbSmrg 20089b85037dbSmrg cat <<_LT_EOF >> "$cfgfile" 20090b85037dbSmrg#! $SHELL 20091b85037dbSmrg 20092b85037dbSmrg# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 20093b85037dbSmrg# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 20094b85037dbSmrg# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20095b85037dbSmrg# NOTE: Changes made to this file will be lost: look at ltmain.sh. 20096b85037dbSmrg# 20097b85037dbSmrg# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2009828515619Smrg# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 2009928515619Smrg# Foundation, Inc. 20100b85037dbSmrg# Written by Gordon Matzigkeit, 1996 20101b85037dbSmrg# 20102b85037dbSmrg# This file is part of GNU Libtool. 20103b85037dbSmrg# 20104b85037dbSmrg# GNU Libtool is free software; you can redistribute it and/or 20105b85037dbSmrg# modify it under the terms of the GNU General Public License as 20106b85037dbSmrg# published by the Free Software Foundation; either version 2 of 20107b85037dbSmrg# the License, or (at your option) any later version. 20108b85037dbSmrg# 20109b85037dbSmrg# As a special exception to the GNU General Public License, 20110b85037dbSmrg# if you distribute this file as part of a program or library that 20111b85037dbSmrg# is built using GNU Libtool, you may include this file under the 20112b85037dbSmrg# same distribution terms that you use for the rest of that program. 20113b85037dbSmrg# 20114b85037dbSmrg# GNU Libtool is distributed in the hope that it will be useful, 20115b85037dbSmrg# but WITHOUT ANY WARRANTY; without even the implied warranty of 20116b85037dbSmrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20117b85037dbSmrg# GNU General Public License for more details. 20118b85037dbSmrg# 20119b85037dbSmrg# You should have received a copy of the GNU General Public License 20120b85037dbSmrg# along with GNU Libtool; see the file COPYING. If not, a copy 20121b85037dbSmrg# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 20122b85037dbSmrg# obtained by writing to the Free Software Foundation, Inc., 20123b85037dbSmrg# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20124b85037dbSmrg 20125b85037dbSmrg 20126b85037dbSmrg# The names of the tagged configurations supported by this script. 20127b85037dbSmrgavailable_tags="" 20128b85037dbSmrg 20129b85037dbSmrg# ### BEGIN LIBTOOL CONFIG 20130b85037dbSmrg 20131b85037dbSmrg# Whether or not to build static libraries. 20132b85037dbSmrgbuild_old_libs=$enable_static 20133b85037dbSmrg 20134b85037dbSmrg# Which release of libtool.m4 was used? 20135b85037dbSmrgmacro_version=$macro_version 20136b85037dbSmrgmacro_revision=$macro_revision 20137b85037dbSmrg 20138b85037dbSmrg# Whether or not to build shared libraries. 20139b85037dbSmrgbuild_libtool_libs=$enable_shared 20140b85037dbSmrg 20141b85037dbSmrg# What type of objects to build. 20142b85037dbSmrgpic_mode=$pic_mode 20143b85037dbSmrg 20144b85037dbSmrg# Whether or not to optimize for fast installation. 20145b85037dbSmrgfast_install=$enable_fast_install 20146b85037dbSmrg 20147b85037dbSmrg# Shell to use when invoking shell scripts. 20148b85037dbSmrgSHELL=$lt_SHELL 20149b85037dbSmrg 20150b85037dbSmrg# An echo program that protects backslashes. 20151b85037dbSmrgECHO=$lt_ECHO 20152b85037dbSmrg 2015328515619Smrg# The PATH separator for the build system. 2015428515619SmrgPATH_SEPARATOR=$lt_PATH_SEPARATOR 2015528515619Smrg 20156b85037dbSmrg# The host system. 20157b85037dbSmrghost_alias=$host_alias 20158b85037dbSmrghost=$host 20159b85037dbSmrghost_os=$host_os 20160b85037dbSmrg 20161b85037dbSmrg# The build system. 20162b85037dbSmrgbuild_alias=$build_alias 20163b85037dbSmrgbuild=$build 20164b85037dbSmrgbuild_os=$build_os 20165b85037dbSmrg 20166b85037dbSmrg# A sed program that does not truncate output. 20167b85037dbSmrgSED=$lt_SED 20168b85037dbSmrg 20169b85037dbSmrg# Sed that helps us avoid accidentally triggering echo(1) options like -n. 20170b85037dbSmrgXsed="\$SED -e 1s/^X//" 20171b85037dbSmrg 20172b85037dbSmrg# A grep program that handles long lines. 20173b85037dbSmrgGREP=$lt_GREP 20174b85037dbSmrg 20175b85037dbSmrg# An ERE matcher. 20176b85037dbSmrgEGREP=$lt_EGREP 20177b85037dbSmrg 20178b85037dbSmrg# A literal string matcher. 20179b85037dbSmrgFGREP=$lt_FGREP 20180b85037dbSmrg 20181b85037dbSmrg# A BSD- or MS-compatible name lister. 20182b85037dbSmrgNM=$lt_NM 20183b85037dbSmrg 20184b85037dbSmrg# Whether we need soft or hard links. 20185b85037dbSmrgLN_S=$lt_LN_S 20186b85037dbSmrg 20187b85037dbSmrg# What is the maximum length of a command? 20188b85037dbSmrgmax_cmd_len=$max_cmd_len 20189b85037dbSmrg 20190b85037dbSmrg# Object file suffix (normally "o"). 20191b85037dbSmrgobjext=$ac_objext 20192b85037dbSmrg 20193b85037dbSmrg# Executable file suffix (normally ""). 20194b85037dbSmrgexeext=$exeext 20195b85037dbSmrg 20196b85037dbSmrg# whether the shell understands "unset". 20197b85037dbSmrglt_unset=$lt_unset 20198b85037dbSmrg 20199b85037dbSmrg# turn spaces into newlines. 20200b85037dbSmrgSP2NL=$lt_lt_SP2NL 20201b85037dbSmrg 20202b85037dbSmrg# turn newlines into spaces. 20203b85037dbSmrgNL2SP=$lt_lt_NL2SP 20204b85037dbSmrg 20205302b15bdSmrg# convert \$build file names to \$host format. 20206302b15bdSmrgto_host_file_cmd=$lt_cv_to_host_file_cmd 20207302b15bdSmrg 20208302b15bdSmrg# convert \$build files to toolchain format. 20209302b15bdSmrgto_tool_file_cmd=$lt_cv_to_tool_file_cmd 20210302b15bdSmrg 20211b85037dbSmrg# An object symbol dumper. 20212b85037dbSmrgOBJDUMP=$lt_OBJDUMP 20213b85037dbSmrg 20214b85037dbSmrg# Method to check whether dependent libraries are shared objects. 20215b85037dbSmrgdeplibs_check_method=$lt_deplibs_check_method 20216b85037dbSmrg 20217302b15bdSmrg# Command to use when deplibs_check_method = "file_magic". 20218b85037dbSmrgfile_magic_cmd=$lt_file_magic_cmd 20219b85037dbSmrg 20220302b15bdSmrg# How to find potential files when deplibs_check_method = "file_magic". 20221302b15bdSmrgfile_magic_glob=$lt_file_magic_glob 20222302b15bdSmrg 20223302b15bdSmrg# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 20224302b15bdSmrgwant_nocaseglob=$lt_want_nocaseglob 20225302b15bdSmrg 20226302b15bdSmrg# DLL creation program. 20227302b15bdSmrgDLLTOOL=$lt_DLLTOOL 20228302b15bdSmrg 20229302b15bdSmrg# Command to associate shared and link libraries. 20230302b15bdSmrgsharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 20231302b15bdSmrg 20232b85037dbSmrg# The archiver. 20233b85037dbSmrgAR=$lt_AR 20234302b15bdSmrg 20235302b15bdSmrg# Flags to create an archive. 20236b85037dbSmrgAR_FLAGS=$lt_AR_FLAGS 20237b85037dbSmrg 20238302b15bdSmrg# How to feed a file listing to the archiver. 20239302b15bdSmrgarchiver_list_spec=$lt_archiver_list_spec 20240302b15bdSmrg 20241b85037dbSmrg# A symbol stripping program. 20242b85037dbSmrgSTRIP=$lt_STRIP 20243b85037dbSmrg 20244b85037dbSmrg# Commands used to install an old-style archive. 20245b85037dbSmrgRANLIB=$lt_RANLIB 20246b85037dbSmrgold_postinstall_cmds=$lt_old_postinstall_cmds 20247b85037dbSmrgold_postuninstall_cmds=$lt_old_postuninstall_cmds 20248b85037dbSmrg 20249b85037dbSmrg# Whether to use a lock for old archive extraction. 20250b85037dbSmrglock_old_archive_extraction=$lock_old_archive_extraction 20251b85037dbSmrg 20252b85037dbSmrg# A C compiler. 20253b85037dbSmrgLTCC=$lt_CC 20254b85037dbSmrg 20255b85037dbSmrg# LTCC compiler flags. 20256b85037dbSmrgLTCFLAGS=$lt_CFLAGS 20257b85037dbSmrg 20258b85037dbSmrg# Take the output of nm and produce a listing of raw symbols and C names. 20259b85037dbSmrgglobal_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20260b85037dbSmrg 20261b85037dbSmrg# Transform the output of nm in a proper C declaration. 20262b85037dbSmrgglobal_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20263b85037dbSmrg 20264b85037dbSmrg# Transform the output of nm in a C name address pair. 20265b85037dbSmrgglobal_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20266b85037dbSmrg 20267b85037dbSmrg# Transform the output of nm in a C name address pair when lib prefix is needed. 20268b85037dbSmrgglobal_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20269b85037dbSmrg 20270302b15bdSmrg# Specify filename containing input files for \$NM. 20271302b15bdSmrgnm_file_list_spec=$lt_nm_file_list_spec 20272302b15bdSmrg 20273302b15bdSmrg# The root where to search for dependent libraries,and in which our libraries should be installed. 20274302b15bdSmrglt_sysroot=$lt_sysroot 20275302b15bdSmrg 20276b85037dbSmrg# The name of the directory that contains temporary libtool files. 20277b85037dbSmrgobjdir=$objdir 20278b85037dbSmrg 20279b85037dbSmrg# Used to examine libraries when file_magic_cmd begins with "file". 20280b85037dbSmrgMAGIC_CMD=$MAGIC_CMD 20281b85037dbSmrg 20282b85037dbSmrg# Must we lock files when doing compilation? 20283b85037dbSmrgneed_locks=$lt_need_locks 20284b85037dbSmrg 20285302b15bdSmrg# Manifest tool. 20286302b15bdSmrgMANIFEST_TOOL=$lt_MANIFEST_TOOL 20287302b15bdSmrg 20288b85037dbSmrg# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20289b85037dbSmrgDSYMUTIL=$lt_DSYMUTIL 20290b85037dbSmrg 20291b85037dbSmrg# Tool to change global to local symbols on Mac OS X. 20292b85037dbSmrgNMEDIT=$lt_NMEDIT 20293b85037dbSmrg 20294b85037dbSmrg# Tool to manipulate fat objects and archives on Mac OS X. 20295b85037dbSmrgLIPO=$lt_LIPO 20296b85037dbSmrg 20297b85037dbSmrg# ldd/readelf like tool for Mach-O binaries on Mac OS X. 20298b85037dbSmrgOTOOL=$lt_OTOOL 20299b85037dbSmrg 20300b85037dbSmrg# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20301b85037dbSmrgOTOOL64=$lt_OTOOL64 20302b85037dbSmrg 20303b85037dbSmrg# Old archive suffix (normally "a"). 20304b85037dbSmrglibext=$libext 20305b85037dbSmrg 20306b85037dbSmrg# Shared library suffix (normally ".so"). 20307b85037dbSmrgshrext_cmds=$lt_shrext_cmds 20308b85037dbSmrg 20309b85037dbSmrg# The commands to extract the exported symbol list from a shared archive. 20310b85037dbSmrgextract_expsyms_cmds=$lt_extract_expsyms_cmds 20311b85037dbSmrg 20312b85037dbSmrg# Variables whose values should be saved in libtool wrapper scripts and 20313b85037dbSmrg# restored at link time. 20314b85037dbSmrgvariables_saved_for_relink=$lt_variables_saved_for_relink 20315b85037dbSmrg 20316b85037dbSmrg# Do we need the "lib" prefix for modules? 20317b85037dbSmrgneed_lib_prefix=$need_lib_prefix 20318b85037dbSmrg 20319b85037dbSmrg# Do we need a version for libraries? 20320b85037dbSmrgneed_version=$need_version 20321b85037dbSmrg 20322b85037dbSmrg# Library versioning type. 20323b85037dbSmrgversion_type=$version_type 20324b85037dbSmrg 20325b85037dbSmrg# Shared library runtime path variable. 20326b85037dbSmrgrunpath_var=$runpath_var 20327b85037dbSmrg 20328b85037dbSmrg# Shared library path variable. 20329b85037dbSmrgshlibpath_var=$shlibpath_var 20330b85037dbSmrg 20331b85037dbSmrg# Is shlibpath searched before the hard-coded library search path? 20332b85037dbSmrgshlibpath_overrides_runpath=$shlibpath_overrides_runpath 20333b85037dbSmrg 20334b85037dbSmrg# Format of library name prefix. 20335b85037dbSmrglibname_spec=$lt_libname_spec 20336b85037dbSmrg 20337b85037dbSmrg# List of archive names. First name is the real one, the rest are links. 20338b85037dbSmrg# The last name is the one that the linker finds with -lNAME 20339b85037dbSmrglibrary_names_spec=$lt_library_names_spec 20340b85037dbSmrg 20341b85037dbSmrg# The coded name of the library, if different from the real name. 20342b85037dbSmrgsoname_spec=$lt_soname_spec 20343b85037dbSmrg 20344b85037dbSmrg# Permission mode override for installation of shared libraries. 20345b85037dbSmrginstall_override_mode=$lt_install_override_mode 20346b85037dbSmrg 20347b85037dbSmrg# Command to use after installation of a shared archive. 20348b85037dbSmrgpostinstall_cmds=$lt_postinstall_cmds 20349b85037dbSmrg 20350b85037dbSmrg# Command to use after uninstallation of a shared archive. 20351b85037dbSmrgpostuninstall_cmds=$lt_postuninstall_cmds 20352b85037dbSmrg 20353b85037dbSmrg# Commands used to finish a libtool library installation in a directory. 20354b85037dbSmrgfinish_cmds=$lt_finish_cmds 20355b85037dbSmrg 20356b85037dbSmrg# As "finish_cmds", except a single script fragment to be evaled but 20357b85037dbSmrg# not shown. 20358b85037dbSmrgfinish_eval=$lt_finish_eval 20359b85037dbSmrg 20360b85037dbSmrg# Whether we should hardcode library paths into libraries. 20361b85037dbSmrghardcode_into_libs=$hardcode_into_libs 20362b85037dbSmrg 20363b85037dbSmrg# Compile-time system search path for libraries. 20364b85037dbSmrgsys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20365b85037dbSmrg 20366b85037dbSmrg# Run-time system search path for libraries. 20367b85037dbSmrgsys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20368b85037dbSmrg 20369b85037dbSmrg# Whether dlopen is supported. 20370b85037dbSmrgdlopen_support=$enable_dlopen 20371b85037dbSmrg 20372b85037dbSmrg# Whether dlopen of programs is supported. 20373b85037dbSmrgdlopen_self=$enable_dlopen_self 20374b85037dbSmrg 20375b85037dbSmrg# Whether dlopen of statically linked programs is supported. 20376b85037dbSmrgdlopen_self_static=$enable_dlopen_self_static 20377b85037dbSmrg 20378b85037dbSmrg# Commands to strip libraries. 20379b85037dbSmrgold_striplib=$lt_old_striplib 20380b85037dbSmrgstriplib=$lt_striplib 20381b85037dbSmrg 20382b85037dbSmrg 20383b85037dbSmrg# The linker used to build libraries. 20384b85037dbSmrgLD=$lt_LD 20385b85037dbSmrg 20386b85037dbSmrg# How to create reloadable object files. 20387b85037dbSmrgreload_flag=$lt_reload_flag 20388b85037dbSmrgreload_cmds=$lt_reload_cmds 20389b85037dbSmrg 20390b85037dbSmrg# Commands used to build an old-style archive. 20391b85037dbSmrgold_archive_cmds=$lt_old_archive_cmds 20392b85037dbSmrg 20393b85037dbSmrg# A language specific compiler. 20394b85037dbSmrgCC=$lt_compiler 20395b85037dbSmrg 20396b85037dbSmrg# Is the compiler the GNU compiler? 20397b85037dbSmrgwith_gcc=$GCC 20398b85037dbSmrg 20399b85037dbSmrg# Compiler flag to turn off builtin functions. 20400b85037dbSmrgno_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20401b85037dbSmrg 20402b85037dbSmrg# Additional compiler flags for building library objects. 20403b85037dbSmrgpic_flag=$lt_lt_prog_compiler_pic 20404b85037dbSmrg 20405302b15bdSmrg# How to pass a linker flag through the compiler. 20406302b15bdSmrgwl=$lt_lt_prog_compiler_wl 20407302b15bdSmrg 20408b85037dbSmrg# Compiler flag to prevent dynamic linking. 20409b85037dbSmrglink_static_flag=$lt_lt_prog_compiler_static 20410b85037dbSmrg 20411b85037dbSmrg# Does compiler simultaneously support -c and -o options? 20412b85037dbSmrgcompiler_c_o=$lt_lt_cv_prog_compiler_c_o 20413b85037dbSmrg 20414b85037dbSmrg# Whether or not to add -lc for building shared libraries. 20415b85037dbSmrgbuild_libtool_need_lc=$archive_cmds_need_lc 20416b85037dbSmrg 20417b85037dbSmrg# Whether or not to disallow shared libs when runtime libs are static. 20418b85037dbSmrgallow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 20419b85037dbSmrg 20420b85037dbSmrg# Compiler flag to allow reflexive dlopens. 20421b85037dbSmrgexport_dynamic_flag_spec=$lt_export_dynamic_flag_spec 20422b85037dbSmrg 20423b85037dbSmrg# Compiler flag to generate shared objects directly from archives. 20424b85037dbSmrgwhole_archive_flag_spec=$lt_whole_archive_flag_spec 20425b85037dbSmrg 20426b85037dbSmrg# Whether the compiler copes with passing no objects directly. 20427b85037dbSmrgcompiler_needs_object=$lt_compiler_needs_object 20428b85037dbSmrg 20429b85037dbSmrg# Create an old-style archive from a shared archive. 20430b85037dbSmrgold_archive_from_new_cmds=$lt_old_archive_from_new_cmds 20431b85037dbSmrg 20432b85037dbSmrg# Create a temporary old-style archive to link instead of a shared archive. 20433b85037dbSmrgold_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 20434b85037dbSmrg 20435b85037dbSmrg# Commands used to build a shared archive. 20436b85037dbSmrgarchive_cmds=$lt_archive_cmds 20437b85037dbSmrgarchive_expsym_cmds=$lt_archive_expsym_cmds 20438b85037dbSmrg 20439b85037dbSmrg# Commands used to build a loadable module if different from building 20440b85037dbSmrg# a shared archive. 20441b85037dbSmrgmodule_cmds=$lt_module_cmds 20442b85037dbSmrgmodule_expsym_cmds=$lt_module_expsym_cmds 20443b85037dbSmrg 20444b85037dbSmrg# Whether we are building with GNU ld or not. 20445b85037dbSmrgwith_gnu_ld=$lt_with_gnu_ld 20446b85037dbSmrg 20447b85037dbSmrg# Flag that allows shared libraries with undefined symbols to be built. 20448b85037dbSmrgallow_undefined_flag=$lt_allow_undefined_flag 20449b85037dbSmrg 20450b85037dbSmrg# Flag that enforces no undefined symbols. 20451b85037dbSmrgno_undefined_flag=$lt_no_undefined_flag 20452b85037dbSmrg 20453b85037dbSmrg# Flag to hardcode \$libdir into a binary during linking. 20454b85037dbSmrg# This must work even if \$libdir does not exist 20455b85037dbSmrghardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 20456b85037dbSmrg 20457b85037dbSmrg# Whether we need a single "-rpath" flag with a separated argument. 20458b85037dbSmrghardcode_libdir_separator=$lt_hardcode_libdir_separator 20459b85037dbSmrg 20460b85037dbSmrg# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20461b85037dbSmrg# DIR into the resulting binary. 20462b85037dbSmrghardcode_direct=$hardcode_direct 20463b85037dbSmrg 20464b85037dbSmrg# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20465b85037dbSmrg# DIR into the resulting binary and the resulting library dependency is 20466b85037dbSmrg# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 20467b85037dbSmrg# library is relocated. 20468b85037dbSmrghardcode_direct_absolute=$hardcode_direct_absolute 20469b85037dbSmrg 20470b85037dbSmrg# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20471b85037dbSmrg# into the resulting binary. 20472b85037dbSmrghardcode_minus_L=$hardcode_minus_L 20473b85037dbSmrg 20474b85037dbSmrg# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20475b85037dbSmrg# into the resulting binary. 20476b85037dbSmrghardcode_shlibpath_var=$hardcode_shlibpath_var 20477b85037dbSmrg 20478b85037dbSmrg# Set to "yes" if building a shared library automatically hardcodes DIR 20479b85037dbSmrg# into the library and all subsequent libraries and executables linked 20480b85037dbSmrg# against it. 20481b85037dbSmrghardcode_automatic=$hardcode_automatic 20482b85037dbSmrg 20483b85037dbSmrg# Set to yes if linker adds runtime paths of dependent libraries 20484b85037dbSmrg# to runtime path list. 20485b85037dbSmrginherit_rpath=$inherit_rpath 20486b85037dbSmrg 20487b85037dbSmrg# Whether libtool must link a program against all its dependency libraries. 20488b85037dbSmrglink_all_deplibs=$link_all_deplibs 20489b85037dbSmrg 20490b85037dbSmrg# Set to "yes" if exported symbols are required. 20491b85037dbSmrgalways_export_symbols=$always_export_symbols 20492b85037dbSmrg 20493b85037dbSmrg# The commands to list exported symbols. 20494b85037dbSmrgexport_symbols_cmds=$lt_export_symbols_cmds 20495b85037dbSmrg 20496b85037dbSmrg# Symbols that should not be listed in the preloaded symbols. 20497b85037dbSmrgexclude_expsyms=$lt_exclude_expsyms 20498b85037dbSmrg 20499b85037dbSmrg# Symbols that must always be exported. 20500b85037dbSmrginclude_expsyms=$lt_include_expsyms 20501b85037dbSmrg 20502b85037dbSmrg# Commands necessary for linking programs (against libraries) with templates. 20503b85037dbSmrgprelink_cmds=$lt_prelink_cmds 20504b85037dbSmrg 20505302b15bdSmrg# Commands necessary for finishing linking programs. 20506302b15bdSmrgpostlink_cmds=$lt_postlink_cmds 20507302b15bdSmrg 20508b85037dbSmrg# Specify filename containing input files. 20509b85037dbSmrgfile_list_spec=$lt_file_list_spec 20510b85037dbSmrg 20511b85037dbSmrg# How to hardcode a shared library path into an executable. 20512b85037dbSmrghardcode_action=$hardcode_action 20513b85037dbSmrg 20514b85037dbSmrg# ### END LIBTOOL CONFIG 20515b85037dbSmrg 20516b85037dbSmrg_LT_EOF 20517b85037dbSmrg 20518b85037dbSmrg case $host_os in 20519b85037dbSmrg aix3*) 20520b85037dbSmrg cat <<\_LT_EOF >> "$cfgfile" 20521b85037dbSmrg# AIX sometimes has problems with the GCC collect2 program. For some 20522b85037dbSmrg# reason, if we set the COLLECT_NAMES environment variable, the problems 20523b85037dbSmrg# vanish in a puff of smoke. 20524b85037dbSmrgif test "X${COLLECT_NAMES+set}" != Xset; then 20525b85037dbSmrg COLLECT_NAMES= 20526b85037dbSmrg export COLLECT_NAMES 20527b85037dbSmrgfi 20528b85037dbSmrg_LT_EOF 20529b85037dbSmrg ;; 20530b85037dbSmrg esac 20531b85037dbSmrg 20532b85037dbSmrg 20533b85037dbSmrgltmain="$ac_aux_dir/ltmain.sh" 20534b85037dbSmrg 20535b85037dbSmrg 20536b85037dbSmrg # We use sed instead of cat because bash on DJGPP gets confused if 20537b85037dbSmrg # if finds mixed CR/LF and LF-only lines. Since sed operates in 20538b85037dbSmrg # text mode, it properly converts lines to CR/LF. This bash problem 20539b85037dbSmrg # is reportedly fixed, but why not run on old versions too? 20540302b15bdSmrg sed '$q' "$ltmain" >> "$cfgfile" \ 20541302b15bdSmrg || (rm -f "$cfgfile"; exit 1) 20542302b15bdSmrg 20543302b15bdSmrg if test x"$xsi_shell" = xyes; then 20544302b15bdSmrg sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 20545302b15bdSmrgfunc_dirname ()\ 20546302b15bdSmrg{\ 20547302b15bdSmrg\ case ${1} in\ 20548302b15bdSmrg\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20549302b15bdSmrg\ * ) func_dirname_result="${3}" ;;\ 20550302b15bdSmrg\ esac\ 20551302b15bdSmrg} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 20552302b15bdSmrg && mv -f "$cfgfile.tmp" "$cfgfile" \ 20553302b15bdSmrg || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20554302b15bdSmrgtest 0 -eq $? || _lt_function_replace_fail=: 20555302b15bdSmrg 20556302b15bdSmrg 20557302b15bdSmrg sed -e '/^func_basename ()$/,/^} # func_basename /c\ 20558302b15bdSmrgfunc_basename ()\ 20559302b15bdSmrg{\ 20560302b15bdSmrg\ func_basename_result="${1##*/}"\ 20561302b15bdSmrg} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20562302b15bdSmrg && mv -f "$cfgfile.tmp" "$cfgfile" \ 20563302b15bdSmrg || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20564302b15bdSmrgtest 0 -eq $? || _lt_function_replace_fail=: 20565302b15bdSmrg 20566302b15bdSmrg 20567302b15bdSmrg sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 20568302b15bdSmrgfunc_dirname_and_basename ()\ 20569302b15bdSmrg{\ 20570302b15bdSmrg\ case ${1} in\ 20571302b15bdSmrg\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20572302b15bdSmrg\ * ) func_dirname_result="${3}" ;;\ 20573302b15bdSmrg\ esac\ 20574302b15bdSmrg\ func_basename_result="${1##*/}"\ 20575302b15bdSmrg} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20576302b15bdSmrg && mv -f "$cfgfile.tmp" "$cfgfile" \ 20577302b15bdSmrg || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20578302b15bdSmrgtest 0 -eq $? || _lt_function_replace_fail=: 20579302b15bdSmrg 20580302b15bdSmrg 20581302b15bdSmrg sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 20582302b15bdSmrgfunc_stripname ()\ 20583302b15bdSmrg{\ 20584302b15bdSmrg\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 20585302b15bdSmrg\ # positional parameters, so assign one to ordinary parameter first.\ 20586302b15bdSmrg\ func_stripname_result=${3}\ 20587302b15bdSmrg\ func_stripname_result=${func_stripname_result#"${1}"}\ 20588302b15bdSmrg\ func_stripname_result=${func_stripname_result%"${2}"}\ 20589302b15bdSmrg} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 20590302b15bdSmrg && mv -f "$cfgfile.tmp" "$cfgfile" \ 20591302b15bdSmrg || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20592302b15bdSmrgtest 0 -eq $? || _lt_function_replace_fail=: 20593302b15bdSmrg 20594302b15bdSmrg 20595302b15bdSmrg sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 20596302b15bdSmrgfunc_split_long_opt ()\ 20597302b15bdSmrg{\ 20598302b15bdSmrg\ func_split_long_opt_name=${1%%=*}\ 20599302b15bdSmrg\ func_split_long_opt_arg=${1#*=}\ 20600302b15bdSmrg} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20601302b15bdSmrg && mv -f "$cfgfile.tmp" "$cfgfile" \ 20602302b15bdSmrg || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20603302b15bdSmrgtest 0 -eq $? || _lt_function_replace_fail=: 20604302b15bdSmrg 20605302b15bdSmrg 20606302b15bdSmrg sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 20607302b15bdSmrgfunc_split_short_opt ()\ 20608302b15bdSmrg{\ 20609302b15bdSmrg\ func_split_short_opt_arg=${1#??}\ 20610302b15bdSmrg\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 20611302b15bdSmrg} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20612302b15bdSmrg && mv -f "$cfgfile.tmp" "$cfgfile" \ 20613302b15bdSmrg || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20614302b15bdSmrgtest 0 -eq $? || _lt_function_replace_fail=: 20615302b15bdSmrg 20616302b15bdSmrg 20617302b15bdSmrg sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 20618302b15bdSmrgfunc_lo2o ()\ 20619302b15bdSmrg{\ 20620302b15bdSmrg\ case ${1} in\ 20621302b15bdSmrg\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 20622302b15bdSmrg\ *) func_lo2o_result=${1} ;;\ 20623302b15bdSmrg\ esac\ 20624302b15bdSmrg} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 20625302b15bdSmrg && mv -f "$cfgfile.tmp" "$cfgfile" \ 20626302b15bdSmrg || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20627302b15bdSmrgtest 0 -eq $? || _lt_function_replace_fail=: 20628302b15bdSmrg 20629302b15bdSmrg 20630302b15bdSmrg sed -e '/^func_xform ()$/,/^} # func_xform /c\ 20631302b15bdSmrgfunc_xform ()\ 20632302b15bdSmrg{\ 20633302b15bdSmrg func_xform_result=${1%.*}.lo\ 20634302b15bdSmrg} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 20635302b15bdSmrg && mv -f "$cfgfile.tmp" "$cfgfile" \ 20636302b15bdSmrg || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20637302b15bdSmrgtest 0 -eq $? || _lt_function_replace_fail=: 20638302b15bdSmrg 20639302b15bdSmrg 20640302b15bdSmrg sed -e '/^func_arith ()$/,/^} # func_arith /c\ 20641302b15bdSmrgfunc_arith ()\ 20642302b15bdSmrg{\ 20643302b15bdSmrg func_arith_result=$(( $* ))\ 20644302b15bdSmrg} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 20645302b15bdSmrg && mv -f "$cfgfile.tmp" "$cfgfile" \ 20646302b15bdSmrg || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20647302b15bdSmrgtest 0 -eq $? || _lt_function_replace_fail=: 20648302b15bdSmrg 20649302b15bdSmrg 20650302b15bdSmrg sed -e '/^func_len ()$/,/^} # func_len /c\ 20651302b15bdSmrgfunc_len ()\ 20652302b15bdSmrg{\ 20653302b15bdSmrg func_len_result=${#1}\ 20654302b15bdSmrg} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 20655302b15bdSmrg && mv -f "$cfgfile.tmp" "$cfgfile" \ 20656302b15bdSmrg || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20657302b15bdSmrgtest 0 -eq $? || _lt_function_replace_fail=: 20658302b15bdSmrg 20659302b15bdSmrgfi 20660302b15bdSmrg 20661302b15bdSmrgif test x"$lt_shell_append" = xyes; then 20662302b15bdSmrg sed -e '/^func_append ()$/,/^} # func_append /c\ 20663302b15bdSmrgfunc_append ()\ 20664302b15bdSmrg{\ 20665302b15bdSmrg eval "${1}+=\\${2}"\ 20666302b15bdSmrg} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 20667302b15bdSmrg && mv -f "$cfgfile.tmp" "$cfgfile" \ 20668302b15bdSmrg || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20669302b15bdSmrgtest 0 -eq $? || _lt_function_replace_fail=: 20670302b15bdSmrg 20671302b15bdSmrg 20672302b15bdSmrg sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 20673302b15bdSmrgfunc_append_quoted ()\ 20674302b15bdSmrg{\ 20675302b15bdSmrg\ func_quote_for_eval "${2}"\ 20676302b15bdSmrg\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 20677302b15bdSmrg} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 20678302b15bdSmrg && mv -f "$cfgfile.tmp" "$cfgfile" \ 20679302b15bdSmrg || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20680302b15bdSmrgtest 0 -eq $? || _lt_function_replace_fail=: 20681302b15bdSmrg 20682302b15bdSmrg 20683302b15bdSmrg # Save a `func_append' function call where possible by direct use of '+=' 20684302b15bdSmrg sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 20685302b15bdSmrg && mv -f "$cfgfile.tmp" "$cfgfile" \ 20686302b15bdSmrg || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20687302b15bdSmrg test 0 -eq $? || _lt_function_replace_fail=: 20688302b15bdSmrgelse 20689302b15bdSmrg # Save a `func_append' function call even when '+=' is not available 20690302b15bdSmrg sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 20691302b15bdSmrg && mv -f "$cfgfile.tmp" "$cfgfile" \ 20692302b15bdSmrg || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20693302b15bdSmrg test 0 -eq $? || _lt_function_replace_fail=: 20694302b15bdSmrgfi 20695302b15bdSmrg 20696302b15bdSmrgif test x"$_lt_function_replace_fail" = x":"; then 20697302b15bdSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 20698302b15bdSmrg$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 20699302b15bdSmrgfi 20700302b15bdSmrg 20701302b15bdSmrg 20702302b15bdSmrg mv -f "$cfgfile" "$ofile" || 20703b85037dbSmrg (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 20704b85037dbSmrg chmod +x "$ofile" 20705b85037dbSmrg 20706b85037dbSmrg ;; 20707b85037dbSmrg 20708b85037dbSmrg esac 20709b85037dbSmrgdone # for ac_tag 20710b85037dbSmrg 20711b85037dbSmrg 20712b85037dbSmrgas_fn_exit 0 20713b85037dbSmrg_ACEOF 20714b85037dbSmrgac_clean_files=$ac_clean_files_save 20715b85037dbSmrg 20716b85037dbSmrgtest $ac_write_fail = 0 || 20717b85037dbSmrg as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 20718b85037dbSmrg 20719b85037dbSmrg 20720b85037dbSmrg# configure is writing to config.log, and then calls config.status. 20721b85037dbSmrg# config.status does its own redirection, appending to config.log. 20722b85037dbSmrg# Unfortunately, on DOS this fails, as config.log is still kept open 20723b85037dbSmrg# by configure, so config.status won't be able to write to it; its 20724b85037dbSmrg# output is simply discarded. So we exec the FD to /dev/null, 20725b85037dbSmrg# effectively closing config.log, so it can be properly (re)opened and 20726b85037dbSmrg# appended to by config.status. When coming back to configure, we 20727b85037dbSmrg# need to make the FD available again. 20728b85037dbSmrgif test "$no_create" != yes; then 20729b85037dbSmrg ac_cs_success=: 20730b85037dbSmrg ac_config_status_args= 20731b85037dbSmrg test "$silent" = yes && 20732b85037dbSmrg ac_config_status_args="$ac_config_status_args --quiet" 20733b85037dbSmrg exec 5>/dev/null 20734b85037dbSmrg $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20735b85037dbSmrg exec 5>>config.log 20736b85037dbSmrg # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20737b85037dbSmrg # would make configure fail if this is the last instruction. 20738b85037dbSmrg $ac_cs_success || as_fn_exit 1 20739b85037dbSmrgfi 20740b85037dbSmrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20741b85037dbSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20742b85037dbSmrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20743b85037dbSmrgfi 20744b85037dbSmrg 20745b85037dbSmrg 20746