configure revision 55acc8fc
13da084b3Smrg#! /bin/sh 23da084b3Smrg# Guess values for system-dependent variables and create Makefiles. 355acc8fcSmrg# Generated by GNU Autoconf 2.68 for libfontenc 1.1.0. 43da084b3Smrg# 53da084b3Smrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 63da084b3Smrg# 755acc8fcSmrg# 83da084b3Smrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 955acc8fcSmrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 1055acc8fcSmrg# Foundation, Inc. 1155acc8fcSmrg# 1255acc8fcSmrg# 133da084b3Smrg# This configure script is free software; the Free Software Foundation 143da084b3Smrg# gives unlimited permission to copy, distribute and modify it. 1555acc8fcSmrg## -------------------- ## 1655acc8fcSmrg## M4sh Initialization. ## 1755acc8fcSmrg## -------------------- ## 183da084b3Smrg 19d63fdb69Smrg# Be more Bourne compatible 20d63fdb69SmrgDUALCASE=1; export DUALCASE # for MKS sh 2155acc8fcSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 223da084b3Smrg emulate sh 233da084b3Smrg NULLCMD=: 24d63fdb69Smrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 253da084b3Smrg # is contrary to our usage. Disable this feature. 263da084b3Smrg alias -g '${1+"$@"}'='"$@"' 273da084b3Smrg setopt NO_GLOB_SUBST 283da084b3Smrgelse 2955acc8fcSmrg case `(set -o) 2>/dev/null` in #( 3055acc8fcSmrg *posix*) : 3155acc8fcSmrg set -o posix ;; #( 3255acc8fcSmrg *) : 3355acc8fcSmrg ;; 34d63fdb69Smrgesac 353da084b3Smrgfi 36d63fdb69Smrg 37d63fdb69Smrg 38d63fdb69Smrgas_nl=' 39d63fdb69Smrg' 40d63fdb69Smrgexport as_nl 41d63fdb69Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 42d63fdb69Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43d63fdb69Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44d63fdb69Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 4555acc8fcSmrg# Prefer a ksh shell builtin over an external printf program on Solaris, 4655acc8fcSmrg# but without wasting forks for bash or zsh. 4755acc8fcSmrgif test -z "$BASH_VERSION$ZSH_VERSION" \ 4855acc8fcSmrg && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 4955acc8fcSmrg as_echo='print -r --' 5055acc8fcSmrg as_echo_n='print -rn --' 5155acc8fcSmrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52d63fdb69Smrg as_echo='printf %s\n' 53d63fdb69Smrg as_echo_n='printf %s' 54d63fdb69Smrgelse 55d63fdb69Smrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56d63fdb69Smrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57d63fdb69Smrg as_echo_n='/usr/ucb/echo -n' 58d63fdb69Smrg else 59d63fdb69Smrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60d63fdb69Smrg as_echo_n_body='eval 61d63fdb69Smrg arg=$1; 6255acc8fcSmrg case $arg in #( 63d63fdb69Smrg *"$as_nl"*) 64d63fdb69Smrg expr "X$arg" : "X\\(.*\\)$as_nl"; 65d63fdb69Smrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66d63fdb69Smrg esac; 67d63fdb69Smrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68d63fdb69Smrg ' 69d63fdb69Smrg export as_echo_n_body 70d63fdb69Smrg as_echo_n='sh -c $as_echo_n_body as_echo' 71d63fdb69Smrg fi 72d63fdb69Smrg export as_echo_body 73d63fdb69Smrg as_echo='sh -c $as_echo_body as_echo' 74d63fdb69Smrgfi 75d63fdb69Smrg 763da084b3Smrg# The user is always right. 773da084b3Smrgif test "${PATH_SEPARATOR+set}" != set; then 78d63fdb69Smrg PATH_SEPARATOR=: 79d63fdb69Smrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80d63fdb69Smrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81d63fdb69Smrg PATH_SEPARATOR=';' 82d63fdb69Smrg } 833da084b3Smrgfi 843da084b3Smrg 853da084b3Smrg 863da084b3Smrg# IFS 873da084b3Smrg# We need space, tab and new line, in precisely that order. Quoting is 883da084b3Smrg# there to prevent editors from complaining about space-tab. 893da084b3Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 903da084b3Smrg# splitting by setting IFS to empty value.) 913da084b3SmrgIFS=" "" $as_nl" 923da084b3Smrg 933da084b3Smrg# Find who we are. Look in the path if we contain no directory separator. 9455acc8fcSmrgas_myself= 9555acc8fcSmrgcase $0 in #(( 963da084b3Smrg *[\\/]* ) as_myself=$0 ;; 973da084b3Smrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 983da084b3Smrgfor as_dir in $PATH 993da084b3Smrgdo 1003da084b3Smrg IFS=$as_save_IFS 1013da084b3Smrg test -z "$as_dir" && as_dir=. 10255acc8fcSmrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 10355acc8fcSmrg done 1043da084b3SmrgIFS=$as_save_IFS 1053da084b3Smrg 1063da084b3Smrg ;; 1073da084b3Smrgesac 1083da084b3Smrg# We did not find ourselves, most probably we were run as `sh COMMAND' 1093da084b3Smrg# in which case we are not to be found in the path. 1103da084b3Smrgif test "x$as_myself" = x; then 1113da084b3Smrg as_myself=$0 1123da084b3Smrgfi 1133da084b3Smrgif test ! -f "$as_myself"; then 114d63fdb69Smrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11555acc8fcSmrg exit 1 1163da084b3Smrgfi 1173da084b3Smrg 11855acc8fcSmrg# Unset variables that we do not need and which cause bugs (e.g. in 11955acc8fcSmrg# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 12055acc8fcSmrg# suppresses any "Segmentation fault" message there. '((' could 12155acc8fcSmrg# trigger a bug in pdksh 5.2.14. 12255acc8fcSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH 12355acc8fcSmrgdo eval test x\${$as_var+set} = xset \ 12455acc8fcSmrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 1253da084b3Smrgdone 1263da084b3SmrgPS1='$ ' 1273da084b3SmrgPS2='> ' 1283da084b3SmrgPS4='+ ' 1293da084b3Smrg 1303da084b3Smrg# NLS nuisances. 131d63fdb69SmrgLC_ALL=C 132d63fdb69Smrgexport LC_ALL 133d63fdb69SmrgLANGUAGE=C 134d63fdb69Smrgexport LANGUAGE 1353da084b3Smrg 13655acc8fcSmrg# CDPATH. 13755acc8fcSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13855acc8fcSmrg 13955acc8fcSmrgif test "x$CONFIG_SHELL" = x; then 14055acc8fcSmrg as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 14155acc8fcSmrg emulate sh 14255acc8fcSmrg NULLCMD=: 14355acc8fcSmrg # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 14455acc8fcSmrg # is contrary to our usage. Disable this feature. 14555acc8fcSmrg alias -g '\${1+\"\$@\"}'='\"\$@\"' 14655acc8fcSmrg setopt NO_GLOB_SUBST 14755acc8fcSmrgelse 14855acc8fcSmrg case \`(set -o) 2>/dev/null\` in #( 14955acc8fcSmrg *posix*) : 15055acc8fcSmrg set -o posix ;; #( 15155acc8fcSmrg *) : 15255acc8fcSmrg ;; 15355acc8fcSmrgesac 15455acc8fcSmrgfi 15555acc8fcSmrg" 15655acc8fcSmrg as_required="as_fn_return () { (exit \$1); } 15755acc8fcSmrgas_fn_success () { as_fn_return 0; } 15855acc8fcSmrgas_fn_failure () { as_fn_return 1; } 15955acc8fcSmrgas_fn_ret_success () { return 0; } 16055acc8fcSmrgas_fn_ret_failure () { return 1; } 16155acc8fcSmrg 16255acc8fcSmrgexitcode=0 16355acc8fcSmrgas_fn_success || { exitcode=1; echo as_fn_success failed.; } 16455acc8fcSmrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 16555acc8fcSmrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 16655acc8fcSmrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 16755acc8fcSmrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 16855acc8fcSmrg 16955acc8fcSmrgelse 17055acc8fcSmrg exitcode=1; echo positional parameters were not saved. 17155acc8fcSmrgfi 17255acc8fcSmrgtest x\$exitcode = x0 || exit 1" 17355acc8fcSmrg as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 17455acc8fcSmrg as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 17555acc8fcSmrg eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 17655acc8fcSmrg test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 17755acc8fcSmrgtest \$(( 1 + 1 )) = 2 || exit 1 17855acc8fcSmrg 17955acc8fcSmrg test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 18055acc8fcSmrg ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18155acc8fcSmrg ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 18255acc8fcSmrg ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 18355acc8fcSmrg PATH=/empty FPATH=/empty; export PATH FPATH 18455acc8fcSmrg test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 18555acc8fcSmrg || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 18655acc8fcSmrg if (eval "$as_required") 2>/dev/null; then : 18755acc8fcSmrg as_have_required=yes 18855acc8fcSmrgelse 18955acc8fcSmrg as_have_required=no 19055acc8fcSmrgfi 19155acc8fcSmrg if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 19255acc8fcSmrg 19355acc8fcSmrgelse 19455acc8fcSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19555acc8fcSmrgas_found=false 19655acc8fcSmrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 19755acc8fcSmrgdo 19855acc8fcSmrg IFS=$as_save_IFS 19955acc8fcSmrg test -z "$as_dir" && as_dir=. 20055acc8fcSmrg as_found=: 20155acc8fcSmrg case $as_dir in #( 20255acc8fcSmrg /*) 20355acc8fcSmrg for as_base in sh bash ksh sh5; do 20455acc8fcSmrg # Try only shells that exist, to save several forks. 20555acc8fcSmrg as_shell=$as_dir/$as_base 20655acc8fcSmrg if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 20755acc8fcSmrg { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 20855acc8fcSmrg CONFIG_SHELL=$as_shell as_have_required=yes 20955acc8fcSmrg if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 21055acc8fcSmrg break 2 21155acc8fcSmrgfi 21255acc8fcSmrgfi 21355acc8fcSmrg done;; 21455acc8fcSmrg esac 21555acc8fcSmrg as_found=false 21655acc8fcSmrgdone 21755acc8fcSmrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 21855acc8fcSmrg { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 21955acc8fcSmrg CONFIG_SHELL=$SHELL as_have_required=yes 22055acc8fcSmrgfi; } 22155acc8fcSmrgIFS=$as_save_IFS 22255acc8fcSmrg 22355acc8fcSmrg 22455acc8fcSmrg if test "x$CONFIG_SHELL" != x; then : 22555acc8fcSmrg # We cannot yet assume a decent shell, so we have to provide a 22655acc8fcSmrg # neutralization value for shells without unset; and this also 22755acc8fcSmrg # works around shells that cannot unset nonexistent variables. 22855acc8fcSmrg # Preserve -v and -x to the replacement shell. 22955acc8fcSmrg BASH_ENV=/dev/null 23055acc8fcSmrg ENV=/dev/null 23155acc8fcSmrg (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 23255acc8fcSmrg export CONFIG_SHELL 23355acc8fcSmrg case $- in # (((( 23455acc8fcSmrg *v*x* | *x*v* ) as_opts=-vx ;; 23555acc8fcSmrg *v* ) as_opts=-v ;; 23655acc8fcSmrg *x* ) as_opts=-x ;; 23755acc8fcSmrg * ) as_opts= ;; 23855acc8fcSmrg esac 23955acc8fcSmrg exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 24055acc8fcSmrgfi 24155acc8fcSmrg 24255acc8fcSmrg if test x$as_have_required = xno; then : 24355acc8fcSmrg $as_echo "$0: This script requires a shell more modern than all" 24455acc8fcSmrg $as_echo "$0: the shells that I found on your system." 24555acc8fcSmrg if test x${ZSH_VERSION+set} = xset ; then 24655acc8fcSmrg $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 24755acc8fcSmrg $as_echo "$0: be upgraded to zsh 4.3.4 or later." 24855acc8fcSmrg else 24955acc8fcSmrg $as_echo "$0: Please tell bug-autoconf@gnu.org and 25055acc8fcSmrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 25155acc8fcSmrg$0: about your system, including any error possibly output 25255acc8fcSmrg$0: before this message. Then install a modern shell, or 25355acc8fcSmrg$0: manually run the script under such a shell if you do 25455acc8fcSmrg$0: have one." 25555acc8fcSmrg fi 25655acc8fcSmrg exit 1 25755acc8fcSmrgfi 25855acc8fcSmrgfi 25955acc8fcSmrgfi 26055acc8fcSmrgSHELL=${CONFIG_SHELL-/bin/sh} 26155acc8fcSmrgexport SHELL 26255acc8fcSmrg# Unset more variables known to interfere with behavior of common tools. 26355acc8fcSmrgCLICOLOR_FORCE= GREP_OPTIONS= 26455acc8fcSmrgunset CLICOLOR_FORCE GREP_OPTIONS 26555acc8fcSmrg 26655acc8fcSmrg## --------------------- ## 26755acc8fcSmrg## M4sh Shell Functions. ## 26855acc8fcSmrg## --------------------- ## 26955acc8fcSmrg# as_fn_unset VAR 27055acc8fcSmrg# --------------- 27155acc8fcSmrg# Portably unset VAR. 27255acc8fcSmrgas_fn_unset () 27355acc8fcSmrg{ 27455acc8fcSmrg { eval $1=; unset $1;} 27555acc8fcSmrg} 27655acc8fcSmrgas_unset=as_fn_unset 27755acc8fcSmrg 27855acc8fcSmrg# as_fn_set_status STATUS 27955acc8fcSmrg# ----------------------- 28055acc8fcSmrg# Set $? to STATUS, without forking. 28155acc8fcSmrgas_fn_set_status () 28255acc8fcSmrg{ 28355acc8fcSmrg return $1 28455acc8fcSmrg} # as_fn_set_status 28555acc8fcSmrg 28655acc8fcSmrg# as_fn_exit STATUS 28755acc8fcSmrg# ----------------- 28855acc8fcSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 28955acc8fcSmrgas_fn_exit () 29055acc8fcSmrg{ 29155acc8fcSmrg set +e 29255acc8fcSmrg as_fn_set_status $1 29355acc8fcSmrg exit $1 29455acc8fcSmrg} # as_fn_exit 29555acc8fcSmrg 29655acc8fcSmrg# as_fn_mkdir_p 29755acc8fcSmrg# ------------- 29855acc8fcSmrg# Create "$as_dir" as a directory, including parents if necessary. 29955acc8fcSmrgas_fn_mkdir_p () 30055acc8fcSmrg{ 30155acc8fcSmrg 30255acc8fcSmrg case $as_dir in #( 30355acc8fcSmrg -*) as_dir=./$as_dir;; 30455acc8fcSmrg esac 30555acc8fcSmrg test -d "$as_dir" || eval $as_mkdir_p || { 30655acc8fcSmrg as_dirs= 30755acc8fcSmrg while :; do 30855acc8fcSmrg case $as_dir in #( 30955acc8fcSmrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 31055acc8fcSmrg *) as_qdir=$as_dir;; 31155acc8fcSmrg esac 31255acc8fcSmrg as_dirs="'$as_qdir' $as_dirs" 31355acc8fcSmrg as_dir=`$as_dirname -- "$as_dir" || 31455acc8fcSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 31555acc8fcSmrg X"$as_dir" : 'X\(//\)[^/]' \| \ 31655acc8fcSmrg X"$as_dir" : 'X\(//\)$' \| \ 31755acc8fcSmrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 31855acc8fcSmrg$as_echo X"$as_dir" | 31955acc8fcSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 32055acc8fcSmrg s//\1/ 32155acc8fcSmrg q 32255acc8fcSmrg } 32355acc8fcSmrg /^X\(\/\/\)[^/].*/{ 32455acc8fcSmrg s//\1/ 32555acc8fcSmrg q 32655acc8fcSmrg } 32755acc8fcSmrg /^X\(\/\/\)$/{ 32855acc8fcSmrg s//\1/ 32955acc8fcSmrg q 33055acc8fcSmrg } 33155acc8fcSmrg /^X\(\/\).*/{ 33255acc8fcSmrg s//\1/ 33355acc8fcSmrg q 33455acc8fcSmrg } 33555acc8fcSmrg s/.*/./; q'` 33655acc8fcSmrg test -d "$as_dir" && break 33755acc8fcSmrg done 33855acc8fcSmrg test -z "$as_dirs" || eval "mkdir $as_dirs" 33955acc8fcSmrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 34055acc8fcSmrg 34155acc8fcSmrg 34255acc8fcSmrg} # as_fn_mkdir_p 34355acc8fcSmrg# as_fn_append VAR VALUE 34455acc8fcSmrg# ---------------------- 34555acc8fcSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take 34655acc8fcSmrg# advantage of any shell optimizations that allow amortized linear growth over 34755acc8fcSmrg# repeated appends, instead of the typical quadratic growth present in naive 34855acc8fcSmrg# implementations. 34955acc8fcSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 35055acc8fcSmrg eval 'as_fn_append () 35155acc8fcSmrg { 35255acc8fcSmrg eval $1+=\$2 35355acc8fcSmrg }' 35455acc8fcSmrgelse 35555acc8fcSmrg as_fn_append () 35655acc8fcSmrg { 35755acc8fcSmrg eval $1=\$$1\$2 35855acc8fcSmrg } 35955acc8fcSmrgfi # as_fn_append 36055acc8fcSmrg 36155acc8fcSmrg# as_fn_arith ARG... 36255acc8fcSmrg# ------------------ 36355acc8fcSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the 36455acc8fcSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 36555acc8fcSmrg# must be portable across $(()) and expr. 36655acc8fcSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 36755acc8fcSmrg eval 'as_fn_arith () 36855acc8fcSmrg { 36955acc8fcSmrg as_val=$(( $* )) 37055acc8fcSmrg }' 37155acc8fcSmrgelse 37255acc8fcSmrg as_fn_arith () 37355acc8fcSmrg { 37455acc8fcSmrg as_val=`expr "$@" || test $? -eq 1` 37555acc8fcSmrg } 37655acc8fcSmrgfi # as_fn_arith 37755acc8fcSmrg 37855acc8fcSmrg 37955acc8fcSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 38055acc8fcSmrg# ---------------------------------------- 38155acc8fcSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 38255acc8fcSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 38355acc8fcSmrg# script with STATUS, using 1 if that was 0. 38455acc8fcSmrgas_fn_error () 38555acc8fcSmrg{ 38655acc8fcSmrg as_status=$1; test $as_status -eq 0 && as_status=1 38755acc8fcSmrg if test "$4"; then 38855acc8fcSmrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 38955acc8fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 39055acc8fcSmrg fi 39155acc8fcSmrg $as_echo "$as_me: error: $2" >&2 39255acc8fcSmrg as_fn_exit $as_status 39355acc8fcSmrg} # as_fn_error 39455acc8fcSmrg 3953da084b3Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 3963da084b3Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 3973da084b3Smrg as_expr=expr 3983da084b3Smrgelse 3993da084b3Smrg as_expr=false 4003da084b3Smrgfi 4013da084b3Smrg 4023da084b3Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 4033da084b3Smrg as_basename=basename 4043da084b3Smrgelse 4053da084b3Smrg as_basename=false 4063da084b3Smrgfi 4073da084b3Smrg 40855acc8fcSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 40955acc8fcSmrg as_dirname=dirname 41055acc8fcSmrgelse 41155acc8fcSmrg as_dirname=false 41255acc8fcSmrgfi 4133da084b3Smrg 4143da084b3Smrgas_me=`$as_basename -- "$0" || 4153da084b3Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 4163da084b3Smrg X"$0" : 'X\(//\)$' \| \ 4173da084b3Smrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 418d63fdb69Smrg$as_echo X/"$0" | 4193da084b3Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 4203da084b3Smrg s//\1/ 4213da084b3Smrg q 4223da084b3Smrg } 4233da084b3Smrg /^X\/\(\/\/\)$/{ 4243da084b3Smrg s//\1/ 4253da084b3Smrg q 4263da084b3Smrg } 4273da084b3Smrg /^X\/\(\/\).*/{ 4283da084b3Smrg s//\1/ 4293da084b3Smrg q 4303da084b3Smrg } 4313da084b3Smrg s/.*/./; q'` 4323da084b3Smrg 43355acc8fcSmrg# Avoid depending upon Character Ranges. 43455acc8fcSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 43555acc8fcSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 43655acc8fcSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 43755acc8fcSmrgas_cr_digits='0123456789' 43855acc8fcSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits 4393da084b3Smrg 4403da084b3Smrg 44155acc8fcSmrg as_lineno_1=$LINENO as_lineno_1a=$LINENO 44255acc8fcSmrg as_lineno_2=$LINENO as_lineno_2a=$LINENO 44355acc8fcSmrg eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 44455acc8fcSmrg test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 44555acc8fcSmrg # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 44655acc8fcSmrg sed -n ' 44755acc8fcSmrg p 44855acc8fcSmrg /[$]LINENO/= 44955acc8fcSmrg ' <$as_myself | 45055acc8fcSmrg sed ' 45155acc8fcSmrg s/[$]LINENO.*/&-/ 45255acc8fcSmrg t lineno 45355acc8fcSmrg b 45455acc8fcSmrg :lineno 45555acc8fcSmrg N 45655acc8fcSmrg :loop 45755acc8fcSmrg s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 45855acc8fcSmrg t loop 45955acc8fcSmrg s/-\n.*// 46055acc8fcSmrg ' >$as_me.lineno && 46155acc8fcSmrg chmod +x "$as_me.lineno" || 46255acc8fcSmrg { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 4633da084b3Smrg 46455acc8fcSmrg # Don't try to exec as it changes $[0], causing all sort of problems 46555acc8fcSmrg # (the dirname of $[0] is not the place where we might find the 46655acc8fcSmrg # original and so on. Autoconf is especially sensitive to this). 46755acc8fcSmrg . "./$as_me.lineno" 46855acc8fcSmrg # Exit status is that of the last command. 46955acc8fcSmrg exit 4703da084b3Smrg} 4713da084b3Smrg 47255acc8fcSmrgECHO_C= ECHO_N= ECHO_T= 47355acc8fcSmrgcase `echo -n x` in #((((( 47455acc8fcSmrg-n*) 47555acc8fcSmrg case `echo 'xy\c'` in 47655acc8fcSmrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 47755acc8fcSmrg xy) ECHO_C='\c';; 47855acc8fcSmrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 47955acc8fcSmrg ECHO_T=' ';; 48055acc8fcSmrg esac;; 48155acc8fcSmrg*) 48255acc8fcSmrg ECHO_N='-n';; 48355acc8fcSmrgesac 4843da084b3Smrg 48555acc8fcSmrgrm -f conf$$ conf$$.exe conf$$.file 48655acc8fcSmrgif test -d conf$$.dir; then 48755acc8fcSmrg rm -f conf$$.dir/conf$$.file 48855acc8fcSmrgelse 48955acc8fcSmrg rm -f conf$$.dir 49055acc8fcSmrg mkdir conf$$.dir 2>/dev/null 4913da084b3Smrgfi 49255acc8fcSmrgif (echo >conf$$.file) 2>/dev/null; then 49355acc8fcSmrg if ln -s conf$$.file conf$$ 2>/dev/null; then 49455acc8fcSmrg as_ln_s='ln -s' 49555acc8fcSmrg # ... but there are two gotchas: 49655acc8fcSmrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 49755acc8fcSmrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 49855acc8fcSmrg # In both cases, we have to default to `cp -p'. 49955acc8fcSmrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 50055acc8fcSmrg as_ln_s='cp -p' 50155acc8fcSmrg elif ln conf$$.file conf$$ 2>/dev/null; then 50255acc8fcSmrg as_ln_s=ln 50355acc8fcSmrg else 50455acc8fcSmrg as_ln_s='cp -p' 50555acc8fcSmrg fi 5063da084b3Smrgelse 50755acc8fcSmrg as_ln_s='cp -p' 5083da084b3Smrgfi 50955acc8fcSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 51055acc8fcSmrgrmdir conf$$.dir 2>/dev/null 5113da084b3Smrg 51255acc8fcSmrgif mkdir -p . 2>/dev/null; then 51355acc8fcSmrg as_mkdir_p='mkdir -p "$as_dir"' 51455acc8fcSmrgelse 51555acc8fcSmrg test -d ./-p && rmdir ./-p 51655acc8fcSmrg as_mkdir_p=false 5173da084b3Smrgfi 5183da084b3Smrg 51955acc8fcSmrgif test -x / >/dev/null 2>&1; then 52055acc8fcSmrg as_test_x='test -x' 5213da084b3Smrgelse 52255acc8fcSmrg if ls -dL / >/dev/null 2>&1; then 52355acc8fcSmrg as_ls_L_option=L 52455acc8fcSmrg else 52555acc8fcSmrg as_ls_L_option= 52655acc8fcSmrg fi 52755acc8fcSmrg as_test_x=' 52855acc8fcSmrg eval sh -c '\'' 52955acc8fcSmrg if test -d "$1"; then 53055acc8fcSmrg test -d "$1/."; 53155acc8fcSmrg else 53255acc8fcSmrg case $1 in #( 53355acc8fcSmrg -*)set "./$1";; 53455acc8fcSmrg esac; 53555acc8fcSmrg case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 53655acc8fcSmrg ???[sx]*):;;*)false;;esac;fi 53755acc8fcSmrg '\'' sh 53855acc8fcSmrg ' 5393da084b3Smrgfi 54055acc8fcSmrgas_executable_p=$as_test_x 5413da084b3Smrg 54255acc8fcSmrg# Sed expression to map a string onto a valid CPP name. 54355acc8fcSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 5443da084b3Smrg 54555acc8fcSmrg# Sed expression to map a string onto a valid variable name. 54655acc8fcSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 5473da084b3Smrg 54855acc8fcSmrgSHELL=${CONFIG_SHELL-/bin/sh} 5493da084b3Smrg 55055acc8fcSmrg 55155acc8fcSmrgtest -n "$DJDIR" || exec 7<&0 </dev/null 55255acc8fcSmrgexec 6>&1 55355acc8fcSmrg 55455acc8fcSmrg# Name of the host. 55555acc8fcSmrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 55655acc8fcSmrg# so uname gets run too. 55755acc8fcSmrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 55855acc8fcSmrg 55955acc8fcSmrg# 56055acc8fcSmrg# Initializations. 56155acc8fcSmrg# 56255acc8fcSmrgac_default_prefix=/usr/local 56355acc8fcSmrgac_clean_files= 56455acc8fcSmrgac_config_libobj_dir=. 56555acc8fcSmrgLIBOBJS= 56655acc8fcSmrgcross_compiling=no 56755acc8fcSmrgsubdirs= 56855acc8fcSmrgMFLAGS= 56955acc8fcSmrgMAKEFLAGS= 57055acc8fcSmrg 57155acc8fcSmrg# Identity of this package. 57255acc8fcSmrgPACKAGE_NAME='libfontenc' 57355acc8fcSmrgPACKAGE_TARNAME='libfontenc' 57455acc8fcSmrgPACKAGE_VERSION='1.1.0' 57555acc8fcSmrgPACKAGE_STRING='libfontenc 1.1.0' 57655acc8fcSmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 57755acc8fcSmrgPACKAGE_URL='' 57855acc8fcSmrg 57955acc8fcSmrg# Factoring default headers for most tests. 58055acc8fcSmrgac_includes_default="\ 58155acc8fcSmrg#include <stdio.h> 58255acc8fcSmrg#ifdef HAVE_SYS_TYPES_H 58355acc8fcSmrg# include <sys/types.h> 58455acc8fcSmrg#endif 58555acc8fcSmrg#ifdef HAVE_SYS_STAT_H 58655acc8fcSmrg# include <sys/stat.h> 58755acc8fcSmrg#endif 58855acc8fcSmrg#ifdef STDC_HEADERS 58955acc8fcSmrg# include <stdlib.h> 59055acc8fcSmrg# include <stddef.h> 59155acc8fcSmrg#else 59255acc8fcSmrg# ifdef HAVE_STDLIB_H 59355acc8fcSmrg# include <stdlib.h> 59455acc8fcSmrg# endif 59555acc8fcSmrg#endif 59655acc8fcSmrg#ifdef HAVE_STRING_H 59755acc8fcSmrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 59855acc8fcSmrg# include <memory.h> 59955acc8fcSmrg# endif 60055acc8fcSmrg# include <string.h> 60155acc8fcSmrg#endif 60255acc8fcSmrg#ifdef HAVE_STRINGS_H 60355acc8fcSmrg# include <strings.h> 60455acc8fcSmrg#endif 60555acc8fcSmrg#ifdef HAVE_INTTYPES_H 60655acc8fcSmrg# include <inttypes.h> 60755acc8fcSmrg#endif 60855acc8fcSmrg#ifdef HAVE_STDINT_H 60955acc8fcSmrg# include <stdint.h> 61055acc8fcSmrg#endif 61155acc8fcSmrg#ifdef HAVE_UNISTD_H 61255acc8fcSmrg# include <unistd.h> 61355acc8fcSmrg#endif" 61455acc8fcSmrg 61555acc8fcSmrgac_subst_vars='am__EXEEXT_FALSE 61655acc8fcSmrgam__EXEEXT_TRUE 61755acc8fcSmrgLTLIBOBJS 61855acc8fcSmrgLIBOBJS 61955acc8fcSmrgLINT_FALSE 62055acc8fcSmrgLINT_TRUE 62155acc8fcSmrgLINT_FLAGS 62255acc8fcSmrgLINT 62355acc8fcSmrgFONTENC_LIBS 62455acc8fcSmrgFONTENC_CFLAGS 62555acc8fcSmrgENCODINGSDIR 62655acc8fcSmrgFONTROOTDIR 62755acc8fcSmrgOTOOL64 62855acc8fcSmrgOTOOL 62955acc8fcSmrgLIPO 63055acc8fcSmrgNMEDIT 63155acc8fcSmrgDSYMUTIL 63255acc8fcSmrgRANLIB 63355acc8fcSmrgAR 63455acc8fcSmrgOBJDUMP 63555acc8fcSmrgLN_S 63655acc8fcSmrgNM 63755acc8fcSmrgac_ct_DUMPBIN 63855acc8fcSmrgDUMPBIN 63955acc8fcSmrgLD 64055acc8fcSmrgFGREP 64155acc8fcSmrgLIBTOOL 64255acc8fcSmrgAM_BACKSLASH 64355acc8fcSmrgAM_DEFAULT_VERBOSITY 64455acc8fcSmrgMAN_SUBSTS 64555acc8fcSmrgXORG_MAN_PAGE 64655acc8fcSmrgADMIN_MAN_DIR 64755acc8fcSmrgDRIVER_MAN_DIR 64855acc8fcSmrgMISC_MAN_DIR 64955acc8fcSmrgFILE_MAN_DIR 65055acc8fcSmrgLIB_MAN_DIR 65155acc8fcSmrgAPP_MAN_DIR 65255acc8fcSmrgADMIN_MAN_SUFFIX 65355acc8fcSmrgDRIVER_MAN_SUFFIX 65455acc8fcSmrgMISC_MAN_SUFFIX 65555acc8fcSmrgFILE_MAN_SUFFIX 65655acc8fcSmrgLIB_MAN_SUFFIX 65755acc8fcSmrgAPP_MAN_SUFFIX 65855acc8fcSmrgSED 65955acc8fcSmrghost_os 66055acc8fcSmrghost_vendor 66155acc8fcSmrghost_cpu 66255acc8fcSmrghost 66355acc8fcSmrgbuild_os 66455acc8fcSmrgbuild_vendor 66555acc8fcSmrgbuild_cpu 66655acc8fcSmrgbuild 66755acc8fcSmrgINSTALL_CMD 66855acc8fcSmrgPKG_CONFIG 66955acc8fcSmrgCHANGELOG_CMD 67055acc8fcSmrgCWARNFLAGS 67155acc8fcSmrgEGREP 67255acc8fcSmrgGREP 67355acc8fcSmrgCPP 67455acc8fcSmrgam__fastdepCC_FALSE 67555acc8fcSmrgam__fastdepCC_TRUE 67655acc8fcSmrgCCDEPMODE 67755acc8fcSmrgAMDEPBACKSLASH 67855acc8fcSmrgAMDEP_FALSE 67955acc8fcSmrgAMDEP_TRUE 68055acc8fcSmrgam__quote 68155acc8fcSmrgam__include 68255acc8fcSmrgDEPDIR 68355acc8fcSmrgOBJEXT 68455acc8fcSmrgEXEEXT 68555acc8fcSmrgac_ct_CC 68655acc8fcSmrgCPPFLAGS 68755acc8fcSmrgLDFLAGS 68855acc8fcSmrgCFLAGS 68955acc8fcSmrgCC 69055acc8fcSmrgMAINT 69155acc8fcSmrgMAINTAINER_MODE_FALSE 69255acc8fcSmrgMAINTAINER_MODE_TRUE 69355acc8fcSmrgam__untar 69455acc8fcSmrgam__tar 69555acc8fcSmrgAMTAR 69655acc8fcSmrgam__leading_dot 69755acc8fcSmrgSET_MAKE 69855acc8fcSmrgAWK 69955acc8fcSmrgmkdir_p 70055acc8fcSmrgMKDIR_P 70155acc8fcSmrgINSTALL_STRIP_PROGRAM 70255acc8fcSmrgSTRIP 70355acc8fcSmrginstall_sh 70455acc8fcSmrgMAKEINFO 70555acc8fcSmrgAUTOHEADER 70655acc8fcSmrgAUTOMAKE 70755acc8fcSmrgAUTOCONF 70855acc8fcSmrgACLOCAL 70955acc8fcSmrgVERSION 71055acc8fcSmrgPACKAGE 71155acc8fcSmrgCYGPATH_W 71255acc8fcSmrgam__isrc 71355acc8fcSmrgINSTALL_DATA 71455acc8fcSmrgINSTALL_SCRIPT 71555acc8fcSmrgINSTALL_PROGRAM 71655acc8fcSmrgtarget_alias 71755acc8fcSmrghost_alias 71855acc8fcSmrgbuild_alias 71955acc8fcSmrgLIBS 72055acc8fcSmrgECHO_T 72155acc8fcSmrgECHO_N 72255acc8fcSmrgECHO_C 72355acc8fcSmrgDEFS 72455acc8fcSmrgmandir 72555acc8fcSmrglocaledir 72655acc8fcSmrglibdir 72755acc8fcSmrgpsdir 72855acc8fcSmrgpdfdir 72955acc8fcSmrgdvidir 73055acc8fcSmrghtmldir 73155acc8fcSmrginfodir 73255acc8fcSmrgdocdir 73355acc8fcSmrgoldincludedir 73455acc8fcSmrgincludedir 73555acc8fcSmrglocalstatedir 73655acc8fcSmrgsharedstatedir 73755acc8fcSmrgsysconfdir 73855acc8fcSmrgdatadir 73955acc8fcSmrgdatarootdir 74055acc8fcSmrglibexecdir 74155acc8fcSmrgsbindir 74255acc8fcSmrgbindir 74355acc8fcSmrgprogram_transform_name 74455acc8fcSmrgprefix 74555acc8fcSmrgexec_prefix 74655acc8fcSmrgPACKAGE_URL 74755acc8fcSmrgPACKAGE_BUGREPORT 74855acc8fcSmrgPACKAGE_STRING 74955acc8fcSmrgPACKAGE_VERSION 75055acc8fcSmrgPACKAGE_TARNAME 75155acc8fcSmrgPACKAGE_NAME 75255acc8fcSmrgPATH_SEPARATOR 75355acc8fcSmrgSHELL' 75455acc8fcSmrgac_subst_files='' 75555acc8fcSmrgac_user_opts=' 75655acc8fcSmrgenable_option_checking 75755acc8fcSmrgenable_maintainer_mode 75855acc8fcSmrgenable_dependency_tracking 75955acc8fcSmrgenable_strict_compilation 76055acc8fcSmrgenable_silent_rules 76155acc8fcSmrgenable_shared 76255acc8fcSmrgenable_static 76355acc8fcSmrgwith_pic 76455acc8fcSmrgenable_fast_install 76555acc8fcSmrgwith_gnu_ld 76655acc8fcSmrgenable_libtool_lock 76755acc8fcSmrgwith_fontrootdir 76855acc8fcSmrgwith_encodingsdir 76955acc8fcSmrgwith_lint 77055acc8fcSmrg' 77155acc8fcSmrg ac_precious_vars='build_alias 77255acc8fcSmrghost_alias 77355acc8fcSmrgtarget_alias 77455acc8fcSmrgCC 77555acc8fcSmrgCFLAGS 77655acc8fcSmrgLDFLAGS 77755acc8fcSmrgLIBS 77855acc8fcSmrgCPPFLAGS 77955acc8fcSmrgCPP 78055acc8fcSmrgPKG_CONFIG 78155acc8fcSmrgFONTENC_CFLAGS 78255acc8fcSmrgFONTENC_LIBS 78355acc8fcSmrgLINT 78455acc8fcSmrgLINT_FLAGS' 78555acc8fcSmrg 78655acc8fcSmrg 78755acc8fcSmrg# Initialize some variables set by options. 78855acc8fcSmrgac_init_help= 78955acc8fcSmrgac_init_version=false 79055acc8fcSmrgac_unrecognized_opts= 79155acc8fcSmrgac_unrecognized_sep= 79255acc8fcSmrg# The variables have the same names as the options, with 79355acc8fcSmrg# dashes changed to underlines. 79455acc8fcSmrgcache_file=/dev/null 79555acc8fcSmrgexec_prefix=NONE 79655acc8fcSmrgno_create= 79755acc8fcSmrgno_recursion= 79855acc8fcSmrgprefix=NONE 79955acc8fcSmrgprogram_prefix=NONE 80055acc8fcSmrgprogram_suffix=NONE 80155acc8fcSmrgprogram_transform_name=s,x,x, 80255acc8fcSmrgsilent= 80355acc8fcSmrgsite= 80455acc8fcSmrgsrcdir= 80555acc8fcSmrgverbose= 80655acc8fcSmrgx_includes=NONE 80755acc8fcSmrgx_libraries=NONE 80855acc8fcSmrg 80955acc8fcSmrg# Installation directory options. 81055acc8fcSmrg# These are left unexpanded so users can "make install exec_prefix=/foo" 81155acc8fcSmrg# and all the variables that are supposed to be based on exec_prefix 81255acc8fcSmrg# by default will actually change. 81355acc8fcSmrg# Use braces instead of parens because sh, perl, etc. also accept them. 81455acc8fcSmrg# (The list follows the same order as the GNU Coding Standards.) 81555acc8fcSmrgbindir='${exec_prefix}/bin' 81655acc8fcSmrgsbindir='${exec_prefix}/sbin' 81755acc8fcSmrglibexecdir='${exec_prefix}/libexec' 81855acc8fcSmrgdatarootdir='${prefix}/share' 81955acc8fcSmrgdatadir='${datarootdir}' 82055acc8fcSmrgsysconfdir='${prefix}/etc' 82155acc8fcSmrgsharedstatedir='${prefix}/com' 82255acc8fcSmrglocalstatedir='${prefix}/var' 82355acc8fcSmrgincludedir='${prefix}/include' 82455acc8fcSmrgoldincludedir='/usr/include' 82555acc8fcSmrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 82655acc8fcSmrginfodir='${datarootdir}/info' 82755acc8fcSmrghtmldir='${docdir}' 82855acc8fcSmrgdvidir='${docdir}' 82955acc8fcSmrgpdfdir='${docdir}' 83055acc8fcSmrgpsdir='${docdir}' 83155acc8fcSmrglibdir='${exec_prefix}/lib' 83255acc8fcSmrglocaledir='${datarootdir}/locale' 83355acc8fcSmrgmandir='${datarootdir}/man' 83455acc8fcSmrg 83555acc8fcSmrgac_prev= 83655acc8fcSmrgac_dashdash= 83755acc8fcSmrgfor ac_option 83855acc8fcSmrgdo 83955acc8fcSmrg # If the previous option needs an argument, assign it. 84055acc8fcSmrg if test -n "$ac_prev"; then 84155acc8fcSmrg eval $ac_prev=\$ac_option 84255acc8fcSmrg ac_prev= 84355acc8fcSmrg continue 84455acc8fcSmrg fi 84555acc8fcSmrg 84655acc8fcSmrg case $ac_option in 84755acc8fcSmrg *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 84855acc8fcSmrg *=) ac_optarg= ;; 84955acc8fcSmrg *) ac_optarg=yes ;; 85055acc8fcSmrg esac 85155acc8fcSmrg 85255acc8fcSmrg # Accept the important Cygnus configure options, so we can diagnose typos. 85355acc8fcSmrg 85455acc8fcSmrg case $ac_dashdash$ac_option in 85555acc8fcSmrg --) 85655acc8fcSmrg ac_dashdash=yes ;; 85755acc8fcSmrg 85855acc8fcSmrg -bindir | --bindir | --bindi | --bind | --bin | --bi) 85955acc8fcSmrg ac_prev=bindir ;; 86055acc8fcSmrg -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 86155acc8fcSmrg bindir=$ac_optarg ;; 86255acc8fcSmrg 86355acc8fcSmrg -build | --build | --buil | --bui | --bu) 86455acc8fcSmrg ac_prev=build_alias ;; 86555acc8fcSmrg -build=* | --build=* | --buil=* | --bui=* | --bu=*) 86655acc8fcSmrg build_alias=$ac_optarg ;; 86755acc8fcSmrg 86855acc8fcSmrg -cache-file | --cache-file | --cache-fil | --cache-fi \ 86955acc8fcSmrg | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 87055acc8fcSmrg ac_prev=cache_file ;; 87155acc8fcSmrg -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 87255acc8fcSmrg | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 87355acc8fcSmrg cache_file=$ac_optarg ;; 87455acc8fcSmrg 87555acc8fcSmrg --config-cache | -C) 87655acc8fcSmrg cache_file=config.cache ;; 87755acc8fcSmrg 87855acc8fcSmrg -datadir | --datadir | --datadi | --datad) 87955acc8fcSmrg ac_prev=datadir ;; 88055acc8fcSmrg -datadir=* | --datadir=* | --datadi=* | --datad=*) 88155acc8fcSmrg datadir=$ac_optarg ;; 88255acc8fcSmrg 88355acc8fcSmrg -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 88455acc8fcSmrg | --dataroo | --dataro | --datar) 88555acc8fcSmrg ac_prev=datarootdir ;; 88655acc8fcSmrg -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 88755acc8fcSmrg | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 88855acc8fcSmrg datarootdir=$ac_optarg ;; 88955acc8fcSmrg 89055acc8fcSmrg -disable-* | --disable-*) 89155acc8fcSmrg ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 89255acc8fcSmrg # Reject names that are not valid shell variable names. 89355acc8fcSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 89455acc8fcSmrg as_fn_error $? "invalid feature name: $ac_useropt" 89555acc8fcSmrg ac_useropt_orig=$ac_useropt 89655acc8fcSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 89755acc8fcSmrg case $ac_user_opts in 89855acc8fcSmrg *" 89955acc8fcSmrg"enable_$ac_useropt" 90055acc8fcSmrg"*) ;; 90155acc8fcSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 90255acc8fcSmrg ac_unrecognized_sep=', ';; 90355acc8fcSmrg esac 90455acc8fcSmrg eval enable_$ac_useropt=no ;; 90555acc8fcSmrg 90655acc8fcSmrg -docdir | --docdir | --docdi | --doc | --do) 90755acc8fcSmrg ac_prev=docdir ;; 90855acc8fcSmrg -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 90955acc8fcSmrg docdir=$ac_optarg ;; 91055acc8fcSmrg 91155acc8fcSmrg -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 91255acc8fcSmrg ac_prev=dvidir ;; 91355acc8fcSmrg -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 91455acc8fcSmrg dvidir=$ac_optarg ;; 91555acc8fcSmrg 91655acc8fcSmrg -enable-* | --enable-*) 91755acc8fcSmrg ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 91855acc8fcSmrg # Reject names that are not valid shell variable names. 91955acc8fcSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 92055acc8fcSmrg as_fn_error $? "invalid feature name: $ac_useropt" 92155acc8fcSmrg ac_useropt_orig=$ac_useropt 92255acc8fcSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 92355acc8fcSmrg case $ac_user_opts in 92455acc8fcSmrg *" 92555acc8fcSmrg"enable_$ac_useropt" 92655acc8fcSmrg"*) ;; 92755acc8fcSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 92855acc8fcSmrg ac_unrecognized_sep=', ';; 92955acc8fcSmrg esac 93055acc8fcSmrg eval enable_$ac_useropt=\$ac_optarg ;; 93155acc8fcSmrg 93255acc8fcSmrg -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 93355acc8fcSmrg | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 93455acc8fcSmrg | --exec | --exe | --ex) 93555acc8fcSmrg ac_prev=exec_prefix ;; 93655acc8fcSmrg -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 93755acc8fcSmrg | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 93855acc8fcSmrg | --exec=* | --exe=* | --ex=*) 93955acc8fcSmrg exec_prefix=$ac_optarg ;; 94055acc8fcSmrg 94155acc8fcSmrg -gas | --gas | --ga | --g) 94255acc8fcSmrg # Obsolete; use --with-gas. 94355acc8fcSmrg with_gas=yes ;; 94455acc8fcSmrg 94555acc8fcSmrg -help | --help | --hel | --he | -h) 94655acc8fcSmrg ac_init_help=long ;; 94755acc8fcSmrg -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 94855acc8fcSmrg ac_init_help=recursive ;; 94955acc8fcSmrg -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 95055acc8fcSmrg ac_init_help=short ;; 95155acc8fcSmrg 95255acc8fcSmrg -host | --host | --hos | --ho) 95355acc8fcSmrg ac_prev=host_alias ;; 95455acc8fcSmrg -host=* | --host=* | --hos=* | --ho=*) 95555acc8fcSmrg host_alias=$ac_optarg ;; 95655acc8fcSmrg 95755acc8fcSmrg -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 95855acc8fcSmrg ac_prev=htmldir ;; 95955acc8fcSmrg -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 96055acc8fcSmrg | --ht=*) 96155acc8fcSmrg htmldir=$ac_optarg ;; 96255acc8fcSmrg 96355acc8fcSmrg -includedir | --includedir | --includedi | --included | --include \ 96455acc8fcSmrg | --includ | --inclu | --incl | --inc) 96555acc8fcSmrg ac_prev=includedir ;; 96655acc8fcSmrg -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 96755acc8fcSmrg | --includ=* | --inclu=* | --incl=* | --inc=*) 96855acc8fcSmrg includedir=$ac_optarg ;; 96955acc8fcSmrg 97055acc8fcSmrg -infodir | --infodir | --infodi | --infod | --info | --inf) 97155acc8fcSmrg ac_prev=infodir ;; 97255acc8fcSmrg -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 97355acc8fcSmrg infodir=$ac_optarg ;; 97455acc8fcSmrg 97555acc8fcSmrg -libdir | --libdir | --libdi | --libd) 97655acc8fcSmrg ac_prev=libdir ;; 97755acc8fcSmrg -libdir=* | --libdir=* | --libdi=* | --libd=*) 97855acc8fcSmrg libdir=$ac_optarg ;; 97955acc8fcSmrg 98055acc8fcSmrg -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 98155acc8fcSmrg | --libexe | --libex | --libe) 98255acc8fcSmrg ac_prev=libexecdir ;; 98355acc8fcSmrg -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 98455acc8fcSmrg | --libexe=* | --libex=* | --libe=*) 98555acc8fcSmrg libexecdir=$ac_optarg ;; 98655acc8fcSmrg 98755acc8fcSmrg -localedir | --localedir | --localedi | --localed | --locale) 98855acc8fcSmrg ac_prev=localedir ;; 98955acc8fcSmrg -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 99055acc8fcSmrg localedir=$ac_optarg ;; 99155acc8fcSmrg 99255acc8fcSmrg -localstatedir | --localstatedir | --localstatedi | --localstated \ 99355acc8fcSmrg | --localstate | --localstat | --localsta | --localst | --locals) 99455acc8fcSmrg ac_prev=localstatedir ;; 99555acc8fcSmrg -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 99655acc8fcSmrg | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 99755acc8fcSmrg localstatedir=$ac_optarg ;; 99855acc8fcSmrg 99955acc8fcSmrg -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 100055acc8fcSmrg ac_prev=mandir ;; 100155acc8fcSmrg -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 100255acc8fcSmrg mandir=$ac_optarg ;; 100355acc8fcSmrg 100455acc8fcSmrg -nfp | --nfp | --nf) 100555acc8fcSmrg # Obsolete; use --without-fp. 100655acc8fcSmrg with_fp=no ;; 100755acc8fcSmrg 100855acc8fcSmrg -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 100955acc8fcSmrg | --no-cr | --no-c | -n) 101055acc8fcSmrg no_create=yes ;; 101155acc8fcSmrg 101255acc8fcSmrg -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 101355acc8fcSmrg | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 101455acc8fcSmrg no_recursion=yes ;; 101555acc8fcSmrg 101655acc8fcSmrg -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 101755acc8fcSmrg | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 101855acc8fcSmrg | --oldin | --oldi | --old | --ol | --o) 101955acc8fcSmrg ac_prev=oldincludedir ;; 102055acc8fcSmrg -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 102155acc8fcSmrg | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 102255acc8fcSmrg | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 102355acc8fcSmrg oldincludedir=$ac_optarg ;; 102455acc8fcSmrg 102555acc8fcSmrg -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 102655acc8fcSmrg ac_prev=prefix ;; 102755acc8fcSmrg -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 102855acc8fcSmrg prefix=$ac_optarg ;; 102955acc8fcSmrg 103055acc8fcSmrg -program-prefix | --program-prefix | --program-prefi | --program-pref \ 103155acc8fcSmrg | --program-pre | --program-pr | --program-p) 103255acc8fcSmrg ac_prev=program_prefix ;; 103355acc8fcSmrg -program-prefix=* | --program-prefix=* | --program-prefi=* \ 103455acc8fcSmrg | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 103555acc8fcSmrg program_prefix=$ac_optarg ;; 103655acc8fcSmrg 103755acc8fcSmrg -program-suffix | --program-suffix | --program-suffi | --program-suff \ 103855acc8fcSmrg | --program-suf | --program-su | --program-s) 103955acc8fcSmrg ac_prev=program_suffix ;; 104055acc8fcSmrg -program-suffix=* | --program-suffix=* | --program-suffi=* \ 104155acc8fcSmrg | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 104255acc8fcSmrg program_suffix=$ac_optarg ;; 104355acc8fcSmrg 104455acc8fcSmrg -program-transform-name | --program-transform-name \ 104555acc8fcSmrg | --program-transform-nam | --program-transform-na \ 104655acc8fcSmrg | --program-transform-n | --program-transform- \ 104755acc8fcSmrg | --program-transform | --program-transfor \ 104855acc8fcSmrg | --program-transfo | --program-transf \ 104955acc8fcSmrg | --program-trans | --program-tran \ 105055acc8fcSmrg | --progr-tra | --program-tr | --program-t) 105155acc8fcSmrg ac_prev=program_transform_name ;; 105255acc8fcSmrg -program-transform-name=* | --program-transform-name=* \ 105355acc8fcSmrg | --program-transform-nam=* | --program-transform-na=* \ 105455acc8fcSmrg | --program-transform-n=* | --program-transform-=* \ 105555acc8fcSmrg | --program-transform=* | --program-transfor=* \ 105655acc8fcSmrg | --program-transfo=* | --program-transf=* \ 105755acc8fcSmrg | --program-trans=* | --program-tran=* \ 105855acc8fcSmrg | --progr-tra=* | --program-tr=* | --program-t=*) 105955acc8fcSmrg program_transform_name=$ac_optarg ;; 106055acc8fcSmrg 106155acc8fcSmrg -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 106255acc8fcSmrg ac_prev=pdfdir ;; 106355acc8fcSmrg -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 106455acc8fcSmrg pdfdir=$ac_optarg ;; 106555acc8fcSmrg 106655acc8fcSmrg -psdir | --psdir | --psdi | --psd | --ps) 106755acc8fcSmrg ac_prev=psdir ;; 106855acc8fcSmrg -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 106955acc8fcSmrg psdir=$ac_optarg ;; 107055acc8fcSmrg 107155acc8fcSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 107255acc8fcSmrg | -silent | --silent | --silen | --sile | --sil) 107355acc8fcSmrg silent=yes ;; 107455acc8fcSmrg 107555acc8fcSmrg -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 107655acc8fcSmrg ac_prev=sbindir ;; 107755acc8fcSmrg -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 107855acc8fcSmrg | --sbi=* | --sb=*) 107955acc8fcSmrg sbindir=$ac_optarg ;; 108055acc8fcSmrg 108155acc8fcSmrg -sharedstatedir | --sharedstatedir | --sharedstatedi \ 108255acc8fcSmrg | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 108355acc8fcSmrg | --sharedst | --shareds | --shared | --share | --shar \ 108455acc8fcSmrg | --sha | --sh) 108555acc8fcSmrg ac_prev=sharedstatedir ;; 108655acc8fcSmrg -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 108755acc8fcSmrg | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 108855acc8fcSmrg | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 108955acc8fcSmrg | --sha=* | --sh=*) 109055acc8fcSmrg sharedstatedir=$ac_optarg ;; 109155acc8fcSmrg 109255acc8fcSmrg -site | --site | --sit) 109355acc8fcSmrg ac_prev=site ;; 109455acc8fcSmrg -site=* | --site=* | --sit=*) 109555acc8fcSmrg site=$ac_optarg ;; 109655acc8fcSmrg 109755acc8fcSmrg -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 109855acc8fcSmrg ac_prev=srcdir ;; 109955acc8fcSmrg -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 110055acc8fcSmrg srcdir=$ac_optarg ;; 110155acc8fcSmrg 110255acc8fcSmrg -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 110355acc8fcSmrg | --syscon | --sysco | --sysc | --sys | --sy) 110455acc8fcSmrg ac_prev=sysconfdir ;; 110555acc8fcSmrg -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 110655acc8fcSmrg | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 110755acc8fcSmrg sysconfdir=$ac_optarg ;; 110855acc8fcSmrg 110955acc8fcSmrg -target | --target | --targe | --targ | --tar | --ta | --t) 111055acc8fcSmrg ac_prev=target_alias ;; 111155acc8fcSmrg -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 111255acc8fcSmrg target_alias=$ac_optarg ;; 111355acc8fcSmrg 111455acc8fcSmrg -v | -verbose | --verbose | --verbos | --verbo | --verb) 111555acc8fcSmrg verbose=yes ;; 111655acc8fcSmrg 111755acc8fcSmrg -version | --version | --versio | --versi | --vers | -V) 111855acc8fcSmrg ac_init_version=: ;; 111955acc8fcSmrg 112055acc8fcSmrg -with-* | --with-*) 112155acc8fcSmrg ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 112255acc8fcSmrg # Reject names that are not valid shell variable names. 112355acc8fcSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 112455acc8fcSmrg as_fn_error $? "invalid package name: $ac_useropt" 112555acc8fcSmrg ac_useropt_orig=$ac_useropt 112655acc8fcSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 112755acc8fcSmrg case $ac_user_opts in 112855acc8fcSmrg *" 112955acc8fcSmrg"with_$ac_useropt" 113055acc8fcSmrg"*) ;; 113155acc8fcSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 113255acc8fcSmrg ac_unrecognized_sep=', ';; 113355acc8fcSmrg esac 113455acc8fcSmrg eval with_$ac_useropt=\$ac_optarg ;; 113555acc8fcSmrg 113655acc8fcSmrg -without-* | --without-*) 113755acc8fcSmrg ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 113855acc8fcSmrg # Reject names that are not valid shell variable names. 113955acc8fcSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 114055acc8fcSmrg as_fn_error $? "invalid package name: $ac_useropt" 114155acc8fcSmrg ac_useropt_orig=$ac_useropt 114255acc8fcSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 114355acc8fcSmrg case $ac_user_opts in 114455acc8fcSmrg *" 114555acc8fcSmrg"with_$ac_useropt" 114655acc8fcSmrg"*) ;; 114755acc8fcSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 114855acc8fcSmrg ac_unrecognized_sep=', ';; 114955acc8fcSmrg esac 115055acc8fcSmrg eval with_$ac_useropt=no ;; 115155acc8fcSmrg 115255acc8fcSmrg --x) 115355acc8fcSmrg # Obsolete; use --with-x. 115455acc8fcSmrg with_x=yes ;; 115555acc8fcSmrg 115655acc8fcSmrg -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 115755acc8fcSmrg | --x-incl | --x-inc | --x-in | --x-i) 115855acc8fcSmrg ac_prev=x_includes ;; 115955acc8fcSmrg -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 116055acc8fcSmrg | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 116155acc8fcSmrg x_includes=$ac_optarg ;; 116255acc8fcSmrg 116355acc8fcSmrg -x-libraries | --x-libraries | --x-librarie | --x-librari \ 116455acc8fcSmrg | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 116555acc8fcSmrg ac_prev=x_libraries ;; 116655acc8fcSmrg -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 116755acc8fcSmrg | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 116855acc8fcSmrg x_libraries=$ac_optarg ;; 116955acc8fcSmrg 117055acc8fcSmrg -*) as_fn_error $? "unrecognized option: \`$ac_option' 117155acc8fcSmrgTry \`$0 --help' for more information" 117255acc8fcSmrg ;; 117355acc8fcSmrg 117455acc8fcSmrg *=*) 117555acc8fcSmrg ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 117655acc8fcSmrg # Reject names that are not valid shell variable names. 117755acc8fcSmrg case $ac_envvar in #( 117855acc8fcSmrg '' | [0-9]* | *[!_$as_cr_alnum]* ) 117955acc8fcSmrg as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 118055acc8fcSmrg esac 118155acc8fcSmrg eval $ac_envvar=\$ac_optarg 118255acc8fcSmrg export $ac_envvar ;; 118355acc8fcSmrg 118455acc8fcSmrg *) 118555acc8fcSmrg # FIXME: should be removed in autoconf 3.0. 118655acc8fcSmrg $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 118755acc8fcSmrg expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 118855acc8fcSmrg $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 118955acc8fcSmrg : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 119055acc8fcSmrg ;; 119155acc8fcSmrg 119255acc8fcSmrg esac 119355acc8fcSmrgdone 119455acc8fcSmrg 119555acc8fcSmrgif test -n "$ac_prev"; then 119655acc8fcSmrg ac_option=--`echo $ac_prev | sed 's/_/-/g'` 119755acc8fcSmrg as_fn_error $? "missing argument to $ac_option" 119855acc8fcSmrgfi 119955acc8fcSmrg 120055acc8fcSmrgif test -n "$ac_unrecognized_opts"; then 120155acc8fcSmrg case $enable_option_checking in 120255acc8fcSmrg no) ;; 120355acc8fcSmrg fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 120455acc8fcSmrg *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 120555acc8fcSmrg esac 120655acc8fcSmrgfi 120755acc8fcSmrg 120855acc8fcSmrg# Check all directory arguments for consistency. 120955acc8fcSmrgfor ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 121055acc8fcSmrg datadir sysconfdir sharedstatedir localstatedir includedir \ 121155acc8fcSmrg oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 121255acc8fcSmrg libdir localedir mandir 121355acc8fcSmrgdo 121455acc8fcSmrg eval ac_val=\$$ac_var 121555acc8fcSmrg # Remove trailing slashes. 121655acc8fcSmrg case $ac_val in 121755acc8fcSmrg */ ) 121855acc8fcSmrg ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 121955acc8fcSmrg eval $ac_var=\$ac_val;; 122055acc8fcSmrg esac 122155acc8fcSmrg # Be sure to have absolute directory names. 122255acc8fcSmrg case $ac_val in 122355acc8fcSmrg [\\/$]* | ?:[\\/]* ) continue;; 122455acc8fcSmrg NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 122555acc8fcSmrg esac 122655acc8fcSmrg as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 122755acc8fcSmrgdone 122855acc8fcSmrg 122955acc8fcSmrg# There might be people who depend on the old broken behavior: `$host' 123055acc8fcSmrg# used to hold the argument of --host etc. 123155acc8fcSmrg# FIXME: To remove some day. 123255acc8fcSmrgbuild=$build_alias 123355acc8fcSmrghost=$host_alias 123455acc8fcSmrgtarget=$target_alias 123555acc8fcSmrg 123655acc8fcSmrg# FIXME: To remove some day. 123755acc8fcSmrgif test "x$host_alias" != x; then 123855acc8fcSmrg if test "x$build_alias" = x; then 123955acc8fcSmrg cross_compiling=maybe 124055acc8fcSmrg $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 124155acc8fcSmrg If a cross compiler is detected then cross compile mode will be used" >&2 124255acc8fcSmrg elif test "x$build_alias" != "x$host_alias"; then 124355acc8fcSmrg cross_compiling=yes 124455acc8fcSmrg fi 124555acc8fcSmrgfi 124655acc8fcSmrg 124755acc8fcSmrgac_tool_prefix= 124855acc8fcSmrgtest -n "$host_alias" && ac_tool_prefix=$host_alias- 124955acc8fcSmrg 125055acc8fcSmrgtest "$silent" = yes && exec 6>/dev/null 125155acc8fcSmrg 125255acc8fcSmrg 125355acc8fcSmrgac_pwd=`pwd` && test -n "$ac_pwd" && 125455acc8fcSmrgac_ls_di=`ls -di .` && 125555acc8fcSmrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 125655acc8fcSmrg as_fn_error $? "working directory cannot be determined" 125755acc8fcSmrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" || 125855acc8fcSmrg as_fn_error $? "pwd does not report name of working directory" 125955acc8fcSmrg 126055acc8fcSmrg 126155acc8fcSmrg# Find the source files, if location was not specified. 126255acc8fcSmrgif test -z "$srcdir"; then 126355acc8fcSmrg ac_srcdir_defaulted=yes 126455acc8fcSmrg # Try the directory containing this script, then the parent directory. 126555acc8fcSmrg ac_confdir=`$as_dirname -- "$as_myself" || 126655acc8fcSmrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 126755acc8fcSmrg X"$as_myself" : 'X\(//\)[^/]' \| \ 126855acc8fcSmrg X"$as_myself" : 'X\(//\)$' \| \ 126955acc8fcSmrg X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 127055acc8fcSmrg$as_echo X"$as_myself" | 127155acc8fcSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 127255acc8fcSmrg s//\1/ 127355acc8fcSmrg q 127455acc8fcSmrg } 127555acc8fcSmrg /^X\(\/\/\)[^/].*/{ 127655acc8fcSmrg s//\1/ 127755acc8fcSmrg q 127855acc8fcSmrg } 127955acc8fcSmrg /^X\(\/\/\)$/{ 128055acc8fcSmrg s//\1/ 128155acc8fcSmrg q 128255acc8fcSmrg } 128355acc8fcSmrg /^X\(\/\).*/{ 128455acc8fcSmrg s//\1/ 128555acc8fcSmrg q 128655acc8fcSmrg } 128755acc8fcSmrg s/.*/./; q'` 128855acc8fcSmrg srcdir=$ac_confdir 128955acc8fcSmrg if test ! -r "$srcdir/$ac_unique_file"; then 129055acc8fcSmrg srcdir=.. 129155acc8fcSmrg fi 129255acc8fcSmrgelse 129355acc8fcSmrg ac_srcdir_defaulted=no 129455acc8fcSmrgfi 129555acc8fcSmrgif test ! -r "$srcdir/$ac_unique_file"; then 129655acc8fcSmrg test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 129755acc8fcSmrg as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 129855acc8fcSmrgfi 129955acc8fcSmrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 130055acc8fcSmrgac_abs_confdir=`( 130155acc8fcSmrg cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 130255acc8fcSmrg pwd)` 130355acc8fcSmrg# When building in place, set srcdir=. 130455acc8fcSmrgif test "$ac_abs_confdir" = "$ac_pwd"; then 130555acc8fcSmrg srcdir=. 130655acc8fcSmrgfi 130755acc8fcSmrg# Remove unnecessary trailing slashes from srcdir. 130855acc8fcSmrg# Double slashes in file names in object file debugging info 130955acc8fcSmrg# mess up M-x gdb in Emacs. 131055acc8fcSmrgcase $srcdir in 131155acc8fcSmrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 131255acc8fcSmrgesac 131355acc8fcSmrgfor ac_var in $ac_precious_vars; do 131455acc8fcSmrg eval ac_env_${ac_var}_set=\${${ac_var}+set} 131555acc8fcSmrg eval ac_env_${ac_var}_value=\$${ac_var} 131655acc8fcSmrg eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 131755acc8fcSmrg eval ac_cv_env_${ac_var}_value=\$${ac_var} 131855acc8fcSmrgdone 131955acc8fcSmrg 132055acc8fcSmrg# 132155acc8fcSmrg# Report the --help message. 132255acc8fcSmrg# 132355acc8fcSmrgif test "$ac_init_help" = "long"; then 132455acc8fcSmrg # Omit some internal or obsolete options to make the list less imposing. 132555acc8fcSmrg # This message is too long to be a string in the A/UX 3.1 sh. 132655acc8fcSmrg cat <<_ACEOF 132755acc8fcSmrg\`configure' configures libfontenc 1.1.0 to adapt to many kinds of systems. 132855acc8fcSmrg 132955acc8fcSmrgUsage: $0 [OPTION]... [VAR=VALUE]... 133055acc8fcSmrg 133155acc8fcSmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as 133255acc8fcSmrgVAR=VALUE. See below for descriptions of some of the useful variables. 133355acc8fcSmrg 133455acc8fcSmrgDefaults for the options are specified in brackets. 133555acc8fcSmrg 133655acc8fcSmrgConfiguration: 133755acc8fcSmrg -h, --help display this help and exit 133855acc8fcSmrg --help=short display options specific to this package 133955acc8fcSmrg --help=recursive display the short help of all the included packages 134055acc8fcSmrg -V, --version display version information and exit 134155acc8fcSmrg -q, --quiet, --silent do not print \`checking ...' messages 134255acc8fcSmrg --cache-file=FILE cache test results in FILE [disabled] 134355acc8fcSmrg -C, --config-cache alias for \`--cache-file=config.cache' 134455acc8fcSmrg -n, --no-create do not create output files 134555acc8fcSmrg --srcdir=DIR find the sources in DIR [configure dir or \`..'] 134655acc8fcSmrg 134755acc8fcSmrgInstallation directories: 134855acc8fcSmrg --prefix=PREFIX install architecture-independent files in PREFIX 134955acc8fcSmrg [$ac_default_prefix] 135055acc8fcSmrg --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 135155acc8fcSmrg [PREFIX] 135255acc8fcSmrg 135355acc8fcSmrgBy default, \`make install' will install all the files in 135455acc8fcSmrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 135555acc8fcSmrgan installation prefix other than \`$ac_default_prefix' using \`--prefix', 135655acc8fcSmrgfor instance \`--prefix=\$HOME'. 135755acc8fcSmrg 135855acc8fcSmrgFor better control, use the options below. 135955acc8fcSmrg 136055acc8fcSmrgFine tuning of the installation directories: 136155acc8fcSmrg --bindir=DIR user executables [EPREFIX/bin] 136255acc8fcSmrg --sbindir=DIR system admin executables [EPREFIX/sbin] 136355acc8fcSmrg --libexecdir=DIR program executables [EPREFIX/libexec] 136455acc8fcSmrg --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 136555acc8fcSmrg --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 136655acc8fcSmrg --localstatedir=DIR modifiable single-machine data [PREFIX/var] 136755acc8fcSmrg --libdir=DIR object code libraries [EPREFIX/lib] 136855acc8fcSmrg --includedir=DIR C header files [PREFIX/include] 136955acc8fcSmrg --oldincludedir=DIR C header files for non-gcc [/usr/include] 137055acc8fcSmrg --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 137155acc8fcSmrg --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 137255acc8fcSmrg --infodir=DIR info documentation [DATAROOTDIR/info] 137355acc8fcSmrg --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 137455acc8fcSmrg --mandir=DIR man documentation [DATAROOTDIR/man] 137555acc8fcSmrg --docdir=DIR documentation root [DATAROOTDIR/doc/libfontenc] 137655acc8fcSmrg --htmldir=DIR html documentation [DOCDIR] 137755acc8fcSmrg --dvidir=DIR dvi documentation [DOCDIR] 137855acc8fcSmrg --pdfdir=DIR pdf documentation [DOCDIR] 137955acc8fcSmrg --psdir=DIR ps documentation [DOCDIR] 138055acc8fcSmrg_ACEOF 138155acc8fcSmrg 138255acc8fcSmrg cat <<\_ACEOF 138355acc8fcSmrg 138455acc8fcSmrgProgram names: 138555acc8fcSmrg --program-prefix=PREFIX prepend PREFIX to installed program names 138655acc8fcSmrg --program-suffix=SUFFIX append SUFFIX to installed program names 138755acc8fcSmrg --program-transform-name=PROGRAM run sed PROGRAM on installed program names 138855acc8fcSmrg 138955acc8fcSmrgSystem types: 139055acc8fcSmrg --build=BUILD configure for building on BUILD [guessed] 139155acc8fcSmrg --host=HOST cross-compile to build programs to run on HOST [BUILD] 139255acc8fcSmrg_ACEOF 139355acc8fcSmrgfi 139455acc8fcSmrg 139555acc8fcSmrgif test -n "$ac_init_help"; then 139655acc8fcSmrg case $ac_init_help in 139755acc8fcSmrg short | recursive ) echo "Configuration of libfontenc 1.1.0:";; 139855acc8fcSmrg esac 139955acc8fcSmrg cat <<\_ACEOF 140055acc8fcSmrg 140155acc8fcSmrgOptional Features: 140255acc8fcSmrg --disable-option-checking ignore unrecognized --enable/--with options 140355acc8fcSmrg --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 140455acc8fcSmrg --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 140555acc8fcSmrg --enable-maintainer-mode enable make rules and dependencies not useful 140655acc8fcSmrg (and sometimes confusing) to the casual installer 140755acc8fcSmrg --disable-dependency-tracking speeds up one-time build 140855acc8fcSmrg --enable-dependency-tracking do not reject slow dependency extractors 140955acc8fcSmrg --enable-strict-compilation 141055acc8fcSmrg Enable all warnings from compiler and make them 141155acc8fcSmrg errors (default: disabled) 141255acc8fcSmrg --enable-silent-rules less verbose build output (undo: `make V=1') 141355acc8fcSmrg --disable-silent-rules verbose build output (undo: `make V=0') 141455acc8fcSmrg --enable-shared[=PKGS] build shared libraries [default=yes] 141555acc8fcSmrg --enable-static[=PKGS] build static libraries [default=yes] 141655acc8fcSmrg --enable-fast-install[=PKGS] 141755acc8fcSmrg optimize for fast installation [default=yes] 141855acc8fcSmrg --disable-libtool-lock avoid locking (might break parallel builds) 141955acc8fcSmrg 142055acc8fcSmrgOptional Packages: 142155acc8fcSmrg --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 142255acc8fcSmrg --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 142355acc8fcSmrg --with-pic try to use only PIC/non-PIC objects [default=use 142455acc8fcSmrg both] 142555acc8fcSmrg --with-gnu-ld assume the C compiler uses GNU ld [default=no] 142655acc8fcSmrg --with-fontrootdir=DIR Path to root directory for font files 142755acc8fcSmrg --with-encodingsdir=DIR Path to encodings files [FONTROOTDIR/encodings] 142855acc8fcSmrg --with-lint Use a lint-style source code checker (default: 142955acc8fcSmrg disabled) 143055acc8fcSmrg 143155acc8fcSmrgSome influential environment variables: 143255acc8fcSmrg CC C compiler command 143355acc8fcSmrg CFLAGS C compiler flags 143455acc8fcSmrg LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 143555acc8fcSmrg nonstandard directory <lib dir> 143655acc8fcSmrg LIBS libraries to pass to the linker, e.g. -l<library> 143755acc8fcSmrg CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 143855acc8fcSmrg you have headers in a nonstandard directory <include dir> 143955acc8fcSmrg CPP C preprocessor 144055acc8fcSmrg PKG_CONFIG path to pkg-config utility 144155acc8fcSmrg FONTENC_CFLAGS 144255acc8fcSmrg C compiler flags for FONTENC, overriding pkg-config 144355acc8fcSmrg FONTENC_LIBS 144455acc8fcSmrg linker flags for FONTENC, overriding pkg-config 144555acc8fcSmrg LINT Path to a lint-style command 144655acc8fcSmrg LINT_FLAGS Flags for the lint-style command 144755acc8fcSmrg 144855acc8fcSmrgUse these variables to override the choices made by `configure' or to help 144955acc8fcSmrgit to find libraries and programs with nonstandard names/locations. 145055acc8fcSmrg 145155acc8fcSmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 145255acc8fcSmrg_ACEOF 145355acc8fcSmrgac_status=$? 145455acc8fcSmrgfi 145555acc8fcSmrg 145655acc8fcSmrgif test "$ac_init_help" = "recursive"; then 145755acc8fcSmrg # If there are subdirs, report their specific --help. 145855acc8fcSmrg for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 145955acc8fcSmrg test -d "$ac_dir" || 146055acc8fcSmrg { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 146155acc8fcSmrg continue 146255acc8fcSmrg ac_builddir=. 146355acc8fcSmrg 146455acc8fcSmrgcase "$ac_dir" in 146555acc8fcSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 146655acc8fcSmrg*) 146755acc8fcSmrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 146855acc8fcSmrg # A ".." for each directory in $ac_dir_suffix. 146955acc8fcSmrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 147055acc8fcSmrg case $ac_top_builddir_sub in 147155acc8fcSmrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 147255acc8fcSmrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 147355acc8fcSmrg esac ;; 147455acc8fcSmrgesac 147555acc8fcSmrgac_abs_top_builddir=$ac_pwd 147655acc8fcSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix 147755acc8fcSmrg# for backward compatibility: 147855acc8fcSmrgac_top_builddir=$ac_top_build_prefix 147955acc8fcSmrg 148055acc8fcSmrgcase $srcdir in 148155acc8fcSmrg .) # We are building in place. 148255acc8fcSmrg ac_srcdir=. 148355acc8fcSmrg ac_top_srcdir=$ac_top_builddir_sub 148455acc8fcSmrg ac_abs_top_srcdir=$ac_pwd ;; 148555acc8fcSmrg [\\/]* | ?:[\\/]* ) # Absolute name. 148655acc8fcSmrg ac_srcdir=$srcdir$ac_dir_suffix; 148755acc8fcSmrg ac_top_srcdir=$srcdir 148855acc8fcSmrg ac_abs_top_srcdir=$srcdir ;; 148955acc8fcSmrg *) # Relative name. 149055acc8fcSmrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 149155acc8fcSmrg ac_top_srcdir=$ac_top_build_prefix$srcdir 149255acc8fcSmrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 149355acc8fcSmrgesac 149455acc8fcSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 149555acc8fcSmrg 149655acc8fcSmrg cd "$ac_dir" || { ac_status=$?; continue; } 149755acc8fcSmrg # Check for guested configure. 149855acc8fcSmrg if test -f "$ac_srcdir/configure.gnu"; then 149955acc8fcSmrg echo && 150055acc8fcSmrg $SHELL "$ac_srcdir/configure.gnu" --help=recursive 150155acc8fcSmrg elif test -f "$ac_srcdir/configure"; then 150255acc8fcSmrg echo && 150355acc8fcSmrg $SHELL "$ac_srcdir/configure" --help=recursive 150455acc8fcSmrg else 150555acc8fcSmrg $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 150655acc8fcSmrg fi || ac_status=$? 150755acc8fcSmrg cd "$ac_pwd" || { ac_status=$?; break; } 150855acc8fcSmrg done 150955acc8fcSmrgfi 151055acc8fcSmrg 151155acc8fcSmrgtest -n "$ac_init_help" && exit $ac_status 151255acc8fcSmrgif $ac_init_version; then 151355acc8fcSmrg cat <<\_ACEOF 151455acc8fcSmrglibfontenc configure 1.1.0 151555acc8fcSmrggenerated by GNU Autoconf 2.68 151655acc8fcSmrg 151755acc8fcSmrgCopyright (C) 2010 Free Software Foundation, Inc. 151855acc8fcSmrgThis configure script is free software; the Free Software Foundation 151955acc8fcSmrggives unlimited permission to copy, distribute and modify it. 152055acc8fcSmrg_ACEOF 152155acc8fcSmrg exit 152255acc8fcSmrgfi 152355acc8fcSmrg 152455acc8fcSmrg## ------------------------ ## 152555acc8fcSmrg## Autoconf initialization. ## 152655acc8fcSmrg## ------------------------ ## 152755acc8fcSmrg 152855acc8fcSmrg# ac_fn_c_try_compile LINENO 152955acc8fcSmrg# -------------------------- 153055acc8fcSmrg# Try to compile conftest.$ac_ext, and return whether this succeeded. 153155acc8fcSmrgac_fn_c_try_compile () 153255acc8fcSmrg{ 153355acc8fcSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 153455acc8fcSmrg rm -f conftest.$ac_objext 153555acc8fcSmrg if { { ac_try="$ac_compile" 153655acc8fcSmrgcase "(($ac_try" in 153755acc8fcSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 153855acc8fcSmrg *) ac_try_echo=$ac_try;; 153955acc8fcSmrgesac 154055acc8fcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 154155acc8fcSmrg$as_echo "$ac_try_echo"; } >&5 154255acc8fcSmrg (eval "$ac_compile") 2>conftest.err 154355acc8fcSmrg ac_status=$? 154455acc8fcSmrg if test -s conftest.err; then 154555acc8fcSmrg grep -v '^ *+' conftest.err >conftest.er1 154655acc8fcSmrg cat conftest.er1 >&5 154755acc8fcSmrg mv -f conftest.er1 conftest.err 154855acc8fcSmrg fi 154955acc8fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 155055acc8fcSmrg test $ac_status = 0; } && { 155155acc8fcSmrg test -z "$ac_c_werror_flag" || 155255acc8fcSmrg test ! -s conftest.err 155355acc8fcSmrg } && test -s conftest.$ac_objext; then : 155455acc8fcSmrg ac_retval=0 155555acc8fcSmrgelse 155655acc8fcSmrg $as_echo "$as_me: failed program was:" >&5 155755acc8fcSmrgsed 's/^/| /' conftest.$ac_ext >&5 155855acc8fcSmrg 155955acc8fcSmrg ac_retval=1 156055acc8fcSmrgfi 156155acc8fcSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 156255acc8fcSmrg as_fn_set_status $ac_retval 156355acc8fcSmrg 156455acc8fcSmrg} # ac_fn_c_try_compile 156555acc8fcSmrg 156655acc8fcSmrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 156755acc8fcSmrg# --------------------------------------------- 156855acc8fcSmrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 156955acc8fcSmrg# accordingly. 157055acc8fcSmrgac_fn_c_check_decl () 157155acc8fcSmrg{ 157255acc8fcSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 157355acc8fcSmrg as_decl_name=`echo $2|sed 's/ *(.*//'` 157455acc8fcSmrg as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 157555acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 157655acc8fcSmrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 157755acc8fcSmrgif eval \${$3+:} false; then : 157855acc8fcSmrg $as_echo_n "(cached) " >&6 157955acc8fcSmrgelse 158055acc8fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 158155acc8fcSmrg/* end confdefs.h. */ 158255acc8fcSmrg$4 158355acc8fcSmrgint 158455acc8fcSmrgmain () 158555acc8fcSmrg{ 158655acc8fcSmrg#ifndef $as_decl_name 158755acc8fcSmrg#ifdef __cplusplus 158855acc8fcSmrg (void) $as_decl_use; 158955acc8fcSmrg#else 159055acc8fcSmrg (void) $as_decl_name; 159155acc8fcSmrg#endif 159255acc8fcSmrg#endif 159355acc8fcSmrg 159455acc8fcSmrg ; 159555acc8fcSmrg return 0; 159655acc8fcSmrg} 159755acc8fcSmrg_ACEOF 159855acc8fcSmrgif ac_fn_c_try_compile "$LINENO"; then : 159955acc8fcSmrg eval "$3=yes" 160055acc8fcSmrgelse 160155acc8fcSmrg eval "$3=no" 160255acc8fcSmrgfi 160355acc8fcSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 160455acc8fcSmrgfi 160555acc8fcSmrgeval ac_res=\$$3 160655acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 160755acc8fcSmrg$as_echo "$ac_res" >&6; } 160855acc8fcSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 160955acc8fcSmrg 161055acc8fcSmrg} # ac_fn_c_check_decl 161155acc8fcSmrg 161255acc8fcSmrg# ac_fn_c_try_cpp LINENO 161355acc8fcSmrg# ---------------------- 161455acc8fcSmrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 161555acc8fcSmrgac_fn_c_try_cpp () 161655acc8fcSmrg{ 161755acc8fcSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 161855acc8fcSmrg if { { ac_try="$ac_cpp conftest.$ac_ext" 161955acc8fcSmrgcase "(($ac_try" in 162055acc8fcSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 162155acc8fcSmrg *) ac_try_echo=$ac_try;; 162255acc8fcSmrgesac 162355acc8fcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 162455acc8fcSmrg$as_echo "$ac_try_echo"; } >&5 162555acc8fcSmrg (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 162655acc8fcSmrg ac_status=$? 162755acc8fcSmrg if test -s conftest.err; then 162855acc8fcSmrg grep -v '^ *+' conftest.err >conftest.er1 162955acc8fcSmrg cat conftest.er1 >&5 163055acc8fcSmrg mv -f conftest.er1 conftest.err 163155acc8fcSmrg fi 163255acc8fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 163355acc8fcSmrg test $ac_status = 0; } > conftest.i && { 163455acc8fcSmrg test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 163555acc8fcSmrg test ! -s conftest.err 163655acc8fcSmrg }; then : 163755acc8fcSmrg ac_retval=0 163855acc8fcSmrgelse 163955acc8fcSmrg $as_echo "$as_me: failed program was:" >&5 164055acc8fcSmrgsed 's/^/| /' conftest.$ac_ext >&5 164155acc8fcSmrg 164255acc8fcSmrg ac_retval=1 164355acc8fcSmrgfi 164455acc8fcSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 164555acc8fcSmrg as_fn_set_status $ac_retval 164655acc8fcSmrg 164755acc8fcSmrg} # ac_fn_c_try_cpp 164855acc8fcSmrg 164955acc8fcSmrg# ac_fn_c_try_run LINENO 165055acc8fcSmrg# ---------------------- 165155acc8fcSmrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 165255acc8fcSmrg# that executables *can* be run. 165355acc8fcSmrgac_fn_c_try_run () 165455acc8fcSmrg{ 165555acc8fcSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 165655acc8fcSmrg if { { ac_try="$ac_link" 165755acc8fcSmrgcase "(($ac_try" in 165855acc8fcSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 165955acc8fcSmrg *) ac_try_echo=$ac_try;; 166055acc8fcSmrgesac 166155acc8fcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 166255acc8fcSmrg$as_echo "$ac_try_echo"; } >&5 166355acc8fcSmrg (eval "$ac_link") 2>&5 166455acc8fcSmrg ac_status=$? 166555acc8fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 166655acc8fcSmrg test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 166755acc8fcSmrg { { case "(($ac_try" in 166855acc8fcSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 166955acc8fcSmrg *) ac_try_echo=$ac_try;; 1670d63fdb69Smrgesac 167155acc8fcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 167255acc8fcSmrg$as_echo "$ac_try_echo"; } >&5 167355acc8fcSmrg (eval "$ac_try") 2>&5 167455acc8fcSmrg ac_status=$? 167555acc8fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 167655acc8fcSmrg test $ac_status = 0; }; }; then : 167755acc8fcSmrg ac_retval=0 167855acc8fcSmrgelse 167955acc8fcSmrg $as_echo "$as_me: program exited with status $ac_status" >&5 168055acc8fcSmrg $as_echo "$as_me: failed program was:" >&5 168155acc8fcSmrgsed 's/^/| /' conftest.$ac_ext >&5 1682d63fdb69Smrg 168355acc8fcSmrg ac_retval=$ac_status 16843da084b3Smrgfi 168555acc8fcSmrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 168655acc8fcSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 168755acc8fcSmrg as_fn_set_status $ac_retval 1688d63fdb69Smrg 168955acc8fcSmrg} # ac_fn_c_try_run 16903da084b3Smrg 169155acc8fcSmrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 169255acc8fcSmrg# ------------------------------------------------------- 169355acc8fcSmrg# Tests whether HEADER exists and can be compiled using the include files in 169455acc8fcSmrg# INCLUDES, setting the cache variable VAR accordingly. 169555acc8fcSmrgac_fn_c_check_header_compile () 169655acc8fcSmrg{ 169755acc8fcSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 169855acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 169955acc8fcSmrg$as_echo_n "checking for $2... " >&6; } 170055acc8fcSmrgif eval \${$3+:} false; then : 170155acc8fcSmrg $as_echo_n "(cached) " >&6 17023da084b3Smrgelse 170355acc8fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 170455acc8fcSmrg/* end confdefs.h. */ 170555acc8fcSmrg$4 170655acc8fcSmrg#include <$2> 170755acc8fcSmrg_ACEOF 170855acc8fcSmrgif ac_fn_c_try_compile "$LINENO"; then : 170955acc8fcSmrg eval "$3=yes" 171055acc8fcSmrgelse 171155acc8fcSmrg eval "$3=no" 17123da084b3Smrgfi 171355acc8fcSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 171455acc8fcSmrgfi 171555acc8fcSmrgeval ac_res=\$$3 171655acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 171755acc8fcSmrg$as_echo "$ac_res" >&6; } 171855acc8fcSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1719d63fdb69Smrg 172055acc8fcSmrg} # ac_fn_c_check_header_compile 17213da084b3Smrg 172255acc8fcSmrg# ac_fn_c_try_link LINENO 172355acc8fcSmrg# ----------------------- 172455acc8fcSmrg# Try to link conftest.$ac_ext, and return whether this succeeded. 172555acc8fcSmrgac_fn_c_try_link () 172655acc8fcSmrg{ 172755acc8fcSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 172855acc8fcSmrg rm -f conftest.$ac_objext conftest$ac_exeext 172955acc8fcSmrg if { { ac_try="$ac_link" 173055acc8fcSmrgcase "(($ac_try" in 173155acc8fcSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 173255acc8fcSmrg *) ac_try_echo=$ac_try;; 173355acc8fcSmrgesac 173455acc8fcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 173555acc8fcSmrg$as_echo "$ac_try_echo"; } >&5 173655acc8fcSmrg (eval "$ac_link") 2>conftest.err 173755acc8fcSmrg ac_status=$? 173855acc8fcSmrg if test -s conftest.err; then 173955acc8fcSmrg grep -v '^ *+' conftest.err >conftest.er1 174055acc8fcSmrg cat conftest.er1 >&5 174155acc8fcSmrg mv -f conftest.er1 conftest.err 174255acc8fcSmrg fi 174355acc8fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 174455acc8fcSmrg test $ac_status = 0; } && { 174555acc8fcSmrg test -z "$ac_c_werror_flag" || 174655acc8fcSmrg test ! -s conftest.err 174755acc8fcSmrg } && test -s conftest$ac_exeext && { 174855acc8fcSmrg test "$cross_compiling" = yes || 174955acc8fcSmrg $as_test_x conftest$ac_exeext 175055acc8fcSmrg }; then : 175155acc8fcSmrg ac_retval=0 17523da084b3Smrgelse 175355acc8fcSmrg $as_echo "$as_me: failed program was:" >&5 175455acc8fcSmrgsed 's/^/| /' conftest.$ac_ext >&5 17553da084b3Smrg 175655acc8fcSmrg ac_retval=1 17573da084b3Smrgfi 175855acc8fcSmrg # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 175955acc8fcSmrg # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 176055acc8fcSmrg # interfere with the next link command; also delete a directory that is 176155acc8fcSmrg # left behind by Apple's compiler. We do this before executing the actions. 176255acc8fcSmrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 176355acc8fcSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 176455acc8fcSmrg as_fn_set_status $ac_retval 17653da084b3Smrg 176655acc8fcSmrg} # ac_fn_c_try_link 176755acc8fcSmrg 176855acc8fcSmrg# ac_fn_c_check_func LINENO FUNC VAR 176955acc8fcSmrg# ---------------------------------- 177055acc8fcSmrg# Tests whether FUNC exists, setting the cache variable VAR accordingly 177155acc8fcSmrgac_fn_c_check_func () 177255acc8fcSmrg{ 177355acc8fcSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 177455acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 177555acc8fcSmrg$as_echo_n "checking for $2... " >&6; } 177655acc8fcSmrgif eval \${$3+:} false; then : 177755acc8fcSmrg $as_echo_n "(cached) " >&6 17783da084b3Smrgelse 177955acc8fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 178055acc8fcSmrg/* end confdefs.h. */ 178155acc8fcSmrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 178255acc8fcSmrg For example, HP-UX 11i <limits.h> declares gettimeofday. */ 178355acc8fcSmrg#define $2 innocuous_$2 17843da084b3Smrg 178555acc8fcSmrg/* System header to define __stub macros and hopefully few prototypes, 178655acc8fcSmrg which can conflict with char $2 (); below. 178755acc8fcSmrg Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 178855acc8fcSmrg <limits.h> exists even on freestanding compilers. */ 17893da084b3Smrg 179055acc8fcSmrg#ifdef __STDC__ 179155acc8fcSmrg# include <limits.h> 179255acc8fcSmrg#else 179355acc8fcSmrg# include <assert.h> 179455acc8fcSmrg#endif 179555acc8fcSmrg 179655acc8fcSmrg#undef $2 179755acc8fcSmrg 179855acc8fcSmrg/* Override any GCC internal prototype to avoid an error. 179955acc8fcSmrg Use char because int might match the return type of a GCC 180055acc8fcSmrg builtin and then its argument prototype would still apply. */ 180155acc8fcSmrg#ifdef __cplusplus 180255acc8fcSmrgextern "C" 180355acc8fcSmrg#endif 180455acc8fcSmrgchar $2 (); 180555acc8fcSmrg/* The GNU C library defines this for functions which it implements 180655acc8fcSmrg to always fail with ENOSYS. Some functions are actually named 180755acc8fcSmrg something starting with __ and the normal name is an alias. */ 180855acc8fcSmrg#if defined __stub_$2 || defined __stub___$2 180955acc8fcSmrgchoke me 181055acc8fcSmrg#endif 181155acc8fcSmrg 181255acc8fcSmrgint 181355acc8fcSmrgmain () 181455acc8fcSmrg{ 181555acc8fcSmrgreturn $2 (); 181655acc8fcSmrg ; 181755acc8fcSmrg return 0; 181855acc8fcSmrg} 181955acc8fcSmrg_ACEOF 182055acc8fcSmrgif ac_fn_c_try_link "$LINENO"; then : 182155acc8fcSmrg eval "$3=yes" 18223da084b3Smrgelse 182355acc8fcSmrg eval "$3=no" 182455acc8fcSmrgfi 182555acc8fcSmrgrm -f core conftest.err conftest.$ac_objext \ 182655acc8fcSmrg conftest$ac_exeext conftest.$ac_ext 18273da084b3Smrgfi 182855acc8fcSmrgeval ac_res=\$$3 182955acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 183055acc8fcSmrg$as_echo "$ac_res" >&6; } 183155acc8fcSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 183255acc8fcSmrg 183355acc8fcSmrg} # ac_fn_c_check_func 183455acc8fcSmrgcat >config.log <<_ACEOF 183555acc8fcSmrgThis file contains any messages produced by compilers while 183655acc8fcSmrgrunning configure, to aid debugging if configure makes a mistake. 183755acc8fcSmrg 183855acc8fcSmrgIt was created by libfontenc $as_me 1.1.0, which was 183955acc8fcSmrggenerated by GNU Autoconf 2.68. Invocation command line was 184055acc8fcSmrg 184155acc8fcSmrg $ $0 $@ 184255acc8fcSmrg 184355acc8fcSmrg_ACEOF 184455acc8fcSmrgexec 5>>config.log 184555acc8fcSmrg{ 184655acc8fcSmrgcat <<_ASUNAME 184755acc8fcSmrg## --------- ## 184855acc8fcSmrg## Platform. ## 184955acc8fcSmrg## --------- ## 185055acc8fcSmrg 185155acc8fcSmrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 185255acc8fcSmrguname -m = `(uname -m) 2>/dev/null || echo unknown` 185355acc8fcSmrguname -r = `(uname -r) 2>/dev/null || echo unknown` 185455acc8fcSmrguname -s = `(uname -s) 2>/dev/null || echo unknown` 185555acc8fcSmrguname -v = `(uname -v) 2>/dev/null || echo unknown` 185655acc8fcSmrg 185755acc8fcSmrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 185855acc8fcSmrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 185955acc8fcSmrg 186055acc8fcSmrg/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 186155acc8fcSmrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 186255acc8fcSmrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 186355acc8fcSmrg/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 186455acc8fcSmrg/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 186555acc8fcSmrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 186655acc8fcSmrg/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 186755acc8fcSmrg 186855acc8fcSmrg_ASUNAME 186955acc8fcSmrg 187055acc8fcSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 187155acc8fcSmrgfor as_dir in $PATH 187255acc8fcSmrgdo 187355acc8fcSmrg IFS=$as_save_IFS 187455acc8fcSmrg test -z "$as_dir" && as_dir=. 187555acc8fcSmrg $as_echo "PATH: $as_dir" 187655acc8fcSmrg done 187755acc8fcSmrgIFS=$as_save_IFS 187855acc8fcSmrg 187955acc8fcSmrg} >&5 188055acc8fcSmrg 188155acc8fcSmrgcat >&5 <<_ACEOF 188255acc8fcSmrg 188355acc8fcSmrg 188455acc8fcSmrg## ----------- ## 188555acc8fcSmrg## Core tests. ## 188655acc8fcSmrg## ----------- ## 188755acc8fcSmrg 188855acc8fcSmrg_ACEOF 188955acc8fcSmrg 189055acc8fcSmrg 189155acc8fcSmrg# Keep a trace of the command line. 189255acc8fcSmrg# Strip out --no-create and --no-recursion so they do not pile up. 189355acc8fcSmrg# Strip out --silent because we don't want to record it for future runs. 189455acc8fcSmrg# Also quote any args containing shell meta-characters. 189555acc8fcSmrg# Make two passes to allow for proper duplicate-argument suppression. 189655acc8fcSmrgac_configure_args= 189755acc8fcSmrgac_configure_args0= 189855acc8fcSmrgac_configure_args1= 189955acc8fcSmrgac_must_keep_next=false 190055acc8fcSmrgfor ac_pass in 1 2 190155acc8fcSmrgdo 190255acc8fcSmrg for ac_arg 190355acc8fcSmrg do 190455acc8fcSmrg case $ac_arg in 190555acc8fcSmrg -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 190655acc8fcSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 190755acc8fcSmrg | -silent | --silent | --silen | --sile | --sil) 190855acc8fcSmrg continue ;; 190955acc8fcSmrg *\'*) 191055acc8fcSmrg ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 191155acc8fcSmrg esac 191255acc8fcSmrg case $ac_pass in 191355acc8fcSmrg 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 191455acc8fcSmrg 2) 191555acc8fcSmrg as_fn_append ac_configure_args1 " '$ac_arg'" 191655acc8fcSmrg if test $ac_must_keep_next = true; then 191755acc8fcSmrg ac_must_keep_next=false # Got value, back to normal. 191855acc8fcSmrg else 191955acc8fcSmrg case $ac_arg in 192055acc8fcSmrg *=* | --config-cache | -C | -disable-* | --disable-* \ 192155acc8fcSmrg | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 192255acc8fcSmrg | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 192355acc8fcSmrg | -with-* | --with-* | -without-* | --without-* | --x) 192455acc8fcSmrg case "$ac_configure_args0 " in 192555acc8fcSmrg "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 192655acc8fcSmrg esac 192755acc8fcSmrg ;; 192855acc8fcSmrg -* ) ac_must_keep_next=true ;; 192955acc8fcSmrg esac 193055acc8fcSmrg fi 193155acc8fcSmrg as_fn_append ac_configure_args " '$ac_arg'" 193255acc8fcSmrg ;; 193355acc8fcSmrg esac 193455acc8fcSmrg done 193555acc8fcSmrgdone 193655acc8fcSmrg{ ac_configure_args0=; unset ac_configure_args0;} 193755acc8fcSmrg{ ac_configure_args1=; unset ac_configure_args1;} 19383da084b3Smrg 193955acc8fcSmrg# When interrupted or exit'd, cleanup temporary files, and complete 194055acc8fcSmrg# config.log. We remove comments because anyway the quotes in there 194155acc8fcSmrg# would cause problems or look ugly. 194255acc8fcSmrg# WARNING: Use '\'' to represent an apostrophe within the trap. 194355acc8fcSmrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 194455acc8fcSmrgtrap 'exit_status=$? 194555acc8fcSmrg # Save into config.log some information that might help in debugging. 194655acc8fcSmrg { 194755acc8fcSmrg echo 19483da084b3Smrg 194955acc8fcSmrg $as_echo "## ---------------- ## 195055acc8fcSmrg## Cache variables. ## 195155acc8fcSmrg## ---------------- ##" 195255acc8fcSmrg echo 195355acc8fcSmrg # The following way of writing the cache mishandles newlines in values, 19543da084b3Smrg( 195555acc8fcSmrg for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 195655acc8fcSmrg eval ac_val=\$$ac_var 195755acc8fcSmrg case $ac_val in #( 195855acc8fcSmrg *${as_nl}*) 195955acc8fcSmrg case $ac_var in #( 196055acc8fcSmrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 196155acc8fcSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 196255acc8fcSmrg esac 196355acc8fcSmrg case $ac_var in #( 196455acc8fcSmrg _ | IFS | as_nl) ;; #( 196555acc8fcSmrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 196655acc8fcSmrg *) { eval $ac_var=; unset $ac_var;} ;; 196755acc8fcSmrg esac ;; 196855acc8fcSmrg esac 196955acc8fcSmrg done 197055acc8fcSmrg (set) 2>&1 | 197155acc8fcSmrg case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 197255acc8fcSmrg *${as_nl}ac_space=\ *) 197355acc8fcSmrg sed -n \ 197455acc8fcSmrg "s/'\''/'\''\\\\'\'''\''/g; 197555acc8fcSmrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 197655acc8fcSmrg ;; #( 197755acc8fcSmrg *) 197855acc8fcSmrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 197955acc8fcSmrg ;; 198055acc8fcSmrg esac | 198155acc8fcSmrg sort 198255acc8fcSmrg) 198355acc8fcSmrg echo 19843da084b3Smrg 198555acc8fcSmrg $as_echo "## ----------------- ## 198655acc8fcSmrg## Output variables. ## 198755acc8fcSmrg## ----------------- ##" 198855acc8fcSmrg echo 198955acc8fcSmrg for ac_var in $ac_subst_vars 199055acc8fcSmrg do 199155acc8fcSmrg eval ac_val=\$$ac_var 199255acc8fcSmrg case $ac_val in 199355acc8fcSmrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 199455acc8fcSmrg esac 199555acc8fcSmrg $as_echo "$ac_var='\''$ac_val'\''" 199655acc8fcSmrg done | sort 199755acc8fcSmrg echo 199855acc8fcSmrg 199955acc8fcSmrg if test -n "$ac_subst_files"; then 200055acc8fcSmrg $as_echo "## ------------------- ## 200155acc8fcSmrg## File substitutions. ## 200255acc8fcSmrg## ------------------- ##" 200355acc8fcSmrg echo 200455acc8fcSmrg for ac_var in $ac_subst_files 200555acc8fcSmrg do 200655acc8fcSmrg eval ac_val=\$$ac_var 200755acc8fcSmrg case $ac_val in 200855acc8fcSmrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 200955acc8fcSmrg esac 201055acc8fcSmrg $as_echo "$ac_var='\''$ac_val'\''" 201155acc8fcSmrg done | sort 201255acc8fcSmrg echo 201355acc8fcSmrg fi 20143da084b3Smrg 201555acc8fcSmrg if test -s confdefs.h; then 201655acc8fcSmrg $as_echo "## ----------- ## 201755acc8fcSmrg## confdefs.h. ## 201855acc8fcSmrg## ----------- ##" 201955acc8fcSmrg echo 202055acc8fcSmrg cat confdefs.h 202155acc8fcSmrg echo 202255acc8fcSmrg fi 202355acc8fcSmrg test "$ac_signal" != 0 && 202455acc8fcSmrg $as_echo "$as_me: caught signal $ac_signal" 202555acc8fcSmrg $as_echo "$as_me: exit $exit_status" 202655acc8fcSmrg } >&5 202755acc8fcSmrg rm -f core *.core core.conftest.* && 202855acc8fcSmrg rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 202955acc8fcSmrg exit $exit_status 203055acc8fcSmrg' 0 203155acc8fcSmrgfor ac_signal in 1 2 13 15; do 203255acc8fcSmrg trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 203355acc8fcSmrgdone 203455acc8fcSmrgac_signal=0 20353da084b3Smrg 203655acc8fcSmrg# confdefs.h avoids OS command line length limits that DEFS can exceed. 203755acc8fcSmrgrm -f -r conftest* confdefs.h 20383da084b3Smrg 203955acc8fcSmrg$as_echo "/* confdefs.h */" > confdefs.h 20403da084b3Smrg 204155acc8fcSmrg# Predefined preprocessor variables. 20423da084b3Smrg 204355acc8fcSmrgcat >>confdefs.h <<_ACEOF 204455acc8fcSmrg#define PACKAGE_NAME "$PACKAGE_NAME" 204555acc8fcSmrg_ACEOF 20463da084b3Smrg 204755acc8fcSmrgcat >>confdefs.h <<_ACEOF 204855acc8fcSmrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 204955acc8fcSmrg_ACEOF 20503da084b3Smrg 205155acc8fcSmrgcat >>confdefs.h <<_ACEOF 205255acc8fcSmrg#define PACKAGE_VERSION "$PACKAGE_VERSION" 205355acc8fcSmrg_ACEOF 20543da084b3Smrg 205555acc8fcSmrgcat >>confdefs.h <<_ACEOF 205655acc8fcSmrg#define PACKAGE_STRING "$PACKAGE_STRING" 205755acc8fcSmrg_ACEOF 20583da084b3Smrg 205955acc8fcSmrgcat >>confdefs.h <<_ACEOF 206055acc8fcSmrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 206155acc8fcSmrg_ACEOF 20623da084b3Smrg 206355acc8fcSmrgcat >>confdefs.h <<_ACEOF 206455acc8fcSmrg#define PACKAGE_URL "$PACKAGE_URL" 206555acc8fcSmrg_ACEOF 20663da084b3Smrg 20673da084b3Smrg 206855acc8fcSmrg# Let the site file select an alternate cache file if it wants to. 206955acc8fcSmrg# Prefer an explicitly selected file to automatically selected ones. 207055acc8fcSmrgac_site_file1=NONE 207155acc8fcSmrgac_site_file2=NONE 207255acc8fcSmrgif test -n "$CONFIG_SITE"; then 207355acc8fcSmrg # We do not want a PATH search for config.site. 207455acc8fcSmrg case $CONFIG_SITE in #(( 207555acc8fcSmrg -*) ac_site_file1=./$CONFIG_SITE;; 207655acc8fcSmrg */*) ac_site_file1=$CONFIG_SITE;; 207755acc8fcSmrg *) ac_site_file1=./$CONFIG_SITE;; 207855acc8fcSmrg esac 207955acc8fcSmrgelif test "x$prefix" != xNONE; then 208055acc8fcSmrg ac_site_file1=$prefix/share/config.site 208155acc8fcSmrg ac_site_file2=$prefix/etc/config.site 20823da084b3Smrgelse 208355acc8fcSmrg ac_site_file1=$ac_default_prefix/share/config.site 208455acc8fcSmrg ac_site_file2=$ac_default_prefix/etc/config.site 20853da084b3Smrgfi 208655acc8fcSmrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2" 208755acc8fcSmrgdo 208855acc8fcSmrg test "x$ac_site_file" = xNONE && continue 208955acc8fcSmrg if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 209055acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 209155acc8fcSmrg$as_echo "$as_me: loading site script $ac_site_file" >&6;} 209255acc8fcSmrg sed 's/^/| /' "$ac_site_file" >&5 209355acc8fcSmrg . "$ac_site_file" \ 209455acc8fcSmrg || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 209555acc8fcSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 209655acc8fcSmrgas_fn_error $? "failed to load site script $ac_site_file 209755acc8fcSmrgSee \`config.log' for more details" "$LINENO" 5; } 209855acc8fcSmrg fi 209955acc8fcSmrgdone 21003da084b3Smrg 210155acc8fcSmrgif test -r "$cache_file"; then 210255acc8fcSmrg # Some versions of bash will fail to source /dev/null (special files 210355acc8fcSmrg # actually), so we avoid doing that. DJGPP emulates it as a regular file. 210455acc8fcSmrg if test /dev/null != "$cache_file" && test -f "$cache_file"; then 210555acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 210655acc8fcSmrg$as_echo "$as_me: loading cache $cache_file" >&6;} 210755acc8fcSmrg case $cache_file in 210855acc8fcSmrg [\\/]* | ?:[\\/]* ) . "$cache_file";; 210955acc8fcSmrg *) . "./$cache_file";; 211055acc8fcSmrg esac 211155acc8fcSmrg fi 21123da084b3Smrgelse 211355acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 211455acc8fcSmrg$as_echo "$as_me: creating cache $cache_file" >&6;} 211555acc8fcSmrg >$cache_file 21163da084b3Smrgfi 21173da084b3Smrg 211855acc8fcSmrg# Check that the precious variables saved in the cache have kept the same 211955acc8fcSmrg# value. 212055acc8fcSmrgac_cache_corrupted=false 212155acc8fcSmrgfor ac_var in $ac_precious_vars; do 212255acc8fcSmrg eval ac_old_set=\$ac_cv_env_${ac_var}_set 212355acc8fcSmrg eval ac_new_set=\$ac_env_${ac_var}_set 212455acc8fcSmrg eval ac_old_val=\$ac_cv_env_${ac_var}_value 212555acc8fcSmrg eval ac_new_val=\$ac_env_${ac_var}_value 212655acc8fcSmrg case $ac_old_set,$ac_new_set in 212755acc8fcSmrg set,) 212855acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 212955acc8fcSmrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 213055acc8fcSmrg ac_cache_corrupted=: ;; 213155acc8fcSmrg ,set) 213255acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 213355acc8fcSmrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 213455acc8fcSmrg ac_cache_corrupted=: ;; 213555acc8fcSmrg ,);; 213655acc8fcSmrg *) 213755acc8fcSmrg if test "x$ac_old_val" != "x$ac_new_val"; then 213855acc8fcSmrg # differences in whitespace do not lead to failure. 213955acc8fcSmrg ac_old_val_w=`echo x $ac_old_val` 214055acc8fcSmrg ac_new_val_w=`echo x $ac_new_val` 214155acc8fcSmrg if test "$ac_old_val_w" != "$ac_new_val_w"; then 214255acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 214355acc8fcSmrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 214455acc8fcSmrg ac_cache_corrupted=: 214555acc8fcSmrg else 214655acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 214755acc8fcSmrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 214855acc8fcSmrg eval $ac_var=\$ac_old_val 214955acc8fcSmrg fi 215055acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 215155acc8fcSmrg$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 215255acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 215355acc8fcSmrg$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 215455acc8fcSmrg fi;; 215555acc8fcSmrg esac 215655acc8fcSmrg # Pass precious variables to config.status. 215755acc8fcSmrg if test "$ac_new_set" = set; then 215855acc8fcSmrg case $ac_new_val in 215955acc8fcSmrg *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 216055acc8fcSmrg *) ac_arg=$ac_var=$ac_new_val ;; 216155acc8fcSmrg esac 216255acc8fcSmrg case " $ac_configure_args " in 216355acc8fcSmrg *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 216455acc8fcSmrg *) as_fn_append ac_configure_args " '$ac_arg'" ;; 216555acc8fcSmrg esac 216655acc8fcSmrg fi 216755acc8fcSmrgdone 216855acc8fcSmrgif $ac_cache_corrupted; then 216955acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 217055acc8fcSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 217155acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 217255acc8fcSmrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 217355acc8fcSmrg as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 21743da084b3Smrgfi 217555acc8fcSmrg## -------------------- ## 217655acc8fcSmrg## Main body of script. ## 217755acc8fcSmrg## -------------------- ## 21783da084b3Smrg 217955acc8fcSmrgac_ext=c 218055acc8fcSmrgac_cpp='$CPP $CPPFLAGS' 218155acc8fcSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 218255acc8fcSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 218355acc8fcSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 21843da084b3Smrg 21853da084b3Smrg 218655acc8fcSmrgam__api_version='1.11' 21873da084b3Smrg 218855acc8fcSmrgac_aux_dir= 218955acc8fcSmrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 219055acc8fcSmrg if test -f "$ac_dir/install-sh"; then 219155acc8fcSmrg ac_aux_dir=$ac_dir 219255acc8fcSmrg ac_install_sh="$ac_aux_dir/install-sh -c" 219355acc8fcSmrg break 219455acc8fcSmrg elif test -f "$ac_dir/install.sh"; then 219555acc8fcSmrg ac_aux_dir=$ac_dir 219655acc8fcSmrg ac_install_sh="$ac_aux_dir/install.sh -c" 219755acc8fcSmrg break 219855acc8fcSmrg elif test -f "$ac_dir/shtool"; then 219955acc8fcSmrg ac_aux_dir=$ac_dir 220055acc8fcSmrg ac_install_sh="$ac_aux_dir/shtool install -c" 220155acc8fcSmrg break 220255acc8fcSmrg fi 220355acc8fcSmrgdone 220455acc8fcSmrgif test -z "$ac_aux_dir"; then 220555acc8fcSmrg as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 220655acc8fcSmrgfi 22073da084b3Smrg 220855acc8fcSmrg# These three variables are undocumented and unsupported, 220955acc8fcSmrg# and are intended to be withdrawn in a future Autoconf release. 221055acc8fcSmrg# They can cause serious problems if a builder's source tree is in a directory 221155acc8fcSmrg# whose full name contains unusual characters. 221255acc8fcSmrgac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 221355acc8fcSmrgac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 221455acc8fcSmrgac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 22153da084b3Smrg 22163da084b3Smrg 221755acc8fcSmrg# Find a good install program. We prefer a C program (faster), 221855acc8fcSmrg# so one script is as good as another. But avoid the broken or 221955acc8fcSmrg# incompatible versions: 222055acc8fcSmrg# SysV /etc/install, /usr/sbin/install 222155acc8fcSmrg# SunOS /usr/etc/install 222255acc8fcSmrg# IRIX /sbin/install 222355acc8fcSmrg# AIX /bin/install 222455acc8fcSmrg# AmigaOS /C/install, which installs bootblocks on floppy discs 222555acc8fcSmrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 222655acc8fcSmrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args 222755acc8fcSmrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 222855acc8fcSmrg# OS/2's system install, which has a completely different semantic 222955acc8fcSmrg# ./install, which can be erroneously created by make from ./install.sh. 223055acc8fcSmrg# Reject install programs that cannot install multiple files. 223155acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 223255acc8fcSmrg$as_echo_n "checking for a BSD-compatible install... " >&6; } 223355acc8fcSmrgif test -z "$INSTALL"; then 223455acc8fcSmrgif ${ac_cv_path_install+:} false; then : 223555acc8fcSmrg $as_echo_n "(cached) " >&6 22363da084b3Smrgelse 223755acc8fcSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 223855acc8fcSmrgfor as_dir in $PATH 223955acc8fcSmrgdo 224055acc8fcSmrg IFS=$as_save_IFS 224155acc8fcSmrg test -z "$as_dir" && as_dir=. 224255acc8fcSmrg # Account for people who put trailing slashes in PATH elements. 224355acc8fcSmrgcase $as_dir/ in #(( 224455acc8fcSmrg ./ | .// | /[cC]/* | \ 224555acc8fcSmrg /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 224655acc8fcSmrg ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 224755acc8fcSmrg /usr/ucb/* ) ;; 224855acc8fcSmrg *) 224955acc8fcSmrg # OSF1 and SCO ODT 3.0 have their own names for install. 225055acc8fcSmrg # Don't use installbsd from OSF since it installs stuff as root 225155acc8fcSmrg # by default. 225255acc8fcSmrg for ac_prog in ginstall scoinst install; do 225355acc8fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 225455acc8fcSmrg if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 225555acc8fcSmrg if test $ac_prog = install && 225655acc8fcSmrg grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 225755acc8fcSmrg # AIX install. It has an incompatible calling convention. 225855acc8fcSmrg : 225955acc8fcSmrg elif test $ac_prog = install && 226055acc8fcSmrg grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 226155acc8fcSmrg # program-specific install script used by HP pwplus--don't use. 226255acc8fcSmrg : 226355acc8fcSmrg else 226455acc8fcSmrg rm -rf conftest.one conftest.two conftest.dir 226555acc8fcSmrg echo one > conftest.one 226655acc8fcSmrg echo two > conftest.two 226755acc8fcSmrg mkdir conftest.dir 226855acc8fcSmrg if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 226955acc8fcSmrg test -s conftest.one && test -s conftest.two && 227055acc8fcSmrg test -s conftest.dir/conftest.one && 227155acc8fcSmrg test -s conftest.dir/conftest.two 227255acc8fcSmrg then 227355acc8fcSmrg ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 227455acc8fcSmrg break 3 227555acc8fcSmrg fi 227655acc8fcSmrg fi 227755acc8fcSmrg fi 227855acc8fcSmrg done 227955acc8fcSmrg done 228055acc8fcSmrg ;; 22813da084b3Smrgesac 22823da084b3Smrg 228355acc8fcSmrg done 228455acc8fcSmrgIFS=$as_save_IFS 22853da084b3Smrg 228655acc8fcSmrgrm -rf conftest.one conftest.two conftest.dir 22873da084b3Smrg 228855acc8fcSmrgfi 228955acc8fcSmrg if test "${ac_cv_path_install+set}" = set; then 229055acc8fcSmrg INSTALL=$ac_cv_path_install 2291d63fdb69Smrg else 229255acc8fcSmrg # As a last resort, use the slow shell script. Don't cache a 229355acc8fcSmrg # value for INSTALL within a source directory, because that will 229455acc8fcSmrg # break other packages using the cache if that directory is 229555acc8fcSmrg # removed, or if the value is a relative name. 229655acc8fcSmrg INSTALL=$ac_install_sh 2297d63fdb69Smrg fi 22983da084b3Smrgfi 229955acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 230055acc8fcSmrg$as_echo "$INSTALL" >&6; } 23013da084b3Smrg 230255acc8fcSmrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 230355acc8fcSmrg# It thinks the first close brace ends the variable substitution. 230455acc8fcSmrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 23053da084b3Smrg 230655acc8fcSmrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 23073da084b3Smrg 230855acc8fcSmrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 23093da084b3Smrg 231055acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 231155acc8fcSmrg$as_echo_n "checking whether build environment is sane... " >&6; } 231255acc8fcSmrg# Just in case 231355acc8fcSmrgsleep 1 231455acc8fcSmrgecho timestamp > conftest.file 231555acc8fcSmrg# Reject unsafe characters in $srcdir or the absolute working directory 231655acc8fcSmrg# name. Accept space and tab only in the latter. 231755acc8fcSmrgam_lf=' 231855acc8fcSmrg' 231955acc8fcSmrgcase `pwd` in 232055acc8fcSmrg *[\\\"\#\$\&\'\`$am_lf]*) 232155acc8fcSmrg as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 232255acc8fcSmrgesac 232355acc8fcSmrgcase $srcdir in 232455acc8fcSmrg *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 232555acc8fcSmrg as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 232655acc8fcSmrgesac 23273da084b3Smrg 232855acc8fcSmrg# Do `set' in a subshell so we don't clobber the current shell's 232955acc8fcSmrg# arguments. Must try -L first in case configure is actually a 233055acc8fcSmrg# symlink; some systems play weird games with the mod time of symlinks 233155acc8fcSmrg# (eg FreeBSD returns the mod time of the symlink's containing 233255acc8fcSmrg# directory). 233355acc8fcSmrgif ( 233455acc8fcSmrg set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 233555acc8fcSmrg if test "$*" = "X"; then 233655acc8fcSmrg # -L didn't work. 233755acc8fcSmrg set X `ls -t "$srcdir/configure" conftest.file` 233855acc8fcSmrg fi 233955acc8fcSmrg rm -f conftest.file 234055acc8fcSmrg if test "$*" != "X $srcdir/configure conftest.file" \ 234155acc8fcSmrg && test "$*" != "X conftest.file $srcdir/configure"; then 23423da084b3Smrg 234355acc8fcSmrg # If neither matched, then we have a broken ls. This can happen 234455acc8fcSmrg # if, for instance, CONFIG_SHELL is bash and it inherits a 234555acc8fcSmrg # broken ls alias from the environment. This has actually 234655acc8fcSmrg # happened. Such a system could not be considered "sane". 234755acc8fcSmrg as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 234855acc8fcSmrgalias in your environment" "$LINENO" 5 234955acc8fcSmrg fi 23503da084b3Smrg 235155acc8fcSmrg test "$2" = conftest.file 235255acc8fcSmrg ) 235355acc8fcSmrgthen 235455acc8fcSmrg # Ok. 235555acc8fcSmrg : 23563da084b3Smrgelse 235755acc8fcSmrg as_fn_error $? "newly created file is older than distributed files! 235855acc8fcSmrgCheck your system clock" "$LINENO" 5 23593da084b3Smrgfi 236055acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 236155acc8fcSmrg$as_echo "yes" >&6; } 236255acc8fcSmrgtest "$program_prefix" != NONE && 236355acc8fcSmrg program_transform_name="s&^&$program_prefix&;$program_transform_name" 236455acc8fcSmrg# Use a double $ so make ignores it. 236555acc8fcSmrgtest "$program_suffix" != NONE && 236655acc8fcSmrg program_transform_name="s&\$&$program_suffix&;$program_transform_name" 236755acc8fcSmrg# Double any \ or $. 236855acc8fcSmrg# By default was `s,x,x', remove it if useless. 236955acc8fcSmrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 237055acc8fcSmrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 23713da084b3Smrg 237255acc8fcSmrg# expand $ac_aux_dir to an absolute path 237355acc8fcSmrgam_aux_dir=`cd $ac_aux_dir && pwd` 237455acc8fcSmrg 237555acc8fcSmrgif test x"${MISSING+set}" != xset; then 237655acc8fcSmrg case $am_aux_dir in 237755acc8fcSmrg *\ * | *\ *) 237855acc8fcSmrg MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 237955acc8fcSmrg *) 238055acc8fcSmrg MISSING="\${SHELL} $am_aux_dir/missing" ;; 238155acc8fcSmrg esac 238255acc8fcSmrgfi 238355acc8fcSmrg# Use eval to expand $SHELL 238455acc8fcSmrgif eval "$MISSING --run true"; then 238555acc8fcSmrg am_missing_run="$MISSING --run " 238655acc8fcSmrgelse 238755acc8fcSmrg am_missing_run= 238855acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 238955acc8fcSmrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 23903da084b3Smrgfi 23913da084b3Smrg 239255acc8fcSmrgif test x"${install_sh}" != xset; then 239355acc8fcSmrg case $am_aux_dir in 239455acc8fcSmrg *\ * | *\ *) 239555acc8fcSmrg install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 239655acc8fcSmrg *) 239755acc8fcSmrg install_sh="\${SHELL} $am_aux_dir/install-sh" 239855acc8fcSmrg esac 239955acc8fcSmrgfi 24003da084b3Smrg 240155acc8fcSmrg# Installed binaries are usually stripped using `strip' when the user 240255acc8fcSmrg# run `make install-strip'. However `strip' might not be the right 240355acc8fcSmrg# tool to use in cross-compilation environments, therefore Automake 240455acc8fcSmrg# will honor the `STRIP' environment variable to overrule this program. 240555acc8fcSmrgif test "$cross_compiling" != no; then 240655acc8fcSmrg if test -n "$ac_tool_prefix"; then 240755acc8fcSmrg # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 240855acc8fcSmrgset dummy ${ac_tool_prefix}strip; ac_word=$2 240955acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 241055acc8fcSmrg$as_echo_n "checking for $ac_word... " >&6; } 241155acc8fcSmrgif ${ac_cv_prog_STRIP+:} false; then : 241255acc8fcSmrg $as_echo_n "(cached) " >&6 241355acc8fcSmrgelse 241455acc8fcSmrg if test -n "$STRIP"; then 241555acc8fcSmrg ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 241655acc8fcSmrgelse 241755acc8fcSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 241855acc8fcSmrgfor as_dir in $PATH 241955acc8fcSmrgdo 242055acc8fcSmrg IFS=$as_save_IFS 242155acc8fcSmrg test -z "$as_dir" && as_dir=. 242255acc8fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 242355acc8fcSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 242455acc8fcSmrg ac_cv_prog_STRIP="${ac_tool_prefix}strip" 242555acc8fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 242655acc8fcSmrg break 2 2427d63fdb69Smrg fi 242855acc8fcSmrgdone 242955acc8fcSmrg done 243055acc8fcSmrgIFS=$as_save_IFS 24313da084b3Smrg 243255acc8fcSmrgfi 243355acc8fcSmrgfi 243455acc8fcSmrgSTRIP=$ac_cv_prog_STRIP 243555acc8fcSmrgif test -n "$STRIP"; then 243655acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 243755acc8fcSmrg$as_echo "$STRIP" >&6; } 243855acc8fcSmrgelse 243955acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 244055acc8fcSmrg$as_echo "no" >&6; } 244155acc8fcSmrgfi 24423da084b3Smrg 24433da084b3Smrg 244455acc8fcSmrgfi 244555acc8fcSmrgif test -z "$ac_cv_prog_STRIP"; then 244655acc8fcSmrg ac_ct_STRIP=$STRIP 244755acc8fcSmrg # Extract the first word of "strip", so it can be a program name with args. 244855acc8fcSmrgset dummy strip; ac_word=$2 244955acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 245055acc8fcSmrg$as_echo_n "checking for $ac_word... " >&6; } 245155acc8fcSmrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then : 245255acc8fcSmrg $as_echo_n "(cached) " >&6 245355acc8fcSmrgelse 245455acc8fcSmrg if test -n "$ac_ct_STRIP"; then 245555acc8fcSmrg ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 245655acc8fcSmrgelse 245755acc8fcSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 245855acc8fcSmrgfor as_dir in $PATH 245955acc8fcSmrgdo 246055acc8fcSmrg IFS=$as_save_IFS 246155acc8fcSmrg test -z "$as_dir" && as_dir=. 246255acc8fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 246355acc8fcSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 246455acc8fcSmrg ac_cv_prog_ac_ct_STRIP="strip" 246555acc8fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 246655acc8fcSmrg break 2 246755acc8fcSmrg fi 246855acc8fcSmrgdone 246955acc8fcSmrg done 247055acc8fcSmrgIFS=$as_save_IFS 24713da084b3Smrg 247255acc8fcSmrgfi 247355acc8fcSmrgfi 247455acc8fcSmrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 247555acc8fcSmrgif test -n "$ac_ct_STRIP"; then 247655acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 247755acc8fcSmrg$as_echo "$ac_ct_STRIP" >&6; } 247855acc8fcSmrgelse 247955acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 248055acc8fcSmrg$as_echo "no" >&6; } 248155acc8fcSmrgfi 24823da084b3Smrg 248355acc8fcSmrg if test "x$ac_ct_STRIP" = x; then 248455acc8fcSmrg STRIP=":" 248555acc8fcSmrg else 248655acc8fcSmrg case $cross_compiling:$ac_tool_warned in 248755acc8fcSmrgyes:) 248855acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 248955acc8fcSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 249055acc8fcSmrgac_tool_warned=yes ;; 249155acc8fcSmrgesac 249255acc8fcSmrg STRIP=$ac_ct_STRIP 24933da084b3Smrg fi 249455acc8fcSmrgelse 249555acc8fcSmrg STRIP="$ac_cv_prog_STRIP" 24963da084b3Smrgfi 24973da084b3Smrg 24983da084b3Smrgfi 249955acc8fcSmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 25003da084b3Smrg 250155acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 250255acc8fcSmrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 250355acc8fcSmrgif test -z "$MKDIR_P"; then 250455acc8fcSmrg if ${ac_cv_path_mkdir+:} false; then : 250555acc8fcSmrg $as_echo_n "(cached) " >&6 250655acc8fcSmrgelse 250755acc8fcSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 250855acc8fcSmrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 250955acc8fcSmrgdo 251055acc8fcSmrg IFS=$as_save_IFS 251155acc8fcSmrg test -z "$as_dir" && as_dir=. 251255acc8fcSmrg for ac_prog in mkdir gmkdir; do 251355acc8fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 251455acc8fcSmrg { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 251555acc8fcSmrg case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 251655acc8fcSmrg 'mkdir (GNU coreutils) '* | \ 251755acc8fcSmrg 'mkdir (coreutils) '* | \ 251855acc8fcSmrg 'mkdir (fileutils) '4.1*) 251955acc8fcSmrg ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 252055acc8fcSmrg break 3;; 252155acc8fcSmrg esac 252255acc8fcSmrg done 252355acc8fcSmrg done 252455acc8fcSmrg done 252555acc8fcSmrgIFS=$as_save_IFS 25263da084b3Smrg 252755acc8fcSmrgfi 25283da084b3Smrg 252955acc8fcSmrg test -d ./--version && rmdir ./--version 253055acc8fcSmrg if test "${ac_cv_path_mkdir+set}" = set; then 253155acc8fcSmrg MKDIR_P="$ac_cv_path_mkdir -p" 253255acc8fcSmrg else 253355acc8fcSmrg # As a last resort, use the slow shell script. Don't cache a 253455acc8fcSmrg # value for MKDIR_P within a source directory, because that will 253555acc8fcSmrg # break other packages using the cache if that directory is 253655acc8fcSmrg # removed, or if the value is a relative name. 253755acc8fcSmrg MKDIR_P="$ac_install_sh -d" 253855acc8fcSmrg fi 253955acc8fcSmrgfi 254055acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 254155acc8fcSmrg$as_echo "$MKDIR_P" >&6; } 25423da084b3Smrg 254355acc8fcSmrgmkdir_p="$MKDIR_P" 254455acc8fcSmrgcase $mkdir_p in 254555acc8fcSmrg [\\/$]* | ?:[\\/]*) ;; 254655acc8fcSmrg */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 254755acc8fcSmrgesac 25483da084b3Smrg 254955acc8fcSmrgfor ac_prog in gawk mawk nawk awk 255055acc8fcSmrgdo 255155acc8fcSmrg # Extract the first word of "$ac_prog", so it can be a program name with args. 255255acc8fcSmrgset dummy $ac_prog; ac_word=$2 255355acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 255455acc8fcSmrg$as_echo_n "checking for $ac_word... " >&6; } 255555acc8fcSmrgif ${ac_cv_prog_AWK+:} false; then : 255655acc8fcSmrg $as_echo_n "(cached) " >&6 255755acc8fcSmrgelse 255855acc8fcSmrg if test -n "$AWK"; then 255955acc8fcSmrg ac_cv_prog_AWK="$AWK" # Let the user override the test. 256055acc8fcSmrgelse 256155acc8fcSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 256255acc8fcSmrgfor as_dir in $PATH 256355acc8fcSmrgdo 256455acc8fcSmrg IFS=$as_save_IFS 256555acc8fcSmrg test -z "$as_dir" && as_dir=. 256655acc8fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 256755acc8fcSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 256855acc8fcSmrg ac_cv_prog_AWK="$ac_prog" 256955acc8fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 257055acc8fcSmrg break 2 257155acc8fcSmrg fi 257255acc8fcSmrgdone 257355acc8fcSmrg done 257455acc8fcSmrgIFS=$as_save_IFS 25753da084b3Smrg 257655acc8fcSmrgfi 257755acc8fcSmrgfi 257855acc8fcSmrgAWK=$ac_cv_prog_AWK 257955acc8fcSmrgif test -n "$AWK"; then 258055acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 258155acc8fcSmrg$as_echo "$AWK" >&6; } 258255acc8fcSmrgelse 258355acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 258455acc8fcSmrg$as_echo "no" >&6; } 258555acc8fcSmrgfi 25863da084b3Smrg 25873da084b3Smrg 258855acc8fcSmrg test -n "$AWK" && break 258955acc8fcSmrgdone 25903da084b3Smrg 259155acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 259255acc8fcSmrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 259355acc8fcSmrgset x ${MAKE-make} 259455acc8fcSmrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 259555acc8fcSmrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 259655acc8fcSmrg $as_echo_n "(cached) " >&6 259755acc8fcSmrgelse 259855acc8fcSmrg cat >conftest.make <<\_ACEOF 259955acc8fcSmrgSHELL = /bin/sh 260055acc8fcSmrgall: 260155acc8fcSmrg @echo '@@@%%%=$(MAKE)=@@@%%%' 260255acc8fcSmrg_ACEOF 260355acc8fcSmrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 260455acc8fcSmrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in 260555acc8fcSmrg *@@@%%%=?*=@@@%%%*) 260655acc8fcSmrg eval ac_cv_prog_make_${ac_make}_set=yes;; 260755acc8fcSmrg *) 260855acc8fcSmrg eval ac_cv_prog_make_${ac_make}_set=no;; 260955acc8fcSmrgesac 261055acc8fcSmrgrm -f conftest.make 261155acc8fcSmrgfi 261255acc8fcSmrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 261355acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 261455acc8fcSmrg$as_echo "yes" >&6; } 261555acc8fcSmrg SET_MAKE= 261655acc8fcSmrgelse 261755acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 261855acc8fcSmrg$as_echo "no" >&6; } 261955acc8fcSmrg SET_MAKE="MAKE=${MAKE-make}" 262055acc8fcSmrgfi 262155acc8fcSmrg 262255acc8fcSmrgrm -rf .tst 2>/dev/null 262355acc8fcSmrgmkdir .tst 2>/dev/null 262455acc8fcSmrgif test -d .tst; then 262555acc8fcSmrg am__leading_dot=. 262655acc8fcSmrgelse 262755acc8fcSmrg am__leading_dot=_ 262855acc8fcSmrgfi 262955acc8fcSmrgrmdir .tst 2>/dev/null 263055acc8fcSmrg 263155acc8fcSmrgif test "`cd $srcdir && pwd`" != "`pwd`"; then 263255acc8fcSmrg # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 263355acc8fcSmrg # is not polluted with repeated "-I." 263455acc8fcSmrg am__isrc=' -I$(srcdir)' 263555acc8fcSmrg # test to see if srcdir already configured 263655acc8fcSmrg if test -f $srcdir/config.status; then 263755acc8fcSmrg as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 26383da084b3Smrg fi 263955acc8fcSmrgfi 26403da084b3Smrg 264155acc8fcSmrg# test whether we have cygpath 264255acc8fcSmrgif test -z "$CYGPATH_W"; then 264355acc8fcSmrg if (cygpath --version) >/dev/null 2>/dev/null; then 264455acc8fcSmrg CYGPATH_W='cygpath -w' 264555acc8fcSmrg else 264655acc8fcSmrg CYGPATH_W=echo 264755acc8fcSmrg fi 264855acc8fcSmrgfi 26493da084b3Smrg 26503da084b3Smrg 265155acc8fcSmrg# Define the identity of the package. 265255acc8fcSmrg PACKAGE='libfontenc' 265355acc8fcSmrg VERSION='1.1.0' 26543da084b3Smrg 26553da084b3Smrg 265655acc8fcSmrgcat >>confdefs.h <<_ACEOF 265755acc8fcSmrg#define PACKAGE "$PACKAGE" 265855acc8fcSmrg_ACEOF 26593da084b3Smrg 26603da084b3Smrg 266155acc8fcSmrgcat >>confdefs.h <<_ACEOF 266255acc8fcSmrg#define VERSION "$VERSION" 266355acc8fcSmrg_ACEOF 26643da084b3Smrg 266555acc8fcSmrg# Some tools Automake needs. 26663da084b3Smrg 266755acc8fcSmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 26683da084b3Smrg 26693da084b3Smrg 267055acc8fcSmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 26713da084b3Smrg 26723da084b3Smrg 267355acc8fcSmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 26743da084b3Smrg 26753da084b3Smrg 267655acc8fcSmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 26773da084b3Smrg 26783da084b3Smrg 267955acc8fcSmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 268055acc8fcSmrg 268155acc8fcSmrg# We need awk for the "check" target. The system "awk" is bad on 268255acc8fcSmrg# some platforms. 268355acc8fcSmrg# Always define AMTAR for backward compatibility. 268455acc8fcSmrg 268555acc8fcSmrgAMTAR=${AMTAR-"${am_missing_run}tar"} 268655acc8fcSmrg 268755acc8fcSmrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 26883da084b3Smrg 26893da084b3Smrg 26903da084b3Smrg 26913da084b3Smrg 26923da084b3Smrg 26933da084b3Smrg 269455acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 269555acc8fcSmrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 269655acc8fcSmrg # Check whether --enable-maintainer-mode was given. 269755acc8fcSmrgif test "${enable_maintainer_mode+set}" = set; then : 269855acc8fcSmrg enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 269955acc8fcSmrgelse 270055acc8fcSmrg USE_MAINTAINER_MODE=no 270155acc8fcSmrgfi 27023da084b3Smrg 270355acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 270455acc8fcSmrg$as_echo "$USE_MAINTAINER_MODE" >&6; } 270555acc8fcSmrg if test $USE_MAINTAINER_MODE = yes; then 270655acc8fcSmrg MAINTAINER_MODE_TRUE= 270755acc8fcSmrg MAINTAINER_MODE_FALSE='#' 270855acc8fcSmrgelse 270955acc8fcSmrg MAINTAINER_MODE_TRUE='#' 271055acc8fcSmrg MAINTAINER_MODE_FALSE= 271155acc8fcSmrgfi 27123da084b3Smrg 271355acc8fcSmrg MAINT=$MAINTAINER_MODE_TRUE 27143da084b3Smrg 27153da084b3Smrg 27163da084b3Smrg 271755acc8fcSmrg# Require xorg-macros: XORG_DEFAULT_OPTIONS 27183da084b3Smrg 27193da084b3Smrg 27203da084b3Smrg 27213da084b3Smrg 27223da084b3Smrg 27233da084b3Smrg 27243da084b3Smrg 27253da084b3Smrg 27263da084b3Smrg 27273da084b3Smrg 27283da084b3Smrg 272955acc8fcSmrgDEPDIR="${am__leading_dot}deps" 27303da084b3Smrg 273155acc8fcSmrgac_config_commands="$ac_config_commands depfiles" 27323da084b3Smrg 27333da084b3Smrg 273455acc8fcSmrgam_make=${MAKE-make} 273555acc8fcSmrgcat > confinc << 'END' 273655acc8fcSmrgam__doit: 273755acc8fcSmrg @echo this is the am__doit target 273855acc8fcSmrg.PHONY: am__doit 273955acc8fcSmrgEND 274055acc8fcSmrg# If we don't find an include directive, just comment out the code. 274155acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 274255acc8fcSmrg$as_echo_n "checking for style of include used by $am_make... " >&6; } 274355acc8fcSmrgam__include="#" 274455acc8fcSmrgam__quote= 274555acc8fcSmrg_am_result=none 274655acc8fcSmrg# First try GNU make style include. 274755acc8fcSmrgecho "include confinc" > confmf 274855acc8fcSmrg# Ignore all kinds of additional output from `make'. 274955acc8fcSmrgcase `$am_make -s -f confmf 2> /dev/null` in #( 275055acc8fcSmrg*the\ am__doit\ target*) 275155acc8fcSmrg am__include=include 275255acc8fcSmrg am__quote= 275355acc8fcSmrg _am_result=GNU 275455acc8fcSmrg ;; 275555acc8fcSmrgesac 275655acc8fcSmrg# Now try BSD make style include. 275755acc8fcSmrgif test "$am__include" = "#"; then 275855acc8fcSmrg echo '.include "confinc"' > confmf 275955acc8fcSmrg case `$am_make -s -f confmf 2> /dev/null` in #( 276055acc8fcSmrg *the\ am__doit\ target*) 276155acc8fcSmrg am__include=.include 276255acc8fcSmrg am__quote="\"" 276355acc8fcSmrg _am_result=BSD 276455acc8fcSmrg ;; 276555acc8fcSmrg esac 276655acc8fcSmrgfi 27673da084b3Smrg 27683da084b3Smrg 276955acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 277055acc8fcSmrg$as_echo "$_am_result" >&6; } 277155acc8fcSmrgrm -f confinc confmf 27723da084b3Smrg 277355acc8fcSmrg# Check whether --enable-dependency-tracking was given. 277455acc8fcSmrgif test "${enable_dependency_tracking+set}" = set; then : 277555acc8fcSmrg enableval=$enable_dependency_tracking; 277655acc8fcSmrgfi 27773da084b3Smrg 277855acc8fcSmrgif test "x$enable_dependency_tracking" != xno; then 277955acc8fcSmrg am_depcomp="$ac_aux_dir/depcomp" 278055acc8fcSmrg AMDEPBACKSLASH='\' 278155acc8fcSmrgfi 278255acc8fcSmrg if test "x$enable_dependency_tracking" != xno; then 278355acc8fcSmrg AMDEP_TRUE= 278455acc8fcSmrg AMDEP_FALSE='#' 278555acc8fcSmrgelse 278655acc8fcSmrg AMDEP_TRUE='#' 278755acc8fcSmrg AMDEP_FALSE= 278855acc8fcSmrgfi 278955acc8fcSmrg 279055acc8fcSmrg 279155acc8fcSmrgac_ext=c 279255acc8fcSmrgac_cpp='$CPP $CPPFLAGS' 279355acc8fcSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 279455acc8fcSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 279555acc8fcSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 279655acc8fcSmrgif test -n "$ac_tool_prefix"; then 279755acc8fcSmrg # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 279855acc8fcSmrgset dummy ${ac_tool_prefix}gcc; ac_word=$2 279955acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 280055acc8fcSmrg$as_echo_n "checking for $ac_word... " >&6; } 280155acc8fcSmrgif ${ac_cv_prog_CC+:} false; then : 280255acc8fcSmrg $as_echo_n "(cached) " >&6 280355acc8fcSmrgelse 280455acc8fcSmrg if test -n "$CC"; then 280555acc8fcSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 280655acc8fcSmrgelse 280755acc8fcSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 280855acc8fcSmrgfor as_dir in $PATH 280955acc8fcSmrgdo 281055acc8fcSmrg IFS=$as_save_IFS 281155acc8fcSmrg test -z "$as_dir" && as_dir=. 281255acc8fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 281355acc8fcSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 281455acc8fcSmrg ac_cv_prog_CC="${ac_tool_prefix}gcc" 281555acc8fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 281655acc8fcSmrg break 2 281755acc8fcSmrg fi 281855acc8fcSmrgdone 281955acc8fcSmrg done 282055acc8fcSmrgIFS=$as_save_IFS 282155acc8fcSmrg 282255acc8fcSmrgfi 282355acc8fcSmrgfi 282455acc8fcSmrgCC=$ac_cv_prog_CC 282555acc8fcSmrgif test -n "$CC"; then 282655acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 282755acc8fcSmrg$as_echo "$CC" >&6; } 282855acc8fcSmrgelse 282955acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 283055acc8fcSmrg$as_echo "no" >&6; } 283155acc8fcSmrgfi 28323da084b3Smrg 28333da084b3Smrg 283455acc8fcSmrgfi 283555acc8fcSmrgif test -z "$ac_cv_prog_CC"; then 283655acc8fcSmrg ac_ct_CC=$CC 283755acc8fcSmrg # Extract the first word of "gcc", so it can be a program name with args. 283855acc8fcSmrgset dummy gcc; ac_word=$2 283955acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 284055acc8fcSmrg$as_echo_n "checking for $ac_word... " >&6; } 284155acc8fcSmrgif ${ac_cv_prog_ac_ct_CC+:} false; then : 284255acc8fcSmrg $as_echo_n "(cached) " >&6 284355acc8fcSmrgelse 284455acc8fcSmrg if test -n "$ac_ct_CC"; then 284555acc8fcSmrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 284655acc8fcSmrgelse 284755acc8fcSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 284855acc8fcSmrgfor as_dir in $PATH 284955acc8fcSmrgdo 285055acc8fcSmrg IFS=$as_save_IFS 285155acc8fcSmrg test -z "$as_dir" && as_dir=. 285255acc8fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 285355acc8fcSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 285455acc8fcSmrg ac_cv_prog_ac_ct_CC="gcc" 285555acc8fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 285655acc8fcSmrg break 2 285755acc8fcSmrg fi 285855acc8fcSmrgdone 285955acc8fcSmrg done 286055acc8fcSmrgIFS=$as_save_IFS 28613da084b3Smrg 286255acc8fcSmrgfi 286355acc8fcSmrgfi 286455acc8fcSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC 286555acc8fcSmrgif test -n "$ac_ct_CC"; then 286655acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 286755acc8fcSmrg$as_echo "$ac_ct_CC" >&6; } 286855acc8fcSmrgelse 286955acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 287055acc8fcSmrg$as_echo "no" >&6; } 287155acc8fcSmrgfi 28723da084b3Smrg 287355acc8fcSmrg if test "x$ac_ct_CC" = x; then 287455acc8fcSmrg CC="" 287555acc8fcSmrg else 287655acc8fcSmrg case $cross_compiling:$ac_tool_warned in 287755acc8fcSmrgyes:) 287855acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 287955acc8fcSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 288055acc8fcSmrgac_tool_warned=yes ;; 288155acc8fcSmrgesac 288255acc8fcSmrg CC=$ac_ct_CC 288355acc8fcSmrg fi 288455acc8fcSmrgelse 288555acc8fcSmrg CC="$ac_cv_prog_CC" 288655acc8fcSmrgfi 28873da084b3Smrg 288855acc8fcSmrgif test -z "$CC"; then 288955acc8fcSmrg if test -n "$ac_tool_prefix"; then 289055acc8fcSmrg # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 289155acc8fcSmrgset dummy ${ac_tool_prefix}cc; ac_word=$2 289255acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 289355acc8fcSmrg$as_echo_n "checking for $ac_word... " >&6; } 289455acc8fcSmrgif ${ac_cv_prog_CC+:} false; then : 289555acc8fcSmrg $as_echo_n "(cached) " >&6 289655acc8fcSmrgelse 289755acc8fcSmrg if test -n "$CC"; then 289855acc8fcSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 289955acc8fcSmrgelse 290055acc8fcSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 290155acc8fcSmrgfor as_dir in $PATH 290255acc8fcSmrgdo 290355acc8fcSmrg IFS=$as_save_IFS 290455acc8fcSmrg test -z "$as_dir" && as_dir=. 290555acc8fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 290655acc8fcSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 290755acc8fcSmrg ac_cv_prog_CC="${ac_tool_prefix}cc" 290855acc8fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 290955acc8fcSmrg break 2 291055acc8fcSmrg fi 291155acc8fcSmrgdone 291255acc8fcSmrg done 291355acc8fcSmrgIFS=$as_save_IFS 29143da084b3Smrg 291555acc8fcSmrgfi 291655acc8fcSmrgfi 291755acc8fcSmrgCC=$ac_cv_prog_CC 291855acc8fcSmrgif test -n "$CC"; then 291955acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 292055acc8fcSmrg$as_echo "$CC" >&6; } 292155acc8fcSmrgelse 292255acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 292355acc8fcSmrg$as_echo "no" >&6; } 292455acc8fcSmrgfi 29253da084b3Smrg 29263da084b3Smrg 292755acc8fcSmrg fi 29283da084b3Smrgfi 292955acc8fcSmrgif test -z "$CC"; then 293055acc8fcSmrg # Extract the first word of "cc", so it can be a program name with args. 293155acc8fcSmrgset dummy cc; ac_word=$2 293255acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 293355acc8fcSmrg$as_echo_n "checking for $ac_word... " >&6; } 293455acc8fcSmrgif ${ac_cv_prog_CC+:} false; then : 293555acc8fcSmrg $as_echo_n "(cached) " >&6 293655acc8fcSmrgelse 293755acc8fcSmrg if test -n "$CC"; then 293855acc8fcSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 293955acc8fcSmrgelse 294055acc8fcSmrg ac_prog_rejected=no 294155acc8fcSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 294255acc8fcSmrgfor as_dir in $PATH 294355acc8fcSmrgdo 294455acc8fcSmrg IFS=$as_save_IFS 294555acc8fcSmrg test -z "$as_dir" && as_dir=. 294655acc8fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 294755acc8fcSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 294855acc8fcSmrg if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 294955acc8fcSmrg ac_prog_rejected=yes 295055acc8fcSmrg continue 295155acc8fcSmrg fi 295255acc8fcSmrg ac_cv_prog_CC="cc" 295355acc8fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 295455acc8fcSmrg break 2 295555acc8fcSmrg fi 295655acc8fcSmrgdone 295755acc8fcSmrg done 295855acc8fcSmrgIFS=$as_save_IFS 29593da084b3Smrg 296055acc8fcSmrgif test $ac_prog_rejected = yes; then 296155acc8fcSmrg # We found a bogon in the path, so make sure we never use it. 296255acc8fcSmrg set dummy $ac_cv_prog_CC 296355acc8fcSmrg shift 296455acc8fcSmrg if test $# != 0; then 296555acc8fcSmrg # We chose a different compiler from the bogus one. 296655acc8fcSmrg # However, it has the same basename, so the bogon will be chosen 296755acc8fcSmrg # first if we set CC to just the basename; use the full file name. 296855acc8fcSmrg shift 296955acc8fcSmrg ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 297055acc8fcSmrg fi 297155acc8fcSmrgfi 297255acc8fcSmrgfi 297355acc8fcSmrgfi 297455acc8fcSmrgCC=$ac_cv_prog_CC 297555acc8fcSmrgif test -n "$CC"; then 297655acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 297755acc8fcSmrg$as_echo "$CC" >&6; } 297855acc8fcSmrgelse 297955acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 298055acc8fcSmrg$as_echo "no" >&6; } 2981d63fdb69Smrgfi 2982d63fdb69Smrg 298355acc8fcSmrg 298455acc8fcSmrgfi 298555acc8fcSmrgif test -z "$CC"; then 298655acc8fcSmrg if test -n "$ac_tool_prefix"; then 298755acc8fcSmrg for ac_prog in cl.exe 298855acc8fcSmrg do 298955acc8fcSmrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 299055acc8fcSmrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2 299155acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 299255acc8fcSmrg$as_echo_n "checking for $ac_word... " >&6; } 299355acc8fcSmrgif ${ac_cv_prog_CC+:} false; then : 299455acc8fcSmrg $as_echo_n "(cached) " >&6 299555acc8fcSmrgelse 299655acc8fcSmrg if test -n "$CC"; then 299755acc8fcSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 299855acc8fcSmrgelse 299955acc8fcSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 300055acc8fcSmrgfor as_dir in $PATH 30013da084b3Smrgdo 300255acc8fcSmrg IFS=$as_save_IFS 300355acc8fcSmrg test -z "$as_dir" && as_dir=. 300455acc8fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 300555acc8fcSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 300655acc8fcSmrg ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 300755acc8fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 300855acc8fcSmrg break 2 300955acc8fcSmrg fi 30103da084b3Smrgdone 301155acc8fcSmrg done 301255acc8fcSmrgIFS=$as_save_IFS 30133da084b3Smrg 301455acc8fcSmrgfi 301555acc8fcSmrgfi 301655acc8fcSmrgCC=$ac_cv_prog_CC 301755acc8fcSmrgif test -n "$CC"; then 301855acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 301955acc8fcSmrg$as_echo "$CC" >&6; } 302055acc8fcSmrgelse 302155acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 302255acc8fcSmrg$as_echo "no" >&6; } 302355acc8fcSmrgfi 30243da084b3Smrg 302555acc8fcSmrg 302655acc8fcSmrg test -n "$CC" && break 302755acc8fcSmrg done 302855acc8fcSmrgfi 302955acc8fcSmrgif test -z "$CC"; then 303055acc8fcSmrg ac_ct_CC=$CC 303155acc8fcSmrg for ac_prog in cl.exe 303255acc8fcSmrgdo 303355acc8fcSmrg # Extract the first word of "$ac_prog", so it can be a program name with args. 303455acc8fcSmrgset dummy $ac_prog; ac_word=$2 303555acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 303655acc8fcSmrg$as_echo_n "checking for $ac_word... " >&6; } 303755acc8fcSmrgif ${ac_cv_prog_ac_ct_CC+:} false; then : 303855acc8fcSmrg $as_echo_n "(cached) " >&6 303955acc8fcSmrgelse 304055acc8fcSmrg if test -n "$ac_ct_CC"; then 304155acc8fcSmrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 304255acc8fcSmrgelse 304355acc8fcSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 304455acc8fcSmrgfor as_dir in $PATH 304555acc8fcSmrgdo 304655acc8fcSmrg IFS=$as_save_IFS 304755acc8fcSmrg test -z "$as_dir" && as_dir=. 304855acc8fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 304955acc8fcSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 305055acc8fcSmrg ac_cv_prog_ac_ct_CC="$ac_prog" 305155acc8fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 305255acc8fcSmrg break 2 30533da084b3Smrg fi 305455acc8fcSmrgdone 305555acc8fcSmrg done 305655acc8fcSmrgIFS=$as_save_IFS 305755acc8fcSmrg 305855acc8fcSmrgfi 305955acc8fcSmrgfi 306055acc8fcSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC 306155acc8fcSmrgif test -n "$ac_ct_CC"; then 306255acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 306355acc8fcSmrg$as_echo "$ac_ct_CC" >&6; } 306455acc8fcSmrgelse 306555acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 306655acc8fcSmrg$as_echo "no" >&6; } 30673da084b3Smrgfi 30683da084b3Smrg 30693da084b3Smrg 307055acc8fcSmrg test -n "$ac_ct_CC" && break 307155acc8fcSmrgdone 30723da084b3Smrg 307355acc8fcSmrg if test "x$ac_ct_CC" = x; then 307455acc8fcSmrg CC="" 307555acc8fcSmrg else 307655acc8fcSmrg case $cross_compiling:$ac_tool_warned in 307755acc8fcSmrgyes:) 307855acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 307955acc8fcSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 308055acc8fcSmrgac_tool_warned=yes ;; 308155acc8fcSmrgesac 308255acc8fcSmrg CC=$ac_ct_CC 30833da084b3Smrg fi 30843da084b3Smrgfi 308555acc8fcSmrg 30863da084b3Smrgfi 30873da084b3Smrg 30883da084b3Smrg 308955acc8fcSmrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 309055acc8fcSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 309155acc8fcSmrgas_fn_error $? "no acceptable C compiler found in \$PATH 309255acc8fcSmrgSee \`config.log' for more details" "$LINENO" 5; } 30933da084b3Smrg 309455acc8fcSmrg# Provide some information about the compiler. 309555acc8fcSmrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 309655acc8fcSmrgset X $ac_compile 309755acc8fcSmrgac_compiler=$2 309855acc8fcSmrgfor ac_option in --version -v -V -qversion; do 309955acc8fcSmrg { { ac_try="$ac_compiler $ac_option >&5" 310055acc8fcSmrgcase "(($ac_try" in 310155acc8fcSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 310255acc8fcSmrg *) ac_try_echo=$ac_try;; 310355acc8fcSmrgesac 310455acc8fcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 310555acc8fcSmrg$as_echo "$ac_try_echo"; } >&5 310655acc8fcSmrg (eval "$ac_compiler $ac_option >&5") 2>conftest.err 310755acc8fcSmrg ac_status=$? 310855acc8fcSmrg if test -s conftest.err; then 310955acc8fcSmrg sed '10a\ 311055acc8fcSmrg... rest of stderr output deleted ... 311155acc8fcSmrg 10q' conftest.err >conftest.er1 311255acc8fcSmrg cat conftest.er1 >&5 311355acc8fcSmrg fi 311455acc8fcSmrg rm -f conftest.er1 conftest.err 311555acc8fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 311655acc8fcSmrg test $ac_status = 0; } 311755acc8fcSmrgdone 31183da084b3Smrg 311955acc8fcSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 312055acc8fcSmrg/* end confdefs.h. */ 31213da084b3Smrg 312255acc8fcSmrgint 312355acc8fcSmrgmain () 312455acc8fcSmrg{ 31253da084b3Smrg 312655acc8fcSmrg ; 312755acc8fcSmrg return 0; 312855acc8fcSmrg} 312955acc8fcSmrg_ACEOF 313055acc8fcSmrgac_clean_files_save=$ac_clean_files 313155acc8fcSmrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 313255acc8fcSmrg# Try to create an executable without -o first, disregard a.out. 313355acc8fcSmrg# It will help us diagnose broken compilers, and finding out an intuition 313455acc8fcSmrg# of exeext. 313555acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 313655acc8fcSmrg$as_echo_n "checking whether the C compiler works... " >&6; } 313755acc8fcSmrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 31383da084b3Smrg 313955acc8fcSmrg# The possible output files: 314055acc8fcSmrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 31413da084b3Smrg 314255acc8fcSmrgac_rmfiles= 314355acc8fcSmrgfor ac_file in $ac_files 314455acc8fcSmrgdo 314555acc8fcSmrg case $ac_file in 314655acc8fcSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 314755acc8fcSmrg * ) ac_rmfiles="$ac_rmfiles $ac_file";; 314855acc8fcSmrg esac 314955acc8fcSmrgdone 315055acc8fcSmrgrm -f $ac_rmfiles 31513da084b3Smrg 315255acc8fcSmrgif { { ac_try="$ac_link_default" 315355acc8fcSmrgcase "(($ac_try" in 315455acc8fcSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 315555acc8fcSmrg *) ac_try_echo=$ac_try;; 315655acc8fcSmrgesac 315755acc8fcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 315855acc8fcSmrg$as_echo "$ac_try_echo"; } >&5 315955acc8fcSmrg (eval "$ac_link_default") 2>&5 316055acc8fcSmrg ac_status=$? 316155acc8fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 316255acc8fcSmrg test $ac_status = 0; }; then : 316355acc8fcSmrg # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 316455acc8fcSmrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 316555acc8fcSmrg# in a Makefile. We should not override ac_cv_exeext if it was cached, 316655acc8fcSmrg# so that the user can short-circuit this test for compilers unknown to 316755acc8fcSmrg# Autoconf. 316855acc8fcSmrgfor ac_file in $ac_files '' 316955acc8fcSmrgdo 317055acc8fcSmrg test -f "$ac_file" || continue 317155acc8fcSmrg case $ac_file in 317255acc8fcSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 317355acc8fcSmrg ;; 317455acc8fcSmrg [ab].out ) 317555acc8fcSmrg # We found the default executable, but exeext='' is most 317655acc8fcSmrg # certainly right. 317755acc8fcSmrg break;; 317855acc8fcSmrg *.* ) 317955acc8fcSmrg if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 318055acc8fcSmrg then :; else 318155acc8fcSmrg ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 318255acc8fcSmrg fi 318355acc8fcSmrg # We set ac_cv_exeext here because the later test for it is not 318455acc8fcSmrg # safe: cross compilers may not add the suffix if given an `-o' 318555acc8fcSmrg # argument, so we may need to know it at that point already. 318655acc8fcSmrg # Even if this section looks crufty: it has the advantage of 318755acc8fcSmrg # actually working. 318855acc8fcSmrg break;; 318955acc8fcSmrg * ) 319055acc8fcSmrg break;; 319155acc8fcSmrg esac 319255acc8fcSmrgdone 319355acc8fcSmrgtest "$ac_cv_exeext" = no && ac_cv_exeext= 31943da084b3Smrg 319555acc8fcSmrgelse 319655acc8fcSmrg ac_file='' 319755acc8fcSmrgfi 319855acc8fcSmrgif test -z "$ac_file"; then : 319955acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 320055acc8fcSmrg$as_echo "no" >&6; } 320155acc8fcSmrg$as_echo "$as_me: failed program was:" >&5 320255acc8fcSmrgsed 's/^/| /' conftest.$ac_ext >&5 32033da084b3Smrg 320455acc8fcSmrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 320555acc8fcSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 320655acc8fcSmrgas_fn_error 77 "C compiler cannot create executables 320755acc8fcSmrgSee \`config.log' for more details" "$LINENO" 5; } 320855acc8fcSmrgelse 320955acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 321055acc8fcSmrg$as_echo "yes" >&6; } 321155acc8fcSmrgfi 321255acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 321355acc8fcSmrg$as_echo_n "checking for C compiler default output file name... " >&6; } 321455acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 321555acc8fcSmrg$as_echo "$ac_file" >&6; } 321655acc8fcSmrgac_exeext=$ac_cv_exeext 32173da084b3Smrg 321855acc8fcSmrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 321955acc8fcSmrgac_clean_files=$ac_clean_files_save 322055acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 322155acc8fcSmrg$as_echo_n "checking for suffix of executables... " >&6; } 322255acc8fcSmrgif { { ac_try="$ac_link" 322355acc8fcSmrgcase "(($ac_try" in 322455acc8fcSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 322555acc8fcSmrg *) ac_try_echo=$ac_try;; 322655acc8fcSmrgesac 322755acc8fcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 322855acc8fcSmrg$as_echo "$ac_try_echo"; } >&5 322955acc8fcSmrg (eval "$ac_link") 2>&5 323055acc8fcSmrg ac_status=$? 323155acc8fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 323255acc8fcSmrg test $ac_status = 0; }; then : 323355acc8fcSmrg # If both `conftest.exe' and `conftest' are `present' (well, observable) 323455acc8fcSmrg# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 323555acc8fcSmrg# work properly (i.e., refer to `conftest.exe'), while it won't with 323655acc8fcSmrg# `rm'. 323755acc8fcSmrgfor ac_file in conftest.exe conftest conftest.*; do 323855acc8fcSmrg test -f "$ac_file" || continue 323955acc8fcSmrg case $ac_file in 324055acc8fcSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 324155acc8fcSmrg *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 324255acc8fcSmrg break;; 324355acc8fcSmrg * ) break;; 324455acc8fcSmrg esac 324555acc8fcSmrgdone 324655acc8fcSmrgelse 324755acc8fcSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 324855acc8fcSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 324955acc8fcSmrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link 325055acc8fcSmrgSee \`config.log' for more details" "$LINENO" 5; } 325155acc8fcSmrgfi 325255acc8fcSmrgrm -f conftest conftest$ac_cv_exeext 325355acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 325455acc8fcSmrg$as_echo "$ac_cv_exeext" >&6; } 325555acc8fcSmrg 325655acc8fcSmrgrm -f conftest.$ac_ext 325755acc8fcSmrgEXEEXT=$ac_cv_exeext 325855acc8fcSmrgac_exeext=$EXEEXT 325955acc8fcSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 326055acc8fcSmrg/* end confdefs.h. */ 326155acc8fcSmrg#include <stdio.h> 326255acc8fcSmrgint 326355acc8fcSmrgmain () 326455acc8fcSmrg{ 326555acc8fcSmrgFILE *f = fopen ("conftest.out", "w"); 326655acc8fcSmrg return ferror (f) || fclose (f) != 0; 326755acc8fcSmrg 326855acc8fcSmrg ; 326955acc8fcSmrg return 0; 327055acc8fcSmrg} 32713da084b3Smrg_ACEOF 327255acc8fcSmrgac_clean_files="$ac_clean_files conftest.out" 327355acc8fcSmrg# Check that the compiler produces executables we can run. If not, either 327455acc8fcSmrg# the compiler is broken, or we cross compile. 327555acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 327655acc8fcSmrg$as_echo_n "checking whether we are cross compiling... " >&6; } 327755acc8fcSmrgif test "$cross_compiling" != yes; then 327855acc8fcSmrg { { ac_try="$ac_link" 327955acc8fcSmrgcase "(($ac_try" in 328055acc8fcSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 328155acc8fcSmrg *) ac_try_echo=$ac_try;; 328255acc8fcSmrgesac 328355acc8fcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 328455acc8fcSmrg$as_echo "$ac_try_echo"; } >&5 328555acc8fcSmrg (eval "$ac_link") 2>&5 328655acc8fcSmrg ac_status=$? 328755acc8fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 328855acc8fcSmrg test $ac_status = 0; } 328955acc8fcSmrg if { ac_try='./conftest$ac_cv_exeext' 329055acc8fcSmrg { { case "(($ac_try" in 329155acc8fcSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 329255acc8fcSmrg *) ac_try_echo=$ac_try;; 329355acc8fcSmrgesac 329455acc8fcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 329555acc8fcSmrg$as_echo "$ac_try_echo"; } >&5 329655acc8fcSmrg (eval "$ac_try") 2>&5 329755acc8fcSmrg ac_status=$? 329855acc8fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 329955acc8fcSmrg test $ac_status = 0; }; }; then 330055acc8fcSmrg cross_compiling=no 330155acc8fcSmrg else 330255acc8fcSmrg if test "$cross_compiling" = maybe; then 330355acc8fcSmrg cross_compiling=yes 330455acc8fcSmrg else 330555acc8fcSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 330655acc8fcSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 330755acc8fcSmrgas_fn_error $? "cannot run C compiled programs. 330855acc8fcSmrgIf you meant to cross compile, use \`--host'. 330955acc8fcSmrgSee \`config.log' for more details" "$LINENO" 5; } 331055acc8fcSmrg fi 331155acc8fcSmrg fi 33123da084b3Smrgfi 331355acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 331455acc8fcSmrg$as_echo "$cross_compiling" >&6; } 33153da084b3Smrg 331655acc8fcSmrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 331755acc8fcSmrgac_clean_files=$ac_clean_files_save 331855acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 331955acc8fcSmrg$as_echo_n "checking for suffix of object files... " >&6; } 332055acc8fcSmrgif ${ac_cv_objext+:} false; then : 332155acc8fcSmrg $as_echo_n "(cached) " >&6 332255acc8fcSmrgelse 332355acc8fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 332455acc8fcSmrg/* end confdefs.h. */ 33253da084b3Smrg 332655acc8fcSmrgint 332755acc8fcSmrgmain () 332855acc8fcSmrg{ 33293da084b3Smrg 333055acc8fcSmrg ; 333155acc8fcSmrg return 0; 333255acc8fcSmrg} 333355acc8fcSmrg_ACEOF 333455acc8fcSmrgrm -f conftest.o conftest.obj 333555acc8fcSmrgif { { ac_try="$ac_compile" 333655acc8fcSmrgcase "(($ac_try" in 333755acc8fcSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 333855acc8fcSmrg *) ac_try_echo=$ac_try;; 333955acc8fcSmrgesac 334055acc8fcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 334155acc8fcSmrg$as_echo "$ac_try_echo"; } >&5 334255acc8fcSmrg (eval "$ac_compile") 2>&5 334355acc8fcSmrg ac_status=$? 334455acc8fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 334555acc8fcSmrg test $ac_status = 0; }; then : 334655acc8fcSmrg for ac_file in conftest.o conftest.obj conftest.*; do 334755acc8fcSmrg test -f "$ac_file" || continue; 334855acc8fcSmrg case $ac_file in 334955acc8fcSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 335055acc8fcSmrg *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 335155acc8fcSmrg break;; 335255acc8fcSmrg esac 335355acc8fcSmrgdone 335455acc8fcSmrgelse 335555acc8fcSmrg $as_echo "$as_me: failed program was:" >&5 335655acc8fcSmrgsed 's/^/| /' conftest.$ac_ext >&5 33573da084b3Smrg 335855acc8fcSmrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 335955acc8fcSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 336055acc8fcSmrgas_fn_error $? "cannot compute suffix of object files: cannot compile 336155acc8fcSmrgSee \`config.log' for more details" "$LINENO" 5; } 336255acc8fcSmrgfi 336355acc8fcSmrgrm -f conftest.$ac_cv_objext conftest.$ac_ext 336455acc8fcSmrgfi 336555acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 336655acc8fcSmrg$as_echo "$ac_cv_objext" >&6; } 336755acc8fcSmrgOBJEXT=$ac_cv_objext 336855acc8fcSmrgac_objext=$OBJEXT 336955acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 337055acc8fcSmrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 337155acc8fcSmrgif ${ac_cv_c_compiler_gnu+:} false; then : 337255acc8fcSmrg $as_echo_n "(cached) " >&6 337355acc8fcSmrgelse 337455acc8fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 337555acc8fcSmrg/* end confdefs.h. */ 33763da084b3Smrg 337755acc8fcSmrgint 337855acc8fcSmrgmain () 337955acc8fcSmrg{ 338055acc8fcSmrg#ifndef __GNUC__ 338155acc8fcSmrg choke me 338255acc8fcSmrg#endif 33833da084b3Smrg 338455acc8fcSmrg ; 338555acc8fcSmrg return 0; 338655acc8fcSmrg} 33873da084b3Smrg_ACEOF 338855acc8fcSmrgif ac_fn_c_try_compile "$LINENO"; then : 338955acc8fcSmrg ac_compiler_gnu=yes 339055acc8fcSmrgelse 339155acc8fcSmrg ac_compiler_gnu=no 33923da084b3Smrgfi 339355acc8fcSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 339455acc8fcSmrgac_cv_c_compiler_gnu=$ac_compiler_gnu 33953da084b3Smrg 339655acc8fcSmrgfi 339755acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 339855acc8fcSmrg$as_echo "$ac_cv_c_compiler_gnu" >&6; } 339955acc8fcSmrgif test $ac_compiler_gnu = yes; then 340055acc8fcSmrg GCC=yes 340155acc8fcSmrgelse 340255acc8fcSmrg GCC= 340355acc8fcSmrgfi 340455acc8fcSmrgac_test_CFLAGS=${CFLAGS+set} 340555acc8fcSmrgac_save_CFLAGS=$CFLAGS 340655acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 340755acc8fcSmrg$as_echo_n "checking whether $CC accepts -g... " >&6; } 340855acc8fcSmrgif ${ac_cv_prog_cc_g+:} false; then : 340955acc8fcSmrg $as_echo_n "(cached) " >&6 341055acc8fcSmrgelse 341155acc8fcSmrg ac_save_c_werror_flag=$ac_c_werror_flag 341255acc8fcSmrg ac_c_werror_flag=yes 341355acc8fcSmrg ac_cv_prog_cc_g=no 341455acc8fcSmrg CFLAGS="-g" 341555acc8fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 341655acc8fcSmrg/* end confdefs.h. */ 34173da084b3Smrg 341855acc8fcSmrgint 341955acc8fcSmrgmain () 342055acc8fcSmrg{ 34213da084b3Smrg 342255acc8fcSmrg ; 342355acc8fcSmrg return 0; 342455acc8fcSmrg} 342555acc8fcSmrg_ACEOF 342655acc8fcSmrgif ac_fn_c_try_compile "$LINENO"; then : 342755acc8fcSmrg ac_cv_prog_cc_g=yes 342855acc8fcSmrgelse 342955acc8fcSmrg CFLAGS="" 343055acc8fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 343155acc8fcSmrg/* end confdefs.h. */ 34323da084b3Smrg 343355acc8fcSmrgint 343455acc8fcSmrgmain () 343555acc8fcSmrg{ 34363da084b3Smrg 343755acc8fcSmrg ; 343855acc8fcSmrg return 0; 343955acc8fcSmrg} 34403da084b3Smrg_ACEOF 344155acc8fcSmrgif ac_fn_c_try_compile "$LINENO"; then : 34423da084b3Smrg 344355acc8fcSmrgelse 344455acc8fcSmrg ac_c_werror_flag=$ac_save_c_werror_flag 344555acc8fcSmrg CFLAGS="-g" 344655acc8fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 344755acc8fcSmrg/* end confdefs.h. */ 34483da084b3Smrg 344955acc8fcSmrgint 345055acc8fcSmrgmain () 345155acc8fcSmrg{ 34523da084b3Smrg 345355acc8fcSmrg ; 345455acc8fcSmrg return 0; 345555acc8fcSmrg} 34563da084b3Smrg_ACEOF 345755acc8fcSmrgif ac_fn_c_try_compile "$LINENO"; then : 345855acc8fcSmrg ac_cv_prog_cc_g=yes 345955acc8fcSmrgfi 346055acc8fcSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 346155acc8fcSmrgfi 346255acc8fcSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 346355acc8fcSmrgfi 346455acc8fcSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 346555acc8fcSmrg ac_c_werror_flag=$ac_save_c_werror_flag 346655acc8fcSmrgfi 346755acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 346855acc8fcSmrg$as_echo "$ac_cv_prog_cc_g" >&6; } 346955acc8fcSmrgif test "$ac_test_CFLAGS" = set; then 347055acc8fcSmrg CFLAGS=$ac_save_CFLAGS 347155acc8fcSmrgelif test $ac_cv_prog_cc_g = yes; then 347255acc8fcSmrg if test "$GCC" = yes; then 347355acc8fcSmrg CFLAGS="-g -O2" 347455acc8fcSmrg else 347555acc8fcSmrg CFLAGS="-g" 347655acc8fcSmrg fi 347755acc8fcSmrgelse 347855acc8fcSmrg if test "$GCC" = yes; then 347955acc8fcSmrg CFLAGS="-O2" 348055acc8fcSmrg else 348155acc8fcSmrg CFLAGS= 348255acc8fcSmrg fi 348355acc8fcSmrgfi 348455acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 348555acc8fcSmrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 348655acc8fcSmrgif ${ac_cv_prog_cc_c89+:} false; then : 348755acc8fcSmrg $as_echo_n "(cached) " >&6 348855acc8fcSmrgelse 348955acc8fcSmrg ac_cv_prog_cc_c89=no 349055acc8fcSmrgac_save_CC=$CC 349155acc8fcSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 349255acc8fcSmrg/* end confdefs.h. */ 349355acc8fcSmrg#include <stdarg.h> 349455acc8fcSmrg#include <stdio.h> 349555acc8fcSmrg#include <sys/types.h> 349655acc8fcSmrg#include <sys/stat.h> 349755acc8fcSmrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 349855acc8fcSmrgstruct buf { int x; }; 349955acc8fcSmrgFILE * (*rcsopen) (struct buf *, struct stat *, int); 350055acc8fcSmrgstatic char *e (p, i) 350155acc8fcSmrg char **p; 350255acc8fcSmrg int i; 35033da084b3Smrg{ 350455acc8fcSmrg return p[i]; 350555acc8fcSmrg} 350655acc8fcSmrgstatic char *f (char * (*g) (char **, int), char **p, ...) 350755acc8fcSmrg{ 350855acc8fcSmrg char *s; 350955acc8fcSmrg va_list v; 351055acc8fcSmrg va_start (v,p); 351155acc8fcSmrg s = g (p, va_arg (v,int)); 351255acc8fcSmrg va_end (v); 351355acc8fcSmrg return s; 351455acc8fcSmrg} 35153da084b3Smrg 351655acc8fcSmrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 351755acc8fcSmrg function prototypes and stuff, but not '\xHH' hex character constants. 351855acc8fcSmrg These don't provoke an error unfortunately, instead are silently treated 351955acc8fcSmrg as 'x'. The following induces an error, until -std is added to get 352055acc8fcSmrg proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 352155acc8fcSmrg array size at least. It's necessary to write '\x00'==0 to get something 352255acc8fcSmrg that's true only with -std. */ 352355acc8fcSmrgint osf4_cc_array ['\x00' == 0 ? 1 : -1]; 35243da084b3Smrg 352555acc8fcSmrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 352655acc8fcSmrg inside strings and character constants. */ 352755acc8fcSmrg#define FOO(x) 'x' 352855acc8fcSmrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 35293da084b3Smrg 353055acc8fcSmrgint test (int i, double x); 353155acc8fcSmrgstruct s1 {int (*f) (int a);}; 353255acc8fcSmrgstruct s2 {int (*f) (double a);}; 353355acc8fcSmrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 353455acc8fcSmrgint argc; 353555acc8fcSmrgchar **argv; 353655acc8fcSmrgint 353755acc8fcSmrgmain () 353855acc8fcSmrg{ 353955acc8fcSmrgreturn f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 354055acc8fcSmrg ; 354155acc8fcSmrg return 0; 354255acc8fcSmrg} 354355acc8fcSmrg_ACEOF 354455acc8fcSmrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 354555acc8fcSmrg -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 35463da084b3Smrgdo 354755acc8fcSmrg CC="$ac_save_CC $ac_arg" 354855acc8fcSmrg if ac_fn_c_try_compile "$LINENO"; then : 354955acc8fcSmrg ac_cv_prog_cc_c89=$ac_arg 355055acc8fcSmrgfi 355155acc8fcSmrgrm -f core conftest.err conftest.$ac_objext 355255acc8fcSmrg test "x$ac_cv_prog_cc_c89" != "xno" && break 35533da084b3Smrgdone 355455acc8fcSmrgrm -f conftest.$ac_ext 355555acc8fcSmrgCC=$ac_save_CC 35563da084b3Smrg 355755acc8fcSmrgfi 355855acc8fcSmrg# AC_CACHE_VAL 355955acc8fcSmrgcase "x$ac_cv_prog_cc_c89" in 356055acc8fcSmrg x) 356155acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 356255acc8fcSmrg$as_echo "none needed" >&6; } ;; 356355acc8fcSmrg xno) 356455acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 356555acc8fcSmrg$as_echo "unsupported" >&6; } ;; 356655acc8fcSmrg *) 356755acc8fcSmrg CC="$CC $ac_cv_prog_cc_c89" 356855acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 356955acc8fcSmrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 357055acc8fcSmrgesac 357155acc8fcSmrgif test "x$ac_cv_prog_cc_c89" != xno; then : 35723da084b3Smrg 357355acc8fcSmrgfi 35743da084b3Smrg 357555acc8fcSmrgac_ext=c 357655acc8fcSmrgac_cpp='$CPP $CPPFLAGS' 357755acc8fcSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 357855acc8fcSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 357955acc8fcSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 35803da084b3Smrg 358155acc8fcSmrgdepcc="$CC" am_compiler_list= 35823da084b3Smrg 358355acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 358455acc8fcSmrg$as_echo_n "checking dependency style of $depcc... " >&6; } 358555acc8fcSmrgif ${am_cv_CC_dependencies_compiler_type+:} false; then : 358655acc8fcSmrg $as_echo_n "(cached) " >&6 358755acc8fcSmrgelse 358855acc8fcSmrg if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 358955acc8fcSmrg # We make a subdir and do the tests there. Otherwise we can end up 359055acc8fcSmrg # making bogus files that we don't know about and never remove. For 359155acc8fcSmrg # instance it was reported that on HP-UX the gcc test will end up 359255acc8fcSmrg # making a dummy file named `D' -- because `-MD' means `put the output 359355acc8fcSmrg # in D'. 359455acc8fcSmrg mkdir conftest.dir 359555acc8fcSmrg # Copy depcomp to subdir because otherwise we won't find it if we're 359655acc8fcSmrg # using a relative directory. 359755acc8fcSmrg cp "$am_depcomp" conftest.dir 359855acc8fcSmrg cd conftest.dir 359955acc8fcSmrg # We will build objects and dependencies in a subdirectory because 360055acc8fcSmrg # it helps to detect inapplicable dependency modes. For instance 360155acc8fcSmrg # both Tru64's cc and ICC support -MD to output dependencies as a 360255acc8fcSmrg # side effect of compilation, but ICC will put the dependencies in 360355acc8fcSmrg # the current directory while Tru64 will put them in the object 360455acc8fcSmrg # directory. 360555acc8fcSmrg mkdir sub 36063da084b3Smrg 360755acc8fcSmrg am_cv_CC_dependencies_compiler_type=none 360855acc8fcSmrg if test "$am_compiler_list" = ""; then 360955acc8fcSmrg am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 361055acc8fcSmrg fi 361155acc8fcSmrg am__universal=false 361255acc8fcSmrg case " $depcc " in #( 361355acc8fcSmrg *\ -arch\ *\ -arch\ *) am__universal=true ;; 361455acc8fcSmrg esac 36153da084b3Smrg 361655acc8fcSmrg for depmode in $am_compiler_list; do 361755acc8fcSmrg # Setup a source with many dependencies, because some compilers 361855acc8fcSmrg # like to wrap large dependency lists on column 80 (with \), and 361955acc8fcSmrg # we should not choose a depcomp mode which is confused by this. 362055acc8fcSmrg # 362155acc8fcSmrg # We need to recreate these files for each test, as the compiler may 362255acc8fcSmrg # overwrite some of them when testing with obscure command lines. 362355acc8fcSmrg # This happens at least with the AIX C compiler. 362455acc8fcSmrg : > sub/conftest.c 362555acc8fcSmrg for i in 1 2 3 4 5 6; do 362655acc8fcSmrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 362755acc8fcSmrg # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 362855acc8fcSmrg # Solaris 8's {/usr,}/bin/sh. 362955acc8fcSmrg touch sub/conftst$i.h 363055acc8fcSmrg done 363155acc8fcSmrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 36323da084b3Smrg 363355acc8fcSmrg # We check with `-c' and `-o' for the sake of the "dashmstdout" 363455acc8fcSmrg # mode. It turns out that the SunPro C++ compiler does not properly 363555acc8fcSmrg # handle `-M -o', and we need to detect this. Also, some Intel 363655acc8fcSmrg # versions had trouble with output in subdirs 363755acc8fcSmrg am__obj=sub/conftest.${OBJEXT-o} 363855acc8fcSmrg am__minus_obj="-o $am__obj" 363955acc8fcSmrg case $depmode in 364055acc8fcSmrg gcc) 364155acc8fcSmrg # This depmode causes a compiler race in universal mode. 364255acc8fcSmrg test "$am__universal" = false || continue 364355acc8fcSmrg ;; 364455acc8fcSmrg nosideeffect) 364555acc8fcSmrg # after this tag, mechanisms are not by side-effect, so they'll 364655acc8fcSmrg # only be used when explicitly requested 364755acc8fcSmrg if test "x$enable_dependency_tracking" = xyes; then 364855acc8fcSmrg continue 364955acc8fcSmrg else 365055acc8fcSmrg break 365155acc8fcSmrg fi 365255acc8fcSmrg ;; 365355acc8fcSmrg msvisualcpp | msvcmsys) 365455acc8fcSmrg # This compiler won't grok `-c -o', but also, the minuso test has 365555acc8fcSmrg # not run yet. These depmodes are late enough in the game, and 365655acc8fcSmrg # so weak that their functioning should not be impacted. 365755acc8fcSmrg am__obj=conftest.${OBJEXT-o} 365855acc8fcSmrg am__minus_obj= 365955acc8fcSmrg ;; 366055acc8fcSmrg none) break ;; 366155acc8fcSmrg esac 366255acc8fcSmrg if depmode=$depmode \ 366355acc8fcSmrg source=sub/conftest.c object=$am__obj \ 366455acc8fcSmrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 366555acc8fcSmrg $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 366655acc8fcSmrg >/dev/null 2>conftest.err && 366755acc8fcSmrg grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 366855acc8fcSmrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 366955acc8fcSmrg grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 367055acc8fcSmrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 367155acc8fcSmrg # icc doesn't choke on unknown options, it will just issue warnings 367255acc8fcSmrg # or remarks (even with -Werror). So we grep stderr for any message 367355acc8fcSmrg # that says an option was ignored or not supported. 367455acc8fcSmrg # When given -MP, icc 7.0 and 7.1 complain thusly: 367555acc8fcSmrg # icc: Command line warning: ignoring option '-M'; no argument required 367655acc8fcSmrg # The diagnosis changed in icc 8.0: 367755acc8fcSmrg # icc: Command line remark: option '-MP' not supported 367855acc8fcSmrg if (grep 'ignoring option' conftest.err || 367955acc8fcSmrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 368055acc8fcSmrg am_cv_CC_dependencies_compiler_type=$depmode 368155acc8fcSmrg break 368255acc8fcSmrg fi 36833da084b3Smrg fi 368455acc8fcSmrg done 36853da084b3Smrg 368655acc8fcSmrg cd .. 368755acc8fcSmrg rm -rf conftest.dir 368855acc8fcSmrgelse 368955acc8fcSmrg am_cv_CC_dependencies_compiler_type=none 369055acc8fcSmrgfi 36913da084b3Smrg 369255acc8fcSmrgfi 369355acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 369455acc8fcSmrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 369555acc8fcSmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 36963da084b3Smrg 369755acc8fcSmrg if 369855acc8fcSmrg test "x$enable_dependency_tracking" != xno \ 369955acc8fcSmrg && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 370055acc8fcSmrg am__fastdepCC_TRUE= 370155acc8fcSmrg am__fastdepCC_FALSE='#' 370255acc8fcSmrgelse 370355acc8fcSmrg am__fastdepCC_TRUE='#' 370455acc8fcSmrg am__fastdepCC_FALSE= 370555acc8fcSmrgfi 37063da084b3Smrg 37073da084b3Smrg 370855acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 370955acc8fcSmrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 371055acc8fcSmrgif ${ac_cv_prog_cc_c99+:} false; then : 371155acc8fcSmrg $as_echo_n "(cached) " >&6 371255acc8fcSmrgelse 371355acc8fcSmrg ac_cv_prog_cc_c99=no 371455acc8fcSmrgac_save_CC=$CC 371555acc8fcSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 371655acc8fcSmrg/* end confdefs.h. */ 371755acc8fcSmrg#include <stdarg.h> 371855acc8fcSmrg#include <stdbool.h> 371955acc8fcSmrg#include <stdlib.h> 372055acc8fcSmrg#include <wchar.h> 372155acc8fcSmrg#include <stdio.h> 37223da084b3Smrg 372355acc8fcSmrg// Check varargs macros. These examples are taken from C99 6.10.3.5. 372455acc8fcSmrg#define debug(...) fprintf (stderr, __VA_ARGS__) 372555acc8fcSmrg#define showlist(...) puts (#__VA_ARGS__) 372655acc8fcSmrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 372755acc8fcSmrgstatic void 372855acc8fcSmrgtest_varargs_macros (void) 372955acc8fcSmrg{ 373055acc8fcSmrg int x = 1234; 373155acc8fcSmrg int y = 5678; 373255acc8fcSmrg debug ("Flag"); 373355acc8fcSmrg debug ("X = %d\n", x); 373455acc8fcSmrg showlist (The first, second, and third items.); 373555acc8fcSmrg report (x>y, "x is %d but y is %d", x, y); 373655acc8fcSmrg} 37373da084b3Smrg 373855acc8fcSmrg// Check long long types. 373955acc8fcSmrg#define BIG64 18446744073709551615ull 374055acc8fcSmrg#define BIG32 4294967295ul 374155acc8fcSmrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 374255acc8fcSmrg#if !BIG_OK 374355acc8fcSmrg your preprocessor is broken; 374455acc8fcSmrg#endif 374555acc8fcSmrg#if BIG_OK 374655acc8fcSmrg#else 374755acc8fcSmrg your preprocessor is broken; 374855acc8fcSmrg#endif 374955acc8fcSmrgstatic long long int bignum = -9223372036854775807LL; 375055acc8fcSmrgstatic unsigned long long int ubignum = BIG64; 37513da084b3Smrg 375255acc8fcSmrgstruct incomplete_array 375355acc8fcSmrg{ 375455acc8fcSmrg int datasize; 375555acc8fcSmrg double data[]; 375655acc8fcSmrg}; 37573da084b3Smrg 375855acc8fcSmrgstruct named_init { 375955acc8fcSmrg int number; 376055acc8fcSmrg const wchar_t *name; 376155acc8fcSmrg double average; 376255acc8fcSmrg}; 37633da084b3Smrg 376455acc8fcSmrgtypedef const char *ccp; 37653da084b3Smrg 376655acc8fcSmrgstatic inline int 376755acc8fcSmrgtest_restrict (ccp restrict text) 376855acc8fcSmrg{ 376955acc8fcSmrg // See if C++-style comments work. 377055acc8fcSmrg // Iterate through items via the restricted pointer. 377155acc8fcSmrg // Also check for declarations in for loops. 377255acc8fcSmrg for (unsigned int i = 0; *(text+i) != '\0'; ++i) 377355acc8fcSmrg continue; 377455acc8fcSmrg return 0; 377555acc8fcSmrg} 37763da084b3Smrg 377755acc8fcSmrg// Check varargs and va_copy. 377855acc8fcSmrgstatic void 377955acc8fcSmrgtest_varargs (const char *format, ...) 378055acc8fcSmrg{ 378155acc8fcSmrg va_list args; 378255acc8fcSmrg va_start (args, format); 378355acc8fcSmrg va_list args_copy; 378455acc8fcSmrg va_copy (args_copy, args); 37853da084b3Smrg 378655acc8fcSmrg const char *str; 378755acc8fcSmrg int number; 378855acc8fcSmrg float fnumber; 37893da084b3Smrg 379055acc8fcSmrg while (*format) 379155acc8fcSmrg { 379255acc8fcSmrg switch (*format++) 379355acc8fcSmrg { 379455acc8fcSmrg case 's': // string 379555acc8fcSmrg str = va_arg (args_copy, const char *); 379655acc8fcSmrg break; 379755acc8fcSmrg case 'd': // int 379855acc8fcSmrg number = va_arg (args_copy, int); 379955acc8fcSmrg break; 380055acc8fcSmrg case 'f': // float 380155acc8fcSmrg fnumber = va_arg (args_copy, double); 380255acc8fcSmrg break; 380355acc8fcSmrg default: 380455acc8fcSmrg break; 380555acc8fcSmrg } 380655acc8fcSmrg } 380755acc8fcSmrg va_end (args_copy); 380855acc8fcSmrg va_end (args); 380955acc8fcSmrg} 38103da084b3Smrg 381155acc8fcSmrgint 381255acc8fcSmrgmain () 381355acc8fcSmrg{ 38143da084b3Smrg 381555acc8fcSmrg // Check bool. 381655acc8fcSmrg _Bool success = false; 38173da084b3Smrg 381855acc8fcSmrg // Check restrict. 381955acc8fcSmrg if (test_restrict ("String literal") == 0) 382055acc8fcSmrg success = true; 382155acc8fcSmrg char *restrict newvar = "Another string"; 38223da084b3Smrg 382355acc8fcSmrg // Check varargs. 382455acc8fcSmrg test_varargs ("s, d' f .", "string", 65, 34.234); 382555acc8fcSmrg test_varargs_macros (); 38263da084b3Smrg 382755acc8fcSmrg // Check flexible array members. 382855acc8fcSmrg struct incomplete_array *ia = 382955acc8fcSmrg malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 383055acc8fcSmrg ia->datasize = 10; 383155acc8fcSmrg for (int i = 0; i < ia->datasize; ++i) 383255acc8fcSmrg ia->data[i] = i * 1.234; 38333da084b3Smrg 383455acc8fcSmrg // Check named initializers. 383555acc8fcSmrg struct named_init ni = { 383655acc8fcSmrg .number = 34, 383755acc8fcSmrg .name = L"Test wide string", 383855acc8fcSmrg .average = 543.34343, 383955acc8fcSmrg }; 38403da084b3Smrg 384155acc8fcSmrg ni.number = 58; 38423da084b3Smrg 384355acc8fcSmrg int dynamic_array[ni.number]; 384455acc8fcSmrg dynamic_array[ni.number - 1] = 543; 38453da084b3Smrg 384655acc8fcSmrg // work around unused variable warnings 384755acc8fcSmrg return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 384855acc8fcSmrg || dynamic_array[ni.number - 1] != 543); 38493da084b3Smrg 385055acc8fcSmrg ; 385155acc8fcSmrg return 0; 385255acc8fcSmrg} 385355acc8fcSmrg_ACEOF 385455acc8fcSmrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 385555acc8fcSmrgdo 385655acc8fcSmrg CC="$ac_save_CC $ac_arg" 385755acc8fcSmrg if ac_fn_c_try_compile "$LINENO"; then : 385855acc8fcSmrg ac_cv_prog_cc_c99=$ac_arg 385955acc8fcSmrgfi 386055acc8fcSmrgrm -f core conftest.err conftest.$ac_objext 386155acc8fcSmrg test "x$ac_cv_prog_cc_c99" != "xno" && break 386255acc8fcSmrgdone 386355acc8fcSmrgrm -f conftest.$ac_ext 386455acc8fcSmrgCC=$ac_save_CC 38653da084b3Smrg 386655acc8fcSmrgfi 386755acc8fcSmrg# AC_CACHE_VAL 386855acc8fcSmrgcase "x$ac_cv_prog_cc_c99" in 386955acc8fcSmrg x) 387055acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 387155acc8fcSmrg$as_echo "none needed" >&6; } ;; 387255acc8fcSmrg xno) 387355acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 387455acc8fcSmrg$as_echo "unsupported" >&6; } ;; 387555acc8fcSmrg *) 387655acc8fcSmrg CC="$CC $ac_cv_prog_cc_c99" 387755acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 387855acc8fcSmrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 387955acc8fcSmrgesac 388055acc8fcSmrgif test "x$ac_cv_prog_cc_c99" != xno; then : 38813da084b3Smrg 388255acc8fcSmrgfi 38833da084b3Smrg 38843da084b3Smrg 38853da084b3Smrg 388655acc8fcSmrgac_ext=c 388755acc8fcSmrgac_cpp='$CPP $CPPFLAGS' 388855acc8fcSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 388955acc8fcSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 389055acc8fcSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 389155acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 389255acc8fcSmrg$as_echo_n "checking how to run the C preprocessor... " >&6; } 389355acc8fcSmrg# On Suns, sometimes $CPP names a directory. 389455acc8fcSmrgif test -n "$CPP" && test -d "$CPP"; then 389555acc8fcSmrg CPP= 389655acc8fcSmrgfi 389755acc8fcSmrgif test -z "$CPP"; then 389855acc8fcSmrg if ${ac_cv_prog_CPP+:} false; then : 389955acc8fcSmrg $as_echo_n "(cached) " >&6 390055acc8fcSmrgelse 390155acc8fcSmrg # Double quotes because CPP needs to be expanded 390255acc8fcSmrg for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 390355acc8fcSmrg do 390455acc8fcSmrg ac_preproc_ok=false 390555acc8fcSmrgfor ac_c_preproc_warn_flag in '' yes 390655acc8fcSmrgdo 390755acc8fcSmrg # Use a header file that comes with gcc, so configuring glibc 390855acc8fcSmrg # with a fresh cross-compiler works. 390955acc8fcSmrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 391055acc8fcSmrg # <limits.h> exists even on freestanding compilers. 391155acc8fcSmrg # On the NeXT, cc -E runs the code through the compiler's parser, 391255acc8fcSmrg # not just through cpp. "Syntax error" is here to catch this case. 391355acc8fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 391455acc8fcSmrg/* end confdefs.h. */ 391555acc8fcSmrg#ifdef __STDC__ 391655acc8fcSmrg# include <limits.h> 391755acc8fcSmrg#else 391855acc8fcSmrg# include <assert.h> 391955acc8fcSmrg#endif 392055acc8fcSmrg Syntax error 392155acc8fcSmrg_ACEOF 392255acc8fcSmrgif ac_fn_c_try_cpp "$LINENO"; then : 39233da084b3Smrg 392455acc8fcSmrgelse 392555acc8fcSmrg # Broken: fails on valid input. 392655acc8fcSmrgcontinue 392755acc8fcSmrgfi 392855acc8fcSmrgrm -f conftest.err conftest.i conftest.$ac_ext 39293da084b3Smrg 393055acc8fcSmrg # OK, works on sane cases. Now check whether nonexistent headers 393155acc8fcSmrg # can be detected and how. 393255acc8fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 393355acc8fcSmrg/* end confdefs.h. */ 393455acc8fcSmrg#include <ac_nonexistent.h> 393555acc8fcSmrg_ACEOF 393655acc8fcSmrgif ac_fn_c_try_cpp "$LINENO"; then : 393755acc8fcSmrg # Broken: success on invalid input. 393855acc8fcSmrgcontinue 393955acc8fcSmrgelse 394055acc8fcSmrg # Passes both tests. 394155acc8fcSmrgac_preproc_ok=: 394255acc8fcSmrgbreak 394355acc8fcSmrgfi 394455acc8fcSmrgrm -f conftest.err conftest.i conftest.$ac_ext 39453da084b3Smrg 394655acc8fcSmrgdone 394755acc8fcSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 394855acc8fcSmrgrm -f conftest.i conftest.err conftest.$ac_ext 394955acc8fcSmrgif $ac_preproc_ok; then : 395055acc8fcSmrg break 395155acc8fcSmrgfi 39523da084b3Smrg 395355acc8fcSmrg done 395455acc8fcSmrg ac_cv_prog_CPP=$CPP 39553da084b3Smrg 395655acc8fcSmrgfi 395755acc8fcSmrg CPP=$ac_cv_prog_CPP 395855acc8fcSmrgelse 395955acc8fcSmrg ac_cv_prog_CPP=$CPP 396055acc8fcSmrgfi 396155acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 396255acc8fcSmrg$as_echo "$CPP" >&6; } 396355acc8fcSmrgac_preproc_ok=false 396455acc8fcSmrgfor ac_c_preproc_warn_flag in '' yes 396555acc8fcSmrgdo 396655acc8fcSmrg # Use a header file that comes with gcc, so configuring glibc 396755acc8fcSmrg # with a fresh cross-compiler works. 396855acc8fcSmrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 396955acc8fcSmrg # <limits.h> exists even on freestanding compilers. 397055acc8fcSmrg # On the NeXT, cc -E runs the code through the compiler's parser, 397155acc8fcSmrg # not just through cpp. "Syntax error" is here to catch this case. 397255acc8fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 397355acc8fcSmrg/* end confdefs.h. */ 397455acc8fcSmrg#ifdef __STDC__ 397555acc8fcSmrg# include <limits.h> 397655acc8fcSmrg#else 397755acc8fcSmrg# include <assert.h> 397855acc8fcSmrg#endif 397955acc8fcSmrg Syntax error 398055acc8fcSmrg_ACEOF 398155acc8fcSmrgif ac_fn_c_try_cpp "$LINENO"; then : 39823da084b3Smrg 398355acc8fcSmrgelse 398455acc8fcSmrg # Broken: fails on valid input. 398555acc8fcSmrgcontinue 398655acc8fcSmrgfi 398755acc8fcSmrgrm -f conftest.err conftest.i conftest.$ac_ext 39883da084b3Smrg 398955acc8fcSmrg # OK, works on sane cases. Now check whether nonexistent headers 399055acc8fcSmrg # can be detected and how. 399155acc8fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 399255acc8fcSmrg/* end confdefs.h. */ 399355acc8fcSmrg#include <ac_nonexistent.h> 399455acc8fcSmrg_ACEOF 399555acc8fcSmrgif ac_fn_c_try_cpp "$LINENO"; then : 399655acc8fcSmrg # Broken: success on invalid input. 399755acc8fcSmrgcontinue 399855acc8fcSmrgelse 399955acc8fcSmrg # Passes both tests. 400055acc8fcSmrgac_preproc_ok=: 400155acc8fcSmrgbreak 400255acc8fcSmrgfi 400355acc8fcSmrgrm -f conftest.err conftest.i conftest.$ac_ext 40043da084b3Smrg 400555acc8fcSmrgdone 400655acc8fcSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 400755acc8fcSmrgrm -f conftest.i conftest.err conftest.$ac_ext 400855acc8fcSmrgif $ac_preproc_ok; then : 40093da084b3Smrg 401055acc8fcSmrgelse 401155acc8fcSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 401255acc8fcSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 401355acc8fcSmrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check 401455acc8fcSmrgSee \`config.log' for more details" "$LINENO" 5; } 401555acc8fcSmrgfi 40163da084b3Smrg 40173da084b3Smrgac_ext=c 40183da084b3Smrgac_cpp='$CPP $CPPFLAGS' 40193da084b3Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40203da084b3Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40213da084b3Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 40223da084b3Smrg 40233da084b3Smrg 402455acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 402555acc8fcSmrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 402655acc8fcSmrgif ${ac_cv_path_GREP+:} false; then : 402755acc8fcSmrg $as_echo_n "(cached) " >&6 402855acc8fcSmrgelse 402955acc8fcSmrg if test -z "$GREP"; then 403055acc8fcSmrg ac_path_GREP_found=false 403155acc8fcSmrg # Loop through the user's path and test for each of PROGNAME-LIST 403255acc8fcSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 403355acc8fcSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 403455acc8fcSmrgdo 403555acc8fcSmrg IFS=$as_save_IFS 403655acc8fcSmrg test -z "$as_dir" && as_dir=. 403755acc8fcSmrg for ac_prog in grep ggrep; do 403855acc8fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 403955acc8fcSmrg ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 404055acc8fcSmrg { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 404155acc8fcSmrg# Check for GNU ac_path_GREP and select it if it is found. 404255acc8fcSmrg # Check for GNU $ac_path_GREP 404355acc8fcSmrgcase `"$ac_path_GREP" --version 2>&1` in 404455acc8fcSmrg*GNU*) 404555acc8fcSmrg ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 404655acc8fcSmrg*) 404755acc8fcSmrg ac_count=0 404855acc8fcSmrg $as_echo_n 0123456789 >"conftest.in" 404955acc8fcSmrg while : 405055acc8fcSmrg do 405155acc8fcSmrg cat "conftest.in" "conftest.in" >"conftest.tmp" 405255acc8fcSmrg mv "conftest.tmp" "conftest.in" 405355acc8fcSmrg cp "conftest.in" "conftest.nl" 405455acc8fcSmrg $as_echo 'GREP' >> "conftest.nl" 405555acc8fcSmrg "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 405655acc8fcSmrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 405755acc8fcSmrg as_fn_arith $ac_count + 1 && ac_count=$as_val 405855acc8fcSmrg if test $ac_count -gt ${ac_path_GREP_max-0}; then 405955acc8fcSmrg # Best one so far, save it but keep looking for a better one 406055acc8fcSmrg ac_cv_path_GREP="$ac_path_GREP" 406155acc8fcSmrg ac_path_GREP_max=$ac_count 406255acc8fcSmrg fi 406355acc8fcSmrg # 10*(2^10) chars as input seems more than enough 406455acc8fcSmrg test $ac_count -gt 10 && break 406555acc8fcSmrg done 406655acc8fcSmrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 406755acc8fcSmrgesac 4068d63fdb69Smrg 406955acc8fcSmrg $ac_path_GREP_found && break 3 407055acc8fcSmrg done 407155acc8fcSmrg done 407255acc8fcSmrg done 407355acc8fcSmrgIFS=$as_save_IFS 407455acc8fcSmrg if test -z "$ac_cv_path_GREP"; then 407555acc8fcSmrg as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 40763da084b3Smrg fi 407755acc8fcSmrgelse 407855acc8fcSmrg ac_cv_path_GREP=$GREP 40793da084b3Smrgfi 40803da084b3Smrg 408155acc8fcSmrgfi 408255acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 408355acc8fcSmrg$as_echo "$ac_cv_path_GREP" >&6; } 408455acc8fcSmrg GREP="$ac_cv_path_GREP" 40853da084b3Smrg 40863da084b3Smrg 408755acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 408855acc8fcSmrg$as_echo_n "checking for egrep... " >&6; } 408955acc8fcSmrgif ${ac_cv_path_EGREP+:} false; then : 4090d63fdb69Smrg $as_echo_n "(cached) " >&6 40913da084b3Smrgelse 409255acc8fcSmrg if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 409355acc8fcSmrg then ac_cv_path_EGREP="$GREP -E" 409455acc8fcSmrg else 409555acc8fcSmrg if test -z "$EGREP"; then 409655acc8fcSmrg ac_path_EGREP_found=false 409755acc8fcSmrg # Loop through the user's path and test for each of PROGNAME-LIST 40983da084b3Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 409955acc8fcSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 41003da084b3Smrgdo 41013da084b3Smrg IFS=$as_save_IFS 41023da084b3Smrg test -z "$as_dir" && as_dir=. 410355acc8fcSmrg for ac_prog in egrep; do 410455acc8fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 410555acc8fcSmrg ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 410655acc8fcSmrg { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 410755acc8fcSmrg# Check for GNU ac_path_EGREP and select it if it is found. 410855acc8fcSmrg # Check for GNU $ac_path_EGREP 410955acc8fcSmrgcase `"$ac_path_EGREP" --version 2>&1` in 411055acc8fcSmrg*GNU*) 411155acc8fcSmrg ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 411255acc8fcSmrg*) 411355acc8fcSmrg ac_count=0 411455acc8fcSmrg $as_echo_n 0123456789 >"conftest.in" 411555acc8fcSmrg while : 411655acc8fcSmrg do 411755acc8fcSmrg cat "conftest.in" "conftest.in" >"conftest.tmp" 411855acc8fcSmrg mv "conftest.tmp" "conftest.in" 411955acc8fcSmrg cp "conftest.in" "conftest.nl" 412055acc8fcSmrg $as_echo 'EGREP' >> "conftest.nl" 412155acc8fcSmrg "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 412255acc8fcSmrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 412355acc8fcSmrg as_fn_arith $ac_count + 1 && ac_count=$as_val 412455acc8fcSmrg if test $ac_count -gt ${ac_path_EGREP_max-0}; then 412555acc8fcSmrg # Best one so far, save it but keep looking for a better one 412655acc8fcSmrg ac_cv_path_EGREP="$ac_path_EGREP" 412755acc8fcSmrg ac_path_EGREP_max=$ac_count 412855acc8fcSmrg fi 412955acc8fcSmrg # 10*(2^10) chars as input seems more than enough 413055acc8fcSmrg test $ac_count -gt 10 && break 413155acc8fcSmrg done 413255acc8fcSmrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 413355acc8fcSmrgesac 41343da084b3Smrg 413555acc8fcSmrg $ac_path_EGREP_found && break 3 413655acc8fcSmrg done 413755acc8fcSmrg done 413855acc8fcSmrg done 413955acc8fcSmrgIFS=$as_save_IFS 414055acc8fcSmrg if test -z "$ac_cv_path_EGREP"; then 414155acc8fcSmrg as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 41423da084b3Smrg fi 414355acc8fcSmrgelse 414455acc8fcSmrg ac_cv_path_EGREP=$EGREP 41453da084b3Smrgfi 41463da084b3Smrg 414755acc8fcSmrg fi 414855acc8fcSmrgfi 414955acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 415055acc8fcSmrg$as_echo "$ac_cv_path_EGREP" >&6; } 415155acc8fcSmrg EGREP="$ac_cv_path_EGREP" 41523da084b3Smrg 41533da084b3Smrg 415455acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 415555acc8fcSmrg$as_echo_n "checking for ANSI C header files... " >&6; } 415655acc8fcSmrgif ${ac_cv_header_stdc+:} false; then : 415755acc8fcSmrg $as_echo_n "(cached) " >&6 415855acc8fcSmrgelse 415955acc8fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 416055acc8fcSmrg/* end confdefs.h. */ 416155acc8fcSmrg#include <stdlib.h> 416255acc8fcSmrg#include <stdarg.h> 416355acc8fcSmrg#include <string.h> 416455acc8fcSmrg#include <float.h> 41653da084b3Smrg 416655acc8fcSmrgint 416755acc8fcSmrgmain () 416855acc8fcSmrg{ 4169d63fdb69Smrg 417055acc8fcSmrg ; 417155acc8fcSmrg return 0; 417255acc8fcSmrg} 417355acc8fcSmrg_ACEOF 417455acc8fcSmrgif ac_fn_c_try_compile "$LINENO"; then : 417555acc8fcSmrg ac_cv_header_stdc=yes 417655acc8fcSmrgelse 417755acc8fcSmrg ac_cv_header_stdc=no 417855acc8fcSmrgfi 417955acc8fcSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41803da084b3Smrg 418155acc8fcSmrgif test $ac_cv_header_stdc = yes; then 418255acc8fcSmrg # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 418355acc8fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 418455acc8fcSmrg/* end confdefs.h. */ 418555acc8fcSmrg#include <string.h> 418655acc8fcSmrg 418755acc8fcSmrg_ACEOF 418855acc8fcSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 418955acc8fcSmrg $EGREP "memchr" >/dev/null 2>&1; then : 41903da084b3Smrg 41913da084b3Smrgelse 419255acc8fcSmrg ac_cv_header_stdc=no 41933da084b3Smrgfi 419455acc8fcSmrgrm -f conftest* 41953da084b3Smrg 419655acc8fcSmrgfi 41973da084b3Smrg 419855acc8fcSmrgif test $ac_cv_header_stdc = yes; then 419955acc8fcSmrg # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 420055acc8fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 420155acc8fcSmrg/* end confdefs.h. */ 420255acc8fcSmrg#include <stdlib.h> 420355acc8fcSmrg 420455acc8fcSmrg_ACEOF 420555acc8fcSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 420655acc8fcSmrg $EGREP "free" >/dev/null 2>&1; then : 420755acc8fcSmrg 420855acc8fcSmrgelse 420955acc8fcSmrg ac_cv_header_stdc=no 4210d63fdb69Smrgfi 421155acc8fcSmrgrm -f conftest* 421255acc8fcSmrg 421355acc8fcSmrgfi 421455acc8fcSmrg 421555acc8fcSmrgif test $ac_cv_header_stdc = yes; then 421655acc8fcSmrg # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 421755acc8fcSmrg if test "$cross_compiling" = yes; then : 421855acc8fcSmrg : 42193da084b3Smrgelse 422055acc8fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 422155acc8fcSmrg/* end confdefs.h. */ 422255acc8fcSmrg#include <ctype.h> 422355acc8fcSmrg#include <stdlib.h> 422455acc8fcSmrg#if ((' ' & 0x0FF) == 0x020) 422555acc8fcSmrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 422655acc8fcSmrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 422755acc8fcSmrg#else 422855acc8fcSmrg# define ISLOWER(c) \ 422955acc8fcSmrg (('a' <= (c) && (c) <= 'i') \ 423055acc8fcSmrg || ('j' <= (c) && (c) <= 'r') \ 423155acc8fcSmrg || ('s' <= (c) && (c) <= 'z')) 423255acc8fcSmrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 423355acc8fcSmrg#endif 423455acc8fcSmrg 423555acc8fcSmrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 423655acc8fcSmrgint 423755acc8fcSmrgmain () 423855acc8fcSmrg{ 423955acc8fcSmrg int i; 424055acc8fcSmrg for (i = 0; i < 256; i++) 424155acc8fcSmrg if (XOR (islower (i), ISLOWER (i)) 424255acc8fcSmrg || toupper (i) != TOUPPER (i)) 424355acc8fcSmrg return 2; 424455acc8fcSmrg return 0; 424555acc8fcSmrg} 424655acc8fcSmrg_ACEOF 424755acc8fcSmrgif ac_fn_c_try_run "$LINENO"; then : 424855acc8fcSmrg 424955acc8fcSmrgelse 425055acc8fcSmrg ac_cv_header_stdc=no 425155acc8fcSmrgfi 425255acc8fcSmrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 425355acc8fcSmrg conftest.$ac_objext conftest.beam conftest.$ac_ext 4254d63fdb69Smrgfi 4255d63fdb69Smrg 4256d63fdb69Smrgfi 425755acc8fcSmrgfi 425855acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 425955acc8fcSmrg$as_echo "$ac_cv_header_stdc" >&6; } 426055acc8fcSmrgif test $ac_cv_header_stdc = yes; then 4261d63fdb69Smrg 426255acc8fcSmrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h 426355acc8fcSmrg 426455acc8fcSmrgfi 426555acc8fcSmrg 426655acc8fcSmrg# On IRIX 5.3, sys/types and inttypes.h are conflicting. 426755acc8fcSmrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 426855acc8fcSmrg inttypes.h stdint.h unistd.h 426955acc8fcSmrgdo : 427055acc8fcSmrg as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 427155acc8fcSmrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 427255acc8fcSmrg" 427355acc8fcSmrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 427455acc8fcSmrg cat >>confdefs.h <<_ACEOF 427555acc8fcSmrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 427655acc8fcSmrg_ACEOF 427755acc8fcSmrg 427855acc8fcSmrgfi 427955acc8fcSmrg 428055acc8fcSmrgdone 428155acc8fcSmrg 428255acc8fcSmrg 428355acc8fcSmrg 428455acc8fcSmrg 428555acc8fcSmrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 428655acc8fcSmrg if test -n "$ac_tool_prefix"; then 428755acc8fcSmrg # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 428855acc8fcSmrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2 428955acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4290d63fdb69Smrg$as_echo_n "checking for $ac_word... " >&6; } 429155acc8fcSmrgif ${ac_cv_path_PKG_CONFIG+:} false; then : 4292d63fdb69Smrg $as_echo_n "(cached) " >&6 4293d63fdb69Smrgelse 429455acc8fcSmrg case $PKG_CONFIG in 429555acc8fcSmrg [\\/]* | ?:[\\/]*) 429655acc8fcSmrg ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 429755acc8fcSmrg ;; 429855acc8fcSmrg *) 429955acc8fcSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4300d63fdb69Smrgfor as_dir in $PATH 4301d63fdb69Smrgdo 4302d63fdb69Smrg IFS=$as_save_IFS 4303d63fdb69Smrg test -z "$as_dir" && as_dir=. 430455acc8fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 4305d63fdb69Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 430655acc8fcSmrg ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 430755acc8fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4308d63fdb69Smrg break 2 4309d63fdb69Smrg fi 4310d63fdb69Smrgdone 431155acc8fcSmrg done 4312d63fdb69SmrgIFS=$as_save_IFS 4313d63fdb69Smrg 431455acc8fcSmrg ;; 431555acc8fcSmrgesac 4316d63fdb69Smrgfi 431755acc8fcSmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG 431855acc8fcSmrgif test -n "$PKG_CONFIG"; then 431955acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 432055acc8fcSmrg$as_echo "$PKG_CONFIG" >&6; } 4321d63fdb69Smrgelse 432255acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4323d63fdb69Smrg$as_echo "no" >&6; } 4324d63fdb69Smrgfi 4325d63fdb69Smrg 4326d63fdb69Smrg 4327d63fdb69Smrgfi 432855acc8fcSmrgif test -z "$ac_cv_path_PKG_CONFIG"; then 432955acc8fcSmrg ac_pt_PKG_CONFIG=$PKG_CONFIG 433055acc8fcSmrg # Extract the first word of "pkg-config", so it can be a program name with args. 433155acc8fcSmrgset dummy pkg-config; ac_word=$2 433255acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4333d63fdb69Smrg$as_echo_n "checking for $ac_word... " >&6; } 433455acc8fcSmrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4335d63fdb69Smrg $as_echo_n "(cached) " >&6 4336d63fdb69Smrgelse 433755acc8fcSmrg case $ac_pt_PKG_CONFIG in 433855acc8fcSmrg [\\/]* | ?:[\\/]*) 433955acc8fcSmrg ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 434055acc8fcSmrg ;; 434155acc8fcSmrg *) 434255acc8fcSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4343d63fdb69Smrgfor as_dir in $PATH 4344d63fdb69Smrgdo 4345d63fdb69Smrg IFS=$as_save_IFS 4346d63fdb69Smrg test -z "$as_dir" && as_dir=. 434755acc8fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 4348d63fdb69Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 434955acc8fcSmrg ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 435055acc8fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4351d63fdb69Smrg break 2 4352d63fdb69Smrg fi 4353d63fdb69Smrgdone 435455acc8fcSmrg done 4355d63fdb69SmrgIFS=$as_save_IFS 4356d63fdb69Smrg 435755acc8fcSmrg ;; 435855acc8fcSmrgesac 4359d63fdb69Smrgfi 436055acc8fcSmrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 436155acc8fcSmrgif test -n "$ac_pt_PKG_CONFIG"; then 436255acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 436355acc8fcSmrg$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4364d63fdb69Smrgelse 436555acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4366d63fdb69Smrg$as_echo "no" >&6; } 4367d63fdb69Smrgfi 4368d63fdb69Smrg 436955acc8fcSmrg if test "x$ac_pt_PKG_CONFIG" = x; then 437055acc8fcSmrg PKG_CONFIG="" 4371d63fdb69Smrg else 4372d63fdb69Smrg case $cross_compiling:$ac_tool_warned in 4373d63fdb69Smrgyes:) 437455acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4375d63fdb69Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4376d63fdb69Smrgac_tool_warned=yes ;; 4377d63fdb69Smrgesac 437855acc8fcSmrg PKG_CONFIG=$ac_pt_PKG_CONFIG 4379d63fdb69Smrg fi 4380d63fdb69Smrgelse 438155acc8fcSmrg PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4382d63fdb69Smrgfi 4383d63fdb69Smrg 4384d63fdb69Smrgfi 438555acc8fcSmrgif test -n "$PKG_CONFIG"; then 438655acc8fcSmrg _pkg_min_version=0.9.0 438755acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 438855acc8fcSmrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 438955acc8fcSmrg if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 439055acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 439155acc8fcSmrg$as_echo "yes" >&6; } 439255acc8fcSmrg else 439355acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 439455acc8fcSmrg$as_echo "no" >&6; } 439555acc8fcSmrg PKG_CONFIG="" 439655acc8fcSmrg fi 4397d63fdb69Smrg 439855acc8fcSmrgfi 439955acc8fcSmrg# Make sure we can run config.sub. 440055acc8fcSmrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 440155acc8fcSmrg as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 440255acc8fcSmrg 440355acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 440455acc8fcSmrg$as_echo_n "checking build system type... " >&6; } 440555acc8fcSmrgif ${ac_cv_build+:} false; then : 4406d63fdb69Smrg $as_echo_n "(cached) " >&6 4407d63fdb69Smrgelse 440855acc8fcSmrg ac_build_alias=$build_alias 440955acc8fcSmrgtest "x$ac_build_alias" = x && 441055acc8fcSmrg ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 441155acc8fcSmrgtest "x$ac_build_alias" = x && 441255acc8fcSmrg as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 441355acc8fcSmrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 441455acc8fcSmrg as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4415d63fdb69Smrg 4416d63fdb69Smrgfi 441755acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 441855acc8fcSmrg$as_echo "$ac_cv_build" >&6; } 441955acc8fcSmrgcase $ac_cv_build in 442055acc8fcSmrg*-*-*) ;; 442155acc8fcSmrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 442255acc8fcSmrgesac 442355acc8fcSmrgbuild=$ac_cv_build 442455acc8fcSmrgac_save_IFS=$IFS; IFS='-' 442555acc8fcSmrgset x $ac_cv_build 442655acc8fcSmrgshift 442755acc8fcSmrgbuild_cpu=$1 442855acc8fcSmrgbuild_vendor=$2 442955acc8fcSmrgshift; shift 443055acc8fcSmrg# Remember, the first character of IFS is used to create $*, 443155acc8fcSmrg# except with old shells: 443255acc8fcSmrgbuild_os=$* 443355acc8fcSmrgIFS=$ac_save_IFS 443455acc8fcSmrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4435d63fdb69Smrg 443655acc8fcSmrg 443755acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 443855acc8fcSmrg$as_echo_n "checking host system type... " >&6; } 443955acc8fcSmrgif ${ac_cv_host+:} false; then : 444055acc8fcSmrg $as_echo_n "(cached) " >&6 444155acc8fcSmrgelse 444255acc8fcSmrg if test "x$host_alias" = x; then 444355acc8fcSmrg ac_cv_host=$ac_cv_build 444455acc8fcSmrgelse 444555acc8fcSmrg ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 444655acc8fcSmrg as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 44473da084b3Smrgfi 4448d63fdb69Smrg 444955acc8fcSmrgfi 445055acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 445155acc8fcSmrg$as_echo "$ac_cv_host" >&6; } 445255acc8fcSmrgcase $ac_cv_host in 445355acc8fcSmrg*-*-*) ;; 445455acc8fcSmrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4455d63fdb69Smrgesac 445655acc8fcSmrghost=$ac_cv_host 445755acc8fcSmrgac_save_IFS=$IFS; IFS='-' 445855acc8fcSmrgset x $ac_cv_host 445955acc8fcSmrgshift 446055acc8fcSmrghost_cpu=$1 446155acc8fcSmrghost_vendor=$2 446255acc8fcSmrgshift; shift 446355acc8fcSmrg# Remember, the first character of IFS is used to create $*, 446455acc8fcSmrg# except with old shells: 446555acc8fcSmrghost_os=$* 446655acc8fcSmrgIFS=$ac_save_IFS 446755acc8fcSmrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 44683da084b3Smrg 446955acc8fcSmrg 447055acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 447155acc8fcSmrg$as_echo_n "checking for a sed that does not truncate output... " >&6; } 447255acc8fcSmrgif ${ac_cv_path_SED+:} false; then : 4473d63fdb69Smrg $as_echo_n "(cached) " >&6 44743da084b3Smrgelse 447555acc8fcSmrg ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 447655acc8fcSmrg for ac_i in 1 2 3 4 5 6 7; do 447755acc8fcSmrg ac_script="$ac_script$as_nl$ac_script" 447855acc8fcSmrg done 447955acc8fcSmrg echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 448055acc8fcSmrg { ac_script=; unset ac_script;} 448155acc8fcSmrg if test -z "$SED"; then 448255acc8fcSmrg ac_path_SED_found=false 448355acc8fcSmrg # Loop through the user's path and test for each of PROGNAME-LIST 448455acc8fcSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44853da084b3Smrgfor as_dir in $PATH 44863da084b3Smrgdo 44873da084b3Smrg IFS=$as_save_IFS 44883da084b3Smrg test -z "$as_dir" && as_dir=. 448955acc8fcSmrg for ac_prog in sed gsed; do 449055acc8fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 449155acc8fcSmrg ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 449255acc8fcSmrg { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 449355acc8fcSmrg# Check for GNU ac_path_SED and select it if it is found. 449455acc8fcSmrg # Check for GNU $ac_path_SED 449555acc8fcSmrgcase `"$ac_path_SED" --version 2>&1` in 449655acc8fcSmrg*GNU*) 449755acc8fcSmrg ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 449855acc8fcSmrg*) 449955acc8fcSmrg ac_count=0 450055acc8fcSmrg $as_echo_n 0123456789 >"conftest.in" 450155acc8fcSmrg while : 450255acc8fcSmrg do 450355acc8fcSmrg cat "conftest.in" "conftest.in" >"conftest.tmp" 450455acc8fcSmrg mv "conftest.tmp" "conftest.in" 450555acc8fcSmrg cp "conftest.in" "conftest.nl" 450655acc8fcSmrg $as_echo '' >> "conftest.nl" 450755acc8fcSmrg "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 450855acc8fcSmrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 450955acc8fcSmrg as_fn_arith $ac_count + 1 && ac_count=$as_val 451055acc8fcSmrg if test $ac_count -gt ${ac_path_SED_max-0}; then 451155acc8fcSmrg # Best one so far, save it but keep looking for a better one 451255acc8fcSmrg ac_cv_path_SED="$ac_path_SED" 451355acc8fcSmrg ac_path_SED_max=$ac_count 451455acc8fcSmrg fi 451555acc8fcSmrg # 10*(2^10) chars as input seems more than enough 451655acc8fcSmrg test $ac_count -gt 10 && break 451755acc8fcSmrg done 451855acc8fcSmrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 451955acc8fcSmrgesac 45203da084b3Smrg 452155acc8fcSmrg $ac_path_SED_found && break 3 452255acc8fcSmrg done 452355acc8fcSmrg done 452455acc8fcSmrg done 452555acc8fcSmrgIFS=$as_save_IFS 452655acc8fcSmrg if test -z "$ac_cv_path_SED"; then 452755acc8fcSmrg as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 452855acc8fcSmrg fi 45293da084b3Smrgelse 453055acc8fcSmrg ac_cv_path_SED=$SED 453155acc8fcSmrgfi 453255acc8fcSmrg 45333da084b3Smrgfi 453455acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 453555acc8fcSmrg$as_echo "$ac_cv_path_SED" >&6; } 453655acc8fcSmrg SED="$ac_cv_path_SED" 453755acc8fcSmrg rm -f conftest.sed 45383da084b3Smrg 45393da084b3Smrg 45403da084b3Smrg 454155acc8fcSmrg 454255acc8fcSmrg 454355acc8fcSmrgif test "x$GCC" = xyes ; then 454455acc8fcSmrg CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 454555acc8fcSmrg-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 454655acc8fcSmrg-Wbad-function-cast -Wformat=2" 454755acc8fcSmrg case `$CC -dumpversion` in 454855acc8fcSmrg 3.4.* | 4.*) 454955acc8fcSmrg CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" 455055acc8fcSmrg ;; 455155acc8fcSmrg esac 45523da084b3Smrgelse 455355acc8fcSmrg ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 455455acc8fcSmrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 455555acc8fcSmrg SUNCC="yes" 45563da084b3Smrgelse 455755acc8fcSmrg SUNCC="no" 45583da084b3Smrgfi 45593da084b3Smrg 456055acc8fcSmrg if test "x$SUNCC" = "xyes"; then 456155acc8fcSmrg CWARNFLAGS="-v" 456255acc8fcSmrg fi 45633da084b3Smrgfi 45643da084b3Smrg 456555acc8fcSmrg 456655acc8fcSmrg 456755acc8fcSmrg# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89 456855acc8fcSmrg 456955acc8fcSmrg 457055acc8fcSmrg 457155acc8fcSmrg# Check whether --enable-strict-compilation was given. 457255acc8fcSmrgif test "${enable_strict_compilation+set}" = set; then : 457355acc8fcSmrg enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 457455acc8fcSmrgelse 457555acc8fcSmrg STRICT_COMPILE=no 45763da084b3Smrgfi 45773da084b3Smrg 457855acc8fcSmrgif test "x$STRICT_COMPILE" = "xyes"; then 457955acc8fcSmrg ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 458055acc8fcSmrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 458155acc8fcSmrg SUNCC="yes" 458255acc8fcSmrgelse 458355acc8fcSmrg SUNCC="no" 458455acc8fcSmrgfi 458555acc8fcSmrg 458655acc8fcSmrg ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 458755acc8fcSmrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 458855acc8fcSmrg INTELCC="yes" 458955acc8fcSmrgelse 459055acc8fcSmrg INTELCC="no" 459155acc8fcSmrgfi 459255acc8fcSmrg 459355acc8fcSmrg if test "x$GCC" = xyes ; then 459455acc8fcSmrg STRICT_CFLAGS="-pedantic -Werror" 459555acc8fcSmrg elif test "x$SUNCC" = "xyes"; then 459655acc8fcSmrg STRICT_CFLAGS="-errwarn" 459755acc8fcSmrg elif test "x$INTELCC" = "xyes"; then 459855acc8fcSmrg STRICT_CFLAGS="-Werror" 459955acc8fcSmrg fi 46003da084b3Smrgfi 460155acc8fcSmrgCWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 46023da084b3Smrg 46033da084b3Smrg 46043da084b3Smrg 46053da084b3Smrg 46063da084b3Smrgcat >>confdefs.h <<_ACEOF 460755acc8fcSmrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 46083da084b3Smrg_ACEOF 46093da084b3Smrg 461055acc8fcSmrg PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 461155acc8fcSmrg if test "x$PVM" = "x"; then 461255acc8fcSmrg PVM="0" 461355acc8fcSmrg fi 46143da084b3Smrg 46153da084b3Smrgcat >>confdefs.h <<_ACEOF 461655acc8fcSmrg#define PACKAGE_VERSION_MINOR $PVM 46173da084b3Smrg_ACEOF 46183da084b3Smrg 461955acc8fcSmrg PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 462055acc8fcSmrg if test "x$PVP" = "x"; then 462155acc8fcSmrg PVP="0" 462255acc8fcSmrg fi 46233da084b3Smrg 462455acc8fcSmrgcat >>confdefs.h <<_ACEOF 462555acc8fcSmrg#define PACKAGE_VERSION_PATCHLEVEL $PVP 462655acc8fcSmrg_ACEOF 46273da084b3Smrg 46283da084b3Smrg 46293da084b3Smrg 463055acc8fcSmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 463155acc8fcSmrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 463255acc8fcSmrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 463355acc8fcSmrgecho 'git directory not found: installing possibly empty changelog.' >&2)" 46343da084b3Smrg 46353da084b3Smrg 46363da084b3Smrg 46373da084b3Smrg 463855acc8fcSmrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 463955acc8fcSmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 464055acc8fcSmrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 464155acc8fcSmrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 464255acc8fcSmrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 46433da084b3Smrg 46443da084b3Smrg 46453da084b3Smrg 4646d63fdb69Smrg 4647d63fdb69Smrg 4648d63fdb69Smrg 464955acc8fcSmrgif test x$APP_MAN_SUFFIX = x ; then 465055acc8fcSmrg APP_MAN_SUFFIX=1 465155acc8fcSmrgfi 465255acc8fcSmrgif test x$APP_MAN_DIR = x ; then 465355acc8fcSmrg APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 465455acc8fcSmrgfi 4655d63fdb69Smrg 465655acc8fcSmrgif test x$LIB_MAN_SUFFIX = x ; then 465755acc8fcSmrg LIB_MAN_SUFFIX=3 465855acc8fcSmrgfi 465955acc8fcSmrgif test x$LIB_MAN_DIR = x ; then 466055acc8fcSmrg LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 466155acc8fcSmrgfi 4662d63fdb69Smrg 466355acc8fcSmrgif test x$FILE_MAN_SUFFIX = x ; then 466455acc8fcSmrg case $host_os in 466555acc8fcSmrg solaris*) FILE_MAN_SUFFIX=4 ;; 466655acc8fcSmrg *) FILE_MAN_SUFFIX=5 ;; 466755acc8fcSmrg esac 466855acc8fcSmrgfi 466955acc8fcSmrgif test x$FILE_MAN_DIR = x ; then 467055acc8fcSmrg FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 467155acc8fcSmrgfi 4672d63fdb69Smrg 467355acc8fcSmrgif test x$MISC_MAN_SUFFIX = x ; then 467455acc8fcSmrg case $host_os in 467555acc8fcSmrg solaris*) MISC_MAN_SUFFIX=5 ;; 467655acc8fcSmrg *) MISC_MAN_SUFFIX=7 ;; 467755acc8fcSmrg esac 467855acc8fcSmrgfi 467955acc8fcSmrgif test x$MISC_MAN_DIR = x ; then 468055acc8fcSmrg MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 468155acc8fcSmrgfi 4682d63fdb69Smrg 468355acc8fcSmrgif test x$DRIVER_MAN_SUFFIX = x ; then 468455acc8fcSmrg case $host_os in 468555acc8fcSmrg solaris*) DRIVER_MAN_SUFFIX=7 ;; 468655acc8fcSmrg *) DRIVER_MAN_SUFFIX=4 ;; 468755acc8fcSmrg esac 468855acc8fcSmrgfi 468955acc8fcSmrgif test x$DRIVER_MAN_DIR = x ; then 469055acc8fcSmrg DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 4691d63fdb69Smrgfi 4692d63fdb69Smrg 469355acc8fcSmrgif test x$ADMIN_MAN_SUFFIX = x ; then 469455acc8fcSmrg case $host_os in 469555acc8fcSmrg solaris*) ADMIN_MAN_SUFFIX=1m ;; 469655acc8fcSmrg *) ADMIN_MAN_SUFFIX=8 ;; 469755acc8fcSmrg esac 469855acc8fcSmrgfi 469955acc8fcSmrgif test x$ADMIN_MAN_DIR = x ; then 470055acc8fcSmrg ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 4701d63fdb69Smrgfi 4702d63fdb69Smrg 4703d63fdb69Smrg 4704d63fdb69Smrg 4705d63fdb69Smrg 4706d63fdb69Smrg 4707d63fdb69Smrg 4708d63fdb69Smrg 4709d63fdb69Smrg 4710d63fdb69Smrg 4711d63fdb69Smrg 4712d63fdb69Smrg 4713d63fdb69Smrg 4714d63fdb69Smrg 4715d63fdb69Smrg 4716d63fdb69Smrg 471755acc8fcSmrgXORG_MAN_PAGE="X Version 11" 471855acc8fcSmrg 471955acc8fcSmrgMAN_SUBSTS="\ 472055acc8fcSmrg -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 472155acc8fcSmrg -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 472255acc8fcSmrg -e 's|__xservername__|Xorg|g' \ 472355acc8fcSmrg -e 's|__xconfigfile__|xorg.conf|g' \ 472455acc8fcSmrg -e 's|__projectroot__|\$(prefix)|g' \ 472555acc8fcSmrg -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 472655acc8fcSmrg -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 472755acc8fcSmrg -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 472855acc8fcSmrg -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 472955acc8fcSmrg -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 473055acc8fcSmrg -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 473155acc8fcSmrg -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 473255acc8fcSmrg 473355acc8fcSmrg 473455acc8fcSmrg 473555acc8fcSmrg# Check whether --enable-silent-rules was given. 473655acc8fcSmrgif test "${enable_silent_rules+set}" = set; then : 473755acc8fcSmrg enableval=$enable_silent_rules; 473855acc8fcSmrgfi 473955acc8fcSmrg 474055acc8fcSmrgcase $enable_silent_rules in 474155acc8fcSmrgyes) AM_DEFAULT_VERBOSITY=0;; 474255acc8fcSmrgno) AM_DEFAULT_VERBOSITY=1;; 474355acc8fcSmrg*) AM_DEFAULT_VERBOSITY=0;; 474455acc8fcSmrgesac 474555acc8fcSmrgAM_BACKSLASH='\' 474655acc8fcSmrg 474755acc8fcSmrg 4748d63fdb69Smrgac_config_headers="$ac_config_headers config.h" 4749d63fdb69Smrg 4750d63fdb69Smrg 4751d63fdb69Smrg# Check for progs 4752d63fdb69Smrgac_ext=c 4753d63fdb69Smrgac_cpp='$CPP $CPPFLAGS' 4754d63fdb69Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4755d63fdb69Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4756d63fdb69Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 4757d63fdb69Smrgif test -n "$ac_tool_prefix"; then 4758d63fdb69Smrg # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4759d63fdb69Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2 476055acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4761d63fdb69Smrg$as_echo_n "checking for $ac_word... " >&6; } 476255acc8fcSmrgif ${ac_cv_prog_CC+:} false; then : 4763d63fdb69Smrg $as_echo_n "(cached) " >&6 4764d63fdb69Smrgelse 4765d63fdb69Smrg if test -n "$CC"; then 4766d63fdb69Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 47673da084b3Smrgelse 47683da084b3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47693da084b3Smrgfor as_dir in $PATH 47703da084b3Smrgdo 47713da084b3Smrg IFS=$as_save_IFS 47723da084b3Smrg test -z "$as_dir" && as_dir=. 477355acc8fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 4774d63fdb69Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4775d63fdb69Smrg ac_cv_prog_CC="${ac_tool_prefix}gcc" 477655acc8fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47773da084b3Smrg break 2 47783da084b3Smrg fi 47793da084b3Smrgdone 478055acc8fcSmrg done 47813da084b3SmrgIFS=$as_save_IFS 47823da084b3Smrg 47833da084b3Smrgfi 47843da084b3Smrgfi 4785d63fdb69SmrgCC=$ac_cv_prog_CC 4786d63fdb69Smrgif test -n "$CC"; then 478755acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4788d63fdb69Smrg$as_echo "$CC" >&6; } 47893da084b3Smrgelse 479055acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4791d63fdb69Smrg$as_echo "no" >&6; } 47923da084b3Smrgfi 47933da084b3Smrg 47943da084b3Smrg 47953da084b3Smrgfi 47963da084b3Smrgif test -z "$ac_cv_prog_CC"; then 47973da084b3Smrg ac_ct_CC=$CC 47983da084b3Smrg # Extract the first word of "gcc", so it can be a program name with args. 47993da084b3Smrgset dummy gcc; ac_word=$2 480055acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4801d63fdb69Smrg$as_echo_n "checking for $ac_word... " >&6; } 480255acc8fcSmrgif ${ac_cv_prog_ac_ct_CC+:} false; then : 4803d63fdb69Smrg $as_echo_n "(cached) " >&6 48043da084b3Smrgelse 48053da084b3Smrg if test -n "$ac_ct_CC"; then 48063da084b3Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 48073da084b3Smrgelse 48083da084b3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 48093da084b3Smrgfor as_dir in $PATH 48103da084b3Smrgdo 48113da084b3Smrg IFS=$as_save_IFS 48123da084b3Smrg test -z "$as_dir" && as_dir=. 481355acc8fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 4814d63fdb69Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 48153da084b3Smrg ac_cv_prog_ac_ct_CC="gcc" 481655acc8fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 48173da084b3Smrg break 2 48183da084b3Smrg fi 48193da084b3Smrgdone 482055acc8fcSmrg done 48213da084b3SmrgIFS=$as_save_IFS 48223da084b3Smrg 48233da084b3Smrgfi 48243da084b3Smrgfi 48253da084b3Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 48263da084b3Smrgif test -n "$ac_ct_CC"; then 482755acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4828d63fdb69Smrg$as_echo "$ac_ct_CC" >&6; } 48293da084b3Smrgelse 483055acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4831d63fdb69Smrg$as_echo "no" >&6; } 48323da084b3Smrgfi 48333da084b3Smrg 48343da084b3Smrg if test "x$ac_ct_CC" = x; then 48353da084b3Smrg CC="" 48363da084b3Smrg else 48373da084b3Smrg case $cross_compiling:$ac_tool_warned in 48383da084b3Smrgyes:) 483955acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4840d63fdb69Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 48413da084b3Smrgac_tool_warned=yes ;; 48423da084b3Smrgesac 48433da084b3Smrg CC=$ac_ct_CC 48443da084b3Smrg fi 48453da084b3Smrgelse 48463da084b3Smrg CC="$ac_cv_prog_CC" 48473da084b3Smrgfi 48483da084b3Smrg 48493da084b3Smrgif test -z "$CC"; then 48503da084b3Smrg if test -n "$ac_tool_prefix"; then 48513da084b3Smrg # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 48523da084b3Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2 485355acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4854d63fdb69Smrg$as_echo_n "checking for $ac_word... " >&6; } 485555acc8fcSmrgif ${ac_cv_prog_CC+:} false; then : 4856d63fdb69Smrg $as_echo_n "(cached) " >&6 48573da084b3Smrgelse 48583da084b3Smrg if test -n "$CC"; then 48593da084b3Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 48603da084b3Smrgelse 48613da084b3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 48623da084b3Smrgfor as_dir in $PATH 48633da084b3Smrgdo 48643da084b3Smrg IFS=$as_save_IFS 48653da084b3Smrg test -z "$as_dir" && as_dir=. 486655acc8fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 4867d63fdb69Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 48683da084b3Smrg ac_cv_prog_CC="${ac_tool_prefix}cc" 486955acc8fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 48703da084b3Smrg break 2 48713da084b3Smrg fi 48723da084b3Smrgdone 487355acc8fcSmrg done 48743da084b3SmrgIFS=$as_save_IFS 48753da084b3Smrg 48763da084b3Smrgfi 48773da084b3Smrgfi 48783da084b3SmrgCC=$ac_cv_prog_CC 48793da084b3Smrgif test -n "$CC"; then 488055acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4881d63fdb69Smrg$as_echo "$CC" >&6; } 48823da084b3Smrgelse 488355acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4884d63fdb69Smrg$as_echo "no" >&6; } 48853da084b3Smrgfi 48863da084b3Smrg 48873da084b3Smrg 48883da084b3Smrg fi 48893da084b3Smrgfi 48903da084b3Smrgif test -z "$CC"; then 48913da084b3Smrg # Extract the first word of "cc", so it can be a program name with args. 48923da084b3Smrgset dummy cc; ac_word=$2 489355acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4894d63fdb69Smrg$as_echo_n "checking for $ac_word... " >&6; } 489555acc8fcSmrgif ${ac_cv_prog_CC+:} false; then : 4896d63fdb69Smrg $as_echo_n "(cached) " >&6 48973da084b3Smrgelse 48983da084b3Smrg if test -n "$CC"; then 48993da084b3Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 49003da084b3Smrgelse 49013da084b3Smrg ac_prog_rejected=no 49023da084b3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 49033da084b3Smrgfor as_dir in $PATH 49043da084b3Smrgdo 49053da084b3Smrg IFS=$as_save_IFS 49063da084b3Smrg test -z "$as_dir" && as_dir=. 490755acc8fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 4908d63fdb69Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 49093da084b3Smrg if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 49103da084b3Smrg ac_prog_rejected=yes 49113da084b3Smrg continue 49123da084b3Smrg fi 49133da084b3Smrg ac_cv_prog_CC="cc" 491455acc8fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 49153da084b3Smrg break 2 49163da084b3Smrg fi 49173da084b3Smrgdone 491855acc8fcSmrg done 49193da084b3SmrgIFS=$as_save_IFS 49203da084b3Smrg 49213da084b3Smrgif test $ac_prog_rejected = yes; then 49223da084b3Smrg # We found a bogon in the path, so make sure we never use it. 49233da084b3Smrg set dummy $ac_cv_prog_CC 49243da084b3Smrg shift 49253da084b3Smrg if test $# != 0; then 49263da084b3Smrg # We chose a different compiler from the bogus one. 49273da084b3Smrg # However, it has the same basename, so the bogon will be chosen 49283da084b3Smrg # first if we set CC to just the basename; use the full file name. 49293da084b3Smrg shift 49303da084b3Smrg ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 49313da084b3Smrg fi 49323da084b3Smrgfi 49333da084b3Smrgfi 49343da084b3Smrgfi 49353da084b3SmrgCC=$ac_cv_prog_CC 49363da084b3Smrgif test -n "$CC"; then 493755acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4938d63fdb69Smrg$as_echo "$CC" >&6; } 49393da084b3Smrgelse 494055acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4941d63fdb69Smrg$as_echo "no" >&6; } 49423da084b3Smrgfi 49433da084b3Smrg 49443da084b3Smrg 49453da084b3Smrgfi 49463da084b3Smrgif test -z "$CC"; then 49473da084b3Smrg if test -n "$ac_tool_prefix"; then 49483da084b3Smrg for ac_prog in cl.exe 49493da084b3Smrg do 49503da084b3Smrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 49513da084b3Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2 495255acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4953d63fdb69Smrg$as_echo_n "checking for $ac_word... " >&6; } 495455acc8fcSmrgif ${ac_cv_prog_CC+:} false; then : 4955d63fdb69Smrg $as_echo_n "(cached) " >&6 49563da084b3Smrgelse 49573da084b3Smrg if test -n "$CC"; then 49583da084b3Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 49593da084b3Smrgelse 49603da084b3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 49613da084b3Smrgfor as_dir in $PATH 49623da084b3Smrgdo 49633da084b3Smrg IFS=$as_save_IFS 49643da084b3Smrg test -z "$as_dir" && as_dir=. 496555acc8fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 4966d63fdb69Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 49673da084b3Smrg ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 496855acc8fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 49693da084b3Smrg break 2 49703da084b3Smrg fi 49713da084b3Smrgdone 497255acc8fcSmrg done 49733da084b3SmrgIFS=$as_save_IFS 49743da084b3Smrg 49753da084b3Smrgfi 49763da084b3Smrgfi 49773da084b3SmrgCC=$ac_cv_prog_CC 49783da084b3Smrgif test -n "$CC"; then 497955acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4980d63fdb69Smrg$as_echo "$CC" >&6; } 49813da084b3Smrgelse 498255acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4983d63fdb69Smrg$as_echo "no" >&6; } 49843da084b3Smrgfi 49853da084b3Smrg 49863da084b3Smrg 49873da084b3Smrg test -n "$CC" && break 49883da084b3Smrg done 49893da084b3Smrgfi 49903da084b3Smrgif test -z "$CC"; then 49913da084b3Smrg ac_ct_CC=$CC 49923da084b3Smrg for ac_prog in cl.exe 49933da084b3Smrgdo 49943da084b3Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 49953da084b3Smrgset dummy $ac_prog; ac_word=$2 499655acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4997d63fdb69Smrg$as_echo_n "checking for $ac_word... " >&6; } 499855acc8fcSmrgif ${ac_cv_prog_ac_ct_CC+:} false; then : 4999d63fdb69Smrg $as_echo_n "(cached) " >&6 50003da084b3Smrgelse 50013da084b3Smrg if test -n "$ac_ct_CC"; then 50023da084b3Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 50033da084b3Smrgelse 50043da084b3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 50053da084b3Smrgfor as_dir in $PATH 500655acc8fcSmrgdo 500755acc8fcSmrg IFS=$as_save_IFS 500855acc8fcSmrg test -z "$as_dir" && as_dir=. 500955acc8fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 501055acc8fcSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 501155acc8fcSmrg ac_cv_prog_ac_ct_CC="$ac_prog" 501255acc8fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 501355acc8fcSmrg break 2 50143da084b3Smrg fi 501555acc8fcSmrgdone 501655acc8fcSmrg done 501755acc8fcSmrgIFS=$as_save_IFS 501855acc8fcSmrg 501955acc8fcSmrgfi 502055acc8fcSmrgfi 502155acc8fcSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC 502255acc8fcSmrgif test -n "$ac_ct_CC"; then 502355acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 502455acc8fcSmrg$as_echo "$ac_ct_CC" >&6; } 502555acc8fcSmrgelse 502655acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 502755acc8fcSmrg$as_echo "no" >&6; } 50283da084b3Smrgfi 50293da084b3Smrg 50303da084b3Smrg 503155acc8fcSmrg test -n "$ac_ct_CC" && break 50323da084b3Smrgdone 503355acc8fcSmrg 503455acc8fcSmrg if test "x$ac_ct_CC" = x; then 503555acc8fcSmrg CC="" 503655acc8fcSmrg else 503755acc8fcSmrg case $cross_compiling:$ac_tool_warned in 503855acc8fcSmrgyes:) 503955acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 504055acc8fcSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 504155acc8fcSmrgac_tool_warned=yes ;; 504255acc8fcSmrgesac 504355acc8fcSmrg CC=$ac_ct_CC 504455acc8fcSmrg fi 50453da084b3Smrgfi 50463da084b3Smrg 504755acc8fcSmrgfi 50483da084b3Smrg 50493da084b3Smrg 505055acc8fcSmrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 505155acc8fcSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 505255acc8fcSmrgas_fn_error $? "no acceptable C compiler found in \$PATH 505355acc8fcSmrgSee \`config.log' for more details" "$LINENO" 5; } 50543da084b3Smrg 505555acc8fcSmrg# Provide some information about the compiler. 505655acc8fcSmrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 505755acc8fcSmrgset X $ac_compile 505855acc8fcSmrgac_compiler=$2 505955acc8fcSmrgfor ac_option in --version -v -V -qversion; do 506055acc8fcSmrg { { ac_try="$ac_compiler $ac_option >&5" 50613da084b3Smrgcase "(($ac_try" in 50623da084b3Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 50633da084b3Smrg *) ac_try_echo=$ac_try;; 50643da084b3Smrgesac 506555acc8fcSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 506655acc8fcSmrg$as_echo "$ac_try_echo"; } >&5 506755acc8fcSmrg (eval "$ac_compiler $ac_option >&5") 2>conftest.err 50683da084b3Smrg ac_status=$? 506955acc8fcSmrg if test -s conftest.err; then 507055acc8fcSmrg sed '10a\ 507155acc8fcSmrg... rest of stderr output deleted ... 507255acc8fcSmrg 10q' conftest.err >conftest.er1 507355acc8fcSmrg cat conftest.er1 >&5 507455acc8fcSmrg fi 507555acc8fcSmrg rm -f conftest.er1 conftest.err 507655acc8fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 507755acc8fcSmrg test $ac_status = 0; } 50783da084b3Smrgdone 50793da084b3Smrg 508055acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 5081d63fdb69Smrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 508255acc8fcSmrgif ${ac_cv_c_compiler_gnu+:} false; then : 5083d63fdb69Smrg $as_echo_n "(cached) " >&6 50843da084b3Smrgelse 508555acc8fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50863da084b3Smrg/* end confdefs.h. */ 50873da084b3Smrg 50883da084b3Smrgint 50893da084b3Smrgmain () 50903da084b3Smrg{ 50913da084b3Smrg#ifndef __GNUC__ 50923da084b3Smrg choke me 50933da084b3Smrg#endif 50943da084b3Smrg 50953da084b3Smrg ; 50963da084b3Smrg return 0; 50973da084b3Smrg} 50983da084b3Smrg_ACEOF 509955acc8fcSmrgif ac_fn_c_try_compile "$LINENO"; then : 51003da084b3Smrg ac_compiler_gnu=yes 51013da084b3Smrgelse 510255acc8fcSmrg ac_compiler_gnu=no 51033da084b3Smrgfi 51043da084b3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51053da084b3Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu 51063da084b3Smrg 51073da084b3Smrgfi 510855acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5109d63fdb69Smrg$as_echo "$ac_cv_c_compiler_gnu" >&6; } 5110d63fdb69Smrgif test $ac_compiler_gnu = yes; then 5111d63fdb69Smrg GCC=yes 5112d63fdb69Smrgelse 5113d63fdb69Smrg GCC= 5114d63fdb69Smrgfi 51153da084b3Smrgac_test_CFLAGS=${CFLAGS+set} 51163da084b3Smrgac_save_CFLAGS=$CFLAGS 511755acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5118d63fdb69Smrg$as_echo_n "checking whether $CC accepts -g... " >&6; } 511955acc8fcSmrgif ${ac_cv_prog_cc_g+:} false; then : 5120d63fdb69Smrg $as_echo_n "(cached) " >&6 51213da084b3Smrgelse 51223da084b3Smrg ac_save_c_werror_flag=$ac_c_werror_flag 51233da084b3Smrg ac_c_werror_flag=yes 51243da084b3Smrg ac_cv_prog_cc_g=no 51253da084b3Smrg CFLAGS="-g" 512655acc8fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51273da084b3Smrg/* end confdefs.h. */ 51283da084b3Smrg 51293da084b3Smrgint 51303da084b3Smrgmain () 51313da084b3Smrg{ 51323da084b3Smrg 51333da084b3Smrg ; 51343da084b3Smrg return 0; 51353da084b3Smrg} 51363da084b3Smrg_ACEOF 513755acc8fcSmrgif ac_fn_c_try_compile "$LINENO"; then : 51383da084b3Smrg ac_cv_prog_cc_g=yes 51393da084b3Smrgelse 514055acc8fcSmrg CFLAGS="" 514155acc8fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51423da084b3Smrg/* end confdefs.h. */ 51433da084b3Smrg 51443da084b3Smrgint 51453da084b3Smrgmain () 51463da084b3Smrg{ 51473da084b3Smrg 51483da084b3Smrg ; 51493da084b3Smrg return 0; 51503da084b3Smrg} 51513da084b3Smrg_ACEOF 515255acc8fcSmrgif ac_fn_c_try_compile "$LINENO"; then : 51533da084b3Smrg 515455acc8fcSmrgelse 515555acc8fcSmrg ac_c_werror_flag=$ac_save_c_werror_flag 51563da084b3Smrg CFLAGS="-g" 515755acc8fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51583da084b3Smrg/* end confdefs.h. */ 51593da084b3Smrg 51603da084b3Smrgint 51613da084b3Smrgmain () 51623da084b3Smrg{ 51633da084b3Smrg 51643da084b3Smrg ; 51653da084b3Smrg return 0; 51663da084b3Smrg} 51673da084b3Smrg_ACEOF 516855acc8fcSmrgif ac_fn_c_try_compile "$LINENO"; then : 51693da084b3Smrg ac_cv_prog_cc_g=yes 51703da084b3Smrgfi 51713da084b3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51723da084b3Smrgfi 51733da084b3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51743da084b3Smrgfi 51753da084b3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51763da084b3Smrg ac_c_werror_flag=$ac_save_c_werror_flag 51773da084b3Smrgfi 517855acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5179d63fdb69Smrg$as_echo "$ac_cv_prog_cc_g" >&6; } 51803da084b3Smrgif test "$ac_test_CFLAGS" = set; then 51813da084b3Smrg CFLAGS=$ac_save_CFLAGS 51823da084b3Smrgelif test $ac_cv_prog_cc_g = yes; then 51833da084b3Smrg if test "$GCC" = yes; then 51843da084b3Smrg CFLAGS="-g -O2" 51853da084b3Smrg else 51863da084b3Smrg CFLAGS="-g" 51873da084b3Smrg fi 51883da084b3Smrgelse 51893da084b3Smrg if test "$GCC" = yes; then 51903da084b3Smrg CFLAGS="-O2" 51913da084b3Smrg else 51923da084b3Smrg CFLAGS= 51933da084b3Smrg fi 51943da084b3Smrgfi 519555acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5196d63fdb69Smrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 519755acc8fcSmrgif ${ac_cv_prog_cc_c89+:} false; then : 5198d63fdb69Smrg $as_echo_n "(cached) " >&6 51993da084b3Smrgelse 52003da084b3Smrg ac_cv_prog_cc_c89=no 52013da084b3Smrgac_save_CC=$CC 520255acc8fcSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 52033da084b3Smrg/* end confdefs.h. */ 52043da084b3Smrg#include <stdarg.h> 52053da084b3Smrg#include <stdio.h> 52063da084b3Smrg#include <sys/types.h> 52073da084b3Smrg#include <sys/stat.h> 52083da084b3Smrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 52093da084b3Smrgstruct buf { int x; }; 52103da084b3SmrgFILE * (*rcsopen) (struct buf *, struct stat *, int); 52113da084b3Smrgstatic char *e (p, i) 52123da084b3Smrg char **p; 52133da084b3Smrg int i; 52143da084b3Smrg{ 52153da084b3Smrg return p[i]; 52163da084b3Smrg} 52173da084b3Smrgstatic char *f (char * (*g) (char **, int), char **p, ...) 52183da084b3Smrg{ 52193da084b3Smrg char *s; 52203da084b3Smrg va_list v; 52213da084b3Smrg va_start (v,p); 52223da084b3Smrg s = g (p, va_arg (v,int)); 52233da084b3Smrg va_end (v); 52243da084b3Smrg return s; 52253da084b3Smrg} 52263da084b3Smrg 52273da084b3Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 52283da084b3Smrg function prototypes and stuff, but not '\xHH' hex character constants. 52293da084b3Smrg These don't provoke an error unfortunately, instead are silently treated 52303da084b3Smrg as 'x'. The following induces an error, until -std is added to get 52313da084b3Smrg proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 52323da084b3Smrg array size at least. It's necessary to write '\x00'==0 to get something 52333da084b3Smrg that's true only with -std. */ 52343da084b3Smrgint osf4_cc_array ['\x00' == 0 ? 1 : -1]; 52353da084b3Smrg 52363da084b3Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 52373da084b3Smrg inside strings and character constants. */ 52383da084b3Smrg#define FOO(x) 'x' 52393da084b3Smrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 52403da084b3Smrg 52413da084b3Smrgint test (int i, double x); 52423da084b3Smrgstruct s1 {int (*f) (int a);}; 52433da084b3Smrgstruct s2 {int (*f) (double a);}; 52443da084b3Smrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 52453da084b3Smrgint argc; 52463da084b3Smrgchar **argv; 52473da084b3Smrgint 52483da084b3Smrgmain () 52493da084b3Smrg{ 52503da084b3Smrgreturn f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 52513da084b3Smrg ; 52523da084b3Smrg return 0; 52533da084b3Smrg} 52543da084b3Smrg_ACEOF 52553da084b3Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 52563da084b3Smrg -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 52573da084b3Smrgdo 52583da084b3Smrg CC="$ac_save_CC $ac_arg" 525955acc8fcSmrg if ac_fn_c_try_compile "$LINENO"; then : 52603da084b3Smrg ac_cv_prog_cc_c89=$ac_arg 52613da084b3Smrgfi 52623da084b3Smrgrm -f core conftest.err conftest.$ac_objext 52633da084b3Smrg test "x$ac_cv_prog_cc_c89" != "xno" && break 52643da084b3Smrgdone 52653da084b3Smrgrm -f conftest.$ac_ext 52663da084b3SmrgCC=$ac_save_CC 52673da084b3Smrg 52683da084b3Smrgfi 52693da084b3Smrg# AC_CACHE_VAL 52703da084b3Smrgcase "x$ac_cv_prog_cc_c89" in 52713da084b3Smrg x) 527255acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5273d63fdb69Smrg$as_echo "none needed" >&6; } ;; 52743da084b3Smrg xno) 527555acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5276d63fdb69Smrg$as_echo "unsupported" >&6; } ;; 52773da084b3Smrg *) 52783da084b3Smrg CC="$CC $ac_cv_prog_cc_c89" 527955acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5280d63fdb69Smrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 52813da084b3Smrgesac 528255acc8fcSmrgif test "x$ac_cv_prog_cc_c89" != xno; then : 52833da084b3Smrg 528455acc8fcSmrgfi 52853da084b3Smrg 52863da084b3Smrgac_ext=c 52873da084b3Smrgac_cpp='$CPP $CPPFLAGS' 52883da084b3Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52893da084b3Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52903da084b3Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 52913da084b3Smrg 52923da084b3Smrgdepcc="$CC" am_compiler_list= 52933da084b3Smrg 529455acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5295d63fdb69Smrg$as_echo_n "checking dependency style of $depcc... " >&6; } 529655acc8fcSmrgif ${am_cv_CC_dependencies_compiler_type+:} false; then : 5297d63fdb69Smrg $as_echo_n "(cached) " >&6 52983da084b3Smrgelse 52993da084b3Smrg if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 53003da084b3Smrg # We make a subdir and do the tests there. Otherwise we can end up 53013da084b3Smrg # making bogus files that we don't know about and never remove. For 53023da084b3Smrg # instance it was reported that on HP-UX the gcc test will end up 53033da084b3Smrg # making a dummy file named `D' -- because `-MD' means `put the output 53043da084b3Smrg # in D'. 53053da084b3Smrg mkdir conftest.dir 53063da084b3Smrg # Copy depcomp to subdir because otherwise we won't find it if we're 53073da084b3Smrg # using a relative directory. 53083da084b3Smrg cp "$am_depcomp" conftest.dir 53093da084b3Smrg cd conftest.dir 53103da084b3Smrg # We will build objects and dependencies in a subdirectory because 53113da084b3Smrg # it helps to detect inapplicable dependency modes. For instance 53123da084b3Smrg # both Tru64's cc and ICC support -MD to output dependencies as a 53133da084b3Smrg # side effect of compilation, but ICC will put the dependencies in 53143da084b3Smrg # the current directory while Tru64 will put them in the object 53153da084b3Smrg # directory. 53163da084b3Smrg mkdir sub 53173da084b3Smrg 53183da084b3Smrg am_cv_CC_dependencies_compiler_type=none 53193da084b3Smrg if test "$am_compiler_list" = ""; then 53203da084b3Smrg am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 53213da084b3Smrg fi 5322d63fdb69Smrg am__universal=false 5323d63fdb69Smrg case " $depcc " in #( 5324d63fdb69Smrg *\ -arch\ *\ -arch\ *) am__universal=true ;; 5325d63fdb69Smrg esac 5326d63fdb69Smrg 53273da084b3Smrg for depmode in $am_compiler_list; do 53283da084b3Smrg # Setup a source with many dependencies, because some compilers 53293da084b3Smrg # like to wrap large dependency lists on column 80 (with \), and 53303da084b3Smrg # we should not choose a depcomp mode which is confused by this. 53313da084b3Smrg # 53323da084b3Smrg # We need to recreate these files for each test, as the compiler may 53333da084b3Smrg # overwrite some of them when testing with obscure command lines. 53343da084b3Smrg # This happens at least with the AIX C compiler. 53353da084b3Smrg : > sub/conftest.c 53363da084b3Smrg for i in 1 2 3 4 5 6; do 53373da084b3Smrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 53383da084b3Smrg # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 53393da084b3Smrg # Solaris 8's {/usr,}/bin/sh. 53403da084b3Smrg touch sub/conftst$i.h 53413da084b3Smrg done 53423da084b3Smrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 53433da084b3Smrg 5344d63fdb69Smrg # We check with `-c' and `-o' for the sake of the "dashmstdout" 5345d63fdb69Smrg # mode. It turns out that the SunPro C++ compiler does not properly 5346d63fdb69Smrg # handle `-M -o', and we need to detect this. Also, some Intel 5347d63fdb69Smrg # versions had trouble with output in subdirs 5348d63fdb69Smrg am__obj=sub/conftest.${OBJEXT-o} 5349d63fdb69Smrg am__minus_obj="-o $am__obj" 53503da084b3Smrg case $depmode in 5351d63fdb69Smrg gcc) 5352d63fdb69Smrg # This depmode causes a compiler race in universal mode. 5353d63fdb69Smrg test "$am__universal" = false || continue 5354d63fdb69Smrg ;; 53553da084b3Smrg nosideeffect) 53563da084b3Smrg # after this tag, mechanisms are not by side-effect, so they'll 53573da084b3Smrg # only be used when explicitly requested 53583da084b3Smrg if test "x$enable_dependency_tracking" = xyes; then 53593da084b3Smrg continue 53603da084b3Smrg else 53613da084b3Smrg break 53623da084b3Smrg fi 53633da084b3Smrg ;; 5364d63fdb69Smrg msvisualcpp | msvcmsys) 5365d63fdb69Smrg # This compiler won't grok `-c -o', but also, the minuso test has 5366d63fdb69Smrg # not run yet. These depmodes are late enough in the game, and 5367d63fdb69Smrg # so weak that their functioning should not be impacted. 5368d63fdb69Smrg am__obj=conftest.${OBJEXT-o} 5369d63fdb69Smrg am__minus_obj= 5370d63fdb69Smrg ;; 53713da084b3Smrg none) break ;; 53723da084b3Smrg esac 53733da084b3Smrg if depmode=$depmode \ 5374d63fdb69Smrg source=sub/conftest.c object=$am__obj \ 53753da084b3Smrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5376d63fdb69Smrg $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 53773da084b3Smrg >/dev/null 2>conftest.err && 5378d63fdb69Smrg grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 53793da084b3Smrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5380d63fdb69Smrg grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 53813da084b3Smrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 53823da084b3Smrg # icc doesn't choke on unknown options, it will just issue warnings 53833da084b3Smrg # or remarks (even with -Werror). So we grep stderr for any message 53843da084b3Smrg # that says an option was ignored or not supported. 53853da084b3Smrg # When given -MP, icc 7.0 and 7.1 complain thusly: 53863da084b3Smrg # icc: Command line warning: ignoring option '-M'; no argument required 53873da084b3Smrg # The diagnosis changed in icc 8.0: 53883da084b3Smrg # icc: Command line remark: option '-MP' not supported 53893da084b3Smrg if (grep 'ignoring option' conftest.err || 53903da084b3Smrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 53913da084b3Smrg am_cv_CC_dependencies_compiler_type=$depmode 53923da084b3Smrg break 53933da084b3Smrg fi 53943da084b3Smrg fi 53953da084b3Smrg done 53963da084b3Smrg 53973da084b3Smrg cd .. 53983da084b3Smrg rm -rf conftest.dir 53993da084b3Smrgelse 54003da084b3Smrg am_cv_CC_dependencies_compiler_type=none 54013da084b3Smrgfi 54023da084b3Smrg 54033da084b3Smrgfi 540455acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5405d63fdb69Smrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 54063da084b3SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 54073da084b3Smrg 5408d63fdb69Smrg if 54093da084b3Smrg test "x$enable_dependency_tracking" != xno \ 54103da084b3Smrg && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 54113da084b3Smrg am__fastdepCC_TRUE= 54123da084b3Smrg am__fastdepCC_FALSE='#' 54133da084b3Smrgelse 54143da084b3Smrg am__fastdepCC_TRUE='#' 54153da084b3Smrg am__fastdepCC_FALSE= 54163da084b3Smrgfi 54173da084b3Smrg 54183da084b3Smrg 5419d63fdb69Smrgcase `pwd` in 5420d63fdb69Smrg *\ * | *\ *) 542155acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5422d63fdb69Smrg$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5423d63fdb69Smrgesac 5424d63fdb69Smrg 5425d63fdb69Smrg 5426d63fdb69Smrg 542755acc8fcSmrgmacro_version='2.2.10' 542855acc8fcSmrgmacro_revision='1.3175' 542955acc8fcSmrg 543055acc8fcSmrg 543155acc8fcSmrg 543255acc8fcSmrg 543355acc8fcSmrg 543455acc8fcSmrg 543555acc8fcSmrg 543655acc8fcSmrg 5437d63fdb69Smrg 54383da084b3Smrg 54393da084b3Smrg 54403da084b3Smrg 54413da084b3Smrg 544255acc8fcSmrgltmain="$ac_aux_dir/ltmain.sh" 544355acc8fcSmrg 544455acc8fcSmrg# Backslashify metacharacters that are still active within 544555acc8fcSmrg# double-quoted strings. 544655acc8fcSmrgsed_quote_subst='s/\(["`$\\]\)/\\\1/g' 544755acc8fcSmrg 544855acc8fcSmrg# Same as above, but do not quote variable references. 544955acc8fcSmrgdouble_quote_subst='s/\(["`\\]\)/\\\1/g' 545055acc8fcSmrg 545155acc8fcSmrg# Sed substitution to delay expansion of an escaped shell variable in a 545255acc8fcSmrg# double_quote_subst'ed string. 545355acc8fcSmrgdelay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 545455acc8fcSmrg 545555acc8fcSmrg# Sed substitution to delay expansion of an escaped single quote. 545655acc8fcSmrgdelay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 545755acc8fcSmrg 545855acc8fcSmrg# Sed substitution to avoid accidental globbing in evaled expressions 545955acc8fcSmrgno_glob_subst='s/\*/\\\*/g' 546055acc8fcSmrg 546155acc8fcSmrgECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 546255acc8fcSmrgECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 546355acc8fcSmrgECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 546455acc8fcSmrg 546555acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 546655acc8fcSmrg$as_echo_n "checking how to print strings... " >&6; } 546755acc8fcSmrg# Test print first, because it will be a builtin if present. 546855acc8fcSmrgif test "X`print -r -- -n 2>/dev/null`" = X-n && \ 546955acc8fcSmrg test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 547055acc8fcSmrg ECHO='print -r --' 547155acc8fcSmrgelif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 547255acc8fcSmrg ECHO='printf %s\n' 547355acc8fcSmrgelse 547455acc8fcSmrg # Use this function as a fallback that always works. 547555acc8fcSmrg func_fallback_echo () 547655acc8fcSmrg { 547755acc8fcSmrg eval 'cat <<_LTECHO_EOF 547855acc8fcSmrg$1 547955acc8fcSmrg_LTECHO_EOF' 548055acc8fcSmrg } 548155acc8fcSmrg ECHO='func_fallback_echo' 548255acc8fcSmrgfi 54833da084b3Smrg 548455acc8fcSmrg# func_echo_all arg... 548555acc8fcSmrg# Invoke $ECHO with all args, space-separated. 548655acc8fcSmrgfunc_echo_all () 548755acc8fcSmrg{ 548855acc8fcSmrg $ECHO "" 548955acc8fcSmrg} 54903da084b3Smrg 549155acc8fcSmrgcase "$ECHO" in 549255acc8fcSmrg printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 549355acc8fcSmrg$as_echo "printf" >&6; } ;; 549455acc8fcSmrg print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 549555acc8fcSmrg$as_echo "print -r" >&6; } ;; 549655acc8fcSmrg *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 549755acc8fcSmrg$as_echo "cat" >&6; } ;; 549855acc8fcSmrgesac 5499d63fdb69Smrg 5500d63fdb69Smrg 5501d63fdb69Smrg 5502d63fdb69Smrg 5503d63fdb69Smrg 5504d63fdb69Smrg 5505d63fdb69Smrg 55063da084b3Smrg 55073da084b3Smrg 55083da084b3Smrg 55093da084b3Smrg 55103da084b3Smrg 55113da084b3Smrg 55123da084b3Smrg 551355acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5514d63fdb69Smrg$as_echo_n "checking for a sed that does not truncate output... " >&6; } 551555acc8fcSmrgif ${ac_cv_path_SED+:} false; then : 5516d63fdb69Smrg $as_echo_n "(cached) " >&6 5517d63fdb69Smrgelse 5518d63fdb69Smrg ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5519d63fdb69Smrg for ac_i in 1 2 3 4 5 6 7; do 5520d63fdb69Smrg ac_script="$ac_script$as_nl$ac_script" 5521d63fdb69Smrg done 5522d63fdb69Smrg echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 552355acc8fcSmrg { ac_script=; unset ac_script;} 5524d63fdb69Smrg if test -z "$SED"; then 5525d63fdb69Smrg ac_path_SED_found=false 5526d63fdb69Smrg # Loop through the user's path and test for each of PROGNAME-LIST 5527d63fdb69Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 55283da084b3Smrgfor as_dir in $PATH 55293da084b3Smrgdo 55303da084b3Smrg IFS=$as_save_IFS 55313da084b3Smrg test -z "$as_dir" && as_dir=. 553255acc8fcSmrg for ac_prog in sed gsed; do 55333da084b3Smrg for ac_exec_ext in '' $ac_executable_extensions; do 5534d63fdb69Smrg ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5535d63fdb69Smrg { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 5536d63fdb69Smrg# Check for GNU ac_path_SED and select it if it is found. 5537d63fdb69Smrg # Check for GNU $ac_path_SED 5538d63fdb69Smrgcase `"$ac_path_SED" --version 2>&1` in 5539d63fdb69Smrg*GNU*) 5540d63fdb69Smrg ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5541d63fdb69Smrg*) 5542d63fdb69Smrg ac_count=0 5543d63fdb69Smrg $as_echo_n 0123456789 >"conftest.in" 5544d63fdb69Smrg while : 5545d63fdb69Smrg do 5546d63fdb69Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 5547d63fdb69Smrg mv "conftest.tmp" "conftest.in" 5548d63fdb69Smrg cp "conftest.in" "conftest.nl" 5549d63fdb69Smrg $as_echo '' >> "conftest.nl" 5550d63fdb69Smrg "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5551d63fdb69Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 555255acc8fcSmrg as_fn_arith $ac_count + 1 && ac_count=$as_val 5553d63fdb69Smrg if test $ac_count -gt ${ac_path_SED_max-0}; then 5554d63fdb69Smrg # Best one so far, save it but keep looking for a better one 5555d63fdb69Smrg ac_cv_path_SED="$ac_path_SED" 5556d63fdb69Smrg ac_path_SED_max=$ac_count 5557d63fdb69Smrg fi 5558d63fdb69Smrg # 10*(2^10) chars as input seems more than enough 5559d63fdb69Smrg test $ac_count -gt 10 && break 5560d63fdb69Smrg done 5561d63fdb69Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5562d63fdb69Smrgesac 5563d63fdb69Smrg 5564d63fdb69Smrg $ac_path_SED_found && break 3 55653da084b3Smrg done 55663da084b3Smrg done 556755acc8fcSmrg done 5568d63fdb69SmrgIFS=$as_save_IFS 5569d63fdb69Smrg if test -z "$ac_cv_path_SED"; then 557055acc8fcSmrg as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 55713da084b3Smrg fi 5572d63fdb69Smrgelse 5573d63fdb69Smrg ac_cv_path_SED=$SED 5574d63fdb69Smrgfi 55753da084b3Smrg 55763da084b3Smrgfi 557755acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5578d63fdb69Smrg$as_echo "$ac_cv_path_SED" >&6; } 5579d63fdb69Smrg SED="$ac_cv_path_SED" 5580d63fdb69Smrg rm -f conftest.sed 5581d63fdb69Smrg 5582d63fdb69Smrgtest -z "$SED" && SED=sed 5583d63fdb69SmrgXsed="$SED -e 1s/^X//" 55843da084b3Smrg 55853da084b3Smrg 5586d63fdb69Smrg 5587d63fdb69Smrg 5588d63fdb69Smrg 5589d63fdb69Smrg 5590d63fdb69Smrg 5591d63fdb69Smrg 5592d63fdb69Smrg 5593d63fdb69Smrg 5594d63fdb69Smrg 559555acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5596d63fdb69Smrg$as_echo_n "checking for fgrep... " >&6; } 559755acc8fcSmrgif ${ac_cv_path_FGREP+:} false; then : 5598d63fdb69Smrg $as_echo_n "(cached) " >&6 55993da084b3Smrgelse 5600d63fdb69Smrg if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5601d63fdb69Smrg then ac_cv_path_FGREP="$GREP -F" 5602d63fdb69Smrg else 5603d63fdb69Smrg if test -z "$FGREP"; then 5604d63fdb69Smrg ac_path_FGREP_found=false 5605d63fdb69Smrg # Loop through the user's path and test for each of PROGNAME-LIST 5606d63fdb69Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5607d63fdb69Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5608d63fdb69Smrgdo 5609d63fdb69Smrg IFS=$as_save_IFS 5610d63fdb69Smrg test -z "$as_dir" && as_dir=. 561155acc8fcSmrg for ac_prog in fgrep; do 5612d63fdb69Smrg for ac_exec_ext in '' $ac_executable_extensions; do 5613d63fdb69Smrg ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5614d63fdb69Smrg { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 5615d63fdb69Smrg# Check for GNU ac_path_FGREP and select it if it is found. 5616d63fdb69Smrg # Check for GNU $ac_path_FGREP 5617d63fdb69Smrgcase `"$ac_path_FGREP" --version 2>&1` in 5618d63fdb69Smrg*GNU*) 5619d63fdb69Smrg ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5620d63fdb69Smrg*) 5621d63fdb69Smrg ac_count=0 5622d63fdb69Smrg $as_echo_n 0123456789 >"conftest.in" 5623d63fdb69Smrg while : 5624d63fdb69Smrg do 5625d63fdb69Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 5626d63fdb69Smrg mv "conftest.tmp" "conftest.in" 5627d63fdb69Smrg cp "conftest.in" "conftest.nl" 5628d63fdb69Smrg $as_echo 'FGREP' >> "conftest.nl" 5629d63fdb69Smrg "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5630d63fdb69Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 563155acc8fcSmrg as_fn_arith $ac_count + 1 && ac_count=$as_val 5632d63fdb69Smrg if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5633d63fdb69Smrg # Best one so far, save it but keep looking for a better one 5634d63fdb69Smrg ac_cv_path_FGREP="$ac_path_FGREP" 5635d63fdb69Smrg ac_path_FGREP_max=$ac_count 5636d63fdb69Smrg fi 5637d63fdb69Smrg # 10*(2^10) chars as input seems more than enough 5638d63fdb69Smrg test $ac_count -gt 10 && break 5639d63fdb69Smrg done 5640d63fdb69Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5641d63fdb69Smrgesac 56423da084b3Smrg 5643d63fdb69Smrg $ac_path_FGREP_found && break 3 5644d63fdb69Smrg done 5645d63fdb69Smrg done 564655acc8fcSmrg done 5647d63fdb69SmrgIFS=$as_save_IFS 5648d63fdb69Smrg if test -z "$ac_cv_path_FGREP"; then 564955acc8fcSmrg as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5650d63fdb69Smrg fi 5651d63fdb69Smrgelse 5652d63fdb69Smrg ac_cv_path_FGREP=$FGREP 5653d63fdb69Smrgfi 56543da084b3Smrg 56553da084b3Smrg fi 56563da084b3Smrgfi 565755acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5658d63fdb69Smrg$as_echo "$ac_cv_path_FGREP" >&6; } 5659d63fdb69Smrg FGREP="$ac_cv_path_FGREP" 5660d63fdb69Smrg 5661d63fdb69Smrg 5662d63fdb69Smrgtest -z "$GREP" && GREP=grep 5663d63fdb69Smrg 5664d63fdb69Smrg 5665d63fdb69Smrg 5666d63fdb69Smrg 5667d63fdb69Smrg 5668d63fdb69Smrg 5669d63fdb69Smrg 5670d63fdb69Smrg 5671d63fdb69Smrg 5672d63fdb69Smrg 5673d63fdb69Smrg 5674d63fdb69Smrg 5675d63fdb69Smrg 5676d63fdb69Smrg 5677d63fdb69Smrg 5678d63fdb69Smrg 56793da084b3Smrg 56803da084b3Smrg 56813da084b3Smrg 56823da084b3Smrg# Check whether --with-gnu-ld was given. 568355acc8fcSmrgif test "${with_gnu_ld+set}" = set; then : 56843da084b3Smrg withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 56853da084b3Smrgelse 56863da084b3Smrg with_gnu_ld=no 56873da084b3Smrgfi 56883da084b3Smrg 56893da084b3Smrgac_prog=ld 56903da084b3Smrgif test "$GCC" = yes; then 56913da084b3Smrg # Check if gcc -print-prog-name=ld gives a path. 569255acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5693d63fdb69Smrg$as_echo_n "checking for ld used by $CC... " >&6; } 56943da084b3Smrg case $host in 56953da084b3Smrg *-*-mingw*) 56963da084b3Smrg # gcc leaves a trailing carriage return which upsets mingw 56973da084b3Smrg ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 56983da084b3Smrg *) 56993da084b3Smrg ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 57003da084b3Smrg esac 57013da084b3Smrg case $ac_prog in 57023da084b3Smrg # Accept absolute paths. 57033da084b3Smrg [\\/]* | ?:[\\/]*) 57043da084b3Smrg re_direlt='/[^/][^/]*/\.\./' 57053da084b3Smrg # Canonicalize the pathname of ld 5706d63fdb69Smrg ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5707d63fdb69Smrg while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5708d63fdb69Smrg ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 57093da084b3Smrg done 57103da084b3Smrg test -z "$LD" && LD="$ac_prog" 57113da084b3Smrg ;; 57123da084b3Smrg "") 57133da084b3Smrg # If it fails, then pretend we aren't using GCC. 57143da084b3Smrg ac_prog=ld 57153da084b3Smrg ;; 57163da084b3Smrg *) 57173da084b3Smrg # If it is relative, then search for the first ld in PATH. 57183da084b3Smrg with_gnu_ld=unknown 57193da084b3Smrg ;; 57203da084b3Smrg esac 57213da084b3Smrgelif test "$with_gnu_ld" = yes; then 572255acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5723d63fdb69Smrg$as_echo_n "checking for GNU ld... " >&6; } 57243da084b3Smrgelse 572555acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5726d63fdb69Smrg$as_echo_n "checking for non-GNU ld... " >&6; } 57273da084b3Smrgfi 572855acc8fcSmrgif ${lt_cv_path_LD+:} false; then : 5729d63fdb69Smrg $as_echo_n "(cached) " >&6 57303da084b3Smrgelse 57313da084b3Smrg if test -z "$LD"; then 57323da084b3Smrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 57333da084b3Smrg for ac_dir in $PATH; do 57343da084b3Smrg IFS="$lt_save_ifs" 57353da084b3Smrg test -z "$ac_dir" && ac_dir=. 57363da084b3Smrg if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 57373da084b3Smrg lt_cv_path_LD="$ac_dir/$ac_prog" 57383da084b3Smrg # Check to see if the program is GNU ld. I'd rather use --version, 57393da084b3Smrg # but apparently some variants of GNU ld only accept -v. 57403da084b3Smrg # Break only if it was the GNU/non-GNU ld that we prefer. 57413da084b3Smrg case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 57423da084b3Smrg *GNU* | *'with BFD'*) 57433da084b3Smrg test "$with_gnu_ld" != no && break 57443da084b3Smrg ;; 57453da084b3Smrg *) 57463da084b3Smrg test "$with_gnu_ld" != yes && break 57473da084b3Smrg ;; 57483da084b3Smrg esac 57493da084b3Smrg fi 57503da084b3Smrg done 57513da084b3Smrg IFS="$lt_save_ifs" 57523da084b3Smrgelse 57533da084b3Smrg lt_cv_path_LD="$LD" # Let the user override the test with a path. 57543da084b3Smrgfi 57553da084b3Smrgfi 57563da084b3Smrg 57573da084b3SmrgLD="$lt_cv_path_LD" 57583da084b3Smrgif test -n "$LD"; then 575955acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5760d63fdb69Smrg$as_echo "$LD" >&6; } 57613da084b3Smrgelse 576255acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5763d63fdb69Smrg$as_echo "no" >&6; } 57643da084b3Smrgfi 576555acc8fcSmrgtest -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 576655acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5767d63fdb69Smrg$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 576855acc8fcSmrgif ${lt_cv_prog_gnu_ld+:} false; then : 5769d63fdb69Smrg $as_echo_n "(cached) " >&6 57703da084b3Smrgelse 57713da084b3Smrg # I'd rather use --version here, but apparently some GNU lds only accept -v. 57723da084b3Smrgcase `$LD -v 2>&1 </dev/null` in 57733da084b3Smrg*GNU* | *'with BFD'*) 57743da084b3Smrg lt_cv_prog_gnu_ld=yes 57753da084b3Smrg ;; 57763da084b3Smrg*) 57773da084b3Smrg lt_cv_prog_gnu_ld=no 57783da084b3Smrg ;; 57793da084b3Smrgesac 57803da084b3Smrgfi 578155acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5782d63fdb69Smrg$as_echo "$lt_cv_prog_gnu_ld" >&6; } 57833da084b3Smrgwith_gnu_ld=$lt_cv_prog_gnu_ld 57843da084b3Smrg 57853da084b3Smrg 57863da084b3Smrg 5787d63fdb69Smrg 5788d63fdb69Smrg 5789d63fdb69Smrg 5790d63fdb69Smrg 5791d63fdb69Smrg 5792d63fdb69Smrg 579355acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5794d63fdb69Smrg$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 579555acc8fcSmrgif ${lt_cv_path_NM+:} false; then : 5796d63fdb69Smrg $as_echo_n "(cached) " >&6 57973da084b3Smrgelse 57983da084b3Smrg if test -n "$NM"; then 57993da084b3Smrg # Let the user override the test. 58003da084b3Smrg lt_cv_path_NM="$NM" 58013da084b3Smrgelse 58023da084b3Smrg lt_nm_to_check="${ac_tool_prefix}nm" 58033da084b3Smrg if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 58043da084b3Smrg lt_nm_to_check="$lt_nm_to_check nm" 58053da084b3Smrg fi 58063da084b3Smrg for lt_tmp_nm in $lt_nm_to_check; do 58073da084b3Smrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 58083da084b3Smrg for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 58093da084b3Smrg IFS="$lt_save_ifs" 58103da084b3Smrg test -z "$ac_dir" && ac_dir=. 58113da084b3Smrg tmp_nm="$ac_dir/$lt_tmp_nm" 58123da084b3Smrg if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 58133da084b3Smrg # Check to see if the nm accepts a BSD-compat flag. 58143da084b3Smrg # Adding the `sed 1q' prevents false positives on HP-UX, which says: 58153da084b3Smrg # nm: unknown option "B" ignored 58163da084b3Smrg # Tru64's nm complains that /dev/null is an invalid object file 58173da084b3Smrg case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 58183da084b3Smrg */dev/null* | *'Invalid file or object type'*) 58193da084b3Smrg lt_cv_path_NM="$tmp_nm -B" 58203da084b3Smrg break 58213da084b3Smrg ;; 58223da084b3Smrg *) 58233da084b3Smrg case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 58243da084b3Smrg */dev/null*) 58253da084b3Smrg lt_cv_path_NM="$tmp_nm -p" 58263da084b3Smrg break 58273da084b3Smrg ;; 58283da084b3Smrg *) 58293da084b3Smrg lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 58303da084b3Smrg continue # so that we can try to find one that supports BSD flags 58313da084b3Smrg ;; 58323da084b3Smrg esac 58333da084b3Smrg ;; 58343da084b3Smrg esac 58353da084b3Smrg fi 58363da084b3Smrg done 58373da084b3Smrg IFS="$lt_save_ifs" 58383da084b3Smrg done 5839d63fdb69Smrg : ${lt_cv_path_NM=no} 58403da084b3Smrgfi 58413da084b3Smrgfi 584255acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5843d63fdb69Smrg$as_echo "$lt_cv_path_NM" >&6; } 5844d63fdb69Smrgif test "$lt_cv_path_NM" != "no"; then 5845d63fdb69Smrg NM="$lt_cv_path_NM" 5846d63fdb69Smrgelse 5847d63fdb69Smrg # Didn't find any BSD compatible name lister, look for dumpbin. 584855acc8fcSmrg if test -n "$DUMPBIN"; then : 584955acc8fcSmrg # Let the user override the test. 585055acc8fcSmrg else 585155acc8fcSmrg if test -n "$ac_tool_prefix"; then 585255acc8fcSmrg for ac_prog in dumpbin "link -dump" 5853d63fdb69Smrg do 5854d63fdb69Smrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5855d63fdb69Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2 585655acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5857d63fdb69Smrg$as_echo_n "checking for $ac_word... " >&6; } 585855acc8fcSmrgif ${ac_cv_prog_DUMPBIN+:} false; then : 5859d63fdb69Smrg $as_echo_n "(cached) " >&6 5860d63fdb69Smrgelse 5861d63fdb69Smrg if test -n "$DUMPBIN"; then 5862d63fdb69Smrg ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5863d63fdb69Smrgelse 5864d63fdb69Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5865d63fdb69Smrgfor as_dir in $PATH 5866d63fdb69Smrgdo 5867d63fdb69Smrg IFS=$as_save_IFS 5868d63fdb69Smrg test -z "$as_dir" && as_dir=. 586955acc8fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 5870d63fdb69Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5871d63fdb69Smrg ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 587255acc8fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5873d63fdb69Smrg break 2 5874d63fdb69Smrg fi 5875d63fdb69Smrgdone 587655acc8fcSmrg done 5877d63fdb69SmrgIFS=$as_save_IFS 58783da084b3Smrg 5879d63fdb69Smrgfi 5880d63fdb69Smrgfi 5881d63fdb69SmrgDUMPBIN=$ac_cv_prog_DUMPBIN 5882d63fdb69Smrgif test -n "$DUMPBIN"; then 588355acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5884d63fdb69Smrg$as_echo "$DUMPBIN" >&6; } 58853da084b3Smrgelse 588655acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5887d63fdb69Smrg$as_echo "no" >&6; } 58883da084b3Smrgfi 58893da084b3Smrg 58903da084b3Smrg 5891d63fdb69Smrg test -n "$DUMPBIN" && break 5892d63fdb69Smrg done 5893d63fdb69Smrgfi 5894d63fdb69Smrgif test -z "$DUMPBIN"; then 5895d63fdb69Smrg ac_ct_DUMPBIN=$DUMPBIN 589655acc8fcSmrg for ac_prog in dumpbin "link -dump" 5897d63fdb69Smrgdo 5898d63fdb69Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 5899d63fdb69Smrgset dummy $ac_prog; ac_word=$2 590055acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5901d63fdb69Smrg$as_echo_n "checking for $ac_word... " >&6; } 590255acc8fcSmrgif ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5903d63fdb69Smrg $as_echo_n "(cached) " >&6 5904d63fdb69Smrgelse 5905d63fdb69Smrg if test -n "$ac_ct_DUMPBIN"; then 5906d63fdb69Smrg ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5907d63fdb69Smrgelse 5908d63fdb69Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5909d63fdb69Smrgfor as_dir in $PATH 5910d63fdb69Smrgdo 5911d63fdb69Smrg IFS=$as_save_IFS 5912d63fdb69Smrg test -z "$as_dir" && as_dir=. 591355acc8fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 5914d63fdb69Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5915d63fdb69Smrg ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 591655acc8fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5917d63fdb69Smrg break 2 5918d63fdb69Smrg fi 5919d63fdb69Smrgdone 592055acc8fcSmrg done 5921d63fdb69SmrgIFS=$as_save_IFS 59223da084b3Smrg 5923d63fdb69Smrgfi 5924d63fdb69Smrgfi 5925d63fdb69Smrgac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5926d63fdb69Smrgif test -n "$ac_ct_DUMPBIN"; then 592755acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5928d63fdb69Smrg$as_echo "$ac_ct_DUMPBIN" >&6; } 5929d63fdb69Smrgelse 593055acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5931d63fdb69Smrg$as_echo "no" >&6; } 5932d63fdb69Smrgfi 59333da084b3Smrg 59343da084b3Smrg 5935d63fdb69Smrg test -n "$ac_ct_DUMPBIN" && break 5936d63fdb69Smrgdone 59373da084b3Smrg 5938d63fdb69Smrg if test "x$ac_ct_DUMPBIN" = x; then 5939d63fdb69Smrg DUMPBIN=":" 5940d63fdb69Smrg else 5941d63fdb69Smrg case $cross_compiling:$ac_tool_warned in 5942d63fdb69Smrgyes:) 594355acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5944d63fdb69Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5945d63fdb69Smrgac_tool_warned=yes ;; 5946d63fdb69Smrgesac 5947d63fdb69Smrg DUMPBIN=$ac_ct_DUMPBIN 5948d63fdb69Smrg fi 5949d63fdb69Smrgfi 59503da084b3Smrg 595155acc8fcSmrg case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 595255acc8fcSmrg *COFF*) 595355acc8fcSmrg DUMPBIN="$DUMPBIN -symbols" 595455acc8fcSmrg ;; 595555acc8fcSmrg *) 595655acc8fcSmrg DUMPBIN=: 595755acc8fcSmrg ;; 595855acc8fcSmrg esac 595955acc8fcSmrg fi 59603da084b3Smrg 5961d63fdb69Smrg if test "$DUMPBIN" != ":"; then 5962d63fdb69Smrg NM="$DUMPBIN" 59633da084b3Smrg fi 5964d63fdb69Smrgfi 5965d63fdb69Smrgtest -z "$NM" && NM=nm 59663da084b3Smrg 59673da084b3Smrg 59683da084b3Smrg 59693da084b3Smrg 59703da084b3Smrg 59713da084b3Smrg 597255acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5973d63fdb69Smrg$as_echo_n "checking the name lister ($NM) interface... " >&6; } 597455acc8fcSmrgif ${lt_cv_nm_interface+:} false; then : 5975d63fdb69Smrg $as_echo_n "(cached) " >&6 5976d63fdb69Smrgelse 5977d63fdb69Smrg lt_cv_nm_interface="BSD nm" 5978d63fdb69Smrg echo "int some_variable = 0;" > conftest.$ac_ext 597955acc8fcSmrg (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5980d63fdb69Smrg (eval "$ac_compile" 2>conftest.err) 5981d63fdb69Smrg cat conftest.err >&5 598255acc8fcSmrg (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5983d63fdb69Smrg (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5984d63fdb69Smrg cat conftest.err >&5 598555acc8fcSmrg (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5986d63fdb69Smrg cat conftest.out >&5 5987d63fdb69Smrg if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5988d63fdb69Smrg lt_cv_nm_interface="MS dumpbin" 59893da084b3Smrg fi 5990d63fdb69Smrg rm -f conftest* 5991d63fdb69Smrgfi 599255acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5993d63fdb69Smrg$as_echo "$lt_cv_nm_interface" >&6; } 59943da084b3Smrg 599555acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5996d63fdb69Smrg$as_echo_n "checking whether ln -s works... " >&6; } 5997d63fdb69SmrgLN_S=$as_ln_s 5998d63fdb69Smrgif test "$LN_S" = "ln -s"; then 599955acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6000d63fdb69Smrg$as_echo "yes" >&6; } 6001d63fdb69Smrgelse 600255acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 6003d63fdb69Smrg$as_echo "no, using $LN_S" >&6; } 6004d63fdb69Smrgfi 60053da084b3Smrg 6006d63fdb69Smrg# find the maximum length of command line arguments 600755acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6008d63fdb69Smrg$as_echo_n "checking the maximum length of command line arguments... " >&6; } 600955acc8fcSmrgif ${lt_cv_sys_max_cmd_len+:} false; then : 6010d63fdb69Smrg $as_echo_n "(cached) " >&6 6011d63fdb69Smrgelse 6012d63fdb69Smrg i=0 6013d63fdb69Smrg teststring="ABCD" 60143da084b3Smrg 6015d63fdb69Smrg case $build_os in 6016d63fdb69Smrg msdosdjgpp*) 6017d63fdb69Smrg # On DJGPP, this test can blow up pretty badly due to problems in libc 6018d63fdb69Smrg # (any single argument exceeding 2000 bytes causes a buffer overrun 6019d63fdb69Smrg # during glob expansion). Even if it were fixed, the result of this 6020d63fdb69Smrg # check would be larger than it should be. 6021d63fdb69Smrg lt_cv_sys_max_cmd_len=12288; # 12K is about right 6022d63fdb69Smrg ;; 60233da084b3Smrg 6024d63fdb69Smrg gnu*) 6025d63fdb69Smrg # Under GNU Hurd, this test is not required because there is 6026d63fdb69Smrg # no limit to the length of command line arguments. 6027d63fdb69Smrg # Libtool will interpret -1 as no limit whatsoever 6028d63fdb69Smrg lt_cv_sys_max_cmd_len=-1; 6029d63fdb69Smrg ;; 60303da084b3Smrg 6031d63fdb69Smrg cygwin* | mingw* | cegcc*) 6032d63fdb69Smrg # On Win9x/ME, this test blows up -- it succeeds, but takes 6033d63fdb69Smrg # about 5 minutes as the teststring grows exponentially. 6034d63fdb69Smrg # Worse, since 9x/ME are not pre-emptively multitasking, 6035d63fdb69Smrg # you end up with a "frozen" computer, even though with patience 6036d63fdb69Smrg # the test eventually succeeds (with a max line length of 256k). 6037d63fdb69Smrg # Instead, let's just punt: use the minimum linelength reported by 6038d63fdb69Smrg # all of the supported platforms: 8192 (on NT/2K/XP). 6039d63fdb69Smrg lt_cv_sys_max_cmd_len=8192; 6040d63fdb69Smrg ;; 60413da084b3Smrg 604255acc8fcSmrg mint*) 604355acc8fcSmrg # On MiNT this can take a long time and run out of memory. 604455acc8fcSmrg lt_cv_sys_max_cmd_len=8192; 604555acc8fcSmrg ;; 604655acc8fcSmrg 6047d63fdb69Smrg amigaos*) 6048d63fdb69Smrg # On AmigaOS with pdksh, this test takes hours, literally. 6049d63fdb69Smrg # So we just punt and use a minimum line length of 8192. 6050d63fdb69Smrg lt_cv_sys_max_cmd_len=8192; 60513da084b3Smrg ;; 6052d63fdb69Smrg 6053d63fdb69Smrg netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6054d63fdb69Smrg # This has been around since 386BSD, at least. Likely further. 6055d63fdb69Smrg if test -x /sbin/sysctl; then 6056d63fdb69Smrg lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6057d63fdb69Smrg elif test -x /usr/sbin/sysctl; then 6058d63fdb69Smrg lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6059d63fdb69Smrg else 6060d63fdb69Smrg lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6061d63fdb69Smrg fi 6062d63fdb69Smrg # And add a safety zone 6063d63fdb69Smrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6064d63fdb69Smrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 60653da084b3Smrg ;; 6066d63fdb69Smrg 6067d63fdb69Smrg interix*) 6068d63fdb69Smrg # We know the value 262144 and hardcode it with a safety zone (like BSD) 6069d63fdb69Smrg lt_cv_sys_max_cmd_len=196608 60703da084b3Smrg ;; 6071d63fdb69Smrg 6072d63fdb69Smrg osf*) 6073d63fdb69Smrg # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6074d63fdb69Smrg # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6075d63fdb69Smrg # nice to cause kernel panics so lets avoid the loop below. 6076d63fdb69Smrg # First set a reasonable default. 6077d63fdb69Smrg lt_cv_sys_max_cmd_len=16384 6078d63fdb69Smrg # 6079d63fdb69Smrg if test -x /sbin/sysconfig; then 6080d63fdb69Smrg case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6081d63fdb69Smrg *1*) lt_cv_sys_max_cmd_len=-1 ;; 6082d63fdb69Smrg esac 6083d63fdb69Smrg fi 60843da084b3Smrg ;; 6085d63fdb69Smrg sco3.2v5*) 6086d63fdb69Smrg lt_cv_sys_max_cmd_len=102400 60873da084b3Smrg ;; 6088d63fdb69Smrg sysv5* | sco5v6* | sysv4.2uw2*) 6089d63fdb69Smrg kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6090d63fdb69Smrg if test -n "$kargmax"; then 6091d63fdb69Smrg lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6092d63fdb69Smrg else 6093d63fdb69Smrg lt_cv_sys_max_cmd_len=32768 6094d63fdb69Smrg fi 6095d63fdb69Smrg ;; 6096d63fdb69Smrg *) 6097d63fdb69Smrg lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6098d63fdb69Smrg if test -n "$lt_cv_sys_max_cmd_len"; then 6099d63fdb69Smrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6100d63fdb69Smrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6101d63fdb69Smrg else 6102d63fdb69Smrg # Make teststring a little bigger before we do anything with it. 6103d63fdb69Smrg # a 1K string should be a reasonable start. 6104d63fdb69Smrg for i in 1 2 3 4 5 6 7 8 ; do 6105d63fdb69Smrg teststring=$teststring$teststring 6106d63fdb69Smrg done 6107d63fdb69Smrg SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6108d63fdb69Smrg # If test is not a shell built-in, we'll probably end up computing a 6109d63fdb69Smrg # maximum length that is only half of the actual maximum length, but 6110d63fdb69Smrg # we can't tell. 611155acc8fcSmrg while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 611255acc8fcSmrg = "X$teststring$teststring"; } >/dev/null 2>&1 && 6113d63fdb69Smrg test $i != 17 # 1/2 MB should be enough 6114d63fdb69Smrg do 6115d63fdb69Smrg i=`expr $i + 1` 6116d63fdb69Smrg teststring=$teststring$teststring 6117d63fdb69Smrg done 6118d63fdb69Smrg # Only check the string length outside the loop. 6119d63fdb69Smrg lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6120d63fdb69Smrg teststring= 6121d63fdb69Smrg # Add a significant safety factor because C++ compilers can tack on 6122d63fdb69Smrg # massive amounts of additional arguments before passing them to the 6123d63fdb69Smrg # linker. It appears as though 1/2 is a usable value. 6124d63fdb69Smrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6125d63fdb69Smrg fi 61263da084b3Smrg ;; 61273da084b3Smrg esac 61283da084b3Smrg 6129d63fdb69Smrgfi 61303da084b3Smrg 6131d63fdb69Smrgif test -n $lt_cv_sys_max_cmd_len ; then 613255acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6133d63fdb69Smrg$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6134d63fdb69Smrgelse 613555acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6136d63fdb69Smrg$as_echo "none" >&6; } 61373da084b3Smrgfi 6138d63fdb69Smrgmax_cmd_len=$lt_cv_sys_max_cmd_len 61393da084b3Smrg 61403da084b3Smrg 61413da084b3Smrg 61423da084b3Smrg 61433da084b3Smrg 61443da084b3Smrg 6145d63fdb69Smrg: ${CP="cp -f"} 6146d63fdb69Smrg: ${MV="mv -f"} 6147d63fdb69Smrg: ${RM="rm -f"} 61483da084b3Smrg 614955acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 6150d63fdb69Smrg$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 6151d63fdb69Smrg# Try some XSI features 6152d63fdb69Smrgxsi_shell=no 6153d63fdb69Smrg( _lt_dummy="a/b/c" 6154d63fdb69Smrg test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 6155d63fdb69Smrg = c,a/b,, \ 6156d63fdb69Smrg && eval 'test $(( 1 + 1 )) -eq 2 \ 6157d63fdb69Smrg && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 6158d63fdb69Smrg && xsi_shell=yes 615955acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 6160d63fdb69Smrg$as_echo "$xsi_shell" >&6; } 61613da084b3Smrg 6162d63fdb69Smrg 616355acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 6164d63fdb69Smrg$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 6165d63fdb69Smrglt_shell_append=no 6166d63fdb69Smrg( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 6167d63fdb69Smrg >/dev/null 2>&1 \ 6168d63fdb69Smrg && lt_shell_append=yes 616955acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 6170d63fdb69Smrg$as_echo "$lt_shell_append" >&6; } 6171d63fdb69Smrg 6172d63fdb69Smrg 6173d63fdb69Smrgif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6174d63fdb69Smrg lt_unset=unset 6175d63fdb69Smrgelse 6176d63fdb69Smrg lt_unset=false 61773da084b3Smrgfi 61783da084b3Smrg 61793da084b3Smrg 6180d63fdb69Smrg 6181d63fdb69Smrg 6182d63fdb69Smrg 6183d63fdb69Smrg# test EBCDIC or ASCII 6184d63fdb69Smrgcase `echo X|tr X '\101'` in 6185d63fdb69Smrg A) # ASCII based system 6186d63fdb69Smrg # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6187d63fdb69Smrg lt_SP2NL='tr \040 \012' 6188d63fdb69Smrg lt_NL2SP='tr \015\012 \040\040' 61893da084b3Smrg ;; 6190d63fdb69Smrg *) # EBCDIC based system 6191d63fdb69Smrg lt_SP2NL='tr \100 \n' 6192d63fdb69Smrg lt_NL2SP='tr \r\n \100\100' 61933da084b3Smrg ;; 6194d63fdb69Smrgesac 61953da084b3Smrg 61963da084b3Smrg 61973da084b3Smrg 61983da084b3Smrg 61993da084b3Smrg 6200d63fdb69Smrg 6201d63fdb69Smrg 6202d63fdb69Smrg 6203d63fdb69Smrg 620455acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6205d63fdb69Smrg$as_echo_n "checking for $LD option to reload object files... " >&6; } 620655acc8fcSmrgif ${lt_cv_ld_reload_flag+:} false; then : 6207d63fdb69Smrg $as_echo_n "(cached) " >&6 6208d63fdb69Smrgelse 6209d63fdb69Smrg lt_cv_ld_reload_flag='-r' 6210d63fdb69Smrgfi 621155acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6212d63fdb69Smrg$as_echo "$lt_cv_ld_reload_flag" >&6; } 6213d63fdb69Smrgreload_flag=$lt_cv_ld_reload_flag 6214d63fdb69Smrgcase $reload_flag in 6215d63fdb69Smrg"" | " "*) ;; 6216d63fdb69Smrg*) reload_flag=" $reload_flag" ;; 62173da084b3Smrgesac 6218d63fdb69Smrgreload_cmds='$LD$reload_flag -o $output$reload_objs' 6219d63fdb69Smrgcase $host_os in 6220d63fdb69Smrg darwin*) 6221d63fdb69Smrg if test "$GCC" = yes; then 6222d63fdb69Smrg reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 6223d63fdb69Smrg else 6224d63fdb69Smrg reload_cmds='$LD$reload_flag -o $output$reload_objs' 6225d63fdb69Smrg fi 6226d63fdb69Smrg ;; 62273da084b3Smrgesac 62283da084b3Smrg 62293da084b3Smrg 62303da084b3Smrg 62313da084b3Smrg 62323da084b3Smrg 62333da084b3Smrg 62343da084b3Smrg 62353da084b3Smrg 6236d63fdb69Smrg 6237d63fdb69Smrgif test -n "$ac_tool_prefix"; then 6238d63fdb69Smrg # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6239d63fdb69Smrgset dummy ${ac_tool_prefix}objdump; ac_word=$2 624055acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6241d63fdb69Smrg$as_echo_n "checking for $ac_word... " >&6; } 624255acc8fcSmrgif ${ac_cv_prog_OBJDUMP+:} false; then : 6243d63fdb69Smrg $as_echo_n "(cached) " >&6 62443da084b3Smrgelse 6245d63fdb69Smrg if test -n "$OBJDUMP"; then 6246d63fdb69Smrg ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6247d63fdb69Smrgelse 6248d63fdb69Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6249d63fdb69Smrgfor as_dir in $PATH 62503da084b3Smrgdo 6251d63fdb69Smrg IFS=$as_save_IFS 6252d63fdb69Smrg test -z "$as_dir" && as_dir=. 625355acc8fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 6254d63fdb69Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6255d63fdb69Smrg ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 625655acc8fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6257d63fdb69Smrg break 2 62583da084b3Smrg fi 6259d63fdb69Smrgdone 626055acc8fcSmrg done 6261d63fdb69SmrgIFS=$as_save_IFS 6262d63fdb69Smrg 62633da084b3Smrgfi 6264d63fdb69Smrgfi 6265d63fdb69SmrgOBJDUMP=$ac_cv_prog_OBJDUMP 6266d63fdb69Smrgif test -n "$OBJDUMP"; then 626755acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6268d63fdb69Smrg$as_echo "$OBJDUMP" >&6; } 62693da084b3Smrgelse 627055acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6271d63fdb69Smrg$as_echo "no" >&6; } 6272d63fdb69Smrgfi 6273d63fdb69Smrg 62743da084b3Smrg 62753da084b3Smrgfi 6276d63fdb69Smrgif test -z "$ac_cv_prog_OBJDUMP"; then 6277d63fdb69Smrg ac_ct_OBJDUMP=$OBJDUMP 6278d63fdb69Smrg # Extract the first word of "objdump", so it can be a program name with args. 6279d63fdb69Smrgset dummy objdump; ac_word=$2 628055acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6281d63fdb69Smrg$as_echo_n "checking for $ac_word... " >&6; } 628255acc8fcSmrgif ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6283d63fdb69Smrg $as_echo_n "(cached) " >&6 6284d63fdb69Smrgelse 6285d63fdb69Smrg if test -n "$ac_ct_OBJDUMP"; then 6286d63fdb69Smrg ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6287d63fdb69Smrgelse 6288d63fdb69Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6289d63fdb69Smrgfor as_dir in $PATH 6290d63fdb69Smrgdo 6291d63fdb69Smrg IFS=$as_save_IFS 6292d63fdb69Smrg test -z "$as_dir" && as_dir=. 629355acc8fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 6294d63fdb69Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6295d63fdb69Smrg ac_cv_prog_ac_ct_OBJDUMP="objdump" 629655acc8fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6297d63fdb69Smrg break 2 6298d63fdb69Smrg fi 6299d63fdb69Smrgdone 630055acc8fcSmrg done 6301d63fdb69SmrgIFS=$as_save_IFS 63023da084b3Smrg 6303d63fdb69Smrgfi 6304d63fdb69Smrgfi 6305d63fdb69Smrgac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6306d63fdb69Smrgif test -n "$ac_ct_OBJDUMP"; then 630755acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6308d63fdb69Smrg$as_echo "$ac_ct_OBJDUMP" >&6; } 6309d63fdb69Smrgelse 631055acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6311d63fdb69Smrg$as_echo "no" >&6; } 6312d63fdb69Smrgfi 63133da084b3Smrg 6314d63fdb69Smrg if test "x$ac_ct_OBJDUMP" = x; then 6315d63fdb69Smrg OBJDUMP="false" 63163da084b3Smrg else 6317d63fdb69Smrg case $cross_compiling:$ac_tool_warned in 6318d63fdb69Smrgyes:) 631955acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6320d63fdb69Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6321d63fdb69Smrgac_tool_warned=yes ;; 6322d63fdb69Smrgesac 6323d63fdb69Smrg OBJDUMP=$ac_ct_OBJDUMP 63243da084b3Smrg fi 63253da084b3Smrgelse 6326d63fdb69Smrg OBJDUMP="$ac_cv_prog_OBJDUMP" 63273da084b3Smrgfi 63283da084b3Smrg 6329d63fdb69Smrgtest -z "$OBJDUMP" && OBJDUMP=objdump 63303da084b3Smrg 63313da084b3Smrg 63323da084b3Smrg 63333da084b3Smrg 63343da084b3Smrg 63353da084b3Smrg 63363da084b3Smrg 63373da084b3Smrg 63383da084b3Smrg 633955acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6340d63fdb69Smrg$as_echo_n "checking how to recognize dependent libraries... " >&6; } 634155acc8fcSmrgif ${lt_cv_deplibs_check_method+:} false; then : 6342d63fdb69Smrg $as_echo_n "(cached) " >&6 63433da084b3Smrgelse 6344d63fdb69Smrg lt_cv_file_magic_cmd='$MAGIC_CMD' 6345d63fdb69Smrglt_cv_file_magic_test_file= 6346d63fdb69Smrglt_cv_deplibs_check_method='unknown' 6347d63fdb69Smrg# Need to set the preceding variable on all platforms that support 6348d63fdb69Smrg# interlibrary dependencies. 6349d63fdb69Smrg# 'none' -- dependencies not supported. 6350d63fdb69Smrg# `unknown' -- same as none, but documents that we really don't know. 6351d63fdb69Smrg# 'pass_all' -- all dependencies passed with no checks. 6352d63fdb69Smrg# 'test_compile' -- check by making test program. 6353d63fdb69Smrg# 'file_magic [[regex]]' -- check by looking for files in library path 6354d63fdb69Smrg# which responds to the $file_magic_cmd with a given extended regex. 6355d63fdb69Smrg# If you have `file' or equivalent on your system and you're not sure 6356d63fdb69Smrg# whether `pass_all' will *always* work, you probably want this one. 63573da084b3Smrg 6358d63fdb69Smrgcase $host_os in 6359d63fdb69Smrgaix[4-9]*) 6360d63fdb69Smrg lt_cv_deplibs_check_method=pass_all 6361d63fdb69Smrg ;; 63623da084b3Smrg 6363d63fdb69Smrgbeos*) 6364d63fdb69Smrg lt_cv_deplibs_check_method=pass_all 6365d63fdb69Smrg ;; 63663da084b3Smrg 6367d63fdb69Smrgbsdi[45]*) 6368d63fdb69Smrg lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6369d63fdb69Smrg lt_cv_file_magic_cmd='/usr/bin/file -L' 6370d63fdb69Smrg lt_cv_file_magic_test_file=/shlib/libc.so 6371d63fdb69Smrg ;; 63723da084b3Smrg 6373d63fdb69Smrgcygwin*) 6374d63fdb69Smrg # func_win32_libid is a shell function defined in ltmain.sh 6375d63fdb69Smrg lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6376d63fdb69Smrg lt_cv_file_magic_cmd='func_win32_libid' 6377d63fdb69Smrg ;; 63783da084b3Smrg 6379d63fdb69Smrgmingw* | pw32*) 6380d63fdb69Smrg # Base MSYS/MinGW do not provide the 'file' command needed by 6381d63fdb69Smrg # func_win32_libid shell function, so use a weaker test based on 'objdump', 6382d63fdb69Smrg # unless we find 'file', for example because we are cross-compiling. 638355acc8fcSmrg # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 638455acc8fcSmrg if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 6385d63fdb69Smrg lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6386d63fdb69Smrg lt_cv_file_magic_cmd='func_win32_libid' 6387d63fdb69Smrg else 638855acc8fcSmrg # Keep this pattern in sync with the one in func_win32_libid. 638955acc8fcSmrg lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6390d63fdb69Smrg lt_cv_file_magic_cmd='$OBJDUMP -f' 6391d63fdb69Smrg fi 6392d63fdb69Smrg ;; 63933da084b3Smrg 639455acc8fcSmrgcegcc*) 6395d63fdb69Smrg # use the weaker test based on 'objdump'. See mingw*. 6396d63fdb69Smrg lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6397d63fdb69Smrg lt_cv_file_magic_cmd='$OBJDUMP -f' 6398d63fdb69Smrg ;; 63993da084b3Smrg 6400d63fdb69Smrgdarwin* | rhapsody*) 6401d63fdb69Smrg lt_cv_deplibs_check_method=pass_all 6402d63fdb69Smrg ;; 64033da084b3Smrg 6404d63fdb69Smrgfreebsd* | dragonfly*) 6405d63fdb69Smrg if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6406d63fdb69Smrg case $host_cpu in 6407d63fdb69Smrg i*86 ) 6408d63fdb69Smrg # Not sure whether the presence of OpenBSD here was a mistake. 6409d63fdb69Smrg # Let's accept both of them until this is cleared up. 6410d63fdb69Smrg lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6411d63fdb69Smrg lt_cv_file_magic_cmd=/usr/bin/file 6412d63fdb69Smrg lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6413d63fdb69Smrg ;; 6414d63fdb69Smrg esac 6415d63fdb69Smrg else 6416d63fdb69Smrg lt_cv_deplibs_check_method=pass_all 6417d63fdb69Smrg fi 6418d63fdb69Smrg ;; 64193da084b3Smrg 6420d63fdb69Smrggnu*) 6421d63fdb69Smrg lt_cv_deplibs_check_method=pass_all 6422d63fdb69Smrg ;; 64233da084b3Smrg 642455acc8fcSmrghaiku*) 642555acc8fcSmrg lt_cv_deplibs_check_method=pass_all 642655acc8fcSmrg ;; 642755acc8fcSmrg 6428d63fdb69Smrghpux10.20* | hpux11*) 6429d63fdb69Smrg lt_cv_file_magic_cmd=/usr/bin/file 6430d63fdb69Smrg case $host_cpu in 6431d63fdb69Smrg ia64*) 6432d63fdb69Smrg lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6433d63fdb69Smrg lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6434d63fdb69Smrg ;; 6435d63fdb69Smrg hppa*64*) 643655acc8fcSmrg 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]' 6437d63fdb69Smrg lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6438d63fdb69Smrg ;; 6439d63fdb69Smrg *) 644055acc8fcSmrg lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6441d63fdb69Smrg lt_cv_file_magic_test_file=/usr/lib/libc.sl 6442d63fdb69Smrg ;; 6443d63fdb69Smrg esac 6444d63fdb69Smrg ;; 64453da084b3Smrg 6446d63fdb69Smrginterix[3-9]*) 6447d63fdb69Smrg # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6448d63fdb69Smrg lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6449d63fdb69Smrg ;; 64503da084b3Smrg 6451d63fdb69Smrgirix5* | irix6* | nonstopux*) 6452d63fdb69Smrg case $LD in 6453d63fdb69Smrg *-32|*"-32 ") libmagic=32-bit;; 6454d63fdb69Smrg *-n32|*"-n32 ") libmagic=N32;; 6455d63fdb69Smrg *-64|*"-64 ") libmagic=64-bit;; 6456d63fdb69Smrg *) libmagic=never-match;; 6457d63fdb69Smrg esac 6458d63fdb69Smrg lt_cv_deplibs_check_method=pass_all 6459d63fdb69Smrg ;; 64603da084b3Smrg 6461d63fdb69Smrg# This must be Linux ELF. 646255acc8fcSmrglinux* | k*bsd*-gnu | kopensolaris*-gnu) 6463d63fdb69Smrg lt_cv_deplibs_check_method=pass_all 6464d63fdb69Smrg ;; 64653da084b3Smrg 6466d63fdb69Smrgnetbsd*) 6467d63fdb69Smrg if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6468d63fdb69Smrg lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6469d63fdb69Smrg else 6470d63fdb69Smrg lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6471d63fdb69Smrg fi 6472d63fdb69Smrg ;; 64733da084b3Smrg 6474d63fdb69Smrgnewos6*) 6475d63fdb69Smrg lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6476d63fdb69Smrg lt_cv_file_magic_cmd=/usr/bin/file 6477d63fdb69Smrg lt_cv_file_magic_test_file=/usr/lib/libnls.so 6478d63fdb69Smrg ;; 64793da084b3Smrg 6480d63fdb69Smrg*nto* | *qnx*) 6481d63fdb69Smrg lt_cv_deplibs_check_method=pass_all 6482d63fdb69Smrg ;; 64833da084b3Smrg 6484d63fdb69Smrgopenbsd*) 6485d63fdb69Smrg if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6486d63fdb69Smrg lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6487d63fdb69Smrg else 6488d63fdb69Smrg lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6489d63fdb69Smrg fi 6490d63fdb69Smrg ;; 64913da084b3Smrg 6492d63fdb69Smrgosf3* | osf4* | osf5*) 6493d63fdb69Smrg lt_cv_deplibs_check_method=pass_all 6494d63fdb69Smrg ;; 64953da084b3Smrg 6496d63fdb69Smrgrdos*) 6497d63fdb69Smrg lt_cv_deplibs_check_method=pass_all 6498d63fdb69Smrg ;; 64993da084b3Smrg 6500d63fdb69Smrgsolaris*) 6501d63fdb69Smrg lt_cv_deplibs_check_method=pass_all 6502d63fdb69Smrg ;; 65033da084b3Smrg 6504d63fdb69Smrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6505d63fdb69Smrg lt_cv_deplibs_check_method=pass_all 6506d63fdb69Smrg ;; 6507d63fdb69Smrg 6508d63fdb69Smrgsysv4 | sysv4.3*) 6509d63fdb69Smrg case $host_vendor in 6510d63fdb69Smrg motorola) 6511d63fdb69Smrg 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]' 6512d63fdb69Smrg lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6513d63fdb69Smrg ;; 6514d63fdb69Smrg ncr) 6515d63fdb69Smrg lt_cv_deplibs_check_method=pass_all 6516d63fdb69Smrg ;; 6517d63fdb69Smrg sequent) 6518d63fdb69Smrg lt_cv_file_magic_cmd='/bin/file' 6519d63fdb69Smrg lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6520d63fdb69Smrg ;; 6521d63fdb69Smrg sni) 6522d63fdb69Smrg lt_cv_file_magic_cmd='/bin/file' 6523d63fdb69Smrg lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6524d63fdb69Smrg lt_cv_file_magic_test_file=/lib/libc.so 6525d63fdb69Smrg ;; 6526d63fdb69Smrg siemens) 6527d63fdb69Smrg lt_cv_deplibs_check_method=pass_all 6528d63fdb69Smrg ;; 6529d63fdb69Smrg pc) 6530d63fdb69Smrg lt_cv_deplibs_check_method=pass_all 6531d63fdb69Smrg ;; 6532d63fdb69Smrg esac 6533d63fdb69Smrg ;; 65343da084b3Smrg 6535d63fdb69Smrgtpf*) 6536d63fdb69Smrg lt_cv_deplibs_check_method=pass_all 6537d63fdb69Smrg ;; 6538d63fdb69Smrgesac 65393da084b3Smrg 6540d63fdb69Smrgfi 654155acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6542d63fdb69Smrg$as_echo "$lt_cv_deplibs_check_method" >&6; } 6543d63fdb69Smrgfile_magic_cmd=$lt_cv_file_magic_cmd 6544d63fdb69Smrgdeplibs_check_method=$lt_cv_deplibs_check_method 6545d63fdb69Smrgtest -z "$deplibs_check_method" && deplibs_check_method=unknown 65463da084b3Smrg 65473da084b3Smrg 65483da084b3Smrg 65493da084b3Smrg 65503da084b3Smrg 65513da084b3Smrg 65523da084b3Smrg 65533da084b3Smrg 65543da084b3Smrg 65553da084b3Smrg 65563da084b3Smrg 65573da084b3Smrg 6558d63fdb69Smrgif test -n "$ac_tool_prefix"; then 6559d63fdb69Smrg # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6560d63fdb69Smrgset dummy ${ac_tool_prefix}ar; ac_word=$2 656155acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6562d63fdb69Smrg$as_echo_n "checking for $ac_word... " >&6; } 656355acc8fcSmrgif ${ac_cv_prog_AR+:} false; then : 6564d63fdb69Smrg $as_echo_n "(cached) " >&6 6565d63fdb69Smrgelse 6566d63fdb69Smrg if test -n "$AR"; then 6567d63fdb69Smrg ac_cv_prog_AR="$AR" # Let the user override the test. 6568d63fdb69Smrgelse 6569d63fdb69Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6570d63fdb69Smrgfor as_dir in $PATH 6571d63fdb69Smrgdo 6572d63fdb69Smrg IFS=$as_save_IFS 6573d63fdb69Smrg test -z "$as_dir" && as_dir=. 657455acc8fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 6575d63fdb69Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6576d63fdb69Smrg ac_cv_prog_AR="${ac_tool_prefix}ar" 657755acc8fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6578d63fdb69Smrg break 2 6579d63fdb69Smrg fi 6580d63fdb69Smrgdone 658155acc8fcSmrg done 6582d63fdb69SmrgIFS=$as_save_IFS 65833da084b3Smrg 6584d63fdb69Smrgfi 6585d63fdb69Smrgfi 6586d63fdb69SmrgAR=$ac_cv_prog_AR 6587d63fdb69Smrgif test -n "$AR"; then 658855acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6589d63fdb69Smrg$as_echo "$AR" >&6; } 6590d63fdb69Smrgelse 659155acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6592d63fdb69Smrg$as_echo "no" >&6; } 6593d63fdb69Smrgfi 65943da084b3Smrg 65953da084b3Smrg 65963da084b3Smrgfi 6597d63fdb69Smrgif test -z "$ac_cv_prog_AR"; then 6598d63fdb69Smrg ac_ct_AR=$AR 6599d63fdb69Smrg # Extract the first word of "ar", so it can be a program name with args. 6600d63fdb69Smrgset dummy ar; ac_word=$2 660155acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6602d63fdb69Smrg$as_echo_n "checking for $ac_word... " >&6; } 660355acc8fcSmrgif ${ac_cv_prog_ac_ct_AR+:} false; then : 6604d63fdb69Smrg $as_echo_n "(cached) " >&6 66053da084b3Smrgelse 6606d63fdb69Smrg if test -n "$ac_ct_AR"; then 6607d63fdb69Smrg ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 66083da084b3Smrgelse 6609d63fdb69Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6610d63fdb69Smrgfor as_dir in $PATH 6611d63fdb69Smrgdo 6612d63fdb69Smrg IFS=$as_save_IFS 6613d63fdb69Smrg test -z "$as_dir" && as_dir=. 661455acc8fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 6615d63fdb69Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6616d63fdb69Smrg ac_cv_prog_ac_ct_AR="ar" 661755acc8fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6618d63fdb69Smrg break 2 6619d63fdb69Smrg fi 6620d63fdb69Smrgdone 662155acc8fcSmrg done 6622d63fdb69SmrgIFS=$as_save_IFS 66233da084b3Smrg 66243da084b3Smrgfi 66253da084b3Smrgfi 6626d63fdb69Smrgac_ct_AR=$ac_cv_prog_ac_ct_AR 6627d63fdb69Smrgif test -n "$ac_ct_AR"; then 662855acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6629d63fdb69Smrg$as_echo "$ac_ct_AR" >&6; } 66303da084b3Smrgelse 663155acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6632d63fdb69Smrg$as_echo "no" >&6; } 66333da084b3Smrgfi 66343da084b3Smrg 6635d63fdb69Smrg if test "x$ac_ct_AR" = x; then 6636d63fdb69Smrg AR="false" 6637d63fdb69Smrg else 6638d63fdb69Smrg case $cross_compiling:$ac_tool_warned in 6639d63fdb69Smrgyes:) 664055acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6641d63fdb69Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6642d63fdb69Smrgac_tool_warned=yes ;; 66433da084b3Smrgesac 6644d63fdb69Smrg AR=$ac_ct_AR 6645d63fdb69Smrg fi 66463da084b3Smrgelse 6647d63fdb69Smrg AR="$ac_cv_prog_AR" 66483da084b3Smrgfi 66493da084b3Smrg 6650d63fdb69Smrgtest -z "$AR" && AR=ar 6651d63fdb69Smrgtest -z "$AR_FLAGS" && AR_FLAGS=cru 66523da084b3Smrg 66533da084b3Smrg 66543da084b3Smrg 6655d63fdb69Smrg 6656d63fdb69Smrg 6657d63fdb69Smrg 6658d63fdb69Smrg 6659d63fdb69Smrg 6660d63fdb69Smrg 6661d63fdb69Smrg 6662d63fdb69Smrg 6663d63fdb69Smrgif test -n "$ac_tool_prefix"; then 6664d63fdb69Smrg # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6665d63fdb69Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2 666655acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6667d63fdb69Smrg$as_echo_n "checking for $ac_word... " >&6; } 666855acc8fcSmrgif ${ac_cv_prog_STRIP+:} false; then : 6669d63fdb69Smrg $as_echo_n "(cached) " >&6 66703da084b3Smrgelse 6671d63fdb69Smrg if test -n "$STRIP"; then 6672d63fdb69Smrg ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 66733da084b3Smrgelse 66743da084b3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 66753da084b3Smrgfor as_dir in $PATH 66763da084b3Smrgdo 66773da084b3Smrg IFS=$as_save_IFS 66783da084b3Smrg test -z "$as_dir" && as_dir=. 667955acc8fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 6680d63fdb69Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6681d63fdb69Smrg ac_cv_prog_STRIP="${ac_tool_prefix}strip" 668255acc8fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 66833da084b3Smrg break 2 66843da084b3Smrg fi 66853da084b3Smrgdone 668655acc8fcSmrg done 66873da084b3SmrgIFS=$as_save_IFS 66883da084b3Smrg 66893da084b3Smrgfi 66903da084b3Smrgfi 6691d63fdb69SmrgSTRIP=$ac_cv_prog_STRIP 6692d63fdb69Smrgif test -n "$STRIP"; then 669355acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6694d63fdb69Smrg$as_echo "$STRIP" >&6; } 66953da084b3Smrgelse 669655acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6697d63fdb69Smrg$as_echo "no" >&6; } 66983da084b3Smrgfi 66993da084b3Smrg 67003da084b3Smrg 67013da084b3Smrgfi 6702d63fdb69Smrgif test -z "$ac_cv_prog_STRIP"; then 6703d63fdb69Smrg ac_ct_STRIP=$STRIP 6704d63fdb69Smrg # Extract the first word of "strip", so it can be a program name with args. 6705d63fdb69Smrgset dummy strip; ac_word=$2 670655acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6707d63fdb69Smrg$as_echo_n "checking for $ac_word... " >&6; } 670855acc8fcSmrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6709d63fdb69Smrg $as_echo_n "(cached) " >&6 67103da084b3Smrgelse 6711d63fdb69Smrg if test -n "$ac_ct_STRIP"; then 6712d63fdb69Smrg ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 67133da084b3Smrgelse 67143da084b3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 67153da084b3Smrgfor as_dir in $PATH 67163da084b3Smrgdo 67173da084b3Smrg IFS=$as_save_IFS 67183da084b3Smrg test -z "$as_dir" && as_dir=. 671955acc8fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 6720d63fdb69Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6721d63fdb69Smrg ac_cv_prog_ac_ct_STRIP="strip" 672255acc8fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 67233da084b3Smrg break 2 67243da084b3Smrg fi 67253da084b3Smrgdone 672655acc8fcSmrg done 67273da084b3SmrgIFS=$as_save_IFS 67283da084b3Smrg 67293da084b3Smrgfi 67303da084b3Smrgfi 6731d63fdb69Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6732d63fdb69Smrgif test -n "$ac_ct_STRIP"; then 673355acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6734d63fdb69Smrg$as_echo "$ac_ct_STRIP" >&6; } 67353da084b3Smrgelse 673655acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6737d63fdb69Smrg$as_echo "no" >&6; } 67383da084b3Smrgfi 67393da084b3Smrg 6740d63fdb69Smrg if test "x$ac_ct_STRIP" = x; then 6741d63fdb69Smrg STRIP=":" 67423da084b3Smrg else 67433da084b3Smrg case $cross_compiling:$ac_tool_warned in 67443da084b3Smrgyes:) 674555acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6746d63fdb69Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 67473da084b3Smrgac_tool_warned=yes ;; 67483da084b3Smrgesac 6749d63fdb69Smrg STRIP=$ac_ct_STRIP 67503da084b3Smrg fi 6751d63fdb69Smrgelse 6752d63fdb69Smrg STRIP="$ac_cv_prog_STRIP" 67533da084b3Smrgfi 67543da084b3Smrg 6755d63fdb69Smrgtest -z "$STRIP" && STRIP=: 6756d63fdb69Smrg 6757d63fdb69Smrg 6758d63fdb69Smrg 6759d63fdb69Smrg 6760d63fdb69Smrg 6761d63fdb69Smrg 6762d63fdb69Smrgif test -n "$ac_tool_prefix"; then 6763d63fdb69Smrg # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6764d63fdb69Smrgset dummy ${ac_tool_prefix}ranlib; ac_word=$2 676555acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6766d63fdb69Smrg$as_echo_n "checking for $ac_word... " >&6; } 676755acc8fcSmrgif ${ac_cv_prog_RANLIB+:} false; then : 6768d63fdb69Smrg $as_echo_n "(cached) " >&6 6769d63fdb69Smrgelse 6770d63fdb69Smrg if test -n "$RANLIB"; then 6771d63fdb69Smrg ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6772d63fdb69Smrgelse 6773d63fdb69Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6774d63fdb69Smrgfor as_dir in $PATH 6775d63fdb69Smrgdo 6776d63fdb69Smrg IFS=$as_save_IFS 6777d63fdb69Smrg test -z "$as_dir" && as_dir=. 677855acc8fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 6779d63fdb69Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6780d63fdb69Smrg ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 678155acc8fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6782d63fdb69Smrg break 2 67833da084b3Smrg fi 6784d63fdb69Smrgdone 678555acc8fcSmrg done 6786d63fdb69SmrgIFS=$as_save_IFS 67873da084b3Smrg 6788d63fdb69Smrgfi 6789d63fdb69Smrgfi 6790d63fdb69SmrgRANLIB=$ac_cv_prog_RANLIB 6791d63fdb69Smrgif test -n "$RANLIB"; then 679255acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6793d63fdb69Smrg$as_echo "$RANLIB" >&6; } 67943da084b3Smrgelse 679555acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6796d63fdb69Smrg$as_echo "no" >&6; } 6797d63fdb69Smrgfi 67983da084b3Smrg 67993da084b3Smrg 6800d63fdb69Smrgfi 6801d63fdb69Smrgif test -z "$ac_cv_prog_RANLIB"; then 6802d63fdb69Smrg ac_ct_RANLIB=$RANLIB 6803d63fdb69Smrg # Extract the first word of "ranlib", so it can be a program name with args. 6804d63fdb69Smrgset dummy ranlib; ac_word=$2 680555acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6806d63fdb69Smrg$as_echo_n "checking for $ac_word... " >&6; } 680755acc8fcSmrgif ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6808d63fdb69Smrg $as_echo_n "(cached) " >&6 68093da084b3Smrgelse 6810d63fdb69Smrg if test -n "$ac_ct_RANLIB"; then 6811d63fdb69Smrg ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6812d63fdb69Smrgelse 6813d63fdb69Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6814d63fdb69Smrgfor as_dir in $PATH 6815d63fdb69Smrgdo 6816d63fdb69Smrg IFS=$as_save_IFS 6817d63fdb69Smrg test -z "$as_dir" && as_dir=. 681855acc8fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 6819d63fdb69Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6820d63fdb69Smrg ac_cv_prog_ac_ct_RANLIB="ranlib" 682155acc8fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6822d63fdb69Smrg break 2 6823d63fdb69Smrg fi 6824d63fdb69Smrgdone 682555acc8fcSmrg done 6826d63fdb69SmrgIFS=$as_save_IFS 68273da084b3Smrg 6828d63fdb69Smrgfi 6829d63fdb69Smrgfi 6830d63fdb69Smrgac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6831d63fdb69Smrgif test -n "$ac_ct_RANLIB"; then 683255acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6833d63fdb69Smrg$as_echo "$ac_ct_RANLIB" >&6; } 6834d63fdb69Smrgelse 683555acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6836d63fdb69Smrg$as_echo "no" >&6; } 68373da084b3Smrgfi 68383da084b3Smrg 6839d63fdb69Smrg if test "x$ac_ct_RANLIB" = x; then 6840d63fdb69Smrg RANLIB=":" 6841d63fdb69Smrg else 6842d63fdb69Smrg case $cross_compiling:$ac_tool_warned in 6843d63fdb69Smrgyes:) 684455acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6845d63fdb69Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6846d63fdb69Smrgac_tool_warned=yes ;; 68473da084b3Smrgesac 6848d63fdb69Smrg RANLIB=$ac_ct_RANLIB 6849d63fdb69Smrg fi 68503da084b3Smrgelse 6851d63fdb69Smrg RANLIB="$ac_cv_prog_RANLIB" 6852d63fdb69Smrgfi 68533da084b3Smrg 6854d63fdb69Smrgtest -z "$RANLIB" && RANLIB=: 68553da084b3Smrg 68563da084b3Smrg 68573da084b3Smrg 68583da084b3Smrg 68593da084b3Smrg 68603da084b3Smrg 6861d63fdb69Smrg# Determine commands to create old-style static archives. 6862d63fdb69Smrgold_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6863d63fdb69Smrgold_postinstall_cmds='chmod 644 $oldlib' 6864d63fdb69Smrgold_postuninstall_cmds= 68653da084b3Smrg 6866d63fdb69Smrgif test -n "$RANLIB"; then 6867d63fdb69Smrg case $host_os in 6868d63fdb69Smrg openbsd*) 6869d63fdb69Smrg old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6870d63fdb69Smrg ;; 6871d63fdb69Smrg *) 6872d63fdb69Smrg old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6873d63fdb69Smrg ;; 6874d63fdb69Smrg esac 6875d63fdb69Smrg old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 68763da084b3Smrgfi 68773da084b3Smrg 687855acc8fcSmrgcase $host_os in 687955acc8fcSmrg darwin*) 688055acc8fcSmrg lock_old_archive_extraction=yes ;; 688155acc8fcSmrg *) 688255acc8fcSmrg lock_old_archive_extraction=no ;; 688355acc8fcSmrgesac 688455acc8fcSmrg 688555acc8fcSmrg 688655acc8fcSmrg 688755acc8fcSmrg 688855acc8fcSmrg 688955acc8fcSmrg 68903da084b3Smrg 68913da084b3Smrg 68923da084b3Smrg 68933da084b3Smrg 68943da084b3Smrg 68953da084b3Smrg 68963da084b3Smrg 68973da084b3Smrg 68983da084b3Smrg 68993da084b3Smrg 69003da084b3Smrg 69013da084b3Smrg 69023da084b3Smrg 69033da084b3Smrg 69043da084b3Smrg 69053da084b3Smrg 69063da084b3Smrg 69073da084b3Smrg 69083da084b3Smrg 69093da084b3Smrg 69103da084b3Smrg 69113da084b3Smrg 69123da084b3Smrg 69133da084b3Smrg 69143da084b3Smrg 69153da084b3Smrg 69163da084b3Smrg 69173da084b3Smrg 69183da084b3Smrg 69193da084b3Smrg 69203da084b3Smrg 69213da084b3Smrg 69223da084b3Smrg 6923d63fdb69Smrg# If no C compiler was specified, use CC. 6924d63fdb69SmrgLTCC=${LTCC-"$CC"} 69253da084b3Smrg 6926d63fdb69Smrg# If no C compiler flags were specified, use CFLAGS. 6927d63fdb69SmrgLTCFLAGS=${LTCFLAGS-"$CFLAGS"} 69283da084b3Smrg 6929d63fdb69Smrg# Allow CC to be a program name with arguments. 6930d63fdb69Smrgcompiler=$CC 69313da084b3Smrg 69323da084b3Smrg 6933d63fdb69Smrg# Check for command to grab the raw symbol name followed by C symbol from nm. 693455acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6935d63fdb69Smrg$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 693655acc8fcSmrgif ${lt_cv_sys_global_symbol_pipe+:} false; then : 6937d63fdb69Smrg $as_echo_n "(cached) " >&6 69383da084b3Smrgelse 69393da084b3Smrg 6940d63fdb69Smrg# These are sane defaults that work on at least a few old systems. 6941d63fdb69Smrg# [They come from Ultrix. What could be older than Ultrix?!! ;)] 69423da084b3Smrg 6943d63fdb69Smrg# Character class describing NM global symbol codes. 6944d63fdb69Smrgsymcode='[BCDEGRST]' 69453da084b3Smrg 6946d63fdb69Smrg# Regexp to match symbols that can be accessed directly from C. 6947d63fdb69Smrgsympat='\([_A-Za-z][_A-Za-z0-9]*\)' 69483da084b3Smrg 6949d63fdb69Smrg# Define system-specific variables. 6950d63fdb69Smrgcase $host_os in 6951d63fdb69Smrgaix*) 6952d63fdb69Smrg symcode='[BCDT]' 6953d63fdb69Smrg ;; 6954d63fdb69Smrgcygwin* | mingw* | pw32* | cegcc*) 6955d63fdb69Smrg symcode='[ABCDGISTW]' 6956d63fdb69Smrg ;; 6957d63fdb69Smrghpux*) 6958d63fdb69Smrg if test "$host_cpu" = ia64; then 6959d63fdb69Smrg symcode='[ABCDEGRST]' 6960d63fdb69Smrg fi 6961d63fdb69Smrg ;; 6962d63fdb69Smrgirix* | nonstopux*) 6963d63fdb69Smrg symcode='[BCDEGRST]' 6964d63fdb69Smrg ;; 6965d63fdb69Smrgosf*) 6966d63fdb69Smrg symcode='[BCDEGQRST]' 6967d63fdb69Smrg ;; 6968d63fdb69Smrgsolaris*) 6969d63fdb69Smrg symcode='[BDRT]' 6970d63fdb69Smrg ;; 6971d63fdb69Smrgsco3.2v5*) 6972d63fdb69Smrg symcode='[DT]' 6973d63fdb69Smrg ;; 6974d63fdb69Smrgsysv4.2uw2*) 6975d63fdb69Smrg symcode='[DT]' 6976d63fdb69Smrg ;; 6977d63fdb69Smrgsysv5* | sco5v6* | unixware* | OpenUNIX*) 6978d63fdb69Smrg symcode='[ABDT]' 6979d63fdb69Smrg ;; 6980d63fdb69Smrgsysv4) 6981d63fdb69Smrg symcode='[DFNSTU]' 6982d63fdb69Smrg ;; 6983d63fdb69Smrgesac 69843da084b3Smrg 6985d63fdb69Smrg# If we're using GNU nm, then use its standard symbol codes. 6986d63fdb69Smrgcase `$NM -V 2>&1` in 6987d63fdb69Smrg*GNU* | *'with BFD'*) 6988d63fdb69Smrg symcode='[ABCDGIRSTW]' ;; 69893da084b3Smrgesac 69903da084b3Smrg 6991d63fdb69Smrg# Transform an extracted symbol line into a proper C declaration. 6992d63fdb69Smrg# Some systems (esp. on ia64) link data and code symbols differently, 6993d63fdb69Smrg# so use this general approach. 6994d63fdb69Smrglt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 69953da084b3Smrg 6996d63fdb69Smrg# Transform an extracted symbol line into symbol name and symbol address 6997d63fdb69Smrglt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6998d63fdb69Smrglt_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'" 6999d63fdb69Smrg 7000d63fdb69Smrg# Handle CRLF in mingw tool chain 7001d63fdb69Smrgopt_cr= 7002d63fdb69Smrgcase $build_os in 7003d63fdb69Smrgmingw*) 7004d63fdb69Smrg opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7005d63fdb69Smrg ;; 70063da084b3Smrgesac 70073da084b3Smrg 7008d63fdb69Smrg# Try without a prefix underscore, then with it. 7009d63fdb69Smrgfor ac_symprfx in "" "_"; do 70103da084b3Smrg 7011d63fdb69Smrg # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7012d63fdb69Smrg symxfrm="\\1 $ac_symprfx\\2 \\2" 70133da084b3Smrg 7014d63fdb69Smrg # Write the raw and C identifiers. 7015d63fdb69Smrg if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7016d63fdb69Smrg # Fake it for dumpbin and say T for any non-static function 7017d63fdb69Smrg # and D for any global variable. 7018d63fdb69Smrg # Also find C++ and __fastcall symbols from MSVC++, 7019d63fdb69Smrg # which start with @ or ?. 7020d63fdb69Smrg lt_cv_sys_global_symbol_pipe="$AWK '"\ 7021d63fdb69Smrg" {last_section=section; section=\$ 3};"\ 7022d63fdb69Smrg" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7023d63fdb69Smrg" \$ 0!~/External *\|/{next};"\ 7024d63fdb69Smrg" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7025d63fdb69Smrg" {if(hide[section]) next};"\ 7026d63fdb69Smrg" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 7027d63fdb69Smrg" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 7028d63fdb69Smrg" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 7029d63fdb69Smrg" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 7030d63fdb69Smrg" ' prfx=^$ac_symprfx" 7031d63fdb69Smrg else 7032d63fdb69Smrg lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7033d63fdb69Smrg fi 70343da084b3Smrg 7035d63fdb69Smrg # Check to see that the pipe works correctly. 7036d63fdb69Smrg pipe_works=no 7037d63fdb69Smrg 7038d63fdb69Smrg rm -f conftest* 7039d63fdb69Smrg cat > conftest.$ac_ext <<_LT_EOF 7040d63fdb69Smrg#ifdef __cplusplus 7041d63fdb69Smrgextern "C" { 7042d63fdb69Smrg#endif 7043d63fdb69Smrgchar nm_test_var; 7044d63fdb69Smrgvoid nm_test_func(void); 7045d63fdb69Smrgvoid nm_test_func(void){} 7046d63fdb69Smrg#ifdef __cplusplus 7047d63fdb69Smrg} 7048d63fdb69Smrg#endif 7049d63fdb69Smrgint main(){nm_test_var='a';nm_test_func();return(0);} 7050d63fdb69Smrg_LT_EOF 7051d63fdb69Smrg 705255acc8fcSmrg if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7053d63fdb69Smrg (eval $ac_compile) 2>&5 70543da084b3Smrg ac_status=$? 705555acc8fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 705655acc8fcSmrg test $ac_status = 0; }; then 7057d63fdb69Smrg # Now try to grab the symbols. 7058d63fdb69Smrg nlist=conftest.nm 705955acc8fcSmrg if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 706055acc8fcSmrg (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 70613da084b3Smrg ac_status=$? 706255acc8fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 706355acc8fcSmrg test $ac_status = 0; } && test -s "$nlist"; then 7064d63fdb69Smrg # Try sorting and uniquifying the output. 7065d63fdb69Smrg if sort "$nlist" | uniq > "$nlist"T; then 7066d63fdb69Smrg mv -f "$nlist"T "$nlist" 7067d63fdb69Smrg else 7068d63fdb69Smrg rm -f "$nlist"T 7069d63fdb69Smrg fi 70703da084b3Smrg 7071d63fdb69Smrg # Make sure that we snagged all the symbols we need. 7072d63fdb69Smrg if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7073d63fdb69Smrg if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7074d63fdb69Smrg cat <<_LT_EOF > conftest.$ac_ext 7075d63fdb69Smrg#ifdef __cplusplus 7076d63fdb69Smrgextern "C" { 7077d63fdb69Smrg#endif 70783da084b3Smrg 7079d63fdb69Smrg_LT_EOF 7080d63fdb69Smrg # Now generate the symbol file. 7081d63fdb69Smrg eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 70823da084b3Smrg 7083d63fdb69Smrg cat <<_LT_EOF >> conftest.$ac_ext 7084d63fdb69Smrg 7085d63fdb69Smrg/* The mapping between symbol names and symbols. */ 7086d63fdb69Smrgconst struct { 7087d63fdb69Smrg const char *name; 7088d63fdb69Smrg void *address; 7089d63fdb69Smrg} 7090d63fdb69Smrglt__PROGRAM__LTX_preloaded_symbols[] = 7091d63fdb69Smrg{ 7092d63fdb69Smrg { "@PROGRAM@", (void *) 0 }, 7093d63fdb69Smrg_LT_EOF 7094d63fdb69Smrg $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7095d63fdb69Smrg cat <<\_LT_EOF >> conftest.$ac_ext 7096d63fdb69Smrg {0, (void *) 0} 7097d63fdb69Smrg}; 7098d63fdb69Smrg 7099d63fdb69Smrg/* This works around a problem in FreeBSD linker */ 7100d63fdb69Smrg#ifdef FREEBSD_WORKAROUND 7101d63fdb69Smrgstatic const void *lt_preloaded_setup() { 7102d63fdb69Smrg return lt__PROGRAM__LTX_preloaded_symbols; 7103d63fdb69Smrg} 7104d63fdb69Smrg#endif 7105d63fdb69Smrg 7106d63fdb69Smrg#ifdef __cplusplus 7107d63fdb69Smrg} 7108d63fdb69Smrg#endif 7109d63fdb69Smrg_LT_EOF 7110d63fdb69Smrg # Now try linking the two files. 7111d63fdb69Smrg mv conftest.$ac_objext conftstm.$ac_objext 7112d63fdb69Smrg lt_save_LIBS="$LIBS" 7113d63fdb69Smrg lt_save_CFLAGS="$CFLAGS" 7114d63fdb69Smrg LIBS="conftstm.$ac_objext" 7115d63fdb69Smrg CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 711655acc8fcSmrg if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7117d63fdb69Smrg (eval $ac_link) 2>&5 7118d63fdb69Smrg ac_status=$? 711955acc8fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 712055acc8fcSmrg test $ac_status = 0; } && test -s conftest${ac_exeext}; then 7121d63fdb69Smrg pipe_works=yes 7122d63fdb69Smrg fi 7123d63fdb69Smrg LIBS="$lt_save_LIBS" 7124d63fdb69Smrg CFLAGS="$lt_save_CFLAGS" 7125d63fdb69Smrg else 7126d63fdb69Smrg echo "cannot find nm_test_func in $nlist" >&5 7127d63fdb69Smrg fi 7128d63fdb69Smrg else 7129d63fdb69Smrg echo "cannot find nm_test_var in $nlist" >&5 7130d63fdb69Smrg fi 7131d63fdb69Smrg else 7132d63fdb69Smrg echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7133d63fdb69Smrg fi 71343da084b3Smrg else 7135d63fdb69Smrg echo "$progname: failed program was:" >&5 7136d63fdb69Smrg cat conftest.$ac_ext >&5 71373da084b3Smrg fi 7138d63fdb69Smrg rm -rf conftest* conftst* 7139d63fdb69Smrg 7140d63fdb69Smrg # Do not use the global_symbol_pipe unless it works. 7141d63fdb69Smrg if test "$pipe_works" = yes; then 7142d63fdb69Smrg break 71433da084b3Smrg else 7144d63fdb69Smrg lt_cv_sys_global_symbol_pipe= 71453da084b3Smrg fi 7146d63fdb69Smrgdone 7147d63fdb69Smrg 71483da084b3Smrgfi 71493da084b3Smrg 7150d63fdb69Smrgif test -z "$lt_cv_sys_global_symbol_pipe"; then 7151d63fdb69Smrg lt_cv_sys_global_symbol_to_cdecl= 7152d63fdb69Smrgfi 7153d63fdb69Smrgif test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 715455acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7155d63fdb69Smrg$as_echo "failed" >&6; } 7156d63fdb69Smrgelse 715755acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7158d63fdb69Smrg$as_echo "ok" >&6; } 7159d63fdb69Smrgfi 71603da084b3Smrg 71613da084b3Smrg 71623da084b3Smrg 71633da084b3Smrg 71643da084b3Smrg 71653da084b3Smrg 71663da084b3Smrg 71673da084b3Smrg 71683da084b3Smrg 71693da084b3Smrg 71703da084b3Smrg 71713da084b3Smrg 71723da084b3Smrg 71733da084b3Smrg 71743da084b3Smrg 71753da084b3Smrg 71763da084b3Smrg 71773da084b3Smrg 71783da084b3Smrg 71793da084b3Smrg 71803da084b3Smrg 71813da084b3Smrg 7182d63fdb69Smrg# Check whether --enable-libtool-lock was given. 718355acc8fcSmrgif test "${enable_libtool_lock+set}" = set; then : 7184d63fdb69Smrg enableval=$enable_libtool_lock; 7185d63fdb69Smrgfi 7186d63fdb69Smrg 7187d63fdb69Smrgtest "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7188d63fdb69Smrg 7189d63fdb69Smrg# Some flags need to be propagated to the compiler or linker for good 7190d63fdb69Smrg# libtool support. 7191d63fdb69Smrgcase $host in 7192d63fdb69Smrgia64-*-hpux*) 7193d63fdb69Smrg # Find out which ABI we are using. 7194d63fdb69Smrg echo 'int i;' > conftest.$ac_ext 719555acc8fcSmrg if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7196d63fdb69Smrg (eval $ac_compile) 2>&5 7197d63fdb69Smrg ac_status=$? 719855acc8fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 719955acc8fcSmrg test $ac_status = 0; }; then 7200d63fdb69Smrg case `/usr/bin/file conftest.$ac_objext` in 7201d63fdb69Smrg *ELF-32*) 7202d63fdb69Smrg HPUX_IA64_MODE="32" 7203d63fdb69Smrg ;; 7204d63fdb69Smrg *ELF-64*) 7205d63fdb69Smrg HPUX_IA64_MODE="64" 7206d63fdb69Smrg ;; 7207d63fdb69Smrg esac 72083da084b3Smrg fi 7209d63fdb69Smrg rm -rf conftest* 72103da084b3Smrg ;; 7211d63fdb69Smrg*-*-irix6*) 7212d63fdb69Smrg # Find out which ABI we are using. 721355acc8fcSmrg echo '#line '$LINENO' "configure"' > conftest.$ac_ext 721455acc8fcSmrg if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7215d63fdb69Smrg (eval $ac_compile) 2>&5 7216d63fdb69Smrg ac_status=$? 721755acc8fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 721855acc8fcSmrg test $ac_status = 0; }; then 7219d63fdb69Smrg if test "$lt_cv_prog_gnu_ld" = yes; then 7220d63fdb69Smrg case `/usr/bin/file conftest.$ac_objext` in 7221d63fdb69Smrg *32-bit*) 7222d63fdb69Smrg LD="${LD-ld} -melf32bsmip" 7223d63fdb69Smrg ;; 7224d63fdb69Smrg *N32*) 7225d63fdb69Smrg LD="${LD-ld} -melf32bmipn32" 7226d63fdb69Smrg ;; 7227d63fdb69Smrg *64-bit*) 7228d63fdb69Smrg LD="${LD-ld} -melf64bmip" 7229d63fdb69Smrg ;; 7230d63fdb69Smrg esac 7231d63fdb69Smrg else 7232d63fdb69Smrg case `/usr/bin/file conftest.$ac_objext` in 7233d63fdb69Smrg *32-bit*) 7234d63fdb69Smrg LD="${LD-ld} -32" 7235d63fdb69Smrg ;; 7236d63fdb69Smrg *N32*) 7237d63fdb69Smrg LD="${LD-ld} -n32" 7238d63fdb69Smrg ;; 7239d63fdb69Smrg *64-bit*) 7240d63fdb69Smrg LD="${LD-ld} -64" 7241d63fdb69Smrg ;; 7242d63fdb69Smrg esac 7243d63fdb69Smrg fi 72443da084b3Smrg fi 7245d63fdb69Smrg rm -rf conftest* 72463da084b3Smrg ;; 72473da084b3Smrg 7248d63fdb69Smrgx86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 7249d63fdb69Smrgs390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7250d63fdb69Smrg # Find out which ABI we are using. 7251d63fdb69Smrg echo 'int i;' > conftest.$ac_ext 725255acc8fcSmrg if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7253d63fdb69Smrg (eval $ac_compile) 2>&5 7254d63fdb69Smrg ac_status=$? 725555acc8fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 725655acc8fcSmrg test $ac_status = 0; }; then 7257d63fdb69Smrg case `/usr/bin/file conftest.o` in 7258d63fdb69Smrg *32-bit*) 7259d63fdb69Smrg case $host in 7260d63fdb69Smrg x86_64-*kfreebsd*-gnu) 7261d63fdb69Smrg LD="${LD-ld} -m elf_i386_fbsd" 7262d63fdb69Smrg ;; 7263d63fdb69Smrg x86_64-*linux*) 7264d63fdb69Smrg LD="${LD-ld} -m elf_i386" 7265d63fdb69Smrg ;; 7266d63fdb69Smrg ppc64-*linux*|powerpc64-*linux*) 7267d63fdb69Smrg LD="${LD-ld} -m elf32ppclinux" 7268d63fdb69Smrg ;; 7269d63fdb69Smrg s390x-*linux*) 7270d63fdb69Smrg LD="${LD-ld} -m elf_s390" 7271d63fdb69Smrg ;; 7272d63fdb69Smrg sparc64-*linux*) 7273d63fdb69Smrg LD="${LD-ld} -m elf32_sparc" 7274d63fdb69Smrg ;; 7275d63fdb69Smrg esac 7276d63fdb69Smrg ;; 7277d63fdb69Smrg *64-bit*) 7278d63fdb69Smrg case $host in 7279d63fdb69Smrg x86_64-*kfreebsd*-gnu) 7280d63fdb69Smrg LD="${LD-ld} -m elf_x86_64_fbsd" 7281d63fdb69Smrg ;; 7282d63fdb69Smrg x86_64-*linux*) 7283d63fdb69Smrg LD="${LD-ld} -m elf_x86_64" 7284d63fdb69Smrg ;; 7285d63fdb69Smrg ppc*-*linux*|powerpc*-*linux*) 7286d63fdb69Smrg LD="${LD-ld} -m elf64ppc" 7287d63fdb69Smrg ;; 7288d63fdb69Smrg s390*-*linux*|s390*-*tpf*) 7289d63fdb69Smrg LD="${LD-ld} -m elf64_s390" 7290d63fdb69Smrg ;; 7291d63fdb69Smrg sparc*-*linux*) 7292d63fdb69Smrg LD="${LD-ld} -m elf64_sparc" 7293d63fdb69Smrg ;; 7294d63fdb69Smrg esac 7295d63fdb69Smrg ;; 7296d63fdb69Smrg esac 7297d63fdb69Smrg fi 7298d63fdb69Smrg rm -rf conftest* 72993da084b3Smrg ;; 73003da084b3Smrg 7301d63fdb69Smrg*-*-sco3.2v5*) 7302d63fdb69Smrg # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7303d63fdb69Smrg SAVE_CFLAGS="$CFLAGS" 7304d63fdb69Smrg CFLAGS="$CFLAGS -belf" 730555acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7306d63fdb69Smrg$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 730755acc8fcSmrgif ${lt_cv_cc_needs_belf+:} false; then : 7308d63fdb69Smrg $as_echo_n "(cached) " >&6 7309d63fdb69Smrgelse 7310d63fdb69Smrg ac_ext=c 7311d63fdb69Smrgac_cpp='$CPP $CPPFLAGS' 7312d63fdb69Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7313d63fdb69Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7314d63fdb69Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 73153da084b3Smrg 731655acc8fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7317d63fdb69Smrg/* end confdefs.h. */ 73183da084b3Smrg 7319d63fdb69Smrgint 732055acc8fcSmrgmain () 732155acc8fcSmrg{ 732255acc8fcSmrg 732355acc8fcSmrg ; 732455acc8fcSmrg return 0; 732555acc8fcSmrg} 732655acc8fcSmrg_ACEOF 732755acc8fcSmrgif ac_fn_c_try_link "$LINENO"; then : 7328d63fdb69Smrg lt_cv_cc_needs_belf=yes 7329d63fdb69Smrgelse 733055acc8fcSmrg lt_cv_cc_needs_belf=no 7331d63fdb69Smrgfi 733255acc8fcSmrgrm -f core conftest.err conftest.$ac_objext \ 733355acc8fcSmrg conftest$ac_exeext conftest.$ac_ext 7334d63fdb69Smrg ac_ext=c 7335d63fdb69Smrgac_cpp='$CPP $CPPFLAGS' 7336d63fdb69Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7337d63fdb69Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7338d63fdb69Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 73393da084b3Smrg 7340d63fdb69Smrgfi 734155acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7342d63fdb69Smrg$as_echo "$lt_cv_cc_needs_belf" >&6; } 7343d63fdb69Smrg if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7344d63fdb69Smrg # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7345d63fdb69Smrg CFLAGS="$SAVE_CFLAGS" 7346d63fdb69Smrg fi 7347d63fdb69Smrg ;; 7348d63fdb69Smrgsparc*-*solaris*) 7349d63fdb69Smrg # Find out which ABI we are using. 7350d63fdb69Smrg echo 'int i;' > conftest.$ac_ext 735155acc8fcSmrg if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 73523da084b3Smrg (eval $ac_compile) 2>&5 73533da084b3Smrg ac_status=$? 735455acc8fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 735555acc8fcSmrg test $ac_status = 0; }; then 7356d63fdb69Smrg case `/usr/bin/file conftest.o` in 7357d63fdb69Smrg *64-bit*) 7358d63fdb69Smrg case $lt_cv_prog_gnu_ld in 7359d63fdb69Smrg yes*) LD="${LD-ld} -m elf64_sparc" ;; 7360d63fdb69Smrg *) 7361d63fdb69Smrg if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7362d63fdb69Smrg LD="${LD-ld} -64" 7363d63fdb69Smrg fi 7364d63fdb69Smrg ;; 736555acc8fcSmrg esac 736655acc8fcSmrg ;; 736755acc8fcSmrg esac 73683da084b3Smrg fi 736955acc8fcSmrg rm -rf conftest* 737055acc8fcSmrg ;; 737155acc8fcSmrgesac 737255acc8fcSmrg 737355acc8fcSmrgneed_locks="$enable_libtool_lock" 737455acc8fcSmrg 73753da084b3Smrg 737655acc8fcSmrg case $host_os in 737755acc8fcSmrg rhapsody* | darwin*) 7378d63fdb69Smrg if test -n "$ac_tool_prefix"; then 737955acc8fcSmrg # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 738055acc8fcSmrgset dummy ${ac_tool_prefix}dsymutil; ac_word=$2 738155acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7382d63fdb69Smrg$as_echo_n "checking for $ac_word... " >&6; } 738355acc8fcSmrgif ${ac_cv_prog_DSYMUTIL+:} false; then : 7384d63fdb69Smrg $as_echo_n "(cached) " >&6 73853da084b3Smrgelse 738655acc8fcSmrg if test -n "$DSYMUTIL"; then 738755acc8fcSmrg ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 73883da084b3Smrgelse 73893da084b3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 73903da084b3Smrgfor as_dir in $PATH 73913da084b3Smrgdo 73923da084b3Smrg IFS=$as_save_IFS 73933da084b3Smrg test -z "$as_dir" && as_dir=. 739455acc8fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 7395d63fdb69Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 739655acc8fcSmrg ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 739755acc8fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 73983da084b3Smrg break 2 73993da084b3Smrg fi 74003da084b3Smrgdone 740155acc8fcSmrg done 74023da084b3SmrgIFS=$as_save_IFS 74033da084b3Smrg 74043da084b3Smrgfi 74053da084b3Smrgfi 740655acc8fcSmrgDSYMUTIL=$ac_cv_prog_DSYMUTIL 740755acc8fcSmrgif test -n "$DSYMUTIL"; then 740855acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 740955acc8fcSmrg$as_echo "$DSYMUTIL" >&6; } 74103da084b3Smrgelse 741155acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7412d63fdb69Smrg$as_echo "no" >&6; } 74133da084b3Smrgfi 74143da084b3Smrg 74153da084b3Smrg 74163da084b3Smrgfi 741755acc8fcSmrgif test -z "$ac_cv_prog_DSYMUTIL"; then 741855acc8fcSmrg ac_ct_DSYMUTIL=$DSYMUTIL 741955acc8fcSmrg # Extract the first word of "dsymutil", so it can be a program name with args. 742055acc8fcSmrgset dummy dsymutil; ac_word=$2 742155acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7422d63fdb69Smrg$as_echo_n "checking for $ac_word... " >&6; } 742355acc8fcSmrgif ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7424d63fdb69Smrg $as_echo_n "(cached) " >&6 74253da084b3Smrgelse 742655acc8fcSmrg if test -n "$ac_ct_DSYMUTIL"; then 742755acc8fcSmrg ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 74283da084b3Smrgelse 74293da084b3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 74303da084b3Smrgfor as_dir in $PATH 74313da084b3Smrgdo 74323da084b3Smrg IFS=$as_save_IFS 74333da084b3Smrg test -z "$as_dir" && as_dir=. 743455acc8fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 7435d63fdb69Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 743655acc8fcSmrg ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 743755acc8fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 74383da084b3Smrg break 2 74393da084b3Smrg fi 74403da084b3Smrgdone 744155acc8fcSmrg done 74423da084b3SmrgIFS=$as_save_IFS 74433da084b3Smrg 74443da084b3Smrgfi 74453da084b3Smrgfi 744655acc8fcSmrgac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 744755acc8fcSmrgif test -n "$ac_ct_DSYMUTIL"; then 744855acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 744955acc8fcSmrg$as_echo "$ac_ct_DSYMUTIL" >&6; } 74503da084b3Smrgelse 745155acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7452d63fdb69Smrg$as_echo "no" >&6; } 74533da084b3Smrgfi 74543da084b3Smrg 745555acc8fcSmrg if test "x$ac_ct_DSYMUTIL" = x; then 745655acc8fcSmrg DSYMUTIL=":" 74573da084b3Smrg else 74583da084b3Smrg case $cross_compiling:$ac_tool_warned in 74593da084b3Smrgyes:) 746055acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7461d63fdb69Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 74623da084b3Smrgac_tool_warned=yes ;; 74633da084b3Smrgesac 746455acc8fcSmrg DSYMUTIL=$ac_ct_DSYMUTIL 74653da084b3Smrg fi 74663da084b3Smrgelse 746755acc8fcSmrg DSYMUTIL="$ac_cv_prog_DSYMUTIL" 74683da084b3Smrgfi 74693da084b3Smrg 7470d63fdb69Smrg if test -n "$ac_tool_prefix"; then 747155acc8fcSmrg # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 747255acc8fcSmrgset dummy ${ac_tool_prefix}nmedit; ac_word=$2 747355acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7474d63fdb69Smrg$as_echo_n "checking for $ac_word... " >&6; } 747555acc8fcSmrgif ${ac_cv_prog_NMEDIT+:} false; then : 7476d63fdb69Smrg $as_echo_n "(cached) " >&6 74773da084b3Smrgelse 747855acc8fcSmrg if test -n "$NMEDIT"; then 747955acc8fcSmrg ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 74803da084b3Smrgelse 74813da084b3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 74823da084b3Smrgfor as_dir in $PATH 74833da084b3Smrgdo 74843da084b3Smrg IFS=$as_save_IFS 74853da084b3Smrg test -z "$as_dir" && as_dir=. 748655acc8fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 7487d63fdb69Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 748855acc8fcSmrg ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 748955acc8fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 74903da084b3Smrg break 2 74913da084b3Smrg fi 74923da084b3Smrgdone 749355acc8fcSmrg done 74943da084b3SmrgIFS=$as_save_IFS 74953da084b3Smrg 74963da084b3Smrgfi 74973da084b3Smrgfi 749855acc8fcSmrgNMEDIT=$ac_cv_prog_NMEDIT 749955acc8fcSmrgif test -n "$NMEDIT"; then 750055acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 750155acc8fcSmrg$as_echo "$NMEDIT" >&6; } 75023da084b3Smrgelse 750355acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7504d63fdb69Smrg$as_echo "no" >&6; } 75053da084b3Smrgfi 75063da084b3Smrg 75073da084b3Smrg 75083da084b3Smrgfi 750955acc8fcSmrgif test -z "$ac_cv_prog_NMEDIT"; then 751055acc8fcSmrg ac_ct_NMEDIT=$NMEDIT 751155acc8fcSmrg # Extract the first word of "nmedit", so it can be a program name with args. 751255acc8fcSmrgset dummy nmedit; ac_word=$2 751355acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7514d63fdb69Smrg$as_echo_n "checking for $ac_word... " >&6; } 751555acc8fcSmrgif ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7516d63fdb69Smrg $as_echo_n "(cached) " >&6 75173da084b3Smrgelse 751855acc8fcSmrg if test -n "$ac_ct_NMEDIT"; then 751955acc8fcSmrg ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 75203da084b3Smrgelse 75213da084b3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 75223da084b3Smrgfor as_dir in $PATH 75233da084b3Smrgdo 75243da084b3Smrg IFS=$as_save_IFS 75253da084b3Smrg test -z "$as_dir" && as_dir=. 752655acc8fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 7527d63fdb69Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 752855acc8fcSmrg ac_cv_prog_ac_ct_NMEDIT="nmedit" 752955acc8fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 75303da084b3Smrg break 2 75313da084b3Smrg fi 75323da084b3Smrgdone 753355acc8fcSmrg done 75343da084b3SmrgIFS=$as_save_IFS 75353da084b3Smrg 75363da084b3Smrgfi 75373da084b3Smrgfi 753855acc8fcSmrgac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 753955acc8fcSmrgif test -n "$ac_ct_NMEDIT"; then 754055acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 754155acc8fcSmrg$as_echo "$ac_ct_NMEDIT" >&6; } 75423da084b3Smrgelse 754355acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7544d63fdb69Smrg$as_echo "no" >&6; } 75453da084b3Smrgfi 75463da084b3Smrg 754755acc8fcSmrg if test "x$ac_ct_NMEDIT" = x; then 754855acc8fcSmrg NMEDIT=":" 754955acc8fcSmrg else 755055acc8fcSmrg case $cross_compiling:$ac_tool_warned in 755155acc8fcSmrgyes:) 755255acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 755355acc8fcSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 755455acc8fcSmrgac_tool_warned=yes ;; 755555acc8fcSmrgesac 755655acc8fcSmrg NMEDIT=$ac_ct_NMEDIT 755755acc8fcSmrg fi 755855acc8fcSmrgelse 755955acc8fcSmrg NMEDIT="$ac_cv_prog_NMEDIT" 7560d63fdb69Smrgfi 756155acc8fcSmrg 756255acc8fcSmrg if test -n "$ac_tool_prefix"; then 756355acc8fcSmrg # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 756455acc8fcSmrgset dummy ${ac_tool_prefix}lipo; ac_word=$2 756555acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 756655acc8fcSmrg$as_echo_n "checking for $ac_word... " >&6; } 756755acc8fcSmrgif ${ac_cv_prog_LIPO+:} false; then : 7568d63fdb69Smrg $as_echo_n "(cached) " >&6 7569d63fdb69Smrgelse 757055acc8fcSmrg if test -n "$LIPO"; then 757155acc8fcSmrg ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7572d63fdb69Smrgelse 757355acc8fcSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 757455acc8fcSmrgfor as_dir in $PATH 757555acc8fcSmrgdo 757655acc8fcSmrg IFS=$as_save_IFS 757755acc8fcSmrg test -z "$as_dir" && as_dir=. 757855acc8fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 757955acc8fcSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 758055acc8fcSmrg ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 758155acc8fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 758255acc8fcSmrg break 2 758355acc8fcSmrg fi 758455acc8fcSmrgdone 758555acc8fcSmrg done 758655acc8fcSmrgIFS=$as_save_IFS 75873da084b3Smrg 758855acc8fcSmrgfi 758955acc8fcSmrgfi 759055acc8fcSmrgLIPO=$ac_cv_prog_LIPO 759155acc8fcSmrgif test -n "$LIPO"; then 759255acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 759355acc8fcSmrg$as_echo "$LIPO" >&6; } 759455acc8fcSmrgelse 759555acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 759655acc8fcSmrg$as_echo "no" >&6; } 7597d63fdb69Smrgfi 75983da084b3Smrg 75993da084b3Smrg 760055acc8fcSmrgfi 760155acc8fcSmrgif test -z "$ac_cv_prog_LIPO"; then 760255acc8fcSmrg ac_ct_LIPO=$LIPO 760355acc8fcSmrg # Extract the first word of "lipo", so it can be a program name with args. 760455acc8fcSmrgset dummy lipo; ac_word=$2 760555acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 760655acc8fcSmrg$as_echo_n "checking for $ac_word... " >&6; } 760755acc8fcSmrgif ${ac_cv_prog_ac_ct_LIPO+:} false; then : 760855acc8fcSmrg $as_echo_n "(cached) " >&6 7609d63fdb69Smrgelse 761055acc8fcSmrg if test -n "$ac_ct_LIPO"; then 761155acc8fcSmrg ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 761255acc8fcSmrgelse 761355acc8fcSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 761455acc8fcSmrgfor as_dir in $PATH 761555acc8fcSmrgdo 761655acc8fcSmrg IFS=$as_save_IFS 761755acc8fcSmrg test -z "$as_dir" && as_dir=. 761855acc8fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 761955acc8fcSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 762055acc8fcSmrg ac_cv_prog_ac_ct_LIPO="lipo" 762155acc8fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 762255acc8fcSmrg break 2 762355acc8fcSmrg fi 762455acc8fcSmrgdone 762555acc8fcSmrg done 762655acc8fcSmrgIFS=$as_save_IFS 76273da084b3Smrg 762855acc8fcSmrgfi 762955acc8fcSmrgfi 763055acc8fcSmrgac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 763155acc8fcSmrgif test -n "$ac_ct_LIPO"; then 763255acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 763355acc8fcSmrg$as_echo "$ac_ct_LIPO" >&6; } 763455acc8fcSmrgelse 763555acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 763655acc8fcSmrg$as_echo "no" >&6; } 7637d63fdb69Smrgfi 76383da084b3Smrg 763955acc8fcSmrg if test "x$ac_ct_LIPO" = x; then 764055acc8fcSmrg LIPO=":" 764155acc8fcSmrg else 764255acc8fcSmrg case $cross_compiling:$ac_tool_warned in 764355acc8fcSmrgyes:) 764455acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 764555acc8fcSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 764655acc8fcSmrgac_tool_warned=yes ;; 764755acc8fcSmrgesac 764855acc8fcSmrg LIPO=$ac_ct_LIPO 764955acc8fcSmrg fi 765055acc8fcSmrgelse 765155acc8fcSmrg LIPO="$ac_cv_prog_LIPO" 765255acc8fcSmrgfi 76533da084b3Smrg 765455acc8fcSmrg if test -n "$ac_tool_prefix"; then 765555acc8fcSmrg # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 765655acc8fcSmrgset dummy ${ac_tool_prefix}otool; ac_word=$2 765755acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 765855acc8fcSmrg$as_echo_n "checking for $ac_word... " >&6; } 765955acc8fcSmrgif ${ac_cv_prog_OTOOL+:} false; then : 766055acc8fcSmrg $as_echo_n "(cached) " >&6 766155acc8fcSmrgelse 766255acc8fcSmrg if test -n "$OTOOL"; then 766355acc8fcSmrg ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 766455acc8fcSmrgelse 766555acc8fcSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 766655acc8fcSmrgfor as_dir in $PATH 766755acc8fcSmrgdo 766855acc8fcSmrg IFS=$as_save_IFS 766955acc8fcSmrg test -z "$as_dir" && as_dir=. 767055acc8fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 767155acc8fcSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 767255acc8fcSmrg ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 767355acc8fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 767455acc8fcSmrg break 2 767555acc8fcSmrg fi 7676d63fdb69Smrgdone 767755acc8fcSmrg done 767855acc8fcSmrgIFS=$as_save_IFS 767955acc8fcSmrg 768055acc8fcSmrgfi 768155acc8fcSmrgfi 768255acc8fcSmrgOTOOL=$ac_cv_prog_OTOOL 768355acc8fcSmrgif test -n "$OTOOL"; then 768455acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 768555acc8fcSmrg$as_echo "$OTOOL" >&6; } 768655acc8fcSmrgelse 768755acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 768855acc8fcSmrg$as_echo "no" >&6; } 7689d63fdb69Smrgfi 76903da084b3Smrg 76913da084b3Smrg 7692d63fdb69Smrgfi 769355acc8fcSmrgif test -z "$ac_cv_prog_OTOOL"; then 769455acc8fcSmrg ac_ct_OTOOL=$OTOOL 769555acc8fcSmrg # Extract the first word of "otool", so it can be a program name with args. 769655acc8fcSmrgset dummy otool; ac_word=$2 769755acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 769855acc8fcSmrg$as_echo_n "checking for $ac_word... " >&6; } 769955acc8fcSmrgif ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 770055acc8fcSmrg $as_echo_n "(cached) " >&6 7701d63fdb69Smrgelse 770255acc8fcSmrg if test -n "$ac_ct_OTOOL"; then 770355acc8fcSmrg ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7704d63fdb69Smrgelse 770555acc8fcSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 770655acc8fcSmrgfor as_dir in $PATH 770755acc8fcSmrgdo 770855acc8fcSmrg IFS=$as_save_IFS 770955acc8fcSmrg test -z "$as_dir" && as_dir=. 771055acc8fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 771155acc8fcSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 771255acc8fcSmrg ac_cv_prog_ac_ct_OTOOL="otool" 771355acc8fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 771455acc8fcSmrg break 2 771555acc8fcSmrg fi 771655acc8fcSmrgdone 771755acc8fcSmrg done 771855acc8fcSmrgIFS=$as_save_IFS 77193da084b3Smrg 772055acc8fcSmrgfi 772155acc8fcSmrgfi 772255acc8fcSmrgac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 772355acc8fcSmrgif test -n "$ac_ct_OTOOL"; then 772455acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 772555acc8fcSmrg$as_echo "$ac_ct_OTOOL" >&6; } 772655acc8fcSmrgelse 772755acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 772855acc8fcSmrg$as_echo "no" >&6; } 7729d63fdb69Smrgfi 77303da084b3Smrg 773155acc8fcSmrg if test "x$ac_ct_OTOOL" = x; then 773255acc8fcSmrg OTOOL=":" 773355acc8fcSmrg else 773455acc8fcSmrg case $cross_compiling:$ac_tool_warned in 773555acc8fcSmrgyes:) 773655acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 773755acc8fcSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 773855acc8fcSmrgac_tool_warned=yes ;; 773955acc8fcSmrgesac 774055acc8fcSmrg OTOOL=$ac_ct_OTOOL 774155acc8fcSmrg fi 7742d63fdb69Smrgelse 774355acc8fcSmrg OTOOL="$ac_cv_prog_OTOOL" 7744d63fdb69Smrgfi 77453da084b3Smrg 774655acc8fcSmrg if test -n "$ac_tool_prefix"; then 774755acc8fcSmrg # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 774855acc8fcSmrgset dummy ${ac_tool_prefix}otool64; ac_word=$2 774955acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 775055acc8fcSmrg$as_echo_n "checking for $ac_word... " >&6; } 775155acc8fcSmrgif ${ac_cv_prog_OTOOL64+:} false; then : 775255acc8fcSmrg $as_echo_n "(cached) " >&6 775355acc8fcSmrgelse 775455acc8fcSmrg if test -n "$OTOOL64"; then 775555acc8fcSmrg ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 775655acc8fcSmrgelse 775755acc8fcSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 775855acc8fcSmrgfor as_dir in $PATH 775955acc8fcSmrgdo 776055acc8fcSmrg IFS=$as_save_IFS 776155acc8fcSmrg test -z "$as_dir" && as_dir=. 776255acc8fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 776355acc8fcSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 776455acc8fcSmrg ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 776555acc8fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 776655acc8fcSmrg break 2 776755acc8fcSmrg fi 7768d63fdb69Smrgdone 776955acc8fcSmrg done 777055acc8fcSmrgIFS=$as_save_IFS 777155acc8fcSmrg 777255acc8fcSmrgfi 777355acc8fcSmrgfi 777455acc8fcSmrgOTOOL64=$ac_cv_prog_OTOOL64 777555acc8fcSmrgif test -n "$OTOOL64"; then 777655acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 777755acc8fcSmrg$as_echo "$OTOOL64" >&6; } 7778d63fdb69Smrgelse 777955acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 778055acc8fcSmrg$as_echo "no" >&6; } 7781d63fdb69Smrgfi 77823da084b3Smrg 77833da084b3Smrg 778455acc8fcSmrgfi 778555acc8fcSmrgif test -z "$ac_cv_prog_OTOOL64"; then 778655acc8fcSmrg ac_ct_OTOOL64=$OTOOL64 778755acc8fcSmrg # Extract the first word of "otool64", so it can be a program name with args. 778855acc8fcSmrgset dummy otool64; ac_word=$2 778955acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 779055acc8fcSmrg$as_echo_n "checking for $ac_word... " >&6; } 779155acc8fcSmrgif ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7792d63fdb69Smrg $as_echo_n "(cached) " >&6 77933da084b3Smrgelse 779455acc8fcSmrg if test -n "$ac_ct_OTOOL64"; then 779555acc8fcSmrg ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 77963da084b3Smrgelse 779755acc8fcSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 779855acc8fcSmrgfor as_dir in $PATH 779955acc8fcSmrgdo 780055acc8fcSmrg IFS=$as_save_IFS 780155acc8fcSmrg test -z "$as_dir" && as_dir=. 780255acc8fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 780355acc8fcSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 780455acc8fcSmrg ac_cv_prog_ac_ct_OTOOL64="otool64" 780555acc8fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 780655acc8fcSmrg break 2 780755acc8fcSmrg fi 780855acc8fcSmrgdone 780955acc8fcSmrg done 781055acc8fcSmrgIFS=$as_save_IFS 78113da084b3Smrg 78123da084b3Smrgfi 7813d63fdb69Smrgfi 781455acc8fcSmrgac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 781555acc8fcSmrgif test -n "$ac_ct_OTOOL64"; then 781655acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 781755acc8fcSmrg$as_echo "$ac_ct_OTOOL64" >&6; } 781855acc8fcSmrgelse 781955acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 782055acc8fcSmrg$as_echo "no" >&6; } 7821d63fdb69Smrgfi 78223da084b3Smrg 782355acc8fcSmrg if test "x$ac_ct_OTOOL64" = x; then 782455acc8fcSmrg OTOOL64=":" 782555acc8fcSmrg else 782655acc8fcSmrg case $cross_compiling:$ac_tool_warned in 782755acc8fcSmrgyes:) 782855acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 782955acc8fcSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 783055acc8fcSmrgac_tool_warned=yes ;; 783155acc8fcSmrgesac 783255acc8fcSmrg OTOOL64=$ac_ct_OTOOL64 783355acc8fcSmrg fi 7834d63fdb69Smrgelse 783555acc8fcSmrg OTOOL64="$ac_cv_prog_OTOOL64" 7836d63fdb69Smrgfi 78373da084b3Smrg 78383da084b3Smrg 78393da084b3Smrg 78403da084b3Smrg 78413da084b3Smrg 78423da084b3Smrg 78433da084b3Smrg 78443da084b3Smrg 78453da084b3Smrg 78463da084b3Smrg 78473da084b3Smrg 78483da084b3Smrg 78493da084b3Smrg 78503da084b3Smrg 78513da084b3Smrg 78523da084b3Smrg 78533da084b3Smrg 78543da084b3Smrg 78553da084b3Smrg 78563da084b3Smrg 78573da084b3Smrg 78583da084b3Smrg 78593da084b3Smrg 7860d63fdb69Smrg 7861d63fdb69Smrg 7862d63fdb69Smrg 786355acc8fcSmrg 786455acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 786555acc8fcSmrg$as_echo_n "checking for -single_module linker flag... " >&6; } 786655acc8fcSmrgif ${lt_cv_apple_cc_single_mod+:} false; then : 7867d63fdb69Smrg $as_echo_n "(cached) " >&6 78683da084b3Smrgelse 786955acc8fcSmrg lt_cv_apple_cc_single_mod=no 787055acc8fcSmrg if test -z "${LT_MULTI_MODULE}"; then 787155acc8fcSmrg # By default we will add the -single_module flag. You can override 787255acc8fcSmrg # by either setting the environment variable LT_MULTI_MODULE 787355acc8fcSmrg # non-empty at configure time, or by adding -multi_module to the 787455acc8fcSmrg # link flags. 787555acc8fcSmrg rm -rf libconftest.dylib* 787655acc8fcSmrg echo "int foo(void){return 1;}" > conftest.c 787755acc8fcSmrg echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 787855acc8fcSmrg-dynamiclib -Wl,-single_module conftest.c" >&5 787955acc8fcSmrg $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 788055acc8fcSmrg -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 788155acc8fcSmrg _lt_result=$? 788255acc8fcSmrg if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 788355acc8fcSmrg lt_cv_apple_cc_single_mod=yes 788455acc8fcSmrg else 788555acc8fcSmrg cat conftest.err >&5 788655acc8fcSmrg fi 788755acc8fcSmrg rm -rf libconftest.dylib* 788855acc8fcSmrg rm -f conftest.* 788955acc8fcSmrg fi 789055acc8fcSmrgfi 789155acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 789255acc8fcSmrg$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 789355acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 789455acc8fcSmrg$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 789555acc8fcSmrgif ${lt_cv_ld_exported_symbols_list+:} false; then : 789655acc8fcSmrg $as_echo_n "(cached) " >&6 789755acc8fcSmrgelse 789855acc8fcSmrg lt_cv_ld_exported_symbols_list=no 789955acc8fcSmrg save_LDFLAGS=$LDFLAGS 790055acc8fcSmrg echo "_main" > conftest.sym 790155acc8fcSmrg LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 790255acc8fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7903d63fdb69Smrg/* end confdefs.h. */ 7904d63fdb69Smrg 790555acc8fcSmrgint 790655acc8fcSmrgmain () 790755acc8fcSmrg{ 790855acc8fcSmrg 790955acc8fcSmrg ; 791055acc8fcSmrg return 0; 791155acc8fcSmrg} 7912d63fdb69Smrg_ACEOF 791355acc8fcSmrgif ac_fn_c_try_link "$LINENO"; then : 791455acc8fcSmrg lt_cv_ld_exported_symbols_list=yes 7915d63fdb69Smrgelse 791655acc8fcSmrg lt_cv_ld_exported_symbols_list=no 791755acc8fcSmrgfi 791855acc8fcSmrgrm -f core conftest.err conftest.$ac_objext \ 791955acc8fcSmrg conftest$ac_exeext conftest.$ac_ext 792055acc8fcSmrg LDFLAGS="$save_LDFLAGS" 79213da084b3Smrg 79223da084b3Smrgfi 792355acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 792455acc8fcSmrg$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 792555acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 792655acc8fcSmrg$as_echo_n "checking for -force_load linker flag... " >&6; } 792755acc8fcSmrgif ${lt_cv_ld_force_load+:} false; then : 792855acc8fcSmrg $as_echo_n "(cached) " >&6 792955acc8fcSmrgelse 793055acc8fcSmrg lt_cv_ld_force_load=no 793155acc8fcSmrg cat > conftest.c << _LT_EOF 793255acc8fcSmrgint forced_loaded() { return 2;} 793355acc8fcSmrg_LT_EOF 793455acc8fcSmrg echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 793555acc8fcSmrg $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 793655acc8fcSmrg echo "$AR cru libconftest.a conftest.o" >&5 793755acc8fcSmrg $AR cru libconftest.a conftest.o 2>&5 793855acc8fcSmrg echo "$RANLIB libconftest.a" >&5 793955acc8fcSmrg $RANLIB libconftest.a 2>&5 794055acc8fcSmrg cat > conftest.c << _LT_EOF 794155acc8fcSmrgint main() { return 0;} 794255acc8fcSmrg_LT_EOF 794355acc8fcSmrg echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 794455acc8fcSmrg $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 794555acc8fcSmrg _lt_result=$? 794655acc8fcSmrg if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 794755acc8fcSmrg lt_cv_ld_force_load=yes 794855acc8fcSmrg else 794955acc8fcSmrg cat conftest.err >&5 795055acc8fcSmrg fi 795155acc8fcSmrg rm -f conftest.err libconftest.a conftest conftest.c 795255acc8fcSmrg rm -rf conftest.dSYM 79533da084b3Smrg 79543da084b3Smrgfi 795555acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 795655acc8fcSmrg$as_echo "$lt_cv_ld_force_load" >&6; } 795755acc8fcSmrg case $host_os in 795855acc8fcSmrg rhapsody* | darwin1.[012]) 795955acc8fcSmrg _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 796055acc8fcSmrg darwin1.*) 796155acc8fcSmrg _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 796255acc8fcSmrg darwin*) # darwin 5.x on 796355acc8fcSmrg # if running on 10.5 or later, the deployment target defaults 796455acc8fcSmrg # to the OS version, if on x86, and 10.4, the deployment 796555acc8fcSmrg # target defaults to 10.4. Don't you love it? 796655acc8fcSmrg case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 796755acc8fcSmrg 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 796855acc8fcSmrg _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 796955acc8fcSmrg 10.[012]*) 797055acc8fcSmrg _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 797155acc8fcSmrg 10.*) 797255acc8fcSmrg _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 797355acc8fcSmrg esac 797455acc8fcSmrg ;; 797555acc8fcSmrg esac 797655acc8fcSmrg if test "$lt_cv_apple_cc_single_mod" = "yes"; then 797755acc8fcSmrg _lt_dar_single_mod='$single_module' 797855acc8fcSmrg fi 797955acc8fcSmrg if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 798055acc8fcSmrg _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 798155acc8fcSmrg else 798255acc8fcSmrg _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 798355acc8fcSmrg fi 798455acc8fcSmrg if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 798555acc8fcSmrg _lt_dsymutil='~$DSYMUTIL $lib || :' 798655acc8fcSmrg else 798755acc8fcSmrg _lt_dsymutil= 798855acc8fcSmrg fi 798955acc8fcSmrg ;; 799055acc8fcSmrg esac 799155acc8fcSmrg 799255acc8fcSmrgfor ac_header in dlfcn.h 799355acc8fcSmrgdo : 799455acc8fcSmrg ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 799555acc8fcSmrg" 799655acc8fcSmrgif test "x$ac_cv_header_dlfcn_h" = xyes; then : 7997d63fdb69Smrg cat >>confdefs.h <<_ACEOF 799855acc8fcSmrg#define HAVE_DLFCN_H 1 7999d63fdb69Smrg_ACEOF 80003da084b3Smrg 8001d63fdb69Smrgfi 80023da084b3Smrg 8003d63fdb69Smrgdone 80043da084b3Smrg 80053da084b3Smrg 80063da084b3Smrg 800755acc8fcSmrg 800855acc8fcSmrg 8009d63fdb69Smrg# Set options 80103da084b3Smrg 80113da084b3Smrg 80123da084b3Smrg 8013d63fdb69Smrg enable_dlopen=no 80143da084b3Smrg 80153da084b3Smrg 8016d63fdb69Smrg enable_win32_dll=no 80173da084b3Smrg 8018d63fdb69Smrg 8019d63fdb69Smrg # Check whether --enable-shared was given. 802055acc8fcSmrgif test "${enable_shared+set}" = set; then : 8021d63fdb69Smrg enableval=$enable_shared; p=${PACKAGE-default} 8022d63fdb69Smrg case $enableval in 8023d63fdb69Smrg yes) enable_shared=yes ;; 8024d63fdb69Smrg no) enable_shared=no ;; 8025d63fdb69Smrg *) 8026d63fdb69Smrg enable_shared=no 8027d63fdb69Smrg # Look at the argument we got. We use all the common list separators. 8028d63fdb69Smrg lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8029d63fdb69Smrg for pkg in $enableval; do 8030d63fdb69Smrg IFS="$lt_save_ifs" 8031d63fdb69Smrg if test "X$pkg" = "X$p"; then 8032d63fdb69Smrg enable_shared=yes 8033d63fdb69Smrg fi 8034d63fdb69Smrg done 8035d63fdb69Smrg IFS="$lt_save_ifs" 8036d63fdb69Smrg ;; 80373da084b3Smrg esac 8038d63fdb69Smrgelse 8039d63fdb69Smrg enable_shared=yes 8040d63fdb69Smrgfi 80413da084b3Smrg 80423da084b3Smrg 80433da084b3Smrg 80443da084b3Smrg 80453da084b3Smrg 80463da084b3Smrg 80473da084b3Smrg 80483da084b3Smrg 80493da084b3Smrg 8050d63fdb69Smrg # Check whether --enable-static was given. 805155acc8fcSmrgif test "${enable_static+set}" = set; then : 8052d63fdb69Smrg enableval=$enable_static; p=${PACKAGE-default} 8053d63fdb69Smrg case $enableval in 8054d63fdb69Smrg yes) enable_static=yes ;; 8055d63fdb69Smrg no) enable_static=no ;; 8056d63fdb69Smrg *) 8057d63fdb69Smrg enable_static=no 8058d63fdb69Smrg # Look at the argument we got. We use all the common list separators. 8059d63fdb69Smrg lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8060d63fdb69Smrg for pkg in $enableval; do 8061d63fdb69Smrg IFS="$lt_save_ifs" 8062d63fdb69Smrg if test "X$pkg" = "X$p"; then 8063d63fdb69Smrg enable_static=yes 8064d63fdb69Smrg fi 8065d63fdb69Smrg done 8066d63fdb69Smrg IFS="$lt_save_ifs" 80673da084b3Smrg ;; 8068d63fdb69Smrg esac 8069d63fdb69Smrgelse 8070d63fdb69Smrg enable_static=yes 8071d63fdb69Smrgfi 80723da084b3Smrg 80733da084b3Smrg 80743da084b3Smrg 80753da084b3Smrg 80763da084b3Smrg 80773da084b3Smrg 80783da084b3Smrg 80793da084b3Smrg 80803da084b3Smrg 80813da084b3Smrg 8082d63fdb69Smrg# Check whether --with-pic was given. 808355acc8fcSmrgif test "${with_pic+set}" = set; then : 8084d63fdb69Smrg withval=$with_pic; pic_mode="$withval" 8085d63fdb69Smrgelse 8086d63fdb69Smrg pic_mode=default 8087d63fdb69Smrgfi 80883da084b3Smrg 80893da084b3Smrg 8090d63fdb69Smrgtest -z "$pic_mode" && pic_mode=default 80913da084b3Smrg 80923da084b3Smrg 80933da084b3Smrg 80943da084b3Smrg 80953da084b3Smrg 80963da084b3Smrg 8097d63fdb69Smrg 8098d63fdb69Smrg # Check whether --enable-fast-install was given. 809955acc8fcSmrgif test "${enable_fast_install+set}" = set; then : 8100d63fdb69Smrg enableval=$enable_fast_install; p=${PACKAGE-default} 8101d63fdb69Smrg case $enableval in 8102d63fdb69Smrg yes) enable_fast_install=yes ;; 8103d63fdb69Smrg no) enable_fast_install=no ;; 8104d63fdb69Smrg *) 8105d63fdb69Smrg enable_fast_install=no 8106d63fdb69Smrg # Look at the argument we got. We use all the common list separators. 8107d63fdb69Smrg lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8108d63fdb69Smrg for pkg in $enableval; do 8109d63fdb69Smrg IFS="$lt_save_ifs" 8110d63fdb69Smrg if test "X$pkg" = "X$p"; then 8111d63fdb69Smrg enable_fast_install=yes 81123da084b3Smrg fi 8113d63fdb69Smrg done 8114d63fdb69Smrg IFS="$lt_save_ifs" 8115d63fdb69Smrg ;; 8116d63fdb69Smrg esac 8117d63fdb69Smrgelse 8118d63fdb69Smrg enable_fast_install=yes 8119d63fdb69Smrgfi 81203da084b3Smrg 81213da084b3Smrg 81223da084b3Smrg 81233da084b3Smrg 81243da084b3Smrg 81253da084b3Smrg 81263da084b3Smrg 81273da084b3Smrg 81283da084b3Smrg 81293da084b3Smrg 81303da084b3Smrg 8131d63fdb69Smrg# This can be used to rebuild libtool when needed 8132d63fdb69SmrgLIBTOOL_DEPS="$ltmain" 81333da084b3Smrg 8134d63fdb69Smrg# Always use our own libtool. 8135d63fdb69SmrgLIBTOOL='$(SHELL) $(top_builddir)/libtool' 81363da084b3Smrg 81373da084b3Smrg 81383da084b3Smrg 81393da084b3Smrg 81403da084b3Smrg 81413da084b3Smrg 81423da084b3Smrg 81433da084b3Smrg 81443da084b3Smrg 81453da084b3Smrg 81463da084b3Smrg 81473da084b3Smrg 81483da084b3Smrg 81493da084b3Smrg 81503da084b3Smrg 81513da084b3Smrg 81523da084b3Smrg 81533da084b3Smrg 81543da084b3Smrg 81553da084b3Smrg 81563da084b3Smrg 81573da084b3Smrg 81583da084b3Smrg 815955acc8fcSmrg 81603da084b3Smrg 81613da084b3Smrg 8162d63fdb69Smrgtest -z "$LN_S" && LN_S="ln -s" 81633da084b3Smrg 81643da084b3Smrg 81653da084b3Smrg 81663da084b3Smrg 81673da084b3Smrg 81683da084b3Smrg 81693da084b3Smrg 81703da084b3Smrg 81713da084b3Smrg 81723da084b3Smrg 81733da084b3Smrg 81743da084b3Smrg 81753da084b3Smrg 81763da084b3Smrg 8177d63fdb69Smrgif test -n "${ZSH_VERSION+set}" ; then 8178d63fdb69Smrg setopt NO_GLOB_SUBST 8179d63fdb69Smrgfi 81803da084b3Smrg 818155acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8182d63fdb69Smrg$as_echo_n "checking for objdir... " >&6; } 818355acc8fcSmrgif ${lt_cv_objdir+:} false; then : 8184d63fdb69Smrg $as_echo_n "(cached) " >&6 8185d63fdb69Smrgelse 8186d63fdb69Smrg rm -f .libs 2>/dev/null 8187d63fdb69Smrgmkdir .libs 2>/dev/null 8188d63fdb69Smrgif test -d .libs; then 8189d63fdb69Smrg lt_cv_objdir=.libs 8190d63fdb69Smrgelse 8191d63fdb69Smrg # MS-DOS does not allow filenames that begin with a dot. 8192d63fdb69Smrg lt_cv_objdir=_libs 8193d63fdb69Smrgfi 8194d63fdb69Smrgrmdir .libs 2>/dev/null 8195d63fdb69Smrgfi 819655acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8197d63fdb69Smrg$as_echo "$lt_cv_objdir" >&6; } 8198d63fdb69Smrgobjdir=$lt_cv_objdir 81993da084b3Smrg 82003da084b3Smrg 82013da084b3Smrg 8202d63fdb69Smrg 8203d63fdb69Smrg 8204d63fdb69Smrgcat >>confdefs.h <<_ACEOF 8205d63fdb69Smrg#define LT_OBJDIR "$lt_cv_objdir/" 8206d63fdb69Smrg_ACEOF 8207d63fdb69Smrg 8208d63fdb69Smrg 8209d63fdb69Smrg 8210d63fdb69Smrg 8211d63fdb69Smrgcase $host_os in 8212d63fdb69Smrgaix3*) 8213d63fdb69Smrg # AIX sometimes has problems with the GCC collect2 program. For some 8214d63fdb69Smrg # reason, if we set the COLLECT_NAMES environment variable, the problems 8215d63fdb69Smrg # vanish in a puff of smoke. 8216d63fdb69Smrg if test "X${COLLECT_NAMES+set}" != Xset; then 8217d63fdb69Smrg COLLECT_NAMES= 8218d63fdb69Smrg export COLLECT_NAMES 82193da084b3Smrg fi 82203da084b3Smrg ;; 82213da084b3Smrgesac 82223da084b3Smrg 8223d63fdb69Smrg# Global variables: 8224d63fdb69Smrgofile=libtool 8225d63fdb69Smrgcan_build_shared=yes 8226d63fdb69Smrg 8227d63fdb69Smrg# All known linkers require a `.a' archive for static linking (except MSVC, 8228d63fdb69Smrg# which needs '.lib'). 8229d63fdb69Smrglibext=a 8230d63fdb69Smrg 8231d63fdb69Smrgwith_gnu_ld="$lt_cv_prog_gnu_ld" 8232d63fdb69Smrg 8233d63fdb69Smrgold_CC="$CC" 8234d63fdb69Smrgold_CFLAGS="$CFLAGS" 8235d63fdb69Smrg 8236d63fdb69Smrg# Set sane defaults for various variables 8237d63fdb69Smrgtest -z "$CC" && CC=cc 8238d63fdb69Smrgtest -z "$LTCC" && LTCC=$CC 8239d63fdb69Smrgtest -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8240d63fdb69Smrgtest -z "$LD" && LD=ld 8241d63fdb69Smrgtest -z "$ac_objext" && ac_objext=o 8242d63fdb69Smrg 8243d63fdb69Smrgfor cc_temp in $compiler""; do 8244d63fdb69Smrg case $cc_temp in 8245d63fdb69Smrg compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8246d63fdb69Smrg distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8247d63fdb69Smrg \-*) ;; 8248d63fdb69Smrg *) break;; 8249d63fdb69Smrg esac 8250d63fdb69Smrgdone 825155acc8fcSmrgcc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8252d63fdb69Smrg 8253d63fdb69Smrg 8254d63fdb69Smrg# Only perform the check for file, if the check method requires it 8255d63fdb69Smrgtest -z "$MAGIC_CMD" && MAGIC_CMD=file 8256d63fdb69Smrgcase $deplibs_check_method in 8257d63fdb69Smrgfile_magic*) 8258d63fdb69Smrg if test "$file_magic_cmd" = '$MAGIC_CMD'; then 825955acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8260d63fdb69Smrg$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 826155acc8fcSmrgif ${lt_cv_path_MAGIC_CMD+:} false; then : 8262d63fdb69Smrg $as_echo_n "(cached) " >&6 8263d63fdb69Smrgelse 8264d63fdb69Smrg case $MAGIC_CMD in 8265d63fdb69Smrg[\\/*] | ?:[\\/]*) 8266d63fdb69Smrg lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8267d63fdb69Smrg ;; 8268d63fdb69Smrg*) 8269d63fdb69Smrg lt_save_MAGIC_CMD="$MAGIC_CMD" 8270d63fdb69Smrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8271d63fdb69Smrg ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8272d63fdb69Smrg for ac_dir in $ac_dummy; do 8273d63fdb69Smrg IFS="$lt_save_ifs" 8274d63fdb69Smrg test -z "$ac_dir" && ac_dir=. 8275d63fdb69Smrg if test -f $ac_dir/${ac_tool_prefix}file; then 8276d63fdb69Smrg lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8277d63fdb69Smrg if test -n "$file_magic_test_file"; then 8278d63fdb69Smrg case $deplibs_check_method in 8279d63fdb69Smrg "file_magic "*) 8280d63fdb69Smrg file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8281d63fdb69Smrg MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8282d63fdb69Smrg if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8283d63fdb69Smrg $EGREP "$file_magic_regex" > /dev/null; then 8284d63fdb69Smrg : 8285d63fdb69Smrg else 8286d63fdb69Smrg cat <<_LT_EOF 1>&2 8287d63fdb69Smrg 8288d63fdb69Smrg*** Warning: the command libtool uses to detect shared libraries, 8289d63fdb69Smrg*** $file_magic_cmd, produces output that libtool cannot recognize. 8290d63fdb69Smrg*** The result is that libtool may fail to recognize shared libraries 8291d63fdb69Smrg*** as such. This will affect the creation of libtool libraries that 8292d63fdb69Smrg*** depend on shared libraries, but programs linked with such libtool 8293d63fdb69Smrg*** libraries will work regardless of this problem. Nevertheless, you 8294d63fdb69Smrg*** may want to report the problem to your system manager and/or to 8295d63fdb69Smrg*** bug-libtool@gnu.org 8296d63fdb69Smrg 8297d63fdb69Smrg_LT_EOF 8298d63fdb69Smrg fi ;; 8299d63fdb69Smrg esac 83003da084b3Smrg fi 8301d63fdb69Smrg break 83023da084b3Smrg fi 8303d63fdb69Smrg done 8304d63fdb69Smrg IFS="$lt_save_ifs" 8305d63fdb69Smrg MAGIC_CMD="$lt_save_MAGIC_CMD" 83063da084b3Smrg ;; 8307d63fdb69Smrgesac 8308d63fdb69Smrgfi 83093da084b3Smrg 8310d63fdb69SmrgMAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8311d63fdb69Smrgif test -n "$MAGIC_CMD"; then 831255acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8313d63fdb69Smrg$as_echo "$MAGIC_CMD" >&6; } 8314d63fdb69Smrgelse 831555acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8316d63fdb69Smrg$as_echo "no" >&6; } 8317d63fdb69Smrgfi 83183da084b3Smrg 83193da084b3Smrg 83203da084b3Smrg 83213da084b3Smrg 83223da084b3Smrg 8323d63fdb69Smrgif test -z "$lt_cv_path_MAGIC_CMD"; then 8324d63fdb69Smrg if test -n "$ac_tool_prefix"; then 832555acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8326d63fdb69Smrg$as_echo_n "checking for file... " >&6; } 832755acc8fcSmrgif ${lt_cv_path_MAGIC_CMD+:} false; then : 8328d63fdb69Smrg $as_echo_n "(cached) " >&6 8329d63fdb69Smrgelse 8330d63fdb69Smrg case $MAGIC_CMD in 8331d63fdb69Smrg[\\/*] | ?:[\\/]*) 8332d63fdb69Smrg lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8333d63fdb69Smrg ;; 8334d63fdb69Smrg*) 8335d63fdb69Smrg lt_save_MAGIC_CMD="$MAGIC_CMD" 8336d63fdb69Smrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8337d63fdb69Smrg ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8338d63fdb69Smrg for ac_dir in $ac_dummy; do 8339d63fdb69Smrg IFS="$lt_save_ifs" 8340d63fdb69Smrg test -z "$ac_dir" && ac_dir=. 8341d63fdb69Smrg if test -f $ac_dir/file; then 8342d63fdb69Smrg lt_cv_path_MAGIC_CMD="$ac_dir/file" 8343d63fdb69Smrg if test -n "$file_magic_test_file"; then 8344d63fdb69Smrg case $deplibs_check_method in 8345d63fdb69Smrg "file_magic "*) 8346d63fdb69Smrg file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8347d63fdb69Smrg MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8348d63fdb69Smrg if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8349d63fdb69Smrg $EGREP "$file_magic_regex" > /dev/null; then 8350d63fdb69Smrg : 8351d63fdb69Smrg else 8352d63fdb69Smrg cat <<_LT_EOF 1>&2 83533da084b3Smrg 8354d63fdb69Smrg*** Warning: the command libtool uses to detect shared libraries, 8355d63fdb69Smrg*** $file_magic_cmd, produces output that libtool cannot recognize. 8356d63fdb69Smrg*** The result is that libtool may fail to recognize shared libraries 8357d63fdb69Smrg*** as such. This will affect the creation of libtool libraries that 8358d63fdb69Smrg*** depend on shared libraries, but programs linked with such libtool 8359d63fdb69Smrg*** libraries will work regardless of this problem. Nevertheless, you 8360d63fdb69Smrg*** may want to report the problem to your system manager and/or to 8361d63fdb69Smrg*** bug-libtool@gnu.org 8362d63fdb69Smrg 8363d63fdb69Smrg_LT_EOF 8364d63fdb69Smrg fi ;; 8365d63fdb69Smrg esac 8366d63fdb69Smrg fi 8367d63fdb69Smrg break 8368d63fdb69Smrg fi 8369d63fdb69Smrg done 8370d63fdb69Smrg IFS="$lt_save_ifs" 8371d63fdb69Smrg MAGIC_CMD="$lt_save_MAGIC_CMD" 83723da084b3Smrg ;; 8373d63fdb69Smrgesac 8374d63fdb69Smrgfi 8375d63fdb69Smrg 8376d63fdb69SmrgMAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8377d63fdb69Smrgif test -n "$MAGIC_CMD"; then 837855acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8379d63fdb69Smrg$as_echo "$MAGIC_CMD" >&6; } 8380d63fdb69Smrgelse 838155acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8382d63fdb69Smrg$as_echo "no" >&6; } 8383d63fdb69Smrgfi 8384d63fdb69Smrg 83853da084b3Smrg 83863da084b3Smrg else 8387d63fdb69Smrg MAGIC_CMD=: 83883da084b3Smrg fi 8389d63fdb69Smrgfi 83903da084b3Smrg 8391d63fdb69Smrg fi 83923da084b3Smrg ;; 8393d63fdb69Smrgesac 83943da084b3Smrg 8395d63fdb69Smrg# Use C for the default configuration in the libtool script 83963da084b3Smrg 8397d63fdb69Smrglt_save_CC="$CC" 8398d63fdb69Smrgac_ext=c 8399d63fdb69Smrgac_cpp='$CPP $CPPFLAGS' 8400d63fdb69Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8401d63fdb69Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8402d63fdb69Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 84033da084b3Smrg 84043da084b3Smrg 8405d63fdb69Smrg# Source file extension for C test sources. 8406d63fdb69Smrgac_ext=c 84073da084b3Smrg 8408d63fdb69Smrg# Object file extension for compiled C test sources. 8409d63fdb69Smrgobjext=o 8410d63fdb69Smrgobjext=$objext 84113da084b3Smrg 8412d63fdb69Smrg# Code to be used in simple compile tests 8413d63fdb69Smrglt_simple_compile_test_code="int some_variable = 0;" 84143da084b3Smrg 8415d63fdb69Smrg# Code to be used in simple link tests 8416d63fdb69Smrglt_simple_link_test_code='int main(){return(0);}' 84173da084b3Smrg 84183da084b3Smrg 84193da084b3Smrg 84203da084b3Smrg 84213da084b3Smrg 84223da084b3Smrg 84233da084b3Smrg 8424d63fdb69Smrg# If no C compiler was specified, use CC. 8425d63fdb69SmrgLTCC=${LTCC-"$CC"} 84263da084b3Smrg 8427d63fdb69Smrg# If no C compiler flags were specified, use CFLAGS. 8428d63fdb69SmrgLTCFLAGS=${LTCFLAGS-"$CFLAGS"} 84293da084b3Smrg 8430d63fdb69Smrg# Allow CC to be a program name with arguments. 8431d63fdb69Smrgcompiler=$CC 84323da084b3Smrg 8433d63fdb69Smrg# Save the default compiler, since it gets overwritten when the other 8434d63fdb69Smrg# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8435d63fdb69Smrgcompiler_DEFAULT=$CC 84363da084b3Smrg 8437d63fdb69Smrg# save warnings/boilerplate of simple test code 8438d63fdb69Smrgac_outfile=conftest.$ac_objext 8439d63fdb69Smrgecho "$lt_simple_compile_test_code" >conftest.$ac_ext 8440d63fdb69Smrgeval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8441d63fdb69Smrg_lt_compiler_boilerplate=`cat conftest.err` 8442d63fdb69Smrg$RM conftest* 84433da084b3Smrg 8444d63fdb69Smrgac_outfile=conftest.$ac_objext 8445d63fdb69Smrgecho "$lt_simple_link_test_code" >conftest.$ac_ext 8446d63fdb69Smrgeval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8447d63fdb69Smrg_lt_linker_boilerplate=`cat conftest.err` 8448d63fdb69Smrg$RM -r conftest* 84493da084b3Smrg 84503da084b3Smrg 8451d63fdb69Smrgif test -n "$compiler"; then 84523da084b3Smrg 8453d63fdb69Smrglt_prog_compiler_no_builtin_flag= 84543da084b3Smrg 84553da084b3Smrgif test "$GCC" = yes; then 845655acc8fcSmrg case $cc_basename in 845755acc8fcSmrg nvcc*) 845855acc8fcSmrg lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 845955acc8fcSmrg *) 846055acc8fcSmrg lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 846155acc8fcSmrg esac 84623da084b3Smrg 846355acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8464d63fdb69Smrg$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 846555acc8fcSmrgif ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8466d63fdb69Smrg $as_echo_n "(cached) " >&6 84673da084b3Smrgelse 8468d63fdb69Smrg lt_cv_prog_compiler_rtti_exceptions=no 8469d63fdb69Smrg ac_outfile=conftest.$ac_objext 8470d63fdb69Smrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8471d63fdb69Smrg lt_compiler_flag="-fno-rtti -fno-exceptions" 8472d63fdb69Smrg # Insert the option either (1) after the last *FLAGS variable, or 8473d63fdb69Smrg # (2) before a word containing "conftest.", or (3) at the end. 8474d63fdb69Smrg # Note that $ac_compile itself does not contain backslashes and begins 8475d63fdb69Smrg # with a dollar sign (not a hyphen), so the echo should work correctly. 8476d63fdb69Smrg # The option is referenced via a variable to avoid confusing sed. 8477d63fdb69Smrg lt_compile=`echo "$ac_compile" | $SED \ 8478d63fdb69Smrg -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8479d63fdb69Smrg -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8480d63fdb69Smrg -e 's:$: $lt_compiler_flag:'` 848155acc8fcSmrg (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8482d63fdb69Smrg (eval "$lt_compile" 2>conftest.err) 8483d63fdb69Smrg ac_status=$? 8484d63fdb69Smrg cat conftest.err >&5 848555acc8fcSmrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 8486d63fdb69Smrg if (exit $ac_status) && test -s "$ac_outfile"; then 8487d63fdb69Smrg # The compiler can only warn and ignore the option if not recognized 8488d63fdb69Smrg # So say no if there are warnings other than the usual output. 848955acc8fcSmrg $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8490d63fdb69Smrg $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8491d63fdb69Smrg if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8492d63fdb69Smrg lt_cv_prog_compiler_rtti_exceptions=yes 8493d63fdb69Smrg fi 8494d63fdb69Smrg fi 8495d63fdb69Smrg $RM conftest* 84963da084b3Smrg 84973da084b3Smrgfi 849855acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8499d63fdb69Smrg$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 85003da084b3Smrg 8501d63fdb69Smrgif test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8502d63fdb69Smrg lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 85033da084b3Smrgelse 8504d63fdb69Smrg : 85053da084b3Smrgfi 85063da084b3Smrg 8507d63fdb69Smrgfi 85083da084b3Smrg 85093da084b3Smrg 85103da084b3Smrg 85113da084b3Smrg 85123da084b3Smrg 85133da084b3Smrg 8514d63fdb69Smrg lt_prog_compiler_wl= 8515d63fdb69Smrglt_prog_compiler_pic= 8516d63fdb69Smrglt_prog_compiler_static= 85173da084b3Smrg 851855acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8519d63fdb69Smrg$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 85203da084b3Smrg 8521d63fdb69Smrg if test "$GCC" = yes; then 8522d63fdb69Smrg lt_prog_compiler_wl='-Wl,' 8523d63fdb69Smrg lt_prog_compiler_static='-static' 85243da084b3Smrg 8525d63fdb69Smrg case $host_os in 8526d63fdb69Smrg aix*) 8527d63fdb69Smrg # All AIX code is PIC. 8528d63fdb69Smrg if test "$host_cpu" = ia64; then 8529d63fdb69Smrg # AIX 5 now supports IA64 processor 8530d63fdb69Smrg lt_prog_compiler_static='-Bstatic' 8531d63fdb69Smrg fi 8532d63fdb69Smrg ;; 85333da084b3Smrg 8534d63fdb69Smrg amigaos*) 8535d63fdb69Smrg case $host_cpu in 8536d63fdb69Smrg powerpc) 8537d63fdb69Smrg # see comment about AmigaOS4 .so support 8538d63fdb69Smrg lt_prog_compiler_pic='-fPIC' 8539d63fdb69Smrg ;; 8540d63fdb69Smrg m68k) 8541d63fdb69Smrg # FIXME: we need at least 68020 code to build shared libraries, but 8542d63fdb69Smrg # adding the `-m68020' flag to GCC prevents building anything better, 8543d63fdb69Smrg # like `-m68040'. 8544d63fdb69Smrg lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8545d63fdb69Smrg ;; 8546d63fdb69Smrg esac 8547d63fdb69Smrg ;; 85483da084b3Smrg 8549d63fdb69Smrg beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 85503da084b3Smrg # PIC is the default for these OSes. 85513da084b3Smrg ;; 85523da084b3Smrg 8553d63fdb69Smrg mingw* | cygwin* | pw32* | os2* | cegcc*) 85543da084b3Smrg # This hack is so that the source file can tell whether it is being 85553da084b3Smrg # built for inclusion in a dll (and should export symbols for example). 8556d63fdb69Smrg # Although the cygwin gcc ignores -fPIC, still need this for old-style 8557d63fdb69Smrg # (--disable-auto-import) libraries 8558d63fdb69Smrg lt_prog_compiler_pic='-DDLL_EXPORT' 85593da084b3Smrg ;; 85603da084b3Smrg 85613da084b3Smrg darwin* | rhapsody*) 85623da084b3Smrg # PIC is the default on this platform 85633da084b3Smrg # Common symbols not allowed in MH_DYLIB files 8564d63fdb69Smrg lt_prog_compiler_pic='-fno-common' 8565d63fdb69Smrg ;; 8566d63fdb69Smrg 856755acc8fcSmrg haiku*) 856855acc8fcSmrg # PIC is the default for Haiku. 856955acc8fcSmrg # The "-static" flag exists, but is broken. 857055acc8fcSmrg lt_prog_compiler_static= 857155acc8fcSmrg ;; 857255acc8fcSmrg 8573d63fdb69Smrg hpux*) 8574d63fdb69Smrg # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8575d63fdb69Smrg # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8576d63fdb69Smrg # sets the default TLS model and affects inlining. 8577d63fdb69Smrg case $host_cpu in 8578d63fdb69Smrg hppa*64*) 8579d63fdb69Smrg # +Z the default 8580d63fdb69Smrg ;; 8581d63fdb69Smrg *) 8582d63fdb69Smrg lt_prog_compiler_pic='-fPIC' 8583d63fdb69Smrg ;; 8584d63fdb69Smrg esac 85853da084b3Smrg ;; 85863da084b3Smrg 8587d63fdb69Smrg interix[3-9]*) 85883da084b3Smrg # Interix 3.x gcc -fpic/-fPIC options generate broken code. 85893da084b3Smrg # Instead, we relocate shared libraries at runtime. 85903da084b3Smrg ;; 85913da084b3Smrg 85923da084b3Smrg msdosdjgpp*) 85933da084b3Smrg # Just because we use GCC doesn't mean we suddenly get shared libraries 85943da084b3Smrg # on systems that don't support them. 8595d63fdb69Smrg lt_prog_compiler_can_build_shared=no 85963da084b3Smrg enable_shared=no 85973da084b3Smrg ;; 85983da084b3Smrg 8599d63fdb69Smrg *nto* | *qnx*) 8600d63fdb69Smrg # QNX uses GNU C++, but need to define -shared option too, otherwise 8601d63fdb69Smrg # it will coredump. 8602d63fdb69Smrg lt_prog_compiler_pic='-fPIC -shared' 8603d63fdb69Smrg ;; 8604d63fdb69Smrg 86053da084b3Smrg sysv4*MP*) 86063da084b3Smrg if test -d /usr/nec; then 8607d63fdb69Smrg lt_prog_compiler_pic=-Kconform_pic 86083da084b3Smrg fi 86093da084b3Smrg ;; 86103da084b3Smrg 86113da084b3Smrg *) 8612d63fdb69Smrg lt_prog_compiler_pic='-fPIC' 86133da084b3Smrg ;; 86143da084b3Smrg esac 861555acc8fcSmrg 861655acc8fcSmrg case $cc_basename in 861755acc8fcSmrg nvcc*) # Cuda Compiler Driver 2.2 861855acc8fcSmrg lt_prog_compiler_wl='-Xlinker ' 861955acc8fcSmrg lt_prog_compiler_pic='-Xcompiler -fPIC' 862055acc8fcSmrg ;; 862155acc8fcSmrg esac 86223da084b3Smrg else 86233da084b3Smrg # PORTME Check for flag to pass linker flags through the system compiler. 86243da084b3Smrg case $host_os in 86253da084b3Smrg aix*) 8626d63fdb69Smrg lt_prog_compiler_wl='-Wl,' 86273da084b3Smrg if test "$host_cpu" = ia64; then 86283da084b3Smrg # AIX 5 now supports IA64 processor 8629d63fdb69Smrg lt_prog_compiler_static='-Bstatic' 86303da084b3Smrg else 8631d63fdb69Smrg lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 86323da084b3Smrg fi 86333da084b3Smrg ;; 86343da084b3Smrg 8635d63fdb69Smrg mingw* | cygwin* | pw32* | os2* | cegcc*) 86363da084b3Smrg # This hack is so that the source file can tell whether it is being 86373da084b3Smrg # built for inclusion in a dll (and should export symbols for example). 8638d63fdb69Smrg lt_prog_compiler_pic='-DDLL_EXPORT' 86393da084b3Smrg ;; 86403da084b3Smrg 86413da084b3Smrg hpux9* | hpux10* | hpux11*) 8642d63fdb69Smrg lt_prog_compiler_wl='-Wl,' 86433da084b3Smrg # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 86443da084b3Smrg # not for PA HP-UX. 86453da084b3Smrg case $host_cpu in 86463da084b3Smrg hppa*64*|ia64*) 86473da084b3Smrg # +Z the default 86483da084b3Smrg ;; 86493da084b3Smrg *) 8650d63fdb69Smrg lt_prog_compiler_pic='+Z' 86513da084b3Smrg ;; 86523da084b3Smrg esac 86533da084b3Smrg # Is there a better lt_prog_compiler_static that works with the bundled CC? 8654d63fdb69Smrg lt_prog_compiler_static='${wl}-a ${wl}archive' 86553da084b3Smrg ;; 86563da084b3Smrg 86573da084b3Smrg irix5* | irix6* | nonstopux*) 8658d63fdb69Smrg lt_prog_compiler_wl='-Wl,' 86593da084b3Smrg # PIC (with -KPIC) is the default. 8660d63fdb69Smrg lt_prog_compiler_static='-non_shared' 86613da084b3Smrg ;; 86623da084b3Smrg 866355acc8fcSmrg linux* | k*bsd*-gnu | kopensolaris*-gnu) 86643da084b3Smrg case $cc_basename in 8665d63fdb69Smrg # old Intel for x86_64 which still supported -KPIC. 8666d63fdb69Smrg ecc*) 8667d63fdb69Smrg lt_prog_compiler_wl='-Wl,' 8668d63fdb69Smrg lt_prog_compiler_pic='-KPIC' 8669d63fdb69Smrg lt_prog_compiler_static='-static' 8670d63fdb69Smrg ;; 8671d63fdb69Smrg # icc used to be incompatible with GCC. 8672d63fdb69Smrg # ICC 10 doesn't accept -KPIC any more. 8673d63fdb69Smrg icc* | ifort*) 8674d63fdb69Smrg lt_prog_compiler_wl='-Wl,' 8675d63fdb69Smrg lt_prog_compiler_pic='-fPIC' 8676d63fdb69Smrg lt_prog_compiler_static='-static' 86773da084b3Smrg ;; 8678d63fdb69Smrg # Lahey Fortran 8.1. 8679d63fdb69Smrg lf95*) 8680d63fdb69Smrg lt_prog_compiler_wl='-Wl,' 8681d63fdb69Smrg lt_prog_compiler_pic='--shared' 8682d63fdb69Smrg lt_prog_compiler_static='--static' 8683d63fdb69Smrg ;; 868455acc8fcSmrg pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 86853da084b3Smrg # Portland Group compilers (*not* the Pentium gcc compiler, 86863da084b3Smrg # which looks to be a dead project) 8687d63fdb69Smrg lt_prog_compiler_wl='-Wl,' 8688d63fdb69Smrg lt_prog_compiler_pic='-fpic' 8689d63fdb69Smrg lt_prog_compiler_static='-Bstatic' 86903da084b3Smrg ;; 86913da084b3Smrg ccc*) 8692d63fdb69Smrg lt_prog_compiler_wl='-Wl,' 86933da084b3Smrg # All Alpha code is PIC. 8694d63fdb69Smrg lt_prog_compiler_static='-non_shared' 86953da084b3Smrg ;; 869655acc8fcSmrg xl* | bgxl* | bgf* | mpixl*) 869755acc8fcSmrg # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8698d63fdb69Smrg lt_prog_compiler_wl='-Wl,' 8699d63fdb69Smrg lt_prog_compiler_pic='-qpic' 8700d63fdb69Smrg lt_prog_compiler_static='-qstaticlink' 8701d63fdb69Smrg ;; 8702d63fdb69Smrg *) 8703d63fdb69Smrg case `$CC -V 2>&1 | sed 5q` in 870455acc8fcSmrg *Sun\ F* | *Sun*Fortran*) 870555acc8fcSmrg # Sun Fortran 8.3 passes all unrecognized flags to the linker 8706d63fdb69Smrg lt_prog_compiler_pic='-KPIC' 8707d63fdb69Smrg lt_prog_compiler_static='-Bstatic' 870855acc8fcSmrg lt_prog_compiler_wl='' 8709d63fdb69Smrg ;; 871055acc8fcSmrg *Sun\ C*) 871155acc8fcSmrg # Sun C 5.9 8712d63fdb69Smrg lt_prog_compiler_pic='-KPIC' 8713d63fdb69Smrg lt_prog_compiler_static='-Bstatic' 871455acc8fcSmrg lt_prog_compiler_wl='-Wl,' 8715d63fdb69Smrg ;; 8716d63fdb69Smrg esac 8717d63fdb69Smrg ;; 87183da084b3Smrg esac 87193da084b3Smrg ;; 87203da084b3Smrg 8721d63fdb69Smrg newsos6) 8722d63fdb69Smrg lt_prog_compiler_pic='-KPIC' 8723d63fdb69Smrg lt_prog_compiler_static='-Bstatic' 8724d63fdb69Smrg ;; 8725d63fdb69Smrg 8726d63fdb69Smrg *nto* | *qnx*) 8727d63fdb69Smrg # QNX uses GNU C++, but need to define -shared option too, otherwise 8728d63fdb69Smrg # it will coredump. 8729d63fdb69Smrg lt_prog_compiler_pic='-fPIC -shared' 8730d63fdb69Smrg ;; 8731d63fdb69Smrg 87323da084b3Smrg osf3* | osf4* | osf5*) 8733d63fdb69Smrg lt_prog_compiler_wl='-Wl,' 87343da084b3Smrg # All OSF/1 code is PIC. 8735d63fdb69Smrg lt_prog_compiler_static='-non_shared' 8736d63fdb69Smrg ;; 8737d63fdb69Smrg 8738d63fdb69Smrg rdos*) 8739d63fdb69Smrg lt_prog_compiler_static='-non_shared' 87403da084b3Smrg ;; 87413da084b3Smrg 87423da084b3Smrg solaris*) 8743d63fdb69Smrg lt_prog_compiler_pic='-KPIC' 8744d63fdb69Smrg lt_prog_compiler_static='-Bstatic' 87453da084b3Smrg case $cc_basename in 874655acc8fcSmrg f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8747d63fdb69Smrg lt_prog_compiler_wl='-Qoption ld ';; 87483da084b3Smrg *) 8749d63fdb69Smrg lt_prog_compiler_wl='-Wl,';; 87503da084b3Smrg esac 87513da084b3Smrg ;; 87523da084b3Smrg 87533da084b3Smrg sunos4*) 8754d63fdb69Smrg lt_prog_compiler_wl='-Qoption ld ' 8755d63fdb69Smrg lt_prog_compiler_pic='-PIC' 8756d63fdb69Smrg lt_prog_compiler_static='-Bstatic' 87573da084b3Smrg ;; 87583da084b3Smrg 87593da084b3Smrg sysv4 | sysv4.2uw2* | sysv4.3*) 8760d63fdb69Smrg lt_prog_compiler_wl='-Wl,' 8761d63fdb69Smrg lt_prog_compiler_pic='-KPIC' 8762d63fdb69Smrg lt_prog_compiler_static='-Bstatic' 87633da084b3Smrg ;; 87643da084b3Smrg 87653da084b3Smrg sysv4*MP*) 87663da084b3Smrg if test -d /usr/nec ;then 8767d63fdb69Smrg lt_prog_compiler_pic='-Kconform_pic' 8768d63fdb69Smrg lt_prog_compiler_static='-Bstatic' 87693da084b3Smrg fi 87703da084b3Smrg ;; 87713da084b3Smrg 87723da084b3Smrg sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8773d63fdb69Smrg lt_prog_compiler_wl='-Wl,' 8774d63fdb69Smrg lt_prog_compiler_pic='-KPIC' 8775d63fdb69Smrg lt_prog_compiler_static='-Bstatic' 87763da084b3Smrg ;; 87773da084b3Smrg 87783da084b3Smrg unicos*) 8779d63fdb69Smrg lt_prog_compiler_wl='-Wl,' 8780d63fdb69Smrg lt_prog_compiler_can_build_shared=no 87813da084b3Smrg ;; 87823da084b3Smrg 87833da084b3Smrg uts4*) 8784d63fdb69Smrg lt_prog_compiler_pic='-pic' 8785d63fdb69Smrg lt_prog_compiler_static='-Bstatic' 87863da084b3Smrg ;; 87873da084b3Smrg 87883da084b3Smrg *) 8789d63fdb69Smrg lt_prog_compiler_can_build_shared=no 87903da084b3Smrg ;; 87913da084b3Smrg esac 87923da084b3Smrg fi 87933da084b3Smrg 8794d63fdb69Smrgcase $host_os in 8795d63fdb69Smrg # For platforms which do not support PIC, -DPIC is meaningless: 8796d63fdb69Smrg *djgpp*) 8797d63fdb69Smrg lt_prog_compiler_pic= 8798d63fdb69Smrg ;; 8799d63fdb69Smrg *) 8800d63fdb69Smrg lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8801d63fdb69Smrg ;; 8802d63fdb69Smrgesac 880355acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 8804d63fdb69Smrg$as_echo "$lt_prog_compiler_pic" >&6; } 8805d63fdb69Smrg 8806d63fdb69Smrg 8807d63fdb69Smrg 8808d63fdb69Smrg 8809d63fdb69Smrg 88103da084b3Smrg 88113da084b3Smrg# 88123da084b3Smrg# Check to make sure the PIC flag actually works. 88133da084b3Smrg# 8814d63fdb69Smrgif test -n "$lt_prog_compiler_pic"; then 881555acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8816d63fdb69Smrg$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 881755acc8fcSmrgif ${lt_cv_prog_compiler_pic_works+:} false; then : 8818d63fdb69Smrg $as_echo_n "(cached) " >&6 8819d63fdb69Smrgelse 8820d63fdb69Smrg lt_cv_prog_compiler_pic_works=no 8821d63fdb69Smrg ac_outfile=conftest.$ac_objext 8822d63fdb69Smrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8823d63fdb69Smrg lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 88243da084b3Smrg # Insert the option either (1) after the last *FLAGS variable, or 88253da084b3Smrg # (2) before a word containing "conftest.", or (3) at the end. 88263da084b3Smrg # Note that $ac_compile itself does not contain backslashes and begins 88273da084b3Smrg # with a dollar sign (not a hyphen), so the echo should work correctly. 88283da084b3Smrg # The option is referenced via a variable to avoid confusing sed. 88293da084b3Smrg lt_compile=`echo "$ac_compile" | $SED \ 88303da084b3Smrg -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 88313da084b3Smrg -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 88323da084b3Smrg -e 's:$: $lt_compiler_flag:'` 883355acc8fcSmrg (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 88343da084b3Smrg (eval "$lt_compile" 2>conftest.err) 88353da084b3Smrg ac_status=$? 88363da084b3Smrg cat conftest.err >&5 883755acc8fcSmrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 88383da084b3Smrg if (exit $ac_status) && test -s "$ac_outfile"; then 88393da084b3Smrg # The compiler can only warn and ignore the option if not recognized 88403da084b3Smrg # So say no if there are warnings other than the usual output. 884155acc8fcSmrg $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 88423da084b3Smrg $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 88433da084b3Smrg if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8844d63fdb69Smrg lt_cv_prog_compiler_pic_works=yes 88453da084b3Smrg fi 88463da084b3Smrg fi 8847d63fdb69Smrg $RM conftest* 88483da084b3Smrg 88493da084b3Smrgfi 885055acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8851d63fdb69Smrg$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 88523da084b3Smrg 8853d63fdb69Smrgif test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8854d63fdb69Smrg case $lt_prog_compiler_pic in 88553da084b3Smrg "" | " "*) ;; 8856d63fdb69Smrg *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 88573da084b3Smrg esac 88583da084b3Smrgelse 8859d63fdb69Smrg lt_prog_compiler_pic= 8860d63fdb69Smrg lt_prog_compiler_can_build_shared=no 88613da084b3Smrgfi 88623da084b3Smrg 88633da084b3Smrgfi 8864d63fdb69Smrg 8865d63fdb69Smrg 8866d63fdb69Smrg 8867d63fdb69Smrg 8868d63fdb69Smrg 88693da084b3Smrg 88703da084b3Smrg# 88713da084b3Smrg# Check to make sure the static flag actually works. 88723da084b3Smrg# 8873d63fdb69Smrgwl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 887455acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8875d63fdb69Smrg$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 887655acc8fcSmrgif ${lt_cv_prog_compiler_static_works+:} false; then : 8877d63fdb69Smrg $as_echo_n "(cached) " >&6 88783da084b3Smrgelse 8879d63fdb69Smrg lt_cv_prog_compiler_static_works=no 88803da084b3Smrg save_LDFLAGS="$LDFLAGS" 88813da084b3Smrg LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8882d63fdb69Smrg echo "$lt_simple_link_test_code" > conftest.$ac_ext 88833da084b3Smrg if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 88843da084b3Smrg # The linker can only warn and ignore the option if not recognized 88853da084b3Smrg # So say no if there are warnings 88863da084b3Smrg if test -s conftest.err; then 88873da084b3Smrg # Append any errors to the config.log. 88883da084b3Smrg cat conftest.err 1>&5 888955acc8fcSmrg $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 88903da084b3Smrg $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 88913da084b3Smrg if diff conftest.exp conftest.er2 >/dev/null; then 8892d63fdb69Smrg lt_cv_prog_compiler_static_works=yes 88933da084b3Smrg fi 88943da084b3Smrg else 8895d63fdb69Smrg lt_cv_prog_compiler_static_works=yes 88963da084b3Smrg fi 88973da084b3Smrg fi 8898d63fdb69Smrg $RM -r conftest* 88993da084b3Smrg LDFLAGS="$save_LDFLAGS" 89003da084b3Smrg 89013da084b3Smrgfi 890255acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8903d63fdb69Smrg$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 89043da084b3Smrg 8905d63fdb69Smrgif test x"$lt_cv_prog_compiler_static_works" = xyes; then 89063da084b3Smrg : 89073da084b3Smrgelse 8908d63fdb69Smrg lt_prog_compiler_static= 8909d63fdb69Smrgfi 8910d63fdb69Smrg 8911d63fdb69Smrg 8912d63fdb69Smrg 8913d63fdb69Smrg 8914d63fdb69Smrg 8915d63fdb69Smrg 8916d63fdb69Smrg 891755acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8918d63fdb69Smrg$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 891955acc8fcSmrgif ${lt_cv_prog_compiler_c_o+:} false; then : 8920d63fdb69Smrg $as_echo_n "(cached) " >&6 8921d63fdb69Smrgelse 8922d63fdb69Smrg lt_cv_prog_compiler_c_o=no 8923d63fdb69Smrg $RM -r conftest 2>/dev/null 8924d63fdb69Smrg mkdir conftest 8925d63fdb69Smrg cd conftest 8926d63fdb69Smrg mkdir out 8927d63fdb69Smrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8928d63fdb69Smrg 8929d63fdb69Smrg lt_compiler_flag="-o out/conftest2.$ac_objext" 8930d63fdb69Smrg # Insert the option either (1) after the last *FLAGS variable, or 8931d63fdb69Smrg # (2) before a word containing "conftest.", or (3) at the end. 8932d63fdb69Smrg # Note that $ac_compile itself does not contain backslashes and begins 8933d63fdb69Smrg # with a dollar sign (not a hyphen), so the echo should work correctly. 8934d63fdb69Smrg lt_compile=`echo "$ac_compile" | $SED \ 8935d63fdb69Smrg -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8936d63fdb69Smrg -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8937d63fdb69Smrg -e 's:$: $lt_compiler_flag:'` 893855acc8fcSmrg (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8939d63fdb69Smrg (eval "$lt_compile" 2>out/conftest.err) 8940d63fdb69Smrg ac_status=$? 8941d63fdb69Smrg cat out/conftest.err >&5 894255acc8fcSmrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 8943d63fdb69Smrg if (exit $ac_status) && test -s out/conftest2.$ac_objext 8944d63fdb69Smrg then 8945d63fdb69Smrg # The compiler can only warn and ignore the option if not recognized 8946d63fdb69Smrg # So say no if there are warnings 894755acc8fcSmrg $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8948d63fdb69Smrg $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8949d63fdb69Smrg if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8950d63fdb69Smrg lt_cv_prog_compiler_c_o=yes 8951d63fdb69Smrg fi 8952d63fdb69Smrg fi 8953d63fdb69Smrg chmod u+w . 2>&5 8954d63fdb69Smrg $RM conftest* 8955d63fdb69Smrg # SGI C++ compiler will create directory out/ii_files/ for 8956d63fdb69Smrg # template instantiation 8957d63fdb69Smrg test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8958d63fdb69Smrg $RM out/* && rmdir out 8959d63fdb69Smrg cd .. 8960d63fdb69Smrg $RM -r conftest 8961d63fdb69Smrg $RM conftest* 8962d63fdb69Smrg 89633da084b3Smrgfi 896455acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8965d63fdb69Smrg$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8966d63fdb69Smrg 89673da084b3Smrg 89683da084b3Smrg 8969d63fdb69Smrg 8970d63fdb69Smrg 8971d63fdb69Smrg 897255acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8973d63fdb69Smrg$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 897455acc8fcSmrgif ${lt_cv_prog_compiler_c_o+:} false; then : 8975d63fdb69Smrg $as_echo_n "(cached) " >&6 89763da084b3Smrgelse 8977d63fdb69Smrg lt_cv_prog_compiler_c_o=no 8978d63fdb69Smrg $RM -r conftest 2>/dev/null 89793da084b3Smrg mkdir conftest 89803da084b3Smrg cd conftest 89813da084b3Smrg mkdir out 8982d63fdb69Smrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 89833da084b3Smrg 89843da084b3Smrg lt_compiler_flag="-o out/conftest2.$ac_objext" 89853da084b3Smrg # Insert the option either (1) after the last *FLAGS variable, or 89863da084b3Smrg # (2) before a word containing "conftest.", or (3) at the end. 89873da084b3Smrg # Note that $ac_compile itself does not contain backslashes and begins 89883da084b3Smrg # with a dollar sign (not a hyphen), so the echo should work correctly. 89893da084b3Smrg lt_compile=`echo "$ac_compile" | $SED \ 89903da084b3Smrg -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 89913da084b3Smrg -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 89923da084b3Smrg -e 's:$: $lt_compiler_flag:'` 899355acc8fcSmrg (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 89943da084b3Smrg (eval "$lt_compile" 2>out/conftest.err) 89953da084b3Smrg ac_status=$? 89963da084b3Smrg cat out/conftest.err >&5 899755acc8fcSmrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 89983da084b3Smrg if (exit $ac_status) && test -s out/conftest2.$ac_objext 89993da084b3Smrg then 90003da084b3Smrg # The compiler can only warn and ignore the option if not recognized 90013da084b3Smrg # So say no if there are warnings 900255acc8fcSmrg $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 90033da084b3Smrg $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 90043da084b3Smrg if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9005d63fdb69Smrg lt_cv_prog_compiler_c_o=yes 90063da084b3Smrg fi 90073da084b3Smrg fi 90083da084b3Smrg chmod u+w . 2>&5 9009d63fdb69Smrg $RM conftest* 90103da084b3Smrg # SGI C++ compiler will create directory out/ii_files/ for 90113da084b3Smrg # template instantiation 9012d63fdb69Smrg test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9013d63fdb69Smrg $RM out/* && rmdir out 90143da084b3Smrg cd .. 9015d63fdb69Smrg $RM -r conftest 9016d63fdb69Smrg $RM conftest* 90173da084b3Smrg 90183da084b3Smrgfi 901955acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9020d63fdb69Smrg$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9021d63fdb69Smrg 9022d63fdb69Smrg 90233da084b3Smrg 90243da084b3Smrg 90253da084b3Smrghard_links="nottested" 9026d63fdb69Smrgif test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 90273da084b3Smrg # do not overwrite the value of need_locks provided by the user 902855acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9029d63fdb69Smrg$as_echo_n "checking if we can lock with hard links... " >&6; } 90303da084b3Smrg hard_links=yes 9031d63fdb69Smrg $RM conftest* 90323da084b3Smrg ln conftest.a conftest.b 2>/dev/null && hard_links=no 90333da084b3Smrg touch conftest.a 90343da084b3Smrg ln conftest.a conftest.b 2>&5 || hard_links=no 90353da084b3Smrg ln conftest.a conftest.b 2>/dev/null && hard_links=no 903655acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9037d63fdb69Smrg$as_echo "$hard_links" >&6; } 90383da084b3Smrg if test "$hard_links" = no; then 903955acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9040d63fdb69Smrg$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 90413da084b3Smrg need_locks=warn 90423da084b3Smrg fi 90433da084b3Smrgelse 90443da084b3Smrg need_locks=no 90453da084b3Smrgfi 90463da084b3Smrg 9047d63fdb69Smrg 9048d63fdb69Smrg 9049d63fdb69Smrg 9050d63fdb69Smrg 9051d63fdb69Smrg 905255acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9053d63fdb69Smrg$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 90543da084b3Smrg 90553da084b3Smrg runpath_var= 9056d63fdb69Smrg allow_undefined_flag= 9057d63fdb69Smrg always_export_symbols=no 9058d63fdb69Smrg archive_cmds= 9059d63fdb69Smrg archive_expsym_cmds= 9060d63fdb69Smrg compiler_needs_object=no 9061d63fdb69Smrg enable_shared_with_static_runtimes=no 9062d63fdb69Smrg export_dynamic_flag_spec= 9063d63fdb69Smrg export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9064d63fdb69Smrg hardcode_automatic=no 9065d63fdb69Smrg hardcode_direct=no 9066d63fdb69Smrg hardcode_direct_absolute=no 9067d63fdb69Smrg hardcode_libdir_flag_spec= 9068d63fdb69Smrg hardcode_libdir_flag_spec_ld= 9069d63fdb69Smrg hardcode_libdir_separator= 9070d63fdb69Smrg hardcode_minus_L=no 9071d63fdb69Smrg hardcode_shlibpath_var=unsupported 9072d63fdb69Smrg inherit_rpath=no 9073d63fdb69Smrg link_all_deplibs=unknown 9074d63fdb69Smrg module_cmds= 9075d63fdb69Smrg module_expsym_cmds= 9076d63fdb69Smrg old_archive_from_new_cmds= 9077d63fdb69Smrg old_archive_from_expsyms_cmds= 9078d63fdb69Smrg thread_safe_flag_spec= 9079d63fdb69Smrg whole_archive_flag_spec= 90803da084b3Smrg # include_expsyms should be a list of space-separated symbols to be *always* 90813da084b3Smrg # included in the symbol list 9082d63fdb69Smrg include_expsyms= 90833da084b3Smrg # exclude_expsyms can be an extended regexp of symbols to exclude 90843da084b3Smrg # it will be wrapped by ` (' and `)$', so one must not match beginning or 90853da084b3Smrg # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 90863da084b3Smrg # as well as any symbol that contains `d'. 9087d63fdb69Smrg exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 90883da084b3Smrg # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 90893da084b3Smrg # platforms (ab)use it in PIC code, but their linkers get confused if 90903da084b3Smrg # the symbol is explicitly referenced. Since portable code cannot 90913da084b3Smrg # rely on this symbol name, it's probably fine to never include it in 90923da084b3Smrg # preloaded symbol tables. 9093d63fdb69Smrg # Exclude shared library initialization/finalization symbols. 90943da084b3Smrg extract_expsyms_cmds= 90953da084b3Smrg 90963da084b3Smrg case $host_os in 9097d63fdb69Smrg cygwin* | mingw* | pw32* | cegcc*) 90983da084b3Smrg # FIXME: the MSVC++ port hasn't been tested in a loooong time 90993da084b3Smrg # When not using gcc, we currently assume that we are using 91003da084b3Smrg # Microsoft Visual C++. 91013da084b3Smrg if test "$GCC" != yes; then 91023da084b3Smrg with_gnu_ld=no 91033da084b3Smrg fi 91043da084b3Smrg ;; 91053da084b3Smrg interix*) 91063da084b3Smrg # we just hope/assume this is gcc and not c89 (= MSVC++) 91073da084b3Smrg with_gnu_ld=yes 91083da084b3Smrg ;; 91093da084b3Smrg openbsd*) 91103da084b3Smrg with_gnu_ld=no 91113da084b3Smrg ;; 91123da084b3Smrg esac 91133da084b3Smrg 9114d63fdb69Smrg ld_shlibs=yes 911555acc8fcSmrg 911655acc8fcSmrg # On some targets, GNU ld is compatible enough with the native linker 911755acc8fcSmrg # that we're better off using the native interface for both. 911855acc8fcSmrg lt_use_gnu_ld_interface=no 91193da084b3Smrg if test "$with_gnu_ld" = yes; then 912055acc8fcSmrg case $host_os in 912155acc8fcSmrg aix*) 912255acc8fcSmrg # The AIX port of GNU ld has always aspired to compatibility 912355acc8fcSmrg # with the native linker. However, as the warning in the GNU ld 912455acc8fcSmrg # block says, versions before 2.19.5* couldn't really create working 912555acc8fcSmrg # shared libraries, regardless of the interface used. 912655acc8fcSmrg case `$LD -v 2>&1` in 912755acc8fcSmrg *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 912855acc8fcSmrg *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 912955acc8fcSmrg *\ \(GNU\ Binutils\)\ [3-9]*) ;; 913055acc8fcSmrg *) 913155acc8fcSmrg lt_use_gnu_ld_interface=yes 913255acc8fcSmrg ;; 913355acc8fcSmrg esac 913455acc8fcSmrg ;; 913555acc8fcSmrg *) 913655acc8fcSmrg lt_use_gnu_ld_interface=yes 913755acc8fcSmrg ;; 913855acc8fcSmrg esac 913955acc8fcSmrg fi 914055acc8fcSmrg 914155acc8fcSmrg if test "$lt_use_gnu_ld_interface" = yes; then 91423da084b3Smrg # If archive_cmds runs LD, not CC, wlarc should be empty 91433da084b3Smrg wlarc='${wl}' 91443da084b3Smrg 91453da084b3Smrg # Set some defaults for GNU ld with shared library support. These 91463da084b3Smrg # are reset later if shared libraries are not supported. Putting them 91473da084b3Smrg # here allows them to be overridden if necessary. 91483da084b3Smrg runpath_var=LD_RUN_PATH 9149d63fdb69Smrg hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9150d63fdb69Smrg export_dynamic_flag_spec='${wl}--export-dynamic' 91513da084b3Smrg # ancient GNU ld didn't support --whole-archive et. al. 9152d63fdb69Smrg if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9153d63fdb69Smrg whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9154d63fdb69Smrg else 9155d63fdb69Smrg whole_archive_flag_spec= 91563da084b3Smrg fi 91573da084b3Smrg supports_anon_versioning=no 9158d63fdb69Smrg case `$LD -v 2>&1` in 915955acc8fcSmrg *GNU\ gold*) supports_anon_versioning=yes ;; 91603da084b3Smrg *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 91613da084b3Smrg *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 91623da084b3Smrg *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 91633da084b3Smrg *\ 2.11.*) ;; # other 2.11 versions 91643da084b3Smrg *) supports_anon_versioning=yes ;; 91653da084b3Smrg esac 91663da084b3Smrg 91673da084b3Smrg # See if GNU ld supports shared libraries. 91683da084b3Smrg case $host_os in 9169d63fdb69Smrg aix[3-9]*) 91703da084b3Smrg # On AIX/PPC, the GNU linker is very broken 91713da084b3Smrg if test "$host_cpu" != ia64; then 9172d63fdb69Smrg ld_shlibs=no 9173d63fdb69Smrg cat <<_LT_EOF 1>&2 91743da084b3Smrg 917555acc8fcSmrg*** Warning: the GNU linker, at least up to release 2.19, is reported 91763da084b3Smrg*** to be unable to reliably create shared libraries on AIX. 91773da084b3Smrg*** Therefore, libtool is disabling shared libraries support. If you 917855acc8fcSmrg*** really care for shared libraries, you may want to install binutils 917955acc8fcSmrg*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 918055acc8fcSmrg*** You will then need to restart the configuration process. 91813da084b3Smrg 9182d63fdb69Smrg_LT_EOF 91833da084b3Smrg fi 91843da084b3Smrg ;; 91853da084b3Smrg 91863da084b3Smrg amigaos*) 9187d63fdb69Smrg case $host_cpu in 9188d63fdb69Smrg powerpc) 9189d63fdb69Smrg # see comment about AmigaOS4 .so support 9190d63fdb69Smrg archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9191d63fdb69Smrg archive_expsym_cmds='' 9192d63fdb69Smrg ;; 9193d63fdb69Smrg m68k) 9194d63fdb69Smrg 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)' 9195d63fdb69Smrg hardcode_libdir_flag_spec='-L$libdir' 9196d63fdb69Smrg hardcode_minus_L=yes 9197d63fdb69Smrg ;; 9198d63fdb69Smrg esac 91993da084b3Smrg ;; 92003da084b3Smrg 92013da084b3Smrg beos*) 9202d63fdb69Smrg if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9203d63fdb69Smrg allow_undefined_flag=unsupported 92043da084b3Smrg # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 92053da084b3Smrg # support --undefined. This deserves some investigation. FIXME 9206d63fdb69Smrg archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 92073da084b3Smrg else 9208d63fdb69Smrg ld_shlibs=no 92093da084b3Smrg fi 92103da084b3Smrg ;; 92113da084b3Smrg 9212d63fdb69Smrg cygwin* | mingw* | pw32* | cegcc*) 9213d63fdb69Smrg # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 92143da084b3Smrg # as there is no search path for DLLs. 9215d63fdb69Smrg hardcode_libdir_flag_spec='-L$libdir' 921655acc8fcSmrg export_dynamic_flag_spec='${wl}--export-all-symbols' 9217d63fdb69Smrg allow_undefined_flag=unsupported 9218d63fdb69Smrg always_export_symbols=no 9219d63fdb69Smrg enable_shared_with_static_runtimes=yes 9220d63fdb69Smrg export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9221d63fdb69Smrg 9222d63fdb69Smrg if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9223d63fdb69Smrg archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 92243da084b3Smrg # If the export-symbols file already is a .def file (1st line 92253da084b3Smrg # is EXPORTS), use it as is; otherwise, prepend... 9226d63fdb69Smrg archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 92273da084b3Smrg cp $export_symbols $output_objdir/$soname.def; 92283da084b3Smrg else 92293da084b3Smrg echo EXPORTS > $output_objdir/$soname.def; 92303da084b3Smrg cat $export_symbols >> $output_objdir/$soname.def; 92313da084b3Smrg fi~ 92323da084b3Smrg $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 92333da084b3Smrg else 9234d63fdb69Smrg ld_shlibs=no 92353da084b3Smrg fi 92363da084b3Smrg ;; 92373da084b3Smrg 923855acc8fcSmrg haiku*) 923955acc8fcSmrg archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 924055acc8fcSmrg link_all_deplibs=yes 924155acc8fcSmrg ;; 924255acc8fcSmrg 9243d63fdb69Smrg interix[3-9]*) 9244d63fdb69Smrg hardcode_direct=no 9245d63fdb69Smrg hardcode_shlibpath_var=no 9246d63fdb69Smrg hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9247d63fdb69Smrg export_dynamic_flag_spec='${wl}-E' 92483da084b3Smrg # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 92493da084b3Smrg # Instead, shared libraries are loaded at an image base (0x10000000 by 92503da084b3Smrg # default) and relocated if they conflict, which is a slow very memory 92513da084b3Smrg # consuming and fragmenting process. To avoid this, we pick a random, 92523da084b3Smrg # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 92533da084b3Smrg # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9254d63fdb69Smrg archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9255d63fdb69Smrg 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' 92563da084b3Smrg ;; 92573da084b3Smrg 925855acc8fcSmrg gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9259d63fdb69Smrg tmp_diet=no 9260d63fdb69Smrg if test "$host_os" = linux-dietlibc; then 9261d63fdb69Smrg case $cc_basename in 9262d63fdb69Smrg diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9263d63fdb69Smrg esac 9264d63fdb69Smrg fi 9265d63fdb69Smrg if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9266d63fdb69Smrg && test "$tmp_diet" = no 9267d63fdb69Smrg then 92683da084b3Smrg tmp_addflag= 9269d63fdb69Smrg tmp_sharedflag='-shared' 92703da084b3Smrg case $cc_basename,$host_cpu in 9271d63fdb69Smrg pgcc*) # Portland Group C compiler 927255acc8fcSmrg 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' 92733da084b3Smrg tmp_addflag=' $pic_flag' 92743da084b3Smrg ;; 927555acc8fcSmrg pgf77* | pgf90* | pgf95* | pgfortran*) 927655acc8fcSmrg # Portland Group f77 and f90 compilers 927755acc8fcSmrg 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' 92783da084b3Smrg tmp_addflag=' $pic_flag -Mnomain' ;; 9279d63fdb69Smrg ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 92803da084b3Smrg tmp_addflag=' -i_dynamic' ;; 92813da084b3Smrg efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 92823da084b3Smrg tmp_addflag=' -i_dynamic -nofor_main' ;; 92833da084b3Smrg ifc* | ifort*) # Intel Fortran compiler 92843da084b3Smrg tmp_addflag=' -nofor_main' ;; 9285d63fdb69Smrg lf95*) # Lahey Fortran 8.1 9286d63fdb69Smrg whole_archive_flag_spec= 9287d63fdb69Smrg tmp_sharedflag='--shared' ;; 928855acc8fcSmrg xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9289d63fdb69Smrg tmp_sharedflag='-qmkshrobj' 9290d63fdb69Smrg tmp_addflag= ;; 929155acc8fcSmrg nvcc*) # Cuda Compiler Driver 2.2 929255acc8fcSmrg 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' 929355acc8fcSmrg compiler_needs_object=yes 929455acc8fcSmrg ;; 9295d63fdb69Smrg esac 9296d63fdb69Smrg case `$CC -V 2>&1 | sed 5q` in 9297d63fdb69Smrg *Sun\ C*) # Sun C 5.9 929855acc8fcSmrg 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' 9299d63fdb69Smrg compiler_needs_object=yes 9300d63fdb69Smrg tmp_sharedflag='-G' ;; 9301d63fdb69Smrg *Sun\ F*) # Sun Fortran 8.3 9302d63fdb69Smrg tmp_sharedflag='-G' ;; 93033da084b3Smrg esac 9304d63fdb69Smrg archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 93053da084b3Smrg 9306d63fdb69Smrg if test "x$supports_anon_versioning" = xyes; then 9307d63fdb69Smrg archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9308d63fdb69Smrg cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9309d63fdb69Smrg echo "local: *; };" >> $output_objdir/$libname.ver~ 9310d63fdb69Smrg $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9311d63fdb69Smrg fi 9312d63fdb69Smrg 9313d63fdb69Smrg case $cc_basename in 931455acc8fcSmrg xlf* | bgf* | bgxlf* | mpixlf*) 9315d63fdb69Smrg # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9316d63fdb69Smrg whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9317d63fdb69Smrg hardcode_libdir_flag_spec= 9318d63fdb69Smrg hardcode_libdir_flag_spec_ld='-rpath $libdir' 931955acc8fcSmrg archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9320d63fdb69Smrg if test "x$supports_anon_versioning" = xyes; then 9321d63fdb69Smrg archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9322d63fdb69Smrg cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9323d63fdb69Smrg echo "local: *; };" >> $output_objdir/$libname.ver~ 932455acc8fcSmrg $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9325d63fdb69Smrg fi 9326d63fdb69Smrg ;; 9327d63fdb69Smrg esac 93283da084b3Smrg else 9329d63fdb69Smrg ld_shlibs=no 93303da084b3Smrg fi 93313da084b3Smrg ;; 93323da084b3Smrg 9333d63fdb69Smrg netbsd*) 9334d63fdb69Smrg if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9335d63fdb69Smrg archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 93363da084b3Smrg wlarc= 93373da084b3Smrg else 9338d63fdb69Smrg archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9339d63fdb69Smrg archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 93403da084b3Smrg fi 93413da084b3Smrg ;; 93423da084b3Smrg 93433da084b3Smrg solaris*) 9344d63fdb69Smrg if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9345d63fdb69Smrg ld_shlibs=no 9346d63fdb69Smrg cat <<_LT_EOF 1>&2 93473da084b3Smrg 93483da084b3Smrg*** Warning: The releases 2.8.* of the GNU linker cannot reliably 93493da084b3Smrg*** create shared libraries on Solaris systems. Therefore, libtool 93503da084b3Smrg*** is disabling shared libraries support. We urge you to upgrade GNU 93513da084b3Smrg*** binutils to release 2.9.1 or newer. Another option is to modify 93523da084b3Smrg*** your PATH or compiler configuration so that the native linker is 93533da084b3Smrg*** used, and then restart. 93543da084b3Smrg 9355d63fdb69Smrg_LT_EOF 9356d63fdb69Smrg elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9357d63fdb69Smrg archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9358d63fdb69Smrg archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 93593da084b3Smrg else 9360d63fdb69Smrg ld_shlibs=no 93613da084b3Smrg fi 93623da084b3Smrg ;; 93633da084b3Smrg 93643da084b3Smrg sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 93653da084b3Smrg case `$LD -v 2>&1` in 93663da084b3Smrg *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9367d63fdb69Smrg ld_shlibs=no 93683da084b3Smrg cat <<_LT_EOF 1>&2 93693da084b3Smrg 93703da084b3Smrg*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 93713da084b3Smrg*** reliably create shared libraries on SCO systems. Therefore, libtool 93723da084b3Smrg*** is disabling shared libraries support. We urge you to upgrade GNU 93733da084b3Smrg*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 93743da084b3Smrg*** your PATH or compiler configuration so that the native linker is 93753da084b3Smrg*** used, and then restart. 93763da084b3Smrg 93773da084b3Smrg_LT_EOF 93783da084b3Smrg ;; 93793da084b3Smrg *) 9380d63fdb69Smrg # For security reasons, it is highly recommended that you always 9381d63fdb69Smrg # use absolute paths for naming shared libraries, and exclude the 9382d63fdb69Smrg # DT_RUNPATH tag from executables and libraries. But doing so 9383d63fdb69Smrg # requires that you compile everything twice, which is a pain. 9384d63fdb69Smrg if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9385d63fdb69Smrg hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9386d63fdb69Smrg archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9387d63fdb69Smrg archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 93883da084b3Smrg else 9389d63fdb69Smrg ld_shlibs=no 93903da084b3Smrg fi 93913da084b3Smrg ;; 93923da084b3Smrg esac 93933da084b3Smrg ;; 93943da084b3Smrg 93953da084b3Smrg sunos4*) 9396d63fdb69Smrg archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 93973da084b3Smrg wlarc= 9398d63fdb69Smrg hardcode_direct=yes 9399d63fdb69Smrg hardcode_shlibpath_var=no 94003da084b3Smrg ;; 94013da084b3Smrg 94023da084b3Smrg *) 9403d63fdb69Smrg if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9404d63fdb69Smrg archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9405d63fdb69Smrg archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 94063da084b3Smrg else 9407d63fdb69Smrg ld_shlibs=no 94083da084b3Smrg fi 94093da084b3Smrg ;; 94103da084b3Smrg esac 94113da084b3Smrg 9412d63fdb69Smrg if test "$ld_shlibs" = no; then 94133da084b3Smrg runpath_var= 9414d63fdb69Smrg hardcode_libdir_flag_spec= 9415d63fdb69Smrg export_dynamic_flag_spec= 9416d63fdb69Smrg whole_archive_flag_spec= 94173da084b3Smrg fi 94183da084b3Smrg else 94193da084b3Smrg # PORTME fill in a description of your system's linker (not GNU ld) 94203da084b3Smrg case $host_os in 94213da084b3Smrg aix3*) 9422d63fdb69Smrg allow_undefined_flag=unsupported 9423d63fdb69Smrg always_export_symbols=yes 9424d63fdb69Smrg 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' 94253da084b3Smrg # Note: this linker hardcodes the directories in LIBPATH if there 94263da084b3Smrg # are no directories specified by -L. 9427d63fdb69Smrg hardcode_minus_L=yes 94283da084b3Smrg if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 94293da084b3Smrg # Neither direct hardcoding nor static linking is supported with a 94303da084b3Smrg # broken collect2. 9431d63fdb69Smrg hardcode_direct=unsupported 94323da084b3Smrg fi 94333da084b3Smrg ;; 94343da084b3Smrg 9435d63fdb69Smrg aix[4-9]*) 94363da084b3Smrg if test "$host_cpu" = ia64; then 94373da084b3Smrg # On IA64, the linker does run time linking by default, so we don't 94383da084b3Smrg # have to do anything special. 94393da084b3Smrg aix_use_runtimelinking=no 94403da084b3Smrg exp_sym_flag='-Bexport' 94413da084b3Smrg no_entry_flag="" 94423da084b3Smrg else 94433da084b3Smrg # If we're using GNU nm, then we don't want the "-C" option. 94443da084b3Smrg # -C means demangle to AIX nm, but means don't demangle with GNU nm 944555acc8fcSmrg # Also, AIX nm treats weak defined symbols like other global 944655acc8fcSmrg # defined symbols, whereas GNU nm marks them as "W". 9447d63fdb69Smrg if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 944855acc8fcSmrg 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' 94493da084b3Smrg else 9450d63fdb69Smrg 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' 94513da084b3Smrg fi 94523da084b3Smrg aix_use_runtimelinking=no 94533da084b3Smrg 94543da084b3Smrg # Test if we are trying to use run time linking or normal 94553da084b3Smrg # AIX style linking. If -brtl is somewhere in LDFLAGS, we 94563da084b3Smrg # need to do runtime linking. 9457d63fdb69Smrg case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 94583da084b3Smrg for ld_flag in $LDFLAGS; do 9459d63fdb69Smrg if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9460d63fdb69Smrg aix_use_runtimelinking=yes 9461d63fdb69Smrg break 9462d63fdb69Smrg fi 94633da084b3Smrg done 94643da084b3Smrg ;; 94653da084b3Smrg esac 94663da084b3Smrg 94673da084b3Smrg exp_sym_flag='-bexport' 94683da084b3Smrg no_entry_flag='-bnoentry' 94693da084b3Smrg fi 94703da084b3Smrg 94713da084b3Smrg # When large executables or shared objects are built, AIX ld can 94723da084b3Smrg # have problems creating the table of contents. If linking a library 94733da084b3Smrg # or program results in "error TOC overflow" add -mminimal-toc to 94743da084b3Smrg # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 94753da084b3Smrg # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 94763da084b3Smrg 9477d63fdb69Smrg archive_cmds='' 9478d63fdb69Smrg hardcode_direct=yes 9479d63fdb69Smrg hardcode_direct_absolute=yes 9480d63fdb69Smrg hardcode_libdir_separator=':' 9481d63fdb69Smrg link_all_deplibs=yes 9482d63fdb69Smrg file_list_spec='${wl}-f,' 94833da084b3Smrg 94843da084b3Smrg if test "$GCC" = yes; then 94853da084b3Smrg case $host_os in aix4.[012]|aix4.[012].*) 94863da084b3Smrg # We only want to do this on AIX 4.2 and lower, the check 94873da084b3Smrg # below for broken collect2 doesn't work under 4.3+ 94883da084b3Smrg collect2name=`${CC} -print-prog-name=collect2` 9489d63fdb69Smrg if test -f "$collect2name" && 9490d63fdb69Smrg strings "$collect2name" | $GREP resolve_lib_name >/dev/null 94913da084b3Smrg then 9492d63fdb69Smrg # We have reworked collect2 9493d63fdb69Smrg : 94943da084b3Smrg else 9495d63fdb69Smrg # We have old collect2 9496d63fdb69Smrg hardcode_direct=unsupported 9497d63fdb69Smrg # It fails to find uninstalled libraries when the uninstalled 9498d63fdb69Smrg # path is not listed in the libpath. Setting hardcode_minus_L 9499d63fdb69Smrg # to unsupported forces relinking 9500d63fdb69Smrg hardcode_minus_L=yes 9501d63fdb69Smrg hardcode_libdir_flag_spec='-L$libdir' 9502d63fdb69Smrg hardcode_libdir_separator= 95033da084b3Smrg fi 95043da084b3Smrg ;; 95053da084b3Smrg esac 95063da084b3Smrg shared_flag='-shared' 95073da084b3Smrg if test "$aix_use_runtimelinking" = yes; then 95083da084b3Smrg shared_flag="$shared_flag "'${wl}-G' 95093da084b3Smrg fi 95103da084b3Smrg else 95113da084b3Smrg # not using gcc 95123da084b3Smrg if test "$host_cpu" = ia64; then 9513d63fdb69Smrg # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9514d63fdb69Smrg # chokes on -Wl,-G. The following line is correct: 95153da084b3Smrg shared_flag='-G' 95163da084b3Smrg else 95173da084b3Smrg if test "$aix_use_runtimelinking" = yes; then 95183da084b3Smrg shared_flag='${wl}-G' 95193da084b3Smrg else 95203da084b3Smrg shared_flag='${wl}-bM:SRE' 95213da084b3Smrg fi 95223da084b3Smrg fi 95233da084b3Smrg fi 95243da084b3Smrg 9525d63fdb69Smrg export_dynamic_flag_spec='${wl}-bexpall' 95263da084b3Smrg # It seems that -bexpall does not export symbols beginning with 95273da084b3Smrg # underscore (_), so it is better to generate a list of symbols to export. 9528d63fdb69Smrg always_export_symbols=yes 95293da084b3Smrg if test "$aix_use_runtimelinking" = yes; then 95303da084b3Smrg # Warning - without using the other runtime loading flags (-brtl), 95313da084b3Smrg # -berok will link without error, but may produce a broken library. 9532d63fdb69Smrg allow_undefined_flag='-berok' 9533d63fdb69Smrg # Determine the default libpath from the value encoded in an 9534d63fdb69Smrg # empty executable. 953555acc8fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 95363da084b3Smrg/* end confdefs.h. */ 95373da084b3Smrg 95383da084b3Smrgint 95393da084b3Smrgmain () 95403da084b3Smrg{ 95413da084b3Smrg 95423da084b3Smrg ; 95433da084b3Smrg return 0; 95443da084b3Smrg} 95453da084b3Smrg_ACEOF 954655acc8fcSmrgif ac_fn_c_try_link "$LINENO"; then : 9547d63fdb69Smrg 9548d63fdb69Smrglt_aix_libpath_sed=' 9549d63fdb69Smrg /Import File Strings/,/^$/ { 9550d63fdb69Smrg /^0/ { 9551d63fdb69Smrg s/^0 *\(.*\)$/\1/ 9552d63fdb69Smrg p 9553d63fdb69Smrg } 9554d63fdb69Smrg }' 9555d63fdb69Smrgaix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 95563da084b3Smrg# Check for a 64-bit object if we didn't find anything. 9557d63fdb69Smrgif test -z "$aix_libpath"; then 9558d63fdb69Smrg aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9559d63fdb69Smrgfi 95603da084b3Smrgfi 956155acc8fcSmrgrm -f core conftest.err conftest.$ac_objext \ 956255acc8fcSmrg conftest$ac_exeext conftest.$ac_ext 95633da084b3Smrgif test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 95643da084b3Smrg 9565d63fdb69Smrg hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 956655acc8fcSmrg 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" 9567d63fdb69Smrg else 95683da084b3Smrg if test "$host_cpu" = ia64; then 9569d63fdb69Smrg hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9570d63fdb69Smrg allow_undefined_flag="-z nodefs" 9571d63fdb69Smrg 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" 95723da084b3Smrg else 9573d63fdb69Smrg # Determine the default libpath from the value encoded in an 9574d63fdb69Smrg # empty executable. 957555acc8fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 95763da084b3Smrg/* end confdefs.h. */ 95773da084b3Smrg 95783da084b3Smrgint 95793da084b3Smrgmain () 95803da084b3Smrg{ 95813da084b3Smrg 95823da084b3Smrg ; 95833da084b3Smrg return 0; 95843da084b3Smrg} 95853da084b3Smrg_ACEOF 958655acc8fcSmrgif ac_fn_c_try_link "$LINENO"; then : 9587d63fdb69Smrg 9588d63fdb69Smrglt_aix_libpath_sed=' 9589d63fdb69Smrg /Import File Strings/,/^$/ { 9590d63fdb69Smrg /^0/ { 9591d63fdb69Smrg s/^0 *\(.*\)$/\1/ 9592d63fdb69Smrg p 9593d63fdb69Smrg } 9594d63fdb69Smrg }' 9595d63fdb69Smrgaix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 95963da084b3Smrg# Check for a 64-bit object if we didn't find anything. 9597d63fdb69Smrgif test -z "$aix_libpath"; then 9598d63fdb69Smrg aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9599d63fdb69Smrgfi 96003da084b3Smrgfi 960155acc8fcSmrgrm -f core conftest.err conftest.$ac_objext \ 960255acc8fcSmrg conftest$ac_exeext conftest.$ac_ext 96033da084b3Smrgif test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 96043da084b3Smrg 9605d63fdb69Smrg hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 96063da084b3Smrg # Warning - without using the other run time loading flags, 96073da084b3Smrg # -berok will link without error, but may produce a broken library. 9608d63fdb69Smrg no_undefined_flag=' ${wl}-bernotok' 9609d63fdb69Smrg allow_undefined_flag=' ${wl}-berok' 961055acc8fcSmrg if test "$with_gnu_ld" = yes; then 961155acc8fcSmrg # We only use this code for GNU lds that support --whole-archive. 961255acc8fcSmrg whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 961355acc8fcSmrg else 961455acc8fcSmrg # Exported symbols can be pulled into shared objects from archives 961555acc8fcSmrg whole_archive_flag_spec='$convenience' 961655acc8fcSmrg fi 9617d63fdb69Smrg archive_cmds_need_lc=yes 96183da084b3Smrg # This is similar to how AIX traditionally builds its shared libraries. 9619d63fdb69Smrg 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' 96203da084b3Smrg fi 96213da084b3Smrg fi 96223da084b3Smrg ;; 96233da084b3Smrg 96243da084b3Smrg amigaos*) 9625d63fdb69Smrg case $host_cpu in 9626d63fdb69Smrg powerpc) 9627d63fdb69Smrg # see comment about AmigaOS4 .so support 9628d63fdb69Smrg archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9629d63fdb69Smrg archive_expsym_cmds='' 9630d63fdb69Smrg ;; 9631d63fdb69Smrg m68k) 9632d63fdb69Smrg 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)' 9633d63fdb69Smrg hardcode_libdir_flag_spec='-L$libdir' 9634d63fdb69Smrg hardcode_minus_L=yes 9635d63fdb69Smrg ;; 9636d63fdb69Smrg esac 96373da084b3Smrg ;; 96383da084b3Smrg 96393da084b3Smrg bsdi[45]*) 9640d63fdb69Smrg export_dynamic_flag_spec=-rdynamic 96413da084b3Smrg ;; 96423da084b3Smrg 9643d63fdb69Smrg cygwin* | mingw* | pw32* | cegcc*) 96443da084b3Smrg # When not using gcc, we currently assume that we are using 96453da084b3Smrg # Microsoft Visual C++. 96463da084b3Smrg # hardcode_libdir_flag_spec is actually meaningless, as there is 96473da084b3Smrg # no search path for DLLs. 9648d63fdb69Smrg hardcode_libdir_flag_spec=' ' 9649d63fdb69Smrg allow_undefined_flag=unsupported 96503da084b3Smrg # Tell ltmain to make .lib files, not .a files. 96513da084b3Smrg libext=lib 96523da084b3Smrg # Tell ltmain to make .dll files, not .so files. 96533da084b3Smrg shrext_cmds=".dll" 96543da084b3Smrg # FIXME: Setting linknames here is a bad hack. 965555acc8fcSmrg archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 96563da084b3Smrg # The linker will automatically build a .lib file if we build a DLL. 9657d63fdb69Smrg old_archive_from_new_cmds='true' 96583da084b3Smrg # FIXME: Should let the user specify the lib program. 9659d63fdb69Smrg old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9660d63fdb69Smrg fix_srcfile_path='`cygpath -w "$srcfile"`' 9661d63fdb69Smrg enable_shared_with_static_runtimes=yes 96623da084b3Smrg ;; 96633da084b3Smrg 96643da084b3Smrg darwin* | rhapsody*) 9665d63fdb69Smrg 9666d63fdb69Smrg 9667d63fdb69Smrg archive_cmds_need_lc=no 9668d63fdb69Smrg hardcode_direct=no 9669d63fdb69Smrg hardcode_automatic=yes 9670d63fdb69Smrg hardcode_shlibpath_var=unsupported 967155acc8fcSmrg if test "$lt_cv_ld_force_load" = "yes"; then 967255acc8fcSmrg 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\"`' 967355acc8fcSmrg else 967455acc8fcSmrg whole_archive_flag_spec='' 967555acc8fcSmrg fi 9676d63fdb69Smrg link_all_deplibs=yes 9677d63fdb69Smrg allow_undefined_flag="$_lt_dar_allow_undefined" 9678d63fdb69Smrg case $cc_basename in 9679d63fdb69Smrg ifort*) _lt_dar_can_shared=yes ;; 9680d63fdb69Smrg *) _lt_dar_can_shared=$GCC ;; 9681d63fdb69Smrg esac 9682d63fdb69Smrg if test "$_lt_dar_can_shared" = "yes"; then 968355acc8fcSmrg output_verbose_link_cmd=func_echo_all 9684d63fdb69Smrg archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9685d63fdb69Smrg module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9686d63fdb69Smrg 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}" 9687d63fdb69Smrg 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}" 9688d63fdb69Smrg 9689d63fdb69Smrg else 9690d63fdb69Smrg ld_shlibs=no 9691d63fdb69Smrg fi 9692d63fdb69Smrg 96933da084b3Smrg ;; 96943da084b3Smrg 96953da084b3Smrg dgux*) 9696d63fdb69Smrg archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9697d63fdb69Smrg hardcode_libdir_flag_spec='-L$libdir' 9698d63fdb69Smrg hardcode_shlibpath_var=no 96993da084b3Smrg ;; 97003da084b3Smrg 97013da084b3Smrg freebsd1*) 9702d63fdb69Smrg ld_shlibs=no 97033da084b3Smrg ;; 97043da084b3Smrg 97053da084b3Smrg # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 97063da084b3Smrg # support. Future versions do this automatically, but an explicit c++rt0.o 97073da084b3Smrg # does not break anything, and helps significantly (at the cost of a little 97083da084b3Smrg # extra space). 97093da084b3Smrg freebsd2.2*) 9710d63fdb69Smrg archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9711d63fdb69Smrg hardcode_libdir_flag_spec='-R$libdir' 9712d63fdb69Smrg hardcode_direct=yes 9713d63fdb69Smrg hardcode_shlibpath_var=no 97143da084b3Smrg ;; 97153da084b3Smrg 97163da084b3Smrg # Unfortunately, older versions of FreeBSD 2 do not have this feature. 97173da084b3Smrg freebsd2*) 9718d63fdb69Smrg archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9719d63fdb69Smrg hardcode_direct=yes 9720d63fdb69Smrg hardcode_minus_L=yes 9721d63fdb69Smrg hardcode_shlibpath_var=no 97223da084b3Smrg ;; 97233da084b3Smrg 97243da084b3Smrg # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 97253da084b3Smrg freebsd* | dragonfly*) 9726d63fdb69Smrg archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9727d63fdb69Smrg hardcode_libdir_flag_spec='-R$libdir' 9728d63fdb69Smrg hardcode_direct=yes 9729d63fdb69Smrg hardcode_shlibpath_var=no 97303da084b3Smrg ;; 97313da084b3Smrg 97323da084b3Smrg hpux9*) 97333da084b3Smrg if test "$GCC" = yes; then 9734d63fdb69Smrg archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 97353da084b3Smrg else 9736d63fdb69Smrg 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' 97373da084b3Smrg fi 9738d63fdb69Smrg hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9739d63fdb69Smrg hardcode_libdir_separator=: 9740d63fdb69Smrg hardcode_direct=yes 97413da084b3Smrg 97423da084b3Smrg # hardcode_minus_L: Not really in the search PATH, 97433da084b3Smrg # but as the default location of the library. 9744d63fdb69Smrg hardcode_minus_L=yes 9745d63fdb69Smrg export_dynamic_flag_spec='${wl}-E' 97463da084b3Smrg ;; 97473da084b3Smrg 97483da084b3Smrg hpux10*) 974955acc8fcSmrg if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9750d63fdb69Smrg archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 97513da084b3Smrg else 9752d63fdb69Smrg archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 97533da084b3Smrg fi 97543da084b3Smrg if test "$with_gnu_ld" = no; then 9755d63fdb69Smrg hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9756d63fdb69Smrg hardcode_libdir_flag_spec_ld='+b $libdir' 9757d63fdb69Smrg hardcode_libdir_separator=: 9758d63fdb69Smrg hardcode_direct=yes 9759d63fdb69Smrg hardcode_direct_absolute=yes 9760d63fdb69Smrg export_dynamic_flag_spec='${wl}-E' 97613da084b3Smrg # hardcode_minus_L: Not really in the search PATH, 97623da084b3Smrg # but as the default location of the library. 9763d63fdb69Smrg hardcode_minus_L=yes 97643da084b3Smrg fi 97653da084b3Smrg ;; 97663da084b3Smrg 97673da084b3Smrg hpux11*) 976855acc8fcSmrg if test "$GCC" = yes && test "$with_gnu_ld" = no; then 97693da084b3Smrg case $host_cpu in 97703da084b3Smrg hppa*64*) 9771d63fdb69Smrg archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 97723da084b3Smrg ;; 97733da084b3Smrg ia64*) 9774d63fdb69Smrg archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 97753da084b3Smrg ;; 97763da084b3Smrg *) 9777d63fdb69Smrg archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 97783da084b3Smrg ;; 97793da084b3Smrg esac 97803da084b3Smrg else 97813da084b3Smrg case $host_cpu in 97823da084b3Smrg hppa*64*) 9783d63fdb69Smrg archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 97843da084b3Smrg ;; 97853da084b3Smrg ia64*) 9786d63fdb69Smrg archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 97873da084b3Smrg ;; 97883da084b3Smrg *) 978955acc8fcSmrg 979055acc8fcSmrg # Older versions of the 11.00 compiler do not understand -b yet 979155acc8fcSmrg # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 979255acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 979355acc8fcSmrg$as_echo_n "checking if $CC understands -b... " >&6; } 979455acc8fcSmrgif ${lt_cv_prog_compiler__b+:} false; then : 979555acc8fcSmrg $as_echo_n "(cached) " >&6 979655acc8fcSmrgelse 979755acc8fcSmrg lt_cv_prog_compiler__b=no 979855acc8fcSmrg save_LDFLAGS="$LDFLAGS" 979955acc8fcSmrg LDFLAGS="$LDFLAGS -b" 980055acc8fcSmrg echo "$lt_simple_link_test_code" > conftest.$ac_ext 980155acc8fcSmrg if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 980255acc8fcSmrg # The linker can only warn and ignore the option if not recognized 980355acc8fcSmrg # So say no if there are warnings 980455acc8fcSmrg if test -s conftest.err; then 980555acc8fcSmrg # Append any errors to the config.log. 980655acc8fcSmrg cat conftest.err 1>&5 980755acc8fcSmrg $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 980855acc8fcSmrg $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 980955acc8fcSmrg if diff conftest.exp conftest.er2 >/dev/null; then 981055acc8fcSmrg lt_cv_prog_compiler__b=yes 981155acc8fcSmrg fi 981255acc8fcSmrg else 981355acc8fcSmrg lt_cv_prog_compiler__b=yes 981455acc8fcSmrg fi 981555acc8fcSmrg fi 981655acc8fcSmrg $RM -r conftest* 981755acc8fcSmrg LDFLAGS="$save_LDFLAGS" 981855acc8fcSmrg 981955acc8fcSmrgfi 982055acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 982155acc8fcSmrg$as_echo "$lt_cv_prog_compiler__b" >&6; } 982255acc8fcSmrg 982355acc8fcSmrgif test x"$lt_cv_prog_compiler__b" = xyes; then 982455acc8fcSmrg archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 982555acc8fcSmrgelse 982655acc8fcSmrg archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 982755acc8fcSmrgfi 982855acc8fcSmrg 98293da084b3Smrg ;; 98303da084b3Smrg esac 98313da084b3Smrg fi 98323da084b3Smrg if test "$with_gnu_ld" = no; then 9833d63fdb69Smrg hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9834d63fdb69Smrg hardcode_libdir_separator=: 98353da084b3Smrg 98363da084b3Smrg case $host_cpu in 98373da084b3Smrg hppa*64*|ia64*) 9838d63fdb69Smrg hardcode_direct=no 9839d63fdb69Smrg hardcode_shlibpath_var=no 98403da084b3Smrg ;; 98413da084b3Smrg *) 9842d63fdb69Smrg hardcode_direct=yes 9843d63fdb69Smrg hardcode_direct_absolute=yes 9844d63fdb69Smrg export_dynamic_flag_spec='${wl}-E' 98453da084b3Smrg 98463da084b3Smrg # hardcode_minus_L: Not really in the search PATH, 98473da084b3Smrg # but as the default location of the library. 9848d63fdb69Smrg hardcode_minus_L=yes 98493da084b3Smrg ;; 98503da084b3Smrg esac 98513da084b3Smrg fi 98523da084b3Smrg ;; 98533da084b3Smrg 98543da084b3Smrg irix5* | irix6* | nonstopux*) 98553da084b3Smrg if test "$GCC" = yes; then 985655acc8fcSmrg archive_cmds='$CC -shared $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' 9857d63fdb69Smrg # Try to use the -exported_symbol ld option, if it does not 9858d63fdb69Smrg # work, assume that -exports_file does not work either and 9859d63fdb69Smrg # implicitly export all symbols. 9860d63fdb69Smrg save_LDFLAGS="$LDFLAGS" 9861d63fdb69Smrg LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 986255acc8fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 986355acc8fcSmrg/* end confdefs.h. */ 9864d63fdb69Smrgint foo(void) {} 9865d63fdb69Smrg_ACEOF 986655acc8fcSmrgif ac_fn_c_try_link "$LINENO"; then : 986755acc8fcSmrg archive_expsym_cmds='$CC -shared $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' 9868d63fdb69Smrg 9869d63fdb69Smrgfi 987055acc8fcSmrgrm -f core conftest.err conftest.$ac_objext \ 987155acc8fcSmrg conftest$ac_exeext conftest.$ac_ext 9872d63fdb69Smrg LDFLAGS="$save_LDFLAGS" 98733da084b3Smrg else 987455acc8fcSmrg 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' 987555acc8fcSmrg 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' 98763da084b3Smrg fi 9877d63fdb69Smrg archive_cmds_need_lc='no' 9878d63fdb69Smrg hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9879d63fdb69Smrg hardcode_libdir_separator=: 9880d63fdb69Smrg inherit_rpath=yes 9881d63fdb69Smrg link_all_deplibs=yes 98823da084b3Smrg ;; 98833da084b3Smrg 9884d63fdb69Smrg netbsd*) 9885d63fdb69Smrg if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9886d63fdb69Smrg archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 98873da084b3Smrg else 9888d63fdb69Smrg archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 98893da084b3Smrg fi 9890d63fdb69Smrg hardcode_libdir_flag_spec='-R$libdir' 9891d63fdb69Smrg hardcode_direct=yes 9892d63fdb69Smrg hardcode_shlibpath_var=no 98933da084b3Smrg ;; 98943da084b3Smrg 98953da084b3Smrg newsos6) 9896d63fdb69Smrg archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9897d63fdb69Smrg hardcode_direct=yes 9898d63fdb69Smrg hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9899d63fdb69Smrg hardcode_libdir_separator=: 9900d63fdb69Smrg hardcode_shlibpath_var=no 9901d63fdb69Smrg ;; 9902d63fdb69Smrg 9903d63fdb69Smrg *nto* | *qnx*) 99043da084b3Smrg ;; 99053da084b3Smrg 99063da084b3Smrg openbsd*) 9907d63fdb69Smrg if test -f /usr/libexec/ld.so; then 9908d63fdb69Smrg hardcode_direct=yes 9909d63fdb69Smrg hardcode_shlibpath_var=no 9910d63fdb69Smrg hardcode_direct_absolute=yes 9911d63fdb69Smrg if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9912d63fdb69Smrg archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9913d63fdb69Smrg archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9914d63fdb69Smrg hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9915d63fdb69Smrg export_dynamic_flag_spec='${wl}-E' 9916d63fdb69Smrg else 9917d63fdb69Smrg case $host_os in 9918d63fdb69Smrg openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9919d63fdb69Smrg archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9920d63fdb69Smrg hardcode_libdir_flag_spec='-R$libdir' 9921d63fdb69Smrg ;; 9922d63fdb69Smrg *) 9923d63fdb69Smrg archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9924d63fdb69Smrg hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9925d63fdb69Smrg ;; 9926d63fdb69Smrg esac 9927d63fdb69Smrg fi 99283da084b3Smrg else 9929d63fdb69Smrg ld_shlibs=no 99303da084b3Smrg fi 99313da084b3Smrg ;; 99323da084b3Smrg 99333da084b3Smrg os2*) 9934d63fdb69Smrg hardcode_libdir_flag_spec='-L$libdir' 9935d63fdb69Smrg hardcode_minus_L=yes 9936d63fdb69Smrg allow_undefined_flag=unsupported 993755acc8fcSmrg 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' 9938d63fdb69Smrg old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 99393da084b3Smrg ;; 99403da084b3Smrg 99413da084b3Smrg osf3*) 99423da084b3Smrg if test "$GCC" = yes; then 9943d63fdb69Smrg allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 994455acc8fcSmrg 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' 99453da084b3Smrg else 9946d63fdb69Smrg allow_undefined_flag=' -expect_unresolved \*' 994755acc8fcSmrg 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' 99483da084b3Smrg fi 9949d63fdb69Smrg archive_cmds_need_lc='no' 9950d63fdb69Smrg hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9951d63fdb69Smrg hardcode_libdir_separator=: 99523da084b3Smrg ;; 99533da084b3Smrg 99543da084b3Smrg osf4* | osf5*) # as osf3* with the addition of -msym flag 99553da084b3Smrg if test "$GCC" = yes; then 9956d63fdb69Smrg allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 995755acc8fcSmrg archive_cmds='$CC -shared${allow_undefined_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' 9958d63fdb69Smrg hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 99593da084b3Smrg else 9960d63fdb69Smrg allow_undefined_flag=' -expect_unresolved \*' 996155acc8fcSmrg 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' 9962d63fdb69Smrg 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~ 996355acc8fcSmrg $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' 99643da084b3Smrg 99653da084b3Smrg # Both c and cxx compiler support -rpath directly 9966d63fdb69Smrg hardcode_libdir_flag_spec='-rpath $libdir' 99673da084b3Smrg fi 9968d63fdb69Smrg archive_cmds_need_lc='no' 9969d63fdb69Smrg hardcode_libdir_separator=: 99703da084b3Smrg ;; 99713da084b3Smrg 99723da084b3Smrg solaris*) 9973d63fdb69Smrg no_undefined_flag=' -z defs' 99743da084b3Smrg if test "$GCC" = yes; then 99753da084b3Smrg wlarc='${wl}' 9976d63fdb69Smrg archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9977d63fdb69Smrg archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9978d63fdb69Smrg $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 99793da084b3Smrg else 9980d63fdb69Smrg case `$CC -V 2>&1` in 9981d63fdb69Smrg *"Compilers 5.0"*) 9982d63fdb69Smrg wlarc='' 9983d63fdb69Smrg archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9984d63fdb69Smrg archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9985d63fdb69Smrg $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9986d63fdb69Smrg ;; 9987d63fdb69Smrg *) 9988d63fdb69Smrg wlarc='${wl}' 9989d63fdb69Smrg archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9990d63fdb69Smrg archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9991d63fdb69Smrg $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9992d63fdb69Smrg ;; 9993d63fdb69Smrg esac 99943da084b3Smrg fi 9995d63fdb69Smrg hardcode_libdir_flag_spec='-R$libdir' 9996d63fdb69Smrg hardcode_shlibpath_var=no 99973da084b3Smrg case $host_os in 99983da084b3Smrg solaris2.[0-5] | solaris2.[0-5].*) ;; 99993da084b3Smrg *) 10000d63fdb69Smrg # The compiler driver will combine and reorder linker options, 10001d63fdb69Smrg # but understands `-z linker_flag'. GCC discards it without `$wl', 10002d63fdb69Smrg # but is careful enough not to reorder. 10003d63fdb69Smrg # Supported since Solaris 2.6 (maybe 2.5.1?) 10004d63fdb69Smrg if test "$GCC" = yes; then 10005d63fdb69Smrg whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10006d63fdb69Smrg else 10007d63fdb69Smrg whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10008d63fdb69Smrg fi 10009d63fdb69Smrg ;; 100103da084b3Smrg esac 10011d63fdb69Smrg link_all_deplibs=yes 100123da084b3Smrg ;; 100133da084b3Smrg 100143da084b3Smrg sunos4*) 100153da084b3Smrg if test "x$host_vendor" = xsequent; then 100163da084b3Smrg # Use $CC to link under sequent, because it throws in some extra .o 100173da084b3Smrg # files that make .init and .fini sections work. 10018d63fdb69Smrg archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 100193da084b3Smrg else 10020d63fdb69Smrg archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 100213da084b3Smrg fi 10022d63fdb69Smrg hardcode_libdir_flag_spec='-L$libdir' 10023d63fdb69Smrg hardcode_direct=yes 10024d63fdb69Smrg hardcode_minus_L=yes 10025d63fdb69Smrg hardcode_shlibpath_var=no 100263da084b3Smrg ;; 100273da084b3Smrg 100283da084b3Smrg sysv4) 100293da084b3Smrg case $host_vendor in 100303da084b3Smrg sni) 10031d63fdb69Smrg archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10032d63fdb69Smrg hardcode_direct=yes # is this really true??? 100333da084b3Smrg ;; 100343da084b3Smrg siemens) 100353da084b3Smrg ## LD is ld it makes a PLAMLIB 100363da084b3Smrg ## CC just makes a GrossModule. 10037d63fdb69Smrg archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10038d63fdb69Smrg reload_cmds='$CC -r -o $output$reload_objs' 10039d63fdb69Smrg hardcode_direct=no 100403da084b3Smrg ;; 100413da084b3Smrg motorola) 10042d63fdb69Smrg archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10043d63fdb69Smrg hardcode_direct=no #Motorola manual says yes, but my tests say they lie 100443da084b3Smrg ;; 100453da084b3Smrg esac 100463da084b3Smrg runpath_var='LD_RUN_PATH' 10047d63fdb69Smrg hardcode_shlibpath_var=no 100483da084b3Smrg ;; 100493da084b3Smrg 100503da084b3Smrg sysv4.3*) 10051d63fdb69Smrg archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10052d63fdb69Smrg hardcode_shlibpath_var=no 10053d63fdb69Smrg export_dynamic_flag_spec='-Bexport' 100543da084b3Smrg ;; 100553da084b3Smrg 100563da084b3Smrg sysv4*MP*) 100573da084b3Smrg if test -d /usr/nec; then 10058d63fdb69Smrg archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10059d63fdb69Smrg hardcode_shlibpath_var=no 100603da084b3Smrg runpath_var=LD_RUN_PATH 100613da084b3Smrg hardcode_runpath_var=yes 10062d63fdb69Smrg ld_shlibs=yes 100633da084b3Smrg fi 100643da084b3Smrg ;; 100653da084b3Smrg 10066d63fdb69Smrg sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10067d63fdb69Smrg no_undefined_flag='${wl}-z,text' 10068d63fdb69Smrg archive_cmds_need_lc=no 10069d63fdb69Smrg hardcode_shlibpath_var=no 100703da084b3Smrg runpath_var='LD_RUN_PATH' 100713da084b3Smrg 100723da084b3Smrg if test "$GCC" = yes; then 10073d63fdb69Smrg archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10074d63fdb69Smrg archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 100753da084b3Smrg else 10076d63fdb69Smrg archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10077d63fdb69Smrg archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 100783da084b3Smrg fi 100793da084b3Smrg ;; 100803da084b3Smrg 100813da084b3Smrg sysv5* | sco3.2v5* | sco5v6*) 100823da084b3Smrg # Note: We can NOT use -z defs as we might desire, because we do not 100833da084b3Smrg # link with -lc, and that would cause any symbols used from libc to 100843da084b3Smrg # always be unresolved, which means just about no library would 100853da084b3Smrg # ever link correctly. If we're not using GNU ld we use -z text 100863da084b3Smrg # though, which does catch some bad symbols but isn't as heavy-handed 100873da084b3Smrg # as -z defs. 10088d63fdb69Smrg no_undefined_flag='${wl}-z,text' 10089d63fdb69Smrg allow_undefined_flag='${wl}-z,nodefs' 10090d63fdb69Smrg archive_cmds_need_lc=no 10091d63fdb69Smrg hardcode_shlibpath_var=no 10092d63fdb69Smrg hardcode_libdir_flag_spec='${wl}-R,$libdir' 10093d63fdb69Smrg hardcode_libdir_separator=':' 10094d63fdb69Smrg link_all_deplibs=yes 10095d63fdb69Smrg export_dynamic_flag_spec='${wl}-Bexport' 100963da084b3Smrg runpath_var='LD_RUN_PATH' 100973da084b3Smrg 100983da084b3Smrg if test "$GCC" = yes; then 10099d63fdb69Smrg archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10100d63fdb69Smrg archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 101013da084b3Smrg else 10102d63fdb69Smrg archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10103d63fdb69Smrg archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 101043da084b3Smrg fi 101053da084b3Smrg ;; 101063da084b3Smrg 101073da084b3Smrg uts4*) 10108d63fdb69Smrg archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10109d63fdb69Smrg hardcode_libdir_flag_spec='-L$libdir' 10110d63fdb69Smrg hardcode_shlibpath_var=no 101113da084b3Smrg ;; 101123da084b3Smrg 101133da084b3Smrg *) 10114d63fdb69Smrg ld_shlibs=no 101153da084b3Smrg ;; 101163da084b3Smrg esac 10117d63fdb69Smrg 10118d63fdb69Smrg if test x$host_vendor = xsni; then 10119d63fdb69Smrg case $host in 10120d63fdb69Smrg sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10121d63fdb69Smrg export_dynamic_flag_spec='${wl}-Blargedynsym' 10122d63fdb69Smrg ;; 10123d63fdb69Smrg esac 10124d63fdb69Smrg fi 101253da084b3Smrg fi 101263da084b3Smrg 1012755acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10128d63fdb69Smrg$as_echo "$ld_shlibs" >&6; } 10129d63fdb69Smrgtest "$ld_shlibs" = no && can_build_shared=no 10130d63fdb69Smrg 10131d63fdb69Smrgwith_gnu_ld=$with_gnu_ld 10132d63fdb69Smrg 10133d63fdb69Smrg 10134d63fdb69Smrg 10135d63fdb69Smrg 10136d63fdb69Smrg 10137d63fdb69Smrg 10138d63fdb69Smrg 10139d63fdb69Smrg 10140d63fdb69Smrg 10141d63fdb69Smrg 10142d63fdb69Smrg 10143d63fdb69Smrg 10144d63fdb69Smrg 10145d63fdb69Smrg 101463da084b3Smrg 101473da084b3Smrg# 101483da084b3Smrg# Do we need to explicitly link libc? 101493da084b3Smrg# 10150d63fdb69Smrgcase "x$archive_cmds_need_lc" in 101513da084b3Smrgx|xyes) 101523da084b3Smrg # Assume -lc should be added 10153d63fdb69Smrg archive_cmds_need_lc=yes 101543da084b3Smrg 101553da084b3Smrg if test "$enable_shared" = yes && test "$GCC" = yes; then 10156d63fdb69Smrg case $archive_cmds in 101573da084b3Smrg *'~'*) 101583da084b3Smrg # FIXME: we may have to deal with multi-command sequences. 101593da084b3Smrg ;; 101603da084b3Smrg '$CC '*) 101613da084b3Smrg # Test whether the compiler implicitly links with -lc since on some 101623da084b3Smrg # systems, -lgcc has to come before -lc. If gcc already passes -lc 101633da084b3Smrg # to ld, don't add -lc before -lgcc. 1016455acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10165d63fdb69Smrg$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 1016655acc8fcSmrgif ${lt_cv_archive_cmds_need_lc+:} false; then : 1016755acc8fcSmrg $as_echo_n "(cached) " >&6 1016855acc8fcSmrgelse 1016955acc8fcSmrg $RM conftest* 1017055acc8fcSmrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 101713da084b3Smrg 1017255acc8fcSmrg if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 101733da084b3Smrg (eval $ac_compile) 2>&5 101743da084b3Smrg ac_status=$? 1017555acc8fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1017655acc8fcSmrg test $ac_status = 0; } 2>conftest.err; then 1017755acc8fcSmrg soname=conftest 1017855acc8fcSmrg lib=conftest 1017955acc8fcSmrg libobjs=conftest.$ac_objext 1018055acc8fcSmrg deplibs= 1018155acc8fcSmrg wl=$lt_prog_compiler_wl 1018255acc8fcSmrg pic_flag=$lt_prog_compiler_pic 1018355acc8fcSmrg compiler_flags=-v 1018455acc8fcSmrg linker_flags=-v 1018555acc8fcSmrg verstring= 1018655acc8fcSmrg output_objdir=. 1018755acc8fcSmrg libname=conftest 1018855acc8fcSmrg lt_save_allow_undefined_flag=$allow_undefined_flag 1018955acc8fcSmrg allow_undefined_flag= 1019055acc8fcSmrg if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10191d63fdb69Smrg (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 101923da084b3Smrg ac_status=$? 1019355acc8fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1019455acc8fcSmrg test $ac_status = 0; } 1019555acc8fcSmrg then 1019655acc8fcSmrg lt_cv_archive_cmds_need_lc=no 1019755acc8fcSmrg else 1019855acc8fcSmrg lt_cv_archive_cmds_need_lc=yes 1019955acc8fcSmrg fi 1020055acc8fcSmrg allow_undefined_flag=$lt_save_allow_undefined_flag 1020155acc8fcSmrg else 1020255acc8fcSmrg cat conftest.err 1>&5 1020355acc8fcSmrg fi 1020455acc8fcSmrg $RM conftest* 1020555acc8fcSmrg 1020655acc8fcSmrgfi 1020755acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 1020855acc8fcSmrg$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 1020955acc8fcSmrg archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 102103da084b3Smrg ;; 102113da084b3Smrg esac 102123da084b3Smrg fi 102133da084b3Smrg ;; 102143da084b3Smrgesac 102153da084b3Smrg 10216d63fdb69Smrg 10217d63fdb69Smrg 10218d63fdb69Smrg 10219d63fdb69Smrg 10220d63fdb69Smrg 10221d63fdb69Smrg 10222d63fdb69Smrg 10223d63fdb69Smrg 10224d63fdb69Smrg 10225d63fdb69Smrg 10226d63fdb69Smrg 10227d63fdb69Smrg 10228d63fdb69Smrg 10229d63fdb69Smrg 10230d63fdb69Smrg 10231d63fdb69Smrg 10232d63fdb69Smrg 10233d63fdb69Smrg 10234d63fdb69Smrg 10235d63fdb69Smrg 10236d63fdb69Smrg 10237d63fdb69Smrg 10238d63fdb69Smrg 10239d63fdb69Smrg 10240d63fdb69Smrg 10241d63fdb69Smrg 10242d63fdb69Smrg 10243d63fdb69Smrg 10244d63fdb69Smrg 10245d63fdb69Smrg 10246d63fdb69Smrg 10247d63fdb69Smrg 10248d63fdb69Smrg 10249d63fdb69Smrg 10250d63fdb69Smrg 10251d63fdb69Smrg 10252d63fdb69Smrg 10253d63fdb69Smrg 10254d63fdb69Smrg 10255d63fdb69Smrg 10256d63fdb69Smrg 10257d63fdb69Smrg 10258d63fdb69Smrg 10259d63fdb69Smrg 10260d63fdb69Smrg 10261d63fdb69Smrg 10262d63fdb69Smrg 10263d63fdb69Smrg 10264d63fdb69Smrg 10265d63fdb69Smrg 10266d63fdb69Smrg 10267d63fdb69Smrg 10268d63fdb69Smrg 10269d63fdb69Smrg 10270d63fdb69Smrg 10271d63fdb69Smrg 10272d63fdb69Smrg 10273d63fdb69Smrg 10274d63fdb69Smrg 10275d63fdb69Smrg 10276d63fdb69Smrg 10277d63fdb69Smrg 10278d63fdb69Smrg 10279d63fdb69Smrg 10280d63fdb69Smrg 10281d63fdb69Smrg 10282d63fdb69Smrg 10283d63fdb69Smrg 10284d63fdb69Smrg 10285d63fdb69Smrg 10286d63fdb69Smrg 10287d63fdb69Smrg 10288d63fdb69Smrg 10289d63fdb69Smrg 10290d63fdb69Smrg 10291d63fdb69Smrg 10292d63fdb69Smrg 10293d63fdb69Smrg 10294d63fdb69Smrg 10295d63fdb69Smrg 10296d63fdb69Smrg 10297d63fdb69Smrg 10298d63fdb69Smrg 10299d63fdb69Smrg 10300d63fdb69Smrg 10301d63fdb69Smrg 10302d63fdb69Smrg 10303d63fdb69Smrg 10304d63fdb69Smrg 10305d63fdb69Smrg 10306d63fdb69Smrg 10307d63fdb69Smrg 10308d63fdb69Smrg 10309d63fdb69Smrg 10310d63fdb69Smrg 10311d63fdb69Smrg 10312d63fdb69Smrg 10313d63fdb69Smrg 10314d63fdb69Smrg 10315d63fdb69Smrg 10316d63fdb69Smrg 10317d63fdb69Smrg 10318d63fdb69Smrg 10319d63fdb69Smrg 10320d63fdb69Smrg 10321d63fdb69Smrg 10322d63fdb69Smrg 10323d63fdb69Smrg 10324d63fdb69Smrg 10325d63fdb69Smrg 10326d63fdb69Smrg 10327d63fdb69Smrg 10328d63fdb69Smrg 10329d63fdb69Smrg 10330d63fdb69Smrg 10331d63fdb69Smrg 10332d63fdb69Smrg 10333d63fdb69Smrg 10334d63fdb69Smrg 10335d63fdb69Smrg 10336d63fdb69Smrg 10337d63fdb69Smrg 10338d63fdb69Smrg 10339d63fdb69Smrg 10340d63fdb69Smrg 10341d63fdb69Smrg 10342d63fdb69Smrg 10343d63fdb69Smrg 10344d63fdb69Smrg 10345d63fdb69Smrg 10346d63fdb69Smrg 10347d63fdb69Smrg 10348d63fdb69Smrg 10349d63fdb69Smrg 10350d63fdb69Smrg 10351d63fdb69Smrg 10352d63fdb69Smrg 10353d63fdb69Smrg 10354d63fdb69Smrg 10355d63fdb69Smrg 10356d63fdb69Smrg 10357d63fdb69Smrg 10358d63fdb69Smrg 10359d63fdb69Smrg 10360d63fdb69Smrg 10361d63fdb69Smrg 10362d63fdb69Smrg 10363d63fdb69Smrg 10364d63fdb69Smrg 10365d63fdb69Smrg 10366d63fdb69Smrg 10367d63fdb69Smrg 10368d63fdb69Smrg 10369d63fdb69Smrg 10370d63fdb69Smrg 10371d63fdb69Smrg 1037255acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10373d63fdb69Smrg$as_echo_n "checking dynamic linker characteristics... " >&6; } 10374d63fdb69Smrg 10375d63fdb69Smrgif test "$GCC" = yes; then 10376d63fdb69Smrg case $host_os in 10377d63fdb69Smrg darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10378d63fdb69Smrg *) lt_awk_arg="/^libraries:/" ;; 10379d63fdb69Smrg esac 1038055acc8fcSmrg case $host_os in 1038155acc8fcSmrg mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 1038255acc8fcSmrg *) lt_sed_strip_eq="s,=/,/,g" ;; 1038355acc8fcSmrg esac 1038455acc8fcSmrg lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 1038555acc8fcSmrg case $lt_search_path_spec in 1038655acc8fcSmrg *\;*) 10387d63fdb69Smrg # if the path contains ";" then we assume it to be the separator 10388d63fdb69Smrg # otherwise default to the standard path separator (i.e. ":") - it is 10389d63fdb69Smrg # assumed that no part of a normal pathname contains ";" but that should 10390d63fdb69Smrg # okay in the real world where ";" in dirpaths is itself problematic. 1039155acc8fcSmrg lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 1039255acc8fcSmrg ;; 1039355acc8fcSmrg *) 1039455acc8fcSmrg lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 1039555acc8fcSmrg ;; 1039655acc8fcSmrg esac 10397d63fdb69Smrg # Ok, now we have the path, separated by spaces, we can step through it 10398d63fdb69Smrg # and add multilib dir if necessary. 10399d63fdb69Smrg lt_tmp_lt_search_path_spec= 10400d63fdb69Smrg lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10401d63fdb69Smrg for lt_sys_path in $lt_search_path_spec; do 10402d63fdb69Smrg if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10403d63fdb69Smrg lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10404d63fdb69Smrg else 10405d63fdb69Smrg test -d "$lt_sys_path" && \ 10406d63fdb69Smrg lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10407d63fdb69Smrg fi 10408d63fdb69Smrg done 1040955acc8fcSmrg lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10410d63fdb69SmrgBEGIN {RS=" "; FS="/|\n";} { 10411d63fdb69Smrg lt_foo=""; 10412d63fdb69Smrg lt_count=0; 10413d63fdb69Smrg for (lt_i = NF; lt_i > 0; lt_i--) { 10414d63fdb69Smrg if ($lt_i != "" && $lt_i != ".") { 10415d63fdb69Smrg if ($lt_i == "..") { 10416d63fdb69Smrg lt_count++; 10417d63fdb69Smrg } else { 10418d63fdb69Smrg if (lt_count == 0) { 10419d63fdb69Smrg lt_foo="/" $lt_i lt_foo; 10420d63fdb69Smrg } else { 10421d63fdb69Smrg lt_count--; 10422d63fdb69Smrg } 10423d63fdb69Smrg } 10424d63fdb69Smrg } 10425d63fdb69Smrg } 10426d63fdb69Smrg if (lt_foo != "") { lt_freq[lt_foo]++; } 10427d63fdb69Smrg if (lt_freq[lt_foo] == 1) { print lt_foo; } 10428d63fdb69Smrg}'` 1042955acc8fcSmrg # AWK program above erroneously prepends '/' to C:/dos/paths 1043055acc8fcSmrg # for these hosts. 1043155acc8fcSmrg case $host_os in 1043255acc8fcSmrg mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 1043355acc8fcSmrg $SED 's,/\([A-Za-z]:\),\1,g'` ;; 1043455acc8fcSmrg esac 1043555acc8fcSmrg sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10436d63fdb69Smrgelse 10437d63fdb69Smrg sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10438d63fdb69Smrgfi 104393da084b3Smrglibrary_names_spec= 104403da084b3Smrglibname_spec='lib$name' 104413da084b3Smrgsoname_spec= 104423da084b3Smrgshrext_cmds=".so" 104433da084b3Smrgpostinstall_cmds= 104443da084b3Smrgpostuninstall_cmds= 104453da084b3Smrgfinish_cmds= 104463da084b3Smrgfinish_eval= 104473da084b3Smrgshlibpath_var= 104483da084b3Smrgshlibpath_overrides_runpath=unknown 104493da084b3Smrgversion_type=none 104503da084b3Smrgdynamic_linker="$host_os ld.so" 104513da084b3Smrgsys_lib_dlsearch_path_spec="/lib /usr/lib" 104523da084b3Smrgneed_lib_prefix=unknown 104533da084b3Smrghardcode_into_libs=no 104543da084b3Smrg 104553da084b3Smrg# when you set need_version to no, make sure it does not cause -set_version 104563da084b3Smrg# flags to be left without arguments 104573da084b3Smrgneed_version=unknown 104583da084b3Smrg 104593da084b3Smrgcase $host_os in 104603da084b3Smrgaix3*) 104613da084b3Smrg version_type=linux 104623da084b3Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 104633da084b3Smrg shlibpath_var=LIBPATH 104643da084b3Smrg 104653da084b3Smrg # AIX 3 has no versioning support, so we append a major version to the name. 104663da084b3Smrg soname_spec='${libname}${release}${shared_ext}$major' 104673da084b3Smrg ;; 104683da084b3Smrg 10469d63fdb69Smrgaix[4-9]*) 104703da084b3Smrg version_type=linux 104713da084b3Smrg need_lib_prefix=no 104723da084b3Smrg need_version=no 104733da084b3Smrg hardcode_into_libs=yes 104743da084b3Smrg if test "$host_cpu" = ia64; then 104753da084b3Smrg # AIX 5 supports IA64 104763da084b3Smrg library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 104773da084b3Smrg shlibpath_var=LD_LIBRARY_PATH 104783da084b3Smrg else 104793da084b3Smrg # With GCC up to 2.95.x, collect2 would create an import file 104803da084b3Smrg # for dependence libraries. The import file would start with 104813da084b3Smrg # the line `#! .'. This would cause the generated library to 104823da084b3Smrg # depend on `.', always an invalid library. This was fixed in 104833da084b3Smrg # development snapshots of GCC prior to 3.0. 104843da084b3Smrg case $host_os in 104853da084b3Smrg aix4 | aix4.[01] | aix4.[01].*) 104863da084b3Smrg if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 104873da084b3Smrg echo ' yes ' 10488d63fdb69Smrg echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 104893da084b3Smrg : 104903da084b3Smrg else 104913da084b3Smrg can_build_shared=no 104923da084b3Smrg fi 104933da084b3Smrg ;; 104943da084b3Smrg esac 104953da084b3Smrg # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 104963da084b3Smrg # soname into executable. Probably we can add versioning support to 104973da084b3Smrg # collect2, so additional links can be useful in future. 104983da084b3Smrg if test "$aix_use_runtimelinking" = yes; then 104993da084b3Smrg # If using run time linking (on AIX 4.2 or later) use lib<name>.so 105003da084b3Smrg # instead of lib<name>.a to let people know that these are not 105013da084b3Smrg # typical AIX shared libraries. 105023da084b3Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 105033da084b3Smrg else 105043da084b3Smrg # We preserve .a as extension for shared libraries through AIX4.2 105053da084b3Smrg # and later when we are not doing run time linking. 105063da084b3Smrg library_names_spec='${libname}${release}.a $libname.a' 105073da084b3Smrg soname_spec='${libname}${release}${shared_ext}$major' 105083da084b3Smrg fi 105093da084b3Smrg shlibpath_var=LIBPATH 105103da084b3Smrg fi 105113da084b3Smrg ;; 105123da084b3Smrg 105133da084b3Smrgamigaos*) 10514d63fdb69Smrg case $host_cpu in 10515d63fdb69Smrg powerpc) 10516d63fdb69Smrg # Since July 2007 AmigaOS4 officially supports .so libraries. 10517d63fdb69Smrg # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10518d63fdb69Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10519d63fdb69Smrg ;; 10520d63fdb69Smrg m68k) 10521d63fdb69Smrg library_names_spec='$libname.ixlibrary $libname.a' 10522d63fdb69Smrg # Create ${libname}_ixlibrary.a entries in /sys/libs. 1052355acc8fcSmrg 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' 10524d63fdb69Smrg ;; 10525d63fdb69Smrg esac 105263da084b3Smrg ;; 105273da084b3Smrg 105283da084b3Smrgbeos*) 105293da084b3Smrg library_names_spec='${libname}${shared_ext}' 105303da084b3Smrg dynamic_linker="$host_os ld.so" 105313da084b3Smrg shlibpath_var=LIBRARY_PATH 105323da084b3Smrg ;; 105333da084b3Smrg 105343da084b3Smrgbsdi[45]*) 105353da084b3Smrg version_type=linux 105363da084b3Smrg need_version=no 105373da084b3Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 105383da084b3Smrg soname_spec='${libname}${release}${shared_ext}$major' 105393da084b3Smrg finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 105403da084b3Smrg shlibpath_var=LD_LIBRARY_PATH 105413da084b3Smrg sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 105423da084b3Smrg sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 105433da084b3Smrg # the default ld.so.conf also contains /usr/contrib/lib and 105443da084b3Smrg # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 105453da084b3Smrg # libtool to hard-code these into programs 105463da084b3Smrg ;; 105473da084b3Smrg 10548d63fdb69Smrgcygwin* | mingw* | pw32* | cegcc*) 105493da084b3Smrg version_type=windows 105503da084b3Smrg shrext_cmds=".dll" 105513da084b3Smrg need_version=no 105523da084b3Smrg need_lib_prefix=no 105533da084b3Smrg 105543da084b3Smrg case $GCC,$host_os in 10555d63fdb69Smrg yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 105563da084b3Smrg library_names_spec='$libname.dll.a' 105573da084b3Smrg # DLL is installed to $(libdir)/../bin by postinstall_cmds 105583da084b3Smrg postinstall_cmds='base_file=`basename \${file}`~ 10559d63fdb69Smrg dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 105603da084b3Smrg dldir=$destdir/`dirname \$dlpath`~ 105613da084b3Smrg test -d \$dldir || mkdir -p \$dldir~ 105623da084b3Smrg $install_prog $dir/$dlname \$dldir/$dlname~ 10563d63fdb69Smrg chmod a+x \$dldir/$dlname~ 10564d63fdb69Smrg if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10565d63fdb69Smrg eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10566d63fdb69Smrg fi' 105673da084b3Smrg postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 105683da084b3Smrg dlpath=$dir/\$dldll~ 10569d63fdb69Smrg $RM \$dlpath' 105703da084b3Smrg shlibpath_overrides_runpath=yes 105713da084b3Smrg 105723da084b3Smrg case $host_os in 105733da084b3Smrg cygwin*) 105743da084b3Smrg # Cygwin DLLs use 'cyg' prefix rather than 'lib' 105753da084b3Smrg soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 1057655acc8fcSmrg 1057755acc8fcSmrg sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 105783da084b3Smrg ;; 10579d63fdb69Smrg mingw* | cegcc*) 105803da084b3Smrg # MinGW DLLs use traditional 'lib' prefix 105813da084b3Smrg soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 105823da084b3Smrg ;; 105833da084b3Smrg pw32*) 105843da084b3Smrg # pw32 DLLs use 'pw' prefix rather than 'lib' 105853da084b3Smrg library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 105863da084b3Smrg ;; 105873da084b3Smrg esac 105883da084b3Smrg ;; 105893da084b3Smrg 105903da084b3Smrg *) 105913da084b3Smrg library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 105923da084b3Smrg ;; 105933da084b3Smrg esac 105943da084b3Smrg dynamic_linker='Win32 ld.exe' 105953da084b3Smrg # FIXME: first we should search . and the directory the executable is in 105963da084b3Smrg shlibpath_var=PATH 105973da084b3Smrg ;; 105983da084b3Smrg 105993da084b3Smrgdarwin* | rhapsody*) 106003da084b3Smrg dynamic_linker="$host_os dyld" 106013da084b3Smrg version_type=darwin 106023da084b3Smrg need_lib_prefix=no 106033da084b3Smrg need_version=no 10604d63fdb69Smrg library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 106053da084b3Smrg soname_spec='${libname}${release}${major}$shared_ext' 106063da084b3Smrg shlibpath_overrides_runpath=yes 106073da084b3Smrg shlibpath_var=DYLD_LIBRARY_PATH 10608d63fdb69Smrg shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10609d63fdb69Smrg 10610d63fdb69Smrg sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 106113da084b3Smrg sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 106123da084b3Smrg ;; 106133da084b3Smrg 106143da084b3Smrgdgux*) 106153da084b3Smrg version_type=linux 106163da084b3Smrg need_lib_prefix=no 106173da084b3Smrg need_version=no 106183da084b3Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 106193da084b3Smrg soname_spec='${libname}${release}${shared_ext}$major' 106203da084b3Smrg shlibpath_var=LD_LIBRARY_PATH 106213da084b3Smrg ;; 106223da084b3Smrg 106233da084b3Smrgfreebsd1*) 106243da084b3Smrg dynamic_linker=no 106253da084b3Smrg ;; 106263da084b3Smrg 106273da084b3Smrgfreebsd* | dragonfly*) 106283da084b3Smrg # DragonFly does not have aout. When/if they implement a new 106293da084b3Smrg # versioning mechanism, adjust this. 106303da084b3Smrg if test -x /usr/bin/objformat; then 106313da084b3Smrg objformat=`/usr/bin/objformat` 106323da084b3Smrg else 106333da084b3Smrg case $host_os in 106343da084b3Smrg freebsd[123]*) objformat=aout ;; 106353da084b3Smrg *) objformat=elf ;; 106363da084b3Smrg esac 106373da084b3Smrg fi 106383da084b3Smrg version_type=freebsd-$objformat 106393da084b3Smrg case $version_type in 106403da084b3Smrg freebsd-elf*) 106413da084b3Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 106423da084b3Smrg need_version=no 106433da084b3Smrg need_lib_prefix=no 106443da084b3Smrg ;; 106453da084b3Smrg freebsd-*) 106463da084b3Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 106473da084b3Smrg need_version=yes 106483da084b3Smrg ;; 106493da084b3Smrg esac 106503da084b3Smrg shlibpath_var=LD_LIBRARY_PATH 106513da084b3Smrg case $host_os in 106523da084b3Smrg freebsd2*) 106533da084b3Smrg shlibpath_overrides_runpath=yes 106543da084b3Smrg ;; 106553da084b3Smrg freebsd3.[01]* | freebsdelf3.[01]*) 106563da084b3Smrg shlibpath_overrides_runpath=yes 106573da084b3Smrg hardcode_into_libs=yes 106583da084b3Smrg ;; 106593da084b3Smrg freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 106603da084b3Smrg freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 106613da084b3Smrg shlibpath_overrides_runpath=no 106623da084b3Smrg hardcode_into_libs=yes 106633da084b3Smrg ;; 10664d63fdb69Smrg *) # from 4.6 on, and DragonFly 106653da084b3Smrg shlibpath_overrides_runpath=yes 106663da084b3Smrg hardcode_into_libs=yes 106673da084b3Smrg ;; 106683da084b3Smrg esac 106693da084b3Smrg ;; 106703da084b3Smrg 1067155acc8fcSmrggnu*) 1067255acc8fcSmrg version_type=linux 1067355acc8fcSmrg need_lib_prefix=no 1067455acc8fcSmrg need_version=no 1067555acc8fcSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 1067655acc8fcSmrg soname_spec='${libname}${release}${shared_ext}$major' 1067755acc8fcSmrg shlibpath_var=LD_LIBRARY_PATH 1067855acc8fcSmrg hardcode_into_libs=yes 1067955acc8fcSmrg ;; 1068055acc8fcSmrg 1068155acc8fcSmrghaiku*) 106823da084b3Smrg version_type=linux 106833da084b3Smrg need_lib_prefix=no 106843da084b3Smrg need_version=no 1068555acc8fcSmrg dynamic_linker="$host_os runtime_loader" 106863da084b3Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 106873da084b3Smrg soname_spec='${libname}${release}${shared_ext}$major' 1068855acc8fcSmrg shlibpath_var=LIBRARY_PATH 1068955acc8fcSmrg shlibpath_overrides_runpath=yes 1069055acc8fcSmrg sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 106913da084b3Smrg hardcode_into_libs=yes 106923da084b3Smrg ;; 106933da084b3Smrg 106943da084b3Smrghpux9* | hpux10* | hpux11*) 106953da084b3Smrg # Give a soname corresponding to the major version so that dld.sl refuses to 106963da084b3Smrg # link against other versions. 106973da084b3Smrg version_type=sunos 106983da084b3Smrg need_lib_prefix=no 106993da084b3Smrg need_version=no 107003da084b3Smrg case $host_cpu in 107013da084b3Smrg ia64*) 107023da084b3Smrg shrext_cmds='.so' 107033da084b3Smrg hardcode_into_libs=yes 107043da084b3Smrg dynamic_linker="$host_os dld.so" 107053da084b3Smrg shlibpath_var=LD_LIBRARY_PATH 107063da084b3Smrg shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 107073da084b3Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 107083da084b3Smrg soname_spec='${libname}${release}${shared_ext}$major' 107093da084b3Smrg if test "X$HPUX_IA64_MODE" = X32; then 107103da084b3Smrg sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 107113da084b3Smrg else 107123da084b3Smrg sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 107133da084b3Smrg fi 107143da084b3Smrg sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 107153da084b3Smrg ;; 10716d63fdb69Smrg hppa*64*) 10717d63fdb69Smrg shrext_cmds='.sl' 10718d63fdb69Smrg hardcode_into_libs=yes 10719d63fdb69Smrg dynamic_linker="$host_os dld.sl" 10720d63fdb69Smrg shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10721d63fdb69Smrg shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10722d63fdb69Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10723d63fdb69Smrg soname_spec='${libname}${release}${shared_ext}$major' 10724d63fdb69Smrg sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10725d63fdb69Smrg sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10726d63fdb69Smrg ;; 10727d63fdb69Smrg *) 107283da084b3Smrg shrext_cmds='.sl' 107293da084b3Smrg dynamic_linker="$host_os dld.sl" 107303da084b3Smrg shlibpath_var=SHLIB_PATH 107313da084b3Smrg shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 107323da084b3Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 107333da084b3Smrg soname_spec='${libname}${release}${shared_ext}$major' 107343da084b3Smrg ;; 107353da084b3Smrg esac 1073655acc8fcSmrg # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 107373da084b3Smrg postinstall_cmds='chmod 555 $lib' 1073855acc8fcSmrg # or fails outright, so override atomically: 1073955acc8fcSmrg install_override_mode=555 107403da084b3Smrg ;; 107413da084b3Smrg 10742d63fdb69Smrginterix[3-9]*) 107433da084b3Smrg version_type=linux 107443da084b3Smrg need_lib_prefix=no 107453da084b3Smrg need_version=no 107463da084b3Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 107473da084b3Smrg soname_spec='${libname}${release}${shared_ext}$major' 107483da084b3Smrg dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 107493da084b3Smrg shlibpath_var=LD_LIBRARY_PATH 107503da084b3Smrg shlibpath_overrides_runpath=no 107513da084b3Smrg hardcode_into_libs=yes 107523da084b3Smrg ;; 107533da084b3Smrg 107543da084b3Smrgirix5* | irix6* | nonstopux*) 107553da084b3Smrg case $host_os in 107563da084b3Smrg nonstopux*) version_type=nonstopux ;; 107573da084b3Smrg *) 107583da084b3Smrg if test "$lt_cv_prog_gnu_ld" = yes; then 107593da084b3Smrg version_type=linux 107603da084b3Smrg else 107613da084b3Smrg version_type=irix 107623da084b3Smrg fi ;; 107633da084b3Smrg esac 107643da084b3Smrg need_lib_prefix=no 107653da084b3Smrg need_version=no 107663da084b3Smrg soname_spec='${libname}${release}${shared_ext}$major' 107673da084b3Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 107683da084b3Smrg case $host_os in 107693da084b3Smrg irix5* | nonstopux*) 107703da084b3Smrg libsuff= shlibsuff= 107713da084b3Smrg ;; 107723da084b3Smrg *) 107733da084b3Smrg case $LD in # libtool.m4 will add one of these switches to LD 107743da084b3Smrg *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 107753da084b3Smrg libsuff= shlibsuff= libmagic=32-bit;; 107763da084b3Smrg *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 107773da084b3Smrg libsuff=32 shlibsuff=N32 libmagic=N32;; 107783da084b3Smrg *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 107793da084b3Smrg libsuff=64 shlibsuff=64 libmagic=64-bit;; 107803da084b3Smrg *) libsuff= shlibsuff= libmagic=never-match;; 107813da084b3Smrg esac 107823da084b3Smrg ;; 107833da084b3Smrg esac 107843da084b3Smrg shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 107853da084b3Smrg shlibpath_overrides_runpath=no 107863da084b3Smrg sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 107873da084b3Smrg sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 107883da084b3Smrg hardcode_into_libs=yes 107893da084b3Smrg ;; 107903da084b3Smrg 107913da084b3Smrg# No shared lib support for Linux oldld, aout, or coff. 107923da084b3Smrglinux*oldld* | linux*aout* | linux*coff*) 107933da084b3Smrg dynamic_linker=no 107943da084b3Smrg ;; 107953da084b3Smrg 107963da084b3Smrg# This must be Linux ELF. 1079755acc8fcSmrglinux* | k*bsd*-gnu | kopensolaris*-gnu) 107983da084b3Smrg version_type=linux 107993da084b3Smrg need_lib_prefix=no 108003da084b3Smrg need_version=no 108013da084b3Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 108023da084b3Smrg soname_spec='${libname}${release}${shared_ext}$major' 108033da084b3Smrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 108043da084b3Smrg shlibpath_var=LD_LIBRARY_PATH 108053da084b3Smrg shlibpath_overrides_runpath=no 1080655acc8fcSmrg 10807d63fdb69Smrg # Some binutils ld are patched to set DT_RUNPATH 1080855acc8fcSmrg if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 1080955acc8fcSmrg $as_echo_n "(cached) " >&6 1081055acc8fcSmrgelse 1081155acc8fcSmrg lt_cv_shlibpath_overrides_runpath=no 1081255acc8fcSmrg save_LDFLAGS=$LDFLAGS 1081355acc8fcSmrg save_libdir=$libdir 1081455acc8fcSmrg eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 1081555acc8fcSmrg LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 1081655acc8fcSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10817d63fdb69Smrg/* end confdefs.h. */ 10818d63fdb69Smrg 10819d63fdb69Smrgint 10820d63fdb69Smrgmain () 10821d63fdb69Smrg{ 10822d63fdb69Smrg 10823d63fdb69Smrg ; 10824d63fdb69Smrg return 0; 10825d63fdb69Smrg} 10826d63fdb69Smrg_ACEOF 1082755acc8fcSmrgif ac_fn_c_try_link "$LINENO"; then : 1082855acc8fcSmrg if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 1082955acc8fcSmrg lt_cv_shlibpath_overrides_runpath=yes 10830d63fdb69Smrgfi 1083155acc8fcSmrgfi 1083255acc8fcSmrgrm -f core conftest.err conftest.$ac_objext \ 1083355acc8fcSmrg conftest$ac_exeext conftest.$ac_ext 1083455acc8fcSmrg LDFLAGS=$save_LDFLAGS 1083555acc8fcSmrg libdir=$save_libdir 10836d63fdb69Smrg 10837d63fdb69Smrgfi 10838d63fdb69Smrg 1083955acc8fcSmrg shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10840d63fdb69Smrg 108413da084b3Smrg # This implies no fast_install, which is unacceptable. 108423da084b3Smrg # Some rework will be needed to allow for fast_install 108433da084b3Smrg # before this can be enabled. 108443da084b3Smrg hardcode_into_libs=yes 108453da084b3Smrg 108463da084b3Smrg # Append ld.so.conf contents to the search path 108473da084b3Smrg if test -f /etc/ld.so.conf; then 1084855acc8fcSmrg 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' ' '` 1084955acc8fcSmrg sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 108503da084b3Smrg fi 108513da084b3Smrg 108523da084b3Smrg # We used to test for /lib/ld.so.1 and disable shared libraries on 108533da084b3Smrg # powerpc, because MkLinux only supported shared libraries with the 108543da084b3Smrg # GNU dynamic linker. Since this was broken with cross compilers, 108553da084b3Smrg # most powerpc-linux boxes support dynamic linking these days and 108563da084b3Smrg # people can always --disable-shared, the test was removed, and we 108573da084b3Smrg # assume the GNU/Linux dynamic linker is in use. 108583da084b3Smrg dynamic_linker='GNU/Linux ld.so' 108593da084b3Smrg ;; 108603da084b3Smrg 108613da084b3Smrgnetbsd*) 108623da084b3Smrg version_type=sunos 108633da084b3Smrg need_lib_prefix=no 108643da084b3Smrg need_version=no 10865d63fdb69Smrg if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 108663da084b3Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 108673da084b3Smrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 108683da084b3Smrg dynamic_linker='NetBSD (a.out) ld.so' 108693da084b3Smrg else 108703da084b3Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 108713da084b3Smrg soname_spec='${libname}${release}${shared_ext}$major' 108723da084b3Smrg dynamic_linker='NetBSD ld.elf_so' 108733da084b3Smrg fi 108743da084b3Smrg shlibpath_var=LD_LIBRARY_PATH 108753da084b3Smrg shlibpath_overrides_runpath=yes 108763da084b3Smrg hardcode_into_libs=yes 108773da084b3Smrg ;; 108783da084b3Smrg 108793da084b3Smrgnewsos6) 108803da084b3Smrg version_type=linux 108813da084b3Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 108823da084b3Smrg shlibpath_var=LD_LIBRARY_PATH 108833da084b3Smrg shlibpath_overrides_runpath=yes 108843da084b3Smrg ;; 108853da084b3Smrg 10886d63fdb69Smrg*nto* | *qnx*) 10887d63fdb69Smrg version_type=qnx 108883da084b3Smrg need_lib_prefix=no 108893da084b3Smrg need_version=no 108903da084b3Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 108913da084b3Smrg soname_spec='${libname}${release}${shared_ext}$major' 108923da084b3Smrg shlibpath_var=LD_LIBRARY_PATH 10893d63fdb69Smrg shlibpath_overrides_runpath=no 10894d63fdb69Smrg hardcode_into_libs=yes 10895d63fdb69Smrg dynamic_linker='ldqnx.so' 108963da084b3Smrg ;; 108973da084b3Smrg 108983da084b3Smrgopenbsd*) 108993da084b3Smrg version_type=sunos 109003da084b3Smrg sys_lib_dlsearch_path_spec="/usr/lib" 109013da084b3Smrg need_lib_prefix=no 109023da084b3Smrg # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 109033da084b3Smrg case $host_os in 10904d63fdb69Smrg openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10905d63fdb69Smrg *) need_version=no ;; 109063da084b3Smrg esac 109073da084b3Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 109083da084b3Smrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 109093da084b3Smrg shlibpath_var=LD_LIBRARY_PATH 10910d63fdb69Smrg if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 109113da084b3Smrg case $host_os in 109123da084b3Smrg openbsd2.[89] | openbsd2.[89].*) 109133da084b3Smrg shlibpath_overrides_runpath=no 109143da084b3Smrg ;; 109153da084b3Smrg *) 109163da084b3Smrg shlibpath_overrides_runpath=yes 109173da084b3Smrg ;; 109183da084b3Smrg esac 109193da084b3Smrg else 109203da084b3Smrg shlibpath_overrides_runpath=yes 109213da084b3Smrg fi 109223da084b3Smrg ;; 109233da084b3Smrg 109243da084b3Smrgos2*) 109253da084b3Smrg libname_spec='$name' 109263da084b3Smrg shrext_cmds=".dll" 109273da084b3Smrg need_lib_prefix=no 109283da084b3Smrg library_names_spec='$libname${shared_ext} $libname.a' 109293da084b3Smrg dynamic_linker='OS/2 ld.exe' 109303da084b3Smrg shlibpath_var=LIBPATH 109313da084b3Smrg ;; 109323da084b3Smrg 109333da084b3Smrgosf3* | osf4* | osf5*) 109343da084b3Smrg version_type=osf 109353da084b3Smrg need_lib_prefix=no 109363da084b3Smrg need_version=no 109373da084b3Smrg soname_spec='${libname}${release}${shared_ext}$major' 109383da084b3Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 109393da084b3Smrg shlibpath_var=LD_LIBRARY_PATH 109403da084b3Smrg sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 109413da084b3Smrg sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 109423da084b3Smrg ;; 109433da084b3Smrg 10944d63fdb69Smrgrdos*) 10945d63fdb69Smrg dynamic_linker=no 10946d63fdb69Smrg ;; 10947d63fdb69Smrg 109483da084b3Smrgsolaris*) 109493da084b3Smrg version_type=linux 109503da084b3Smrg need_lib_prefix=no 109513da084b3Smrg need_version=no 109523da084b3Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 109533da084b3Smrg soname_spec='${libname}${release}${shared_ext}$major' 109543da084b3Smrg shlibpath_var=LD_LIBRARY_PATH 109553da084b3Smrg shlibpath_overrides_runpath=yes 109563da084b3Smrg hardcode_into_libs=yes 109573da084b3Smrg # ldd complains unless libraries are executable 109583da084b3Smrg postinstall_cmds='chmod +x $lib' 109593da084b3Smrg ;; 109603da084b3Smrg 109613da084b3Smrgsunos4*) 109623da084b3Smrg version_type=sunos 109633da084b3Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 109643da084b3Smrg finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 109653da084b3Smrg shlibpath_var=LD_LIBRARY_PATH 109663da084b3Smrg shlibpath_overrides_runpath=yes 109673da084b3Smrg if test "$with_gnu_ld" = yes; then 109683da084b3Smrg need_lib_prefix=no 109693da084b3Smrg fi 109703da084b3Smrg need_version=yes 109713da084b3Smrg ;; 109723da084b3Smrg 109733da084b3Smrgsysv4 | sysv4.3*) 109743da084b3Smrg version_type=linux 109753da084b3Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 109763da084b3Smrg soname_spec='${libname}${release}${shared_ext}$major' 109773da084b3Smrg shlibpath_var=LD_LIBRARY_PATH 109783da084b3Smrg case $host_vendor in 109793da084b3Smrg sni) 109803da084b3Smrg shlibpath_overrides_runpath=no 109813da084b3Smrg need_lib_prefix=no 109823da084b3Smrg runpath_var=LD_RUN_PATH 109833da084b3Smrg ;; 109843da084b3Smrg siemens) 109853da084b3Smrg need_lib_prefix=no 109863da084b3Smrg ;; 109873da084b3Smrg motorola) 109883da084b3Smrg need_lib_prefix=no 109893da084b3Smrg need_version=no 109903da084b3Smrg shlibpath_overrides_runpath=no 109913da084b3Smrg sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 109923da084b3Smrg ;; 109933da084b3Smrg esac 109943da084b3Smrg ;; 109953da084b3Smrg 109963da084b3Smrgsysv4*MP*) 109973da084b3Smrg if test -d /usr/nec ;then 109983da084b3Smrg version_type=linux 109993da084b3Smrg library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 110003da084b3Smrg soname_spec='$libname${shared_ext}.$major' 110013da084b3Smrg shlibpath_var=LD_LIBRARY_PATH 110023da084b3Smrg fi 110033da084b3Smrg ;; 110043da084b3Smrg 110053da084b3Smrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 110063da084b3Smrg version_type=freebsd-elf 110073da084b3Smrg need_lib_prefix=no 110083da084b3Smrg need_version=no 110093da084b3Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 110103da084b3Smrg soname_spec='${libname}${release}${shared_ext}$major' 110113da084b3Smrg shlibpath_var=LD_LIBRARY_PATH 11012d63fdb69Smrg shlibpath_overrides_runpath=yes 110133da084b3Smrg hardcode_into_libs=yes 110143da084b3Smrg if test "$with_gnu_ld" = yes; then 110153da084b3Smrg sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 110163da084b3Smrg else 110173da084b3Smrg sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 110183da084b3Smrg case $host_os in 110193da084b3Smrg sco3.2v5*) 110203da084b3Smrg sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 110213da084b3Smrg ;; 110223da084b3Smrg esac 110233da084b3Smrg fi 110243da084b3Smrg sys_lib_dlsearch_path_spec='/usr/lib' 110253da084b3Smrg ;; 110263da084b3Smrg 11027d63fdb69Smrgtpf*) 11028d63fdb69Smrg # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11029d63fdb69Smrg version_type=linux 11030d63fdb69Smrg need_lib_prefix=no 11031d63fdb69Smrg need_version=no 11032d63fdb69Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11033d63fdb69Smrg shlibpath_var=LD_LIBRARY_PATH 11034d63fdb69Smrg shlibpath_overrides_runpath=no 11035d63fdb69Smrg hardcode_into_libs=yes 11036d63fdb69Smrg ;; 11037d63fdb69Smrg 110383da084b3Smrguts4*) 110393da084b3Smrg version_type=linux 110403da084b3Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 110413da084b3Smrg soname_spec='${libname}${release}${shared_ext}$major' 110423da084b3Smrg shlibpath_var=LD_LIBRARY_PATH 110433da084b3Smrg ;; 110443da084b3Smrg 110453da084b3Smrg*) 110463da084b3Smrg dynamic_linker=no 110473da084b3Smrg ;; 110483da084b3Smrgesac 1104955acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11050d63fdb69Smrg$as_echo "$dynamic_linker" >&6; } 110513da084b3Smrgtest "$dynamic_linker" = no && can_build_shared=no 110523da084b3Smrg 110533da084b3Smrgvariables_saved_for_relink="PATH $shlibpath_var $runpath_var" 110543da084b3Smrgif test "$GCC" = yes; then 110553da084b3Smrg variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 110563da084b3Smrgfi 110573da084b3Smrg 11058d63fdb69Smrgif test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11059d63fdb69Smrg sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11060d63fdb69Smrgfi 11061d63fdb69Smrgif test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11062d63fdb69Smrg sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11063d63fdb69Smrgfi 11064d63fdb69Smrg 11065d63fdb69Smrg 11066d63fdb69Smrg 11067d63fdb69Smrg 11068d63fdb69Smrg 11069d63fdb69Smrg 11070d63fdb69Smrg 11071d63fdb69Smrg 11072d63fdb69Smrg 11073d63fdb69Smrg 11074d63fdb69Smrg 11075d63fdb69Smrg 11076d63fdb69Smrg 11077d63fdb69Smrg 11078d63fdb69Smrg 11079d63fdb69Smrg 11080d63fdb69Smrg 11081d63fdb69Smrg 11082d63fdb69Smrg 11083d63fdb69Smrg 11084d63fdb69Smrg 11085d63fdb69Smrg 11086d63fdb69Smrg 11087d63fdb69Smrg 11088d63fdb69Smrg 11089d63fdb69Smrg 11090d63fdb69Smrg 11091d63fdb69Smrg 11092d63fdb69Smrg 11093d63fdb69Smrg 11094d63fdb69Smrg 11095d63fdb69Smrg 11096d63fdb69Smrg 11097d63fdb69Smrg 11098d63fdb69Smrg 11099d63fdb69Smrg 11100d63fdb69Smrg 11101d63fdb69Smrg 11102d63fdb69Smrg 11103d63fdb69Smrg 11104d63fdb69Smrg 11105d63fdb69Smrg 11106d63fdb69Smrg 11107d63fdb69Smrg 11108d63fdb69Smrg 11109d63fdb69Smrg 111103da084b3Smrg 11111d63fdb69Smrg 11112d63fdb69Smrg 11113d63fdb69Smrg 11114d63fdb69Smrg 11115d63fdb69Smrg 11116d63fdb69Smrg 11117d63fdb69Smrg 11118d63fdb69Smrg 11119d63fdb69Smrg 11120d63fdb69Smrg 11121d63fdb69Smrg 11122d63fdb69Smrg 11123d63fdb69Smrg 11124d63fdb69Smrg 11125d63fdb69Smrg 11126d63fdb69Smrg 11127d63fdb69Smrg 11128d63fdb69Smrg 11129d63fdb69Smrg 11130d63fdb69Smrg 11131d63fdb69Smrg 11132d63fdb69Smrg 11133d63fdb69Smrg 11134d63fdb69Smrg 11135d63fdb69Smrg 11136d63fdb69Smrg 11137d63fdb69Smrg 11138d63fdb69Smrg 11139d63fdb69Smrg 11140d63fdb69Smrg 11141d63fdb69Smrg 11142d63fdb69Smrg 11143d63fdb69Smrg 11144d63fdb69Smrg 11145d63fdb69Smrg 11146d63fdb69Smrg 11147d63fdb69Smrg 11148d63fdb69Smrg 11149d63fdb69Smrg 11150d63fdb69Smrg 1115155acc8fcSmrg 1115255acc8fcSmrg 1115355acc8fcSmrg 1115455acc8fcSmrg 1115555acc8fcSmrg 1115655acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11157d63fdb69Smrg$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11158d63fdb69Smrghardcode_action= 11159d63fdb69Smrgif test -n "$hardcode_libdir_flag_spec" || 11160d63fdb69Smrg test -n "$runpath_var" || 11161d63fdb69Smrg test "X$hardcode_automatic" = "Xyes" ; then 11162d63fdb69Smrg 11163d63fdb69Smrg # We can hardcode non-existent directories. 11164d63fdb69Smrg if test "$hardcode_direct" != no && 111653da084b3Smrg # If the only mechanism to avoid hardcoding is shlibpath_var, we 111663da084b3Smrg # have to relink, otherwise we might link with an installed library 111673da084b3Smrg # when we should be linking with a yet-to-be-installed one 11168d63fdb69Smrg ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11169d63fdb69Smrg test "$hardcode_minus_L" != no; then 111703da084b3Smrg # Linking always hardcodes the temporary library directory. 11171d63fdb69Smrg hardcode_action=relink 111723da084b3Smrg else 111733da084b3Smrg # We can link without hardcoding, and we can hardcode nonexisting dirs. 11174d63fdb69Smrg hardcode_action=immediate 111753da084b3Smrg fi 111763da084b3Smrgelse 11177d63fdb69Smrg # We cannot hardcode anything, or else we can only hardcode existing 11178d63fdb69Smrg # directories. 11179d63fdb69Smrg hardcode_action=unsupported 11180d63fdb69Smrgfi 1118155acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11182d63fdb69Smrg$as_echo "$hardcode_action" >&6; } 11183d63fdb69Smrg 11184d63fdb69Smrgif test "$hardcode_action" = relink || 11185d63fdb69Smrg test "$inherit_rpath" = yes; then 11186d63fdb69Smrg # Fast installation is not supported 11187d63fdb69Smrg enable_fast_install=no 11188d63fdb69Smrgelif test "$shlibpath_overrides_runpath" = yes || 11189d63fdb69Smrg test "$enable_shared" = no; then 11190d63fdb69Smrg # Fast installation is not necessary 11191d63fdb69Smrg enable_fast_install=needless 11192d63fdb69Smrgfi 11193d63fdb69Smrg 11194d63fdb69Smrg 11195d63fdb69Smrg 11196d63fdb69Smrg 11197d63fdb69Smrg 11198d63fdb69Smrg 11199d63fdb69Smrg if test "x$enable_dlopen" != xyes; then 11200d63fdb69Smrg enable_dlopen=unknown 11201d63fdb69Smrg enable_dlopen_self=unknown 11202d63fdb69Smrg enable_dlopen_self_static=unknown 11203d63fdb69Smrgelse 11204d63fdb69Smrg lt_cv_dlopen=no 11205d63fdb69Smrg lt_cv_dlopen_libs= 11206d63fdb69Smrg 11207d63fdb69Smrg case $host_os in 11208d63fdb69Smrg beos*) 11209d63fdb69Smrg lt_cv_dlopen="load_add_on" 11210d63fdb69Smrg lt_cv_dlopen_libs= 11211d63fdb69Smrg lt_cv_dlopen_self=yes 11212d63fdb69Smrg ;; 11213d63fdb69Smrg 11214d63fdb69Smrg mingw* | pw32* | cegcc*) 11215d63fdb69Smrg lt_cv_dlopen="LoadLibrary" 11216d63fdb69Smrg lt_cv_dlopen_libs= 11217d63fdb69Smrg ;; 11218d63fdb69Smrg 11219d63fdb69Smrg cygwin*) 11220d63fdb69Smrg lt_cv_dlopen="dlopen" 11221d63fdb69Smrg lt_cv_dlopen_libs= 11222d63fdb69Smrg ;; 11223d63fdb69Smrg 11224d63fdb69Smrg darwin*) 11225d63fdb69Smrg # if libdl is installed we need to link against it 1122655acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11227d63fdb69Smrg$as_echo_n "checking for dlopen in -ldl... " >&6; } 1122855acc8fcSmrgif ${ac_cv_lib_dl_dlopen+:} false; then : 11229d63fdb69Smrg $as_echo_n "(cached) " >&6 11230d63fdb69Smrgelse 11231d63fdb69Smrg ac_check_lib_save_LIBS=$LIBS 11232d63fdb69SmrgLIBS="-ldl $LIBS" 1123355acc8fcSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 11234d63fdb69Smrg/* end confdefs.h. */ 11235d63fdb69Smrg 11236d63fdb69Smrg/* Override any GCC internal prototype to avoid an error. 11237d63fdb69Smrg Use char because int might match the return type of a GCC 11238d63fdb69Smrg builtin and then its argument prototype would still apply. */ 11239d63fdb69Smrg#ifdef __cplusplus 11240d63fdb69Smrgextern "C" 11241d63fdb69Smrg#endif 11242d63fdb69Smrgchar dlopen (); 11243d63fdb69Smrgint 11244d63fdb69Smrgmain () 11245d63fdb69Smrg{ 11246d63fdb69Smrgreturn dlopen (); 11247d63fdb69Smrg ; 11248d63fdb69Smrg return 0; 11249d63fdb69Smrg} 11250d63fdb69Smrg_ACEOF 1125155acc8fcSmrgif ac_fn_c_try_link "$LINENO"; then : 11252d63fdb69Smrg ac_cv_lib_dl_dlopen=yes 11253d63fdb69Smrgelse 1125455acc8fcSmrg ac_cv_lib_dl_dlopen=no 112553da084b3Smrgfi 1125655acc8fcSmrgrm -f core conftest.err conftest.$ac_objext \ 1125755acc8fcSmrg conftest$ac_exeext conftest.$ac_ext 11258d63fdb69SmrgLIBS=$ac_check_lib_save_LIBS 112593da084b3Smrgfi 1126055acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11261d63fdb69Smrg$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 1126255acc8fcSmrgif test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11263d63fdb69Smrg lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11264d63fdb69Smrgelse 112653da084b3Smrg 11266d63fdb69Smrg lt_cv_dlopen="dyld" 11267d63fdb69Smrg lt_cv_dlopen_libs= 11268d63fdb69Smrg lt_cv_dlopen_self=yes 112693da084b3Smrg 11270d63fdb69Smrgfi 112713da084b3Smrg 112723da084b3Smrg ;; 112733da084b3Smrg 11274d63fdb69Smrg *) 1127555acc8fcSmrg ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 1127655acc8fcSmrgif test "x$ac_cv_func_shl_load" = xyes; then : 11277d63fdb69Smrg lt_cv_dlopen="shl_load" 11278d63fdb69Smrgelse 1127955acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11280d63fdb69Smrg$as_echo_n "checking for shl_load in -ldld... " >&6; } 1128155acc8fcSmrgif ${ac_cv_lib_dld_shl_load+:} false; then : 11282d63fdb69Smrg $as_echo_n "(cached) " >&6 11283d63fdb69Smrgelse 11284d63fdb69Smrg ac_check_lib_save_LIBS=$LIBS 11285d63fdb69SmrgLIBS="-ldld $LIBS" 1128655acc8fcSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 11287d63fdb69Smrg/* end confdefs.h. */ 112883da084b3Smrg 11289d63fdb69Smrg/* Override any GCC internal prototype to avoid an error. 11290d63fdb69Smrg Use char because int might match the return type of a GCC 11291d63fdb69Smrg builtin and then its argument prototype would still apply. */ 11292d63fdb69Smrg#ifdef __cplusplus 11293d63fdb69Smrgextern "C" 11294d63fdb69Smrg#endif 11295d63fdb69Smrgchar shl_load (); 11296d63fdb69Smrgint 11297d63fdb69Smrgmain () 11298d63fdb69Smrg{ 11299d63fdb69Smrgreturn shl_load (); 11300d63fdb69Smrg ; 11301d63fdb69Smrg return 0; 11302d63fdb69Smrg} 11303d63fdb69Smrg_ACEOF 1130455acc8fcSmrgif ac_fn_c_try_link "$LINENO"; then : 11305d63fdb69Smrg ac_cv_lib_dld_shl_load=yes 11306d63fdb69Smrgelse 1130755acc8fcSmrg ac_cv_lib_dld_shl_load=no 11308d63fdb69Smrgfi 1130955acc8fcSmrgrm -f core conftest.err conftest.$ac_objext \ 1131055acc8fcSmrg conftest$ac_exeext conftest.$ac_ext 11311d63fdb69SmrgLIBS=$ac_check_lib_save_LIBS 11312d63fdb69Smrgfi 1131355acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11314d63fdb69Smrg$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 1131555acc8fcSmrgif test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11316d63fdb69Smrg lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11317d63fdb69Smrgelse 1131855acc8fcSmrg ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 1131955acc8fcSmrgif test "x$ac_cv_func_dlopen" = xyes; then : 11320d63fdb69Smrg lt_cv_dlopen="dlopen" 11321d63fdb69Smrgelse 1132255acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11323d63fdb69Smrg$as_echo_n "checking for dlopen in -ldl... " >&6; } 1132455acc8fcSmrgif ${ac_cv_lib_dl_dlopen+:} false; then : 11325d63fdb69Smrg $as_echo_n "(cached) " >&6 11326d63fdb69Smrgelse 11327d63fdb69Smrg ac_check_lib_save_LIBS=$LIBS 11328d63fdb69SmrgLIBS="-ldl $LIBS" 1132955acc8fcSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 11330d63fdb69Smrg/* end confdefs.h. */ 113313da084b3Smrg 11332d63fdb69Smrg/* Override any GCC internal prototype to avoid an error. 11333d63fdb69Smrg Use char because int might match the return type of a GCC 11334d63fdb69Smrg builtin and then its argument prototype would still apply. */ 11335d63fdb69Smrg#ifdef __cplusplus 11336d63fdb69Smrgextern "C" 11337d63fdb69Smrg#endif 11338d63fdb69Smrgchar dlopen (); 11339d63fdb69Smrgint 11340d63fdb69Smrgmain () 11341d63fdb69Smrg{ 11342d63fdb69Smrgreturn dlopen (); 11343d63fdb69Smrg ; 11344d63fdb69Smrg return 0; 11345d63fdb69Smrg} 11346d63fdb69Smrg_ACEOF 1134755acc8fcSmrgif ac_fn_c_try_link "$LINENO"; then : 11348d63fdb69Smrg ac_cv_lib_dl_dlopen=yes 11349d63fdb69Smrgelse 1135055acc8fcSmrg ac_cv_lib_dl_dlopen=no 11351d63fdb69Smrgfi 1135255acc8fcSmrgrm -f core conftest.err conftest.$ac_objext \ 1135355acc8fcSmrg conftest$ac_exeext conftest.$ac_ext 11354d63fdb69SmrgLIBS=$ac_check_lib_save_LIBS 11355d63fdb69Smrgfi 1135655acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11357d63fdb69Smrg$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 1135855acc8fcSmrgif test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11359d63fdb69Smrg lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11360d63fdb69Smrgelse 1136155acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11362d63fdb69Smrg$as_echo_n "checking for dlopen in -lsvld... " >&6; } 1136355acc8fcSmrgif ${ac_cv_lib_svld_dlopen+:} false; then : 11364d63fdb69Smrg $as_echo_n "(cached) " >&6 11365d63fdb69Smrgelse 11366d63fdb69Smrg ac_check_lib_save_LIBS=$LIBS 11367d63fdb69SmrgLIBS="-lsvld $LIBS" 1136855acc8fcSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 11369d63fdb69Smrg/* end confdefs.h. */ 113703da084b3Smrg 11371d63fdb69Smrg/* Override any GCC internal prototype to avoid an error. 11372d63fdb69Smrg Use char because int might match the return type of a GCC 11373d63fdb69Smrg builtin and then its argument prototype would still apply. */ 11374d63fdb69Smrg#ifdef __cplusplus 11375d63fdb69Smrgextern "C" 11376d63fdb69Smrg#endif 11377d63fdb69Smrgchar dlopen (); 11378d63fdb69Smrgint 11379d63fdb69Smrgmain () 11380d63fdb69Smrg{ 11381d63fdb69Smrgreturn dlopen (); 11382d63fdb69Smrg ; 11383d63fdb69Smrg return 0; 11384d63fdb69Smrg} 11385d63fdb69Smrg_ACEOF 1138655acc8fcSmrgif ac_fn_c_try_link "$LINENO"; then : 11387d63fdb69Smrg ac_cv_lib_svld_dlopen=yes 11388d63fdb69Smrgelse 1138955acc8fcSmrg ac_cv_lib_svld_dlopen=no 11390d63fdb69Smrgfi 1139155acc8fcSmrgrm -f core conftest.err conftest.$ac_objext \ 1139255acc8fcSmrg conftest$ac_exeext conftest.$ac_ext 11393d63fdb69SmrgLIBS=$ac_check_lib_save_LIBS 11394d63fdb69Smrgfi 1139555acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11396d63fdb69Smrg$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 1139755acc8fcSmrgif test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11398d63fdb69Smrg lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11399d63fdb69Smrgelse 1140055acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11401d63fdb69Smrg$as_echo_n "checking for dld_link in -ldld... " >&6; } 1140255acc8fcSmrgif ${ac_cv_lib_dld_dld_link+:} false; then : 11403d63fdb69Smrg $as_echo_n "(cached) " >&6 11404d63fdb69Smrgelse 11405d63fdb69Smrg ac_check_lib_save_LIBS=$LIBS 11406d63fdb69SmrgLIBS="-ldld $LIBS" 1140755acc8fcSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 11408d63fdb69Smrg/* end confdefs.h. */ 114093da084b3Smrg 11410d63fdb69Smrg/* Override any GCC internal prototype to avoid an error. 11411d63fdb69Smrg Use char because int might match the return type of a GCC 11412d63fdb69Smrg builtin and then its argument prototype would still apply. */ 11413d63fdb69Smrg#ifdef __cplusplus 11414d63fdb69Smrgextern "C" 11415d63fdb69Smrg#endif 11416d63fdb69Smrgchar dld_link (); 11417d63fdb69Smrgint 11418d63fdb69Smrgmain () 11419d63fdb69Smrg{ 11420d63fdb69Smrgreturn dld_link (); 11421d63fdb69Smrg ; 11422d63fdb69Smrg return 0; 11423d63fdb69Smrg} 11424d63fdb69Smrg_ACEOF 1142555acc8fcSmrgif ac_fn_c_try_link "$LINENO"; then : 11426d63fdb69Smrg ac_cv_lib_dld_dld_link=yes 11427d63fdb69Smrgelse 1142855acc8fcSmrg ac_cv_lib_dld_dld_link=no 11429d63fdb69Smrgfi 1143055acc8fcSmrgrm -f core conftest.err conftest.$ac_objext \ 1143155acc8fcSmrg conftest$ac_exeext conftest.$ac_ext 11432d63fdb69SmrgLIBS=$ac_check_lib_save_LIBS 11433d63fdb69Smrgfi 1143455acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11435d63fdb69Smrg$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 1143655acc8fcSmrgif test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11437d63fdb69Smrg lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11438d63fdb69Smrgfi 114393da084b3Smrg 114403da084b3Smrg 11441d63fdb69Smrgfi 114423da084b3Smrg 114433da084b3Smrg 11444d63fdb69Smrgfi 114453da084b3Smrg 114463da084b3Smrg 11447d63fdb69Smrgfi 114483da084b3Smrg 114493da084b3Smrg 11450d63fdb69Smrgfi 114513da084b3Smrg 114523da084b3Smrg 11453d63fdb69Smrgfi 114543da084b3Smrg 11455d63fdb69Smrg ;; 11456d63fdb69Smrg esac 114573da084b3Smrg 11458d63fdb69Smrg if test "x$lt_cv_dlopen" != xno; then 11459d63fdb69Smrg enable_dlopen=yes 11460d63fdb69Smrg else 11461d63fdb69Smrg enable_dlopen=no 11462d63fdb69Smrg fi 114633da084b3Smrg 11464d63fdb69Smrg case $lt_cv_dlopen in 11465d63fdb69Smrg dlopen) 11466d63fdb69Smrg save_CPPFLAGS="$CPPFLAGS" 11467d63fdb69Smrg test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 114683da084b3Smrg 11469d63fdb69Smrg save_LDFLAGS="$LDFLAGS" 11470d63fdb69Smrg wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 114713da084b3Smrg 11472d63fdb69Smrg save_LIBS="$LIBS" 11473d63fdb69Smrg LIBS="$lt_cv_dlopen_libs $LIBS" 114743da084b3Smrg 1147555acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11476d63fdb69Smrg$as_echo_n "checking whether a program can dlopen itself... " >&6; } 1147755acc8fcSmrgif ${lt_cv_dlopen_self+:} false; then : 11478d63fdb69Smrg $as_echo_n "(cached) " >&6 11479d63fdb69Smrgelse 11480d63fdb69Smrg if test "$cross_compiling" = yes; then : 11481d63fdb69Smrg lt_cv_dlopen_self=cross 11482d63fdb69Smrgelse 11483d63fdb69Smrg lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11484d63fdb69Smrg lt_status=$lt_dlunknown 11485d63fdb69Smrg cat > conftest.$ac_ext <<_LT_EOF 1148655acc8fcSmrg#line $LINENO "configure" 11487d63fdb69Smrg#include "confdefs.h" 114883da084b3Smrg 11489d63fdb69Smrg#if HAVE_DLFCN_H 11490d63fdb69Smrg#include <dlfcn.h> 11491d63fdb69Smrg#endif 114923da084b3Smrg 11493d63fdb69Smrg#include <stdio.h> 114943da084b3Smrg 11495d63fdb69Smrg#ifdef RTLD_GLOBAL 11496d63fdb69Smrg# define LT_DLGLOBAL RTLD_GLOBAL 11497d63fdb69Smrg#else 11498d63fdb69Smrg# ifdef DL_GLOBAL 11499d63fdb69Smrg# define LT_DLGLOBAL DL_GLOBAL 11500d63fdb69Smrg# else 11501d63fdb69Smrg# define LT_DLGLOBAL 0 11502d63fdb69Smrg# endif 11503d63fdb69Smrg#endif 115043da084b3Smrg 11505d63fdb69Smrg/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11506d63fdb69Smrg find out it does not work in some platform. */ 11507d63fdb69Smrg#ifndef LT_DLLAZY_OR_NOW 11508d63fdb69Smrg# ifdef RTLD_LAZY 11509d63fdb69Smrg# define LT_DLLAZY_OR_NOW RTLD_LAZY 11510d63fdb69Smrg# else 11511d63fdb69Smrg# ifdef DL_LAZY 11512d63fdb69Smrg# define LT_DLLAZY_OR_NOW DL_LAZY 11513d63fdb69Smrg# else 11514d63fdb69Smrg# ifdef RTLD_NOW 11515d63fdb69Smrg# define LT_DLLAZY_OR_NOW RTLD_NOW 11516d63fdb69Smrg# else 11517d63fdb69Smrg# ifdef DL_NOW 11518d63fdb69Smrg# define LT_DLLAZY_OR_NOW DL_NOW 11519d63fdb69Smrg# else 11520d63fdb69Smrg# define LT_DLLAZY_OR_NOW 0 11521d63fdb69Smrg# endif 11522d63fdb69Smrg# endif 11523d63fdb69Smrg# endif 11524d63fdb69Smrg# endif 11525d63fdb69Smrg#endif 115263da084b3Smrg 1152755acc8fcSmrg/* When -fvisbility=hidden is used, assume the code has been annotated 1152855acc8fcSmrg correspondingly for the symbols needed. */ 1152955acc8fcSmrg#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 1153055acc8fcSmrgvoid fnord () __attribute__((visibility("default"))); 1153155acc8fcSmrg#endif 1153255acc8fcSmrg 1153355acc8fcSmrgvoid fnord () { int i=42; } 11534d63fdb69Smrgint main () 11535d63fdb69Smrg{ 11536d63fdb69Smrg void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11537d63fdb69Smrg int status = $lt_dlunknown; 115383da084b3Smrg 11539d63fdb69Smrg if (self) 11540d63fdb69Smrg { 11541d63fdb69Smrg if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 1154255acc8fcSmrg else 1154355acc8fcSmrg { 1154455acc8fcSmrg if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 1154555acc8fcSmrg else puts (dlerror ()); 1154655acc8fcSmrg } 11547d63fdb69Smrg /* dlclose (self); */ 11548d63fdb69Smrg } 11549d63fdb69Smrg else 11550d63fdb69Smrg puts (dlerror ()); 115513da084b3Smrg 11552d63fdb69Smrg return status; 11553d63fdb69Smrg} 11554d63fdb69Smrg_LT_EOF 1155555acc8fcSmrg if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11556d63fdb69Smrg (eval $ac_link) 2>&5 11557d63fdb69Smrg ac_status=$? 1155855acc8fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1155955acc8fcSmrg test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11560d63fdb69Smrg (./conftest; exit; ) >&5 2>/dev/null 11561d63fdb69Smrg lt_status=$? 11562d63fdb69Smrg case x$lt_status in 11563d63fdb69Smrg x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11564d63fdb69Smrg x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11565d63fdb69Smrg x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11566d63fdb69Smrg esac 11567d63fdb69Smrg else : 11568d63fdb69Smrg # compilation failed 11569d63fdb69Smrg lt_cv_dlopen_self=no 11570d63fdb69Smrg fi 11571d63fdb69Smrgfi 11572d63fdb69Smrgrm -fr conftest* 115733da084b3Smrg 115743da084b3Smrg 11575d63fdb69Smrgfi 1157655acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11577d63fdb69Smrg$as_echo "$lt_cv_dlopen_self" >&6; } 115783da084b3Smrg 11579d63fdb69Smrg if test "x$lt_cv_dlopen_self" = xyes; then 11580d63fdb69Smrg wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 1158155acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11582d63fdb69Smrg$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 1158355acc8fcSmrgif ${lt_cv_dlopen_self_static+:} false; then : 11584d63fdb69Smrg $as_echo_n "(cached) " >&6 11585d63fdb69Smrgelse 11586d63fdb69Smrg if test "$cross_compiling" = yes; then : 11587d63fdb69Smrg lt_cv_dlopen_self_static=cross 11588d63fdb69Smrgelse 11589d63fdb69Smrg lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11590d63fdb69Smrg lt_status=$lt_dlunknown 11591d63fdb69Smrg cat > conftest.$ac_ext <<_LT_EOF 1159255acc8fcSmrg#line $LINENO "configure" 11593d63fdb69Smrg#include "confdefs.h" 115943da084b3Smrg 11595d63fdb69Smrg#if HAVE_DLFCN_H 11596d63fdb69Smrg#include <dlfcn.h> 11597d63fdb69Smrg#endif 115983da084b3Smrg 11599d63fdb69Smrg#include <stdio.h> 116003da084b3Smrg 11601d63fdb69Smrg#ifdef RTLD_GLOBAL 11602d63fdb69Smrg# define LT_DLGLOBAL RTLD_GLOBAL 11603d63fdb69Smrg#else 11604d63fdb69Smrg# ifdef DL_GLOBAL 11605d63fdb69Smrg# define LT_DLGLOBAL DL_GLOBAL 11606d63fdb69Smrg# else 11607d63fdb69Smrg# define LT_DLGLOBAL 0 11608d63fdb69Smrg# endif 11609d63fdb69Smrg#endif 116103da084b3Smrg 11611d63fdb69Smrg/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11612d63fdb69Smrg find out it does not work in some platform. */ 11613d63fdb69Smrg#ifndef LT_DLLAZY_OR_NOW 11614d63fdb69Smrg# ifdef RTLD_LAZY 11615d63fdb69Smrg# define LT_DLLAZY_OR_NOW RTLD_LAZY 11616d63fdb69Smrg# else 11617d63fdb69Smrg# ifdef DL_LAZY 11618d63fdb69Smrg# define LT_DLLAZY_OR_NOW DL_LAZY 11619d63fdb69Smrg# else 11620d63fdb69Smrg# ifdef RTLD_NOW 11621d63fdb69Smrg# define LT_DLLAZY_OR_NOW RTLD_NOW 11622d63fdb69Smrg# else 11623d63fdb69Smrg# ifdef DL_NOW 11624d63fdb69Smrg# define LT_DLLAZY_OR_NOW DL_NOW 11625d63fdb69Smrg# else 11626d63fdb69Smrg# define LT_DLLAZY_OR_NOW 0 11627d63fdb69Smrg# endif 11628d63fdb69Smrg# endif 11629d63fdb69Smrg# endif 11630d63fdb69Smrg# endif 11631d63fdb69Smrg#endif 116323da084b3Smrg 1163355acc8fcSmrg/* When -fvisbility=hidden is used, assume the code has been annotated 1163455acc8fcSmrg correspondingly for the symbols needed. */ 1163555acc8fcSmrg#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 1163655acc8fcSmrgvoid fnord () __attribute__((visibility("default"))); 1163755acc8fcSmrg#endif 1163855acc8fcSmrg 1163955acc8fcSmrgvoid fnord () { int i=42; } 11640d63fdb69Smrgint main () 11641d63fdb69Smrg{ 11642d63fdb69Smrg void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11643d63fdb69Smrg int status = $lt_dlunknown; 116443da084b3Smrg 11645d63fdb69Smrg if (self) 11646d63fdb69Smrg { 11647d63fdb69Smrg if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 1164855acc8fcSmrg else 1164955acc8fcSmrg { 1165055acc8fcSmrg if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 1165155acc8fcSmrg else puts (dlerror ()); 1165255acc8fcSmrg } 11653d63fdb69Smrg /* dlclose (self); */ 11654d63fdb69Smrg } 11655d63fdb69Smrg else 11656d63fdb69Smrg puts (dlerror ()); 116573da084b3Smrg 11658d63fdb69Smrg return status; 11659d63fdb69Smrg} 11660d63fdb69Smrg_LT_EOF 1166155acc8fcSmrg if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11662d63fdb69Smrg (eval $ac_link) 2>&5 11663d63fdb69Smrg ac_status=$? 1166455acc8fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1166555acc8fcSmrg test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11666d63fdb69Smrg (./conftest; exit; ) >&5 2>/dev/null 11667d63fdb69Smrg lt_status=$? 11668d63fdb69Smrg case x$lt_status in 11669d63fdb69Smrg x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11670d63fdb69Smrg x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11671d63fdb69Smrg x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11672d63fdb69Smrg esac 11673d63fdb69Smrg else : 11674d63fdb69Smrg # compilation failed 11675d63fdb69Smrg lt_cv_dlopen_self_static=no 11676d63fdb69Smrg fi 11677d63fdb69Smrgfi 11678d63fdb69Smrgrm -fr conftest* 116793da084b3Smrg 116803da084b3Smrg 11681d63fdb69Smrgfi 1168255acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11683d63fdb69Smrg$as_echo "$lt_cv_dlopen_self_static" >&6; } 11684d63fdb69Smrg fi 116853da084b3Smrg 11686d63fdb69Smrg CPPFLAGS="$save_CPPFLAGS" 11687d63fdb69Smrg LDFLAGS="$save_LDFLAGS" 11688d63fdb69Smrg LIBS="$save_LIBS" 11689d63fdb69Smrg ;; 11690d63fdb69Smrg esac 116913da084b3Smrg 11692d63fdb69Smrg case $lt_cv_dlopen_self in 11693d63fdb69Smrg yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11694d63fdb69Smrg *) enable_dlopen_self=unknown ;; 11695d63fdb69Smrg esac 116963da084b3Smrg 11697d63fdb69Smrg case $lt_cv_dlopen_self_static in 11698d63fdb69Smrg yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11699d63fdb69Smrg *) enable_dlopen_self_static=unknown ;; 11700d63fdb69Smrg esac 11701d63fdb69Smrgfi 117023da084b3Smrg 117033da084b3Smrg 117043da084b3Smrg 117053da084b3Smrg 117063da084b3Smrg 117073da084b3Smrg 117083da084b3Smrg 117093da084b3Smrg 117103da084b3Smrg 117113da084b3Smrg 117123da084b3Smrg 117133da084b3Smrg 117143da084b3Smrg 117153da084b3Smrg 117163da084b3Smrg 117173da084b3Smrg 117183da084b3Smrg 11719d63fdb69Smrgstriplib= 11720d63fdb69Smrgold_striplib= 1172155acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11722d63fdb69Smrg$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11723d63fdb69Smrgif test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11724d63fdb69Smrg test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11725d63fdb69Smrg test -z "$striplib" && striplib="$STRIP --strip-unneeded" 1172655acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11727d63fdb69Smrg$as_echo "yes" >&6; } 11728d63fdb69Smrgelse 11729d63fdb69Smrg# FIXME - insert some real tests, host_os isn't really good enough 11730d63fdb69Smrg case $host_os in 11731d63fdb69Smrg darwin*) 11732d63fdb69Smrg if test -n "$STRIP" ; then 11733d63fdb69Smrg striplib="$STRIP -x" 11734d63fdb69Smrg old_striplib="$STRIP -S" 1173555acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11736d63fdb69Smrg$as_echo "yes" >&6; } 11737d63fdb69Smrg else 1173855acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11739d63fdb69Smrg$as_echo "no" >&6; } 11740d63fdb69Smrg fi 11741d63fdb69Smrg ;; 11742d63fdb69Smrg *) 1174355acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11744d63fdb69Smrg$as_echo "no" >&6; } 11745d63fdb69Smrg ;; 11746d63fdb69Smrg esac 11747d63fdb69Smrgfi 117483da084b3Smrg 117493da084b3Smrg 117503da084b3Smrg 117513da084b3Smrg 117523da084b3Smrg 117533da084b3Smrg 117543da084b3Smrg 117553da084b3Smrg 117563da084b3Smrg 117573da084b3Smrg 117583da084b3Smrg 117593da084b3Smrg 11760d63fdb69Smrg # Report which library types will actually be built 1176155acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11762d63fdb69Smrg$as_echo_n "checking if libtool supports shared libraries... " >&6; } 1176355acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11764d63fdb69Smrg$as_echo "$can_build_shared" >&6; } 117653da084b3Smrg 1176655acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11767d63fdb69Smrg$as_echo_n "checking whether to build shared libraries... " >&6; } 11768d63fdb69Smrg test "$can_build_shared" = "no" && enable_shared=no 117693da084b3Smrg 11770d63fdb69Smrg # On AIX, shared libraries and static libraries use the same namespace, and 11771d63fdb69Smrg # are all built from PIC. 11772d63fdb69Smrg case $host_os in 11773d63fdb69Smrg aix3*) 11774d63fdb69Smrg test "$enable_shared" = yes && enable_static=no 11775d63fdb69Smrg if test -n "$RANLIB"; then 11776d63fdb69Smrg archive_cmds="$archive_cmds~\$RANLIB \$lib" 11777d63fdb69Smrg postinstall_cmds='$RANLIB $lib' 11778d63fdb69Smrg fi 11779d63fdb69Smrg ;; 117803da084b3Smrg 11781d63fdb69Smrg aix[4-9]*) 11782d63fdb69Smrg if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11783d63fdb69Smrg test "$enable_shared" = yes && enable_static=no 11784d63fdb69Smrg fi 11785d63fdb69Smrg ;; 11786d63fdb69Smrg esac 1178755acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11788d63fdb69Smrg$as_echo "$enable_shared" >&6; } 117893da084b3Smrg 1179055acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11791d63fdb69Smrg$as_echo_n "checking whether to build static libraries... " >&6; } 11792d63fdb69Smrg # Make sure either enable_shared or enable_static is yes. 11793d63fdb69Smrg test "$enable_shared" = yes || enable_static=yes 1179455acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11795d63fdb69Smrg$as_echo "$enable_static" >&6; } 117963da084b3Smrg 117973da084b3Smrg 117983da084b3Smrg 117993da084b3Smrg 11800d63fdb69Smrgfi 118013da084b3Smrgac_ext=c 118023da084b3Smrgac_cpp='$CPP $CPPFLAGS' 118033da084b3Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 118043da084b3Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 118053da084b3Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 118063da084b3Smrg 118073da084b3SmrgCC="$lt_save_CC" 118083da084b3Smrg 118093da084b3Smrg 118103da084b3Smrg 118113da084b3Smrg 118123da084b3Smrg 118133da084b3Smrg 118143da084b3Smrg 118153da084b3Smrg 118163da084b3Smrg 118173da084b3Smrg 118183da084b3Smrg 118193da084b3Smrg 118203da084b3Smrg 11821d63fdb69Smrg ac_config_commands="$ac_config_commands libtool" 118223da084b3Smrg 118233da084b3Smrg 118243da084b3Smrg 11825d63fdb69Smrg 11826d63fdb69Smrg# Only expand once: 11827d63fdb69Smrg 11828d63fdb69Smrg 11829d63fdb69Smrg 1183055acc8fcSmrg# Require X.Org's font util macros 1.1 or later for XORG_FONTROOTDIR 1183155acc8fcSmrg 1183255acc8fcSmrg 1183355acc8fcSmrg 1183455acc8fcSmrg 1183555acc8fcSmrg 1183655acc8fcSmrg 11837d63fdb69Smrg 118383da084b3Smrg 11839d63fdb69Smrg 11840d63fdb69Smrg 118413da084b3Smrg 118423da084b3Smrg 1184355acc8fcSmrg 1184455acc8fcSmrg 1184555acc8fcSmrg 1184655acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for root directory for font files" >&5 1184755acc8fcSmrg$as_echo_n "checking for root directory for font files... " >&6; } 1184855acc8fcSmrg 1184955acc8fcSmrg# Check whether --with-fontrootdir was given. 1185055acc8fcSmrgif test "${with_fontrootdir+set}" = set; then : 1185155acc8fcSmrg withval=$with_fontrootdir; FONTROOTDIR="$withval" 11852d63fdb69Smrgfi 118533da084b3Smrg 1185455acc8fcSmrg # if --with-fontrootdir not specified... 1185555acc8fcSmrg if test "x${FONTROOTDIR}" = "x"; then 1185655acc8fcSmrg FONTROOTDIR=`$PKG_CONFIG --variable=fontrootdir fontutil` 1185755acc8fcSmrg fi 1185855acc8fcSmrg # ...and if pkg-config didn't find fontdir in fontutil.pc... 1185955acc8fcSmrg if test "x${FONTROOTDIR}" = "x"; then 1186055acc8fcSmrg FONTROOTDIR="${datadir}/fonts/X11" 1186155acc8fcSmrg fi 118623da084b3Smrg 1186355acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTROOTDIR}" >&5 1186455acc8fcSmrg$as_echo "${FONTROOTDIR}" >&6; } 118653da084b3Smrg 118663da084b3Smrg 1186755acc8fcSmrg 1186855acc8fcSmrg 1186955acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for encodings files" >&5 1187055acc8fcSmrg$as_echo_n "checking for directory for encodings files... " >&6; } 118713da084b3Smrg 11872d63fdb69Smrg# Check whether --with-encodingsdir was given. 1187355acc8fcSmrgif test "${with_encodingsdir+set}" = set; then : 1187455acc8fcSmrg withval=$with_encodingsdir; ENCODINGSDIR="${withval}" 1187555acc8fcSmrgelse 1187655acc8fcSmrg ENCODINGSDIR='${FONTROOTDIR}/encodings' 11877d63fdb69Smrgfi 118783da084b3Smrg 118793da084b3Smrg 1188055acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ENCODINGSDIR}" >&5 1188155acc8fcSmrg$as_echo "${ENCODINGSDIR}" >&6; } 118823da084b3Smrg 11883d63fdb69Smrg 1188455acc8fcSmrg# zlib 11885d63fdb69Smrg 1188655acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzclose in -lz" >&5 11887d63fdb69Smrg$as_echo_n "checking for gzclose in -lz... " >&6; } 1188855acc8fcSmrgif ${ac_cv_lib_z_gzclose+:} false; then : 11889d63fdb69Smrg $as_echo_n "(cached) " >&6 11890d63fdb69Smrgelse 11891d63fdb69Smrg ac_check_lib_save_LIBS=$LIBS 11892d63fdb69SmrgLIBS="-lz $LIBS" 1189355acc8fcSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 11894d63fdb69Smrg/* end confdefs.h. */ 11895d63fdb69Smrg 11896d63fdb69Smrg/* Override any GCC internal prototype to avoid an error. 11897d63fdb69Smrg Use char because int might match the return type of a GCC 11898d63fdb69Smrg builtin and then its argument prototype would still apply. */ 11899d63fdb69Smrg#ifdef __cplusplus 11900d63fdb69Smrgextern "C" 11901d63fdb69Smrg#endif 11902d63fdb69Smrgchar gzclose (); 11903d63fdb69Smrgint 11904d63fdb69Smrgmain () 11905d63fdb69Smrg{ 11906d63fdb69Smrgreturn gzclose (); 11907d63fdb69Smrg ; 11908d63fdb69Smrg return 0; 11909d63fdb69Smrg} 11910d63fdb69Smrg_ACEOF 1191155acc8fcSmrgif ac_fn_c_try_link "$LINENO"; then : 11912d63fdb69Smrg ac_cv_lib_z_gzclose=yes 11913d63fdb69Smrgelse 1191455acc8fcSmrg ac_cv_lib_z_gzclose=no 11915d63fdb69Smrgfi 1191655acc8fcSmrgrm -f core conftest.err conftest.$ac_objext \ 1191755acc8fcSmrg conftest$ac_exeext conftest.$ac_ext 11918d63fdb69SmrgLIBS=$ac_check_lib_save_LIBS 11919d63fdb69Smrgfi 1192055acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzclose" >&5 11921d63fdb69Smrg$as_echo "$ac_cv_lib_z_gzclose" >&6; } 1192255acc8fcSmrgif test "x$ac_cv_lib_z_gzclose" = xyes; then : 11923d63fdb69Smrg cat >>confdefs.h <<_ACEOF 11924d63fdb69Smrg#define HAVE_LIBZ 1 11925d63fdb69Smrg_ACEOF 119263da084b3Smrg 11927d63fdb69Smrg LIBS="-lz $LIBS" 119283da084b3Smrg 11929d63fdb69Smrgfi 119303da084b3Smrg 119313da084b3Smrg 11932d63fdb69Smrg# Check for dependencies 119333da084b3Smrg 11934d63fdb69Smrgpkg_failed=no 1193555acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTENC" >&5 11936d63fdb69Smrg$as_echo_n "checking for FONTENC... " >&6; } 11937d63fdb69Smrg 11938d63fdb69Smrgif test -n "$FONTENC_CFLAGS"; then 11939d63fdb69Smrg pkg_cv_FONTENC_CFLAGS="$FONTENC_CFLAGS" 11940d63fdb69Smrg elif test -n "$PKG_CONFIG"; then 11941d63fdb69Smrg if test -n "$PKG_CONFIG" && \ 1194255acc8fcSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5 11943d63fdb69Smrg ($PKG_CONFIG --exists --print-errors "xproto") 2>&5 11944d63fdb69Smrg ac_status=$? 1194555acc8fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1194655acc8fcSmrg test $ac_status = 0; }; then 11947d63fdb69Smrg pkg_cv_FONTENC_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null` 11948d63fdb69Smrgelse 11949d63fdb69Smrg pkg_failed=yes 11950d63fdb69Smrgfi 11951d63fdb69Smrg else 11952d63fdb69Smrg pkg_failed=untried 11953d63fdb69Smrgfi 11954d63fdb69Smrgif test -n "$FONTENC_LIBS"; then 11955d63fdb69Smrg pkg_cv_FONTENC_LIBS="$FONTENC_LIBS" 11956d63fdb69Smrg elif test -n "$PKG_CONFIG"; then 11957d63fdb69Smrg if test -n "$PKG_CONFIG" && \ 1195855acc8fcSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5 11959d63fdb69Smrg ($PKG_CONFIG --exists --print-errors "xproto") 2>&5 11960d63fdb69Smrg ac_status=$? 1196155acc8fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1196255acc8fcSmrg test $ac_status = 0; }; then 11963d63fdb69Smrg pkg_cv_FONTENC_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null` 11964d63fdb69Smrgelse 11965d63fdb69Smrg pkg_failed=yes 11966d63fdb69Smrgfi 11967d63fdb69Smrg else 11968d63fdb69Smrg pkg_failed=untried 11969d63fdb69Smrgfi 119703da084b3Smrg 119713da084b3Smrg 119723da084b3Smrg 11973d63fdb69Smrgif test $pkg_failed = yes; then 119743da084b3Smrg 11975d63fdb69Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11976d63fdb69Smrg _pkg_short_errors_supported=yes 11977d63fdb69Smrgelse 11978d63fdb69Smrg _pkg_short_errors_supported=no 11979d63fdb69Smrgfi 11980d63fdb69Smrg if test $_pkg_short_errors_supported = yes; then 11981d63fdb69Smrg FONTENC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto" 2>&1` 11982d63fdb69Smrg else 11983d63fdb69Smrg FONTENC_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto" 2>&1` 11984d63fdb69Smrg fi 11985d63fdb69Smrg # Put the nasty error message in config.log where it belongs 11986d63fdb69Smrg echo "$FONTENC_PKG_ERRORS" >&5 119873da084b3Smrg 1198855acc8fcSmrg as_fn_error $? "Package requirements (xproto) were not met: 119893da084b3Smrg 11990d63fdb69Smrg$FONTENC_PKG_ERRORS 119913da084b3Smrg 11992d63fdb69SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 11993d63fdb69Smrginstalled software in a non-standard prefix. 119943da084b3Smrg 11995d63fdb69SmrgAlternatively, you may set the environment variables FONTENC_CFLAGS 11996d63fdb69Smrgand FONTENC_LIBS to avoid the need to call pkg-config. 11997d63fdb69SmrgSee the pkg-config man page for more details. 1199855acc8fcSmrg" "$LINENO" 5 11999d63fdb69Smrgelif test $pkg_failed = untried; then 1200055acc8fcSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12001d63fdb69Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 1200255acc8fcSmrgas_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 12003d63fdb69Smrgis in your PATH or set the PKG_CONFIG environment variable to the full 12004d63fdb69Smrgpath to pkg-config. 120053da084b3Smrg 12006d63fdb69SmrgAlternatively, you may set the environment variables FONTENC_CFLAGS 12007d63fdb69Smrgand FONTENC_LIBS to avoid the need to call pkg-config. 12008d63fdb69SmrgSee the pkg-config man page for more details. 120093da084b3Smrg 12010d63fdb69SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 1201155acc8fcSmrgSee \`config.log' for more details" "$LINENO" 5; } 12012d63fdb69Smrgelse 12013d63fdb69Smrg FONTENC_CFLAGS=$pkg_cv_FONTENC_CFLAGS 12014d63fdb69Smrg FONTENC_LIBS=$pkg_cv_FONTENC_LIBS 1201555acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12016d63fdb69Smrg$as_echo "yes" >&6; } 12017d63fdb69Smrg : 12018d63fdb69Smrgfi 120193da084b3Smrg 120203da084b3Smrg 120213da084b3Smrg 120223da084b3Smrg 120233da084b3Smrg 120243da084b3Smrg 12025d63fdb69Smrg# Check whether --with-lint was given. 1202655acc8fcSmrgif test "${with_lint+set}" = set; then : 12027d63fdb69Smrg withval=$with_lint; use_lint=$withval 12028d63fdb69Smrgelse 12029d63fdb69Smrg use_lint=no 12030d63fdb69Smrgfi 120313da084b3Smrg 1203255acc8fcSmrg 1203355acc8fcSmrg# Obtain platform specific info like program name and options 1203455acc8fcSmrg# The lint program on FreeBSD and NetBSD is different from the one on Solaris 1203555acc8fcSmrgcase $host_os in 1203655acc8fcSmrg *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 1203755acc8fcSmrg lint_name=splint 1203855acc8fcSmrg lint_options="-badflag" 1203955acc8fcSmrg ;; 1204055acc8fcSmrg *freebsd* | *netbsd*) 1204155acc8fcSmrg lint_name=lint 1204255acc8fcSmrg lint_options="-u -b" 1204355acc8fcSmrg ;; 1204455acc8fcSmrg *solaris*) 1204555acc8fcSmrg lint_name=lint 1204655acc8fcSmrg lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 1204755acc8fcSmrg ;; 1204855acc8fcSmrgesac 1204955acc8fcSmrg 1205055acc8fcSmrg# Test for the presence of the program (either guessed by the code or spelled out by the user) 1205155acc8fcSmrgif test "x$use_lint" = x"yes" ; then 1205255acc8fcSmrg # Extract the first word of "$lint_name", so it can be a program name with args. 1205355acc8fcSmrgset dummy $lint_name; ac_word=$2 1205455acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 1205555acc8fcSmrg$as_echo_n "checking for $ac_word... " >&6; } 1205655acc8fcSmrgif ${ac_cv_path_LINT+:} false; then : 1205755acc8fcSmrg $as_echo_n "(cached) " >&6 1205855acc8fcSmrgelse 1205955acc8fcSmrg case $LINT in 1206055acc8fcSmrg [\\/]* | ?:[\\/]*) 1206155acc8fcSmrg ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 1206255acc8fcSmrg ;; 1206355acc8fcSmrg *) 1206455acc8fcSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1206555acc8fcSmrgfor as_dir in $PATH 1206655acc8fcSmrgdo 1206755acc8fcSmrg IFS=$as_save_IFS 1206855acc8fcSmrg test -z "$as_dir" && as_dir=. 1206955acc8fcSmrg for ac_exec_ext in '' $ac_executable_extensions; do 1207055acc8fcSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1207155acc8fcSmrg ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext" 1207255acc8fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 1207355acc8fcSmrg break 2 1207455acc8fcSmrg fi 1207555acc8fcSmrgdone 1207655acc8fcSmrg done 1207755acc8fcSmrgIFS=$as_save_IFS 1207855acc8fcSmrg 1207955acc8fcSmrg ;; 1208055acc8fcSmrgesac 1208155acc8fcSmrgfi 1208255acc8fcSmrgLINT=$ac_cv_path_LINT 1208355acc8fcSmrgif test -n "$LINT"; then 1208455acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 1208555acc8fcSmrg$as_echo "$LINT" >&6; } 12086d63fdb69Smrgelse 1208755acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 1208855acc8fcSmrg$as_echo "no" >&6; } 12089d63fdb69Smrgfi 1209055acc8fcSmrg 1209155acc8fcSmrg 1209255acc8fcSmrg if test "x$LINT" = "x"; then 1209355acc8fcSmrg as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 1209455acc8fcSmrg fi 1209555acc8fcSmrgelif test "x$use_lint" = x"no" ; then 1209655acc8fcSmrg if test "x$LINT" != "x"; then 1209755acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 1209855acc8fcSmrg$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 1209955acc8fcSmrg fi 1210055acc8fcSmrgelse 1210155acc8fcSmrg as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 12102d63fdb69Smrgfi 121033da084b3Smrg 1210455acc8fcSmrg# User supplied flags override default flags 1210555acc8fcSmrgif test "x$LINT_FLAGS" != "x"; then 1210655acc8fcSmrg lint_options=$LINT_FLAGS 1210755acc8fcSmrgfi 121083da084b3Smrg 1210955acc8fcSmrgLINT_FLAGS=$lint_options 121103da084b3Smrg 1211155acc8fcSmrg if test "x$LINT" != x; then 12112d63fdb69Smrg LINT_TRUE= 12113d63fdb69Smrg LINT_FALSE='#' 12114d63fdb69Smrgelse 12115d63fdb69Smrg LINT_TRUE='#' 12116d63fdb69Smrg LINT_FALSE= 12117d63fdb69Smrgfi 121183da084b3Smrg 121193da084b3Smrg 121203da084b3Smrg 12121d63fdb69SmrgLINT_FLAGS="${LINT_FLAGS} ${FONTENC_CFLAGS}" 121223da084b3Smrg 121233da084b3Smrg 12124d63fdb69Smrgac_config_files="$ac_config_files Makefile src/Makefile fontenc.pc" 121253da084b3Smrg 12126d63fdb69Smrgcat >confcache <<\_ACEOF 12127d63fdb69Smrg# This file is a shell script that caches the results of configure 12128d63fdb69Smrg# tests run on this system so they can be shared between configure 12129d63fdb69Smrg# scripts and configure runs, see configure's option --config-cache. 12130d63fdb69Smrg# It is not useful on other systems. If it contains results you don't 12131d63fdb69Smrg# want to keep, you may remove or edit it. 12132d63fdb69Smrg# 12133d63fdb69Smrg# config.status only pays attention to the cache file if you give it 12134d63fdb69Smrg# the --recheck option to rerun configure. 12135d63fdb69Smrg# 12136d63fdb69Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when 12137d63fdb69Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the 12138d63fdb69Smrg# following values. 121393da084b3Smrg 12140d63fdb69Smrg_ACEOF 121413da084b3Smrg 12142d63fdb69Smrg# The following way of writing the cache mishandles newlines in values, 12143d63fdb69Smrg# but we know of no workaround that is simple, portable, and efficient. 12144d63fdb69Smrg# So, we kill variables containing newlines. 12145d63fdb69Smrg# Ultrix sh set writes to stderr and can't be redirected directly, 12146d63fdb69Smrg# and sets the high bit in the cache file unless we assign to the vars. 12147d63fdb69Smrg( 12148d63fdb69Smrg for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12149d63fdb69Smrg eval ac_val=\$$ac_var 12150d63fdb69Smrg case $ac_val in #( 12151d63fdb69Smrg *${as_nl}*) 12152d63fdb69Smrg case $ac_var in #( 1215355acc8fcSmrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 12154d63fdb69Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12155d63fdb69Smrg esac 12156d63fdb69Smrg case $ac_var in #( 12157d63fdb69Smrg _ | IFS | as_nl) ;; #( 12158d63fdb69Smrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1215955acc8fcSmrg *) { eval $ac_var=; unset $ac_var;} ;; 12160d63fdb69Smrg esac ;; 12161d63fdb69Smrg esac 12162d63fdb69Smrg done 121633da084b3Smrg 12164d63fdb69Smrg (set) 2>&1 | 12165d63fdb69Smrg case $as_nl`(ac_space=' '; set) 2>&1` in #( 12166d63fdb69Smrg *${as_nl}ac_space=\ *) 1216755acc8fcSmrg # `set' does not quote correctly, so add quotes: double-quote 1216855acc8fcSmrg # substitution turns \\\\ into \\, and sed turns \\ into \. 12169d63fdb69Smrg sed -n \ 12170d63fdb69Smrg "s/'/'\\\\''/g; 12171d63fdb69Smrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12172d63fdb69Smrg ;; #( 12173d63fdb69Smrg *) 12174d63fdb69Smrg # `set' quotes correctly as required by POSIX, so do not add quotes. 12175d63fdb69Smrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12176d63fdb69Smrg ;; 12177d63fdb69Smrg esac | 12178d63fdb69Smrg sort 12179d63fdb69Smrg) | 12180d63fdb69Smrg sed ' 12181d63fdb69Smrg /^ac_cv_env_/b end 12182d63fdb69Smrg t clear 12183d63fdb69Smrg :clear 12184d63fdb69Smrg s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 12185d63fdb69Smrg t end 12186d63fdb69Smrg s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12187d63fdb69Smrg :end' >>confcache 12188d63fdb69Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12189d63fdb69Smrg if test -w "$cache_file"; then 1219055acc8fcSmrg if test "x$cache_file" != "x/dev/null"; then 1219155acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12192d63fdb69Smrg$as_echo "$as_me: updating cache $cache_file" >&6;} 1219355acc8fcSmrg if test ! -f "$cache_file" || test -h "$cache_file"; then 1219455acc8fcSmrg cat confcache >"$cache_file" 1219555acc8fcSmrg else 1219655acc8fcSmrg case $cache_file in #( 1219755acc8fcSmrg */* | ?:*) 1219855acc8fcSmrg mv -f confcache "$cache_file"$$ && 1219955acc8fcSmrg mv -f "$cache_file"$$ "$cache_file" ;; #( 1220055acc8fcSmrg *) 1220155acc8fcSmrg mv -f confcache "$cache_file" ;; 1220255acc8fcSmrg esac 1220355acc8fcSmrg fi 1220455acc8fcSmrg fi 12205d63fdb69Smrg else 1220655acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12207d63fdb69Smrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 12208d63fdb69Smrg fi 12209d63fdb69Smrgfi 12210d63fdb69Smrgrm -f confcache 122113da084b3Smrg 12212d63fdb69Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix 12213d63fdb69Smrg# Let make expand exec_prefix. 12214d63fdb69Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 122153da084b3Smrg 12216d63fdb69SmrgDEFS=-DHAVE_CONFIG_H 122173da084b3Smrg 12218d63fdb69Smrgac_libobjs= 12219d63fdb69Smrgac_ltlibobjs= 1222055acc8fcSmrgU= 12221d63fdb69Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12222d63fdb69Smrg # 1. Remove the extension, and $U if already installed. 12223d63fdb69Smrg ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12224d63fdb69Smrg ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 12225d63fdb69Smrg # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12226d63fdb69Smrg # will be set to the directory where LIBOBJS objects are built. 1222755acc8fcSmrg as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 1222855acc8fcSmrg as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12229d63fdb69Smrgdone 12230d63fdb69SmrgLIBOBJS=$ac_libobjs 122313da084b3Smrg 12232d63fdb69SmrgLTLIBOBJS=$ac_ltlibobjs 122333da084b3Smrg 122343da084b3Smrg 12235d63fdb69Smrg if test -n "$EXEEXT"; then 12236d63fdb69Smrg am__EXEEXT_TRUE= 12237d63fdb69Smrg am__EXEEXT_FALSE='#' 12238d63fdb69Smrgelse 12239d63fdb69Smrg am__EXEEXT_TRUE='#' 12240d63fdb69Smrg am__EXEEXT_FALSE= 12241d63fdb69Smrgfi 122423da084b3Smrg 12243d63fdb69Smrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 1224455acc8fcSmrg as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 1224555acc8fcSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 12246d63fdb69Smrgfi 12247d63fdb69Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 1224855acc8fcSmrg as_fn_error $? "conditional \"AMDEP\" was never defined. 1224955acc8fcSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 12250d63fdb69Smrgfi 12251d63fdb69Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 1225255acc8fcSmrg as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 1225355acc8fcSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 1225455acc8fcSmrgfi 1225555acc8fcSmrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 1225655acc8fcSmrg as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 1225755acc8fcSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 12258d63fdb69Smrgfi 12259d63fdb69Smrgif test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 1226055acc8fcSmrg as_fn_error $? "conditional \"LINT\" was never defined. 1226155acc8fcSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 12262d63fdb69Smrgfi 122633da084b3Smrg 1226455acc8fcSmrg: "${CONFIG_STATUS=./config.status}" 12265d63fdb69Smrgac_write_fail=0 12266d63fdb69Smrgac_clean_files_save=$ac_clean_files 12267d63fdb69Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS" 1226855acc8fcSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12269d63fdb69Smrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 1227055acc8fcSmrgas_write_fail=0 1227155acc8fcSmrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12272d63fdb69Smrg#! $SHELL 12273d63fdb69Smrg# Generated by $as_me. 12274d63fdb69Smrg# Run this file to recreate the current configuration. 12275d63fdb69Smrg# Compiler output produced by configure, useful for debugging 12276d63fdb69Smrg# configure, is in config.log if it exists. 122773da084b3Smrg 12278d63fdb69Smrgdebug=false 12279d63fdb69Smrgac_cs_recheck=false 12280d63fdb69Smrgac_cs_silent=false 122813da084b3Smrg 1228255acc8fcSmrgSHELL=\${CONFIG_SHELL-$SHELL} 1228355acc8fcSmrgexport SHELL 1228455acc8fcSmrg_ASEOF 1228555acc8fcSmrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 1228655acc8fcSmrg## -------------------- ## 1228755acc8fcSmrg## M4sh Initialization. ## 1228855acc8fcSmrg## -------------------- ## 122893da084b3Smrg 12290d63fdb69Smrg# Be more Bourne compatible 12291d63fdb69SmrgDUALCASE=1; export DUALCASE # for MKS sh 1229255acc8fcSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 12293d63fdb69Smrg emulate sh 12294d63fdb69Smrg NULLCMD=: 12295d63fdb69Smrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12296d63fdb69Smrg # is contrary to our usage. Disable this feature. 12297d63fdb69Smrg alias -g '${1+"$@"}'='"$@"' 12298d63fdb69Smrg setopt NO_GLOB_SUBST 12299d63fdb69Smrgelse 1230055acc8fcSmrg case `(set -o) 2>/dev/null` in #( 1230155acc8fcSmrg *posix*) : 1230255acc8fcSmrg set -o posix ;; #( 1230355acc8fcSmrg *) : 1230455acc8fcSmrg ;; 12305d63fdb69Smrgesac 12306d63fdb69Smrgfi 123073da084b3Smrg 123083da084b3Smrg 12309d63fdb69Smrgas_nl=' 12310d63fdb69Smrg' 12311d63fdb69Smrgexport as_nl 12312d63fdb69Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 12313d63fdb69Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 12314d63fdb69Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 12315d63fdb69Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 1231655acc8fcSmrg# Prefer a ksh shell builtin over an external printf program on Solaris, 1231755acc8fcSmrg# but without wasting forks for bash or zsh. 1231855acc8fcSmrgif test -z "$BASH_VERSION$ZSH_VERSION" \ 1231955acc8fcSmrg && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 1232055acc8fcSmrg as_echo='print -r --' 1232155acc8fcSmrg as_echo_n='print -rn --' 1232255acc8fcSmrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 12323d63fdb69Smrg as_echo='printf %s\n' 12324d63fdb69Smrg as_echo_n='printf %s' 12325d63fdb69Smrgelse 12326d63fdb69Smrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 12327d63fdb69Smrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 12328d63fdb69Smrg as_echo_n='/usr/ucb/echo -n' 12329d63fdb69Smrg else 12330d63fdb69Smrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 12331d63fdb69Smrg as_echo_n_body='eval 12332d63fdb69Smrg arg=$1; 1233355acc8fcSmrg case $arg in #( 12334d63fdb69Smrg *"$as_nl"*) 12335d63fdb69Smrg expr "X$arg" : "X\\(.*\\)$as_nl"; 12336d63fdb69Smrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 12337d63fdb69Smrg esac; 12338d63fdb69Smrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 12339d63fdb69Smrg ' 12340d63fdb69Smrg export as_echo_n_body 12341d63fdb69Smrg as_echo_n='sh -c $as_echo_n_body as_echo' 12342d63fdb69Smrg fi 12343d63fdb69Smrg export as_echo_body 12344d63fdb69Smrg as_echo='sh -c $as_echo_body as_echo' 12345d63fdb69Smrgfi 123463da084b3Smrg 12347d63fdb69Smrg# The user is always right. 12348d63fdb69Smrgif test "${PATH_SEPARATOR+set}" != set; then 12349d63fdb69Smrg PATH_SEPARATOR=: 12350d63fdb69Smrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12351d63fdb69Smrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12352d63fdb69Smrg PATH_SEPARATOR=';' 12353d63fdb69Smrg } 12354d63fdb69Smrgfi 123553da084b3Smrg 123563da084b3Smrg 12357d63fdb69Smrg# IFS 12358d63fdb69Smrg# We need space, tab and new line, in precisely that order. Quoting is 12359d63fdb69Smrg# there to prevent editors from complaining about space-tab. 12360d63fdb69Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 12361d63fdb69Smrg# splitting by setting IFS to empty value.) 12362d63fdb69SmrgIFS=" "" $as_nl" 123633da084b3Smrg 12364d63fdb69Smrg# Find who we are. Look in the path if we contain no directory separator. 1236555acc8fcSmrgas_myself= 1236655acc8fcSmrgcase $0 in #(( 12367d63fdb69Smrg *[\\/]* ) as_myself=$0 ;; 12368d63fdb69Smrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12369d63fdb69Smrgfor as_dir in $PATH 12370d63fdb69Smrgdo 12371d63fdb69Smrg IFS=$as_save_IFS 12372d63fdb69Smrg test -z "$as_dir" && as_dir=. 1237355acc8fcSmrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 1237455acc8fcSmrg done 12375d63fdb69SmrgIFS=$as_save_IFS 123763da084b3Smrg 12377d63fdb69Smrg ;; 12378d63fdb69Smrgesac 12379d63fdb69Smrg# We did not find ourselves, most probably we were run as `sh COMMAND' 12380d63fdb69Smrg# in which case we are not to be found in the path. 12381d63fdb69Smrgif test "x$as_myself" = x; then 12382d63fdb69Smrg as_myself=$0 12383d63fdb69Smrgfi 12384d63fdb69Smrgif test ! -f "$as_myself"; then 12385d63fdb69Smrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 1238655acc8fcSmrg exit 1 123873da084b3Smrgfi 123883da084b3Smrg 1238955acc8fcSmrg# Unset variables that we do not need and which cause bugs (e.g. in 1239055acc8fcSmrg# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 1239155acc8fcSmrg# suppresses any "Segmentation fault" message there. '((' could 1239255acc8fcSmrg# trigger a bug in pdksh 5.2.14. 1239355acc8fcSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH 1239455acc8fcSmrgdo eval test x\${$as_var+set} = xset \ 1239555acc8fcSmrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12396d63fdb69Smrgdone 12397d63fdb69SmrgPS1='$ ' 12398d63fdb69SmrgPS2='> ' 12399d63fdb69SmrgPS4='+ ' 124003da084b3Smrg 12401d63fdb69Smrg# NLS nuisances. 12402d63fdb69SmrgLC_ALL=C 12403d63fdb69Smrgexport LC_ALL 12404d63fdb69SmrgLANGUAGE=C 12405d63fdb69Smrgexport LANGUAGE 124063da084b3Smrg 1240755acc8fcSmrg# CDPATH. 1240855acc8fcSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 1240955acc8fcSmrg 1241055acc8fcSmrg 1241155acc8fcSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 1241255acc8fcSmrg# ---------------------------------------- 1241355acc8fcSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 1241455acc8fcSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 1241555acc8fcSmrg# script with STATUS, using 1 if that was 0. 1241655acc8fcSmrgas_fn_error () 1241755acc8fcSmrg{ 1241855acc8fcSmrg as_status=$1; test $as_status -eq 0 && as_status=1 1241955acc8fcSmrg if test "$4"; then 1242055acc8fcSmrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1242155acc8fcSmrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 1242255acc8fcSmrg fi 1242355acc8fcSmrg $as_echo "$as_me: error: $2" >&2 1242455acc8fcSmrg as_fn_exit $as_status 1242555acc8fcSmrg} # as_fn_error 1242655acc8fcSmrg 1242755acc8fcSmrg 1242855acc8fcSmrg# as_fn_set_status STATUS 1242955acc8fcSmrg# ----------------------- 1243055acc8fcSmrg# Set $? to STATUS, without forking. 1243155acc8fcSmrgas_fn_set_status () 1243255acc8fcSmrg{ 1243355acc8fcSmrg return $1 1243455acc8fcSmrg} # as_fn_set_status 1243555acc8fcSmrg 1243655acc8fcSmrg# as_fn_exit STATUS 1243755acc8fcSmrg# ----------------- 1243855acc8fcSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 1243955acc8fcSmrgas_fn_exit () 1244055acc8fcSmrg{ 1244155acc8fcSmrg set +e 1244255acc8fcSmrg as_fn_set_status $1 1244355acc8fcSmrg exit $1 1244455acc8fcSmrg} # as_fn_exit 1244555acc8fcSmrg 1244655acc8fcSmrg# as_fn_unset VAR 1244755acc8fcSmrg# --------------- 1244855acc8fcSmrg# Portably unset VAR. 1244955acc8fcSmrgas_fn_unset () 1245055acc8fcSmrg{ 1245155acc8fcSmrg { eval $1=; unset $1;} 1245255acc8fcSmrg} 1245355acc8fcSmrgas_unset=as_fn_unset 1245455acc8fcSmrg# as_fn_append VAR VALUE 1245555acc8fcSmrg# ---------------------- 1245655acc8fcSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take 1245755acc8fcSmrg# advantage of any shell optimizations that allow amortized linear growth over 1245855acc8fcSmrg# repeated appends, instead of the typical quadratic growth present in naive 1245955acc8fcSmrg# implementations. 1246055acc8fcSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 1246155acc8fcSmrg eval 'as_fn_append () 1246255acc8fcSmrg { 1246355acc8fcSmrg eval $1+=\$2 1246455acc8fcSmrg }' 1246555acc8fcSmrgelse 1246655acc8fcSmrg as_fn_append () 1246755acc8fcSmrg { 1246855acc8fcSmrg eval $1=\$$1\$2 1246955acc8fcSmrg } 1247055acc8fcSmrgfi # as_fn_append 1247155acc8fcSmrg 1247255acc8fcSmrg# as_fn_arith ARG... 1247355acc8fcSmrg# ------------------ 1247455acc8fcSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the 1247555acc8fcSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 1247655acc8fcSmrg# must be portable across $(()) and expr. 1247755acc8fcSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 1247855acc8fcSmrg eval 'as_fn_arith () 1247955acc8fcSmrg { 1248055acc8fcSmrg as_val=$(( $* )) 1248155acc8fcSmrg }' 1248255acc8fcSmrgelse 1248355acc8fcSmrg as_fn_arith () 1248455acc8fcSmrg { 1248555acc8fcSmrg as_val=`expr "$@" || test $? -eq 1` 1248655acc8fcSmrg } 1248755acc8fcSmrgfi # as_fn_arith 1248855acc8fcSmrg 1248955acc8fcSmrg 12490d63fdb69Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 12491d63fdb69Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 12492d63fdb69Smrg as_expr=expr 12493d63fdb69Smrgelse 12494d63fdb69Smrg as_expr=false 12495d63fdb69Smrgfi 124963da084b3Smrg 12497d63fdb69Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12498d63fdb69Smrg as_basename=basename 12499d63fdb69Smrgelse 12500d63fdb69Smrg as_basename=false 125013da084b3Smrgfi 125023da084b3Smrg 1250355acc8fcSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 1250455acc8fcSmrg as_dirname=dirname 1250555acc8fcSmrgelse 1250655acc8fcSmrg as_dirname=false 1250755acc8fcSmrgfi 125083da084b3Smrg 12509d63fdb69Smrgas_me=`$as_basename -- "$0" || 12510d63fdb69Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12511d63fdb69Smrg X"$0" : 'X\(//\)$' \| \ 12512d63fdb69Smrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 12513d63fdb69Smrg$as_echo X/"$0" | 12514d63fdb69Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 12515d63fdb69Smrg s//\1/ 12516d63fdb69Smrg q 12517d63fdb69Smrg } 12518d63fdb69Smrg /^X\/\(\/\/\)$/{ 12519d63fdb69Smrg s//\1/ 12520d63fdb69Smrg q 12521d63fdb69Smrg } 12522d63fdb69Smrg /^X\/\(\/\).*/{ 12523d63fdb69Smrg s//\1/ 12524d63fdb69Smrg q 12525d63fdb69Smrg } 12526d63fdb69Smrg s/.*/./; q'` 125273da084b3Smrg 1252855acc8fcSmrg# Avoid depending upon Character Ranges. 1252955acc8fcSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 1253055acc8fcSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 1253155acc8fcSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 1253255acc8fcSmrgas_cr_digits='0123456789' 1253355acc8fcSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits 125343da084b3Smrg 12535d63fdb69SmrgECHO_C= ECHO_N= ECHO_T= 1253655acc8fcSmrgcase `echo -n x` in #((((( 12537d63fdb69Smrg-n*) 1253855acc8fcSmrg case `echo 'xy\c'` in 12539d63fdb69Smrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 1254055acc8fcSmrg xy) ECHO_C='\c';; 1254155acc8fcSmrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 1254255acc8fcSmrg ECHO_T=' ';; 12543d63fdb69Smrg esac;; 12544d63fdb69Smrg*) 12545d63fdb69Smrg ECHO_N='-n';; 12546d63fdb69Smrgesac 125473da084b3Smrg 12548d63fdb69Smrgrm -f conf$$ conf$$.exe conf$$.file 12549d63fdb69Smrgif test -d conf$$.dir; then 12550d63fdb69Smrg rm -f conf$$.dir/conf$$.file 12551d63fdb69Smrgelse 12552d63fdb69Smrg rm -f conf$$.dir 12553d63fdb69Smrg mkdir conf$$.dir 2>/dev/null 12554d63fdb69Smrgfi 12555d63fdb69Smrgif (echo >conf$$.file) 2>/dev/null; then 12556d63fdb69Smrg if ln -s conf$$.file conf$$ 2>/dev/null; then 12557d63fdb69Smrg as_ln_s='ln -s' 12558d63fdb69Smrg # ... but there are two gotchas: 12559d63fdb69Smrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 12560d63fdb69Smrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 12561d63fdb69Smrg # In both cases, we have to default to `cp -p'. 12562d63fdb69Smrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12563d63fdb69Smrg as_ln_s='cp -p' 12564d63fdb69Smrg elif ln conf$$.file conf$$ 2>/dev/null; then 12565d63fdb69Smrg as_ln_s=ln 12566d63fdb69Smrg else 12567d63fdb69Smrg as_ln_s='cp -p' 12568d63fdb69Smrg fi 12569d63fdb69Smrgelse 12570d63fdb69Smrg as_ln_s='cp -p' 12571d63fdb69Smrgfi 12572d63fdb69Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12573d63fdb69Smrgrmdir conf$$.dir 2>/dev/null 125743da084b3Smrg 1257555acc8fcSmrg 1257655acc8fcSmrg# as_fn_mkdir_p 1257755acc8fcSmrg# ------------- 1257855acc8fcSmrg# Create "$as_dir" as a directory, including parents if necessary. 1257955acc8fcSmrgas_fn_mkdir_p () 1258055acc8fcSmrg{ 1258155acc8fcSmrg 1258255acc8fcSmrg case $as_dir in #( 1258355acc8fcSmrg -*) as_dir=./$as_dir;; 1258455acc8fcSmrg esac 1258555acc8fcSmrg test -d "$as_dir" || eval $as_mkdir_p || { 1258655acc8fcSmrg as_dirs= 1258755acc8fcSmrg while :; do 1258855acc8fcSmrg case $as_dir in #( 1258955acc8fcSmrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 1259055acc8fcSmrg *) as_qdir=$as_dir;; 1259155acc8fcSmrg esac 1259255acc8fcSmrg as_dirs="'$as_qdir' $as_dirs" 1259355acc8fcSmrg as_dir=`$as_dirname -- "$as_dir" || 1259455acc8fcSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1259555acc8fcSmrg X"$as_dir" : 'X\(//\)[^/]' \| \ 1259655acc8fcSmrg X"$as_dir" : 'X\(//\)$' \| \ 1259755acc8fcSmrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 1259855acc8fcSmrg$as_echo X"$as_dir" | 1259955acc8fcSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1260055acc8fcSmrg s//\1/ 1260155acc8fcSmrg q 1260255acc8fcSmrg } 1260355acc8fcSmrg /^X\(\/\/\)[^/].*/{ 1260455acc8fcSmrg s//\1/ 1260555acc8fcSmrg q 1260655acc8fcSmrg } 1260755acc8fcSmrg /^X\(\/\/\)$/{ 1260855acc8fcSmrg s//\1/ 1260955acc8fcSmrg q 1261055acc8fcSmrg } 1261155acc8fcSmrg /^X\(\/\).*/{ 1261255acc8fcSmrg s//\1/ 1261355acc8fcSmrg q 1261455acc8fcSmrg } 1261555acc8fcSmrg s/.*/./; q'` 1261655acc8fcSmrg test -d "$as_dir" && break 1261755acc8fcSmrg done 1261855acc8fcSmrg test -z "$as_dirs" || eval "mkdir $as_dirs" 1261955acc8fcSmrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 1262055acc8fcSmrg 1262155acc8fcSmrg 1262255acc8fcSmrg} # as_fn_mkdir_p 12623d63fdb69Smrgif mkdir -p . 2>/dev/null; then 1262455acc8fcSmrg as_mkdir_p='mkdir -p "$as_dir"' 12625d63fdb69Smrgelse 12626d63fdb69Smrg test -d ./-p && rmdir ./-p 12627d63fdb69Smrg as_mkdir_p=false 12628d63fdb69Smrgfi 126293da084b3Smrg 12630d63fdb69Smrgif test -x / >/dev/null 2>&1; then 12631d63fdb69Smrg as_test_x='test -x' 12632d63fdb69Smrgelse 12633d63fdb69Smrg if ls -dL / >/dev/null 2>&1; then 12634d63fdb69Smrg as_ls_L_option=L 12635d63fdb69Smrg else 12636d63fdb69Smrg as_ls_L_option= 12637d63fdb69Smrg fi 12638d63fdb69Smrg as_test_x=' 12639d63fdb69Smrg eval sh -c '\'' 12640d63fdb69Smrg if test -d "$1"; then 12641d63fdb69Smrg test -d "$1/."; 12642d63fdb69Smrg else 1264355acc8fcSmrg case $1 in #( 12644d63fdb69Smrg -*)set "./$1";; 12645d63fdb69Smrg esac; 1264655acc8fcSmrg case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 12647d63fdb69Smrg ???[sx]*):;;*)false;;esac;fi 12648d63fdb69Smrg '\'' sh 12649d63fdb69Smrg ' 12650d63fdb69Smrgfi 12651d63fdb69Smrgas_executable_p=$as_test_x 126523da084b3Smrg 12653d63fdb69Smrg# Sed expression to map a string onto a valid CPP name. 12654d63fdb69Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 126553da084b3Smrg 12656d63fdb69Smrg# Sed expression to map a string onto a valid variable name. 12657d63fdb69Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 126583da084b3Smrg 126593da084b3Smrg 12660d63fdb69Smrgexec 6>&1 1266155acc8fcSmrg## ----------------------------------- ## 1266255acc8fcSmrg## Main body of $CONFIG_STATUS script. ## 1266355acc8fcSmrg## ----------------------------------- ## 1266455acc8fcSmrg_ASEOF 1266555acc8fcSmrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 126663da084b3Smrg 1266755acc8fcSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 1266855acc8fcSmrg# Save the log message, to keep $0 and so on meaningful, and to 12669d63fdb69Smrg# report actual input values of CONFIG_FILES etc. instead of their 12670d63fdb69Smrg# values after options handling. 12671d63fdb69Smrgac_log=" 1267255acc8fcSmrgThis file was extended by libfontenc $as_me 1.1.0, which was 1267355acc8fcSmrggenerated by GNU Autoconf 2.68. Invocation command line was 126743da084b3Smrg 12675d63fdb69Smrg CONFIG_FILES = $CONFIG_FILES 12676d63fdb69Smrg CONFIG_HEADERS = $CONFIG_HEADERS 12677d63fdb69Smrg CONFIG_LINKS = $CONFIG_LINKS 12678d63fdb69Smrg CONFIG_COMMANDS = $CONFIG_COMMANDS 12679d63fdb69Smrg $ $0 $@ 126803da084b3Smrg 12681d63fdb69Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q` 12682d63fdb69Smrg" 126833da084b3Smrg 12684d63fdb69Smrg_ACEOF 126853da084b3Smrg 12686d63fdb69Smrgcase $ac_config_files in *" 12687d63fdb69Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;; 12688d63fdb69Smrgesac 126893da084b3Smrg 12690d63fdb69Smrgcase $ac_config_headers in *" 12691d63fdb69Smrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12692d63fdb69Smrgesac 126933da084b3Smrg 126943da084b3Smrg 12695d63fdb69Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12696d63fdb69Smrg# Files that config.status was made for. 12697d63fdb69Smrgconfig_files="$ac_config_files" 12698d63fdb69Smrgconfig_headers="$ac_config_headers" 12699d63fdb69Smrgconfig_commands="$ac_config_commands" 127003da084b3Smrg 12701d63fdb69Smrg_ACEOF 127023da084b3Smrg 12703d63fdb69Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12704d63fdb69Smrgac_cs_usage="\ 1270555acc8fcSmrg\`$as_me' instantiates files and other configuration actions 1270655acc8fcSmrgfrom templates according to the current configuration. Unless the files 1270755acc8fcSmrgand actions are specified as TAGs, all are instantiated by default. 127083da084b3Smrg 1270955acc8fcSmrgUsage: $0 [OPTION]... [TAG]... 127103da084b3Smrg 12711d63fdb69Smrg -h, --help print this help, then exit 12712d63fdb69Smrg -V, --version print version number and configuration settings, then exit 1271355acc8fcSmrg --config print configuration, then exit 12714d63fdb69Smrg -q, --quiet, --silent 12715d63fdb69Smrg do not print progress messages 12716d63fdb69Smrg -d, --debug don't remove temporary files 12717d63fdb69Smrg --recheck update $as_me by reconfiguring in the same conditions 12718d63fdb69Smrg --file=FILE[:TEMPLATE] 12719d63fdb69Smrg instantiate the configuration file FILE 12720d63fdb69Smrg --header=FILE[:TEMPLATE] 12721d63fdb69Smrg instantiate the configuration header FILE 127223da084b3Smrg 12723d63fdb69SmrgConfiguration files: 12724d63fdb69Smrg$config_files 127253da084b3Smrg 12726d63fdb69SmrgConfiguration headers: 12727d63fdb69Smrg$config_headers 127283da084b3Smrg 12729d63fdb69SmrgConfiguration commands: 12730d63fdb69Smrg$config_commands 127313da084b3Smrg 1273255acc8fcSmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 127333da084b3Smrg 127343da084b3Smrg_ACEOF 12735d63fdb69Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 1273655acc8fcSmrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 12737d63fdb69Smrgac_cs_version="\\ 1273855acc8fcSmrglibfontenc config.status 1.1.0 1273955acc8fcSmrgconfigured by $0, generated by GNU Autoconf 2.68, 1274055acc8fcSmrg with options \\"\$ac_cs_config\\" 127413da084b3Smrg 1274255acc8fcSmrgCopyright (C) 2010 Free Software Foundation, Inc. 12743d63fdb69SmrgThis config.status script is free software; the Free Software Foundation 12744d63fdb69Smrggives unlimited permission to copy, distribute and modify it." 127453da084b3Smrg 12746d63fdb69Smrgac_pwd='$ac_pwd' 12747d63fdb69Smrgsrcdir='$srcdir' 12748d63fdb69SmrgINSTALL='$INSTALL' 12749d63fdb69SmrgMKDIR_P='$MKDIR_P' 12750d63fdb69SmrgAWK='$AWK' 12751d63fdb69Smrgtest -n "\$AWK" || AWK=awk 12752d63fdb69Smrg_ACEOF 127533da084b3Smrg 12754d63fdb69Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12755d63fdb69Smrg# The default lists apply if the user does not specify any file. 12756d63fdb69Smrgac_need_defaults=: 12757d63fdb69Smrgwhile test $# != 0 12758d63fdb69Smrgdo 12759d63fdb69Smrg case $1 in 1276055acc8fcSmrg --*=?*) 12761d63fdb69Smrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 12762d63fdb69Smrg ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12763d63fdb69Smrg ac_shift=: 12764d63fdb69Smrg ;; 1276555acc8fcSmrg --*=) 1276655acc8fcSmrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 1276755acc8fcSmrg ac_optarg= 1276855acc8fcSmrg ac_shift=: 1276955acc8fcSmrg ;; 12770d63fdb69Smrg *) 12771d63fdb69Smrg ac_option=$1 12772d63fdb69Smrg ac_optarg=$2 12773d63fdb69Smrg ac_shift=shift 12774d63fdb69Smrg ;; 12775d63fdb69Smrg esac 127763da084b3Smrg 12777d63fdb69Smrg case $ac_option in 12778d63fdb69Smrg # Handling of the options. 12779d63fdb69Smrg -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12780d63fdb69Smrg ac_cs_recheck=: ;; 12781d63fdb69Smrg --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12782d63fdb69Smrg $as_echo "$ac_cs_version"; exit ;; 1278355acc8fcSmrg --config | --confi | --conf | --con | --co | --c ) 1278455acc8fcSmrg $as_echo "$ac_cs_config"; exit ;; 12785d63fdb69Smrg --debug | --debu | --deb | --de | --d | -d ) 12786d63fdb69Smrg debug=: ;; 12787d63fdb69Smrg --file | --fil | --fi | --f ) 12788d63fdb69Smrg $ac_shift 12789d63fdb69Smrg case $ac_optarg in 12790d63fdb69Smrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 1279155acc8fcSmrg '') as_fn_error $? "missing file argument" ;; 12792d63fdb69Smrg esac 1279355acc8fcSmrg as_fn_append CONFIG_FILES " '$ac_optarg'" 12794d63fdb69Smrg ac_need_defaults=false;; 12795d63fdb69Smrg --header | --heade | --head | --hea ) 12796d63fdb69Smrg $ac_shift 12797d63fdb69Smrg case $ac_optarg in 12798d63fdb69Smrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12799d63fdb69Smrg esac 1280055acc8fcSmrg as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12801d63fdb69Smrg ac_need_defaults=false;; 12802d63fdb69Smrg --he | --h) 12803d63fdb69Smrg # Conflict between --help and --header 1280455acc8fcSmrg as_fn_error $? "ambiguous option: \`$1' 1280555acc8fcSmrgTry \`$0 --help' for more information.";; 12806d63fdb69Smrg --help | --hel | -h ) 12807d63fdb69Smrg $as_echo "$ac_cs_usage"; exit ;; 12808d63fdb69Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12809d63fdb69Smrg | -silent | --silent | --silen | --sile | --sil | --si | --s) 12810d63fdb69Smrg ac_cs_silent=: ;; 128113da084b3Smrg 12812d63fdb69Smrg # This is an error. 1281355acc8fcSmrg -*) as_fn_error $? "unrecognized option: \`$1' 1281455acc8fcSmrgTry \`$0 --help' for more information." ;; 128153da084b3Smrg 1281655acc8fcSmrg *) as_fn_append ac_config_targets " $1" 12817d63fdb69Smrg ac_need_defaults=false ;; 128183da084b3Smrg 12819d63fdb69Smrg esac 12820d63fdb69Smrg shift 128213da084b3Smrgdone 128223da084b3Smrg 12823d63fdb69Smrgac_configure_extra_args= 12824d63fdb69Smrg 12825d63fdb69Smrgif $ac_cs_silent; then 12826d63fdb69Smrg exec 6>/dev/null 12827d63fdb69Smrg ac_configure_extra_args="$ac_configure_extra_args --silent" 128283da084b3Smrgfi 12829d63fdb69Smrg 12830d63fdb69Smrg_ACEOF 12831d63fdb69Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12832d63fdb69Smrgif \$ac_cs_recheck; then 12833d63fdb69Smrg set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12834d63fdb69Smrg shift 12835d63fdb69Smrg \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 12836d63fdb69Smrg CONFIG_SHELL='$SHELL' 12837d63fdb69Smrg export CONFIG_SHELL 12838d63fdb69Smrg exec "\$@" 128393da084b3Smrgfi 128403da084b3Smrg 12841d63fdb69Smrg_ACEOF 12842d63fdb69Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12843d63fdb69Smrgexec 5>>config.log 12844d63fdb69Smrg{ 12845d63fdb69Smrg echo 12846d63fdb69Smrg sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12847d63fdb69Smrg## Running $as_me. ## 12848d63fdb69Smrg_ASBOX 12849d63fdb69Smrg $as_echo "$ac_log" 12850d63fdb69Smrg} >&5 128513da084b3Smrg 12852d63fdb69Smrg_ACEOF 12853d63fdb69Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12854d63fdb69Smrg# 12855d63fdb69Smrg# INIT-COMMANDS 12856d63fdb69Smrg# 12857d63fdb69SmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 12858d63fdb69Smrg 12859d63fdb69Smrg 12860d63fdb69Smrg# The HP-UX ksh and POSIX shell print the target directory to stdout 12861d63fdb69Smrg# if CDPATH is set. 12862d63fdb69Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12863d63fdb69Smrg 12864d63fdb69Smrgsed_quote_subst='$sed_quote_subst' 12865d63fdb69Smrgdouble_quote_subst='$double_quote_subst' 12866d63fdb69Smrgdelay_variable_subst='$delay_variable_subst' 1286755acc8fcSmrgmacro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 1286855acc8fcSmrgmacro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 1286955acc8fcSmrgenable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 1287055acc8fcSmrgenable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 1287155acc8fcSmrgpic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 1287255acc8fcSmrgenable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 1287355acc8fcSmrgSHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 1287455acc8fcSmrgECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 1287555acc8fcSmrghost_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 1287655acc8fcSmrghost='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 1287755acc8fcSmrghost_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 1287855acc8fcSmrgbuild_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 1287955acc8fcSmrgbuild='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 1288055acc8fcSmrgbuild_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 1288155acc8fcSmrgSED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 1288255acc8fcSmrgXsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 1288355acc8fcSmrgGREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 1288455acc8fcSmrgEGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 1288555acc8fcSmrgFGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 1288655acc8fcSmrgLD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 1288755acc8fcSmrgNM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 1288855acc8fcSmrgLN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 1288955acc8fcSmrgmax_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 1289055acc8fcSmrgac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 1289155acc8fcSmrgexeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 1289255acc8fcSmrglt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 1289355acc8fcSmrglt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 1289455acc8fcSmrglt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 1289555acc8fcSmrgreload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 1289655acc8fcSmrgreload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 1289755acc8fcSmrgOBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 1289855acc8fcSmrgdeplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 1289955acc8fcSmrgfile_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 1290055acc8fcSmrgAR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 1290155acc8fcSmrgAR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 1290255acc8fcSmrgSTRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 1290355acc8fcSmrgRANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 1290455acc8fcSmrgold_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 1290555acc8fcSmrgold_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 1290655acc8fcSmrgold_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 1290755acc8fcSmrglock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 1290855acc8fcSmrgCC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 1290955acc8fcSmrgCFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 1291055acc8fcSmrgcompiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 1291155acc8fcSmrgGCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 1291255acc8fcSmrglt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 1291355acc8fcSmrglt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 1291455acc8fcSmrglt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 1291555acc8fcSmrglt_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"`' 1291655acc8fcSmrgobjdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 1291755acc8fcSmrgMAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 1291855acc8fcSmrglt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 1291955acc8fcSmrglt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 1292055acc8fcSmrglt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 1292155acc8fcSmrglt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 1292255acc8fcSmrglt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 1292355acc8fcSmrgneed_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 1292455acc8fcSmrgDSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 1292555acc8fcSmrgNMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 1292655acc8fcSmrgLIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 1292755acc8fcSmrgOTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 1292855acc8fcSmrgOTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 1292955acc8fcSmrglibext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 1293055acc8fcSmrgshrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 1293155acc8fcSmrgextract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 1293255acc8fcSmrgarchive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 1293355acc8fcSmrgenable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 1293455acc8fcSmrgexport_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 1293555acc8fcSmrgwhole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 1293655acc8fcSmrgcompiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 1293755acc8fcSmrgold_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 1293855acc8fcSmrgold_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 1293955acc8fcSmrgarchive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 1294055acc8fcSmrgarchive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 1294155acc8fcSmrgmodule_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 1294255acc8fcSmrgmodule_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 1294355acc8fcSmrgwith_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 1294455acc8fcSmrgallow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 1294555acc8fcSmrgno_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 1294655acc8fcSmrghardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 1294755acc8fcSmrghardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 1294855acc8fcSmrghardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 1294955acc8fcSmrghardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 1295055acc8fcSmrghardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 1295155acc8fcSmrghardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 1295255acc8fcSmrghardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 1295355acc8fcSmrghardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 1295455acc8fcSmrginherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 1295555acc8fcSmrglink_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 1295655acc8fcSmrgfix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' 1295755acc8fcSmrgalways_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 1295855acc8fcSmrgexport_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 1295955acc8fcSmrgexclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 1296055acc8fcSmrginclude_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 1296155acc8fcSmrgprelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 1296255acc8fcSmrgfile_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 1296355acc8fcSmrgvariables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 1296455acc8fcSmrgneed_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 1296555acc8fcSmrgneed_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 1296655acc8fcSmrgversion_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 1296755acc8fcSmrgrunpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 1296855acc8fcSmrgshlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 1296955acc8fcSmrgshlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 1297055acc8fcSmrglibname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 1297155acc8fcSmrglibrary_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 1297255acc8fcSmrgsoname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 1297355acc8fcSmrginstall_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 1297455acc8fcSmrgpostinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 1297555acc8fcSmrgpostuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 1297655acc8fcSmrgfinish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 1297755acc8fcSmrgfinish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 1297855acc8fcSmrghardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 1297955acc8fcSmrgsys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 1298055acc8fcSmrgsys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 1298155acc8fcSmrghardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 1298255acc8fcSmrgenable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 1298355acc8fcSmrgenable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 1298455acc8fcSmrgenable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 1298555acc8fcSmrgold_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 1298655acc8fcSmrgstriplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 12987d63fdb69Smrg 12988d63fdb69SmrgLTCC='$LTCC' 12989d63fdb69SmrgLTCFLAGS='$LTCFLAGS' 12990d63fdb69Smrgcompiler='$compiler_DEFAULT' 12991d63fdb69Smrg 1299255acc8fcSmrg# A function that is used when there is no print builtin or printf. 1299355acc8fcSmrgfunc_fallback_echo () 1299455acc8fcSmrg{ 1299555acc8fcSmrg eval 'cat <<_LTECHO_EOF 1299655acc8fcSmrg\$1 1299755acc8fcSmrg_LTECHO_EOF' 1299855acc8fcSmrg} 1299955acc8fcSmrg 13000d63fdb69Smrg# Quote evaled strings. 1300155acc8fcSmrgfor var in SHELL \ 1300255acc8fcSmrgECHO \ 1300355acc8fcSmrgSED \ 13004d63fdb69SmrgGREP \ 13005d63fdb69SmrgEGREP \ 13006d63fdb69SmrgFGREP \ 13007d63fdb69SmrgLD \ 13008d63fdb69SmrgNM \ 13009d63fdb69SmrgLN_S \ 13010d63fdb69Smrglt_SP2NL \ 13011d63fdb69Smrglt_NL2SP \ 13012d63fdb69Smrgreload_flag \ 13013d63fdb69SmrgOBJDUMP \ 13014d63fdb69Smrgdeplibs_check_method \ 13015d63fdb69Smrgfile_magic_cmd \ 13016d63fdb69SmrgAR \ 13017d63fdb69SmrgAR_FLAGS \ 13018d63fdb69SmrgSTRIP \ 13019d63fdb69SmrgRANLIB \ 13020d63fdb69SmrgCC \ 13021d63fdb69SmrgCFLAGS \ 13022d63fdb69Smrgcompiler \ 13023d63fdb69Smrglt_cv_sys_global_symbol_pipe \ 13024d63fdb69Smrglt_cv_sys_global_symbol_to_cdecl \ 13025d63fdb69Smrglt_cv_sys_global_symbol_to_c_name_address \ 13026d63fdb69Smrglt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 13027d63fdb69Smrglt_prog_compiler_no_builtin_flag \ 13028d63fdb69Smrglt_prog_compiler_wl \ 13029d63fdb69Smrglt_prog_compiler_pic \ 13030d63fdb69Smrglt_prog_compiler_static \ 13031d63fdb69Smrglt_cv_prog_compiler_c_o \ 13032d63fdb69Smrgneed_locks \ 13033d63fdb69SmrgDSYMUTIL \ 13034d63fdb69SmrgNMEDIT \ 13035d63fdb69SmrgLIPO \ 13036d63fdb69SmrgOTOOL \ 13037d63fdb69SmrgOTOOL64 \ 13038d63fdb69Smrgshrext_cmds \ 13039d63fdb69Smrgexport_dynamic_flag_spec \ 13040d63fdb69Smrgwhole_archive_flag_spec \ 13041d63fdb69Smrgcompiler_needs_object \ 13042d63fdb69Smrgwith_gnu_ld \ 13043d63fdb69Smrgallow_undefined_flag \ 13044d63fdb69Smrgno_undefined_flag \ 13045d63fdb69Smrghardcode_libdir_flag_spec \ 13046d63fdb69Smrghardcode_libdir_flag_spec_ld \ 13047d63fdb69Smrghardcode_libdir_separator \ 13048d63fdb69Smrgfix_srcfile_path \ 13049d63fdb69Smrgexclude_expsyms \ 13050d63fdb69Smrginclude_expsyms \ 13051d63fdb69Smrgfile_list_spec \ 13052d63fdb69Smrgvariables_saved_for_relink \ 13053d63fdb69Smrglibname_spec \ 13054d63fdb69Smrglibrary_names_spec \ 13055d63fdb69Smrgsoname_spec \ 1305655acc8fcSmrginstall_override_mode \ 13057d63fdb69Smrgfinish_eval \ 13058d63fdb69Smrgold_striplib \ 13059d63fdb69Smrgstriplib; do 1306055acc8fcSmrg case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 13061d63fdb69Smrg *[\\\\\\\`\\"\\\$]*) 1306255acc8fcSmrg eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 13063d63fdb69Smrg ;; 13064d63fdb69Smrg *) 13065d63fdb69Smrg eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13066d63fdb69Smrg ;; 13067d63fdb69Smrg esac 130683da084b3Smrgdone 13069d63fdb69Smrg 13070d63fdb69Smrg# Double-quote double-evaled strings. 13071d63fdb69Smrgfor var in reload_cmds \ 13072d63fdb69Smrgold_postinstall_cmds \ 13073d63fdb69Smrgold_postuninstall_cmds \ 13074d63fdb69Smrgold_archive_cmds \ 13075d63fdb69Smrgextract_expsyms_cmds \ 13076d63fdb69Smrgold_archive_from_new_cmds \ 13077d63fdb69Smrgold_archive_from_expsyms_cmds \ 13078d63fdb69Smrgarchive_cmds \ 13079d63fdb69Smrgarchive_expsym_cmds \ 13080d63fdb69Smrgmodule_cmds \ 13081d63fdb69Smrgmodule_expsym_cmds \ 13082d63fdb69Smrgexport_symbols_cmds \ 13083d63fdb69Smrgprelink_cmds \ 13084d63fdb69Smrgpostinstall_cmds \ 13085d63fdb69Smrgpostuninstall_cmds \ 13086d63fdb69Smrgfinish_cmds \ 13087d63fdb69Smrgsys_lib_search_path_spec \ 13088d63fdb69Smrgsys_lib_dlsearch_path_spec; do 1308955acc8fcSmrg case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 13090d63fdb69Smrg *[\\\\\\\`\\"\\\$]*) 1309155acc8fcSmrg eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 13092d63fdb69Smrg ;; 13093d63fdb69Smrg *) 13094d63fdb69Smrg eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13095d63fdb69Smrg ;; 13096d63fdb69Smrg esac 130973da084b3Smrgdone 130983da084b3Smrg 13099d63fdb69Smrgac_aux_dir='$ac_aux_dir' 13100d63fdb69Smrgxsi_shell='$xsi_shell' 13101d63fdb69Smrglt_shell_append='$lt_shell_append' 131023da084b3Smrg 13103d63fdb69Smrg# See if we are running on zsh, and set the options which allow our 13104d63fdb69Smrg# commands through without removal of \ escapes INIT. 13105d63fdb69Smrgif test -n "\${ZSH_VERSION+set}" ; then 13106d63fdb69Smrg setopt NO_GLOB_SUBST 131073da084b3Smrgfi 131083da084b3Smrg 131093da084b3Smrg 13110d63fdb69Smrg PACKAGE='$PACKAGE' 13111d63fdb69Smrg VERSION='$VERSION' 13112d63fdb69Smrg TIMESTAMP='$TIMESTAMP' 13113d63fdb69Smrg RM='$RM' 13114d63fdb69Smrg ofile='$ofile' 131153da084b3Smrg 131163da084b3Smrg 131173da084b3Smrg 131183da084b3Smrg 13119d63fdb69Smrg_ACEOF 131203da084b3Smrg 13121d63fdb69Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 131223da084b3Smrg 13123d63fdb69Smrg# Handling of arguments. 13124d63fdb69Smrgfor ac_config_target in $ac_config_targets 13125d63fdb69Smrgdo 13126d63fdb69Smrg case $ac_config_target in 13127d63fdb69Smrg "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 1312855acc8fcSmrg "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 13129d63fdb69Smrg "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 13130d63fdb69Smrg "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13131d63fdb69Smrg "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 13132d63fdb69Smrg "fontenc.pc") CONFIG_FILES="$CONFIG_FILES fontenc.pc" ;; 131333da084b3Smrg 1313455acc8fcSmrg *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 13135d63fdb69Smrg esac 13136d63fdb69Smrgdone 131373da084b3Smrg 131383da084b3Smrg 13139d63fdb69Smrg# If the user did not use the arguments to specify the items to instantiate, 13140d63fdb69Smrg# then the envvar interface is used. Set only those that are not. 13141d63fdb69Smrg# We use the long form for the default assignment because of an extremely 13142d63fdb69Smrg# bizarre bug on SunOS 4.1.3. 13143d63fdb69Smrgif $ac_need_defaults; then 13144d63fdb69Smrg test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 13145d63fdb69Smrg test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 13146d63fdb69Smrg test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 13147d63fdb69Smrgfi 131483da084b3Smrg 13149d63fdb69Smrg# Have a temporary directory for convenience. Make it in the build tree 13150d63fdb69Smrg# simply because there is no reason against having it here, and in addition, 13151d63fdb69Smrg# creating and moving files from /tmp can sometimes cause problems. 13152d63fdb69Smrg# Hook for its removal unless debugging. 13153d63fdb69Smrg# Note that there is a small window in which the directory will not be cleaned: 13154d63fdb69Smrg# after its creation but before its name has been assigned to `$tmp'. 13155d63fdb69Smrg$debug || 13156d63fdb69Smrg{ 1315755acc8fcSmrg tmp= ac_tmp= 13158d63fdb69Smrg trap 'exit_status=$? 1315955acc8fcSmrg : "${ac_tmp:=$tmp}" 1316055acc8fcSmrg { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 13161d63fdb69Smrg' 0 1316255acc8fcSmrg trap 'as_fn_exit 1' 1 2 13 15 13163d63fdb69Smrg} 13164d63fdb69Smrg# Create a (secure) tmp directory for tmp files. 131653da084b3Smrg 13166d63fdb69Smrg{ 13167d63fdb69Smrg tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 1316855acc8fcSmrg test -d "$tmp" 13169d63fdb69Smrg} || 13170d63fdb69Smrg{ 13171d63fdb69Smrg tmp=./conf$$-$RANDOM 13172d63fdb69Smrg (umask 077 && mkdir "$tmp") 1317355acc8fcSmrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 1317455acc8fcSmrgac_tmp=$tmp 131753da084b3Smrg 13176d63fdb69Smrg# Set up the scripts for CONFIG_FILES section. 13177d63fdb69Smrg# No need to generate them if there are no CONFIG_FILES. 13178d63fdb69Smrg# This happens for instance with `./config.status config.h'. 13179d63fdb69Smrgif test -n "$CONFIG_FILES"; then 131803da084b3Smrg 131813da084b3Smrg 1318255acc8fcSmrgac_cr=`echo X | tr X '\015'` 1318355acc8fcSmrg# On cygwin, bash can eat \r inside `` if the user requested igncr. 1318455acc8fcSmrg# But we know of no other shell where ac_cr would be empty at this 1318555acc8fcSmrg# point, so we can use a bashism as a fallback. 1318655acc8fcSmrgif test "x$ac_cr" = x; then 1318755acc8fcSmrg eval ac_cr=\$\'\\r\' 1318855acc8fcSmrgfi 13189d63fdb69Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 13190d63fdb69Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 13191d63fdb69Smrg ac_cs_awk_cr='\\r' 131923da084b3Smrgelse 13193d63fdb69Smrg ac_cs_awk_cr=$ac_cr 131943da084b3Smrgfi 131953da084b3Smrg 1319655acc8fcSmrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" && 13197d63fdb69Smrg_ACEOF 131983da084b3Smrg 131993da084b3Smrg 13200d63fdb69Smrg{ 13201d63fdb69Smrg echo "cat >conf$$subs.awk <<_ACEOF" && 13202d63fdb69Smrg echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 13203d63fdb69Smrg echo "_ACEOF" 13204d63fdb69Smrg} >conf$$subs.sh || 1320555acc8fcSmrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 1320655acc8fcSmrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 13207d63fdb69Smrgac_delim='%!_!# ' 13208d63fdb69Smrgfor ac_last_try in false false false false false :; do 13209d63fdb69Smrg . ./conf$$subs.sh || 1321055acc8fcSmrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 132113da084b3Smrg 13212d63fdb69Smrg ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 13213d63fdb69Smrg if test $ac_delim_n = $ac_delim_num; then 13214d63fdb69Smrg break 13215d63fdb69Smrg elif $ac_last_try; then 1321655acc8fcSmrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13217d63fdb69Smrg else 13218d63fdb69Smrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13219d63fdb69Smrg fi 13220d63fdb69Smrgdone 13221d63fdb69Smrgrm -f conf$$subs.sh 13222d63fdb69Smrg 13223d63fdb69Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 1322455acc8fcSmrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 13225d63fdb69Smrg_ACEOF 13226d63fdb69Smrgsed -n ' 13227d63fdb69Smrgh 13228d63fdb69Smrgs/^/S["/; s/!.*/"]=/ 13229d63fdb69Smrgp 13230d63fdb69Smrgg 13231d63fdb69Smrgs/^[^!]*!// 13232d63fdb69Smrg:repl 13233d63fdb69Smrgt repl 13234d63fdb69Smrgs/'"$ac_delim"'$// 13235d63fdb69Smrgt delim 13236d63fdb69Smrg:nl 13237d63fdb69Smrgh 1323855acc8fcSmrgs/\(.\{148\}\)..*/\1/ 13239d63fdb69Smrgt more1 13240d63fdb69Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 13241d63fdb69Smrgp 13242d63fdb69Smrgn 13243d63fdb69Smrgb repl 13244d63fdb69Smrg:more1 13245d63fdb69Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13246d63fdb69Smrgp 13247d63fdb69Smrgg 13248d63fdb69Smrgs/.\{148\}// 13249d63fdb69Smrgt nl 13250d63fdb69Smrg:delim 13251d63fdb69Smrgh 1325255acc8fcSmrgs/\(.\{148\}\)..*/\1/ 13253d63fdb69Smrgt more2 13254d63fdb69Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/ 13255d63fdb69Smrgp 13256d63fdb69Smrgb 13257d63fdb69Smrg:more2 13258d63fdb69Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13259d63fdb69Smrgp 13260d63fdb69Smrgg 13261d63fdb69Smrgs/.\{148\}// 13262d63fdb69Smrgt delim 13263d63fdb69Smrg' <conf$$subs.awk | sed ' 13264d63fdb69Smrg/^[^""]/{ 13265d63fdb69Smrg N 13266d63fdb69Smrg s/\n// 13267d63fdb69Smrg} 13268d63fdb69Smrg' >>$CONFIG_STATUS || ac_write_fail=1 13269d63fdb69Smrgrm -f conf$$subs.awk 13270d63fdb69Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13271d63fdb69Smrg_ACAWK 1327255acc8fcSmrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 13273d63fdb69Smrg for (key in S) S_is_set[key] = 1 13274d63fdb69Smrg FS = "" 132753da084b3Smrg 13276d63fdb69Smrg} 13277d63fdb69Smrg{ 13278d63fdb69Smrg line = $ 0 13279d63fdb69Smrg nfields = split(line, field, "@") 13280d63fdb69Smrg substed = 0 13281d63fdb69Smrg len = length(field[1]) 13282d63fdb69Smrg for (i = 2; i < nfields; i++) { 13283d63fdb69Smrg key = field[i] 13284d63fdb69Smrg keylen = length(key) 13285d63fdb69Smrg if (S_is_set[key]) { 13286d63fdb69Smrg value = S[key] 13287d63fdb69Smrg line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 13288d63fdb69Smrg len += length(value) + length(field[++i]) 13289d63fdb69Smrg substed = 1 13290d63fdb69Smrg } else 13291d63fdb69Smrg len += 1 + keylen 13292d63fdb69Smrg } 13293d63fdb69Smrg 13294d63fdb69Smrg print line 13295d63fdb69Smrg} 132963da084b3Smrg 13297d63fdb69Smrg_ACAWK 13298d63fdb69Smrg_ACEOF 13299d63fdb69Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13300d63fdb69Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 13301d63fdb69Smrg sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 133023da084b3Smrgelse 13303d63fdb69Smrg cat 1330455acc8fcSmrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 1330555acc8fcSmrg || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 13306d63fdb69Smrg_ACEOF 133073da084b3Smrg 1330855acc8fcSmrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 1330955acc8fcSmrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 13310d63fdb69Smrg# trailing colons and then remove the whole line if VPATH becomes empty 13311d63fdb69Smrg# (actually we leave an empty line to preserve line numbers). 13312d63fdb69Smrgif test "x$srcdir" = x.; then 1331355acc8fcSmrg ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 1331455acc8fcSmrgh 1331555acc8fcSmrgs/// 1331655acc8fcSmrgs/^/:/ 1331755acc8fcSmrgs/[ ]*$/:/ 1331855acc8fcSmrgs/:\$(srcdir):/:/g 1331955acc8fcSmrgs/:\${srcdir}:/:/g 1332055acc8fcSmrgs/:@srcdir@:/:/g 1332155acc8fcSmrgs/^:*// 13322d63fdb69Smrgs/:*$// 1332355acc8fcSmrgx 1332455acc8fcSmrgs/\(=[ ]*\).*/\1/ 1332555acc8fcSmrgG 1332655acc8fcSmrgs/\n// 13327d63fdb69Smrgs/^[^=]*=[ ]*$// 13328d63fdb69Smrg}' 133293da084b3Smrgfi 133303da084b3Smrg 13331d63fdb69Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13332d63fdb69Smrgfi # test -n "$CONFIG_FILES" 13333d63fdb69Smrg 13334d63fdb69Smrg# Set up the scripts for CONFIG_HEADERS section. 13335d63fdb69Smrg# No need to generate them if there are no CONFIG_HEADERS. 13336d63fdb69Smrg# This happens for instance with `./config.status Makefile'. 13337d63fdb69Smrgif test -n "$CONFIG_HEADERS"; then 1333855acc8fcSmrgcat >"$ac_tmp/defines.awk" <<\_ACAWK || 13339d63fdb69SmrgBEGIN { 13340d63fdb69Smrg_ACEOF 133413da084b3Smrg 13342d63fdb69Smrg# Transform confdefs.h into an awk script `defines.awk', embedded as 13343d63fdb69Smrg# here-document in config.status, that substitutes the proper values into 13344d63fdb69Smrg# config.h.in to produce config.h. 133453da084b3Smrg 13346d63fdb69Smrg# Create a delimiter string that does not exist in confdefs.h, to ease 13347d63fdb69Smrg# handling of long lines. 13348d63fdb69Smrgac_delim='%!_!# ' 13349d63fdb69Smrgfor ac_last_try in false false :; do 1335055acc8fcSmrg ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 1335155acc8fcSmrg if test -z "$ac_tt"; then 13352d63fdb69Smrg break 13353d63fdb69Smrg elif $ac_last_try; then 1335455acc8fcSmrg as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 13355d63fdb69Smrg else 13356d63fdb69Smrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13357d63fdb69Smrg fi 13358d63fdb69Smrgdone 133593da084b3Smrg 13360d63fdb69Smrg# For the awk script, D is an array of macro values keyed by name, 13361d63fdb69Smrg# likewise P contains macro parameters if any. Preserve backslash 13362d63fdb69Smrg# newline sequences. 133633da084b3Smrg 13364d63fdb69Smrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 13365d63fdb69Smrgsed -n ' 13366d63fdb69Smrgs/.\{148\}/&'"$ac_delim"'/g 13367d63fdb69Smrgt rset 13368d63fdb69Smrg:rset 13369d63fdb69Smrgs/^[ ]*#[ ]*define[ ][ ]*/ / 13370d63fdb69Smrgt def 13371d63fdb69Smrgd 13372d63fdb69Smrg:def 13373d63fdb69Smrgs/\\$// 13374d63fdb69Smrgt bsnl 13375d63fdb69Smrgs/["\\]/\\&/g 13376d63fdb69Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13377d63fdb69SmrgD["\1"]=" \3"/p 13378d63fdb69Smrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 13379d63fdb69Smrgd 13380d63fdb69Smrg:bsnl 13381d63fdb69Smrgs/["\\]/\\&/g 13382d63fdb69Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13383d63fdb69SmrgD["\1"]=" \3\\\\\\n"\\/p 13384d63fdb69Smrgt cont 13385d63fdb69Smrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 13386d63fdb69Smrgt cont 13387d63fdb69Smrgd 13388d63fdb69Smrg:cont 13389d63fdb69Smrgn 13390d63fdb69Smrgs/.\{148\}/&'"$ac_delim"'/g 13391d63fdb69Smrgt clear 13392d63fdb69Smrg:clear 13393d63fdb69Smrgs/\\$// 13394d63fdb69Smrgt bsnlc 13395d63fdb69Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/p 13396d63fdb69Smrgd 13397d63fdb69Smrg:bsnlc 13398d63fdb69Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 13399d63fdb69Smrgb cont 13400d63fdb69Smrg' <confdefs.h | sed ' 13401d63fdb69Smrgs/'"$ac_delim"'/"\\\ 13402d63fdb69Smrg"/g' >>$CONFIG_STATUS || ac_write_fail=1 13403d63fdb69Smrg 13404d63fdb69Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13405d63fdb69Smrg for (key in D) D_is_set[key] = 1 13406d63fdb69Smrg FS = "" 13407d63fdb69Smrg} 13408d63fdb69Smrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 13409d63fdb69Smrg line = \$ 0 13410d63fdb69Smrg split(line, arg, " ") 13411d63fdb69Smrg if (arg[1] == "#") { 13412d63fdb69Smrg defundef = arg[2] 13413d63fdb69Smrg mac1 = arg[3] 13414d63fdb69Smrg } else { 13415d63fdb69Smrg defundef = substr(arg[1], 2) 13416d63fdb69Smrg mac1 = arg[2] 13417d63fdb69Smrg } 13418d63fdb69Smrg split(mac1, mac2, "(") #) 13419d63fdb69Smrg macro = mac2[1] 13420d63fdb69Smrg prefix = substr(line, 1, index(line, defundef) - 1) 13421d63fdb69Smrg if (D_is_set[macro]) { 13422d63fdb69Smrg # Preserve the white space surrounding the "#". 13423d63fdb69Smrg print prefix "define", macro P[macro] D[macro] 13424d63fdb69Smrg next 13425d63fdb69Smrg } else { 13426d63fdb69Smrg # Replace #undef with comments. This is necessary, for example, 13427d63fdb69Smrg # in the case of _POSIX_SOURCE, which is predefined and required 13428d63fdb69Smrg # on some systems where configure will not decide to define it. 13429d63fdb69Smrg if (defundef == "undef") { 13430d63fdb69Smrg print "/*", prefix defundef, macro, "*/" 13431d63fdb69Smrg next 13432d63fdb69Smrg } 13433d63fdb69Smrg } 13434d63fdb69Smrg} 13435d63fdb69Smrg{ print } 13436d63fdb69Smrg_ACAWK 13437d63fdb69Smrg_ACEOF 13438d63fdb69Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 1343955acc8fcSmrg as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 13440d63fdb69Smrgfi # test -n "$CONFIG_HEADERS" 134413da084b3Smrg 134423da084b3Smrg 13443d63fdb69Smrgeval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 13444d63fdb69Smrgshift 13445d63fdb69Smrgfor ac_tag 13446d63fdb69Smrgdo 13447d63fdb69Smrg case $ac_tag in 13448d63fdb69Smrg :[FHLC]) ac_mode=$ac_tag; continue;; 13449d63fdb69Smrg esac 13450d63fdb69Smrg case $ac_mode$ac_tag in 13451d63fdb69Smrg :[FHL]*:*);; 1345255acc8fcSmrg :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 13453d63fdb69Smrg :[FH]-) ac_tag=-:-;; 13454d63fdb69Smrg :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13455d63fdb69Smrg esac 13456d63fdb69Smrg ac_save_IFS=$IFS 13457d63fdb69Smrg IFS=: 13458d63fdb69Smrg set x $ac_tag 13459d63fdb69Smrg IFS=$ac_save_IFS 13460d63fdb69Smrg shift 13461d63fdb69Smrg ac_file=$1 13462d63fdb69Smrg shift 134633da084b3Smrg 13464d63fdb69Smrg case $ac_mode in 13465d63fdb69Smrg :L) ac_source=$1;; 13466d63fdb69Smrg :[FH]) 13467d63fdb69Smrg ac_file_inputs= 13468d63fdb69Smrg for ac_f 13469d63fdb69Smrg do 13470d63fdb69Smrg case $ac_f in 1347155acc8fcSmrg -) ac_f="$ac_tmp/stdin";; 13472d63fdb69Smrg *) # Look for the file first in the build tree, then in the source tree 13473d63fdb69Smrg # (if the path is not absolute). The absolute path cannot be DOS-style, 13474d63fdb69Smrg # because $ac_f cannot contain `:'. 13475d63fdb69Smrg test -f "$ac_f" || 13476d63fdb69Smrg case $ac_f in 13477d63fdb69Smrg [\\/$]*) false;; 13478d63fdb69Smrg *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13479d63fdb69Smrg esac || 1348055acc8fcSmrg as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 13481d63fdb69Smrg esac 13482d63fdb69Smrg case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 1348355acc8fcSmrg as_fn_append ac_file_inputs " '$ac_f'" 13484d63fdb69Smrg done 134853da084b3Smrg 13486d63fdb69Smrg # Let's still pretend it is `configure' which instantiates (i.e., don't 13487d63fdb69Smrg # use $as_me), people would be surprised to read: 13488d63fdb69Smrg # /* config.h. Generated by config.status. */ 13489d63fdb69Smrg configure_input='Generated from '` 13490d63fdb69Smrg $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13491d63fdb69Smrg `' by configure.' 13492d63fdb69Smrg if test x"$ac_file" != x-; then 13493d63fdb69Smrg configure_input="$ac_file. $configure_input" 1349455acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13495d63fdb69Smrg$as_echo "$as_me: creating $ac_file" >&6;} 13496d63fdb69Smrg fi 13497d63fdb69Smrg # Neutralize special characters interpreted by sed in replacement strings. 13498d63fdb69Smrg case $configure_input in #( 13499d63fdb69Smrg *\&* | *\|* | *\\* ) 13500d63fdb69Smrg ac_sed_conf_input=`$as_echo "$configure_input" | 13501d63fdb69Smrg sed 's/[\\\\&|]/\\\\&/g'`;; #( 13502d63fdb69Smrg *) ac_sed_conf_input=$configure_input;; 13503d63fdb69Smrg esac 135043da084b3Smrg 13505d63fdb69Smrg case $ac_tag in 1350655acc8fcSmrg *:-:* | *:-) cat >"$ac_tmp/stdin" \ 1350755acc8fcSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 13508d63fdb69Smrg esac 13509d63fdb69Smrg ;; 13510d63fdb69Smrg esac 135113da084b3Smrg 13512d63fdb69Smrg ac_dir=`$as_dirname -- "$ac_file" || 13513d63fdb69Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13514d63fdb69Smrg X"$ac_file" : 'X\(//\)[^/]' \| \ 13515d63fdb69Smrg X"$ac_file" : 'X\(//\)$' \| \ 13516d63fdb69Smrg X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13517d63fdb69Smrg$as_echo X"$ac_file" | 13518d63fdb69Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13519d63fdb69Smrg s//\1/ 13520d63fdb69Smrg q 13521d63fdb69Smrg } 13522d63fdb69Smrg /^X\(\/\/\)[^/].*/{ 13523d63fdb69Smrg s//\1/ 13524d63fdb69Smrg q 13525d63fdb69Smrg } 13526d63fdb69Smrg /^X\(\/\/\)$/{ 13527d63fdb69Smrg s//\1/ 13528d63fdb69Smrg q 13529d63fdb69Smrg } 13530d63fdb69Smrg /^X\(\/\).*/{ 13531d63fdb69Smrg s//\1/ 13532d63fdb69Smrg q 13533d63fdb69Smrg } 13534d63fdb69Smrg s/.*/./; q'` 1353555acc8fcSmrg as_dir="$ac_dir"; as_fn_mkdir_p 13536d63fdb69Smrg ac_builddir=. 135373da084b3Smrg 13538d63fdb69Smrgcase "$ac_dir" in 13539d63fdb69Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13540d63fdb69Smrg*) 13541d63fdb69Smrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 13542d63fdb69Smrg # A ".." for each directory in $ac_dir_suffix. 13543d63fdb69Smrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13544d63fdb69Smrg case $ac_top_builddir_sub in 13545d63fdb69Smrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13546d63fdb69Smrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13547d63fdb69Smrg esac ;; 13548d63fdb69Smrgesac 13549d63fdb69Smrgac_abs_top_builddir=$ac_pwd 13550d63fdb69Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix 13551d63fdb69Smrg# for backward compatibility: 13552d63fdb69Smrgac_top_builddir=$ac_top_build_prefix 13553d63fdb69Smrg 13554d63fdb69Smrgcase $srcdir in 13555d63fdb69Smrg .) # We are building in place. 13556d63fdb69Smrg ac_srcdir=. 13557d63fdb69Smrg ac_top_srcdir=$ac_top_builddir_sub 13558d63fdb69Smrg ac_abs_top_srcdir=$ac_pwd ;; 13559d63fdb69Smrg [\\/]* | ?:[\\/]* ) # Absolute name. 13560d63fdb69Smrg ac_srcdir=$srcdir$ac_dir_suffix; 13561d63fdb69Smrg ac_top_srcdir=$srcdir 13562d63fdb69Smrg ac_abs_top_srcdir=$srcdir ;; 13563d63fdb69Smrg *) # Relative name. 13564d63fdb69Smrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13565d63fdb69Smrg ac_top_srcdir=$ac_top_build_prefix$srcdir 13566d63fdb69Smrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13567d63fdb69Smrgesac 13568d63fdb69Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13569d63fdb69Smrg 13570d63fdb69Smrg 13571d63fdb69Smrg case $ac_mode in 13572d63fdb69Smrg :F) 13573d63fdb69Smrg # 13574d63fdb69Smrg # CONFIG_FILE 13575d63fdb69Smrg # 135763da084b3Smrg 13577d63fdb69Smrg case $INSTALL in 13578d63fdb69Smrg [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13579d63fdb69Smrg *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13580d63fdb69Smrg esac 13581d63fdb69Smrg ac_MKDIR_P=$MKDIR_P 13582d63fdb69Smrg case $MKDIR_P in 13583d63fdb69Smrg [\\/$]* | ?:[\\/]* ) ;; 13584d63fdb69Smrg */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 13585d63fdb69Smrg esac 135863da084b3Smrg_ACEOF 135873da084b3Smrg 13588d63fdb69Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13589d63fdb69Smrg# If the template does not know about datarootdir, expand it. 13590d63fdb69Smrg# FIXME: This hack should be removed a few years after 2.60. 13591d63fdb69Smrgac_datarootdir_hack=; ac_datarootdir_seen= 13592d63fdb69Smrgac_sed_dataroot=' 13593d63fdb69Smrg/datarootdir/ { 13594d63fdb69Smrg p 13595d63fdb69Smrg q 13596d63fdb69Smrg} 13597d63fdb69Smrg/@datadir@/p 13598d63fdb69Smrg/@docdir@/p 13599d63fdb69Smrg/@infodir@/p 13600d63fdb69Smrg/@localedir@/p 1360155acc8fcSmrg/@mandir@/p' 13602d63fdb69Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13603d63fdb69Smrg*datarootdir*) ac_datarootdir_seen=yes;; 13604d63fdb69Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 1360555acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13606d63fdb69Smrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 136073da084b3Smrg_ACEOF 13608d63fdb69Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13609d63fdb69Smrg ac_datarootdir_hack=' 13610d63fdb69Smrg s&@datadir@&$datadir&g 13611d63fdb69Smrg s&@docdir@&$docdir&g 13612d63fdb69Smrg s&@infodir@&$infodir&g 13613d63fdb69Smrg s&@localedir@&$localedir&g 13614d63fdb69Smrg s&@mandir@&$mandir&g 1361555acc8fcSmrg s&\\\${datarootdir}&$datarootdir&g' ;; 13616d63fdb69Smrgesac 136173da084b3Smrg_ACEOF 136183da084b3Smrg 13619d63fdb69Smrg# Neutralize VPATH when `$srcdir' = `.'. 13620d63fdb69Smrg# Shell code in configure.ac might set extrasub. 13621d63fdb69Smrg# FIXME: do we really want to maintain this feature? 13622d63fdb69Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13623d63fdb69Smrgac_sed_extra="$ac_vpsub 13624d63fdb69Smrg$extrasub 13625d63fdb69Smrg_ACEOF 13626d63fdb69Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13627d63fdb69Smrg:t 13628d63fdb69Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13629d63fdb69Smrgs|@configure_input@|$ac_sed_conf_input|;t t 13630d63fdb69Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t 13631d63fdb69Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t 13632d63fdb69Smrgs&@srcdir@&$ac_srcdir&;t t 13633d63fdb69Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t 13634d63fdb69Smrgs&@top_srcdir@&$ac_top_srcdir&;t t 13635d63fdb69Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13636d63fdb69Smrgs&@builddir@&$ac_builddir&;t t 13637d63fdb69Smrgs&@abs_builddir@&$ac_abs_builddir&;t t 13638d63fdb69Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13639d63fdb69Smrgs&@INSTALL@&$ac_INSTALL&;t t 13640d63fdb69Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t 13641d63fdb69Smrg$ac_datarootdir_hack 13642d63fdb69Smrg" 1364355acc8fcSmrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 1364455acc8fcSmrg >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 136453da084b3Smrg 13646d63fdb69Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 1364755acc8fcSmrg { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 1364855acc8fcSmrg { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 1364955acc8fcSmrg "$ac_tmp/out"`; test -z "$ac_out"; } && 1365055acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 1365155acc8fcSmrgwhich seems to be undefined. Please make sure it is defined" >&5 13652d63fdb69Smrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 1365355acc8fcSmrgwhich seems to be undefined. Please make sure it is defined" >&2;} 136543da084b3Smrg 1365555acc8fcSmrg rm -f "$ac_tmp/stdin" 13656d63fdb69Smrg case $ac_file in 1365755acc8fcSmrg -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 1365855acc8fcSmrg *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 13659d63fdb69Smrg esac \ 1366055acc8fcSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13661d63fdb69Smrg ;; 13662d63fdb69Smrg :H) 13663d63fdb69Smrg # 13664d63fdb69Smrg # CONFIG_HEADER 13665d63fdb69Smrg # 13666d63fdb69Smrg if test x"$ac_file" != x-; then 13667d63fdb69Smrg { 13668d63fdb69Smrg $as_echo "/* $configure_input */" \ 1366955acc8fcSmrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 1367055acc8fcSmrg } >"$ac_tmp/config.h" \ 1367155acc8fcSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 1367255acc8fcSmrg if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 1367355acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13674d63fdb69Smrg$as_echo "$as_me: $ac_file is unchanged" >&6;} 13675d63fdb69Smrg else 13676d63fdb69Smrg rm -f "$ac_file" 1367755acc8fcSmrg mv "$ac_tmp/config.h" "$ac_file" \ 1367855acc8fcSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13679d63fdb69Smrg fi 13680d63fdb69Smrg else 13681d63fdb69Smrg $as_echo "/* $configure_input */" \ 1368255acc8fcSmrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 1368355acc8fcSmrg || as_fn_error $? "could not create -" "$LINENO" 5 13684d63fdb69Smrg fi 13685d63fdb69Smrg# Compute "$ac_file"'s index in $config_headers. 13686d63fdb69Smrg_am_arg="$ac_file" 13687d63fdb69Smrg_am_stamp_count=1 13688d63fdb69Smrgfor _am_header in $config_headers :; do 13689d63fdb69Smrg case $_am_header in 13690d63fdb69Smrg $_am_arg | $_am_arg:* ) 13691d63fdb69Smrg break ;; 13692d63fdb69Smrg * ) 13693d63fdb69Smrg _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13694d63fdb69Smrg esac 13695d63fdb69Smrgdone 13696d63fdb69Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 13697d63fdb69Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13698d63fdb69Smrg X"$_am_arg" : 'X\(//\)[^/]' \| \ 13699d63fdb69Smrg X"$_am_arg" : 'X\(//\)$' \| \ 13700d63fdb69Smrg X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 13701d63fdb69Smrg$as_echo X"$_am_arg" | 13702d63fdb69Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13703d63fdb69Smrg s//\1/ 13704d63fdb69Smrg q 13705d63fdb69Smrg } 13706d63fdb69Smrg /^X\(\/\/\)[^/].*/{ 13707d63fdb69Smrg s//\1/ 13708d63fdb69Smrg q 13709d63fdb69Smrg } 13710d63fdb69Smrg /^X\(\/\/\)$/{ 13711d63fdb69Smrg s//\1/ 13712d63fdb69Smrg q 13713d63fdb69Smrg } 13714d63fdb69Smrg /^X\(\/\).*/{ 13715d63fdb69Smrg s//\1/ 13716d63fdb69Smrg q 13717d63fdb69Smrg } 13718d63fdb69Smrg s/.*/./; q'`/stamp-h$_am_stamp_count 13719d63fdb69Smrg ;; 137203da084b3Smrg 1372155acc8fcSmrg :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13722d63fdb69Smrg$as_echo "$as_me: executing $ac_file commands" >&6;} 13723d63fdb69Smrg ;; 13724d63fdb69Smrg esac 137253da084b3Smrg 137263da084b3Smrg 13727d63fdb69Smrg case $ac_file$ac_mode in 13728d63fdb69Smrg "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13729d63fdb69Smrg # Autoconf 2.62 quotes --file arguments for eval, but not when files 13730d63fdb69Smrg # are listed without --file. Let's play safe and only enable the eval 13731d63fdb69Smrg # if we detect the quoting. 13732d63fdb69Smrg case $CONFIG_FILES in 13733d63fdb69Smrg *\'*) eval set x "$CONFIG_FILES" ;; 13734d63fdb69Smrg *) set x $CONFIG_FILES ;; 13735d63fdb69Smrg esac 13736d63fdb69Smrg shift 13737d63fdb69Smrg for mf 13738d63fdb69Smrg do 13739d63fdb69Smrg # Strip MF so we end up with the name of the file. 13740d63fdb69Smrg mf=`echo "$mf" | sed -e 's/:.*$//'` 13741d63fdb69Smrg # Check whether this is an Automake generated Makefile or not. 13742d63fdb69Smrg # We used to match only the files named `Makefile.in', but 13743d63fdb69Smrg # some people rename them; so instead we look at the file content. 13744d63fdb69Smrg # Grep'ing the first line is not enough: some people post-process 13745d63fdb69Smrg # each Makefile.in and add a new line on top of each file to say so. 13746d63fdb69Smrg # Grep'ing the whole file is not good either: AIX grep has a line 13747d63fdb69Smrg # limit of 2048, but all sed's we know have understand at least 4000. 13748d63fdb69Smrg if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 13749d63fdb69Smrg dirpart=`$as_dirname -- "$mf" || 13750d63fdb69Smrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13751d63fdb69Smrg X"$mf" : 'X\(//\)[^/]' \| \ 13752d63fdb69Smrg X"$mf" : 'X\(//\)$' \| \ 13753d63fdb69Smrg X"$mf" : 'X\(/\)' \| . 2>/dev/null || 13754d63fdb69Smrg$as_echo X"$mf" | 13755d63fdb69Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13756d63fdb69Smrg s//\1/ 13757d63fdb69Smrg q 13758d63fdb69Smrg } 13759d63fdb69Smrg /^X\(\/\/\)[^/].*/{ 13760d63fdb69Smrg s//\1/ 13761d63fdb69Smrg q 13762d63fdb69Smrg } 13763d63fdb69Smrg /^X\(\/\/\)$/{ 13764d63fdb69Smrg s//\1/ 13765d63fdb69Smrg q 13766d63fdb69Smrg } 13767d63fdb69Smrg /^X\(\/\).*/{ 13768d63fdb69Smrg s//\1/ 13769d63fdb69Smrg q 13770d63fdb69Smrg } 13771d63fdb69Smrg s/.*/./; q'` 13772d63fdb69Smrg else 13773d63fdb69Smrg continue 13774d63fdb69Smrg fi 13775d63fdb69Smrg # Extract the definition of DEPDIR, am__include, and am__quote 13776d63fdb69Smrg # from the Makefile without running `make'. 13777d63fdb69Smrg DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 13778d63fdb69Smrg test -z "$DEPDIR" && continue 13779d63fdb69Smrg am__include=`sed -n 's/^am__include = //p' < "$mf"` 13780d63fdb69Smrg test -z "am__include" && continue 13781d63fdb69Smrg am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 13782d63fdb69Smrg # When using ansi2knr, U may be empty or an underscore; expand it 13783d63fdb69Smrg U=`sed -n 's/^U = //p' < "$mf"` 13784d63fdb69Smrg # Find all dependency output files, they are included files with 13785d63fdb69Smrg # $(DEPDIR) in their names. We invoke sed twice because it is the 13786d63fdb69Smrg # simplest approach to changing $(DEPDIR) to its actual value in the 13787d63fdb69Smrg # expansion. 13788d63fdb69Smrg for file in `sed -n " 13789d63fdb69Smrg s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 13790d63fdb69Smrg sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 13791d63fdb69Smrg # Make sure the directory exists. 13792d63fdb69Smrg test -f "$dirpart/$file" && continue 13793d63fdb69Smrg fdir=`$as_dirname -- "$file" || 13794d63fdb69Smrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13795d63fdb69Smrg X"$file" : 'X\(//\)[^/]' \| \ 13796d63fdb69Smrg X"$file" : 'X\(//\)$' \| \ 13797d63fdb69Smrg X"$file" : 'X\(/\)' \| . 2>/dev/null || 13798d63fdb69Smrg$as_echo X"$file" | 13799d63fdb69Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13800d63fdb69Smrg s//\1/ 13801d63fdb69Smrg q 13802d63fdb69Smrg } 13803d63fdb69Smrg /^X\(\/\/\)[^/].*/{ 13804d63fdb69Smrg s//\1/ 13805d63fdb69Smrg q 13806d63fdb69Smrg } 13807d63fdb69Smrg /^X\(\/\/\)$/{ 13808d63fdb69Smrg s//\1/ 13809d63fdb69Smrg q 13810d63fdb69Smrg } 13811d63fdb69Smrg /^X\(\/\).*/{ 13812d63fdb69Smrg s//\1/ 13813d63fdb69Smrg q 13814d63fdb69Smrg } 13815d63fdb69Smrg s/.*/./; q'` 1381655acc8fcSmrg as_dir=$dirpart/$fdir; as_fn_mkdir_p 13817d63fdb69Smrg # echo "creating $dirpart/$file" 13818d63fdb69Smrg echo '# dummy' > "$dirpart/$file" 13819d63fdb69Smrg done 13820d63fdb69Smrg done 13821d63fdb69Smrg} 13822d63fdb69Smrg ;; 13823d63fdb69Smrg "libtool":C) 138243da084b3Smrg 13825d63fdb69Smrg # See if we are running on zsh, and set the options which allow our 13826d63fdb69Smrg # commands through without removal of \ escapes. 13827d63fdb69Smrg if test -n "${ZSH_VERSION+set}" ; then 13828d63fdb69Smrg setopt NO_GLOB_SUBST 13829d63fdb69Smrg fi 138303da084b3Smrg 13831d63fdb69Smrg cfgfile="${ofile}T" 13832d63fdb69Smrg trap "$RM \"$cfgfile\"; exit 1" 1 2 15 13833d63fdb69Smrg $RM "$cfgfile" 138343da084b3Smrg 13835d63fdb69Smrg cat <<_LT_EOF >> "$cfgfile" 13836d63fdb69Smrg#! $SHELL 138373da084b3Smrg 13838d63fdb69Smrg# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 13839d63fdb69Smrg# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 13840d63fdb69Smrg# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13841d63fdb69Smrg# NOTE: Changes made to this file will be lost: look at ltmain.sh. 13842d63fdb69Smrg# 13843d63fdb69Smrg# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 1384455acc8fcSmrg# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, 1384555acc8fcSmrg# Inc. 13846d63fdb69Smrg# Written by Gordon Matzigkeit, 1996 13847d63fdb69Smrg# 13848d63fdb69Smrg# This file is part of GNU Libtool. 13849d63fdb69Smrg# 13850d63fdb69Smrg# GNU Libtool is free software; you can redistribute it and/or 13851d63fdb69Smrg# modify it under the terms of the GNU General Public License as 13852d63fdb69Smrg# published by the Free Software Foundation; either version 2 of 13853d63fdb69Smrg# the License, or (at your option) any later version. 13854d63fdb69Smrg# 13855d63fdb69Smrg# As a special exception to the GNU General Public License, 13856d63fdb69Smrg# if you distribute this file as part of a program or library that 13857d63fdb69Smrg# is built using GNU Libtool, you may include this file under the 13858d63fdb69Smrg# same distribution terms that you use for the rest of that program. 13859d63fdb69Smrg# 13860d63fdb69Smrg# GNU Libtool is distributed in the hope that it will be useful, 13861d63fdb69Smrg# but WITHOUT ANY WARRANTY; without even the implied warranty of 13862d63fdb69Smrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13863d63fdb69Smrg# GNU General Public License for more details. 13864d63fdb69Smrg# 13865d63fdb69Smrg# You should have received a copy of the GNU General Public License 13866d63fdb69Smrg# along with GNU Libtool; see the file COPYING. If not, a copy 13867d63fdb69Smrg# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 13868d63fdb69Smrg# obtained by writing to the Free Software Foundation, Inc., 13869d63fdb69Smrg# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 138703da084b3Smrg 138713da084b3Smrg 13872d63fdb69Smrg# The names of the tagged configurations supported by this script. 13873d63fdb69Smrgavailable_tags="" 138743da084b3Smrg 13875d63fdb69Smrg# ### BEGIN LIBTOOL CONFIG 138763da084b3Smrg 13877d63fdb69Smrg# Which release of libtool.m4 was used? 13878d63fdb69Smrgmacro_version=$macro_version 13879d63fdb69Smrgmacro_revision=$macro_revision 138803da084b3Smrg 13881d63fdb69Smrg# Whether or not to build shared libraries. 13882d63fdb69Smrgbuild_libtool_libs=$enable_shared 138833da084b3Smrg 13884d63fdb69Smrg# Whether or not to build static libraries. 13885d63fdb69Smrgbuild_old_libs=$enable_static 138863da084b3Smrg 13887d63fdb69Smrg# What type of objects to build. 13888d63fdb69Smrgpic_mode=$pic_mode 138893da084b3Smrg 13890d63fdb69Smrg# Whether or not to optimize for fast installation. 13891d63fdb69Smrgfast_install=$enable_fast_install 138923da084b3Smrg 1389355acc8fcSmrg# Shell to use when invoking shell scripts. 1389455acc8fcSmrgSHELL=$lt_SHELL 1389555acc8fcSmrg 1389655acc8fcSmrg# An echo program that protects backslashes. 1389755acc8fcSmrgECHO=$lt_ECHO 1389855acc8fcSmrg 13899d63fdb69Smrg# The host system. 13900d63fdb69Smrghost_alias=$host_alias 13901d63fdb69Smrghost=$host 13902d63fdb69Smrghost_os=$host_os 139033da084b3Smrg 13904d63fdb69Smrg# The build system. 13905d63fdb69Smrgbuild_alias=$build_alias 13906d63fdb69Smrgbuild=$build 13907d63fdb69Smrgbuild_os=$build_os 139083da084b3Smrg 13909d63fdb69Smrg# A sed program that does not truncate output. 13910d63fdb69SmrgSED=$lt_SED 139113da084b3Smrg 13912d63fdb69Smrg# Sed that helps us avoid accidentally triggering echo(1) options like -n. 13913d63fdb69SmrgXsed="\$SED -e 1s/^X//" 139143da084b3Smrg 13915d63fdb69Smrg# A grep program that handles long lines. 13916d63fdb69SmrgGREP=$lt_GREP 139173da084b3Smrg 13918d63fdb69Smrg# An ERE matcher. 13919d63fdb69SmrgEGREP=$lt_EGREP 139203da084b3Smrg 13921d63fdb69Smrg# A literal string matcher. 13922d63fdb69SmrgFGREP=$lt_FGREP 139233da084b3Smrg 13924d63fdb69Smrg# A BSD- or MS-compatible name lister. 13925d63fdb69SmrgNM=$lt_NM 139263da084b3Smrg 13927d63fdb69Smrg# Whether we need soft or hard links. 13928d63fdb69SmrgLN_S=$lt_LN_S 139293da084b3Smrg 13930d63fdb69Smrg# What is the maximum length of a command? 13931d63fdb69Smrgmax_cmd_len=$max_cmd_len 139323da084b3Smrg 13933d63fdb69Smrg# Object file suffix (normally "o"). 13934d63fdb69Smrgobjext=$ac_objext 139353da084b3Smrg 13936d63fdb69Smrg# Executable file suffix (normally ""). 13937d63fdb69Smrgexeext=$exeext 139383da084b3Smrg 13939d63fdb69Smrg# whether the shell understands "unset". 13940d63fdb69Smrglt_unset=$lt_unset 139413da084b3Smrg 13942d63fdb69Smrg# turn spaces into newlines. 13943d63fdb69SmrgSP2NL=$lt_lt_SP2NL 139443da084b3Smrg 13945d63fdb69Smrg# turn newlines into spaces. 13946d63fdb69SmrgNL2SP=$lt_lt_NL2SP 139473da084b3Smrg 13948d63fdb69Smrg# An object symbol dumper. 13949d63fdb69SmrgOBJDUMP=$lt_OBJDUMP 13950d63fdb69Smrg 13951d63fdb69Smrg# Method to check whether dependent libraries are shared objects. 13952d63fdb69Smrgdeplibs_check_method=$lt_deplibs_check_method 13953d63fdb69Smrg 13954d63fdb69Smrg# Command to use when deplibs_check_method == "file_magic". 13955d63fdb69Smrgfile_magic_cmd=$lt_file_magic_cmd 13956d63fdb69Smrg 13957d63fdb69Smrg# The archiver. 13958d63fdb69SmrgAR=$lt_AR 13959d63fdb69SmrgAR_FLAGS=$lt_AR_FLAGS 13960d63fdb69Smrg 13961d63fdb69Smrg# A symbol stripping program. 13962d63fdb69SmrgSTRIP=$lt_STRIP 13963d63fdb69Smrg 13964d63fdb69Smrg# Commands used to install an old-style archive. 13965d63fdb69SmrgRANLIB=$lt_RANLIB 13966d63fdb69Smrgold_postinstall_cmds=$lt_old_postinstall_cmds 13967d63fdb69Smrgold_postuninstall_cmds=$lt_old_postuninstall_cmds 13968d63fdb69Smrg 1396955acc8fcSmrg# Whether to use a lock for old archive extraction. 1397055acc8fcSmrglock_old_archive_extraction=$lock_old_archive_extraction 1397155acc8fcSmrg 13972d63fdb69Smrg# A C compiler. 13973d63fdb69SmrgLTCC=$lt_CC 13974d63fdb69Smrg 13975d63fdb69Smrg# LTCC compiler flags. 13976d63fdb69SmrgLTCFLAGS=$lt_CFLAGS 13977d63fdb69Smrg 13978d63fdb69Smrg# Take the output of nm and produce a listing of raw symbols and C names. 13979d63fdb69Smrgglobal_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 139803da084b3Smrg 13981d63fdb69Smrg# Transform the output of nm in a proper C declaration. 13982d63fdb69Smrgglobal_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 139833da084b3Smrg 13984d63fdb69Smrg# Transform the output of nm in a C name address pair. 13985d63fdb69Smrgglobal_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 139863da084b3Smrg 13987d63fdb69Smrg# Transform the output of nm in a C name address pair when lib prefix is needed. 13988d63fdb69Smrgglobal_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 139893da084b3Smrg 13990d63fdb69Smrg# The name of the directory that contains temporary libtool files. 13991d63fdb69Smrgobjdir=$objdir 139923da084b3Smrg 13993d63fdb69Smrg# Used to examine libraries when file_magic_cmd begins with "file". 13994d63fdb69SmrgMAGIC_CMD=$MAGIC_CMD 139953da084b3Smrg 13996d63fdb69Smrg# Must we lock files when doing compilation? 13997d63fdb69Smrgneed_locks=$lt_need_locks 139983da084b3Smrg 13999d63fdb69Smrg# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 14000d63fdb69SmrgDSYMUTIL=$lt_DSYMUTIL 140013da084b3Smrg 14002d63fdb69Smrg# Tool to change global to local symbols on Mac OS X. 14003d63fdb69SmrgNMEDIT=$lt_NMEDIT 140043da084b3Smrg 14005d63fdb69Smrg# Tool to manipulate fat objects and archives on Mac OS X. 14006d63fdb69SmrgLIPO=$lt_LIPO 140073da084b3Smrg 14008d63fdb69Smrg# ldd/readelf like tool for Mach-O binaries on Mac OS X. 14009d63fdb69SmrgOTOOL=$lt_OTOOL 140103da084b3Smrg 14011d63fdb69Smrg# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 14012d63fdb69SmrgOTOOL64=$lt_OTOOL64 140133da084b3Smrg 14014d63fdb69Smrg# Old archive suffix (normally "a"). 14015d63fdb69Smrglibext=$libext 140163da084b3Smrg 14017d63fdb69Smrg# Shared library suffix (normally ".so"). 14018d63fdb69Smrgshrext_cmds=$lt_shrext_cmds 140193da084b3Smrg 14020d63fdb69Smrg# The commands to extract the exported symbol list from a shared archive. 14021d63fdb69Smrgextract_expsyms_cmds=$lt_extract_expsyms_cmds 140223da084b3Smrg 14023d63fdb69Smrg# Variables whose values should be saved in libtool wrapper scripts and 14024d63fdb69Smrg# restored at link time. 14025d63fdb69Smrgvariables_saved_for_relink=$lt_variables_saved_for_relink 140263da084b3Smrg 14027d63fdb69Smrg# Do we need the "lib" prefix for modules? 14028d63fdb69Smrgneed_lib_prefix=$need_lib_prefix 140293da084b3Smrg 14030d63fdb69Smrg# Do we need a version for libraries? 14031d63fdb69Smrgneed_version=$need_version 140323da084b3Smrg 14033d63fdb69Smrg# Library versioning type. 14034d63fdb69Smrgversion_type=$version_type 140353da084b3Smrg 14036d63fdb69Smrg# Shared library runtime path variable. 14037d63fdb69Smrgrunpath_var=$runpath_var 140383da084b3Smrg 14039d63fdb69Smrg# Shared library path variable. 14040d63fdb69Smrgshlibpath_var=$shlibpath_var 140413da084b3Smrg 14042d63fdb69Smrg# Is shlibpath searched before the hard-coded library search path? 14043d63fdb69Smrgshlibpath_overrides_runpath=$shlibpath_overrides_runpath 140443da084b3Smrg 14045d63fdb69Smrg# Format of library name prefix. 14046d63fdb69Smrglibname_spec=$lt_libname_spec 140473da084b3Smrg 14048d63fdb69Smrg# List of archive names. First name is the real one, the rest are links. 14049d63fdb69Smrg# The last name is the one that the linker finds with -lNAME 14050d63fdb69Smrglibrary_names_spec=$lt_library_names_spec 140513da084b3Smrg 14052d63fdb69Smrg# The coded name of the library, if different from the real name. 14053d63fdb69Smrgsoname_spec=$lt_soname_spec 140543da084b3Smrg 1405555acc8fcSmrg# Permission mode override for installation of shared libraries. 1405655acc8fcSmrginstall_override_mode=$lt_install_override_mode 1405755acc8fcSmrg 14058d63fdb69Smrg# Command to use after installation of a shared archive. 14059d63fdb69Smrgpostinstall_cmds=$lt_postinstall_cmds 140603da084b3Smrg 14061d63fdb69Smrg# Command to use after uninstallation of a shared archive. 14062d63fdb69Smrgpostuninstall_cmds=$lt_postuninstall_cmds 140633da084b3Smrg 14064d63fdb69Smrg# Commands used to finish a libtool library installation in a directory. 14065d63fdb69Smrgfinish_cmds=$lt_finish_cmds 140663da084b3Smrg 14067d63fdb69Smrg# As "finish_cmds", except a single script fragment to be evaled but 14068d63fdb69Smrg# not shown. 14069d63fdb69Smrgfinish_eval=$lt_finish_eval 140703da084b3Smrg 14071d63fdb69Smrg# Whether we should hardcode library paths into libraries. 14072d63fdb69Smrghardcode_into_libs=$hardcode_into_libs 140733da084b3Smrg 14074d63fdb69Smrg# Compile-time system search path for libraries. 14075d63fdb69Smrgsys_lib_search_path_spec=$lt_sys_lib_search_path_spec 140763da084b3Smrg 14077d63fdb69Smrg# Run-time system search path for libraries. 14078d63fdb69Smrgsys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 140793da084b3Smrg 14080d63fdb69Smrg# Whether dlopen is supported. 14081d63fdb69Smrgdlopen_support=$enable_dlopen 140823da084b3Smrg 14083d63fdb69Smrg# Whether dlopen of programs is supported. 14084d63fdb69Smrgdlopen_self=$enable_dlopen_self 140853da084b3Smrg 14086d63fdb69Smrg# Whether dlopen of statically linked programs is supported. 14087d63fdb69Smrgdlopen_self_static=$enable_dlopen_self_static 140883da084b3Smrg 14089d63fdb69Smrg# Commands to strip libraries. 14090d63fdb69Smrgold_striplib=$lt_old_striplib 14091d63fdb69Smrgstriplib=$lt_striplib 140923da084b3Smrg 140933da084b3Smrg 14094d63fdb69Smrg# The linker used to build libraries. 14095d63fdb69SmrgLD=$lt_LD 140963da084b3Smrg 1409755acc8fcSmrg# How to create reloadable object files. 1409855acc8fcSmrgreload_flag=$lt_reload_flag 1409955acc8fcSmrgreload_cmds=$lt_reload_cmds 1410055acc8fcSmrg 14101d63fdb69Smrg# Commands used to build an old-style archive. 14102d63fdb69Smrgold_archive_cmds=$lt_old_archive_cmds 141033da084b3Smrg 14104d63fdb69Smrg# A language specific compiler. 14105d63fdb69SmrgCC=$lt_compiler 141063da084b3Smrg 14107d63fdb69Smrg# Is the compiler the GNU compiler? 14108d63fdb69Smrgwith_gcc=$GCC 14109d63fdb69Smrg 14110d63fdb69Smrg# Compiler flag to turn off builtin functions. 14111d63fdb69Smrgno_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 14112d63fdb69Smrg 14113d63fdb69Smrg# How to pass a linker flag through the compiler. 14114d63fdb69Smrgwl=$lt_lt_prog_compiler_wl 14115d63fdb69Smrg 14116d63fdb69Smrg# Additional compiler flags for building library objects. 14117d63fdb69Smrgpic_flag=$lt_lt_prog_compiler_pic 14118d63fdb69Smrg 14119d63fdb69Smrg# Compiler flag to prevent dynamic linking. 14120d63fdb69Smrglink_static_flag=$lt_lt_prog_compiler_static 14121d63fdb69Smrg 14122d63fdb69Smrg# Does compiler simultaneously support -c and -o options? 14123d63fdb69Smrgcompiler_c_o=$lt_lt_cv_prog_compiler_c_o 14124d63fdb69Smrg 14125d63fdb69Smrg# Whether or not to add -lc for building shared libraries. 14126d63fdb69Smrgbuild_libtool_need_lc=$archive_cmds_need_lc 14127d63fdb69Smrg 14128d63fdb69Smrg# Whether or not to disallow shared libs when runtime libs are static. 14129d63fdb69Smrgallow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 14130d63fdb69Smrg 14131d63fdb69Smrg# Compiler flag to allow reflexive dlopens. 14132d63fdb69Smrgexport_dynamic_flag_spec=$lt_export_dynamic_flag_spec 14133d63fdb69Smrg 14134d63fdb69Smrg# Compiler flag to generate shared objects directly from archives. 14135d63fdb69Smrgwhole_archive_flag_spec=$lt_whole_archive_flag_spec 14136d63fdb69Smrg 14137d63fdb69Smrg# Whether the compiler copes with passing no objects directly. 14138d63fdb69Smrgcompiler_needs_object=$lt_compiler_needs_object 14139d63fdb69Smrg 14140d63fdb69Smrg# Create an old-style archive from a shared archive. 14141d63fdb69Smrgold_archive_from_new_cmds=$lt_old_archive_from_new_cmds 14142d63fdb69Smrg 14143d63fdb69Smrg# Create a temporary old-style archive to link instead of a shared archive. 14144d63fdb69Smrgold_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 141453da084b3Smrg 14146d63fdb69Smrg# Commands used to build a shared archive. 14147d63fdb69Smrgarchive_cmds=$lt_archive_cmds 14148d63fdb69Smrgarchive_expsym_cmds=$lt_archive_expsym_cmds 141493da084b3Smrg 14150d63fdb69Smrg# Commands used to build a loadable module if different from building 14151d63fdb69Smrg# a shared archive. 14152d63fdb69Smrgmodule_cmds=$lt_module_cmds 14153d63fdb69Smrgmodule_expsym_cmds=$lt_module_expsym_cmds 141543da084b3Smrg 14155d63fdb69Smrg# Whether we are building with GNU ld or not. 14156d63fdb69Smrgwith_gnu_ld=$lt_with_gnu_ld 141573da084b3Smrg 14158d63fdb69Smrg# Flag that allows shared libraries with undefined symbols to be built. 14159d63fdb69Smrgallow_undefined_flag=$lt_allow_undefined_flag 141603da084b3Smrg 14161d63fdb69Smrg# Flag that enforces no undefined symbols. 14162d63fdb69Smrgno_undefined_flag=$lt_no_undefined_flag 141633da084b3Smrg 14164d63fdb69Smrg# Flag to hardcode \$libdir into a binary during linking. 14165d63fdb69Smrg# This must work even if \$libdir does not exist 14166d63fdb69Smrghardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 141673da084b3Smrg 14168d63fdb69Smrg# If ld is used when linking, flag to hardcode \$libdir into a binary 14169d63fdb69Smrg# during linking. This must work even if \$libdir does not exist. 14170d63fdb69Smrghardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 141713da084b3Smrg 14172d63fdb69Smrg# Whether we need a single "-rpath" flag with a separated argument. 14173d63fdb69Smrghardcode_libdir_separator=$lt_hardcode_libdir_separator 141743da084b3Smrg 14175d63fdb69Smrg# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14176d63fdb69Smrg# DIR into the resulting binary. 14177d63fdb69Smrghardcode_direct=$hardcode_direct 141783da084b3Smrg 14179d63fdb69Smrg# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14180d63fdb69Smrg# DIR into the resulting binary and the resulting library dependency is 14181d63fdb69Smrg# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 14182d63fdb69Smrg# library is relocated. 14183d63fdb69Smrghardcode_direct_absolute=$hardcode_direct_absolute 141843da084b3Smrg 14185d63fdb69Smrg# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 14186d63fdb69Smrg# into the resulting binary. 14187d63fdb69Smrghardcode_minus_L=$hardcode_minus_L 141883da084b3Smrg 14189d63fdb69Smrg# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 14190d63fdb69Smrg# into the resulting binary. 14191d63fdb69Smrghardcode_shlibpath_var=$hardcode_shlibpath_var 141923da084b3Smrg 14193d63fdb69Smrg# Set to "yes" if building a shared library automatically hardcodes DIR 14194d63fdb69Smrg# into the library and all subsequent libraries and executables linked 14195d63fdb69Smrg# against it. 14196d63fdb69Smrghardcode_automatic=$hardcode_automatic 141973da084b3Smrg 14198d63fdb69Smrg# Set to yes if linker adds runtime paths of dependent libraries 14199d63fdb69Smrg# to runtime path list. 14200d63fdb69Smrginherit_rpath=$inherit_rpath 142013da084b3Smrg 14202d63fdb69Smrg# Whether libtool must link a program against all its dependency libraries. 14203d63fdb69Smrglink_all_deplibs=$link_all_deplibs 142043da084b3Smrg 14205d63fdb69Smrg# Fix the shell variable \$srcfile for the compiler. 14206d63fdb69Smrgfix_srcfile_path=$lt_fix_srcfile_path 142073da084b3Smrg 14208d63fdb69Smrg# Set to "yes" if exported symbols are required. 14209d63fdb69Smrgalways_export_symbols=$always_export_symbols 142103da084b3Smrg 14211d63fdb69Smrg# The commands to list exported symbols. 14212d63fdb69Smrgexport_symbols_cmds=$lt_export_symbols_cmds 142133da084b3Smrg 14214d63fdb69Smrg# Symbols that should not be listed in the preloaded symbols. 14215d63fdb69Smrgexclude_expsyms=$lt_exclude_expsyms 142163da084b3Smrg 14217d63fdb69Smrg# Symbols that must always be exported. 14218d63fdb69Smrginclude_expsyms=$lt_include_expsyms 142193da084b3Smrg 14220d63fdb69Smrg# Commands necessary for linking programs (against libraries) with templates. 14221d63fdb69Smrgprelink_cmds=$lt_prelink_cmds 142223da084b3Smrg 14223d63fdb69Smrg# Specify filename containing input files. 14224d63fdb69Smrgfile_list_spec=$lt_file_list_spec 142253da084b3Smrg 14226d63fdb69Smrg# How to hardcode a shared library path into an executable. 14227d63fdb69Smrghardcode_action=$hardcode_action 142283da084b3Smrg 14229d63fdb69Smrg# ### END LIBTOOL CONFIG 142303da084b3Smrg 14231d63fdb69Smrg_LT_EOF 142323da084b3Smrg 14233d63fdb69Smrg case $host_os in 14234d63fdb69Smrg aix3*) 14235d63fdb69Smrg cat <<\_LT_EOF >> "$cfgfile" 14236d63fdb69Smrg# AIX sometimes has problems with the GCC collect2 program. For some 14237d63fdb69Smrg# reason, if we set the COLLECT_NAMES environment variable, the problems 14238d63fdb69Smrg# vanish in a puff of smoke. 14239d63fdb69Smrgif test "X${COLLECT_NAMES+set}" != Xset; then 14240d63fdb69Smrg COLLECT_NAMES= 14241d63fdb69Smrg export COLLECT_NAMES 14242d63fdb69Smrgfi 14243d63fdb69Smrg_LT_EOF 142443da084b3Smrg ;; 142453da084b3Smrg esac 142463da084b3Smrg 142473da084b3Smrg 14248d63fdb69Smrgltmain="$ac_aux_dir/ltmain.sh" 142493da084b3Smrg 142503da084b3Smrg 14251d63fdb69Smrg # We use sed instead of cat because bash on DJGPP gets confused if 14252d63fdb69Smrg # if finds mixed CR/LF and LF-only lines. Since sed operates in 14253d63fdb69Smrg # text mode, it properly converts lines to CR/LF. This bash problem 14254d63fdb69Smrg # is reportedly fixed, but why not run on old versions too? 14255d63fdb69Smrg sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 14256d63fdb69Smrg || (rm -f "$cfgfile"; exit 1) 142573da084b3Smrg 14258d63fdb69Smrg case $xsi_shell in 14259d63fdb69Smrg yes) 14260d63fdb69Smrg cat << \_LT_EOF >> "$cfgfile" 14261d63fdb69Smrg 14262d63fdb69Smrg# func_dirname file append nondir_replacement 14263d63fdb69Smrg# Compute the dirname of FILE. If nonempty, add APPEND to the result, 14264d63fdb69Smrg# otherwise set result to NONDIR_REPLACEMENT. 14265d63fdb69Smrgfunc_dirname () 14266d63fdb69Smrg{ 14267d63fdb69Smrg case ${1} in 14268d63fdb69Smrg */*) func_dirname_result="${1%/*}${2}" ;; 14269d63fdb69Smrg * ) func_dirname_result="${3}" ;; 142703da084b3Smrg esac 14271d63fdb69Smrg} 142723da084b3Smrg 14273d63fdb69Smrg# func_basename file 14274d63fdb69Smrgfunc_basename () 14275d63fdb69Smrg{ 14276d63fdb69Smrg func_basename_result="${1##*/}" 14277d63fdb69Smrg} 142783da084b3Smrg 14279d63fdb69Smrg# func_dirname_and_basename file append nondir_replacement 14280d63fdb69Smrg# perform func_basename and func_dirname in a single function 14281d63fdb69Smrg# call: 14282d63fdb69Smrg# dirname: Compute the dirname of FILE. If nonempty, 14283d63fdb69Smrg# add APPEND to the result, otherwise set result 14284d63fdb69Smrg# to NONDIR_REPLACEMENT. 14285d63fdb69Smrg# value returned in "$func_dirname_result" 14286d63fdb69Smrg# basename: Compute filename of FILE. 14287d63fdb69Smrg# value retuned in "$func_basename_result" 14288d63fdb69Smrg# Implementation must be kept synchronized with func_dirname 14289d63fdb69Smrg# and func_basename. For efficiency, we do not delegate to 14290d63fdb69Smrg# those functions but instead duplicate the functionality here. 14291d63fdb69Smrgfunc_dirname_and_basename () 14292d63fdb69Smrg{ 14293d63fdb69Smrg case ${1} in 14294d63fdb69Smrg */*) func_dirname_result="${1%/*}${2}" ;; 14295d63fdb69Smrg * ) func_dirname_result="${3}" ;; 14296d63fdb69Smrg esac 14297d63fdb69Smrg func_basename_result="${1##*/}" 142983da084b3Smrg} 142993da084b3Smrg 14300d63fdb69Smrg# func_stripname prefix suffix name 14301d63fdb69Smrg# strip PREFIX and SUFFIX off of NAME. 14302d63fdb69Smrg# PREFIX and SUFFIX must not contain globbing or regex special 14303d63fdb69Smrg# characters, hashes, percent signs, but SUFFIX may contain a leading 14304d63fdb69Smrg# dot (in which case that matches only a dot). 14305d63fdb69Smrgfunc_stripname () 14306d63fdb69Smrg{ 14307d63fdb69Smrg # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 14308d63fdb69Smrg # positional parameters, so assign one to ordinary parameter first. 14309d63fdb69Smrg func_stripname_result=${3} 14310d63fdb69Smrg func_stripname_result=${func_stripname_result#"${1}"} 14311d63fdb69Smrg func_stripname_result=${func_stripname_result%"${2}"} 14312d63fdb69Smrg} 143133da084b3Smrg 14314d63fdb69Smrg# func_opt_split 14315d63fdb69Smrgfunc_opt_split () 14316d63fdb69Smrg{ 14317d63fdb69Smrg func_opt_split_opt=${1%%=*} 14318d63fdb69Smrg func_opt_split_arg=${1#*=} 14319d63fdb69Smrg} 143203da084b3Smrg 14321d63fdb69Smrg# func_lo2o object 14322d63fdb69Smrgfunc_lo2o () 14323d63fdb69Smrg{ 14324d63fdb69Smrg case ${1} in 14325d63fdb69Smrg *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 14326d63fdb69Smrg *) func_lo2o_result=${1} ;; 143273da084b3Smrg esac 14328d63fdb69Smrg} 143293da084b3Smrg 14330d63fdb69Smrg# func_xform libobj-or-source 14331d63fdb69Smrgfunc_xform () 14332d63fdb69Smrg{ 14333d63fdb69Smrg func_xform_result=${1%.*}.lo 14334d63fdb69Smrg} 143353da084b3Smrg 14336d63fdb69Smrg# func_arith arithmetic-term... 14337d63fdb69Smrgfunc_arith () 14338d63fdb69Smrg{ 14339d63fdb69Smrg func_arith_result=$(( $* )) 14340d63fdb69Smrg} 14341d63fdb69Smrg 14342d63fdb69Smrg# func_len string 14343d63fdb69Smrg# STRING may not start with a hyphen. 14344d63fdb69Smrgfunc_len () 14345d63fdb69Smrg{ 14346d63fdb69Smrg func_len_result=${#1} 14347d63fdb69Smrg} 14348d63fdb69Smrg 14349d63fdb69Smrg_LT_EOF 14350d63fdb69Smrg ;; 14351d63fdb69Smrg *) # Bourne compatible functions. 14352d63fdb69Smrg cat << \_LT_EOF >> "$cfgfile" 14353d63fdb69Smrg 14354d63fdb69Smrg# func_dirname file append nondir_replacement 14355d63fdb69Smrg# Compute the dirname of FILE. If nonempty, add APPEND to the result, 14356d63fdb69Smrg# otherwise set result to NONDIR_REPLACEMENT. 14357d63fdb69Smrgfunc_dirname () 14358d63fdb69Smrg{ 14359d63fdb69Smrg # Extract subdirectory from the argument. 1436055acc8fcSmrg func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` 14361d63fdb69Smrg if test "X$func_dirname_result" = "X${1}"; then 14362d63fdb69Smrg func_dirname_result="${3}" 143633da084b3Smrg else 14364d63fdb69Smrg func_dirname_result="$func_dirname_result${2}" 143653da084b3Smrg fi 14366d63fdb69Smrg} 143673da084b3Smrg 14368d63fdb69Smrg# func_basename file 14369d63fdb69Smrgfunc_basename () 14370d63fdb69Smrg{ 1437155acc8fcSmrg func_basename_result=`$ECHO "${1}" | $SED "$basename"` 14372d63fdb69Smrg} 14373d63fdb69Smrg 14374d63fdb69Smrg 14375d63fdb69Smrg# func_stripname prefix suffix name 14376d63fdb69Smrg# strip PREFIX and SUFFIX off of NAME. 14377d63fdb69Smrg# PREFIX and SUFFIX must not contain globbing or regex special 14378d63fdb69Smrg# characters, hashes, percent signs, but SUFFIX may contain a leading 14379d63fdb69Smrg# dot (in which case that matches only a dot). 14380d63fdb69Smrg# func_strip_suffix prefix name 14381d63fdb69Smrgfunc_stripname () 14382d63fdb69Smrg{ 14383d63fdb69Smrg case ${2} in 1438455acc8fcSmrg .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 1438555acc8fcSmrg *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 143863da084b3Smrg esac 14387d63fdb69Smrg} 143883da084b3Smrg 14389d63fdb69Smrg# sed scripts: 14390d63fdb69Smrgmy_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 14391d63fdb69Smrgmy_sed_long_arg='1s/^-[^=]*=//' 143923da084b3Smrg 14393d63fdb69Smrg# func_opt_split 14394d63fdb69Smrgfunc_opt_split () 14395d63fdb69Smrg{ 1439655acc8fcSmrg func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` 1439755acc8fcSmrg func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` 14398d63fdb69Smrg} 14399d63fdb69Smrg 14400d63fdb69Smrg# func_lo2o object 14401d63fdb69Smrgfunc_lo2o () 14402d63fdb69Smrg{ 1440355acc8fcSmrg func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` 14404d63fdb69Smrg} 14405d63fdb69Smrg 14406d63fdb69Smrg# func_xform libobj-or-source 14407d63fdb69Smrgfunc_xform () 14408d63fdb69Smrg{ 1440955acc8fcSmrg func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` 14410d63fdb69Smrg} 14411d63fdb69Smrg 14412d63fdb69Smrg# func_arith arithmetic-term... 14413d63fdb69Smrgfunc_arith () 14414d63fdb69Smrg{ 14415d63fdb69Smrg func_arith_result=`expr "$@"` 14416d63fdb69Smrg} 14417d63fdb69Smrg 14418d63fdb69Smrg# func_len string 14419d63fdb69Smrg# STRING may not start with a hyphen. 14420d63fdb69Smrgfunc_len () 14421d63fdb69Smrg{ 14422d63fdb69Smrg func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 14423d63fdb69Smrg} 14424d63fdb69Smrg 14425d63fdb69Smrg_LT_EOF 14426d63fdb69Smrgesac 14427d63fdb69Smrg 14428d63fdb69Smrgcase $lt_shell_append in 14429d63fdb69Smrg yes) 14430d63fdb69Smrg cat << \_LT_EOF >> "$cfgfile" 14431d63fdb69Smrg 14432d63fdb69Smrg# func_append var value 14433d63fdb69Smrg# Append VALUE to the end of shell variable VAR. 14434d63fdb69Smrgfunc_append () 14435d63fdb69Smrg{ 14436d63fdb69Smrg eval "$1+=\$2" 14437d63fdb69Smrg} 14438d63fdb69Smrg_LT_EOF 14439d63fdb69Smrg ;; 14440d63fdb69Smrg *) 14441d63fdb69Smrg cat << \_LT_EOF >> "$cfgfile" 14442d63fdb69Smrg 14443d63fdb69Smrg# func_append var value 14444d63fdb69Smrg# Append VALUE to the end of shell variable VAR. 14445d63fdb69Smrgfunc_append () 14446d63fdb69Smrg{ 14447d63fdb69Smrg eval "$1=\$$1\$2" 14448d63fdb69Smrg} 14449d63fdb69Smrg 14450d63fdb69Smrg_LT_EOF 14451d63fdb69Smrg ;; 144523da084b3Smrg esac 14453d63fdb69Smrg 14454d63fdb69Smrg 14455d63fdb69Smrg sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 14456d63fdb69Smrg || (rm -f "$cfgfile"; exit 1) 14457d63fdb69Smrg 14458d63fdb69Smrg mv -f "$cfgfile" "$ofile" || 14459d63fdb69Smrg (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 14460d63fdb69Smrg chmod +x "$ofile" 14461d63fdb69Smrg 144623da084b3Smrg ;; 144633da084b3Smrg 144643da084b3Smrg esac 144653da084b3Smrgdone # for ac_tag 144663da084b3Smrg 144673da084b3Smrg 1446855acc8fcSmrgas_fn_exit 0 144693da084b3Smrg_ACEOF 144703da084b3Smrgac_clean_files=$ac_clean_files_save 144713da084b3Smrg 14472d63fdb69Smrgtest $ac_write_fail = 0 || 1447355acc8fcSmrg as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 14474d63fdb69Smrg 144753da084b3Smrg 144763da084b3Smrg# configure is writing to config.log, and then calls config.status. 144773da084b3Smrg# config.status does its own redirection, appending to config.log. 144783da084b3Smrg# Unfortunately, on DOS this fails, as config.log is still kept open 144793da084b3Smrg# by configure, so config.status won't be able to write to it; its 144803da084b3Smrg# output is simply discarded. So we exec the FD to /dev/null, 144813da084b3Smrg# effectively closing config.log, so it can be properly (re)opened and 144823da084b3Smrg# appended to by config.status. When coming back to configure, we 144833da084b3Smrg# need to make the FD available again. 144843da084b3Smrgif test "$no_create" != yes; then 144853da084b3Smrg ac_cs_success=: 144863da084b3Smrg ac_config_status_args= 144873da084b3Smrg test "$silent" = yes && 144883da084b3Smrg ac_config_status_args="$ac_config_status_args --quiet" 144893da084b3Smrg exec 5>/dev/null 144903da084b3Smrg $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 144913da084b3Smrg exec 5>>config.log 144923da084b3Smrg # Use ||, not &&, to avoid exiting from the if with $? = 1, which 144933da084b3Smrg # would make configure fail if this is the last instruction. 1449455acc8fcSmrg $ac_cs_success || as_fn_exit 1 144953da084b3Smrgfi 14496d63fdb69Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 1449755acc8fcSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 14498d63fdb69Smrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 14499d63fdb69Smrgfi 145003da084b3Smrg 14501