| 12 |
ac_default_prefix=/usr/local |
ac_default_prefix=/usr/local |
| 13 |
# Any additions from configure.in: |
# Any additions from configure.in: |
| 14 |
ac_help="$ac_help |
ac_help="$ac_help |
|
--enable-shared[=PKGS] build shared libraries [default=yes]" |
|
|
ac_help="$ac_help |
|
|
--enable-static[=PKGS] build static libraries [default=yes]" |
|
|
ac_help="$ac_help |
|
|
--enable-fast-install[=PKGS] optimize for fast installation [default=yes]" |
|
|
ac_help="$ac_help |
|
|
--with-gnu-ld assume the C compiler uses GNU ld [default=no]" |
|
|
ac_help="$ac_help |
|
|
--disable-libtool-lock avoid locking (might break parallel builds)" |
|
|
ac_help="$ac_help |
|
| 15 |
--enable-sharedlib build shared library using GNU libtool" |
--enable-sharedlib build shared library using GNU libtool" |
| 16 |
ac_help="$ac_help |
ac_help="$ac_help |
| 17 |
--enable-libraries build and install libraries [default=yes]" |
--enable-libraries build and install libraries [default=yes]" |
| 42 |
ac_help="$ac_help |
ac_help="$ac_help |
| 43 |
--with-kwnn-libraries=DIR Search for KWNN libraries in DIR[default=/usr/local/lib]" |
--with-kwnn-libraries=DIR Search for KWNN libraries in DIR[default=/usr/local/lib]" |
| 44 |
ac_help="$ac_help |
ac_help="$ac_help |
| 45 |
|
--enable-inet6 build and install inet6 [default=false]" |
| 46 |
|
ac_help="$ac_help |
| 47 |
|
--enable-shared[=PKGS] build shared libraries [default=yes]" |
| 48 |
|
ac_help="$ac_help |
| 49 |
|
--enable-static[=PKGS] build static libraries [default=yes]" |
| 50 |
|
ac_help="$ac_help |
| 51 |
|
--enable-fast-install[=PKGS] optimize for fast installation [default=yes]" |
| 52 |
|
ac_help="$ac_help |
| 53 |
|
--with-gnu-ld assume the C compiler uses GNU ld [default=no]" |
| 54 |
|
|
| 55 |
|
# Find the correct PATH separator. Usually this is `:', but |
| 56 |
|
# DJGPP uses `;' like DOS. |
| 57 |
|
if test "X${PATH_SEPARATOR+set}" != Xset; then |
| 58 |
|
UNAME=${UNAME-`uname 2>/dev/null`} |
| 59 |
|
case X$UNAME in |
| 60 |
|
*-DOS) lt_cv_sys_path_separator=';' ;; |
| 61 |
|
*) lt_cv_sys_path_separator=':' ;; |
| 62 |
|
esac |
| 63 |
|
fi |
| 64 |
|
|
| 65 |
|
|
| 66 |
|
# Check that we are running under the correct shell. |
| 67 |
|
SHELL=${CONFIG_SHELL-/bin/sh} |
| 68 |
|
|
| 69 |
|
case X$ECHO in |
| 70 |
|
X*--fallback-echo) |
| 71 |
|
# Remove one level of quotation (which was required for Make). |
| 72 |
|
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
| 73 |
|
;; |
| 74 |
|
esac |
| 75 |
|
|
| 76 |
|
echo=${ECHO-echo} |
| 77 |
|
if test "X$1" = X--no-reexec; then |
| 78 |
|
# Discard the --no-reexec flag, and continue. |
| 79 |
|
shift |
| 80 |
|
elif test "X$1" = X--fallback-echo; then |
| 81 |
|
# Avoid inline document here, it may be left over |
| 82 |
|
: |
| 83 |
|
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then |
| 84 |
|
# Yippee, $echo works! |
| 85 |
|
: |
| 86 |
|
else |
| 87 |
|
# Restart under the correct shell. |
| 88 |
|
exec $SHELL "$0" --no-reexec ${1+"$@"} |
| 89 |
|
fi |
| 90 |
|
|
| 91 |
|
if test "X$1" = X--fallback-echo; then |
| 92 |
|
# used as fallback echo |
| 93 |
|
shift |
| 94 |
|
cat <<EOF |
| 95 |
|
|
| 96 |
|
EOF |
| 97 |
|
exit 0 |
| 98 |
|
fi |
| 99 |
|
|
| 100 |
|
# The HP-UX ksh and POSIX shell print the target directory to stdout |
| 101 |
|
# if CDPATH is set. |
| 102 |
|
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
| 103 |
|
|
| 104 |
|
if test -z "$ECHO"; then |
| 105 |
|
if test "X${echo_test_string+set}" != Xset; then |
| 106 |
|
# find a string as large as possible, as long as the shell can cope with it |
| 107 |
|
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
| 108 |
|
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
| 109 |
|
if (echo_test_string="`eval $cmd`") 2>/dev/null && |
| 110 |
|
echo_test_string="`eval $cmd`" && |
| 111 |
|
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
| 112 |
|
then |
| 113 |
|
break |
| 114 |
|
fi |
| 115 |
|
done |
| 116 |
|
fi |
| 117 |
|
|
| 118 |
|
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 119 |
|
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 120 |
|
test "X$echo_testing_string" = "X$echo_test_string"; then |
| 121 |
|
: |
| 122 |
|
else |
| 123 |
|
# The Solaris, AIX, and Digital Unix default echo programs unquote |
| 124 |
|
# backslashes. This makes it impossible to quote backslashes using |
| 125 |
|
# echo "$something" | sed 's/\\/\\\\/g' |
| 126 |
|
# |
| 127 |
|
# So, first we look for a working echo in the user's PATH. |
| 128 |
|
|
| 129 |
|
IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}" |
| 130 |
|
for dir in $PATH /usr/ucb; do |
| 131 |
|
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
| 132 |
|
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
| 133 |
|
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
| 134 |
|
test "X$echo_testing_string" = "X$echo_test_string"; then |
| 135 |
|
echo="$dir/echo" |
| 136 |
|
break |
| 137 |
|
fi |
| 138 |
|
done |
| 139 |
|
IFS="$save_ifs" |
| 140 |
|
|
| 141 |
|
if test "X$echo" = Xecho; then |
| 142 |
|
# We didn't find a better echo, so look for alternatives. |
| 143 |
|
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
| 144 |
|
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
| 145 |
|
test "X$echo_testing_string" = "X$echo_test_string"; then |
| 146 |
|
# This shell has a builtin print -r that does the trick. |
| 147 |
|
echo='print -r' |
| 148 |
|
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
| 149 |
|
test "X$CONFIG_SHELL" != X/bin/ksh; then |
| 150 |
|
# If we have ksh, try running configure again with it. |
| 151 |
|
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
| 152 |
|
export ORIGINAL_CONFIG_SHELL |
| 153 |
|
CONFIG_SHELL=/bin/ksh |
| 154 |
|
export CONFIG_SHELL |
| 155 |
|
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
| 156 |
|
else |
| 157 |
|
# Try using printf. |
| 158 |
|
echo='printf %s\n' |
| 159 |
|
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 160 |
|
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 161 |
|
test "X$echo_testing_string" = "X$echo_test_string"; then |
| 162 |
|
# Cool, printf works |
| 163 |
|
: |
| 164 |
|
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 165 |
|
test "X$echo_testing_string" = 'X\t' && |
| 166 |
|
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 167 |
|
test "X$echo_testing_string" = "X$echo_test_string"; then |
| 168 |
|
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
| 169 |
|
export CONFIG_SHELL |
| 170 |
|
SHELL="$CONFIG_SHELL" |
| 171 |
|
export SHELL |
| 172 |
|
echo="$CONFIG_SHELL $0 --fallback-echo" |
| 173 |
|
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 174 |
|
test "X$echo_testing_string" = 'X\t' && |
| 175 |
|
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 176 |
|
test "X$echo_testing_string" = "X$echo_test_string"; then |
| 177 |
|
echo="$CONFIG_SHELL $0 --fallback-echo" |
| 178 |
|
else |
| 179 |
|
# maybe with a smaller string... |
| 180 |
|
prev=: |
| 181 |
|
|
| 182 |
|
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
| 183 |
|
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
| 184 |
|
then |
| 185 |
|
break |
| 186 |
|
fi |
| 187 |
|
prev="$cmd" |
| 188 |
|
done |
| 189 |
|
|
| 190 |
|
if test "$prev" != 'sed 50q "$0"'; then |
| 191 |
|
echo_test_string=`eval $prev` |
| 192 |
|
export echo_test_string |
| 193 |
|
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
| 194 |
|
else |
| 195 |
|
# Oops. We lost completely, so just stick with echo. |
| 196 |
|
echo=echo |
| 197 |
|
fi |
| 198 |
|
fi |
| 199 |
|
fi |
| 200 |
|
fi |
| 201 |
|
fi |
| 202 |
|
fi |
| 203 |
|
|
| 204 |
|
# Copy echo and quote the copy suitably for passing to libtool from |
| 205 |
|
# the Makefile, instead of quoting the original, which is used later. |
| 206 |
|
ECHO=$echo |
| 207 |
|
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
| 208 |
|
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
| 209 |
|
fi |
| 210 |
|
|
| 211 |
|
|
| 212 |
|
ac_help="$ac_help |
| 213 |
|
--disable-libtool-lock avoid locking (might break parallel builds)" |
| 214 |
|
ac_help="$ac_help |
| 215 |
|
--with-pic try to use only PIC/non-PIC objects [default=use both]" |
| 216 |
|
ac_help="$ac_help |
| 217 |
--with-x use the X Window System" |
--with-x use the X Window System" |
| 218 |
|
|
| 219 |
# Initialize some variables set by options. |
# Initialize some variables set by options. |
| 755 |
ac_config_sub=$ac_aux_dir/config.sub |
ac_config_sub=$ac_aux_dir/config.sub |
| 756 |
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
| 757 |
|
|
|
# Check whether --enable-shared or --disable-shared was given. |
|
|
if test "${enable_shared+set}" = set; then |
|
|
enableval="$enable_shared" |
|
|
p=${PACKAGE-default} |
|
|
case "$enableval" in |
|
|
yes) enable_shared=yes ;; |
|
|
no) enable_shared=no ;; |
|
|
*) |
|
|
enable_shared=no |
|
|
# Look at the argument we got. We use all the common list separators. |
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
|
|
for pkg in $enableval; do |
|
|
if test "X$pkg" = "X$p"; then |
|
|
enable_shared=yes |
|
|
fi |
|
|
done |
|
|
IFS="$ac_save_ifs" |
|
|
;; |
|
|
esac |
|
|
else |
|
|
enable_shared=yes |
|
|
fi |
|
|
|
|
|
# Check whether --enable-static or --disable-static was given. |
|
|
if test "${enable_static+set}" = set; then |
|
|
enableval="$enable_static" |
|
|
p=${PACKAGE-default} |
|
|
case "$enableval" in |
|
|
yes) enable_static=yes ;; |
|
|
no) enable_static=no ;; |
|
|
*) |
|
|
enable_static=no |
|
|
# Look at the argument we got. We use all the common list separators. |
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
|
|
for pkg in $enableval; do |
|
|
if test "X$pkg" = "X$p"; then |
|
|
enable_static=yes |
|
|
fi |
|
|
done |
|
|
IFS="$ac_save_ifs" |
|
|
;; |
|
|
esac |
|
|
else |
|
|
enable_static=yes |
|
|
fi |
|
|
|
|
|
# Check whether --enable-fast-install or --disable-fast-install was given. |
|
|
if test "${enable_fast_install+set}" = set; then |
|
|
enableval="$enable_fast_install" |
|
|
p=${PACKAGE-default} |
|
|
case "$enableval" in |
|
|
yes) enable_fast_install=yes ;; |
|
|
no) enable_fast_install=no ;; |
|
|
*) |
|
|
enable_fast_install=no |
|
|
# Look at the argument we got. We use all the common list separators. |
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
|
|
for pkg in $enableval; do |
|
|
if test "X$pkg" = "X$p"; then |
|
|
enable_fast_install=yes |
|
|
fi |
|
|
done |
|
|
IFS="$ac_save_ifs" |
|
|
;; |
|
|
esac |
|
|
else |
|
|
enable_fast_install=yes |
|
|
fi |
|
|
|
|
| 758 |
|
|
| 759 |
# Make sure we can run config.sub. |
# Make sure we can run config.sub. |
| 760 |
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
| 762 |
fi |
fi |
| 763 |
|
|
| 764 |
echo $ac_n "checking host system type""... $ac_c" 1>&6 |
echo $ac_n "checking host system type""... $ac_c" 1>&6 |
| 765 |
echo "configure:673: checking host system type" >&5 |
echo "configure:766: checking host system type" >&5 |
| 766 |
|
|
| 767 |
host_alias=$host |
host_alias=$host |
| 768 |
case "$host_alias" in |
case "$host_alias" in |
| 782 |
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 783 |
echo "$ac_t""$host" 1>&6 |
echo "$ac_t""$host" 1>&6 |
| 784 |
|
|
|
echo $ac_n "checking build system type""... $ac_c" 1>&6 |
|
|
echo "configure:694: checking build system type" >&5 |
|
|
|
|
|
build_alias=$build |
|
|
case "$build_alias" in |
|
|
NONE) |
|
|
case $nonopt in |
|
|
NONE) build_alias=$host_alias ;; |
|
|
*) build_alias=$nonopt ;; |
|
|
esac ;; |
|
|
esac |
|
|
|
|
|
build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` |
|
|
build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
|
|
build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
|
|
build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
|
|
echo "$ac_t""$build" 1>&6 |
|
|
|
|
|
# Extract the first word of "ranlib", so it can be a program name with args. |
|
|
set dummy ranlib; ac_word=$2 |
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
|
|
echo "configure:714: checking for $ac_word" >&5 |
|
|
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
|
|
else |
|
|
if test -n "$RANLIB"; then |
|
|
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
|
|
else |
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
|
|
ac_dummy="$PATH" |
|
|
for ac_dir in $ac_dummy; do |
|
|
test -z "$ac_dir" && ac_dir=. |
|
|
if test -f $ac_dir/$ac_word; then |
|
|
ac_cv_prog_RANLIB="ranlib" |
|
|
break |
|
|
fi |
|
|
done |
|
|
IFS="$ac_save_ifs" |
|
|
test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
|
|
fi |
|
|
fi |
|
|
RANLIB="$ac_cv_prog_RANLIB" |
|
|
if test -n "$RANLIB"; then |
|
|
echo "$ac_t""$RANLIB" 1>&6 |
|
|
else |
|
|
echo "$ac_t""no" 1>&6 |
|
|
fi |
|
|
|
|
|
# Extract the first word of "gcc", so it can be a program name with args. |
|
|
set dummy gcc; ac_word=$2 |
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
|
|
echo "configure:744: checking for $ac_word" >&5 |
|
|
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
|
|
else |
|
|
if test -n "$CC"; then |
|
|
ac_cv_prog_CC="$CC" # Let the user override the test. |
|
|
else |
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
|
|
ac_dummy="$PATH" |
|
|
for ac_dir in $ac_dummy; do |
|
|
test -z "$ac_dir" && ac_dir=. |
|
|
if test -f $ac_dir/$ac_word; then |
|
|
ac_cv_prog_CC="gcc" |
|
|
break |
|
|
fi |
|
|
done |
|
|
IFS="$ac_save_ifs" |
|
|
fi |
|
|
fi |
|
|
CC="$ac_cv_prog_CC" |
|
|
if test -n "$CC"; then |
|
|
echo "$ac_t""$CC" 1>&6 |
|
|
else |
|
|
echo "$ac_t""no" 1>&6 |
|
|
fi |
|
|
|
|
|
if test -z "$CC"; then |
|
|
# Extract the first word of "cc", so it can be a program name with args. |
|
|
set dummy cc; ac_word=$2 |
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
|
|
echo "configure:774: checking for $ac_word" >&5 |
|
|
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
|
|
else |
|
|
if test -n "$CC"; then |
|
|
ac_cv_prog_CC="$CC" # Let the user override the test. |
|
|
else |
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
|
|
ac_prog_rejected=no |
|
|
ac_dummy="$PATH" |
|
|
for ac_dir in $ac_dummy; do |
|
|
test -z "$ac_dir" && ac_dir=. |
|
|
if test -f $ac_dir/$ac_word; then |
|
|
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
|
|
ac_prog_rejected=yes |
|
|
continue |
|
|
fi |
|
|
ac_cv_prog_CC="cc" |
|
|
break |
|
|
fi |
|
|
done |
|
|
IFS="$ac_save_ifs" |
|
|
if test $ac_prog_rejected = yes; then |
|
|
# We found a bogon in the path, so make sure we never use it. |
|
|
set dummy $ac_cv_prog_CC |
|
|
shift |
|
|
if test $# -gt 0; then |
|
|
# We chose a different compiler from the bogus one. |
|
|
# However, it has the same basename, so the bogon will be chosen |
|
|
# first if we set CC to just the basename; use the full file name. |
|
|
shift |
|
|
set dummy "$ac_dir/$ac_word" "$@" |
|
|
shift |
|
|
ac_cv_prog_CC="$@" |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
CC="$ac_cv_prog_CC" |
|
|
if test -n "$CC"; then |
|
|
echo "$ac_t""$CC" 1>&6 |
|
|
else |
|
|
echo "$ac_t""no" 1>&6 |
|
|
fi |
|
|
|
|
|
if test -z "$CC"; then |
|
|
case "`uname -s`" in |
|
|
*win32* | *WIN32*) |
|
|
# Extract the first word of "cl", so it can be a program name with args. |
|
|
set dummy cl; ac_word=$2 |
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
|
|
echo "configure:825: checking for $ac_word" >&5 |
|
|
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
|
|
else |
|
|
if test -n "$CC"; then |
|
|
ac_cv_prog_CC="$CC" # Let the user override the test. |
|
|
else |
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
|
|
ac_dummy="$PATH" |
|
|
for ac_dir in $ac_dummy; do |
|
|
test -z "$ac_dir" && ac_dir=. |
|
|
if test -f $ac_dir/$ac_word; then |
|
|
ac_cv_prog_CC="cl" |
|
|
break |
|
|
fi |
|
|
done |
|
|
IFS="$ac_save_ifs" |
|
|
fi |
|
|
fi |
|
|
CC="$ac_cv_prog_CC" |
|
|
if test -n "$CC"; then |
|
|
echo "$ac_t""$CC" 1>&6 |
|
|
else |
|
|
echo "$ac_t""no" 1>&6 |
|
|
fi |
|
|
;; |
|
|
esac |
|
|
fi |
|
|
test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
|
|
fi |
|
|
|
|
|
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
|
|
echo "configure:857: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
|
|
|
|
|
ac_ext=c |
|
|
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
|
|
ac_cpp='$CPP $CPPFLAGS' |
|
|
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
|
|
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
|
|
cross_compiling=$ac_cv_prog_cc_cross |
|
|
|
|
|
cat > conftest.$ac_ext << EOF |
|
|
|
|
|
#line 868 "configure" |
|
|
#include "confdefs.h" |
|
|
|
|
|
main(){return(0);} |
|
|
EOF |
|
|
if { (eval echo configure:873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
|
|
ac_cv_prog_cc_works=yes |
|
|
# If we can't run a trivial program, we are probably using a cross compiler. |
|
|
if (./conftest; exit) 2>/dev/null; then |
|
|
ac_cv_prog_cc_cross=no |
|
|
else |
|
|
ac_cv_prog_cc_cross=yes |
|
|
fi |
|
|
else |
|
|
echo "configure: failed program was:" >&5 |
|
|
cat conftest.$ac_ext >&5 |
|
|
ac_cv_prog_cc_works=no |
|
|
fi |
|
|
rm -fr conftest* |
|
|
ac_ext=c |
|
|
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
|
|
ac_cpp='$CPP $CPPFLAGS' |
|
|
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
|
|
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
|
|
cross_compiling=$ac_cv_prog_cc_cross |
|
|
|
|
|
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
|
|
if test $ac_cv_prog_cc_works = no; then |
|
|
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
|
|
fi |
|
|
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
|
|
echo "configure:899: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
|
|
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
|
|
cross_compiling=$ac_cv_prog_cc_cross |
|
|
|
|
|
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
|
|
echo "configure:904: checking whether we are using GNU C" >&5 |
|
|
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
|
|
else |
|
|
cat > conftest.c <<EOF |
|
|
#ifdef __GNUC__ |
|
|
yes; |
|
|
#endif |
|
|
EOF |
|
|
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:913: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
|
|
ac_cv_prog_gcc=yes |
|
|
else |
|
|
ac_cv_prog_gcc=no |
|
|
fi |
|
|
fi |
|
|
|
|
|
echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
|
|
|
|
|
if test $ac_cv_prog_gcc = yes; then |
|
|
GCC=yes |
|
|
else |
|
|
GCC= |
|
|
fi |
|
|
|
|
|
ac_test_CFLAGS="${CFLAGS+set}" |
|
|
ac_save_CFLAGS="$CFLAGS" |
|
|
CFLAGS= |
|
|
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
|
|
echo "configure:932: checking whether ${CC-cc} accepts -g" >&5 |
|
|
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
|
|
else |
|
|
echo 'void f(){}' > conftest.c |
|
|
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
|
|
ac_cv_prog_cc_g=yes |
|
|
else |
|
|
ac_cv_prog_cc_g=no |
|
|
fi |
|
|
rm -f conftest* |
|
|
|
|
|
fi |
|
|
|
|
|
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
|
|
if test "$ac_test_CFLAGS" = set; then |
|
|
CFLAGS="$ac_save_CFLAGS" |
|
|
elif test $ac_cv_prog_cc_g = yes; then |
|
|
if test "$GCC" = yes; then |
|
|
CFLAGS="-g -O2" |
|
|
else |
|
|
CFLAGS="-g" |
|
|
fi |
|
|
else |
|
|
if test "$GCC" = yes; then |
|
|
CFLAGS="-O2" |
|
|
else |
|
|
CFLAGS= |
|
|
fi |
|
|
fi |
|
|
|
|
|
# Check whether --with-gnu-ld or --without-gnu-ld was given. |
|
|
if test "${with_gnu_ld+set}" = set; then |
|
|
withval="$with_gnu_ld" |
|
|
test "$withval" = no || with_gnu_ld=yes |
|
|
else |
|
|
with_gnu_ld=no |
|
|
fi |
|
|
|
|
|
ac_prog=ld |
|
|
if test "$ac_cv_prog_gcc" = yes; then |
|
|
# Check if gcc -print-prog-name=ld gives a path. |
|
|
echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 |
|
|
echo "configure:975: checking for ld used by GCC" >&5 |
|
|
ac_prog=`($CC -print-prog-name=ld) 2>&5` |
|
|
case "$ac_prog" in |
|
|
# Accept absolute paths. |
|
|
[\\/]* | [A-Za-z]:[\\/]*) |
|
|
re_direlt='/[^/][^/]*/\.\./' |
|
|
# Canonicalize the path of ld |
|
|
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
|
|
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
|
|
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
|
|
done |
|
|
test -z "$LD" && LD="$ac_prog" |
|
|
;; |
|
|
"") |
|
|
# If it fails, then pretend we aren't using GCC. |
|
|
ac_prog=ld |
|
|
;; |
|
|
*) |
|
|
# If it is relative, then search for the first ld in PATH. |
|
|
with_gnu_ld=unknown |
|
|
;; |
|
|
esac |
|
|
elif test "$with_gnu_ld" = yes; then |
|
|
echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 |
|
|
echo "configure:999: checking for GNU ld" >&5 |
|
|
else |
|
|
echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 |
|
|
echo "configure:1002: checking for non-GNU ld" >&5 |
|
|
fi |
|
|
if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
|
|
else |
|
|
if test -z "$LD"; then |
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
|
|
for ac_dir in $PATH; do |
|
|
test -z "$ac_dir" && ac_dir=. |
|
|
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
|
|
ac_cv_path_LD="$ac_dir/$ac_prog" |
|
|
# Check to see if the program is GNU ld. I'd rather use --version, |
|
|
# but apparently some GNU ld's only accept -v. |
|
|
# Break only if it was the GNU/non-GNU ld that we prefer. |
|
|
if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
|
|
test "$with_gnu_ld" != no && break |
|
|
else |
|
|
test "$with_gnu_ld" != yes && break |
|
|
fi |
|
|
fi |
|
|
done |
|
|
IFS="$ac_save_ifs" |
|
|
else |
|
|
ac_cv_path_LD="$LD" # Let the user override the test with a path. |
|
|
fi |
|
|
fi |
|
|
|
|
|
LD="$ac_cv_path_LD" |
|
|
if test -n "$LD"; then |
|
|
echo "$ac_t""$LD" 1>&6 |
|
|
else |
|
|
echo "$ac_t""no" 1>&6 |
|
|
fi |
|
|
test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } |
|
|
echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 |
|
|
echo "configure:1037: checking if the linker ($LD) is GNU ld" >&5 |
|
|
if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
|
|
else |
|
|
# I'd rather use --version here, but apparently some GNU ld's only accept -v. |
|
|
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then |
|
|
ac_cv_prog_gnu_ld=yes |
|
|
else |
|
|
ac_cv_prog_gnu_ld=no |
|
|
fi |
|
|
fi |
|
|
|
|
|
echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6 |
|
|
|
|
|
|
|
|
echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 |
|
|
echo "configure:1053: checking for BSD-compatible nm" >&5 |
|
|
if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
|
|
else |
|
|
if test -n "$NM"; then |
|
|
# Let the user override the test. |
|
|
ac_cv_path_NM="$NM" |
|
|
else |
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
|
|
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
|
|
test -z "$ac_dir" && ac_dir=. |
|
|
if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then |
|
|
# Check to see if the nm accepts a BSD-compat flag. |
|
|
# Adding the `sed 1q' prevents false positives on HP-UX, which says: |
|
|
# nm: unknown option "B" ignored |
|
|
if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
|
|
ac_cv_path_NM="$ac_dir/nm -B" |
|
|
break |
|
|
elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
|
|
ac_cv_path_NM="$ac_dir/nm -p" |
|
|
break |
|
|
else |
|
|
ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but |
|
|
continue # so that we can try to find one that supports BSD flags |
|
|
fi |
|
|
fi |
|
|
done |
|
|
IFS="$ac_save_ifs" |
|
|
test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm |
|
|
fi |
|
|
fi |
|
|
|
|
|
NM="$ac_cv_path_NM" |
|
|
echo "$ac_t""$NM" 1>&6 |
|
|
|
|
|
echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
|
|
echo "configure:1089: checking whether ln -s works" >&5 |
|
|
if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
|
|
else |
|
|
rm -f conftestdata |
|
|
if ln -s X conftestdata 2>/dev/null |
|
|
then |
|
|
rm -f conftestdata |
|
|
ac_cv_prog_LN_S="ln -s" |
|
|
else |
|
|
ac_cv_prog_LN_S=ln |
|
|
fi |
|
|
fi |
|
|
LN_S="$ac_cv_prog_LN_S" |
|
|
if test "$ac_cv_prog_LN_S" = "ln -s"; then |
|
|
echo "$ac_t""yes" 1>&6 |
|
|
else |
|
|
echo "$ac_t""no" 1>&6 |
|
|
fi |
|
|
|
|
|
|
|
|
case "$target" in |
|
|
NONE) lt_target="$host" ;; |
|
|
*) lt_target="$target" ;; |
|
|
esac |
|
|
|
|
|
# Check for any special flags to pass to ltconfig. |
|
|
libtool_flags="--cache-file=$cache_file" |
|
|
test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" |
|
|
test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" |
|
|
test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" |
|
|
test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc" |
|
|
test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" |
|
|
|
|
|
|
|
|
# Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
|
|
if test "${enable_libtool_lock+set}" = set; then |
|
|
enableval="$enable_libtool_lock" |
|
|
: |
|
|
fi |
|
|
|
|
|
test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" |
|
|
test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" |
|
|
|
|
|
# Some flags need to be propagated to the compiler or linker for good |
|
|
# libtool support. |
|
|
case "$lt_target" in |
|
|
*-*-irix6*) |
|
|
# Find out which ABI we are using. |
|
|
echo '#line 1138 "configure"' > conftest.$ac_ext |
|
|
if { (eval echo configure:1139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
|
|
case "`/usr/bin/file conftest.o`" in |
|
|
*32-bit*) |
|
|
LD="${LD-ld} -32" |
|
|
;; |
|
|
*N32*) |
|
|
LD="${LD-ld} -n32" |
|
|
;; |
|
|
*64-bit*) |
|
|
LD="${LD-ld} -64" |
|
|
;; |
|
|
esac |
|
|
fi |
|
|
rm -rf conftest* |
|
|
;; |
|
|
|
|
|
*-*-sco3.2v5*) |
|
|
# On SCO OpenServer 5, we need -belf to get full-featured binaries. |
|
|
SAVE_CFLAGS="$CFLAGS" |
|
|
CFLAGS="$CFLAGS -belf" |
|
|
echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 |
|
|
echo "configure:1160: checking whether the C compiler needs -belf" >&5 |
|
|
if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
|
|
else |
|
|
cat > conftest.$ac_ext <<EOF |
|
|
#line 1165 "configure" |
|
|
#include "confdefs.h" |
|
|
|
|
|
int main() { |
|
|
|
|
|
; return 0; } |
|
|
EOF |
|
|
if { (eval echo configure:1172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
|
|
rm -rf conftest* |
|
|
lt_cv_cc_needs_belf=yes |
|
|
else |
|
|
echo "configure: failed program was:" >&5 |
|
|
cat conftest.$ac_ext >&5 |
|
|
rm -rf conftest* |
|
|
lt_cv_cc_needs_belf=no |
|
|
fi |
|
|
rm -f conftest* |
|
|
fi |
|
|
|
|
|
echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6 |
|
|
if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
|
|
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
|
|
CFLAGS="$SAVE_CFLAGS" |
|
|
fi |
|
|
;; |
|
|
|
|
|
|
|
|
esac |
|
|
|
|
|
|
|
|
# Save cache, so that ltconfig can load it |
|
|
cat > confcache <<\EOF |
|
|
# This file is a shell script that caches the results of configure |
|
|
# tests run on this system so they can be shared between configure |
|
|
# scripts and configure runs. It is not useful on other systems. |
|
|
# If it contains results you don't want to keep, you may remove or edit it. |
|
|
# |
|
|
# By default, configure uses ./config.cache as the cache file, |
|
|
# creating it if it does not exist already. You can give configure |
|
|
# the --cache-file=FILE option to use a different cache file; that is |
|
|
# what configure does when it calls configure scripts in |
|
|
# subdirectories, so they share the cache. |
|
|
# Giving --cache-file=/dev/null disables caching, for debugging configure. |
|
|
# config.status only pays attention to the cache file if you give it the |
|
|
# --recheck option to rerun configure. |
|
|
# |
|
|
EOF |
|
|
# The following way of writing the cache mishandles newlines in values, |
|
|
# but we know of no workaround that is simple, portable, and efficient. |
|
|
# So, don't put newlines in cache variables' values. |
|
|
# Ultrix sh set writes to stderr and can't be redirected directly, |
|
|
# and sets the high bit in the cache file unless we assign to the vars. |
|
|
(set) 2>&1 | |
|
|
case `(ac_space=' '; set | grep ac_space) 2>&1` in |
|
|
*ac_space=\ *) |
|
|
# `set' does not quote correctly, so add quotes (double-quote substitution |
|
|
# turns \\\\ into \\, and sed turns \\ into \). |
|
|
sed -n \ |
|
|
-e "s/'/'\\\\''/g" \ |
|
|
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
|
|
;; |
|
|
*) |
|
|
# `set' quotes correctly as required by POSIX, so do not add quotes. |
|
|
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
|
|
;; |
|
|
esac >> confcache |
|
|
if cmp -s $cache_file confcache; then |
|
|
: |
|
|
else |
|
|
if test -w $cache_file; then |
|
|
echo "updating cache $cache_file" |
|
|
cat confcache > $cache_file |
|
|
else |
|
|
echo "not updating unwritable cache $cache_file" |
|
|
fi |
|
|
fi |
|
|
rm -f confcache |
|
|
|
|
|
|
|
|
# Actually configure libtool. ac_aux_dir is where install-sh is found. |
|
|
CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ |
|
|
LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ |
|
|
LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \ |
|
|
DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \ |
|
|
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ |
|
|
$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \ |
|
|
|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; } |
|
|
|
|
|
# Reload cache, that may have been modified by ltconfig |
|
|
if test -r "$cache_file"; then |
|
|
echo "loading cache $cache_file" |
|
|
. $cache_file |
|
|
else |
|
|
echo "creating cache $cache_file" |
|
|
> $cache_file |
|
|
fi |
|
|
|
|
|
|
|
|
# This can be used to rebuild libtool when needed |
|
|
LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh" |
|
|
|
|
|
# Always use our own libtool. |
|
|
LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
|
|
|
|
|
# Redirect the config.log output again, so that the ltconfig log is not |
|
|
# clobbered by the next message. |
|
|
exec 5>>./config.log |
|
|
|
|
| 785 |
|
|
| 786 |
# Check whether --enable-sharedlib or --disable-sharedlib was given. |
# Check whether --enable-sharedlib or --disable-sharedlib was given. |
| 787 |
if test "${enable_sharedlib+set}" = set; then |
if test "${enable_sharedlib+set}" = set; then |
| 854 |
|
|
| 855 |
|
|
| 856 |
if test "$server" = true -a "$Wnn" = Wnn; then |
if test "$server" = true -a "$Wnn" = Wnn; then |
| 857 |
JSERVER_SUBDIRS1="\$(JSERVER_SUBDIRS1)" |
# JSERVER_SUBDIRS1="\$(JSERVER_SUBDIRS1)" |
| 858 |
JSERVER_SUBDIRS2="\$(JSERVER_SUBDIRS2)" |
JSERVER_SUBDIRS2="\$(JSERVER_SUBDIRS2)" |
| 859 |
else |
else |
| 860 |
JSERVER_SUBDIRS1="" |
# JSERVER_SUBDIRS1="" |
| 861 |
JSERVER_SUBDIRS2="" |
JSERVER_SUBDIRS2="" |
| 862 |
fi |
fi |
| 863 |
|
|
| 864 |
|
|
|
|
|
| 865 |
# Check whether --enable-cWnn or --disable-cWnn was given. |
# Check whether --enable-cWnn or --disable-cWnn was given. |
| 866 |
if test "${enable_cWnn+set}" = set; then |
if test "${enable_cWnn+set}" = set; then |
| 867 |
enableval="$enable_cWnn" |
enableval="$enable_cWnn" |
| 1018 |
|
|
| 1019 |
|
|
| 1020 |
|
|
| 1021 |
|
# Check whether --enable-inet6 or --disable-inet6 was given. |
| 1022 |
|
if test "${enable_inet6+set}" = set; then |
| 1023 |
|
enableval="$enable_inet6" |
| 1024 |
|
case "${enableval}" in |
| 1025 |
|
yes) inet6="-DINET6";; |
| 1026 |
|
no) inet6="" ;; |
| 1027 |
|
*) { echo "configure: error: bad value for --enable-inet6" 1>&2; exit 1; } ;; |
| 1028 |
|
esac |
| 1029 |
|
else |
| 1030 |
|
inet6="" |
| 1031 |
|
fi |
| 1032 |
|
|
| 1033 |
|
|
| 1034 |
|
|
| 1035 |
# Extract the first word of "gcc", so it can be a program name with args. |
# Extract the first word of "gcc", so it can be a program name with args. |
| 1036 |
set dummy gcc; ac_word=$2 |
set dummy gcc; ac_word=$2 |
| 1037 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 1038 |
echo "configure:1513: checking for $ac_word" >&5 |
echo "configure:1039: checking for $ac_word" >&5 |
| 1039 |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 1040 |
echo $ac_n "(cached) $ac_c" 1>&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1041 |
else |
else |
| 1065 |
# Extract the first word of "cc", so it can be a program name with args. |
# Extract the first word of "cc", so it can be a program name with args. |
| 1066 |
set dummy cc; ac_word=$2 |
set dummy cc; ac_word=$2 |
| 1067 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 1068 |
echo "configure:1543: checking for $ac_word" >&5 |
echo "configure:1069: checking for $ac_word" >&5 |
| 1069 |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 1070 |
echo $ac_n "(cached) $ac_c" 1>&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1071 |
else |
else |
| 1116 |
# Extract the first word of "cl", so it can be a program name with args. |
# Extract the first word of "cl", so it can be a program name with args. |
| 1117 |
set dummy cl; ac_word=$2 |
set dummy cl; ac_word=$2 |
| 1118 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 1119 |
echo "configure:1594: checking for $ac_word" >&5 |
echo "configure:1120: checking for $ac_word" >&5 |
| 1120 |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 1121 |
echo $ac_n "(cached) $ac_c" 1>&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1122 |
else |
else |
| 1148 |
fi |
fi |
| 1149 |
|
|
| 1150 |
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
| 1151 |
echo "configure:1626: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
echo "configure:1152: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
| 1152 |
|
|
| 1153 |
ac_ext=c |
ac_ext=c |
| 1154 |
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 1159 |
|
|
| 1160 |
cat > conftest.$ac_ext << EOF |
cat > conftest.$ac_ext << EOF |
| 1161 |
|
|
| 1162 |
#line 1637 "configure" |
#line 1163 "configure" |
| 1163 |
#include "confdefs.h" |
#include "confdefs.h" |
| 1164 |
|
|
| 1165 |
main(){return(0);} |
main(){return(0);} |
| 1166 |
EOF |
EOF |
| 1167 |
if { (eval echo configure:1642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
if { (eval echo configure:1168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 1168 |
ac_cv_prog_cc_works=yes |
ac_cv_prog_cc_works=yes |
| 1169 |
# If we can't run a trivial program, we are probably using a cross compiler. |
# If we can't run a trivial program, we are probably using a cross compiler. |
| 1170 |
if (./conftest; exit) 2>/dev/null; then |
if (./conftest; exit) 2>/dev/null; then |
| 1190 |
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
| 1191 |
fi |
fi |
| 1192 |
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
| 1193 |
echo "configure:1668: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
echo "configure:1194: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
| 1194 |
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
| 1195 |
cross_compiling=$ac_cv_prog_cc_cross |
cross_compiling=$ac_cv_prog_cc_cross |
| 1196 |
|
|
| 1197 |
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
| 1198 |
echo "configure:1673: checking whether we are using GNU C" >&5 |
echo "configure:1199: checking whether we are using GNU C" >&5 |
| 1199 |
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
| 1200 |
echo $ac_n "(cached) $ac_c" 1>&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1201 |
else |
else |
| 1204 |
yes; |
yes; |
| 1205 |
#endif |
#endif |
| 1206 |
EOF |
EOF |
| 1207 |
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1208: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
| 1208 |
ac_cv_prog_gcc=yes |
ac_cv_prog_gcc=yes |
| 1209 |
else |
else |
| 1210 |
ac_cv_prog_gcc=no |
ac_cv_prog_gcc=no |
| 1223 |
ac_save_CFLAGS="$CFLAGS" |
ac_save_CFLAGS="$CFLAGS" |
| 1224 |
CFLAGS= |
CFLAGS= |
| 1225 |
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
| 1226 |
echo "configure:1701: checking whether ${CC-cc} accepts -g" >&5 |
echo "configure:1227: checking whether ${CC-cc} accepts -g" >&5 |
| 1227 |
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
| 1228 |
echo $ac_n "(cached) $ac_c" 1>&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1229 |
else |
else |
| 1254 |
fi |
fi |
| 1255 |
fi |
fi |
| 1256 |
|
|
| 1257 |
echo $ac_n "checking for cpp""... $ac_c" 1>&6 |
|
| 1258 |
echo "configure:1733: checking for cpp" >&5 |
# CCOPTIONS="" |
| 1259 |
hosttype=`uname` |
CDEBUGFLAGS=${CDEBUGFLAGS:-"-O"} |
| 1260 |
CCOPTIONS="" |
case $host in |
| 1261 |
CDEBUGFLAGS=-O |
*-*-linux*) |
|
case $hosttype in |
|
|
"Linux") |
|
| 1262 |
CCOPTIONS="-Dlinux -D_POSIX_SOURCE -D_BSD_SOURCE" |
CCOPTIONS="-Dlinux -D_POSIX_SOURCE -D_BSD_SOURCE" |
| 1263 |
CDEBUGFLAGS="-O2 -fno-strength-reduce" |
CDEBUGFLAGS="-O2 -fno-strength-reduce" |
|
CPP=`$CC -print-prog-name=cpp` |
|
| 1264 |
;; |
;; |
| 1265 |
"FreeBSD"|"NetBSD"|"OpenBSD") |
*-*-freebsd*|*-*-netbsd*|*-*-openbsd*) |
| 1266 |
CCOPTIONS="-DCSRG_BASED" |
CCOPTIONS="-DCSRG_BASED" |
| 1267 |
CDEBUGFLAGS="-O2 -fno-strength-reduce" |
CDEBUGFLAGS="-O2 -fno-strength-reduce" |
|
CPP=`$CC -print-prog-name=cpp` |
|
| 1268 |
;; |
;; |
| 1269 |
"BSD/OS") |
*-*-bsdi*) |
| 1270 |
CCOPTIONS="-DCSRG_BASED" |
CCOPTIONS="-DCSRG_BASED" |
| 1271 |
CDEBUGFLAGS="-O2 -fno-strength-reduce" |
CDEBUGFLAGS="-O2 -fno-strength-reduce" |
|
if test -x /usr/bin/cpp; then |
|
|
CPP=/usr/bin/cpp |
|
|
fi |
|
| 1272 |
;; |
;; |
| 1273 |
"SunOS") |
*-*-sunos*) |
|
case `uname -r` in |
|
|
4.*) |
|
| 1274 |
if test $CC = gcc; then |
if test $CC = gcc; then |
| 1275 |
CDEBUGFLAGS=-O2 |
CDEBUGFLAGS=-O2 |
| 1276 |
CCOPTIONS="-Dsun -Dsparc" |
CCOPTIONS="-Dsun -Dsparc" |
| 1278 |
CDEBUGFLAGS=-O4 |
CDEBUGFLAGS=-O4 |
| 1279 |
CCOPTIONS="" |
CCOPTIONS="" |
| 1280 |
fi |
fi |
|
CPP=/usr/lib/cpp |
|
| 1281 |
;; |
;; |
| 1282 |
5.*) |
*-*-solaris2.*) |
| 1283 |
|
# Will 'solaris*' be OK? |
| 1284 |
if test $CC = gcc; then |
if test $CC = gcc; then |
| 1285 |
CDEBUGFLAGS=-O2 |
CDEBUGFLAGS=-O2 |
| 1286 |
CCOPTIONS="-Dsun -D`uname -p` -DSVR4 -DSYSV" |
CCOPTIONS="-Dsun -D`uname -p` -DSVR4 -DSYSV" |
| 1287 |
else |
else |
| 1288 |
CCOPTIONS="-Xc -xF -xcg92 -Dsun -D`uname -p` -DSVR4 -DSYSV" |
CCOPTIONS="-Xc -xF -xcg92 -Dsun -D`uname -p` -DSVR4 -DSYSV" |
| 1289 |
fi |
fi |
|
if test -x /usr/ccs/lib/cpp; then |
|
|
CPP=/usr/ccs/lib/cpp |
|
|
fi |
|
|
;; |
|
|
*) |
|
|
echo "configure: warning: "It is not reported if FreeWnn works on this system. But continuing..."" 1>&2 |
|
|
;; |
|
|
esac |
|
| 1290 |
;; |
;; |
| 1291 |
"HP-UX") |
*-*-hpux*) |
| 1292 |
if test $CC = gcc; then |
if test $CC = gcc; then |
| 1293 |
CDEBUGFLAGS=-O2 |
CDEBUGFLAGS=-O2 |
| 1294 |
CCOPTIONS="-Dhpux -DSYSV" |
CCOPTIONS="-Dhpux -DSYSV" |
| 1295 |
else |
else |
| 1296 |
CCOPTIONS="-Ae -Dhpux -DSYSV" |
CCOPTIONS="-Ae -Dhpux -DSYSV" |
| 1297 |
fi |
fi |
|
case `uname -r` in |
|
|
A.09.*) |
|
|
if test -x /lib/cpp; then |
|
|
CPP=/lib/cpp |
|
|
fi |
|
|
;; |
|
|
B.10.*|B.11.*) |
|
|
if test -x /opt/langtools/lbin/cpp; then |
|
|
CPP=/opt/langtools/lbin/cpp |
|
|
fi |
|
| 1298 |
;; |
;; |
| 1299 |
*) |
i[34567]86-pc-beos*) |
|
echo "configure: warning: "It is not reported if FreeWnn works on this system. But continuing..."" 1>&2 |
|
|
;; |
|
|
esac |
|
|
;; |
|
|
"BeOS") |
|
|
case `uname -m` in |
|
|
"BePC") |
|
| 1300 |
CCOPTIONS="-DBEOS -D_POSIX_SOURCE -D_BSD_SOURCE" |
CCOPTIONS="-DBEOS -D_POSIX_SOURCE -D_BSD_SOURCE" |
| 1301 |
CDEBUGFLAGS="-O2 -fno-strength-reduce" |
CDEBUGFLAGS="-O2 -fno-strength-reduce" |
|
CPP=`$CC -print-prog-name=cpp` |
|
| 1302 |
;; |
;; |
| 1303 |
"BeBox"|"BeMac") |
powerpc-*-beos*) |
| 1304 |
CCOPTIONS="-DBEOS -D_POSIX_SOURCE -D_BSD_SOURCE" |
CCOPTIONS="-DBEOS -D_POSIX_SOURCE -D_BSD_SOURCE" |
|
NON_GNU_CPP=/boot/apps/GeekGadgets/bin/cpp |
|
| 1305 |
;; |
;; |
| 1306 |
*) |
*-*-aix*) |
|
{ echo "configure: error: "This system is not supported."" 1>&2; exit 1; } |
|
|
;; |
|
|
esac |
|
|
;; |
|
|
"AIX") |
|
| 1307 |
if test $CC = gcc; then |
if test $CC = gcc; then |
| 1308 |
CDEBUGFLAGS=-O2 |
CDEBUGFLAGS=-O2 |
| 1309 |
else |
else |
| 1310 |
CDEBUGFLAGS=-O |
CDEBUGFLAGS=-O |
| 1311 |
fi |
fi |
| 1312 |
CCOPTIONS="-DSYSV" |
CCOPTIONS="-DSYSV" |
|
CPP=/usr/lib/cpp |
|
| 1313 |
;; |
;; |
| 1314 |
*) |
*) |
| 1315 |
echo "configure: warning: "It is not reported if FreeWnn works on this system. But continuing..."" 1>&2 |
echo "configure: warning: "It is not reported if FreeWnn works on this system. But continuing..."" 1>&2 |
| 1316 |
|
echo "configure: warning: (It may or may not work if you set CCOPTIONS properly.)" 1>&2 |
| 1317 |
;; |
;; |
| 1318 |
esac |
esac |
| 1319 |
|
|
| 1320 |
|
echo "Set CDEBUGFLAGS and CCOPTIONS to following:" |
| 1321 |
|
echo ' CDEBUGFLAGS="'"$CDEBUGFLAGS"'"' |
| 1322 |
|
echo ' CCOPTIONS="'"$CCOPTIONS"'"' |
| 1323 |
|
|
| 1324 |
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
| 1325 |
echo "configure:1836: checking how to run the C preprocessor" >&5 |
echo "configure:1326: checking how to run the C preprocessor" >&5 |
| 1326 |
# On Suns, sometimes $CPP names a directory. |
# On Suns, sometimes $CPP names a directory. |
| 1327 |
if test -n "$CPP" && test -d "$CPP"; then |
if test -n "$CPP" && test -d "$CPP"; then |
| 1328 |
CPP= |
CPP= |
| 1337 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
# On the NeXT, cc -E runs the code through the compiler's parser, |
| 1338 |
# not just through cpp. |
# not just through cpp. |
| 1339 |
cat > conftest.$ac_ext <<EOF |
cat > conftest.$ac_ext <<EOF |
| 1340 |
#line 1851 "configure" |
#line 1341 "configure" |
| 1341 |
#include "confdefs.h" |
#include "confdefs.h" |
| 1342 |
#include <assert.h> |
#include <assert.h> |
| 1343 |
Syntax Error |
Syntax Error |
| 1344 |
EOF |
EOF |
| 1345 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1346 |
{ (eval echo configure:1857: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
{ (eval echo configure:1347: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1347 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1348 |
if test -z "$ac_err"; then |
if test -z "$ac_err"; then |
| 1349 |
: |
: |
| 1354 |
rm -rf conftest* |
rm -rf conftest* |
| 1355 |
CPP="${CC-cc} -E -traditional-cpp" |
CPP="${CC-cc} -E -traditional-cpp" |
| 1356 |
cat > conftest.$ac_ext <<EOF |
cat > conftest.$ac_ext <<EOF |
| 1357 |
#line 1868 "configure" |
#line 1358 "configure" |
| 1358 |
#include "confdefs.h" |
#include "confdefs.h" |
| 1359 |
#include <assert.h> |
#include <assert.h> |
| 1360 |
Syntax Error |
Syntax Error |
| 1361 |
EOF |
EOF |
| 1362 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1363 |
{ (eval echo configure:1874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
{ (eval echo configure:1364: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1364 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1365 |
if test -z "$ac_err"; then |
if test -z "$ac_err"; then |
| 1366 |
: |
: |
| 1371 |
rm -rf conftest* |
rm -rf conftest* |
| 1372 |
CPP="${CC-cc} -nologo -E" |
CPP="${CC-cc} -nologo -E" |
| 1373 |
cat > conftest.$ac_ext <<EOF |
cat > conftest.$ac_ext <<EOF |
| 1374 |
#line 1885 "configure" |
#line 1375 "configure" |
| 1375 |
#include "confdefs.h" |
#include "confdefs.h" |
| 1376 |
#include <assert.h> |
#include <assert.h> |
| 1377 |
Syntax Error |
Syntax Error |
| 1378 |
EOF |
EOF |
| 1379 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1380 |
{ (eval echo configure:1891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
{ (eval echo configure:1381: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1381 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1382 |
if test -z "$ac_err"; then |
if test -z "$ac_err"; then |
| 1383 |
: |
: |
| 1414 |
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 1415 |
# ./install, which can be erroneously created by make from ./install.sh. |
# ./install, which can be erroneously created by make from ./install.sh. |
| 1416 |
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
| 1417 |
echo "configure:1928: checking for a BSD compatible install" >&5 |
echo "configure:1418: checking for a BSD compatible install" >&5 |
| 1418 |
if test -z "$INSTALL"; then |
if test -z "$INSTALL"; then |
| 1419 |
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
| 1420 |
echo $ac_n "(cached) $ac_c" 1>&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1467 |
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 1468 |
|
|
| 1469 |
echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
| 1470 |
echo "configure:1981: checking whether ln -s works" >&5 |
echo "configure:1471: checking whether ln -s works" >&5 |
| 1471 |
if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
| 1472 |
echo $ac_n "(cached) $ac_c" 1>&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1473 |
else |
else |
| 1488 |
fi |
fi |
| 1489 |
|
|
| 1490 |
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
| 1491 |
echo "configure:2002: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
echo "configure:1492: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
| 1492 |
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
| 1493 |
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
| 1494 |
echo $ac_n "(cached) $ac_c" 1>&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1514 |
SET_MAKE="MAKE=${MAKE-make}" |
SET_MAKE="MAKE=${MAKE-make}" |
| 1515 |
fi |
fi |
| 1516 |
|
|
| 1517 |
# Extract the first word of "ranlib", so it can be a program name with args. |
echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 |
| 1518 |
|
echo "configure:1519: checking for Cygwin environment" >&5 |
| 1519 |
|
if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then |
| 1520 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1521 |
|
else |
| 1522 |
|
cat > conftest.$ac_ext <<EOF |
| 1523 |
|
#line 1524 "configure" |
| 1524 |
|
#include "confdefs.h" |
| 1525 |
|
|
| 1526 |
|
int main() { |
| 1527 |
|
|
| 1528 |
|
#ifndef __CYGWIN__ |
| 1529 |
|
#define __CYGWIN__ __CYGWIN32__ |
| 1530 |
|
#endif |
| 1531 |
|
return __CYGWIN__; |
| 1532 |
|
; return 0; } |
| 1533 |
|
EOF |
| 1534 |
|
if { (eval echo configure:1535: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 1535 |
|
rm -rf conftest* |
| 1536 |
|
ac_cv_cygwin=yes |
| 1537 |
|
else |
| 1538 |
|
echo "configure: failed program was:" >&5 |
| 1539 |
|
cat conftest.$ac_ext >&5 |
| 1540 |
|
rm -rf conftest* |
| 1541 |
|
ac_cv_cygwin=no |
| 1542 |
|
fi |
| 1543 |
|
rm -f conftest* |
| 1544 |
|
rm -f conftest* |
| 1545 |
|
fi |
| 1546 |
|
|
| 1547 |
|
echo "$ac_t""$ac_cv_cygwin" 1>&6 |
| 1548 |
|
CYGWIN= |
| 1549 |
|
test "$ac_cv_cygwin" = yes && CYGWIN=yes |
| 1550 |
|
echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 |
| 1551 |
|
echo "configure:1552: checking for mingw32 environment" >&5 |
| 1552 |
|
if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then |
| 1553 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1554 |
|
else |
| 1555 |
|
cat > conftest.$ac_ext <<EOF |
| 1556 |
|
#line 1557 "configure" |
| 1557 |
|
#include "confdefs.h" |
| 1558 |
|
|
| 1559 |
|
int main() { |
| 1560 |
|
return __MINGW32__; |
| 1561 |
|
; return 0; } |
| 1562 |
|
EOF |
| 1563 |
|
if { (eval echo configure:1564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 1564 |
|
rm -rf conftest* |
| 1565 |
|
ac_cv_mingw32=yes |
| 1566 |
|
else |
| 1567 |
|
echo "configure: failed program was:" >&5 |
| 1568 |
|
cat conftest.$ac_ext >&5 |
| 1569 |
|
rm -rf conftest* |
| 1570 |
|
ac_cv_mingw32=no |
| 1571 |
|
fi |
| 1572 |
|
rm -f conftest* |
| 1573 |
|
rm -f conftest* |
| 1574 |
|
fi |
| 1575 |
|
|
| 1576 |
|
echo "$ac_t""$ac_cv_mingw32" 1>&6 |
| 1577 |
|
MINGW32= |
| 1578 |
|
test "$ac_cv_mingw32" = yes && MINGW32=yes |
| 1579 |
|
# Check whether --enable-shared or --disable-shared was given. |
| 1580 |
|
if test "${enable_shared+set}" = set; then |
| 1581 |
|
enableval="$enable_shared" |
| 1582 |
|
p=${PACKAGE-default} |
| 1583 |
|
case $enableval in |
| 1584 |
|
yes) enable_shared=yes ;; |
| 1585 |
|
no) enable_shared=no ;; |
| 1586 |
|
*) |
| 1587 |
|
enable_shared=no |
| 1588 |
|
# Look at the argument we got. We use all the common list separators. |
| 1589 |
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
| 1590 |
|
for pkg in $enableval; do |
| 1591 |
|
if test "X$pkg" = "X$p"; then |
| 1592 |
|
enable_shared=yes |
| 1593 |
|
fi |
| 1594 |
|
done |
| 1595 |
|
IFS="$ac_save_ifs" |
| 1596 |
|
;; |
| 1597 |
|
esac |
| 1598 |
|
else |
| 1599 |
|
enable_shared=yes |
| 1600 |
|
fi |
| 1601 |
|
|
| 1602 |
|
# Check whether --enable-static or --disable-static was given. |
| 1603 |
|
if test "${enable_static+set}" = set; then |
| 1604 |
|
enableval="$enable_static" |
| 1605 |
|
p=${PACKAGE-default} |
| 1606 |
|
case $enableval in |
| 1607 |
|
yes) enable_static=yes ;; |
| 1608 |
|
no) enable_static=no ;; |
| 1609 |
|
*) |
| 1610 |
|
enable_static=no |
| 1611 |
|
# Look at the argument we got. We use all the common list separators. |
| 1612 |
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
| 1613 |
|
for pkg in $enableval; do |
| 1614 |
|
if test "X$pkg" = "X$p"; then |
| 1615 |
|
enable_static=yes |
| 1616 |
|
fi |
| 1617 |
|
done |
| 1618 |
|
IFS="$ac_save_ifs" |
| 1619 |
|
;; |
| 1620 |
|
esac |
| 1621 |
|
else |
| 1622 |
|
enable_static=yes |
| 1623 |
|
fi |
| 1624 |
|
|
| 1625 |
|
# Check whether --enable-fast-install or --disable-fast-install was given. |
| 1626 |
|
if test "${enable_fast_install+set}" = set; then |
| 1627 |
|
enableval="$enable_fast_install" |
| 1628 |
|
p=${PACKAGE-default} |
| 1629 |
|
case $enableval in |
| 1630 |
|
yes) enable_fast_install=yes ;; |
| 1631 |
|
no) enable_fast_install=no ;; |
| 1632 |
|
*) |
| 1633 |
|
enable_fast_install=no |
| 1634 |
|
# Look at the argument we got. We use all the common list separators. |
| 1635 |
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
| 1636 |
|
for pkg in $enableval; do |
| 1637 |
|
if test "X$pkg" = "X$p"; then |
| 1638 |
|
enable_fast_install=yes |
| 1639 |
|
fi |
| 1640 |
|
done |
| 1641 |
|
IFS="$ac_save_ifs" |
| 1642 |
|
;; |
| 1643 |
|
esac |
| 1644 |
|
else |
| 1645 |
|
enable_fast_install=yes |
| 1646 |
|
fi |
| 1647 |
|
|
| 1648 |
|
echo $ac_n "checking build system type""... $ac_c" 1>&6 |
| 1649 |
|
echo "configure:1650: checking build system type" >&5 |
| 1650 |
|
|
| 1651 |
|
build_alias=$build |
| 1652 |
|
case "$build_alias" in |
| 1653 |
|
NONE) |
| 1654 |
|
case $nonopt in |
| 1655 |
|
NONE) build_alias=$host_alias ;; |
| 1656 |
|
*) build_alias=$nonopt ;; |
| 1657 |
|
esac ;; |
| 1658 |
|
esac |
| 1659 |
|
|
| 1660 |
|
build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` |
| 1661 |
|
build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1662 |
|
build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1663 |
|
build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1664 |
|
echo "$ac_t""$build" 1>&6 |
| 1665 |
|
|
| 1666 |
|
# Check whether --with-gnu-ld or --without-gnu-ld was given. |
| 1667 |
|
if test "${with_gnu_ld+set}" = set; then |
| 1668 |
|
withval="$with_gnu_ld" |
| 1669 |
|
test "$withval" = no || with_gnu_ld=yes |
| 1670 |
|
else |
| 1671 |
|
with_gnu_ld=no |
| 1672 |
|
fi |
| 1673 |
|
|
| 1674 |
|
ac_prog=ld |
| 1675 |
|
if test "$GCC" = yes; then |
| 1676 |
|
# Check if gcc -print-prog-name=ld gives a path. |
| 1677 |
|
echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 |
| 1678 |
|
echo "configure:1679: checking for ld used by GCC" >&5 |
| 1679 |
|
case $host in |
| 1680 |
|
*-*-mingw*) |
| 1681 |
|
# gcc leaves a trailing carriage return which upsets mingw |
| 1682 |
|
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 1683 |
|
*) |
| 1684 |
|
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 1685 |
|
esac |
| 1686 |
|
case $ac_prog in |
| 1687 |
|
# Accept absolute paths. |
| 1688 |
|
[\\/]* | [A-Za-z]:[\\/]*) |
| 1689 |
|
re_direlt='/[^/][^/]*/\.\./' |
| 1690 |
|
# Canonicalize the path of ld |
| 1691 |
|
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
| 1692 |
|
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 1693 |
|
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
| 1694 |
|
done |
| 1695 |
|
test -z "$LD" && LD="$ac_prog" |
| 1696 |
|
;; |
| 1697 |
|
"") |
| 1698 |
|
# If it fails, then pretend we aren't using GCC. |
| 1699 |
|
ac_prog=ld |
| 1700 |
|
;; |
| 1701 |
|
*) |
| 1702 |
|
# If it is relative, then search for the first ld in PATH. |
| 1703 |
|
with_gnu_ld=unknown |
| 1704 |
|
;; |
| 1705 |
|
esac |
| 1706 |
|
elif test "$with_gnu_ld" = yes; then |
| 1707 |
|
echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 |
| 1708 |
|
echo "configure:1709: checking for GNU ld" >&5 |
| 1709 |
|
else |
| 1710 |
|
echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 |
| 1711 |
|
echo "configure:1712: checking for non-GNU ld" >&5 |
| 1712 |
|
fi |
| 1713 |
|
if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then |
| 1714 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1715 |
|
else |
| 1716 |
|
if test -z "$LD"; then |
| 1717 |
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
| 1718 |
|
for ac_dir in $PATH; do |
| 1719 |
|
test -z "$ac_dir" && ac_dir=. |
| 1720 |
|
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 1721 |
|
lt_cv_path_LD="$ac_dir/$ac_prog" |
| 1722 |
|
# Check to see if the program is GNU ld. I'd rather use --version, |
| 1723 |
|
# but apparently some GNU ld's only accept -v. |
| 1724 |
|
# Break only if it was the GNU/non-GNU ld that we prefer. |
| 1725 |
|
if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
| 1726 |
|
test "$with_gnu_ld" != no && break |
| 1727 |
|
else |
| 1728 |
|
test "$with_gnu_ld" != yes && break |
| 1729 |
|
fi |
| 1730 |
|
fi |
| 1731 |
|
done |
| 1732 |
|
IFS="$ac_save_ifs" |
| 1733 |
|
else |
| 1734 |
|
lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 1735 |
|
fi |
| 1736 |
|
fi |
| 1737 |
|
|
| 1738 |
|
LD="$lt_cv_path_LD" |
| 1739 |
|
if test -n "$LD"; then |
| 1740 |
|
echo "$ac_t""$LD" 1>&6 |
| 1741 |
|
else |
| 1742 |
|
echo "$ac_t""no" 1>&6 |
| 1743 |
|
fi |
| 1744 |
|
test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } |
| 1745 |
|
echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 |
| 1746 |
|
echo "configure:1747: checking if the linker ($LD) is GNU ld" >&5 |
| 1747 |
|
if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then |
| 1748 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1749 |
|
else |
| 1750 |
|
# I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 1751 |
|
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then |
| 1752 |
|
lt_cv_prog_gnu_ld=yes |
| 1753 |
|
else |
| 1754 |
|
lt_cv_prog_gnu_ld=no |
| 1755 |
|
fi |
| 1756 |
|
fi |
| 1757 |
|
|
| 1758 |
|
echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6 |
| 1759 |
|
with_gnu_ld=$lt_cv_prog_gnu_ld |
| 1760 |
|
|
| 1761 |
|
|
| 1762 |
|
echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6 |
| 1763 |
|
echo "configure:1764: checking for $LD option to reload object files" >&5 |
| 1764 |
|
if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then |
| 1765 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1766 |
|
else |
| 1767 |
|
lt_cv_ld_reload_flag='-r' |
| 1768 |
|
fi |
| 1769 |
|
|
| 1770 |
|
echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6 |
| 1771 |
|
reload_flag=$lt_cv_ld_reload_flag |
| 1772 |
|
test -n "$reload_flag" && reload_flag=" $reload_flag" |
| 1773 |
|
|
| 1774 |
|
echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 |
| 1775 |
|
echo "configure:1776: checking for BSD-compatible nm" >&5 |
| 1776 |
|
if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then |
| 1777 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1778 |
|
else |
| 1779 |
|
if test -n "$NM"; then |
| 1780 |
|
# Let the user override the test. |
| 1781 |
|
lt_cv_path_NM="$NM" |
| 1782 |
|
else |
| 1783 |
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
| 1784 |
|
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
| 1785 |
|
test -z "$ac_dir" && ac_dir=. |
| 1786 |
|
tmp_nm=$ac_dir/${ac_tool_prefix}nm |
| 1787 |
|
if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then |
| 1788 |
|
# Check to see if the nm accepts a BSD-compat flag. |
| 1789 |
|
# Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 1790 |
|
# nm: unknown option "B" ignored |
| 1791 |
|
# Tru64's nm complains that /dev/null is an invalid object file |
| 1792 |
|
if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then |
| 1793 |
|
lt_cv_path_NM="$tmp_nm -B" |
| 1794 |
|
break |
| 1795 |
|
elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
| 1796 |
|
lt_cv_path_NM="$tmp_nm -p" |
| 1797 |
|
break |
| 1798 |
|
else |
| 1799 |
|
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 1800 |
|
continue # so that we can try to find one that supports BSD flags |
| 1801 |
|
fi |
| 1802 |
|
fi |
| 1803 |
|
done |
| 1804 |
|
IFS="$ac_save_ifs" |
| 1805 |
|
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 1806 |
|
fi |
| 1807 |
|
fi |
| 1808 |
|
|
| 1809 |
|
NM="$lt_cv_path_NM" |
| 1810 |
|
echo "$ac_t""$NM" 1>&6 |
| 1811 |
|
|
| 1812 |
|
echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6 |
| 1813 |
|
echo "configure:1814: checking how to recognise dependant libraries" >&5 |
| 1814 |
|
if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then |
| 1815 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1816 |
|
else |
| 1817 |
|
lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 1818 |
|
lt_cv_file_magic_test_file= |
| 1819 |
|
lt_cv_deplibs_check_method='unknown' |
| 1820 |
|
# Need to set the preceding variable on all platforms that support |
| 1821 |
|
# interlibrary dependencies. |
| 1822 |
|
# 'none' -- dependencies not supported. |
| 1823 |
|
# `unknown' -- same as none, but documents that we really don't know. |
| 1824 |
|
# 'pass_all' -- all dependencies passed with no checks. |
| 1825 |
|
# 'test_compile' -- check by making test program. |
| 1826 |
|
# ['file_magic [regex]'] -- check by looking for files in library path |
| 1827 |
|
# which responds to the $file_magic_cmd with a given egrep regex. |
| 1828 |
|
# If you have `file' or equivalent on your system and you're not sure |
| 1829 |
|
# whether `pass_all' will *always* work, you probably want this one. |
| 1830 |
|
|
| 1831 |
|
case $host_os in |
| 1832 |
|
aix4* | aix5*) |
| 1833 |
|
lt_cv_deplibs_check_method=pass_all |
| 1834 |
|
;; |
| 1835 |
|
|
| 1836 |
|
beos*) |
| 1837 |
|
lt_cv_deplibs_check_method=pass_all |
| 1838 |
|
;; |
| 1839 |
|
|
| 1840 |
|
bsdi4*) |
| 1841 |
|
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 1842 |
|
lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 1843 |
|
lt_cv_file_magic_test_file=/shlib/libc.so |
| 1844 |
|
;; |
| 1845 |
|
|
| 1846 |
|
cygwin* | mingw* | pw32*) |
| 1847 |
|
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 1848 |
|
lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 1849 |
|
;; |
| 1850 |
|
|
| 1851 |
|
darwin* | rhapsody*) |
| 1852 |
|
lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' |
| 1853 |
|
lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 1854 |
|
case "$host_os" in |
| 1855 |
|
rhapsody* | darwin1.012) |
| 1856 |
|
lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1` |
| 1857 |
|
;; |
| 1858 |
|
*) # Darwin 1.3 on |
| 1859 |
|
lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' |
| 1860 |
|
;; |
| 1861 |
|
esac |
| 1862 |
|
;; |
| 1863 |
|
|
| 1864 |
|
freebsd*) |
| 1865 |
|
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 1866 |
|
case $host_cpu in |
| 1867 |
|
i*86 ) |
| 1868 |
|
# Not sure whether the presence of OpenBSD here was a mistake. |
| 1869 |
|
# Let's accept both of them until this is cleared up. |
| 1870 |
|
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
| 1871 |
|
lt_cv_file_magic_cmd=/usr/bin/file |
| 1872 |
|
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 1873 |
|
;; |
| 1874 |
|
esac |
| 1875 |
|
else |
| 1876 |
|
lt_cv_deplibs_check_method=pass_all |
| 1877 |
|
fi |
| 1878 |
|
;; |
| 1879 |
|
|
| 1880 |
|
gnu*) |
| 1881 |
|
lt_cv_deplibs_check_method=pass_all |
| 1882 |
|
;; |
| 1883 |
|
|
| 1884 |
|
hpux10.20*|hpux11*) |
| 1885 |
|
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 1886 |
|
lt_cv_file_magic_cmd=/usr/bin/file |
| 1887 |
|
lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 1888 |
|
;; |
| 1889 |
|
|
| 1890 |
|
irix5* | irix6*) |
| 1891 |
|
case $host_os in |
| 1892 |
|
irix5*) |
| 1893 |
|
# this will be overridden with pass_all, but let us keep it just in case |
| 1894 |
|
lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" |
| 1895 |
|
;; |
| 1896 |
|
*) |
| 1897 |
|
case $LD in |
| 1898 |
|
*-32|*"-32 ") libmagic=32-bit;; |
| 1899 |
|
*-n32|*"-n32 ") libmagic=N32;; |
| 1900 |
|
*-64|*"-64 ") libmagic=64-bit;; |
| 1901 |
|
*) libmagic=never-match;; |
| 1902 |
|
esac |
| 1903 |
|
# this will be overridden with pass_all, but let us keep it just in case |
| 1904 |
|
lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" |
| 1905 |
|
;; |
| 1906 |
|
esac |
| 1907 |
|
lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` |
| 1908 |
|
lt_cv_deplibs_check_method=pass_all |
| 1909 |
|
;; |
| 1910 |
|
|
| 1911 |
|
# This must be Linux ELF. |
| 1912 |
|
linux-gnu*) |
| 1913 |
|
case $host_cpu in |
| 1914 |
|
alpha* | i*86 | powerpc* | sparc* | ia64* ) |
| 1915 |
|
lt_cv_deplibs_check_method=pass_all ;; |
| 1916 |
|
*) |
| 1917 |
|
# glibc up to 2.1.1 does not perform some relocations on ARM |
| 1918 |
|
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; |
| 1919 |
|
esac |
| 1920 |
|
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
| 1921 |
|
;; |
| 1922 |
|
|
| 1923 |
|
netbsd*) |
| 1924 |
|
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 1925 |
|
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' |
| 1926 |
|
else |
| 1927 |
|
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' |
| 1928 |
|
fi |
| 1929 |
|
;; |
| 1930 |
|
|
| 1931 |
|
newos6*) |
| 1932 |
|
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 1933 |
|
lt_cv_file_magic_cmd=/usr/bin/file |
| 1934 |
|
lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 1935 |
|
;; |
| 1936 |
|
|
| 1937 |
|
osf3* | osf4* | osf5*) |
| 1938 |
|
# this will be overridden with pass_all, but let us keep it just in case |
| 1939 |
|
lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' |
| 1940 |
|
lt_cv_file_magic_test_file=/shlib/libc.so |
| 1941 |
|
lt_cv_deplibs_check_method=pass_all |
| 1942 |
|
;; |
| 1943 |
|
|
| 1944 |
|
sco3.2v5*) |
| 1945 |
|
lt_cv_deplibs_check_method=pass_all |
| 1946 |
|
;; |
| 1947 |
|
|
| 1948 |
|
solaris*) |
| 1949 |
|
lt_cv_deplibs_check_method=pass_all |
| 1950 |
|
lt_cv_file_magic_test_file=/lib/libc.so |
| 1951 |
|
;; |
| 1952 |
|
|
| 1953 |
|
sysv5uw[78]* | sysv4*uw2*) |
| 1954 |
|
lt_cv_deplibs_check_method=pass_all |
| 1955 |
|
;; |
| 1956 |
|
|
| 1957 |
|
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 1958 |
|
case $host_vendor in |
| 1959 |
|
motorola) |
| 1960 |
|
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]' |
| 1961 |
|
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 1962 |
|
;; |
| 1963 |
|
ncr) |
| 1964 |
|
lt_cv_deplibs_check_method=pass_all |
| 1965 |
|
;; |
| 1966 |
|
sequent) |
| 1967 |
|
lt_cv_file_magic_cmd='/bin/file' |
| 1968 |
|
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 1969 |
|
;; |
| 1970 |
|
sni) |
| 1971 |
|
lt_cv_file_magic_cmd='/bin/file' |
| 1972 |
|
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 1973 |
|
lt_cv_file_magic_test_file=/lib/libc.so |
| 1974 |
|
;; |
| 1975 |
|
esac |
| 1976 |
|
;; |
| 1977 |
|
esac |
| 1978 |
|
|
| 1979 |
|
fi |
| 1980 |
|
|
| 1981 |
|
echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6 |
| 1982 |
|
file_magic_cmd=$lt_cv_file_magic_cmd |
| 1983 |
|
deplibs_check_method=$lt_cv_deplibs_check_method |
| 1984 |
|
|
| 1985 |
|
echo $ac_n "checking for object suffix""... $ac_c" 1>&6 |
| 1986 |
|
echo "configure:1987: checking for object suffix" >&5 |
| 1987 |
|
if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then |
| 1988 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1989 |
|
else |
| 1990 |
|
rm -f conftest* |
| 1991 |
|
echo 'int i = 1;' > conftest.$ac_ext |
| 1992 |
|
if { (eval echo configure:1993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 1993 |
|
for ac_file in conftest.*; do |
| 1994 |
|
case $ac_file in |
| 1995 |
|
*.c) ;; |
| 1996 |
|
*) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;; |
| 1997 |
|
esac |
| 1998 |
|
done |
| 1999 |
|
else |
| 2000 |
|
{ echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; } |
| 2001 |
|
fi |
| 2002 |
|
rm -f conftest* |
| 2003 |
|
fi |
| 2004 |
|
|
| 2005 |
|
echo "$ac_t""$ac_cv_objext" 1>&6 |
| 2006 |
|
OBJEXT=$ac_cv_objext |
| 2007 |
|
ac_objext=$ac_cv_objext |
| 2008 |
|
|
| 2009 |
|
|
| 2010 |
|
|
| 2011 |
|
echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 |
| 2012 |
|
echo "configure:2013: checking for executable suffix" >&5 |
| 2013 |
|
if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then |
| 2014 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
| 2015 |
|
else |
| 2016 |
|
if test "$CYGWIN" = yes || test "$MINGW32" = yes; then |
| 2017 |
|
ac_cv_exeext=.exe |
| 2018 |
|
else |
| 2019 |
|
rm -f conftest* |
| 2020 |
|
echo 'int main () { return 0; }' > conftest.$ac_ext |
| 2021 |
|
ac_cv_exeext= |
| 2022 |
|
if { (eval echo configure:2023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
| 2023 |
|
for file in conftest.*; do |
| 2024 |
|
case $file in |
| 2025 |
|
*.c | *.o | *.obj) ;; |
| 2026 |
|
*) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; |
| 2027 |
|
esac |
| 2028 |
|
done |
| 2029 |
|
else |
| 2030 |
|
{ echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } |
| 2031 |
|
fi |
| 2032 |
|
rm -f conftest* |
| 2033 |
|
test x"${ac_cv_exeext}" = x && ac_cv_exeext=no |
| 2034 |
|
fi |
| 2035 |
|
fi |
| 2036 |
|
|
| 2037 |
|
EXEEXT="" |
| 2038 |
|
test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} |
| 2039 |
|
echo "$ac_t""${ac_cv_exeext}" 1>&6 |
| 2040 |
|
ac_exeext=$EXEEXT |
| 2041 |
|
|
| 2042 |
|
if test $host != $build; then |
| 2043 |
|
ac_tool_prefix=${host_alias}- |
| 2044 |
|
else |
| 2045 |
|
ac_tool_prefix= |
| 2046 |
|
fi |
| 2047 |
|
|
| 2048 |
|
|
| 2049 |
|
|
| 2050 |
|
|
| 2051 |
|
# Check for command to grab the raw symbol name followed by C symbol from nm. |
| 2052 |
|
echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6 |
| 2053 |
|
echo "configure:2054: checking command to parse $NM output" >&5 |
| 2054 |
|
if eval "test \"`echo '$''{'lt_cv_sys_global_symbol_pipe'+set}'`\" = set"; then |
| 2055 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
| 2056 |
|
else |
| 2057 |
|
|
| 2058 |
|
# These are sane defaults that work on at least a few old systems. |
| 2059 |
|
# [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 2060 |
|
|
| 2061 |
|
# Character class describing NM global symbol codes. |
| 2062 |
|
symcode='[BCDEGRST]' |
| 2063 |
|
|
| 2064 |
|
# Regexp to match symbols that can be accessed directly from C. |
| 2065 |
|
sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 2066 |
|
|
| 2067 |
|
# Transform the above into a raw symbol and a C symbol. |
| 2068 |
|
symxfrm='\1 \2\3 \3' |
| 2069 |
|
|
| 2070 |
|
# Transform an extracted symbol line into a proper C declaration |
| 2071 |
|
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'" |
| 2072 |
|
|
| 2073 |
|
# Define system-specific variables. |
| 2074 |
|
case $host_os in |
| 2075 |
|
aix*) |
| 2076 |
|
symcode='[BCDT]' |
| 2077 |
|
;; |
| 2078 |
|
cygwin* | mingw* | pw32*) |
| 2079 |
|
symcode='[ABCDGISTW]' |
| 2080 |
|
;; |
| 2081 |
|
hpux*) # Its linker distinguishes data from code symbols |
| 2082 |
|
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 2083 |
|
;; |
| 2084 |
|
irix*) |
| 2085 |
|
symcode='[BCDEGRST]' |
| 2086 |
|
;; |
| 2087 |
|
solaris* | sysv5*) |
| 2088 |
|
symcode='[BDT]' |
| 2089 |
|
;; |
| 2090 |
|
sysv4) |
| 2091 |
|
symcode='[DFNSTU]' |
| 2092 |
|
;; |
| 2093 |
|
esac |
| 2094 |
|
|
| 2095 |
|
# Handle CRLF in mingw tool chain |
| 2096 |
|
opt_cr= |
| 2097 |
|
case $host_os in |
| 2098 |
|
mingw*) |
| 2099 |
|
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 2100 |
|
;; |
| 2101 |
|
esac |
| 2102 |
|
|
| 2103 |
|
# If we're using GNU nm, then use its standard symbol codes. |
| 2104 |
|
if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then |
| 2105 |
|
symcode='[ABCDGISTW]' |
| 2106 |
|
fi |
| 2107 |
|
|
| 2108 |
|
# Try without a prefix undercore, then with it. |
| 2109 |
|
for ac_symprfx in "" "_"; do |
| 2110 |
|
|
| 2111 |
|
# Write the raw and C identifiers. |
| 2112 |
|
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" |
| 2113 |
|
|
| 2114 |
|
# Check to see that the pipe works correctly. |
| 2115 |
|
pipe_works=no |
| 2116 |
|
rm -f conftest* |
| 2117 |
|
cat > conftest.$ac_ext <<EOF |
| 2118 |
|
#ifdef __cplusplus |
| 2119 |
|
extern "C" { |
| 2120 |
|
#endif |
| 2121 |
|
char nm_test_var; |
| 2122 |
|
void nm_test_func(){} |
| 2123 |
|
#ifdef __cplusplus |
| 2124 |
|
} |
| 2125 |
|
#endif |
| 2126 |
|
int main(){nm_test_var='a';nm_test_func();return(0);} |
| 2127 |
|
EOF |
| 2128 |
|
|
| 2129 |
|
if { (eval echo configure:2130: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 2130 |
|
# Now try to grab the symbols. |
| 2131 |
|
nlist=conftest.nm |
| 2132 |
|
if { (eval echo configure:2133: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5; } && test -s "$nlist"; then |
| 2133 |
|
# Try sorting and uniquifying the output. |
| 2134 |
|
if sort "$nlist" | uniq > "$nlist"T; then |
| 2135 |
|
mv -f "$nlist"T "$nlist" |
| 2136 |
|
else |
| 2137 |
|
rm -f "$nlist"T |
| 2138 |
|
fi |
| 2139 |
|
|
| 2140 |
|
# Make sure that we snagged all the symbols we need. |
| 2141 |
|
if egrep ' nm_test_var$' "$nlist" >/dev/null; then |
| 2142 |
|
if egrep ' nm_test_func$' "$nlist" >/dev/null; then |
| 2143 |
|
cat <<EOF > conftest.$ac_ext |
| 2144 |
|
#ifdef __cplusplus |
| 2145 |
|
extern "C" { |
| 2146 |
|
#endif |
| 2147 |
|
|
| 2148 |
|
EOF |
| 2149 |
|
# Now generate the symbol file. |
| 2150 |
|
eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext' |
| 2151 |
|
|
| 2152 |
|
cat <<EOF >> conftest.$ac_ext |
| 2153 |
|
#if defined (__STDC__) && __STDC__ |
| 2154 |
|
# define lt_ptr_t void * |
| 2155 |
|
#else |
| 2156 |
|
# define lt_ptr_t char * |
| 2157 |
|
# define const |
| 2158 |
|
#endif |
| 2159 |
|
|
| 2160 |
|
/* The mapping between symbol names and symbols. */ |
| 2161 |
|
const struct { |
| 2162 |
|
const char *name; |
| 2163 |
|
lt_ptr_t address; |
| 2164 |
|
} |
| 2165 |
|
lt_preloaded_symbols[] = |
| 2166 |
|
{ |
| 2167 |
|
EOF |
| 2168 |
|
sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" >> conftest.$ac_ext |
| 2169 |
|
cat <<\EOF >> conftest.$ac_ext |
| 2170 |
|
{0, (lt_ptr_t) 0} |
| 2171 |
|
}; |
| 2172 |
|
|
| 2173 |
|
#ifdef __cplusplus |
| 2174 |
|
} |
| 2175 |
|
#endif |
| 2176 |
|
EOF |
| 2177 |
|
# Now try linking the two files. |
| 2178 |
|
mv conftest.$ac_objext conftstm.$ac_objext |
| 2179 |
|
save_LIBS="$LIBS" |
| 2180 |
|
save_CFLAGS="$CFLAGS" |
| 2181 |
|
LIBS="conftstm.$ac_objext" |
| 2182 |
|
CFLAGS="$CFLAGS$no_builtin_flag" |
| 2183 |
|
if { (eval echo configure:2184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 2184 |
|
pipe_works=yes |
| 2185 |
|
fi |
| 2186 |
|
LIBS="$save_LIBS" |
| 2187 |
|
CFLAGS="$save_CFLAGS" |
| 2188 |
|
else |
| 2189 |
|
echo "cannot find nm_test_func in $nlist" >&5 |
| 2190 |
|
fi |
| 2191 |
|
else |
| 2192 |
|
echo "cannot find nm_test_var in $nlist" >&5 |
| 2193 |
|
fi |
| 2194 |
|
else |
| 2195 |
|
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 2196 |
|
fi |
| 2197 |
|
else |
| 2198 |
|
echo "$progname: failed program was:" >&5 |
| 2199 |
|
cat conftest.$ac_ext >&5 |
| 2200 |
|
fi |
| 2201 |
|
rm -f conftest* conftst* |
| 2202 |
|
|
| 2203 |
|
# Do not use the global_symbol_pipe unless it works. |
| 2204 |
|
if test "$pipe_works" = yes; then |
| 2205 |
|
break |
| 2206 |
|
else |
| 2207 |
|
lt_cv_sys_global_symbol_pipe= |
| 2208 |
|
fi |
| 2209 |
|
done |
| 2210 |
|
|
| 2211 |
|
fi |
| 2212 |
|
|
| 2213 |
|
global_symbol_pipe="$lt_cv_sys_global_symbol_pipe" |
| 2214 |
|
if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 2215 |
|
global_symbol_to_cdecl= |
| 2216 |
|
else |
| 2217 |
|
global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl" |
| 2218 |
|
fi |
| 2219 |
|
if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then |
| 2220 |
|
echo "$ac_t""failed" 1>&6 |
| 2221 |
|
else |
| 2222 |
|
echo "$ac_t""ok" 1>&6 |
| 2223 |
|
fi |
| 2224 |
|
|
| 2225 |
|
for ac_hdr in dlfcn.h |
| 2226 |
|
do |
| 2227 |
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 2228 |
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 2229 |
|
echo "configure:2230: checking for $ac_hdr" >&5 |
| 2230 |
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 2231 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
| 2232 |
|
else |
| 2233 |
|
cat > conftest.$ac_ext <<EOF |
| 2234 |
|
#line 2235 "configure" |
| 2235 |
|
#include "confdefs.h" |
| 2236 |
|
#include <$ac_hdr> |
| 2237 |
|
EOF |
| 2238 |
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 2239 |
|
{ (eval echo configure:2240: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 2240 |
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 2241 |
|
if test -z "$ac_err"; then |
| 2242 |
|
rm -rf conftest* |
| 2243 |
|
eval "ac_cv_header_$ac_safe=yes" |
| 2244 |
|
else |
| 2245 |
|
echo "$ac_err" >&5 |
| 2246 |
|
echo "configure: failed program was:" >&5 |
| 2247 |
|
cat conftest.$ac_ext >&5 |
| 2248 |
|
rm -rf conftest* |
| 2249 |
|
eval "ac_cv_header_$ac_safe=no" |
| 2250 |
|
fi |
| 2251 |
|
rm -f conftest* |
| 2252 |
|
fi |
| 2253 |
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 2254 |
|
echo "$ac_t""yes" 1>&6 |
| 2255 |
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 2256 |
|
cat >> confdefs.h <<EOF |
| 2257 |
|
#define $ac_tr_hdr 1 |
| 2258 |
|
EOF |
| 2259 |
|
|
| 2260 |
|
else |
| 2261 |
|
echo "$ac_t""no" 1>&6 |
| 2262 |
|
fi |
| 2263 |
|
done |
| 2264 |
|
|
| 2265 |
|
|
| 2266 |
|
|
| 2267 |
|
|
| 2268 |
|
|
| 2269 |
|
# Only perform the check for file, if the check method requires it |
| 2270 |
|
case $deplibs_check_method in |
| 2271 |
|
file_magic*) |
| 2272 |
|
if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
| 2273 |
|
echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6 |
| 2274 |
|
echo "configure:2275: checking for ${ac_tool_prefix}file" >&5 |
| 2275 |
|
if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then |
| 2276 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
| 2277 |
|
else |
| 2278 |
|
case $MAGIC_CMD in |
| 2279 |
|
/*) |
| 2280 |
|
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 2281 |
|
;; |
| 2282 |
|
?:/*) |
| 2283 |
|
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
| 2284 |
|
;; |
| 2285 |
|
*) |
| 2286 |
|
ac_save_MAGIC_CMD="$MAGIC_CMD" |
| 2287 |
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 2288 |
|
ac_dummy="/usr/bin:$PATH" |
| 2289 |
|
for ac_dir in $ac_dummy; do |
| 2290 |
|
test -z "$ac_dir" && ac_dir=. |
| 2291 |
|
if test -f $ac_dir/${ac_tool_prefix}file; then |
| 2292 |
|
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 2293 |
|
if test -n "$file_magic_test_file"; then |
| 2294 |
|
case $deplibs_check_method in |
| 2295 |
|
"file_magic "*) |
| 2296 |
|
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
| 2297 |
|
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 2298 |
|
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 2299 |
|
egrep "$file_magic_regex" > /dev/null; then |
| 2300 |
|
: |
| 2301 |
|
else |
| 2302 |
|
cat <<EOF 1>&2 |
| 2303 |
|
|
| 2304 |
|
*** Warning: the command libtool uses to detect shared libraries, |
| 2305 |
|
*** $file_magic_cmd, produces output that libtool cannot recognize. |
| 2306 |
|
*** The result is that libtool may fail to recognize shared libraries |
| 2307 |
|
*** as such. This will affect the creation of libtool libraries that |
| 2308 |
|
*** depend on shared libraries, but programs linked with such libtool |
| 2309 |
|
*** libraries will work regardless of this problem. Nevertheless, you |
| 2310 |
|
*** may want to report the problem to your system manager and/or to |
| 2311 |
|
*** bug-libtool@gnu.org |
| 2312 |
|
|
| 2313 |
|
EOF |
| 2314 |
|
fi ;; |
| 2315 |
|
esac |
| 2316 |
|
fi |
| 2317 |
|
break |
| 2318 |
|
fi |
| 2319 |
|
done |
| 2320 |
|
IFS="$ac_save_ifs" |
| 2321 |
|
MAGIC_CMD="$ac_save_MAGIC_CMD" |
| 2322 |
|
;; |
| 2323 |
|
esac |
| 2324 |
|
fi |
| 2325 |
|
|
| 2326 |
|
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 2327 |
|
if test -n "$MAGIC_CMD"; then |
| 2328 |
|
echo "$ac_t""$MAGIC_CMD" 1>&6 |
| 2329 |
|
else |
| 2330 |
|
echo "$ac_t""no" 1>&6 |
| 2331 |
|
fi |
| 2332 |
|
|
| 2333 |
|
if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 2334 |
|
if test -n "$ac_tool_prefix"; then |
| 2335 |
|
echo $ac_n "checking for file""... $ac_c" 1>&6 |
| 2336 |
|
echo "configure:2337: checking for file" >&5 |
| 2337 |
|
if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then |
| 2338 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
| 2339 |
|
else |
| 2340 |
|
case $MAGIC_CMD in |
| 2341 |
|
/*) |
| 2342 |
|
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 2343 |
|
;; |
| 2344 |
|
?:/*) |
| 2345 |
|
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
| 2346 |
|
;; |
| 2347 |
|
*) |
| 2348 |
|
ac_save_MAGIC_CMD="$MAGIC_CMD" |
| 2349 |
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 2350 |
|
ac_dummy="/usr/bin:$PATH" |
| 2351 |
|
for ac_dir in $ac_dummy; do |
| 2352 |
|
test -z "$ac_dir" && ac_dir=. |
| 2353 |
|
if test -f $ac_dir/file; then |
| 2354 |
|
lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 2355 |
|
if test -n "$file_magic_test_file"; then |
| 2356 |
|
case $deplibs_check_method in |
| 2357 |
|
"file_magic "*) |
| 2358 |
|
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
| 2359 |
|
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 2360 |
|
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 2361 |
|
egrep "$file_magic_regex" > /dev/null; then |
| 2362 |
|
: |
| 2363 |
|
else |
| 2364 |
|
cat <<EOF 1>&2 |
| 2365 |
|
|
| 2366 |
|
*** Warning: the command libtool uses to detect shared libraries, |
| 2367 |
|
*** $file_magic_cmd, produces output that libtool cannot recognize. |
| 2368 |
|
*** The result is that libtool may fail to recognize shared libraries |
| 2369 |
|
*** as such. This will affect the creation of libtool libraries that |
| 2370 |
|
*** depend on shared libraries, but programs linked with such libtool |
| 2371 |
|
*** libraries will work regardless of this problem. Nevertheless, you |
| 2372 |
|
*** may want to report the problem to your system manager and/or to |
| 2373 |
|
*** bug-libtool@gnu.org |
| 2374 |
|
|
| 2375 |
|
EOF |
| 2376 |
|
fi ;; |
| 2377 |
|
esac |
| 2378 |
|
fi |
| 2379 |
|
break |
| 2380 |
|
fi |
| 2381 |
|
done |
| 2382 |
|
IFS="$ac_save_ifs" |
| 2383 |
|
MAGIC_CMD="$ac_save_MAGIC_CMD" |
| 2384 |
|
;; |
| 2385 |
|
esac |
| 2386 |
|
fi |
| 2387 |
|
|
| 2388 |
|
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 2389 |
|
if test -n "$MAGIC_CMD"; then |
| 2390 |
|
echo "$ac_t""$MAGIC_CMD" 1>&6 |
| 2391 |
|
else |
| 2392 |
|
echo "$ac_t""no" 1>&6 |
| 2393 |
|
fi |
| 2394 |
|
|
| 2395 |
|
else |
| 2396 |
|
MAGIC_CMD=: |
| 2397 |
|
fi |
| 2398 |
|
fi |
| 2399 |
|
|
| 2400 |
|
fi |
| 2401 |
|
;; |
| 2402 |
|
esac |
| 2403 |
|
|
| 2404 |
|
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 2405 |
|
set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 2406 |
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 2407 |
|
echo "configure:2408: checking for $ac_word" >&5 |
| 2408 |
|
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
| 2409 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
| 2410 |
|
else |
| 2411 |
|
if test -n "$RANLIB"; then |
| 2412 |
|
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 2413 |
|
else |
| 2414 |
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 2415 |
|
ac_dummy="$PATH" |
| 2416 |
|
for ac_dir in $ac_dummy; do |
| 2417 |
|
test -z "$ac_dir" && ac_dir=. |
| 2418 |
|
if test -f $ac_dir/$ac_word; then |
| 2419 |
|
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 2420 |
|
break |
| 2421 |
|
fi |
| 2422 |
|
done |
| 2423 |
|
IFS="$ac_save_ifs" |
| 2424 |
|
fi |
| 2425 |
|
fi |
| 2426 |
|
RANLIB="$ac_cv_prog_RANLIB" |
| 2427 |
|
if test -n "$RANLIB"; then |
| 2428 |
|
echo "$ac_t""$RANLIB" 1>&6 |
| 2429 |
|
else |
| 2430 |
|
echo "$ac_t""no" 1>&6 |
| 2431 |
|
fi |
| 2432 |
|
|
| 2433 |
|
|
| 2434 |
|
if test -z "$ac_cv_prog_RANLIB"; then |
| 2435 |
|
if test -n "$ac_tool_prefix"; then |
| 2436 |
|
# Extract the first word of "ranlib", so it can be a program name with args. |
| 2437 |
set dummy ranlib; ac_word=$2 |
set dummy ranlib; ac_word=$2 |
| 2438 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 2439 |
echo "configure:2031: checking for $ac_word" >&5 |
echo "configure:2440: checking for $ac_word" >&5 |
| 2440 |
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
| 2441 |
echo $ac_n "(cached) $ac_c" 1>&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 2442 |
else |
else |
| 2463 |
echo "$ac_t""no" 1>&6 |
echo "$ac_t""no" 1>&6 |
| 2464 |
fi |
fi |
| 2465 |
|
|
| 2466 |
|
else |
| 2467 |
|
RANLIB=":" |
| 2468 |
|
fi |
| 2469 |
|
fi |
| 2470 |
|
|
| 2471 |
|
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 2472 |
|
set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 2473 |
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 2474 |
|
echo "configure:2475: checking for $ac_word" >&5 |
| 2475 |
|
if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
| 2476 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
| 2477 |
|
else |
| 2478 |
|
if test -n "$STRIP"; then |
| 2479 |
|
ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 2480 |
|
else |
| 2481 |
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 2482 |
|
ac_dummy="$PATH" |
| 2483 |
|
for ac_dir in $ac_dummy; do |
| 2484 |
|
test -z "$ac_dir" && ac_dir=. |
| 2485 |
|
if test -f $ac_dir/$ac_word; then |
| 2486 |
|
ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 2487 |
|
break |
| 2488 |
|
fi |
| 2489 |
|
done |
| 2490 |
|
IFS="$ac_save_ifs" |
| 2491 |
|
fi |
| 2492 |
|
fi |
| 2493 |
|
STRIP="$ac_cv_prog_STRIP" |
| 2494 |
|
if test -n "$STRIP"; then |
| 2495 |
|
echo "$ac_t""$STRIP" 1>&6 |
| 2496 |
|
else |
| 2497 |
|
echo "$ac_t""no" 1>&6 |
| 2498 |
|
fi |
| 2499 |
|
|
| 2500 |
|
|
| 2501 |
|
if test -z "$ac_cv_prog_STRIP"; then |
| 2502 |
|
if test -n "$ac_tool_prefix"; then |
| 2503 |
|
# Extract the first word of "strip", so it can be a program name with args. |
| 2504 |
|
set dummy strip; ac_word=$2 |
| 2505 |
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 2506 |
|
echo "configure:2507: checking for $ac_word" >&5 |
| 2507 |
|
if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
| 2508 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
| 2509 |
|
else |
| 2510 |
|
if test -n "$STRIP"; then |
| 2511 |
|
ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 2512 |
|
else |
| 2513 |
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 2514 |
|
ac_dummy="$PATH" |
| 2515 |
|
for ac_dir in $ac_dummy; do |
| 2516 |
|
test -z "$ac_dir" && ac_dir=. |
| 2517 |
|
if test -f $ac_dir/$ac_word; then |
| 2518 |
|
ac_cv_prog_STRIP="strip" |
| 2519 |
|
break |
| 2520 |
|
fi |
| 2521 |
|
done |
| 2522 |
|
IFS="$ac_save_ifs" |
| 2523 |
|
test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" |
| 2524 |
|
fi |
| 2525 |
|
fi |
| 2526 |
|
STRIP="$ac_cv_prog_STRIP" |
| 2527 |
|
if test -n "$STRIP"; then |
| 2528 |
|
echo "$ac_t""$STRIP" 1>&6 |
| 2529 |
|
else |
| 2530 |
|
echo "$ac_t""no" 1>&6 |
| 2531 |
|
fi |
| 2532 |
|
|
| 2533 |
|
else |
| 2534 |
|
STRIP=":" |
| 2535 |
|
fi |
| 2536 |
|
fi |
| 2537 |
|
|
| 2538 |
|
|
| 2539 |
|
enable_dlopen=no |
| 2540 |
|
enable_win32_dll=no |
| 2541 |
|
|
| 2542 |
|
# Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
| 2543 |
|
if test "${enable_libtool_lock+set}" = set; then |
| 2544 |
|
enableval="$enable_libtool_lock" |
| 2545 |
|
: |
| 2546 |
|
fi |
| 2547 |
|
|
| 2548 |
|
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 2549 |
|
|
| 2550 |
|
# Some flags need to be propagated to the compiler or linker for good |
| 2551 |
|
# libtool support. |
| 2552 |
|
case $host in |
| 2553 |
|
*-*-irix6*) |
| 2554 |
|
# Find out which ABI we are using. |
| 2555 |
|
echo '#line 2556 "configure"' > conftest.$ac_ext |
| 2556 |
|
if { (eval echo configure:2557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 2557 |
|
case `/usr/bin/file conftest.$ac_objext` in |
| 2558 |
|
*32-bit*) |
| 2559 |
|
LD="${LD-ld} -32" |
| 2560 |
|
;; |
| 2561 |
|
*N32*) |
| 2562 |
|
LD="${LD-ld} -n32" |
| 2563 |
|
;; |
| 2564 |
|
*64-bit*) |
| 2565 |
|
LD="${LD-ld} -64" |
| 2566 |
|
;; |
| 2567 |
|
esac |
| 2568 |
|
fi |
| 2569 |
|
rm -rf conftest* |
| 2570 |
|
;; |
| 2571 |
|
|
| 2572 |
|
*-*-sco3.2v5*) |
| 2573 |
|
# On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 2574 |
|
SAVE_CFLAGS="$CFLAGS" |
| 2575 |
|
CFLAGS="$CFLAGS -belf" |
| 2576 |
|
echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 |
| 2577 |
|
echo "configure:2578: checking whether the C compiler needs -belf" >&5 |
| 2578 |
|
if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then |
| 2579 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
| 2580 |
|
else |
| 2581 |
|
|
| 2582 |
|
ac_ext=c |
| 2583 |
|
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 2584 |
|
ac_cpp='$CPP $CPPFLAGS' |
| 2585 |
|
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 2586 |
|
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 2587 |
|
cross_compiling=$ac_cv_prog_cc_cross |
| 2588 |
|
|
| 2589 |
|
cat > conftest.$ac_ext <<EOF |
| 2590 |
|
#line 2591 "configure" |
| 2591 |
|
#include "confdefs.h" |
| 2592 |
|
|
| 2593 |
|
int main() { |
| 2594 |
|
|
| 2595 |
|
; return 0; } |
| 2596 |
|
EOF |
| 2597 |
|
if { (eval echo configure:2598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2598 |
|
rm -rf conftest* |
| 2599 |
|
lt_cv_cc_needs_belf=yes |
| 2600 |
|
else |
| 2601 |
|
echo "configure: failed program was:" >&5 |
| 2602 |
|
cat conftest.$ac_ext >&5 |
| 2603 |
|
rm -rf conftest* |
| 2604 |
|
lt_cv_cc_needs_belf=no |
| 2605 |
|
fi |
| 2606 |
|
rm -f conftest* |
| 2607 |
|
ac_ext=c |
| 2608 |
|
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 2609 |
|
ac_cpp='$CPP $CPPFLAGS' |
| 2610 |
|
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 2611 |
|
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 2612 |
|
cross_compiling=$ac_cv_prog_cc_cross |
| 2613 |
|
|
| 2614 |
|
fi |
| 2615 |
|
|
| 2616 |
|
echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6 |
| 2617 |
|
if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 2618 |
|
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 2619 |
|
CFLAGS="$SAVE_CFLAGS" |
| 2620 |
|
fi |
| 2621 |
|
;; |
| 2622 |
|
|
| 2623 |
|
|
| 2624 |
|
esac |
| 2625 |
|
|
| 2626 |
|
# Sed substitution that helps us do robust quoting. It backslashifies |
| 2627 |
|
# metacharacters that are still active within double-quoted strings. |
| 2628 |
|
Xsed='sed -e s/^X//' |
| 2629 |
|
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
| 2630 |
|
|
| 2631 |
|
# Same as above, but do not quote variable references. |
| 2632 |
|
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
| 2633 |
|
|
| 2634 |
|
# Sed substitution to delay expansion of an escaped shell variable in a |
| 2635 |
|
# double_quote_subst'ed string. |
| 2636 |
|
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 2637 |
|
|
| 2638 |
|
# Constants: |
| 2639 |
|
rm="rm -f" |
| 2640 |
|
|
| 2641 |
|
# Global variables: |
| 2642 |
|
default_ofile=libtool |
| 2643 |
|
can_build_shared=yes |
| 2644 |
|
|
| 2645 |
|
# All known linkers require a `.a' archive for static linking (except M$VC, |
| 2646 |
|
# which needs '.lib'). |
| 2647 |
|
libext=a |
| 2648 |
|
ltmain="$ac_aux_dir/ltmain.sh" |
| 2649 |
|
ofile="$default_ofile" |
| 2650 |
|
with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 2651 |
|
need_locks="$enable_libtool_lock" |
| 2652 |
|
|
| 2653 |
|
old_CC="$CC" |
| 2654 |
|
old_CFLAGS="$CFLAGS" |
| 2655 |
|
|
| 2656 |
|
# Set sane defaults for various variables |
| 2657 |
|
test -z "$AR" && AR=ar |
| 2658 |
|
test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 2659 |
|
test -z "$AS" && AS=as |
| 2660 |
|
test -z "$CC" && CC=cc |
| 2661 |
|
test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 2662 |
|
test -z "$LD" && LD=ld |
| 2663 |
|
test -z "$LN_S" && LN_S="ln -s" |
| 2664 |
|
test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 2665 |
|
test -z "$NM" && NM=nm |
| 2666 |
|
test -z "$OBJDUMP" && OBJDUMP=objdump |
| 2667 |
|
test -z "$RANLIB" && RANLIB=: |
| 2668 |
|
test -z "$STRIP" && STRIP=: |
| 2669 |
|
test -z "$ac_objext" && ac_objext=o |
| 2670 |
|
|
| 2671 |
|
if test x"$host" != x"$build"; then |
| 2672 |
|
ac_tool_prefix=${host_alias}- |
| 2673 |
|
else |
| 2674 |
|
ac_tool_prefix= |
| 2675 |
|
fi |
| 2676 |
|
|
| 2677 |
|
# Transform linux* to *-*-linux-gnu*, to support old configure scripts. |
| 2678 |
|
case $host_os in |
| 2679 |
|
linux-gnu*) ;; |
| 2680 |
|
linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` |
| 2681 |
|
esac |
| 2682 |
|
|
| 2683 |
|
case $host_os in |
| 2684 |
|
aix3*) |
| 2685 |
|
# AIX sometimes has problems with the GCC collect2 program. For some |
| 2686 |
|
# reason, if we set the COLLECT_NAMES environment variable, the problems |
| 2687 |
|
# vanish in a puff of smoke. |
| 2688 |
|
if test "X${COLLECT_NAMES+set}" != Xset; then |
| 2689 |
|
COLLECT_NAMES= |
| 2690 |
|
export COLLECT_NAMES |
| 2691 |
|
fi |
| 2692 |
|
;; |
| 2693 |
|
esac |
| 2694 |
|
|
| 2695 |
|
# Determine commands to create old-style static archives. |
| 2696 |
|
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
| 2697 |
|
old_postinstall_cmds='chmod 644 $oldlib' |
| 2698 |
|
old_postuninstall_cmds= |
| 2699 |
|
|
| 2700 |
|
if test -n "$RANLIB"; then |
| 2701 |
|
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 2702 |
|
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
| 2703 |
|
fi |
| 2704 |
|
|
| 2705 |
|
# Allow CC to be a program name with arguments. |
| 2706 |
|
set dummy $CC |
| 2707 |
|
compiler="$2" |
| 2708 |
|
|
| 2709 |
|
echo $ac_n "checking for objdir""... $ac_c" 1>&6 |
| 2710 |
|
echo "configure:2711: checking for objdir" >&5 |
| 2711 |
|
rm -f .libs 2>/dev/null |
| 2712 |
|
mkdir .libs 2>/dev/null |
| 2713 |
|
if test -d .libs; then |
| 2714 |
|
objdir=.libs |
| 2715 |
|
else |
| 2716 |
|
# MS-DOS does not allow filenames that begin with a dot. |
| 2717 |
|
objdir=_libs |
| 2718 |
|
fi |
| 2719 |
|
rmdir .libs 2>/dev/null |
| 2720 |
|
echo "$ac_t""$objdir" 1>&6 |
| 2721 |
|
|
| 2722 |
|
|
| 2723 |
|
# Check whether --with-pic or --without-pic was given. |
| 2724 |
|
if test "${with_pic+set}" = set; then |
| 2725 |
|
withval="$with_pic" |
| 2726 |
|
pic_mode="$withval" |
| 2727 |
|
else |
| 2728 |
|
pic_mode=default |
| 2729 |
|
fi |
| 2730 |
|
|
| 2731 |
|
test -z "$pic_mode" && pic_mode=default |
| 2732 |
|
|
| 2733 |
|
# We assume here that the value for lt_cv_prog_cc_pic will not be cached |
| 2734 |
|
# in isolation, and that seeing it set (from the cache) indicates that |
| 2735 |
|
# the associated values are set (in the cache) correctly too. |
| 2736 |
|
echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6 |
| 2737 |
|
echo "configure:2738: checking for $compiler option to produce PIC" >&5 |
| 2738 |
|
if eval "test \"`echo '$''{'lt_cv_prog_cc_pic'+set}'`\" = set"; then |
| 2739 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
| 2740 |
|
else |
| 2741 |
|
lt_cv_prog_cc_pic= |
| 2742 |
|
lt_cv_prog_cc_shlib= |
| 2743 |
|
lt_cv_prog_cc_wl= |
| 2744 |
|
lt_cv_prog_cc_static= |
| 2745 |
|
lt_cv_prog_cc_no_builtin= |
| 2746 |
|
lt_cv_prog_cc_can_build_shared=$can_build_shared |
| 2747 |
|
|
| 2748 |
|
if test "$GCC" = yes; then |
| 2749 |
|
lt_cv_prog_cc_wl='-Wl,' |
| 2750 |
|
lt_cv_prog_cc_static='-static' |
| 2751 |
|
|
| 2752 |
|
case $host_os in |
| 2753 |
|
aix*) |
| 2754 |
|
# Below there is a dirty hack to force normal static linking with -ldl |
| 2755 |
|
# The problem is because libdl dynamically linked with both libc and |
| 2756 |
|
# libC (AIX C++ library), which obviously doesn't included in libraries |
| 2757 |
|
# list by gcc. This cause undefined symbols with -static flags. |
| 2758 |
|
# This hack allows C programs to be linked with "-static -ldl", but |
| 2759 |
|
# we not sure about C++ programs. |
| 2760 |
|
lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC" |
| 2761 |
|
;; |
| 2762 |
|
amigaos*) |
| 2763 |
|
# FIXME: we need at least 68020 code to build shared libraries, but |
| 2764 |
|
# adding the `-m68020' flag to GCC prevents building anything better, |
| 2765 |
|
# like `-m68040'. |
| 2766 |
|
lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4' |
| 2767 |
|
;; |
| 2768 |
|
beos* | irix5* | irix6* | osf3* | osf4* | osf5*) |
| 2769 |
|
# PIC is the default for these OSes. |
| 2770 |
|
;; |
| 2771 |
|
darwin* | rhapsody*) |
| 2772 |
|
# PIC is the default on this platform |
| 2773 |
|
# Common symbols not allowed in MH_DYLIB files |
| 2774 |
|
lt_cv_prog_cc_pic='-fno-common' |
| 2775 |
|
;; |
| 2776 |
|
cygwin* | mingw* | pw32* | os2*) |
| 2777 |
|
# This hack is so that the source file can tell whether it is being |
| 2778 |
|
# built for inclusion in a dll (and should export symbols for example). |
| 2779 |
|
lt_cv_prog_cc_pic='-DDLL_EXPORT' |
| 2780 |
|
;; |
| 2781 |
|
sysv4*MP*) |
| 2782 |
|
if test -d /usr/nec; then |
| 2783 |
|
lt_cv_prog_cc_pic=-Kconform_pic |
| 2784 |
|
fi |
| 2785 |
|
;; |
| 2786 |
|
*) |
| 2787 |
|
lt_cv_prog_cc_pic='-fPIC' |
| 2788 |
|
;; |
| 2789 |
|
esac |
| 2790 |
|
else |
| 2791 |
|
# PORTME Check for PIC flags for the system compiler. |
| 2792 |
|
case $host_os in |
| 2793 |
|
aix3* | aix4* | aix5*) |
| 2794 |
|
# All AIX code is PIC. |
| 2795 |
|
if test "$host_cpu" = ia64; then |
| 2796 |
|
# AIX 5 now supports IA64 processor |
| 2797 |
|
lt_cv_prog_cc_static='-Bstatic' |
| 2798 |
|
lt_cv_prog_cc_wl='-Wl,' |
| 2799 |
|
else |
| 2800 |
|
lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp' |
| 2801 |
|
fi |
| 2802 |
|
;; |
| 2803 |
|
|
| 2804 |
|
hpux9* | hpux10* | hpux11*) |
| 2805 |
|
# Is there a better lt_cv_prog_cc_static that works with the bundled CC? |
| 2806 |
|
lt_cv_prog_cc_wl='-Wl,' |
| 2807 |
|
lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive" |
| 2808 |
|
lt_cv_prog_cc_pic='+Z' |
| 2809 |
|
;; |
| 2810 |
|
|
| 2811 |
|
irix5* | irix6*) |
| 2812 |
|
lt_cv_prog_cc_wl='-Wl,' |
| 2813 |
|
lt_cv_prog_cc_static='-non_shared' |
| 2814 |
|
# PIC (with -KPIC) is the default. |
| 2815 |
|
;; |
| 2816 |
|
|
| 2817 |
|
cygwin* | mingw* | pw32* | os2*) |
| 2818 |
|
# This hack is so that the source file can tell whether it is being |
| 2819 |
|
# built for inclusion in a dll (and should export symbols for example). |
| 2820 |
|
lt_cv_prog_cc_pic='-DDLL_EXPORT' |
| 2821 |
|
;; |
| 2822 |
|
|
| 2823 |
|
newsos6) |
| 2824 |
|
lt_cv_prog_cc_pic='-KPIC' |
| 2825 |
|
lt_cv_prog_cc_static='-Bstatic' |
| 2826 |
|
;; |
| 2827 |
|
|
| 2828 |
|
osf3* | osf4* | osf5*) |
| 2829 |
|
# All OSF/1 code is PIC. |
| 2830 |
|
lt_cv_prog_cc_wl='-Wl,' |
| 2831 |
|
lt_cv_prog_cc_static='-non_shared' |
| 2832 |
|
;; |
| 2833 |
|
|
| 2834 |
|
sco3.2v5*) |
| 2835 |
|
lt_cv_prog_cc_pic='-Kpic' |
| 2836 |
|
lt_cv_prog_cc_static='-dn' |
| 2837 |
|
lt_cv_prog_cc_shlib='-belf' |
| 2838 |
|
;; |
| 2839 |
|
|
| 2840 |
|
solaris*) |
| 2841 |
|
lt_cv_prog_cc_pic='-KPIC' |
| 2842 |
|
lt_cv_prog_cc_static='-Bstatic' |
| 2843 |
|
lt_cv_prog_cc_wl='-Wl,' |
| 2844 |
|
;; |
| 2845 |
|
|
| 2846 |
|
sunos4*) |
| 2847 |
|
lt_cv_prog_cc_pic='-PIC' |
| 2848 |
|
lt_cv_prog_cc_static='-Bstatic' |
| 2849 |
|
lt_cv_prog_cc_wl='-Qoption ld ' |
| 2850 |
|
;; |
| 2851 |
|
|
| 2852 |
|
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 2853 |
|
lt_cv_prog_cc_pic='-KPIC' |
| 2854 |
|
lt_cv_prog_cc_static='-Bstatic' |
| 2855 |
|
if test "x$host_vendor" = xsni; then |
| 2856 |
|
lt_cv_prog_cc_wl='-LD' |
| 2857 |
|
else |
| 2858 |
|
lt_cv_prog_cc_wl='-Wl,' |
| 2859 |
|
fi |
| 2860 |
|
;; |
| 2861 |
|
|
| 2862 |
|
uts4*) |
| 2863 |
|
lt_cv_prog_cc_pic='-pic' |
| 2864 |
|
lt_cv_prog_cc_static='-Bstatic' |
| 2865 |
|
;; |
| 2866 |
|
|
| 2867 |
|
sysv4*MP*) |
| 2868 |
|
if test -d /usr/nec ;then |
| 2869 |
|
lt_cv_prog_cc_pic='-Kconform_pic' |
| 2870 |
|
lt_cv_prog_cc_static='-Bstatic' |
| 2871 |
|
fi |
| 2872 |
|
;; |
| 2873 |
|
|
| 2874 |
|
*) |
| 2875 |
|
lt_cv_prog_cc_can_build_shared=no |
| 2876 |
|
;; |
| 2877 |
|
esac |
| 2878 |
|
fi |
| 2879 |
|
|
| 2880 |
|
fi |
| 2881 |
|
|
| 2882 |
|
if test -z "$lt_cv_prog_cc_pic"; then |
| 2883 |
|
echo "$ac_t""none" 1>&6 |
| 2884 |
|
else |
| 2885 |
|
echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6 |
| 2886 |
|
|
| 2887 |
|
# Check to make sure the pic_flag actually works. |
| 2888 |
|
echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6 |
| 2889 |
|
echo "configure:2890: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5 |
| 2890 |
|
if eval "test \"`echo '$''{'lt_cv_prog_cc_pic_works'+set}'`\" = set"; then |
| 2891 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
| 2892 |
|
else |
| 2893 |
|
save_CFLAGS="$CFLAGS" |
| 2894 |
|
CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC" |
| 2895 |
|
cat > conftest.$ac_ext <<EOF |
| 2896 |
|
#line 2897 "configure" |
| 2897 |
|
#include "confdefs.h" |
| 2898 |
|
|
| 2899 |
|
int main() { |
| 2900 |
|
|
| 2901 |
|
; return 0; } |
| 2902 |
|
EOF |
| 2903 |
|
if { (eval echo configure:2904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 2904 |
|
rm -rf conftest* |
| 2905 |
|
case $host_os in |
| 2906 |
|
hpux9* | hpux10* | hpux11*) |
| 2907 |
|
# On HP-UX, both CC and GCC only warn that PIC is supported... then |
| 2908 |
|
# they create non-PIC objects. So, if there were any warnings, we |
| 2909 |
|
# assume that PIC is not supported. |
| 2910 |
|
if test -s conftest.err; then |
| 2911 |
|
lt_cv_prog_cc_pic_works=no |
| 2912 |
|
else |
| 2913 |
|
lt_cv_prog_cc_pic_works=yes |
| 2914 |
|
fi |
| 2915 |
|
;; |
| 2916 |
|
*) |
| 2917 |
|
lt_cv_prog_cc_pic_works=yes |
| 2918 |
|
;; |
| 2919 |
|
esac |
| 2920 |
|
|
| 2921 |
|
else |
| 2922 |
|
echo "configure: failed program was:" >&5 |
| 2923 |
|
cat conftest.$ac_ext >&5 |
| 2924 |
|
rm -rf conftest* |
| 2925 |
|
lt_cv_prog_cc_pic_works=no |
| 2926 |
|
|
| 2927 |
|
fi |
| 2928 |
|
rm -f conftest* |
| 2929 |
|
CFLAGS="$save_CFLAGS" |
| 2930 |
|
|
| 2931 |
|
fi |
| 2932 |
|
|
| 2933 |
|
|
| 2934 |
|
if test "X$lt_cv_prog_cc_pic_works" = Xno; then |
| 2935 |
|
lt_cv_prog_cc_pic= |
| 2936 |
|
lt_cv_prog_cc_can_build_shared=no |
| 2937 |
|
else |
| 2938 |
|
lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic" |
| 2939 |
|
fi |
| 2940 |
|
|
| 2941 |
|
echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6 |
| 2942 |
|
fi |
| 2943 |
|
|
| 2944 |
|
# Check for any special shared library compilation flags. |
| 2945 |
|
if test -n "$lt_cv_prog_cc_shlib"; then |
| 2946 |
|
echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2 |
| 2947 |
|
if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then : |
| 2948 |
|
else |
| 2949 |
|
echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2 |
| 2950 |
|
lt_cv_prog_cc_can_build_shared=no |
| 2951 |
|
fi |
| 2952 |
|
fi |
| 2953 |
|
|
| 2954 |
|
echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6 |
| 2955 |
|
echo "configure:2956: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5 |
| 2956 |
|
if eval "test \"`echo '$''{'lt_cv_prog_cc_static_works'+set}'`\" = set"; then |
| 2957 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
| 2958 |
|
else |
| 2959 |
|
lt_cv_prog_cc_static_works=no |
| 2960 |
|
save_LDFLAGS="$LDFLAGS" |
| 2961 |
|
LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static" |
| 2962 |
|
cat > conftest.$ac_ext <<EOF |
| 2963 |
|
#line 2964 "configure" |
| 2964 |
|
#include "confdefs.h" |
| 2965 |
|
|
| 2966 |
|
int main() { |
| 2967 |
|
|
| 2968 |
|
; return 0; } |
| 2969 |
|
EOF |
| 2970 |
|
if { (eval echo configure:2971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2971 |
|
rm -rf conftest* |
| 2972 |
|
lt_cv_prog_cc_static_works=yes |
| 2973 |
|
else |
| 2974 |
|
echo "configure: failed program was:" >&5 |
| 2975 |
|
cat conftest.$ac_ext >&5 |
| 2976 |
|
fi |
| 2977 |
|
rm -f conftest* |
| 2978 |
|
LDFLAGS="$save_LDFLAGS" |
| 2979 |
|
|
| 2980 |
|
fi |
| 2981 |
|
|
| 2982 |
|
|
| 2983 |
|
# Belt *and* braces to stop my trousers falling down: |
| 2984 |
|
test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static= |
| 2985 |
|
echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6 |
| 2986 |
|
|
| 2987 |
|
pic_flag="$lt_cv_prog_cc_pic" |
| 2988 |
|
special_shlib_compile_flags="$lt_cv_prog_cc_shlib" |
| 2989 |
|
wl="$lt_cv_prog_cc_wl" |
| 2990 |
|
link_static_flag="$lt_cv_prog_cc_static" |
| 2991 |
|
no_builtin_flag="$lt_cv_prog_cc_no_builtin" |
| 2992 |
|
can_build_shared="$lt_cv_prog_cc_can_build_shared" |
| 2993 |
|
|
| 2994 |
|
|
| 2995 |
|
# Check to see if options -o and -c are simultaneously supported by compiler |
| 2996 |
|
echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6 |
| 2997 |
|
echo "configure:2998: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 2998 |
|
if eval "test \"`echo '$''{'lt_cv_compiler_c_o'+set}'`\" = set"; then |
| 2999 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
| 3000 |
|
else |
| 3001 |
|
|
| 3002 |
|
$rm -r conftest 2>/dev/null |
| 3003 |
|
mkdir conftest |
| 3004 |
|
cd conftest |
| 3005 |
|
echo "int some_variable = 0;" > conftest.$ac_ext |
| 3006 |
|
mkdir out |
| 3007 |
|
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers |
| 3008 |
|
# that will create temporary files in the current directory regardless of |
| 3009 |
|
# the output directory. Thus, making CWD read-only will cause this test |
| 3010 |
|
# to fail, enabling locking or at least warning the user not to do parallel |
| 3011 |
|
# builds. |
| 3012 |
|
chmod -w . |
| 3013 |
|
save_CFLAGS="$CFLAGS" |
| 3014 |
|
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" |
| 3015 |
|
compiler_c_o=no |
| 3016 |
|
if { (eval echo configure:3017: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then |
| 3017 |
|
# The compiler can only warn and ignore the option if not recognized |
| 3018 |
|
# So say no if there are warnings |
| 3019 |
|
if test -s out/conftest.err; then |
| 3020 |
|
lt_cv_compiler_c_o=no |
| 3021 |
|
else |
| 3022 |
|
lt_cv_compiler_c_o=yes |
| 3023 |
|
fi |
| 3024 |
|
else |
| 3025 |
|
# Append any errors to the config.log. |
| 3026 |
|
cat out/conftest.err 1>&5 |
| 3027 |
|
lt_cv_compiler_c_o=no |
| 3028 |
|
fi |
| 3029 |
|
CFLAGS="$save_CFLAGS" |
| 3030 |
|
chmod u+w . |
| 3031 |
|
$rm conftest* out/* |
| 3032 |
|
rmdir out |
| 3033 |
|
cd .. |
| 3034 |
|
rmdir conftest |
| 3035 |
|
$rm -r conftest 2>/dev/null |
| 3036 |
|
|
| 3037 |
|
fi |
| 3038 |
|
|
| 3039 |
|
compiler_c_o=$lt_cv_compiler_c_o |
| 3040 |
|
echo "$ac_t""$compiler_c_o" 1>&6 |
| 3041 |
|
|
| 3042 |
|
if test x"$compiler_c_o" = x"yes"; then |
| 3043 |
|
# Check to see if we can write to a .lo |
| 3044 |
|
echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6 |
| 3045 |
|
echo "configure:3046: checking if $compiler supports -c -o file.lo" >&5 |
| 3046 |
|
if eval "test \"`echo '$''{'lt_cv_compiler_o_lo'+set}'`\" = set"; then |
| 3047 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
| 3048 |
|
else |
| 3049 |
|
|
| 3050 |
|
lt_cv_compiler_o_lo=no |
| 3051 |
|
save_CFLAGS="$CFLAGS" |
| 3052 |
|
CFLAGS="$CFLAGS -c -o conftest.lo" |
| 3053 |
|
cat > conftest.$ac_ext <<EOF |
| 3054 |
|
#line 3055 "configure" |
| 3055 |
|
#include "confdefs.h" |
| 3056 |
|
|
| 3057 |
|
int main() { |
| 3058 |
|
int some_variable = 0; |
| 3059 |
|
; return 0; } |
| 3060 |
|
EOF |
| 3061 |
|
if { (eval echo configure:3062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 3062 |
|
rm -rf conftest* |
| 3063 |
|
# The compiler can only warn and ignore the option if not recognized |
| 3064 |
|
# So say no if there are warnings |
| 3065 |
|
if test -s conftest.err; then |
| 3066 |
|
lt_cv_compiler_o_lo=no |
| 3067 |
|
else |
| 3068 |
|
lt_cv_compiler_o_lo=yes |
| 3069 |
|
fi |
| 3070 |
|
|
| 3071 |
|
else |
| 3072 |
|
echo "configure: failed program was:" >&5 |
| 3073 |
|
cat conftest.$ac_ext >&5 |
| 3074 |
|
fi |
| 3075 |
|
rm -f conftest* |
| 3076 |
|
CFLAGS="$save_CFLAGS" |
| 3077 |
|
|
| 3078 |
|
fi |
| 3079 |
|
|
| 3080 |
|
compiler_o_lo=$lt_cv_compiler_o_lo |
| 3081 |
|
echo "$ac_t""$compiler_c_lo" 1>&6 |
| 3082 |
|
else |
| 3083 |
|
compiler_o_lo=no |
| 3084 |
|
fi |
| 3085 |
|
|
| 3086 |
|
# Check to see if we can do hard links to lock some files if needed |
| 3087 |
|
hard_links="nottested" |
| 3088 |
|
if test "$compiler_c_o" = no && test "$need_locks" != no; then |
| 3089 |
|
# do not overwrite the value of need_locks provided by the user |
| 3090 |
|
echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6 |
| 3091 |
|
echo "configure:3092: checking if we can lock with hard links" >&5 |
| 3092 |
|
hard_links=yes |
| 3093 |
|
$rm conftest* |
| 3094 |
|
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 3095 |
|
touch conftest.a |
| 3096 |
|
ln conftest.a conftest.b 2>&5 || hard_links=no |
| 3097 |
|
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 3098 |
|
echo "$ac_t""$hard_links" 1>&6 |
| 3099 |
|
if test "$hard_links" = no; then |
| 3100 |
|
echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2 |
| 3101 |
|
need_locks=warn |
| 3102 |
|
fi |
| 3103 |
|
else |
| 3104 |
|
need_locks=no |
| 3105 |
|
fi |
| 3106 |
|
|
| 3107 |
|
if test "$GCC" = yes; then |
| 3108 |
|
# Check to see if options -fno-rtti -fno-exceptions are supported by compiler |
| 3109 |
|
echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6 |
| 3110 |
|
echo "configure:3111: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 3111 |
|
echo "int some_variable = 0;" > conftest.$ac_ext |
| 3112 |
|
save_CFLAGS="$CFLAGS" |
| 3113 |
|
CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" |
| 3114 |
|
compiler_rtti_exceptions=no |
| 3115 |
|
cat > conftest.$ac_ext <<EOF |
| 3116 |
|
#line 3117 "configure" |
| 3117 |
|
#include "confdefs.h" |
| 3118 |
|
|
| 3119 |
|
int main() { |
| 3120 |
|
int some_variable = 0; |
| 3121 |
|
; return 0; } |
| 3122 |
|
EOF |
| 3123 |
|
if { (eval echo configure:3124: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 3124 |
|
rm -rf conftest* |
| 3125 |
|
# The compiler can only warn and ignore the option if not recognized |
| 3126 |
|
# So say no if there are warnings |
| 3127 |
|
if test -s conftest.err; then |
| 3128 |
|
compiler_rtti_exceptions=no |
| 3129 |
|
else |
| 3130 |
|
compiler_rtti_exceptions=yes |
| 3131 |
|
fi |
| 3132 |
|
|
| 3133 |
|
else |
| 3134 |
|
echo "configure: failed program was:" >&5 |
| 3135 |
|
cat conftest.$ac_ext >&5 |
| 3136 |
|
fi |
| 3137 |
|
rm -f conftest* |
| 3138 |
|
CFLAGS="$save_CFLAGS" |
| 3139 |
|
echo "$ac_t""$compiler_rtti_exceptions" 1>&6 |
| 3140 |
|
|
| 3141 |
|
if test "$compiler_rtti_exceptions" = "yes"; then |
| 3142 |
|
no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions' |
| 3143 |
|
else |
| 3144 |
|
no_builtin_flag=' -fno-builtin' |
| 3145 |
|
fi |
| 3146 |
|
fi |
| 3147 |
|
|
| 3148 |
|
# See if the linker supports building shared libraries. |
| 3149 |
|
echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6 |
| 3150 |
|
echo "configure:3151: checking whether the linker ($LD) supports shared libraries" >&5 |
| 3151 |
|
|
| 3152 |
|
allow_undefined_flag= |
| 3153 |
|
no_undefined_flag= |
| 3154 |
|
need_lib_prefix=unknown |
| 3155 |
|
need_version=unknown |
| 3156 |
|
# when you set need_version to no, make sure it does not cause -set_version |
| 3157 |
|
# flags to be left without arguments |
| 3158 |
|
archive_cmds= |
| 3159 |
|
archive_expsym_cmds= |
| 3160 |
|
old_archive_from_new_cmds= |
| 3161 |
|
old_archive_from_expsyms_cmds= |
| 3162 |
|
export_dynamic_flag_spec= |
| 3163 |
|
whole_archive_flag_spec= |
| 3164 |
|
thread_safe_flag_spec= |
| 3165 |
|
hardcode_into_libs=no |
| 3166 |
|
hardcode_libdir_flag_spec= |
| 3167 |
|
hardcode_libdir_separator= |
| 3168 |
|
hardcode_direct=no |
| 3169 |
|
hardcode_minus_L=no |
| 3170 |
|
hardcode_shlibpath_var=unsupported |
| 3171 |
|
runpath_var= |
| 3172 |
|
link_all_deplibs=unknown |
| 3173 |
|
always_export_symbols=no |
| 3174 |
|
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 3175 |
|
# include_expsyms should be a list of space-separated symbols to be *always* |
| 3176 |
|
# included in the symbol list |
| 3177 |
|
include_expsyms= |
| 3178 |
|
# exclude_expsyms can be an egrep regular expression of symbols to exclude |
| 3179 |
|
# it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 3180 |
|
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 3181 |
|
# as well as any symbol that contains `d'. |
| 3182 |
|
exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
| 3183 |
|
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 3184 |
|
# platforms (ab)use it in PIC code, but their linkers get confused if |
| 3185 |
|
# the symbol is explicitly referenced. Since portable code cannot |
| 3186 |
|
# rely on this symbol name, it's probably fine to never include it in |
| 3187 |
|
# preloaded symbol tables. |
| 3188 |
|
extract_expsyms_cmds= |
| 3189 |
|
|
| 3190 |
|
case $host_os in |
| 3191 |
|
cygwin* | mingw* | pw32* ) |
| 3192 |
|
# FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 3193 |
|
# When not using gcc, we currently assume that we are using |
| 3194 |
|
# Microsoft Visual C++. |
| 3195 |
|
if test "$GCC" != yes; then |
| 3196 |
|
with_gnu_ld=no |
| 3197 |
|
fi |
| 3198 |
|
;; |
| 3199 |
|
|
| 3200 |
|
esac |
| 3201 |
|
|
| 3202 |
|
ld_shlibs=yes |
| 3203 |
|
if test "$with_gnu_ld" = yes; then |
| 3204 |
|
# If archive_cmds runs LD, not CC, wlarc should be empty |
| 3205 |
|
wlarc='${wl}' |
| 3206 |
|
|
| 3207 |
|
# See if GNU ld supports shared libraries. |
| 3208 |
|
case $host_os in |
| 3209 |
|
aix3* | aix4* | aix5*) |
| 3210 |
|
# On AIX, the GNU linker is very broken |
| 3211 |
|
# Note:Check GNU linker on AIX 5-IA64 when/if it becomes available. |
| 3212 |
|
ld_shlibs=no |
| 3213 |
|
cat <<EOF 1>&2 |
| 3214 |
|
|
| 3215 |
|
*** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 3216 |
|
*** to be unable to reliably create shared libraries on AIX. |
| 3217 |
|
*** Therefore, libtool is disabling shared libraries support. If you |
| 3218 |
|
*** really care for shared libraries, you may want to modify your PATH |
| 3219 |
|
*** so that a non-GNU linker is found, and then restart. |
| 3220 |
|
|
| 3221 |
|
EOF |
| 3222 |
|
;; |
| 3223 |
|
|
| 3224 |
|
amigaos*) |
| 3225 |
|
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)' |
| 3226 |
|
hardcode_libdir_flag_spec='-L$libdir' |
| 3227 |
|
hardcode_minus_L=yes |
| 3228 |
|
|
| 3229 |
|
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 3230 |
|
# that the semantics of dynamic libraries on AmigaOS, at least up |
| 3231 |
|
# to version 4, is to share data among multiple programs linked |
| 3232 |
|
# with the same dynamic library. Since this doesn't match the |
| 3233 |
|
# behavior of shared libraries on other platforms, we can use |
| 3234 |
|
# them. |
| 3235 |
|
ld_shlibs=no |
| 3236 |
|
;; |
| 3237 |
|
|
| 3238 |
|
beos*) |
| 3239 |
|
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
| 3240 |
|
allow_undefined_flag=unsupported |
| 3241 |
|
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 3242 |
|
# support --undefined. This deserves some investigation. FIXME |
| 3243 |
|
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 3244 |
|
else |
| 3245 |
|
ld_shlibs=no |
| 3246 |
|
fi |
| 3247 |
|
;; |
| 3248 |
|
|
| 3249 |
|
cygwin* | mingw* | pw32*) |
| 3250 |
|
# hardcode_libdir_flag_spec is actually meaningless, as there is |
| 3251 |
|
# no search path for DLLs. |
| 3252 |
|
hardcode_libdir_flag_spec='-L$libdir' |
| 3253 |
|
allow_undefined_flag=unsupported |
| 3254 |
|
always_export_symbols=yes |
| 3255 |
|
|
| 3256 |
|
extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ |
| 3257 |
|
sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ |
| 3258 |
|
test -f $output_objdir/impgen.exe || (cd $output_objdir && \ |
| 3259 |
|
if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ |
| 3260 |
|
else $CC -o impgen impgen.c ; fi)~ |
| 3261 |
|
$output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' |
| 3262 |
|
|
| 3263 |
|
old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' |
| 3264 |
|
|
| 3265 |
|
# cygwin and mingw dlls have different entry points and sets of symbols |
| 3266 |
|
# to exclude. |
| 3267 |
|
# FIXME: what about values for MSVC? |
| 3268 |
|
dll_entry=__cygwin_dll_entry@12 |
| 3269 |
|
dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ |
| 3270 |
|
case $host_os in |
| 3271 |
|
mingw*) |
| 3272 |
|
# mingw values |
| 3273 |
|
dll_entry=_DllMainCRTStartup@12 |
| 3274 |
|
dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ |
| 3275 |
|
;; |
| 3276 |
|
esac |
| 3277 |
|
|
| 3278 |
|
# mingw and cygwin differ, and it's simplest to just exclude the union |
| 3279 |
|
# of the two symbol sets. |
| 3280 |
|
dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 |
| 3281 |
|
|
| 3282 |
|
# recent cygwin and mingw systems supply a stub DllMain which the user |
| 3283 |
|
# can override, but on older systems we have to supply one (in ltdll.c) |
| 3284 |
|
if test "x$lt_cv_need_dllmain" = "xyes"; then |
| 3285 |
|
ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " |
| 3286 |
|
ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < [$]0 > $output_objdir/$soname-ltdll.c~ |
| 3287 |
|
test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' |
| 3288 |
|
else |
| 3289 |
|
ltdll_obj= |
| 3290 |
|
ltdll_cmds= |
| 3291 |
|
fi |
| 3292 |
|
|
| 3293 |
|
# Extract the symbol export list from an `--export-all' def file, |
| 3294 |
|
# then regenerate the def file from the symbol export list, so that |
| 3295 |
|
# the compiled dll only exports the symbol export list. |
| 3296 |
|
# Be careful not to strip the DATA tag left be newer dlltools. |
| 3297 |
|
export_symbols_cmds="$ltdll_cmds"' |
| 3298 |
|
$DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ |
| 3299 |
|
sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' |
| 3300 |
|
|
| 3301 |
|
# If the export-symbols file already is a .def file (1st line |
| 3302 |
|
# is EXPORTS), use it as is. |
| 3303 |
|
# If DATA tags from a recent dlltool are present, honour them! |
| 3304 |
|
archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then |
| 3305 |
|
cp $export_symbols $output_objdir/$soname-def; |
| 3306 |
|
else |
| 3307 |
|
echo EXPORTS > $output_objdir/$soname-def; |
| 3308 |
|
_lt_hint=1; |
| 3309 |
|
cat $export_symbols | while read symbol; do |
| 3310 |
|
set dummy \$symbol; |
| 3311 |
|
case \$# in |
| 3312 |
|
2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; |
| 3313 |
|
*) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;; |
| 3314 |
|
esac; |
| 3315 |
|
_lt_hint=`expr 1 + \$_lt_hint`; |
| 3316 |
|
done; |
| 3317 |
|
fi~ |
| 3318 |
|
'"$ltdll_cmds"' |
| 3319 |
|
$CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ |
| 3320 |
|
$DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~ |
| 3321 |
|
$CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ |
| 3322 |
|
$DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~ |
| 3323 |
|
$CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' |
| 3324 |
|
;; |
| 3325 |
|
|
| 3326 |
|
netbsd*) |
| 3327 |
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 3328 |
|
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 3329 |
|
wlarc= |
| 3330 |
|
else |
| 3331 |
|
archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 3332 |
|
archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 3333 |
|
fi |
| 3334 |
|
;; |
| 3335 |
|
|
| 3336 |
|
solaris* | sysv5*) |
| 3337 |
|
if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then |
| 3338 |
|
ld_shlibs=no |
| 3339 |
|
cat <<EOF 1>&2 |
| 3340 |
|
|
| 3341 |
|
*** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 3342 |
|
*** create shared libraries on Solaris systems. Therefore, libtool |
| 3343 |
|
*** is disabling shared libraries support. We urge you to upgrade GNU |
| 3344 |
|
*** binutils to release 2.9.1 or newer. Another option is to modify |
| 3345 |
|
*** your PATH or compiler configuration so that the native linker is |
| 3346 |
|
*** used, and then restart. |
| 3347 |
|
|
| 3348 |
|
EOF |
| 3349 |
|
elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
| 3350 |
|
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 3351 |
|
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 3352 |
|
else |
| 3353 |
|
ld_shlibs=no |
| 3354 |
|
fi |
| 3355 |
|
;; |
| 3356 |
|
|
| 3357 |
|
sunos4*) |
| 3358 |
|
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 3359 |
|
wlarc= |
| 3360 |
|
hardcode_direct=yes |
| 3361 |
|
hardcode_shlibpath_var=no |
| 3362 |
|
;; |
| 3363 |
|
|
| 3364 |
|
*) |
| 3365 |
|
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
| 3366 |
|
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 3367 |
|
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 3368 |
|
else |
| 3369 |
|
ld_shlibs=no |
| 3370 |
|
fi |
| 3371 |
|
;; |
| 3372 |
|
esac |
| 3373 |
|
|
| 3374 |
|
if test "$ld_shlibs" = yes; then |
| 3375 |
|
runpath_var=LD_RUN_PATH |
| 3376 |
|
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
| 3377 |
|
export_dynamic_flag_spec='${wl}--export-dynamic' |
| 3378 |
|
case $host_os in |
| 3379 |
|
cygwin* | mingw* | pw32*) |
| 3380 |
|
# dlltool doesn't understand --whole-archive et. al. |
| 3381 |
|
whole_archive_flag_spec= |
| 3382 |
|
;; |
| 3383 |
|
*) |
| 3384 |
|
# ancient GNU ld didn't support --whole-archive et. al. |
| 3385 |
|
if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then |
| 3386 |
|
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 3387 |
|
else |
| 3388 |
|
whole_archive_flag_spec= |
| 3389 |
|
fi |
| 3390 |
|
;; |
| 3391 |
|
esac |
| 3392 |
|
fi |
| 3393 |
|
else |
| 3394 |
|
# PORTME fill in a description of your system's linker (not GNU ld) |
| 3395 |
|
case $host_os in |
| 3396 |
|
aix3*) |
| 3397 |
|
allow_undefined_flag=unsupported |
| 3398 |
|
always_export_symbols=yes |
| 3399 |
|
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' |
| 3400 |
|
# Note: this linker hardcodes the directories in LIBPATH if there |
| 3401 |
|
# are no directories specified by -L. |
| 3402 |
|
hardcode_minus_L=yes |
| 3403 |
|
if test "$GCC" = yes && test -z "$link_static_flag"; then |
| 3404 |
|
# Neither direct hardcoding nor static linking is supported with a |
| 3405 |
|
# broken collect2. |
| 3406 |
|
hardcode_direct=unsupported |
| 3407 |
|
fi |
| 3408 |
|
;; |
| 3409 |
|
|
| 3410 |
|
aix4* | aix5*) |
| 3411 |
|
# When large executables or shared objects are built, AIX ld can |
| 3412 |
|
# have problems creating the table of contents. If linking a library |
| 3413 |
|
# or program results in "error TOC overflow" add -mminimal-toc to |
| 3414 |
|
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 3415 |
|
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 3416 |
|
|
| 3417 |
|
archive_cmds='' |
| 3418 |
|
hardcode_libdir_separator=':' |
| 3419 |
|
if test "$GCC" = yes; then |
| 3420 |
|
collect2name=`${CC} -print-prog-name=collect2` |
| 3421 |
|
if test -f "$collect2name" && \ |
| 3422 |
|
strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 3423 |
|
then |
| 3424 |
|
# We have reworked collect2 |
| 3425 |
|
hardcode_direct=yes |
| 3426 |
|
else |
| 3427 |
|
# We have old collect2 |
| 3428 |
|
hardcode_direct=unsupported |
| 3429 |
|
# It fails to find uninstalled libraries when the uninstalled |
| 3430 |
|
# path is not listed in the libpath. Setting hardcode_minus_L |
| 3431 |
|
# to unsupported forces relinking |
| 3432 |
|
hardcode_minus_L=yes |
| 3433 |
|
hardcode_libdir_flag_spec='-L$libdir' |
| 3434 |
|
hardcode_libdir_separator= |
| 3435 |
|
fi |
| 3436 |
|
shared_flag='-shared' |
| 3437 |
|
else |
| 3438 |
|
if test "$host_cpu" = ia64; then |
| 3439 |
|
shared_flag='-G' |
| 3440 |
|
else |
| 3441 |
|
shared_flag='${wl}-bM:SRE' |
| 3442 |
|
fi |
| 3443 |
|
hardcode_direct=yes |
| 3444 |
|
fi |
| 3445 |
|
|
| 3446 |
|
if test "$host_cpu" = ia64; then |
| 3447 |
|
# On IA64, the linker does run time linking by default, so we don't |
| 3448 |
|
# have to do anything special. |
| 3449 |
|
aix_use_runtimelinking=no |
| 3450 |
|
exp_sym_flag='-Bexport' |
| 3451 |
|
no_entry_flag="" |
| 3452 |
|
else |
| 3453 |
|
# Test if we are trying to use run time linking, or normal AIX style linking. |
| 3454 |
|
# If -brtl is somewhere in LDFLAGS, we need to do run time linking. |
| 3455 |
|
aix_use_runtimelinking=no |
| 3456 |
|
for ld_flag in $LDFLAGS; do |
| 3457 |
|
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl" ); then |
| 3458 |
|
aix_use_runtimelinking=yes |
| 3459 |
|
break |
| 3460 |
|
fi |
| 3461 |
|
done |
| 3462 |
|
exp_sym_flag='-bexport' |
| 3463 |
|
no_entry_flag='-bnoentry' |
| 3464 |
|
fi |
| 3465 |
|
# It seems that -bexpall can do strange things, so it is better to |
| 3466 |
|
# generate a list of symbols to export. |
| 3467 |
|
always_export_symbols=yes |
| 3468 |
|
if test "$aix_use_runtimelinking" = yes; then |
| 3469 |
|
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib' |
| 3470 |
|
allow_undefined_flag=' -Wl,-G' |
| 3471 |
|
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
| 3472 |
|
else |
| 3473 |
|
if test "$host_cpu" = ia64; then |
| 3474 |
|
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 3475 |
|
allow_undefined_flag="-znodefs" |
| 3476 |
|
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
| 3477 |
|
else |
| 3478 |
|
hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib' |
| 3479 |
|
# Warning - without using the other run time loading flags, -berok will |
| 3480 |
|
# link without error, but may produce a broken library. |
| 3481 |
|
allow_undefined_flag='${wl}-berok" |
| 3482 |
|
# This is a bit strange, but is similar to how AIX traditionally builds |
| 3483 |
|
# it's shared libraries. |
| 3484 |
|
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname' |
| 3485 |
|
fi |
| 3486 |
|
fi |
| 3487 |
|
;; |
| 3488 |
|
|
| 3489 |
|
amigaos*) |
| 3490 |
|
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)' |
| 3491 |
|
hardcode_libdir_flag_spec='-L$libdir' |
| 3492 |
|
hardcode_minus_L=yes |
| 3493 |
|
# see comment about different semantics on the GNU ld section |
| 3494 |
|
ld_shlibs=no |
| 3495 |
|
;; |
| 3496 |
|
|
| 3497 |
|
cygwin* | mingw* | pw32*) |
| 3498 |
|
# When not using gcc, we currently assume that we are using |
| 3499 |
|
# Microsoft Visual C++. |
| 3500 |
|
# hardcode_libdir_flag_spec is actually meaningless, as there is |
| 3501 |
|
# no search path for DLLs. |
| 3502 |
|
hardcode_libdir_flag_spec=' ' |
| 3503 |
|
allow_undefined_flag=unsupported |
| 3504 |
|
# Tell ltmain to make .lib files, not .a files. |
| 3505 |
|
libext=lib |
| 3506 |
|
# FIXME: Setting linknames here is a bad hack. |
| 3507 |
|
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 3508 |
|
# The linker will automatically build a .lib file if we build a DLL. |
| 3509 |
|
old_archive_from_new_cmds='true' |
| 3510 |
|
# FIXME: Should let the user specify the lib program. |
| 3511 |
|
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 3512 |
|
fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 3513 |
|
;; |
| 3514 |
|
|
| 3515 |
|
darwin* | rhapsody*) |
| 3516 |
|
allow_undefined_flag='-undefined suppress' |
| 3517 |
|
# FIXME: Relying on posixy $() will cause problems for |
| 3518 |
|
# cross-compilation, but unfortunately the echo tests do not |
| 3519 |
|
# yet detect zsh echo's removal of \ escapes. |
| 3520 |
|
archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linkopts -install_name $rpath/$soname $(test -n "$verstring" -a x$verstring != x0.0 && echo $verstring)' |
| 3521 |
|
# We need to add '_' to the symbols in $export_symbols first |
| 3522 |
|
#archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols' |
| 3523 |
|
hardcode_direct=yes |
| 3524 |
|
hardcode_shlibpath_var=no |
| 3525 |
|
whole_archive_flag_spec='-all_load $convenience' |
| 3526 |
|
;; |
| 3527 |
|
|
| 3528 |
|
freebsd1*) |
| 3529 |
|
ld_shlibs=no |
| 3530 |
|
;; |
| 3531 |
|
|
| 3532 |
|
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 3533 |
|
# support. Future versions do this automatically, but an explicit c++rt0.o |
| 3534 |
|
# does not break anything, and helps significantly (at the cost of a little |
| 3535 |
|
# extra space). |
| 3536 |
|
freebsd2.2*) |
| 3537 |
|
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 3538 |
|
hardcode_libdir_flag_spec='-R$libdir' |
| 3539 |
|
hardcode_direct=yes |
| 3540 |
|
hardcode_shlibpath_var=no |
| 3541 |
|
;; |
| 3542 |
|
|
| 3543 |
|
# Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 3544 |
|
freebsd2*) |
| 3545 |
|
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 3546 |
|
hardcode_direct=yes |
| 3547 |
|
hardcode_minus_L=yes |
| 3548 |
|
hardcode_shlibpath_var=no |
| 3549 |
|
;; |
| 3550 |
|
|
| 3551 |
|
# FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 3552 |
|
freebsd*) |
| 3553 |
|
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 3554 |
|
hardcode_libdir_flag_spec='-R$libdir' |
| 3555 |
|
hardcode_direct=yes |
| 3556 |
|
hardcode_shlibpath_var=no |
| 3557 |
|
;; |
| 3558 |
|
|
| 3559 |
|
hpux9* | hpux10* | hpux11*) |
| 3560 |
|
case $host_os in |
| 3561 |
|
hpux9*) 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' ;; |
| 3562 |
|
*) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; |
| 3563 |
|
esac |
| 3564 |
|
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 3565 |
|
hardcode_libdir_separator=: |
| 3566 |
|
hardcode_direct=yes |
| 3567 |
|
hardcode_minus_L=yes # Not in the search PATH, but as the default |
| 3568 |
|
# location of the library. |
| 3569 |
|
export_dynamic_flag_spec='${wl}-E' |
| 3570 |
|
;; |
| 3571 |
|
|
| 3572 |
|
irix5* | irix6*) |
| 3573 |
|
if test "$GCC" = yes; then |
| 3574 |
|
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 3575 |
|
else |
| 3576 |
|
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 3577 |
|
fi |
| 3578 |
|
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 3579 |
|
hardcode_libdir_separator=: |
| 3580 |
|
link_all_deplibs=yes |
| 3581 |
|
;; |
| 3582 |
|
|
| 3583 |
|
netbsd*) |
| 3584 |
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 3585 |
|
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 3586 |
|
else |
| 3587 |
|
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 3588 |
|
fi |
| 3589 |
|
hardcode_libdir_flag_spec='-R$libdir' |
| 3590 |
|
hardcode_direct=yes |
| 3591 |
|
hardcode_shlibpath_var=no |
| 3592 |
|
;; |
| 3593 |
|
|
| 3594 |
|
newsos6) |
| 3595 |
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts' |
| 3596 |
|
hardcode_direct=yes |
| 3597 |
|
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 3598 |
|
hardcode_libdir_separator=: |
| 3599 |
|
hardcode_shlibpath_var=no |
| 3600 |
|
;; |
| 3601 |
|
|
| 3602 |
|
openbsd*) |
| 3603 |
|
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 3604 |
|
hardcode_libdir_flag_spec='-R$libdir' |
| 3605 |
|
hardcode_direct=yes |
| 3606 |
|
hardcode_shlibpath_var=no |
| 3607 |
|
;; |
| 3608 |
|
|
| 3609 |
|
os2*) |
| 3610 |
|
hardcode_libdir_flag_spec='-L$libdir' |
| 3611 |
|
hardcode_minus_L=yes |
| 3612 |
|
allow_undefined_flag=unsupported |
| 3613 |
|
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' |
| 3614 |
|
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 3615 |
|
;; |
| 3616 |
|
|
| 3617 |
|
osf3*) |
| 3618 |
|
if test "$GCC" = yes; then |
| 3619 |
|
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 3620 |
|
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 3621 |
|
else |
| 3622 |
|
allow_undefined_flag=' -expect_unresolved \*' |
| 3623 |
|
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 3624 |
|
fi |
| 3625 |
|
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 3626 |
|
hardcode_libdir_separator=: |
| 3627 |
|
;; |
| 3628 |
|
|
| 3629 |
|
osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 3630 |
|
if test "$GCC" = yes; then |
| 3631 |
|
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 3632 |
|
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 3633 |
|
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 3634 |
|
else |
| 3635 |
|
allow_undefined_flag=' -expect_unresolved \*' |
| 3636 |
|
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 3637 |
|
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
| 3638 |
|
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' |
| 3639 |
|
|
| 3640 |
|
#Both c and cxx compiler support -rpath directly |
| 3641 |
|
hardcode_libdir_flag_spec='-rpath $libdir' |
| 3642 |
|
fi |
| 3643 |
|
hardcode_libdir_separator=: |
| 3644 |
|
;; |
| 3645 |
|
|
| 3646 |
|
sco3.2v5*) |
| 3647 |
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 3648 |
|
hardcode_shlibpath_var=no |
| 3649 |
|
runpath_var=LD_RUN_PATH |
| 3650 |
|
hardcode_runpath_var=yes |
| 3651 |
|
;; |
| 3652 |
|
|
| 3653 |
|
solaris*) |
| 3654 |
|
no_undefined_flag=' -z defs' |
| 3655 |
|
# $CC -shared without GNU ld will not create a library from C++ |
| 3656 |
|
# object files and a static libstdc++, better avoid it by now |
| 3657 |
|
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 3658 |
|
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 3659 |
|
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 3660 |
|
hardcode_libdir_flag_spec='-R$libdir' |
| 3661 |
|
hardcode_shlibpath_var=no |
| 3662 |
|
case $host_os in |
| 3663 |
|
solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 3664 |
|
*) # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 3665 |
|
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
| 3666 |
|
esac |
| 3667 |
|
link_all_deplibs=yes |
| 3668 |
|
;; |
| 3669 |
|
|
| 3670 |
|
sunos4*) |
| 3671 |
|
if test "x$host_vendor" = xsequent; then |
| 3672 |
|
# Use $CC to link under sequent, because it throws in some extra .o |
| 3673 |
|
# files that make .init and .fini sections work. |
| 3674 |
|
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 3675 |
|
else |
| 3676 |
|
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 3677 |
|
fi |
| 3678 |
|
hardcode_libdir_flag_spec='-L$libdir' |
| 3679 |
|
hardcode_direct=yes |
| 3680 |
|
hardcode_minus_L=yes |
| 3681 |
|
hardcode_shlibpath_var=no |
| 3682 |
|
;; |
| 3683 |
|
|
| 3684 |
|
sysv4) |
| 3685 |
|
if test "x$host_vendor" = xsno; then |
| 3686 |
|
archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts' |
| 3687 |
|
hardcode_direct=yes # is this really true??? |
| 3688 |
|
else |
| 3689 |
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 3690 |
|
hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 3691 |
|
fi |
| 3692 |
|
runpath_var='LD_RUN_PATH' |
| 3693 |
|
hardcode_shlibpath_var=no |
| 3694 |
|
;; |
| 3695 |
|
|
| 3696 |
|
sysv4.3*) |
| 3697 |
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 3698 |
|
hardcode_shlibpath_var=no |
| 3699 |
|
export_dynamic_flag_spec='-Bexport' |
| 3700 |
|
;; |
| 3701 |
|
|
| 3702 |
|
sysv5*) |
| 3703 |
|
no_undefined_flag=' -z text' |
| 3704 |
|
# $CC -shared without GNU ld will not create a library from C++ |
| 3705 |
|
# object files and a static libstdc++, better avoid it by now |
| 3706 |
|
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 3707 |
|
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 3708 |
|
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 3709 |
|
hardcode_libdir_flag_spec= |
| 3710 |
|
hardcode_shlibpath_var=no |
| 3711 |
|
runpath_var='LD_RUN_PATH' |
| 3712 |
|
;; |
| 3713 |
|
|
| 3714 |
|
uts4*) |
| 3715 |
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 3716 |
|
hardcode_libdir_flag_spec='-L$libdir' |
| 3717 |
|
hardcode_shlibpath_var=no |
| 3718 |
|
;; |
| 3719 |
|
|
| 3720 |
|
dgux*) |
| 3721 |
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 3722 |
|
hardcode_libdir_flag_spec='-L$libdir' |
| 3723 |
|
hardcode_shlibpath_var=no |
| 3724 |
|
;; |
| 3725 |
|
|
| 3726 |
|
sysv4*MP*) |
| 3727 |
|
if test -d /usr/nec; then |
| 3728 |
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 3729 |
|
hardcode_shlibpath_var=no |
| 3730 |
|
runpath_var=LD_RUN_PATH |
| 3731 |
|
hardcode_runpath_var=yes |
| 3732 |
|
ld_shlibs=yes |
| 3733 |
|
fi |
| 3734 |
|
;; |
| 3735 |
|
|
| 3736 |
|
sysv4.2uw2*) |
| 3737 |
|
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 3738 |
|
hardcode_direct=yes |
| 3739 |
|
hardcode_minus_L=no |
| 3740 |
|
hardcode_shlibpath_var=no |
| 3741 |
|
hardcode_runpath_var=yes |
| 3742 |
|
runpath_var=LD_RUN_PATH |
| 3743 |
|
;; |
| 3744 |
|
|
| 3745 |
|
sysv5uw7* | unixware7*) |
| 3746 |
|
no_undefined_flag='${wl}-z ${wl}text' |
| 3747 |
|
if test "$GCC" = yes; then |
| 3748 |
|
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 3749 |
|
else |
| 3750 |
|
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 3751 |
|
fi |
| 3752 |
|
runpath_var='LD_RUN_PATH' |
| 3753 |
|
hardcode_shlibpath_var=no |
| 3754 |
|
;; |
| 3755 |
|
|
| 3756 |
|
*) |
| 3757 |
|
ld_shlibs=no |
| 3758 |
|
;; |
| 3759 |
|
esac |
| 3760 |
|
fi |
| 3761 |
|
echo "$ac_t""$ld_shlibs" 1>&6 |
| 3762 |
|
test "$ld_shlibs" = no && can_build_shared=no |
| 3763 |
|
|
| 3764 |
|
# Check hardcoding attributes. |
| 3765 |
|
echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6 |
| 3766 |
|
echo "configure:3767: checking how to hardcode library paths into programs" >&5 |
| 3767 |
|
hardcode_action= |
| 3768 |
|
if test -n "$hardcode_libdir_flag_spec" || \ |
| 3769 |
|
test -n "$runpath_var"; then |
| 3770 |
|
|
| 3771 |
|
# We can hardcode non-existant directories. |
| 3772 |
|
if test "$hardcode_direct" != no && |
| 3773 |
|
# If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 3774 |
|
# have to relink, otherwise we might link with an installed library |
| 3775 |
|
# when we should be linking with a yet-to-be-installed one |
| 3776 |
|
## test "$hardcode_shlibpath_var" != no && |
| 3777 |
|
test "$hardcode_minus_L" != no; then |
| 3778 |
|
# Linking always hardcodes the temporary library directory. |
| 3779 |
|
hardcode_action=relink |
| 3780 |
|
else |
| 3781 |
|
# We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 3782 |
|
hardcode_action=immediate |
| 3783 |
|
fi |
| 3784 |
|
else |
| 3785 |
|
# We cannot hardcode anything, or else we can only hardcode existing |
| 3786 |
|
# directories. |
| 3787 |
|
hardcode_action=unsupported |
| 3788 |
|
fi |
| 3789 |
|
echo "$ac_t""$hardcode_action" 1>&6 |
| 3790 |
|
|
| 3791 |
|
striplib= |
| 3792 |
|
old_striplib= |
| 3793 |
|
echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6 |
| 3794 |
|
echo "configure:3795: checking whether stripping libraries is possible" >&5 |
| 3795 |
|
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 3796 |
|
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 3797 |
|
test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 3798 |
|
echo "$ac_t""yes" 1>&6 |
| 3799 |
|
else |
| 3800 |
|
echo "$ac_t""no" 1>&6 |
| 3801 |
|
fi |
| 3802 |
|
|
| 3803 |
|
reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 3804 |
|
test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 3805 |
|
|
| 3806 |
|
# PORTME Fill in your ld.so characteristics |
| 3807 |
|
echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6 |
| 3808 |
|
echo "configure:3809: checking dynamic linker characteristics" >&5 |
| 3809 |
|
library_names_spec= |
| 3810 |
|
libname_spec='lib$name' |
| 3811 |
|
soname_spec= |
| 3812 |
|
postinstall_cmds= |
| 3813 |
|
postuninstall_cmds= |
| 3814 |
|
finish_cmds= |
| 3815 |
|
finish_eval= |
| 3816 |
|
shlibpath_var= |
| 3817 |
|
shlibpath_overrides_runpath=unknown |
| 3818 |
|
version_type=none |
| 3819 |
|
dynamic_linker="$host_os ld.so" |
| 3820 |
|
sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 3821 |
|
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 3822 |
|
|
| 3823 |
|
case $host_os in |
| 3824 |
|
aix3*) |
| 3825 |
|
version_type=linux |
| 3826 |
|
library_names_spec='${libname}${release}.so$versuffix $libname.a' |
| 3827 |
|
shlibpath_var=LIBPATH |
| 3828 |
|
|
| 3829 |
|
# AIX has no versioning support, so we append a major version to the name. |
| 3830 |
|
soname_spec='${libname}${release}.so$major' |
| 3831 |
|
;; |
| 3832 |
|
|
| 3833 |
|
aix4* | aix5*) |
| 3834 |
|
version_type=linux |
| 3835 |
|
if test "$host_cpu" = ia64; then |
| 3836 |
|
# AIX 5 supports IA64 |
| 3837 |
|
library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' |
| 3838 |
|
shlibpath_var=LD_LIBRARY_PATH |
| 3839 |
|
else |
| 3840 |
|
# With GCC up to 2.95.x, collect2 would create an import file |
| 3841 |
|
# for dependence libraries. The import file would start with |
| 3842 |
|
# the line `#! .'. This would cause the generated library to |
| 3843 |
|
# depend on `.', always an invalid library. This was fixed in |
| 3844 |
|
# development snapshots of GCC prior to 3.0. |
| 3845 |
|
case $host_os in |
| 3846 |
|
aix4 | aix4.[01] | aix4.[01].*) |
| 3847 |
|
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 3848 |
|
echo ' yes ' |
| 3849 |
|
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 3850 |
|
: |
| 3851 |
|
else |
| 3852 |
|
can_build_shared=no |
| 3853 |
|
fi |
| 3854 |
|
;; |
| 3855 |
|
esac |
| 3856 |
|
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 3857 |
|
# soname into executable. Probably we can add versioning support to |
| 3858 |
|
# collect2, so additional links can be useful in future. |
| 3859 |
|
if test "$aix_use_runtimelinking" = yes; then |
| 3860 |
|
# If using run time linking (on AIX 4.2 or later) use lib<name>.so instead of |
| 3861 |
|
# lib<name>.a to let people know that these are not typical AIX shared libraries. |
| 3862 |
|
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 3863 |
|
else |
| 3864 |
|
# We preserve .a as extension for shared libraries through AIX4.2 |
| 3865 |
|
# and later when we are not doing run time linking. |
| 3866 |
|
library_names_spec='${libname}${release}.a $libname.a' |
| 3867 |
|
soname_spec='${libname}${release}.so$major' |
| 3868 |
|
fi |
| 3869 |
|
shlibpath_var=LIBPATH |
| 3870 |
|
deplibs_check_method=pass_all |
| 3871 |
|
fi |
| 3872 |
|
;; |
| 3873 |
|
|
| 3874 |
|
amigaos*) |
| 3875 |
|
library_names_spec='$libname.ixlibrary $libname.a' |
| 3876 |
|
# Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 3877 |
|
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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' |
| 3878 |
|
;; |
| 3879 |
|
|
| 3880 |
|
beos*) |
| 3881 |
|
library_names_spec='${libname}.so' |
| 3882 |
|
dynamic_linker="$host_os ld.so" |
| 3883 |
|
shlibpath_var=LIBRARY_PATH |
| 3884 |
|
;; |
| 3885 |
|
|
| 3886 |
|
bsdi4*) |
| 3887 |
|
version_type=linux |
| 3888 |
|
need_version=no |
| 3889 |
|
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 3890 |
|
soname_spec='${libname}${release}.so$major' |
| 3891 |
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 3892 |
|
shlibpath_var=LD_LIBRARY_PATH |
| 3893 |
|
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 3894 |
|
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 3895 |
|
export_dynamic_flag_spec=-rdynamic |
| 3896 |
|
# the default ld.so.conf also contains /usr/contrib/lib and |
| 3897 |
|
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 3898 |
|
# libtool to hard-code these into programs |
| 3899 |
|
;; |
| 3900 |
|
|
| 3901 |
|
cygwin* | mingw* | pw32*) |
| 3902 |
|
version_type=windows |
| 3903 |
|
need_version=no |
| 3904 |
|
need_lib_prefix=no |
| 3905 |
|
case $GCC,$host_os in |
| 3906 |
|
yes,cygwin*) |
| 3907 |
|
library_names_spec='$libname.dll.a' |
| 3908 |
|
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' |
| 3909 |
|
postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ |
| 3910 |
|
dldir=$destdir/`dirname \$dlpath`~ |
| 3911 |
|
test -d \$dldir || mkdir -p \$dldir~ |
| 3912 |
|
$install_prog .libs/$dlname \$dldir/$dlname' |
| 3913 |
|
postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 3914 |
|
dlpath=$dir/\$dldll~ |
| 3915 |
|
$rm \$dlpath' |
| 3916 |
|
;; |
| 3917 |
|
yes,mingw*) |
| 3918 |
|
library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' |
| 3919 |
|
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"` |
| 3920 |
|
;; |
| 3921 |
|
yes,pw32*) |
| 3922 |
|
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll' |
| 3923 |
|
;; |
| 3924 |
|
*) |
| 3925 |
|
library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' |
| 3926 |
|
;; |
| 3927 |
|
esac |
| 3928 |
|
dynamic_linker='Win32 ld.exe' |
| 3929 |
|
# FIXME: first we should search . and the directory the executable is in |
| 3930 |
|
shlibpath_var=PATH |
| 3931 |
|
;; |
| 3932 |
|
|
| 3933 |
|
darwin* | rhapsody*) |
| 3934 |
|
dynamic_linker="$host_os dyld" |
| 3935 |
|
version_type=darwin |
| 3936 |
|
need_lib_prefix=no |
| 3937 |
|
need_version=no |
| 3938 |
|
# FIXME: Relying on posixy $() will cause problems for |
| 3939 |
|
# cross-compilation, but unfortunately the echo tests do not |
| 3940 |
|
# yet detect zsh echo's removal of \ escapes. |
| 3941 |
|
library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)' |
| 3942 |
|
soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' |
| 3943 |
|
shlibpath_overrides_runpath=yes |
| 3944 |
|
shlibpath_var=DYLD_LIBRARY_PATH |
| 3945 |
|
;; |
| 3946 |
|
|
| 3947 |
|
freebsd1*) |
| 3948 |
|
dynamic_linker=no |
| 3949 |
|
;; |
| 3950 |
|
|
| 3951 |
|
freebsd*) |
| 3952 |
|
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 3953 |
|
version_type=freebsd-$objformat |
| 3954 |
|
case $version_type in |
| 3955 |
|
freebsd-elf*) |
| 3956 |
|
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' |
| 3957 |
|
need_version=no |
| 3958 |
|
need_lib_prefix=no |
| 3959 |
|
;; |
| 3960 |
|
freebsd-*) |
| 3961 |
|
library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' |
| 3962 |
|
need_version=yes |
| 3963 |
|
;; |
| 3964 |
|
esac |
| 3965 |
|
shlibpath_var=LD_LIBRARY_PATH |
| 3966 |
|
case $host_os in |
| 3967 |
|
freebsd2*) |
| 3968 |
|
shlibpath_overrides_runpath=yes |
| 3969 |
|
;; |
| 3970 |
|
*) |
| 3971 |
|
shlibpath_overrides_runpath=no |
| 3972 |
|
hardcode_into_libs=yes |
| 3973 |
|
;; |
| 3974 |
|
esac |
| 3975 |
|
;; |
| 3976 |
|
|
| 3977 |
|
gnu*) |
| 3978 |
|
version_type=linux |
| 3979 |
|
need_lib_prefix=no |
| 3980 |
|
need_version=no |
| 3981 |
|
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' |
| 3982 |
|
soname_spec='${libname}${release}.so$major' |
| 3983 |
|
shlibpath_var=LD_LIBRARY_PATH |
| 3984 |
|
hardcode_into_libs=yes |
| 3985 |
|
;; |
| 3986 |
|
|
| 3987 |
|
hpux9* | hpux10* | hpux11*) |
| 3988 |
|
# Give a soname corresponding to the major version so that dld.sl refuses to |
| 3989 |
|
# link against other versions. |
| 3990 |
|
dynamic_linker="$host_os dld.sl" |
| 3991 |
|
version_type=sunos |
| 3992 |
|
need_lib_prefix=no |
| 3993 |
|
need_version=no |
| 3994 |
|
shlibpath_var=SHLIB_PATH |
| 3995 |
|
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 3996 |
|
library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' |
| 3997 |
|
soname_spec='${libname}${release}.sl$major' |
| 3998 |
|
# HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 3999 |
|
postinstall_cmds='chmod 555 $lib' |
| 4000 |
|
;; |
| 4001 |
|
|
| 4002 |
|
irix5* | irix6*) |
| 4003 |
|
version_type=irix |
| 4004 |
|
need_lib_prefix=no |
| 4005 |
|
need_version=no |
| 4006 |
|
soname_spec='${libname}${release}.so$major' |
| 4007 |
|
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' |
| 4008 |
|
case $host_os in |
| 4009 |
|
irix5*) |
| 4010 |
|
libsuff= shlibsuff= |
| 4011 |
|
;; |
| 4012 |
|
*) |
| 4013 |
|
case $LD in # libtool.m4 will add one of these switches to LD |
| 4014 |
|
*-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; |
| 4015 |
|
*-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 4016 |
|
*-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 4017 |
|
*) libsuff= shlibsuff= libmagic=never-match;; |
| 4018 |
|
esac |
| 4019 |
|
;; |
| 4020 |
|
esac |
| 4021 |
|
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 4022 |
|
shlibpath_overrides_runpath=no |
| 4023 |
|
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 4024 |
|
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 4025 |
|
;; |
| 4026 |
|
|
| 4027 |
|
# No shared lib support for Linux oldld, aout, or coff. |
| 4028 |
|
linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*) |
| 4029 |
|
dynamic_linker=no |
| 4030 |
|
;; |
| 4031 |
|
|
| 4032 |
|
# This must be Linux ELF. |
| 4033 |
|
linux-gnu*) |
| 4034 |
|
version_type=linux |
| 4035 |
|
need_lib_prefix=no |
| 4036 |
|
need_version=no |
| 4037 |
|
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 4038 |
|
soname_spec='${libname}${release}.so$major' |
| 4039 |
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 4040 |
|
shlibpath_var=LD_LIBRARY_PATH |
| 4041 |
|
shlibpath_overrides_runpath=no |
| 4042 |
|
# This implies no fast_install, which is unacceptable. |
| 4043 |
|
# Some rework will be needed to allow for fast_install |
| 4044 |
|
# before this can be enabled. |
| 4045 |
|
hardcode_into_libs=yes |
| 4046 |
|
|
| 4047 |
|
# We used to test for /lib/ld.so.1 and disable shared libraries on |
| 4048 |
|
# powerpc, because MkLinux only supported shared libraries with the |
| 4049 |
|
# GNU dynamic linker. Since this was broken with cross compilers, |
| 4050 |
|
# most powerpc-linux boxes support dynamic linking these days and |
| 4051 |
|
# people can always --disable-shared, the test was removed, and we |
| 4052 |
|
# assume the GNU/Linux dynamic linker is in use. |
| 4053 |
|
dynamic_linker='GNU/Linux ld.so' |
| 4054 |
|
;; |
| 4055 |
|
|
| 4056 |
|
netbsd*) |
| 4057 |
|
version_type=sunos |
| 4058 |
|
need_lib_prefix=no |
| 4059 |
|
need_version=no |
| 4060 |
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 4061 |
|
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
| 4062 |
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 4063 |
|
dynamic_linker='NetBSD (a.out) ld.so' |
| 4064 |
|
else |
| 4065 |
|
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' |
| 4066 |
|
soname_spec='${libname}${release}.so$major' |
| 4067 |
|
dynamic_linker='NetBSD ld.elf_so' |
| 4068 |
|
fi |
| 4069 |
|
shlibpath_var=LD_LIBRARY_PATH |
| 4070 |
|
shlibpath_overrides_runpath=yes |
| 4071 |
|
hardcode_into_libs=yes |
| 4072 |
|
;; |
| 4073 |
|
|
| 4074 |
|
newsos6) |
| 4075 |
|
version_type=linux |
| 4076 |
|
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 4077 |
|
shlibpath_var=LD_LIBRARY_PATH |
| 4078 |
|
shlibpath_overrides_runpath=yes |
| 4079 |
|
;; |
| 4080 |
|
|
| 4081 |
|
openbsd*) |
| 4082 |
|
version_type=sunos |
| 4083 |
|
if test "$with_gnu_ld" = yes; then |
| 4084 |
|
need_lib_prefix=no |
| 4085 |
|
need_version=no |
| 4086 |
|
fi |
| 4087 |
|
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
| 4088 |
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 4089 |
|
shlibpath_var=LD_LIBRARY_PATH |
| 4090 |
|
;; |
| 4091 |
|
|
| 4092 |
|
os2*) |
| 4093 |
|
libname_spec='$name' |
| 4094 |
|
need_lib_prefix=no |
| 4095 |
|
library_names_spec='$libname.dll $libname.a' |
| 4096 |
|
dynamic_linker='OS/2 ld.exe' |
| 4097 |
|
shlibpath_var=LIBPATH |
| 4098 |
|
;; |
| 4099 |
|
|
| 4100 |
|
osf3* | osf4* | osf5*) |
| 4101 |
|
version_type=osf |
| 4102 |
|
need_version=no |
| 4103 |
|
soname_spec='${libname}${release}.so' |
| 4104 |
|
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' |
| 4105 |
|
shlibpath_var=LD_LIBRARY_PATH |
| 4106 |
|
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 4107 |
|
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 4108 |
|
;; |
| 4109 |
|
|
| 4110 |
|
sco3.2v5*) |
| 4111 |
|
version_type=osf |
| 4112 |
|
soname_spec='${libname}${release}.so$major' |
| 4113 |
|
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 4114 |
|
shlibpath_var=LD_LIBRARY_PATH |
| 4115 |
|
;; |
| 4116 |
|
|
| 4117 |
|
solaris*) |
| 4118 |
|
version_type=linux |
| 4119 |
|
need_lib_prefix=no |
| 4120 |
|
need_version=no |
| 4121 |
|
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 4122 |
|
soname_spec='${libname}${release}.so$major' |
| 4123 |
|
shlibpath_var=LD_LIBRARY_PATH |
| 4124 |
|
shlibpath_overrides_runpath=yes |
| 4125 |
|
hardcode_into_libs=yes |
| 4126 |
|
# ldd complains unless libraries are executable |
| 4127 |
|
postinstall_cmds='chmod +x $lib' |
| 4128 |
|
;; |
| 4129 |
|
|
| 4130 |
|
sunos4*) |
| 4131 |
|
version_type=sunos |
| 4132 |
|
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
| 4133 |
|
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 4134 |
|
shlibpath_var=LD_LIBRARY_PATH |
| 4135 |
|
shlibpath_overrides_runpath=yes |
| 4136 |
|
if test "$with_gnu_ld" = yes; then |
| 4137 |
|
need_lib_prefix=no |
| 4138 |
|
fi |
| 4139 |
|
need_version=yes |
| 4140 |
|
;; |
| 4141 |
|
|
| 4142 |
|
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 4143 |
|
version_type=linux |
| 4144 |
|
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 4145 |
|
soname_spec='${libname}${release}.so$major' |
| 4146 |
|
shlibpath_var=LD_LIBRARY_PATH |
| 4147 |
|
case $host_vendor in |
| 4148 |
|
sni) |
| 4149 |
|
shlibpath_overrides_runpath=no |
| 4150 |
|
;; |
| 4151 |
|
motorola) |
| 4152 |
|
need_lib_prefix=no |
| 4153 |
|
need_version=no |
| 4154 |
|
shlibpath_overrides_runpath=no |
| 4155 |
|
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 4156 |
|
;; |
| 4157 |
|
esac |
| 4158 |
|
;; |
| 4159 |
|
|
| 4160 |
|
uts4*) |
| 4161 |
|
version_type=linux |
| 4162 |
|
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 4163 |
|
soname_spec='${libname}${release}.so$major' |
| 4164 |
|
shlibpath_var=LD_LIBRARY_PATH |
| 4165 |
|
;; |
| 4166 |
|
|
| 4167 |
|
dgux*) |
| 4168 |
|
version_type=linux |
| 4169 |
|
need_lib_prefix=no |
| 4170 |
|
need_version=no |
| 4171 |
|
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 4172 |
|
soname_spec='${libname}${release}.so$major' |
| 4173 |
|
shlibpath_var=LD_LIBRARY_PATH |
| 4174 |
|
;; |
| 4175 |
|
|
| 4176 |
|
sysv4*MP*) |
| 4177 |
|
if test -d /usr/nec ;then |
| 4178 |
|
version_type=linux |
| 4179 |
|
library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' |
| 4180 |
|
soname_spec='$libname.so.$major' |
| 4181 |
|
shlibpath_var=LD_LIBRARY_PATH |
| 4182 |
|
fi |
| 4183 |
|
;; |
| 4184 |
|
|
| 4185 |
|
*) |
| 4186 |
|
dynamic_linker=no |
| 4187 |
|
;; |
| 4188 |
|
esac |
| 4189 |
|
echo "$ac_t""$dynamic_linker" 1>&6 |
| 4190 |
|
test "$dynamic_linker" = no && can_build_shared=no |
| 4191 |
|
|
| 4192 |
|
# Report the final consequences. |
| 4193 |
|
echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6 |
| 4194 |
|
echo "configure:4195: checking if libtool supports shared libraries" >&5 |
| 4195 |
|
echo "$ac_t""$can_build_shared" 1>&6 |
| 4196 |
|
|
| 4197 |
|
if test "$hardcode_action" = relink; then |
| 4198 |
|
# Fast installation is not supported |
| 4199 |
|
enable_fast_install=no |
| 4200 |
|
elif test "$shlibpath_overrides_runpath" = yes || |
| 4201 |
|
test "$enable_shared" = no; then |
| 4202 |
|
# Fast installation is not necessary |
| 4203 |
|
enable_fast_install=needless |
| 4204 |
|
fi |
| 4205 |
|
|
| 4206 |
|
variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 4207 |
|
if test "$GCC" = yes; then |
| 4208 |
|
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 4209 |
|
fi |
| 4210 |
|
|
| 4211 |
|
if test "x$enable_dlopen" != xyes; then |
| 4212 |
|
enable_dlopen=unknown |
| 4213 |
|
enable_dlopen_self=unknown |
| 4214 |
|
enable_dlopen_self_static=unknown |
| 4215 |
|
else |
| 4216 |
|
lt_cv_dlopen=no |
| 4217 |
|
lt_cv_dlopen_libs= |
| 4218 |
|
|
| 4219 |
|
case $host_os in |
| 4220 |
|
beos*) |
| 4221 |
|
lt_cv_dlopen="load_add_on" |
| 4222 |
|
lt_cv_dlopen_libs= |
| 4223 |
|
lt_cv_dlopen_self=yes |
| 4224 |
|
;; |
| 4225 |
|
|
| 4226 |
|
cygwin* | mingw* | pw32*) |
| 4227 |
|
lt_cv_dlopen="LoadLibrary" |
| 4228 |
|
lt_cv_dlopen_libs= |
| 4229 |
|
;; |
| 4230 |
|
|
| 4231 |
|
*) |
| 4232 |
|
echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 |
| 4233 |
|
echo "configure:4234: checking for dlopen in -ldl" >&5 |
| 4234 |
|
ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
| 4235 |
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 4236 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
| 4237 |
|
else |
| 4238 |
|
ac_save_LIBS="$LIBS" |
| 4239 |
|
LIBS="-ldl $LIBS" |
| 4240 |
|
cat > conftest.$ac_ext <<EOF |
| 4241 |
|
#line 4242 "configure" |
| 4242 |
|
#include "confdefs.h" |
| 4243 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
| 4244 |
|
/* We use char because int might match the return type of a gcc2 |
| 4245 |
|
builtin and then its argument prototype would still apply. */ |
| 4246 |
|
char dlopen(); |
| 4247 |
|
|
| 4248 |
|
int main() { |
| 4249 |
|
dlopen() |
| 4250 |
|
; return 0; } |
| 4251 |
|
EOF |
| 4252 |
|
if { (eval echo configure:4253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 4253 |
|
rm -rf conftest* |
| 4254 |
|
eval "ac_cv_lib_$ac_lib_var=yes" |
| 4255 |
|
else |
| 4256 |
|
echo "configure: failed program was:" >&5 |
| 4257 |
|
cat conftest.$ac_ext >&5 |
| 4258 |
|
rm -rf conftest* |
| 4259 |
|
eval "ac_cv_lib_$ac_lib_var=no" |
| 4260 |
|
fi |
| 4261 |
|
rm -f conftest* |
| 4262 |
|
LIBS="$ac_save_LIBS" |
| 4263 |
|
|
| 4264 |
|
fi |
| 4265 |
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 4266 |
|
echo "$ac_t""yes" 1>&6 |
| 4267 |
|
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 4268 |
|
else |
| 4269 |
|
echo "$ac_t""no" 1>&6 |
| 4270 |
|
echo $ac_n "checking for dlopen""... $ac_c" 1>&6 |
| 4271 |
|
echo "configure:4272: checking for dlopen" >&5 |
| 4272 |
|
if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then |
| 4273 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
| 4274 |
|
else |
| 4275 |
|
cat > conftest.$ac_ext <<EOF |
| 4276 |
|
#line 4277 "configure" |
| 4277 |
|
#include "confdefs.h" |
| 4278 |
|
/* System header to define __stub macros and hopefully few prototypes, |
| 4279 |
|
which can conflict with char dlopen(); below. */ |
| 4280 |
|
#include <assert.h> |
| 4281 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
| 4282 |
|
/* We use char because int might match the return type of a gcc2 |
| 4283 |
|
builtin and then its argument prototype would still apply. */ |
| 4284 |
|
char dlopen(); |
| 4285 |
|
|
| 4286 |
|
int main() { |
| 4287 |
|
|
| 4288 |
|
/* The GNU C library defines this for functions which it implements |
| 4289 |
|
to always fail with ENOSYS. Some functions are actually named |
| 4290 |
|
something starting with __ and the normal name is an alias. */ |
| 4291 |
|
#if defined (__stub_dlopen) || defined (__stub___dlopen) |
| 4292 |
|
choke me |
| 4293 |
|
#else |
| 4294 |
|
dlopen(); |
| 4295 |
|
#endif |
| 4296 |
|
|
| 4297 |
|
; return 0; } |
| 4298 |
|
EOF |
| 4299 |
|
if { (eval echo configure:4300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 4300 |
|
rm -rf conftest* |
| 4301 |
|
eval "ac_cv_func_dlopen=yes" |
| 4302 |
|
else |
| 4303 |
|
echo "configure: failed program was:" >&5 |
| 4304 |
|
cat conftest.$ac_ext >&5 |
| 4305 |
|
rm -rf conftest* |
| 4306 |
|
eval "ac_cv_func_dlopen=no" |
| 4307 |
|
fi |
| 4308 |
|
rm -f conftest* |
| 4309 |
|
fi |
| 4310 |
|
|
| 4311 |
|
if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then |
| 4312 |
|
echo "$ac_t""yes" 1>&6 |
| 4313 |
|
lt_cv_dlopen="dlopen" |
| 4314 |
|
else |
| 4315 |
|
echo "$ac_t""no" 1>&6 |
| 4316 |
|
echo $ac_n "checking for shl_load""... $ac_c" 1>&6 |
| 4317 |
|
echo "configure:4318: checking for shl_load" >&5 |
| 4318 |
|
if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then |
| 4319 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
| 4320 |
|
else |
| 4321 |
|
cat > conftest.$ac_ext <<EOF |
| 4322 |
|
#line 4323 "configure" |
| 4323 |
|
#include "confdefs.h" |
| 4324 |
|
/* System header to define __stub macros and hopefully few prototypes, |
| 4325 |
|
which can conflict with char shl_load(); below. */ |
| 4326 |
|
#include <assert.h> |
| 4327 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
| 4328 |
|
/* We use char because int might match the return type of a gcc2 |
| 4329 |
|
builtin and then its argument prototype would still apply. */ |
| 4330 |
|
char shl_load(); |
| 4331 |
|
|
| 4332 |
|
int main() { |
| 4333 |
|
|
| 4334 |
|
/* The GNU C library defines this for functions which it implements |
| 4335 |
|
to always fail with ENOSYS. Some functions are actually named |
| 4336 |
|
something starting with __ and the normal name is an alias. */ |
| 4337 |
|
#if defined (__stub_shl_load) || defined (__stub___shl_load) |
| 4338 |
|
choke me |
| 4339 |
|
#else |
| 4340 |
|
shl_load(); |
| 4341 |
|
#endif |
| 4342 |
|
|
| 4343 |
|
; return 0; } |
| 4344 |
|
EOF |
| 4345 |
|
if { (eval echo configure:4346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 4346 |
|
rm -rf conftest* |
| 4347 |
|
eval "ac_cv_func_shl_load=yes" |
| 4348 |
|
else |
| 4349 |
|
echo "configure: failed program was:" >&5 |
| 4350 |
|
cat conftest.$ac_ext >&5 |
| 4351 |
|
rm -rf conftest* |
| 4352 |
|
eval "ac_cv_func_shl_load=no" |
| 4353 |
|
fi |
| 4354 |
|
rm -f conftest* |
| 4355 |
|
fi |
| 4356 |
|
|
| 4357 |
|
if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then |
| 4358 |
|
echo "$ac_t""yes" 1>&6 |
| 4359 |
|
lt_cv_dlopen="shl_load" |
| 4360 |
|
else |
| 4361 |
|
echo "$ac_t""no" 1>&6 |
| 4362 |
|
echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6 |
| 4363 |
|
echo "configure:4364: checking for dlopen in -lsvld" >&5 |
| 4364 |
|
ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-%__p_%'` |
| 4365 |
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 4366 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
| 4367 |
|
else |
| 4368 |
|
ac_save_LIBS="$LIBS" |
| 4369 |
|
LIBS="-lsvld $LIBS" |
| 4370 |
|
cat > conftest.$ac_ext <<EOF |
| 4371 |
|
#line 4372 "configure" |
| 4372 |
|
#include "confdefs.h" |
| 4373 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
| 4374 |
|
/* We use char because int might match the return type of a gcc2 |
| 4375 |
|
builtin and then its argument prototype would still apply. */ |
| 4376 |
|
char dlopen(); |
| 4377 |
|
|
| 4378 |
|
int main() { |
| 4379 |
|
dlopen() |
| 4380 |
|
; return 0; } |
| 4381 |
|
EOF |
| 4382 |
|
if { (eval echo configure:4383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 4383 |
|
rm -rf conftest* |
| 4384 |
|
eval "ac_cv_lib_$ac_lib_var=yes" |
| 4385 |
|
else |
| 4386 |
|
echo "configure: failed program was:" >&5 |
| 4387 |
|
cat conftest.$ac_ext >&5 |
| 4388 |
|
rm -rf conftest* |
| 4389 |
|
eval "ac_cv_lib_$ac_lib_var=no" |
| 4390 |
|
fi |
| 4391 |
|
rm -f conftest* |
| 4392 |
|
LIBS="$ac_save_LIBS" |
| 4393 |
|
|
| 4394 |
|
fi |
| 4395 |
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 4396 |
|
echo "$ac_t""yes" 1>&6 |
| 4397 |
|
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 4398 |
|
else |
| 4399 |
|
echo "$ac_t""no" 1>&6 |
| 4400 |
|
echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 |
| 4401 |
|
echo "configure:4402: checking for shl_load in -ldld" >&5 |
| 4402 |
|
ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` |
| 4403 |
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 4404 |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
| 4405 |
|
else |
| 4406 |
|
ac_save_LIBS="$LIBS" |
| 4407 |
|
LIBS="-ldld $LIBS" |
| 4408 |
|
cat > conftest.$ac_ext <<EOF |
| 4409 |
|
#line 4410 "configure" |
| 4410 |
|
#include "confdefs.h" |
| 4411 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
| 4412 |
|
/* We use char because int might match the return type of a gcc2 |
| 4413 |
|
builtin and then its argument prototype would still apply. */ |
| 4414 |
|
char shl_load(); |
| 4415 |
|
|
| 4416 |
|
int main() { |
| 4417 |
|
shl_load() |
| 4418 |
|
; return 0; } |
| 4419 |
|
EOF |
| 4420 |
|
if { (eval echo configure:4421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 4421 |
|
rm -rf conftest* |
| 4422 |
|
eval "ac_cv_lib_$ac_lib_var=yes" |
| 4423 |
|
else |
| 4424 |
|
echo "configure: failed program was:" >&5 |
| 4425 |
|
cat conftest.$ac_ext >&5 |
| 4426 |
|
rm -rf conftest* |
| 4427 |
|
eval "ac_cv_lib_$ac_lib_var=no" |
|