| 1 |
#! /bin/sh |
| 2 |
|
| 3 |
# Guess values for system-dependent variables and create Makefiles. |
| 4 |
# Generated automatically using autoconf version 2.13 |
| 5 |
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
| 6 |
# |
| 7 |
# This configure script is free software; the Free Software Foundation |
| 8 |
# gives unlimited permission to copy, distribute and modify it. |
| 9 |
|
| 10 |
# Defaults: |
| 11 |
ac_help= |
| 12 |
ac_default_prefix=/usr/local |
| 13 |
# Any additions from configure.in: |
| 14 |
ac_help="$ac_help |
| 15 |
--with-php-config=PATH" |
| 16 |
ac_default_prefix= |
| 17 |
ac_help="$ac_help |
| 18 |
--with-bz2[=DIR] Include HtDig support" |
| 19 |
ac_help="$ac_help |
| 20 |
--enable-shared[=PKGS] build shared libraries [default=yes]" |
| 21 |
ac_help="$ac_help |
| 22 |
--enable-static[=PKGS] build static libraries [default=yes]" |
| 23 |
ac_help="$ac_help |
| 24 |
--enable-fast-install[=PKGS] optimize for fast installation [default=yes]" |
| 25 |
ac_help="$ac_help |
| 26 |
--with-gnu-ld assume the C compiler uses GNU ld [default=no]" |
| 27 |
|
| 28 |
# Find the correct PATH separator. Usually this is `:', but |
| 29 |
# DJGPP uses `;' like DOS. |
| 30 |
if test "X${PATH_SEPARATOR+set}" != Xset; then |
| 31 |
UNAME=${UNAME-`uname 2>/dev/null`} |
| 32 |
case X$UNAME in |
| 33 |
*-DOS) lt_cv_sys_path_separator=';' ;; |
| 34 |
*) lt_cv_sys_path_separator=':' ;; |
| 35 |
esac |
| 36 |
fi |
| 37 |
|
| 38 |
|
| 39 |
# Check that we are running under the correct shell. |
| 40 |
SHELL=${CONFIG_SHELL-/bin/sh} |
| 41 |
|
| 42 |
case X$ECHO in |
| 43 |
X*--fallback-echo) |
| 44 |
# Remove one level of quotation (which was required for Make). |
| 45 |
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
| 46 |
;; |
| 47 |
esac |
| 48 |
|
| 49 |
echo=${ECHO-echo} |
| 50 |
if test "X$1" = X--no-reexec; then |
| 51 |
# Discard the --no-reexec flag, and continue. |
| 52 |
shift |
| 53 |
elif test "X$1" = X--fallback-echo; then |
| 54 |
# Avoid inline document here, it may be left over |
| 55 |
: |
| 56 |
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then |
| 57 |
# Yippee, $echo works! |
| 58 |
: |
| 59 |
else |
| 60 |
# Restart under the correct shell. |
| 61 |
exec $SHELL "$0" --no-reexec ${1+"$@"} |
| 62 |
fi |
| 63 |
|
| 64 |
if test "X$1" = X--fallback-echo; then |
| 65 |
# used as fallback echo |
| 66 |
shift |
| 67 |
cat <<EOF |
| 68 |
|
| 69 |
EOF |
| 70 |
exit 0 |
| 71 |
fi |
| 72 |
|
| 73 |
# The HP-UX ksh and POSIX shell print the target directory to stdout |
| 74 |
# if CDPATH is set. |
| 75 |
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
| 76 |
|
| 77 |
if test -z "$ECHO"; then |
| 78 |
if test "X${echo_test_string+set}" != Xset; then |
| 79 |
# find a string as large as possible, as long as the shell can cope with it |
| 80 |
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
| 81 |
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
| 82 |
if (echo_test_string="`eval $cmd`") 2>/dev/null && |
| 83 |
echo_test_string="`eval $cmd`" && |
| 84 |
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
| 85 |
then |
| 86 |
break |
| 87 |
fi |
| 88 |
done |
| 89 |
fi |
| 90 |
|
| 91 |
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 92 |
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 93 |
test "X$echo_testing_string" = "X$echo_test_string"; then |
| 94 |
: |
| 95 |
else |
| 96 |
# The Solaris, AIX, and Digital Unix default echo programs unquote |
| 97 |
# backslashes. This makes it impossible to quote backslashes using |
| 98 |
# echo "$something" | sed 's/\\/\\\\/g' |
| 99 |
# |
| 100 |
# So, first we look for a working echo in the user's PATH. |
| 101 |
|
| 102 |
IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}" |
| 103 |
for dir in $PATH /usr/ucb; do |
| 104 |
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
| 105 |
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
| 106 |
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
| 107 |
test "X$echo_testing_string" = "X$echo_test_string"; then |
| 108 |
echo="$dir/echo" |
| 109 |
break |
| 110 |
fi |
| 111 |
done |
| 112 |
IFS="$save_ifs" |
| 113 |
|
| 114 |
if test "X$echo" = Xecho; then |
| 115 |
# We didn't find a better echo, so look for alternatives. |
| 116 |
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
| 117 |
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
| 118 |
test "X$echo_testing_string" = "X$echo_test_string"; then |
| 119 |
# This shell has a builtin print -r that does the trick. |
| 120 |
echo='print -r' |
| 121 |
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
| 122 |
test "X$CONFIG_SHELL" != X/bin/ksh; then |
| 123 |
# If we have ksh, try running configure again with it. |
| 124 |
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
| 125 |
export ORIGINAL_CONFIG_SHELL |
| 126 |
CONFIG_SHELL=/bin/ksh |
| 127 |
export CONFIG_SHELL |
| 128 |
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
| 129 |
else |
| 130 |
# Try using printf. |
| 131 |
echo='printf %s\n' |
| 132 |
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 133 |
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 134 |
test "X$echo_testing_string" = "X$echo_test_string"; then |
| 135 |
# Cool, printf works |
| 136 |
: |
| 137 |
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 138 |
test "X$echo_testing_string" = 'X\t' && |
| 139 |
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 140 |
test "X$echo_testing_string" = "X$echo_test_string"; then |
| 141 |
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
| 142 |
export CONFIG_SHELL |
| 143 |
SHELL="$CONFIG_SHELL" |
| 144 |
export SHELL |
| 145 |
echo="$CONFIG_SHELL $0 --fallback-echo" |
| 146 |
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 147 |
test "X$echo_testing_string" = 'X\t' && |
| 148 |
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 149 |
test "X$echo_testing_string" = "X$echo_test_string"; then |
| 150 |
echo="$CONFIG_SHELL $0 --fallback-echo" |
| 151 |
else |
| 152 |
# maybe with a smaller string... |
| 153 |
prev=: |
| 154 |
|
| 155 |
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
| 156 |
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
| 157 |
then |
| 158 |
break |
| 159 |
fi |
| 160 |
prev="$cmd" |
| 161 |
done |
| 162 |
|
| 163 |
if test "$prev" != 'sed 50q "$0"'; then |
| 164 |
echo_test_string=`eval $prev` |
| 165 |
export echo_test_string |
| 166 |
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
| 167 |
else |
| 168 |
# Oops. We lost completely, so just stick with echo. |
| 169 |
echo=echo |
| 170 |
fi |
| 171 |
fi |
| 172 |
fi |
| 173 |
fi |
| 174 |
fi |
| 175 |
fi |
| 176 |
|
| 177 |
# Copy echo and quote the copy suitably for passing to libtool from |
| 178 |
# the Makefile, instead of quoting the original, which is used later. |
| 179 |
ECHO=$echo |
| 180 |
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
| 181 |
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
| 182 |
fi |
| 183 |
|
| 184 |
|
| 185 |
ac_help="$ac_help |
| 186 |
--disable-libtool-lock avoid locking (might break parallel builds)" |
| 187 |
ac_help="$ac_help |
| 188 |
--with-pic try to use only PIC/non-PIC objects [default=use both]" |
| 189 |
|
| 190 |
# Initialize some variables set by options. |
| 191 |
# The variables have the same names as the options, with |
| 192 |
# dashes changed to underlines. |
| 193 |
build=NONE |
| 194 |
cache_file=./config.cache |
| 195 |
exec_prefix=NONE |
| 196 |
host=NONE |
| 197 |
no_create= |
| 198 |
nonopt=NONE |
| 199 |
no_recursion= |
| 200 |
prefix=NONE |
| 201 |
program_prefix=NONE |
| 202 |
program_suffix=NONE |
| 203 |
program_transform_name=s,x,x, |
| 204 |
silent= |
| 205 |
site= |
| 206 |
srcdir= |
| 207 |
target=NONE |
| 208 |
verbose= |
| 209 |
x_includes=NONE |
| 210 |
x_libraries=NONE |
| 211 |
bindir='${exec_prefix}/bin' |
| 212 |
sbindir='${exec_prefix}/sbin' |
| 213 |
libexecdir='${exec_prefix}/libexec' |
| 214 |
datadir='${prefix}/share' |
| 215 |
sysconfdir='${prefix}/etc' |
| 216 |
sharedstatedir='${prefix}/com' |
| 217 |
localstatedir='${prefix}/var' |
| 218 |
libdir='${exec_prefix}/lib' |
| 219 |
includedir='${prefix}/include' |
| 220 |
oldincludedir='/usr/include' |
| 221 |
infodir='${prefix}/info' |
| 222 |
mandir='${prefix}/man' |
| 223 |
|
| 224 |
# Initialize some other variables. |
| 225 |
subdirs= |
| 226 |
MFLAGS= MAKEFLAGS= |
| 227 |
SHELL=${CONFIG_SHELL-/bin/sh} |
| 228 |
# Maximum number of lines to put in a shell here document. |
| 229 |
ac_max_here_lines=12 |
| 230 |
|
| 231 |
ac_prev= |
| 232 |
for ac_option |
| 233 |
do |
| 234 |
|
| 235 |
# If the previous option needs an argument, assign it. |
| 236 |
if test -n "$ac_prev"; then |
| 237 |
eval "$ac_prev=\$ac_option" |
| 238 |
ac_prev= |
| 239 |
continue |
| 240 |
fi |
| 241 |
|
| 242 |
case "$ac_option" in |
| 243 |
-*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
| 244 |
*) ac_optarg= ;; |
| 245 |
esac |
| 246 |
|
| 247 |
# Accept the important Cygnus configure options, so we can diagnose typos. |
| 248 |
|
| 249 |
case "$ac_option" in |
| 250 |
|
| 251 |
-bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 252 |
ac_prev=bindir ;; |
| 253 |
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 254 |
bindir="$ac_optarg" ;; |
| 255 |
|
| 256 |
-build | --build | --buil | --bui | --bu) |
| 257 |
ac_prev=build ;; |
| 258 |
-build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 259 |
build="$ac_optarg" ;; |
| 260 |
|
| 261 |
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 262 |
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 263 |
ac_prev=cache_file ;; |
| 264 |
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 265 |
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 266 |
cache_file="$ac_optarg" ;; |
| 267 |
|
| 268 |
-datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 269 |
ac_prev=datadir ;; |
| 270 |
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 271 |
| --da=*) |
| 272 |
datadir="$ac_optarg" ;; |
| 273 |
|
| 274 |
-disable-* | --disable-*) |
| 275 |
ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
| 276 |
# Reject names that are not valid shell variable names. |
| 277 |
if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
| 278 |
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
| 279 |
fi |
| 280 |
ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 281 |
eval "enable_${ac_feature}=no" ;; |
| 282 |
|
| 283 |
-enable-* | --enable-*) |
| 284 |
ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
| 285 |
# Reject names that are not valid shell variable names. |
| 286 |
if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
| 287 |
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
| 288 |
fi |
| 289 |
ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 290 |
case "$ac_option" in |
| 291 |
*=*) ;; |
| 292 |
*) ac_optarg=yes ;; |
| 293 |
esac |
| 294 |
eval "enable_${ac_feature}='$ac_optarg'" ;; |
| 295 |
|
| 296 |
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 297 |
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 298 |
| --exec | --exe | --ex) |
| 299 |
ac_prev=exec_prefix ;; |
| 300 |
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 301 |
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 302 |
| --exec=* | --exe=* | --ex=*) |
| 303 |
exec_prefix="$ac_optarg" ;; |
| 304 |
|
| 305 |
-gas | --gas | --ga | --g) |
| 306 |
# Obsolete; use --with-gas. |
| 307 |
with_gas=yes ;; |
| 308 |
|
| 309 |
-help | --help | --hel | --he) |
| 310 |
# Omit some internal or obsolete options to make the list less imposing. |
| 311 |
# This message is too long to be a string in the A/UX 3.1 sh. |
| 312 |
cat << EOF |
| 313 |
Usage: configure [options] [host] |
| 314 |
Options: [defaults in brackets after descriptions] |
| 315 |
Configuration: |
| 316 |
--cache-file=FILE cache test results in FILE |
| 317 |
--help print this message |
| 318 |
--no-create do not create output files |
| 319 |
--quiet, --silent do not print \`checking...' messages |
| 320 |
--version print the version of autoconf that created configure |
| 321 |
Directory and file names: |
| 322 |
--prefix=PREFIX install architecture-independent files in PREFIX |
| 323 |
[$ac_default_prefix] |
| 324 |
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 325 |
[same as prefix] |
| 326 |
--bindir=DIR user executables in DIR [EPREFIX/bin] |
| 327 |
--sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
| 328 |
--libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
| 329 |
--datadir=DIR read-only architecture-independent data in DIR |
| 330 |
[PREFIX/share] |
| 331 |
--sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
| 332 |
--sharedstatedir=DIR modifiable architecture-independent data in DIR |
| 333 |
[PREFIX/com] |
| 334 |
--localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
| 335 |
--libdir=DIR object code libraries in DIR [EPREFIX/lib] |
| 336 |
--includedir=DIR C header files in DIR [PREFIX/include] |
| 337 |
--oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
| 338 |
--infodir=DIR info documentation in DIR [PREFIX/info] |
| 339 |
--mandir=DIR man documentation in DIR [PREFIX/man] |
| 340 |
--srcdir=DIR find the sources in DIR [configure dir or ..] |
| 341 |
--program-prefix=PREFIX prepend PREFIX to installed program names |
| 342 |
--program-suffix=SUFFIX append SUFFIX to installed program names |
| 343 |
--program-transform-name=PROGRAM |
| 344 |
run sed PROGRAM on installed program names |
| 345 |
EOF |
| 346 |
cat << EOF |
| 347 |
Host type: |
| 348 |
--build=BUILD configure for building on BUILD [BUILD=HOST] |
| 349 |
--host=HOST configure for HOST [guessed] |
| 350 |
--target=TARGET configure for TARGET [TARGET=HOST] |
| 351 |
Features and packages: |
| 352 |
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 353 |
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 354 |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 355 |
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 356 |
--x-includes=DIR X include files are in DIR |
| 357 |
--x-libraries=DIR X library files are in DIR |
| 358 |
EOF |
| 359 |
if test -n "$ac_help"; then |
| 360 |
echo "--enable and --with options recognized:$ac_help" |
| 361 |
fi |
| 362 |
exit 0 ;; |
| 363 |
|
| 364 |
-host | --host | --hos | --ho) |
| 365 |
ac_prev=host ;; |
| 366 |
-host=* | --host=* | --hos=* | --ho=*) |
| 367 |
host="$ac_optarg" ;; |
| 368 |
|
| 369 |
-includedir | --includedir | --includedi | --included | --include \ |
| 370 |
| --includ | --inclu | --incl | --inc) |
| 371 |
ac_prev=includedir ;; |
| 372 |
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 373 |
| --includ=* | --inclu=* | --incl=* | --inc=*) |
| 374 |
includedir="$ac_optarg" ;; |
| 375 |
|
| 376 |
-infodir | --infodir | --infodi | --infod | --info | --inf) |
| 377 |
ac_prev=infodir ;; |
| 378 |
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 379 |
infodir="$ac_optarg" ;; |
| 380 |
|
| 381 |
-libdir | --libdir | --libdi | --libd) |
| 382 |
ac_prev=libdir ;; |
| 383 |
-libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 384 |
libdir="$ac_optarg" ;; |
| 385 |
|
| 386 |
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 387 |
| --libexe | --libex | --libe) |
| 388 |
ac_prev=libexecdir ;; |
| 389 |
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 390 |
| --libexe=* | --libex=* | --libe=*) |
| 391 |
libexecdir="$ac_optarg" ;; |
| 392 |
|
| 393 |
-localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 394 |
| --localstate | --localstat | --localsta | --localst \ |
| 395 |
| --locals | --local | --loca | --loc | --lo) |
| 396 |
ac_prev=localstatedir ;; |
| 397 |
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 398 |
| --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 399 |
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 400 |
localstatedir="$ac_optarg" ;; |
| 401 |
|
| 402 |
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 403 |
ac_prev=mandir ;; |
| 404 |
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 405 |
mandir="$ac_optarg" ;; |
| 406 |
|
| 407 |
-nfp | --nfp | --nf) |
| 408 |
# Obsolete; use --without-fp. |
| 409 |
with_fp=no ;; |
| 410 |
|
| 411 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 412 |
| --no-cr | --no-c) |
| 413 |
no_create=yes ;; |
| 414 |
|
| 415 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 416 |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 417 |
no_recursion=yes ;; |
| 418 |
|
| 419 |
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 420 |
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 421 |
| --oldin | --oldi | --old | --ol | --o) |
| 422 |
ac_prev=oldincludedir ;; |
| 423 |
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 424 |
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 425 |
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 426 |
oldincludedir="$ac_optarg" ;; |
| 427 |
|
| 428 |
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 429 |
ac_prev=prefix ;; |
| 430 |
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 431 |
prefix="$ac_optarg" ;; |
| 432 |
|
| 433 |
-program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 434 |
| --program-pre | --program-pr | --program-p) |
| 435 |
ac_prev=program_prefix ;; |
| 436 |
-program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 437 |
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 438 |
program_prefix="$ac_optarg" ;; |
| 439 |
|
| 440 |
-program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 441 |
| --program-suf | --program-su | --program-s) |
| 442 |
ac_prev=program_suffix ;; |
| 443 |
-program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 444 |
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 445 |
program_suffix="$ac_optarg" ;; |
| 446 |
|
| 447 |
-program-transform-name | --program-transform-name \ |
| 448 |
| --program-transform-nam | --program-transform-na \ |
| 449 |
| --program-transform-n | --program-transform- \ |
| 450 |
| --program-transform | --program-transfor \ |
| 451 |
| --program-transfo | --program-transf \ |
| 452 |
| --program-trans | --program-tran \ |
| 453 |
| --progr-tra | --program-tr | --program-t) |
| 454 |
ac_prev=program_transform_name ;; |
| 455 |
-program-transform-name=* | --program-transform-name=* \ |
| 456 |
| --program-transform-nam=* | --program-transform-na=* \ |
| 457 |
| --program-transform-n=* | --program-transform-=* \ |
| 458 |
| --program-transform=* | --program-transfor=* \ |
| 459 |
| --program-transfo=* | --program-transf=* \ |
| 460 |
| --program-trans=* | --program-tran=* \ |
| 461 |
| --progr-tra=* | --program-tr=* | --program-t=*) |
| 462 |
program_transform_name="$ac_optarg" ;; |
| 463 |
|
| 464 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 465 |
| -silent | --silent | --silen | --sile | --sil) |
| 466 |
silent=yes ;; |
| 467 |
|
| 468 |
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 469 |
ac_prev=sbindir ;; |
| 470 |
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 471 |
| --sbi=* | --sb=*) |
| 472 |
sbindir="$ac_optarg" ;; |
| 473 |
|
| 474 |
-sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 475 |
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 476 |
| --sharedst | --shareds | --shared | --share | --shar \ |
| 477 |
| --sha | --sh) |
| 478 |
ac_prev=sharedstatedir ;; |
| 479 |
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 480 |
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 481 |
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 482 |
| --sha=* | --sh=*) |
| 483 |
sharedstatedir="$ac_optarg" ;; |
| 484 |
|
| 485 |
-site | --site | --sit) |
| 486 |
ac_prev=site ;; |
| 487 |
-site=* | --site=* | --sit=*) |
| 488 |
site="$ac_optarg" ;; |
| 489 |
|
| 490 |
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 491 |
ac_prev=srcdir ;; |
| 492 |
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 493 |
srcdir="$ac_optarg" ;; |
| 494 |
|
| 495 |
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 496 |
| --syscon | --sysco | --sysc | --sys | --sy) |
| 497 |
ac_prev=sysconfdir ;; |
| 498 |
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 499 |
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 500 |
sysconfdir="$ac_optarg" ;; |
| 501 |
|
| 502 |
-target | --target | --targe | --targ | --tar | --ta | --t) |
| 503 |
ac_prev=target ;; |
| 504 |
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 505 |
target="$ac_optarg" ;; |
| 506 |
|
| 507 |
-v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 508 |
verbose=yes ;; |
| 509 |
|
| 510 |
-version | --version | --versio | --versi | --vers) |
| 511 |
echo "configure generated by autoconf version 2.13" |
| 512 |
exit 0 ;; |
| 513 |
|
| 514 |
-with-* | --with-*) |
| 515 |
ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
| 516 |
# Reject names that are not valid shell variable names. |
| 517 |
if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
| 518 |
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
| 519 |
fi |
| 520 |
ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 521 |
case "$ac_option" in |
| 522 |
*=*) ;; |
| 523 |
*) ac_optarg=yes ;; |
| 524 |
esac |
| 525 |
eval "with_${ac_package}='$ac_optarg'" ;; |
| 526 |
|
| 527 |
-without-* | --without-*) |
| 528 |
ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
| 529 |
# Reject names that are not valid shell variable names. |
| 530 |
if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
| 531 |
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
| 532 |
fi |
| 533 |
ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 534 |
eval "with_${ac_package}=no" ;; |
| 535 |
|
| 536 |
--x) |
| 537 |
# Obsolete; use --with-x. |
| 538 |
with_x=yes ;; |
| 539 |
|
| 540 |
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 541 |
| --x-incl | --x-inc | --x-in | --x-i) |
| 542 |
ac_prev=x_includes ;; |
| 543 |
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 544 |
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 545 |
x_includes="$ac_optarg" ;; |
| 546 |
|
| 547 |
-x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 548 |
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 549 |
ac_prev=x_libraries ;; |
| 550 |
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 551 |
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 552 |
x_libraries="$ac_optarg" ;; |
| 553 |
|
| 554 |
-*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
| 555 |
;; |
| 556 |
|
| 557 |
*) |
| 558 |
if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
| 559 |
echo "configure: warning: $ac_option: invalid host type" 1>&2 |
| 560 |
fi |
| 561 |
if test "x$nonopt" != xNONE; then |
| 562 |
{ echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
| 563 |
fi |
| 564 |
nonopt="$ac_option" |
| 565 |
;; |
| 566 |
|
| 567 |
esac |
| 568 |
done |
| 569 |
|
| 570 |
if test -n "$ac_prev"; then |
| 571 |
{ echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
| 572 |
fi |
| 573 |
|
| 574 |
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
| 575 |
|
| 576 |
# File descriptor usage: |
| 577 |
# 0 standard input |
| 578 |
# 1 file creation |
| 579 |
# 2 errors and warnings |
| 580 |
# 3 some systems may open it to /dev/tty |
| 581 |
# 4 used on the Kubota Titan |
| 582 |
# 6 checking for... messages and results |
| 583 |
# 5 compiler messages saved in config.log |
| 584 |
if test "$silent" = yes; then |
| 585 |
exec 6>/dev/null |
| 586 |
else |
| 587 |
exec 6>&1 |
| 588 |
fi |
| 589 |
exec 5>./config.log |
| 590 |
|
| 591 |
echo "\ |
| 592 |
This file contains any messages produced by compilers while |
| 593 |
running configure, to aid debugging if configure makes a mistake. |
| 594 |
" 1>&5 |
| 595 |
|
| 596 |
# Strip out --no-create and --no-recursion so they do not pile up. |
| 597 |
# Also quote any args containing shell metacharacters. |
| 598 |
ac_configure_args= |
| 599 |
for ac_arg |
| 600 |
do |
| 601 |
case "$ac_arg" in |
| 602 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 603 |
| --no-cr | --no-c) ;; |
| 604 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 605 |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
| 606 |
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
| 607 |
ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 608 |
*) ac_configure_args="$ac_configure_args $ac_arg" ;; |
| 609 |
esac |
| 610 |
done |
| 611 |
|
| 612 |
# NLS nuisances. |
| 613 |
# Only set these to C if already set. These must not be set unconditionally |
| 614 |
# because not all systems understand e.g. LANG=C (notably SCO). |
| 615 |
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
| 616 |
# Non-C LC_CTYPE values break the ctype check. |
| 617 |
if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
| 618 |
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
| 619 |
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
| 620 |
if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
| 621 |
|
| 622 |
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 623 |
rm -rf conftest* confdefs.h |
| 624 |
# AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 625 |
echo > confdefs.h |
| 626 |
|
| 627 |
# A filename unique to this package, relative to the directory that |
| 628 |
# configure is in, which we can look for to find out if srcdir is correct. |
| 629 |
ac_unique_file=Makefile.in |
| 630 |
|
| 631 |
# Find the source files, if location was not specified. |
| 632 |
if test -z "$srcdir"; then |
| 633 |
ac_srcdir_defaulted=yes |
| 634 |
# Try the directory containing this script, then its parent. |
| 635 |
ac_prog=$0 |
| 636 |
ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
| 637 |
test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
| 638 |
srcdir=$ac_confdir |
| 639 |
if test ! -r $srcdir/$ac_unique_file; then |
| 640 |
srcdir=.. |
| 641 |
fi |
| 642 |
else |
| 643 |
ac_srcdir_defaulted=no |
| 644 |
fi |
| 645 |
if test ! -r $srcdir/$ac_unique_file; then |
| 646 |
if test "$ac_srcdir_defaulted" = yes; then |
| 647 |
{ echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
| 648 |
else |
| 649 |
{ echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
| 650 |
fi |
| 651 |
fi |
| 652 |
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
| 653 |
|
| 654 |
# Prefer explicitly selected file to automatically selected ones. |
| 655 |
if test -z "$CONFIG_SITE"; then |
| 656 |
if test "x$prefix" != xNONE; then |
| 657 |
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 658 |
else |
| 659 |
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 660 |
fi |
| 661 |
fi |
| 662 |
for ac_site_file in $CONFIG_SITE; do |
| 663 |
if test -r "$ac_site_file"; then |
| 664 |
echo "loading site script $ac_site_file" |
| 665 |
. "$ac_site_file" |
| 666 |
fi |
| 667 |
done |
| 668 |
|
| 669 |
if test -r "$cache_file"; then |
| 670 |
echo "loading cache $cache_file" |
| 671 |
. $cache_file |
| 672 |
else |
| 673 |
echo "creating cache $cache_file" |
| 674 |
> $cache_file |
| 675 |
fi |
| 676 |
|
| 677 |
ac_ext=c |
| 678 |
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 679 |
ac_cpp='$CPP $CPPFLAGS' |
| 680 |
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 681 |
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 682 |
cross_compiling=$ac_cv_prog_cc_cross |
| 683 |
|
| 684 |
ac_exeext= |
| 685 |
ac_objext=o |
| 686 |
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
| 687 |
# Stardent Vistra SVR4 grep lacks -e, says [email protected]. |
| 688 |
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
| 689 |
ac_n= ac_c=' |
| 690 |
' ac_t=' ' |
| 691 |
else |
| 692 |
ac_n=-n ac_c= ac_t= |
| 693 |
fi |
| 694 |
else |
| 695 |
ac_n= ac_c='\c' ac_t= |
| 696 |
fi |
| 697 |
|
| 698 |
|
| 699 |
|
| 700 |
|
| 701 |
|
| 702 |
abs_srcdir=`(cd $srcdir && pwd)` |
| 703 |
|
| 704 |
php_always_shared=yes |
| 705 |
|
| 706 |
# Extract the first word of "gcc", so it can be a program name with args. |
| 707 |
set dummy gcc; ac_word=$2 |
| 708 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 709 |
echo "configure:710: checking for $ac_word" >&5 |
| 710 |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 711 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 712 |
else |
| 713 |
if test -n "$CC"; then |
| 714 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 715 |
else |
| 716 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 717 |
ac_dummy="$PATH" |
| 718 |
for ac_dir in $ac_dummy; do |
| 719 |
test -z "$ac_dir" && ac_dir=. |
| 720 |
if test -f $ac_dir/$ac_word; then |
| 721 |
ac_cv_prog_CC="gcc" |
| 722 |
break |
| 723 |
fi |
| 724 |
done |
| 725 |
IFS="$ac_save_ifs" |
| 726 |
fi |
| 727 |
fi |
| 728 |
CC="$ac_cv_prog_CC" |
| 729 |
if test -n "$CC"; then |
| 730 |
echo "$ac_t""$CC" 1>&6 |
| 731 |
else |
| 732 |
echo "$ac_t""no" 1>&6 |
| 733 |
fi |
| 734 |
|
| 735 |
if test -z "$CC"; then |
| 736 |
# Extract the first word of "cc", so it can be a program name with args. |
| 737 |
set dummy cc; ac_word=$2 |
| 738 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 739 |
echo "configure:740: checking for $ac_word" >&5 |
| 740 |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 741 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 742 |
else |
| 743 |
if test -n "$CC"; then |
| 744 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 745 |
else |
| 746 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 747 |
ac_prog_rejected=no |
| 748 |
ac_dummy="$PATH" |
| 749 |
for ac_dir in $ac_dummy; do |
| 750 |
test -z "$ac_dir" && ac_dir=. |
| 751 |
if test -f $ac_dir/$ac_word; then |
| 752 |
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
| 753 |
ac_prog_rejected=yes |
| 754 |
continue |
| 755 |
fi |
| 756 |
ac_cv_prog_CC="cc" |
| 757 |
break |
| 758 |
fi |
| 759 |
done |
| 760 |
IFS="$ac_save_ifs" |
| 761 |
if test $ac_prog_rejected = yes; then |
| 762 |
# We found a bogon in the path, so make sure we never use it. |
| 763 |
set dummy $ac_cv_prog_CC |
| 764 |
shift |
| 765 |
if test $# -gt 0; then |
| 766 |
# We chose a different compiler from the bogus one. |
| 767 |
# However, it has the same basename, so the bogon will be chosen |
| 768 |
# first if we set CC to just the basename; use the full file name. |
| 769 |
shift |
| 770 |
set dummy "$ac_dir/$ac_word" "$@" |
| 771 |
shift |
| 772 |
ac_cv_prog_CC="$@" |
| 773 |
fi |
| 774 |
fi |
| 775 |
fi |
| 776 |
fi |
| 777 |
CC="$ac_cv_prog_CC" |
| 778 |
if test -n "$CC"; then |
| 779 |
echo "$ac_t""$CC" 1>&6 |
| 780 |
else |
| 781 |
echo "$ac_t""no" 1>&6 |
| 782 |
fi |
| 783 |
|
| 784 |
if test -z "$CC"; then |
| 785 |
case "`uname -s`" in |
| 786 |
*win32* | *WIN32*) |
| 787 |
# Extract the first word of "cl", so it can be a program name with args. |
| 788 |
set dummy cl; ac_word=$2 |
| 789 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 790 |
echo "configure:791: checking for $ac_word" >&5 |
| 791 |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 792 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 793 |
else |
| 794 |
if test -n "$CC"; then |
| 795 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 796 |
else |
| 797 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 798 |
ac_dummy="$PATH" |
| 799 |
for ac_dir in $ac_dummy; do |
| 800 |
test -z "$ac_dir" && ac_dir=. |
| 801 |
if test -f $ac_dir/$ac_word; then |
| 802 |
ac_cv_prog_CC="cl" |
| 803 |
break |
| 804 |
fi |
| 805 |
done |
| 806 |
IFS="$ac_save_ifs" |
| 807 |
fi |
| 808 |
fi |
| 809 |
CC="$ac_cv_prog_CC" |
| 810 |
if test -n "$CC"; then |
| 811 |
echo "$ac_t""$CC" 1>&6 |
| 812 |
else |
| 813 |
echo "$ac_t""no" 1>&6 |
| 814 |
fi |
| 815 |
;; |
| 816 |
esac |
| 817 |
fi |
| 818 |
test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
| 819 |
fi |
| 820 |
|
| 821 |
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
| 822 |
echo "configure:823: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
| 823 |
|
| 824 |
ac_ext=c |
| 825 |
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 826 |
ac_cpp='$CPP $CPPFLAGS' |
| 827 |
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 828 |
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 829 |
cross_compiling=$ac_cv_prog_cc_cross |
| 830 |
|
| 831 |
cat > conftest.$ac_ext << EOF |
| 832 |
|
| 833 |
#line 834 "configure" |
| 834 |
#include "confdefs.h" |
| 835 |
|
| 836 |
main(){return(0);} |
| 837 |
EOF |
| 838 |
if { (eval echo configure:839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 839 |
ac_cv_prog_cc_works=yes |
| 840 |
# If we can't run a trivial program, we are probably using a cross compiler. |
| 841 |
if (./conftest; exit) 2>/dev/null; then |
| 842 |
ac_cv_prog_cc_cross=no |
| 843 |
else |
| 844 |
ac_cv_prog_cc_cross=yes |
| 845 |
fi |
| 846 |
else |
| 847 |
echo "configure: failed program was:" >&5 |
| 848 |
cat conftest.$ac_ext >&5 |
| 849 |
ac_cv_prog_cc_works=no |
| 850 |
fi |
| 851 |
rm -fr conftest* |
| 852 |
ac_ext=c |
| 853 |
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 854 |
ac_cpp='$CPP $CPPFLAGS' |
| 855 |
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 856 |
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 857 |
cross_compiling=$ac_cv_prog_cc_cross |
| 858 |
|
| 859 |
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
| 860 |
if test $ac_cv_prog_cc_works = no; then |
| 861 |
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
| 862 |
fi |
| 863 |
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
| 864 |
echo "configure:865: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
| 865 |
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
| 866 |
cross_compiling=$ac_cv_prog_cc_cross |
| 867 |
|
| 868 |
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
| 869 |
echo "configure:870: checking whether we are using GNU C" >&5 |
| 870 |
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
| 871 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 872 |
else |
| 873 |
cat > conftest.c <<EOF |
| 874 |
#ifdef __GNUC__ |
| 875 |
yes; |
| 876 |
#endif |
| 877 |
EOF |
| 878 |
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
| 879 |
ac_cv_prog_gcc=yes |
| 880 |
else |
| 881 |
ac_cv_prog_gcc=no |
| 882 |
fi |
| 883 |
fi |
| 884 |
|
| 885 |
echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
| 886 |
|
| 887 |
if test $ac_cv_prog_gcc = yes; then |
| 888 |
GCC=yes |
| 889 |
else |
| 890 |
GCC= |
| 891 |
fi |
| 892 |
|
| 893 |
ac_test_CFLAGS="${CFLAGS+set}" |
| 894 |
ac_save_CFLAGS="$CFLAGS" |
| 895 |
CFLAGS= |
| 896 |
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
| 897 |
echo "configure:898: checking whether ${CC-cc} accepts -g" >&5 |
| 898 |
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
| 899 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 900 |
else |
| 901 |
echo 'void f(){}' > conftest.c |
| 902 |
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
| 903 |
ac_cv_prog_cc_g=yes |
| 904 |
else |
| 905 |
ac_cv_prog_cc_g=no |
| 906 |
fi |
| 907 |
rm -f conftest* |
| 908 |
|
| 909 |
fi |
| 910 |
|
| 911 |
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
| 912 |
if test "$ac_test_CFLAGS" = set; then |
| 913 |
CFLAGS="$ac_save_CFLAGS" |
| 914 |
elif test $ac_cv_prog_cc_g = yes; then |
| 915 |
if test "$GCC" = yes; then |
| 916 |
CFLAGS="-g -O2" |
| 917 |
else |
| 918 |
CFLAGS="-g" |
| 919 |
fi |
| 920 |
else |
| 921 |
if test "$GCC" = yes; then |
| 922 |
CFLAGS="-O2" |
| 923 |
else |
| 924 |
CFLAGS= |
| 925 |
fi |
| 926 |
fi |
| 927 |
|
| 928 |
if test "x$CC" != xcc; then |
| 929 |
echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6 |
| 930 |
echo "configure:931: checking whether $CC and cc understand -c and -o together" >&5 |
| 931 |
else |
| 932 |
echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6 |
| 933 |
echo "configure:934: checking whether cc understands -c and -o together" >&5 |
| 934 |
fi |
| 935 |
set dummy $CC; ac_cc="`echo $2 | |
| 936 |
sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`" |
| 937 |
if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then |
| 938 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 939 |
else |
| 940 |
echo 'foo(){}' > conftest.c |
| 941 |
# Make sure it works both with $CC and with simple cc. |
| 942 |
# We do the test twice because some compilers refuse to overwrite an |
| 943 |
# existing .o file with -o, though they will create one. |
| 944 |
ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5' |
| 945 |
if { (eval echo configure:946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } && |
| 946 |
test -f conftest.o && { (eval echo configure:947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; |
| 947 |
then |
| 948 |
eval ac_cv_prog_cc_${ac_cc}_c_o=yes |
| 949 |
if test "x$CC" != xcc; then |
| 950 |
# Test first that cc exists at all. |
| 951 |
if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then |
| 952 |
ac_try='cc -c conftest.c -o conftest.o 1>&5' |
| 953 |
if { (eval echo configure:954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } && |
| 954 |
test -f conftest.o && { (eval echo configure:955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; |
| 955 |
then |
| 956 |
# cc works too. |
| 957 |
: |
| 958 |
else |
| 959 |
# cc exists but doesn't like -o. |
| 960 |
eval ac_cv_prog_cc_${ac_cc}_c_o=no |
| 961 |
fi |
| 962 |
fi |
| 963 |
fi |
| 964 |
else |
| 965 |
eval ac_cv_prog_cc_${ac_cc}_c_o=no |
| 966 |
fi |
| 967 |
rm -f conftest* |
| 968 |
|
| 969 |
fi |
| 970 |
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then |
| 971 |
echo "$ac_t""yes" 1>&6 |
| 972 |
else |
| 973 |
echo "$ac_t""no" 1>&6 |
| 974 |
cat >> confdefs.h <<\EOF |
| 975 |
#define NO_MINUS_C_MINUS_O 1 |
| 976 |
EOF |
| 977 |
|
| 978 |
fi |
| 979 |
|
| 980 |
|
| 981 |
|
| 982 |
# Check whether --with-php-config or --without-php-config was given. |
| 983 |
if test "${with_php_config+set}" = set; then |
| 984 |
withval="$with_php_config" |
| 985 |
|
| 986 |
PHP_CONFIG=$withval |
| 987 |
|
| 988 |
else |
| 989 |
|
| 990 |
PHP_CONFIG=php-config |
| 991 |
|
| 992 |
fi |
| 993 |
|
| 994 |
|
| 995 |
prefix=`$PHP_CONFIG --prefix 2>/dev/null` |
| 996 |
INCLUDES=`$PHP_CONFIG --includes 2>/dev/null` |
| 997 |
EXTENSION_DIR=`$PHP_CONFIG --extension-dir` |
| 998 |
|
| 999 |
if test -z "$prefix"; then |
| 1000 |
{ echo "configure: error: Cannot find php-config. Please use --with-php-config=PATH" 1>&2; exit 1; } |
| 1001 |
fi |
| 1002 |
echo $ac_n "checking for PHP prefix""... $ac_c" 1>&6 |
| 1003 |
echo "configure:1004: checking for PHP prefix" >&5 |
| 1004 |
echo "$ac_t""$prefix" 1>&6 |
| 1005 |
echo $ac_n "checking for PHP includes""... $ac_c" 1>&6 |
| 1006 |
echo "configure:1007: checking for PHP includes" >&5 |
| 1007 |
echo "$ac_t""$INCLUDES" 1>&6 |
| 1008 |
echo $ac_n "checking for PHP extension directory""... $ac_c" 1>&6 |
| 1009 |
echo "configure:1010: checking for PHP extension directory" >&5 |
| 1010 |
echo "$ac_t""$EXTENSION_DIR" 1>&6 |
| 1011 |
|
| 1012 |
|
| 1013 |
|
| 1014 |
|
| 1015 |
|
| 1016 |
|
| 1017 |
|
| 1018 |
echo $ac_n "checking for HtDig support""... $ac_c" 1>&6 |
| 1019 |
echo "configure:1020: checking for HtDig support" >&5 |
| 1020 |
# Check whether --with-bz2 or --without-bz2 was given. |
| 1021 |
if test "${with_bz2+set}" = set; then |
| 1022 |
withval="$with_bz2" |
| 1023 |
PHP_BZ2=$withval |
| 1024 |
else |
| 1025 |
PHP_BZ2=no |
| 1026 |
fi |
| 1027 |
|
| 1028 |
|
| 1029 |
case $PHP_BZ2 in |
| 1030 |
shared,*) |
| 1031 |
ext_output="yes, shared" |
| 1032 |
ext_shared=yes |
| 1033 |
PHP_BZ2=`echo "$PHP_BZ2"|sed 's/^shared,//'` |
| 1034 |
;; |
| 1035 |
shared) |
| 1036 |
ext_output="yes, shared" |
| 1037 |
ext_shared=yes |
| 1038 |
PHP_BZ2=yes |
| 1039 |
;; |
| 1040 |
no) |
| 1041 |
ext_output=no |
| 1042 |
ext_shared=no |
| 1043 |
;; |
| 1044 |
*) |
| 1045 |
ext_output=yes |
| 1046 |
ext_shared=no |
| 1047 |
;; |
| 1048 |
esac |
| 1049 |
|
| 1050 |
if test "$php_always_shared" = "yes"; then |
| 1051 |
ext_output="yes, shared" |
| 1052 |
ext_shared=yes |
| 1053 |
test "$PHP_BZ2" = "no" && PHP_BZ2=yes |
| 1054 |
fi |
| 1055 |
|
| 1056 |
echo "$ac_t""$ext_output" 1>&6 |
| 1057 |
|
| 1058 |
|
| 1059 |
|
| 1060 |
|
| 1061 |
if test "$PHP_HTDIG" != "no"; then |
| 1062 |
if test -r $PHP_HTDIG/include/libhtdig_api.h; then |
| 1063 |
HTDIG_DIR=$PHP_HTDIG |
| 1064 |
else |
| 1065 |
echo $ac_n "checking for HtDig in default path""... $ac_c" 1>&6 |
| 1066 |
echo "configure:1067: checking for HtDig in default path" >&5 |
| 1067 |
for i in /usr/local /usr; do |
| 1068 |
if test -r $i/include/libhtdig_api.h; then |
| 1069 |
HTDIG_DIR=$i |
| 1070 |
echo "$ac_t""found in $i" 1>&6 |
| 1071 |
fi |
| 1072 |
done |
| 1073 |
fi |
| 1074 |
|
| 1075 |
if test -z "$HTDIG_DIR"; then |
| 1076 |
echo "$ac_t""not found" 1>&6 |
| 1077 |
{ echo "configure: error: Please reinstall the HtDig distribution" 1>&2; exit 1; } |
| 1078 |
fi |
| 1079 |
|
| 1080 |
|
| 1081 |
if test "$HTDIG_DIR/include" != "/usr/include"; then |
| 1082 |
|
| 1083 |
if test -z "$HTDIG_DIR/include" || echo "$HTDIG_DIR/include" | grep '^/' >/dev/null ; then |
| 1084 |
ai_p=$HTDIG_DIR/include |
| 1085 |
else |
| 1086 |
|
| 1087 |
ep_dir="`echo $HTDIG_DIR/include|sed 's%/*[^/][^/]*/*$%%'`" |
| 1088 |
|
| 1089 |
ep_realdir="`(cd \"$ep_dir\" && pwd)`" |
| 1090 |
ai_p="$ep_realdir/`basename \"$HTDIG_DIR/include\"`" |
| 1091 |
fi |
| 1092 |
|
| 1093 |
|
| 1094 |
|
| 1095 |
unique=`echo $ai_p|sed 's/[^a-zA-Z0-9]/_/g'` |
| 1096 |
|
| 1097 |
cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" |
| 1098 |
if test -n "$unique" && test "`eval $cmd`" = "" ; then |
| 1099 |
eval "INCLUDEPATH$unique=set" |
| 1100 |
|
| 1101 |
if test ""; then |
| 1102 |
INCLUDES="-I$ai_p $INCLUDES" |
| 1103 |
else |
| 1104 |
INCLUDES="$INCLUDES -I$ai_p" |
| 1105 |
fi |
| 1106 |
|
| 1107 |
fi |
| 1108 |
|
| 1109 |
fi |
| 1110 |
|
| 1111 |
|
| 1112 |
|
| 1113 |
PHP_VAR_SUBST="$PHP_VAR_SUBST HTDIG_SHARED_LIBADD" |
| 1114 |
|
| 1115 |
|
| 1116 |
|
| 1117 |
if test "$ext_shared" = "yes"; then |
| 1118 |
HTDIG_SHARED_LIBADD="-lbz2 $HTDIG_SHARED_LIBADD" |
| 1119 |
if test -n "$HTDIG_DIR/lib"; then |
| 1120 |
|
| 1121 |
if test "$HTDIG_DIR/lib" != "/usr/lib"; then |
| 1122 |
|
| 1123 |
if test -z "$HTDIG_DIR/lib" || echo "$HTDIG_DIR/lib" | grep '^/' >/dev/null ; then |
| 1124 |
ai_p=$HTDIG_DIR/lib |
| 1125 |
else |
| 1126 |
|
| 1127 |
ep_dir="`echo $HTDIG_DIR/lib|sed 's%/*[^/][^/]*/*$%%'`" |
| 1128 |
|
| 1129 |
ep_realdir="`(cd \"$ep_dir\" && pwd)`" |
| 1130 |
ai_p="$ep_realdir/`basename \"$HTDIG_DIR/lib\"`" |
| 1131 |
fi |
| 1132 |
|
| 1133 |
if test "$ext_shared" = "yes" && test -n "HTDIG_SHARED_LIBADD"; then |
| 1134 |
HTDIG_SHARED_LIBADD="-R$HTDIG_DIR/lib -L$HTDIG_DIR/lib $HTDIG_SHARED_LIBADD" |
| 1135 |
else |
| 1136 |
|
| 1137 |
|
| 1138 |
unique=`echo $ai_p|sed 's/[^a-zA-Z0-9]/_/g'` |
| 1139 |
|
| 1140 |
cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" |
| 1141 |
if test -n "$unique" && test "`eval $cmd`" = "" ; then |
| 1142 |
eval "LIBPATH$unique=set" |
| 1143 |
|
| 1144 |
test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" |
| 1145 |
LDFLAGS="$LDFLAGS -L$ai_p" |
| 1146 |
PHP_RPATHS="$PHP_RPATHS $ai_p" |
| 1147 |
|
| 1148 |
fi |
| 1149 |
|
| 1150 |
fi |
| 1151 |
fi |
| 1152 |
|
| 1153 |
fi |
| 1154 |
else |
| 1155 |
|
| 1156 |
|
| 1157 |
if test -n "$HTDIG_DIR/lib"; then |
| 1158 |
|
| 1159 |
if test "$HTDIG_DIR/lib" != "/usr/lib"; then |
| 1160 |
|
| 1161 |
if test -z "$HTDIG_DIR/lib" || echo "$HTDIG_DIR/lib" | grep '^/' >/dev/null ; then |
| 1162 |
ai_p=$HTDIG_DIR/lib |
| 1163 |
else |
| 1164 |
|
| 1165 |
ep_dir="`echo $HTDIG_DIR/lib|sed 's%/*[^/][^/]*/*$%%'`" |
| 1166 |
|
| 1167 |
ep_realdir="`(cd \"$ep_dir\" && pwd)`" |
| 1168 |
ai_p="$ep_realdir/`basename \"$HTDIG_DIR/lib\"`" |
| 1169 |
fi |
| 1170 |
|
| 1171 |
if test "$ext_shared" = "yes" && test -n ""; then |
| 1172 |
="-R$HTDIG_DIR/lib -L$HTDIG_DIR/lib $" |
| 1173 |
else |
| 1174 |
|
| 1175 |
|
| 1176 |
unique=`echo $ai_p|sed 's/[^a-zA-Z0-9]/_/g'` |
| 1177 |
|
| 1178 |
cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" |
| 1179 |
if test -n "$unique" && test "`eval $cmd`" = "" ; then |
| 1180 |
eval "LIBPATH$unique=set" |
| 1181 |
|
| 1182 |
test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" |
| 1183 |
LDFLAGS="$LDFLAGS -L$ai_p" |
| 1184 |
PHP_RPATHS="$PHP_RPATHS $ai_p" |
| 1185 |
|
| 1186 |
fi |
| 1187 |
|
| 1188 |
fi |
| 1189 |
fi |
| 1190 |
|
| 1191 |
fi |
| 1192 |
|
| 1193 |
case bz2 in |
| 1194 |
c|c_r|pthread*) ;; |
| 1195 |
*) |
| 1196 |
|
| 1197 |
|
| 1198 |
LIBS="-lbz2 $LIBS" |
| 1199 |
|
| 1200 |
|
| 1201 |
;; |
| 1202 |
esac |
| 1203 |
|
| 1204 |
|
| 1205 |
|
| 1206 |
fi |
| 1207 |
|
| 1208 |
|
| 1209 |
#AC_CHECK_LIB(bz2, BZ2_bzerror, [AC_DEFINE(HAVE_BZ2,1,[ ])], [AC_MSG_ERROR(bz2 module requires libbz2 >= 1.0.0)],) |
| 1210 |
|
| 1211 |
|
| 1212 |
EXT_SUBDIRS="$EXT_SUBDIRS bz2" |
| 1213 |
|
| 1214 |
if test -d "$abs_srcdir/ext/bz2"; then |
| 1215 |
ext_builddir=ext/bz2 |
| 1216 |
ext_srcdir=$abs_srcdir/ext/bz2 |
| 1217 |
else |
| 1218 |
ext_builddir=. |
| 1219 |
ext_srcdir=$abs_srcdir |
| 1220 |
fi |
| 1221 |
|
| 1222 |
if test "$ext_shared" != "shared" && test "$ext_shared" != "yes"; then |
| 1223 |
|
| 1224 |
lib_makefile="$ext_builddir/libs.mk" |
| 1225 |
lib_target="" |
| 1226 |
|
| 1227 |
$php_shtool mkdir -p $ext_builddir |
| 1228 |
if test "$BSD_MAKEFILE" = "yes"; then |
| 1229 |
lib_include_conf=".include \"\$(top_builddir)/config_vars.mk\"" |
| 1230 |
else |
| 1231 |
lib_include_conf="include \$(top_builddir)/config_vars.mk" |
| 1232 |
fi |
| 1233 |
cat >$lib_makefile<<EOF |
| 1234 |
$lib_include_conf |
| 1235 |
LTLIBRARY_OBJECTS = \$(LTLIBRARY_SOURCES:.c=.lo) \$(LTLIBRARY_OBJECTS_X) |
| 1236 |
LTLIBRARY_SHARED_OBJECTS = \$(LTLIBRARY_OBJECTS:.lo=.slo) |
| 1237 |
EOF |
| 1238 |
|
| 1239 |
if test "" = "shared" || test "" = "yes"; then |
| 1240 |
lib_build_shared=yes |
| 1241 |
if test -n ""; then |
| 1242 |
|
| 1243 |
lib_target="\$(LTLIBRARY_NAME)" |
| 1244 |
cat >>$lib_makefile<<EOF |
| 1245 |
\$(LTLIBRARY_NAME): \$(LTLIBRARY_SHARED_OBJECTS) \$(LTLIBRARY_DEPENDENCIES) |
| 1246 |
\$(SHARED_LIBTOOL) --mode=link \$(COMPILE) \$(LDFLAGS) -o \$@ \$(LTLIBRARY_LDFLAGS) \$(LTLIBRARY_OBJECTS) \$(LTLIBRARY_SHARED_LIBADD) |
| 1247 |
|
| 1248 |
EOF |
| 1249 |
|
| 1250 |
else |
| 1251 |
|
| 1252 |
lib_target="\$(LTLIBRARY_SHARED_NAME)" |
| 1253 |
cat >>$lib_makefile<<EOF |
| 1254 |
\$(LTLIBRARY_SHARED_NAME): \$(LTLIBRARY_SHARED_OBJECTS) \$(LTLIBRARY_DEPENDENCIES) |
| 1255 |
\$(SHARED_LIBTOOL) --mode=link \$(COMPILE) \$(LDFLAGS) -o \$@ -avoid-version -module -rpath \$(phplibdir) \$(LTLIBRARY_LDFLAGS) \$(LTLIBRARY_OBJECTS) \$(LTLIBRARY_SHARED_LIBADD) |
| 1256 |
\$(SHARED_LIBTOOL) --mode=install cp \$@ \$(phplibdir) |
| 1257 |
|
| 1258 |
EOF |
| 1259 |
|
| 1260 |
fi |
| 1261 |
else |
| 1262 |
|
| 1263 |
lib_target="\$(LTLIBRARY_NAME)" |
| 1264 |
cat >>$lib_makefile<<EOF |
| 1265 |
\$(LTLIBRARY_NAME): \$(LTLIBRARY_OBJECTS) \$(LTLIBRARY_DEPENDENCIES) |
| 1266 |
\$(LINK) \$(LTLIBRARY_LDFLAGS) \$(LTLIBRARY_OBJECTS) \$(LTLIBRARY_LIBADD) |
| 1267 |
|
| 1268 |
EOF |
| 1269 |
|
| 1270 |
fi |
| 1271 |
|
| 1272 |
if test -n "$lib_target"; then |
| 1273 |
cat >>$lib_makefile<<EOF |
| 1274 |
targets = $lib_target |
| 1275 |
EOF |
| 1276 |
fi |
| 1277 |
|
| 1278 |
EXT_LTLIBS="$EXT_LTLIBS $ext_builddir/libbz2.la" |
| 1279 |
EXT_STATIC="$EXT_STATIC bz2" |
| 1280 |
else |
| 1281 |
|
| 1282 |
lib_makefile="$ext_builddir/libs.mk" |
| 1283 |
lib_target="" |
| 1284 |
|
| 1285 |
$php_shtool mkdir -p $ext_builddir |
| 1286 |
if test "$BSD_MAKEFILE" = "yes"; then |
| 1287 |
lib_include_conf=".include \"\$(top_builddir)/config_vars.mk\"" |
| 1288 |
else |
| 1289 |
lib_include_conf="include \$(top_builddir)/config_vars.mk" |
| 1290 |
fi |
| 1291 |
cat >$lib_makefile<<EOF |
| 1292 |
$lib_include_conf |
| 1293 |
LTLIBRARY_OBJECTS = \$(LTLIBRARY_SOURCES:.c=.lo) \$(LTLIBRARY_OBJECTS_X) |
| 1294 |
LTLIBRARY_SHARED_OBJECTS = \$(LTLIBRARY_OBJECTS:.lo=.slo) |
| 1295 |
EOF |
| 1296 |
|
| 1297 |
if test "yes" = "shared" || test "yes" = "yes"; then |
| 1298 |
lib_build_shared=yes |
| 1299 |
if test -n ""; then |
| 1300 |
|
| 1301 |
lib_target="\$(LTLIBRARY_NAME)" |
| 1302 |
cat >>$lib_makefile<<EOF |
| 1303 |
\$(LTLIBRARY_NAME): \$(LTLIBRARY_SHARED_OBJECTS) \$(LTLIBRARY_DEPENDENCIES) |
| 1304 |
\$(SHARED_LIBTOOL) --mode=link \$(COMPILE) \$(LDFLAGS) -o \$@ \$(LTLIBRARY_LDFLAGS) \$(LTLIBRARY_OBJECTS) \$(LTLIBRARY_SHARED_LIBADD) |
| 1305 |
|
| 1306 |
EOF |
| 1307 |
|
| 1308 |
else |
| 1309 |
|
| 1310 |
lib_target="\$(LTLIBRARY_SHARED_NAME)" |
| 1311 |
cat >>$lib_makefile<<EOF |
| 1312 |
\$(LTLIBRARY_SHARED_NAME): \$(LTLIBRARY_SHARED_OBJECTS) \$(LTLIBRARY_DEPENDENCIES) |
| 1313 |
\$(SHARED_LIBTOOL) --mode=link \$(COMPILE) \$(LDFLAGS) -o \$@ -avoid-version -module -rpath \$(phplibdir) \$(LTLIBRARY_LDFLAGS) \$(LTLIBRARY_OBJECTS) \$(LTLIBRARY_SHARED_LIBADD) |
| 1314 |
\$(SHARED_LIBTOOL) --mode=install cp \$@ \$(phplibdir) |
| 1315 |
|
| 1316 |
EOF |
| 1317 |
|
| 1318 |
fi |
| 1319 |
else |
| 1320 |
|
| 1321 |
lib_target="\$(LTLIBRARY_NAME)" |
| 1322 |
cat >>$lib_makefile<<EOF |
| 1323 |
\$(LTLIBRARY_NAME): \$(LTLIBRARY_OBJECTS) \$(LTLIBRARY_DEPENDENCIES) |
| 1324 |
\$(LINK) \$(LTLIBRARY_LDFLAGS) \$(LTLIBRARY_OBJECTS) \$(LTLIBRARY_LIBADD) |
| 1325 |
|
| 1326 |
EOF |
| 1327 |
|
| 1328 |
fi |
| 1329 |
|
| 1330 |
if test -n "$lib_target"; then |
| 1331 |
cat >>$lib_makefile<<EOF |
| 1332 |
targets = $lib_target |
| 1333 |
EOF |
| 1334 |
fi |
| 1335 |
|
| 1336 |
cat >> confdefs.h <<EOF |
| 1337 |
#define COMPILE_DL_HTDIG 1 |
| 1338 |
#define COMPILE_DL_BZ2 1 |
| 1339 |
EOF |
| 1340 |
|
| 1341 |
fi |
| 1342 |
|
| 1343 |
|
| 1344 |
PHP_FAST_OUTPUT_FILES="$PHP_FAST_OUTPUT_FILES $ext_builddir/Makefile" |
| 1345 |
|
| 1346 |
|
| 1347 |
fi |
| 1348 |
|
| 1349 |
|
| 1350 |
enable_static=no |
| 1351 |
enable_shared=yes |
| 1352 |
|
| 1353 |
ac_aux_dir= |
| 1354 |
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 1355 |
if test -f $ac_dir/install-sh; then |
| 1356 |
ac_aux_dir=$ac_dir |
| 1357 |
ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1358 |
break |
| 1359 |
elif test -f $ac_dir/install.sh; then |
| 1360 |
ac_aux_dir=$ac_dir |
| 1361 |
ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1362 |
break |
| 1363 |
fi |
| 1364 |
done |
| 1365 |
if test -z "$ac_aux_dir"; then |
| 1366 |
{ echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
| 1367 |
fi |
| 1368 |
ac_config_guess=$ac_aux_dir/config.guess |
| 1369 |
ac_config_sub=$ac_aux_dir/config.sub |
| 1370 |
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
| 1371 |
|
| 1372 |
echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 |
| 1373 |
echo "configure:1373: checking for Cygwin environment" >&5 |
| 1374 |
if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then |
| 1375 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1376 |
else |
| 1377 |
cat > conftest.$ac_ext <<EOF |
| 1378 |
#line 1378 "configure" |
| 1379 |
#include "confdefs.h" |
| 1380 |
|
| 1381 |
int main() { |
| 1382 |
|
| 1383 |
#ifndef __CYGWIN__ |
| 1384 |
#define __CYGWIN__ __CYGWIN32__ |
| 1385 |
#endif |
| 1386 |
return __CYGWIN__; |
| 1387 |
; return 0; } |
| 1388 |
EOF |
| 1389 |
if { (eval echo configure:1389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 1390 |
rm -rf conftest* |
| 1391 |
ac_cv_cygwin=yes |
| 1392 |
else |
| 1393 |
echo "configure: failed program was:" >&5 |
| 1394 |
cat conftest.$ac_ext >&5 |
| 1395 |
rm -rf conftest* |
| 1396 |
ac_cv_cygwin=no |
| 1397 |
fi |
| 1398 |
rm -f conftest* |
| 1399 |
rm -f conftest* |
| 1400 |
fi |
| 1401 |
|
| 1402 |
echo "$ac_t""$ac_cv_cygwin" 1>&6 |
| 1403 |
CYGWIN= |
| 1404 |
test "$ac_cv_cygwin" = yes && CYGWIN=yes |
| 1405 |
echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 |
| 1406 |
echo "configure:1406: checking for mingw32 environment" >&5 |
| 1407 |
if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then |
| 1408 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1409 |
else |
| 1410 |
cat > conftest.$ac_ext <<EOF |
| 1411 |
#line 1411 "configure" |
| 1412 |
#include "confdefs.h" |
| 1413 |
|
| 1414 |
int main() { |
| 1415 |
return __MINGW32__; |
| 1416 |
; return 0; } |
| 1417 |
EOF |
| 1418 |
if { (eval echo configure:1418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 1419 |
rm -rf conftest* |
| 1420 |
ac_cv_mingw32=yes |
| 1421 |
else |
| 1422 |
echo "configure: failed program was:" >&5 |
| 1423 |
cat conftest.$ac_ext >&5 |
| 1424 |
rm -rf conftest* |
| 1425 |
ac_cv_mingw32=no |
| 1426 |
fi |
| 1427 |
rm -f conftest* |
| 1428 |
rm -f conftest* |
| 1429 |
fi |
| 1430 |
|
| 1431 |
echo "$ac_t""$ac_cv_mingw32" 1>&6 |
| 1432 |
MINGW32= |
| 1433 |
test "$ac_cv_mingw32" = yes && MINGW32=yes |
| 1434 |
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
| 1435 |
echo "configure:1435: checking how to run the C preprocessor" >&5 |
| 1436 |
# On Suns, sometimes $CPP names a directory. |
| 1437 |
if test -n "$CPP" && test -d "$CPP"; then |
| 1438 |
CPP= |
| 1439 |
fi |
| 1440 |
if test -z "$CPP"; then |
| 1441 |
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
| 1442 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1443 |
else |
| 1444 |
# This must be in double quotes, not single quotes, because CPP may get |
| 1445 |
# substituted into the Makefile and "${CC-cc}" will confuse make. |
| 1446 |
CPP="${CC-cc} -E" |
| 1447 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
| 1448 |
# not just through cpp. |
| 1449 |
cat > conftest.$ac_ext <<EOF |
| 1450 |
#line 1450 "configure" |
| 1451 |
#include "confdefs.h" |
| 1452 |
#include <assert.h> |
| 1453 |
Syntax Error |
| 1454 |
EOF |
| 1455 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1456 |
{ (eval echo configure:1456: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1457 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1458 |
if test -z "$ac_err"; then |
| 1459 |
: |
| 1460 |
else |
| 1461 |
echo "$ac_err" >&5 |
| 1462 |
echo "configure: failed program was:" >&5 |
| 1463 |
cat conftest.$ac_ext >&5 |
| 1464 |
rm -rf conftest* |
| 1465 |
CPP="${CC-cc} -E -traditional-cpp" |
| 1466 |
cat > conftest.$ac_ext <<EOF |
| 1467 |
#line 1467 "configure" |
| 1468 |
#include "confdefs.h" |
| 1469 |
#include <assert.h> |
| 1470 |
Syntax Error |
| 1471 |
EOF |
| 1472 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1473 |
{ (eval echo configure:1473: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1474 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1475 |
if test -z "$ac_err"; then |
| 1476 |
: |
| 1477 |
else |
| 1478 |
echo "$ac_err" >&5 |
| 1479 |
echo "configure: failed program was:" >&5 |
| 1480 |
cat conftest.$ac_ext >&5 |
| 1481 |
rm -rf conftest* |
| 1482 |
CPP="${CC-cc} -nologo -E" |
| 1483 |
cat > conftest.$ac_ext <<EOF |
| 1484 |
#line 1484 "configure" |
| 1485 |
#include "confdefs.h" |
| 1486 |
#include <assert.h> |
| 1487 |
Syntax Error |
| 1488 |
EOF |
| 1489 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1490 |
{ (eval echo configure:1490: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1491 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1492 |
if test -z "$ac_err"; then |
| 1493 |
: |
| 1494 |
else |
| 1495 |
echo "$ac_err" >&5 |
| 1496 |
echo "configure: failed program was:" >&5 |
| 1497 |
cat conftest.$ac_ext >&5 |
| 1498 |
rm -rf conftest* |
| 1499 |
CPP=/lib/cpp |
| 1500 |
fi |
| 1501 |
rm -f conftest* |
| 1502 |
fi |
| 1503 |
rm -f conftest* |
| 1504 |
fi |
| 1505 |
rm -f conftest* |
| 1506 |
ac_cv_prog_CPP="$CPP" |
| 1507 |
fi |
| 1508 |
CPP="$ac_cv_prog_CPP" |
| 1509 |
else |
| 1510 |
ac_cv_prog_CPP="$CPP" |
| 1511 |
fi |
| 1512 |
echo "$ac_t""$CPP" 1>&6 |
| 1513 |
|
| 1514 |
# Check whether --enable-shared or --disable-shared was given. |
| 1515 |
if test "${enable_shared+set}" = set; then |
| 1516 |
enableval="$enable_shared" |
| 1517 |
p=${PACKAGE-default} |
| 1518 |
case $enableval in |
| 1519 |
yes) enable_shared=yes ;; |
| 1520 |
no) enable_shared=no ;; |
| 1521 |
*) |
| 1522 |
enable_shared=no |
| 1523 |
# Look at the argument we got. We use all the common list separators. |
| 1524 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
| 1525 |
for pkg in $enableval; do |
| 1526 |
if test "X$pkg" = "X$p"; then |
| 1527 |
enable_shared=yes |
| 1528 |
fi |
| 1529 |
done |
| 1530 |
IFS="$ac_save_ifs" |
| 1531 |
;; |
| 1532 |
esac |
| 1533 |
else |
| 1534 |
enable_shared=yes |
| 1535 |
fi |
| 1536 |
|
| 1537 |
# Check whether --enable-static or --disable-static was given. |
| 1538 |
if test "${enable_static+set}" = set; then |
| 1539 |
enableval="$enable_static" |
| 1540 |
p=${PACKAGE-default} |
| 1541 |
case $enableval in |
| 1542 |
yes) enable_static=yes ;; |
| 1543 |
no) enable_static=no ;; |
| 1544 |
*) |
| 1545 |
enable_static=no |
| 1546 |
# Look at the argument we got. We use all the common list separators. |
| 1547 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
| 1548 |
for pkg in $enableval; do |
| 1549 |
if test "X$pkg" = "X$p"; then |
| 1550 |
enable_static=yes |
| 1551 |
fi |
| 1552 |
done |
| 1553 |
IFS="$ac_save_ifs" |
| 1554 |
;; |
| 1555 |
esac |
| 1556 |
else |
| 1557 |
enable_static=yes |
| 1558 |
fi |
| 1559 |
|
| 1560 |
# Check whether --enable-fast-install or --disable-fast-install was given. |
| 1561 |
if test "${enable_fast_install+set}" = set; then |
| 1562 |
enableval="$enable_fast_install" |
| 1563 |
p=${PACKAGE-default} |
| 1564 |
case $enableval in |
| 1565 |
yes) enable_fast_install=yes ;; |
| 1566 |
no) enable_fast_install=no ;; |
| 1567 |
*) |
| 1568 |
enable_fast_install=no |
| 1569 |
# Look at the argument we got. We use all the common list separators. |
| 1570 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
| 1571 |
for pkg in $enableval; do |
| 1572 |
if test "X$pkg" = "X$p"; then |
| 1573 |
enable_fast_install=yes |
| 1574 |
fi |
| 1575 |
done |
| 1576 |
IFS="$ac_save_ifs" |
| 1577 |
;; |
| 1578 |
esac |
| 1579 |
else |
| 1580 |
enable_fast_install=yes |
| 1581 |
fi |
| 1582 |
|
| 1583 |
|
| 1584 |
# Make sure we can run config.sub. |
| 1585 |
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
| 1586 |
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
| 1587 |
fi |
| 1588 |
|
| 1589 |
echo $ac_n "checking host system type""... $ac_c" 1>&6 |
| 1590 |
echo "configure:1590: checking host system type" >&5 |
| 1591 |
|
| 1592 |
host_alias=$host |
| 1593 |
case "$host_alias" in |
| 1594 |
NONE) |
| 1595 |
case $nonopt in |
| 1596 |
NONE) |
| 1597 |
if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
| 1598 |
else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
| 1599 |
fi ;; |
| 1600 |
*) host_alias=$nonopt ;; |
| 1601 |
esac ;; |
| 1602 |
esac |
| 1603 |
|
| 1604 |
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
| 1605 |
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1606 |
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1607 |
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1608 |
echo "$ac_t""$host" 1>&6 |
| 1609 |
|
| 1610 |
echo $ac_n "checking build system type""... $ac_c" 1>&6 |
| 1611 |
echo "configure:1611: checking build system type" >&5 |
| 1612 |
|
| 1613 |
build_alias=$build |
| 1614 |
case "$build_alias" in |
| 1615 |
NONE) |
| 1616 |
case $nonopt in |
| 1617 |
NONE) build_alias=$host_alias ;; |
| 1618 |
*) build_alias=$nonopt ;; |
| 1619 |
esac ;; |
| 1620 |
esac |
| 1621 |
|
| 1622 |
build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` |
| 1623 |
build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1624 |
build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1625 |
build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1626 |
echo "$ac_t""$build" 1>&6 |
| 1627 |
|
| 1628 |
# Check whether --with-gnu-ld or --without-gnu-ld was given. |
| 1629 |
if test "${with_gnu_ld+set}" = set; then |
| 1630 |
withval="$with_gnu_ld" |
| 1631 |
test "$withval" = no || with_gnu_ld=yes |
| 1632 |
else |
| 1633 |
with_gnu_ld=no |
| 1634 |
fi |
| 1635 |
|
| 1636 |
ac_prog=ld |
| 1637 |
if test "$GCC" = yes; then |
| 1638 |
# Check if gcc -print-prog-name=ld gives a path. |
| 1639 |
echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 |
| 1640 |
echo "configure:1640: checking for ld used by GCC" >&5 |
| 1641 |
case $host in |
| 1642 |
*-*-mingw*) |
| 1643 |
# gcc leaves a trailing carriage return which upsets mingw |
| 1644 |
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 1645 |
*) |
| 1646 |
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 1647 |
esac |
| 1648 |
case $ac_prog in |
| 1649 |
# Accept absolute paths. |
| 1650 |
[\\/]* | [A-Za-z]:[\\/]*) |
| 1651 |
re_direlt='/[^/][^/]*/\.\./' |
| 1652 |
# Canonicalize the path of ld |
| 1653 |
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
| 1654 |
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 1655 |
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
| 1656 |
done |
| 1657 |
test -z "$LD" && LD="$ac_prog" |
| 1658 |
;; |
| 1659 |
"") |
| 1660 |
# If it fails, then pretend we aren't using GCC. |
| 1661 |
ac_prog=ld |
| 1662 |
;; |
| 1663 |
*) |
| 1664 |
# If it is relative, then search for the first ld in PATH. |
| 1665 |
with_gnu_ld=unknown |
| 1666 |
;; |
| 1667 |
esac |
| 1668 |
elif test "$with_gnu_ld" = yes; then |
| 1669 |
echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 |
| 1670 |
echo "configure:1670: checking for GNU ld" >&5 |
| 1671 |
else |
| 1672 |
echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 |
| 1673 |
echo "configure:1673: checking for non-GNU ld" >&5 |
| 1674 |
fi |
| 1675 |
if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then |
| 1676 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1677 |
else |
| 1678 |
if test -z "$LD"; then |
| 1679 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
| 1680 |
for ac_dir in $PATH; do |
| 1681 |
test -z "$ac_dir" && ac_dir=. |
| 1682 |
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 1683 |
lt_cv_path_LD="$ac_dir/$ac_prog" |
| 1684 |
# Check to see if the program is GNU ld. I'd rather use --version, |
| 1685 |
# but apparently some GNU ld's only accept -v. |
| 1686 |
# Break only if it was the GNU/non-GNU ld that we prefer. |
| 1687 |
if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
| 1688 |
test "$with_gnu_ld" != no && break |
| 1689 |
else |
| 1690 |
test "$with_gnu_ld" != yes && break |
| 1691 |
fi |
| 1692 |
fi |
| 1693 |
done |
| 1694 |
IFS="$ac_save_ifs" |
| 1695 |
else |
| 1696 |
lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 1697 |
fi |
| 1698 |
fi |
| 1699 |
|
| 1700 |
LD="$lt_cv_path_LD" |
| 1701 |
if test -n "$LD"; then |
| 1702 |
echo "$ac_t""$LD" 1>&6 |
| 1703 |
else |
| 1704 |
echo "$ac_t""no" 1>&6 |
| 1705 |
fi |
| 1706 |
test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } |
| 1707 |
echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 |
| 1708 |
echo "configure:1708: checking if the linker ($LD) is GNU ld" >&5 |
| 1709 |
if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then |
| 1710 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1711 |
else |
| 1712 |
# I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 1713 |
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then |
| 1714 |
lt_cv_prog_gnu_ld=yes |
| 1715 |
else |
| 1716 |
lt_cv_prog_gnu_ld=no |
| 1717 |
fi |
| 1718 |
fi |
| 1719 |
|
| 1720 |
echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6 |
| 1721 |
with_gnu_ld=$lt_cv_prog_gnu_ld |
| 1722 |
|
| 1723 |
|
| 1724 |
echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6 |
| 1725 |
echo "configure:1725: checking for $LD option to reload object files" >&5 |
| 1726 |
if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then |
| 1727 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1728 |
else |
| 1729 |
lt_cv_ld_reload_flag='-r' |
| 1730 |
fi |
| 1731 |
|
| 1732 |
echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6 |
| 1733 |
reload_flag=$lt_cv_ld_reload_flag |
| 1734 |
test -n "$reload_flag" && reload_flag=" $reload_flag" |
| 1735 |
|
| 1736 |
echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 |
| 1737 |
echo "configure:1737: checking for BSD-compatible nm" >&5 |
| 1738 |
if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then |
| 1739 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1740 |
else |
| 1741 |
if test -n "$NM"; then |
| 1742 |
# Let the user override the test. |
| 1743 |
lt_cv_path_NM="$NM" |
| 1744 |
else |
| 1745 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
| 1746 |
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
| 1747 |
test -z "$ac_dir" && ac_dir=. |
| 1748 |
tmp_nm=$ac_dir/${ac_tool_prefix}nm |
| 1749 |
if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then |
| 1750 |
# Check to see if the nm accepts a BSD-compat flag. |
| 1751 |
# Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 1752 |
# nm: unknown option "B" ignored |
| 1753 |
# Tru64's nm complains that /dev/null is an invalid object file |
| 1754 |
if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then |
| 1755 |
lt_cv_path_NM="$tmp_nm -B" |
| 1756 |
break |
| 1757 |
elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
| 1758 |
lt_cv_path_NM="$tmp_nm -p" |
| 1759 |
break |
| 1760 |
else |
| 1761 |
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 1762 |
continue # so that we can try to find one that supports BSD flags |
| 1763 |
fi |
| 1764 |
fi |
| 1765 |
done |
| 1766 |
IFS="$ac_save_ifs" |
| 1767 |
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 1768 |
fi |
| 1769 |
fi |
| 1770 |
|
| 1771 |
NM="$lt_cv_path_NM" |
| 1772 |
echo "$ac_t""$NM" 1>&6 |
| 1773 |
|
| 1774 |
echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
| 1775 |
echo "configure:1775: checking whether ln -s works" >&5 |
| 1776 |
if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
| 1777 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1778 |
else |
| 1779 |
rm -f conftestdata |
| 1780 |
if ln -s X conftestdata 2>/dev/null |
| 1781 |
then |
| 1782 |
rm -f conftestdata |
| 1783 |
ac_cv_prog_LN_S="ln -s" |
| 1784 |
else |
| 1785 |
ac_cv_prog_LN_S=ln |
| 1786 |
fi |
| 1787 |
fi |
| 1788 |
LN_S="$ac_cv_prog_LN_S" |
| 1789 |
if test "$ac_cv_prog_LN_S" = "ln -s"; then |
| 1790 |
echo "$ac_t""yes" 1>&6 |
| 1791 |
else |
| 1792 |
echo "$ac_t""no" 1>&6 |
| 1793 |
fi |
| 1794 |
|
| 1795 |
echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6 |
| 1796 |
echo "configure:1796: checking how to recognise dependant libraries" >&5 |
| 1797 |
if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then |
| 1798 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1799 |
else |
| 1800 |
lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 1801 |
lt_cv_file_magic_test_file= |
| 1802 |
lt_cv_deplibs_check_method='unknown' |
| 1803 |
# Need to set the preceding variable on all platforms that support |
| 1804 |
# interlibrary dependencies. |
| 1805 |
# 'none' -- dependencies not supported. |
| 1806 |
# `unknown' -- same as none, but documents that we really don't know. |
| 1807 |
# 'pass_all' -- all dependencies passed with no checks. |
| 1808 |
# 'test_compile' -- check by making test program. |
| 1809 |
# ['file_magic [regex]'] -- check by looking for files in library path |
| 1810 |
# which responds to the $file_magic_cmd with a given egrep regex. |
| 1811 |
# If you have `file' or equivalent on your system and you're not sure |
| 1812 |
# whether `pass_all' will *always* work, you probably want this one. |
| 1813 |
|
| 1814 |
case $host_os in |
| 1815 |
aix4* | aix5*) |
| 1816 |
lt_cv_deplibs_check_method=pass_all |
| 1817 |
;; |
| 1818 |
|
| 1819 |
beos*) |
| 1820 |
lt_cv_deplibs_check_method=pass_all |
| 1821 |
;; |
| 1822 |
|
| 1823 |
bsdi4*) |
| 1824 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 1825 |
lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 1826 |
lt_cv_file_magic_test_file=/shlib/libc.so |
| 1827 |
;; |
| 1828 |
|
| 1829 |
cygwin* | mingw* | pw32*) |
| 1830 |
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 1831 |
lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 1832 |
;; |
| 1833 |
|
| 1834 |
darwin* | rhapsody*) |
| 1835 |
lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' |
| 1836 |
lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 1837 |
case "$host_os" in |
| 1838 |
rhapsody* | darwin1.012) |
| 1839 |
lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1` |
| 1840 |
;; |
| 1841 |
*) # Darwin 1.3 on |
| 1842 |
lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' |
| 1843 |
;; |
| 1844 |
esac |
| 1845 |
;; |
| 1846 |
|
| 1847 |
freebsd*) |
| 1848 |
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 1849 |
case $host_cpu in |
| 1850 |
i*86 ) |
| 1851 |
# Not sure whether the presence of OpenBSD here was a mistake. |
| 1852 |
# Let's accept both of them until this is cleared up. |
| 1853 |
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
| 1854 |
lt_cv_file_magic_cmd=/usr/bin/file |
| 1855 |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 1856 |
;; |
| 1857 |
esac |
| 1858 |
else |
| 1859 |
lt_cv_deplibs_check_method=pass_all |
| 1860 |
fi |
| 1861 |
;; |
| 1862 |
|
| 1863 |
gnu*) |
| 1864 |
lt_cv_deplibs_check_method=pass_all |
| 1865 |
;; |
| 1866 |
|
| 1867 |
hpux10.20*|hpux11*) |
| 1868 |
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 1869 |
lt_cv_file_magic_cmd=/usr/bin/file |
| 1870 |
lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 1871 |
;; |
| 1872 |
|
| 1873 |
irix5* | irix6*) |
| 1874 |
case $host_os in |
| 1875 |
irix5*) |
| 1876 |
# this will be overridden with pass_all, but let us keep it just in case |
| 1877 |
lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" |
| 1878 |
;; |
| 1879 |
*) |
| 1880 |
case $LD in |
| 1881 |
*-32|*"-32 ") libmagic=32-bit;; |
| 1882 |
*-n32|*"-n32 ") libmagic=N32;; |
| 1883 |
*-64|*"-64 ") libmagic=64-bit;; |
| 1884 |
*) libmagic=never-match;; |
| 1885 |
esac |
| 1886 |
# this will be overridden with pass_all, but let us keep it just in case |
| 1887 |
lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" |
| 1888 |
;; |
| 1889 |
esac |
| 1890 |
lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` |
| 1891 |
lt_cv_deplibs_check_method=pass_all |
| 1892 |
;; |
| 1893 |
|
| 1894 |
# This must be Linux ELF. |
| 1895 |
linux-gnu*) |
| 1896 |
case $host_cpu in |
| 1897 |
alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* ) |
| 1898 |
lt_cv_deplibs_check_method=pass_all ;; |
| 1899 |
*) |
| 1900 |
# glibc up to 2.1.1 does not perform some relocations on ARM |
| 1901 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; |
| 1902 |
esac |
| 1903 |
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
| 1904 |
;; |
| 1905 |
|
| 1906 |
netbsd*) |
| 1907 |
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 1908 |
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' |
| 1909 |
else |
| 1910 |
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' |
| 1911 |
fi |
| 1912 |
;; |
| 1913 |
|
| 1914 |
newos6*) |
| 1915 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 1916 |
lt_cv_file_magic_cmd=/usr/bin/file |
| 1917 |
lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 1918 |
;; |
| 1919 |
|
| 1920 |
osf3* | osf4* | osf5*) |
| 1921 |
# this will be overridden with pass_all, but let us keep it just in case |
| 1922 |
lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' |
| 1923 |
lt_cv_file_magic_test_file=/shlib/libc.so |
| 1924 |
lt_cv_deplibs_check_method=pass_all |
| 1925 |
;; |
| 1926 |
|
| 1927 |
sco3.2v5*) |
| 1928 |
lt_cv_deplibs_check_method=pass_all |
| 1929 |
;; |
| 1930 |
|
| 1931 |
solaris*) |
| 1932 |
lt_cv_deplibs_check_method=pass_all |
| 1933 |
lt_cv_file_magic_test_file=/lib/libc.so |
| 1934 |
;; |
| 1935 |
|
| 1936 |
sysv5uw[78]* | sysv4*uw2*) |
| 1937 |
lt_cv_deplibs_check_method=pass_all |
| 1938 |
;; |
| 1939 |
|
| 1940 |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 1941 |
case $host_vendor in |
| 1942 |
motorola) |
| 1943 |
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]' |
| 1944 |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 1945 |
;; |
| 1946 |
ncr) |
| 1947 |
lt_cv_deplibs_check_method=pass_all |
| 1948 |
;; |
| 1949 |
sequent) |
| 1950 |
lt_cv_file_magic_cmd='/bin/file' |
| 1951 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 1952 |
;; |
| 1953 |
sni) |
| 1954 |
lt_cv_file_magic_cmd='/bin/file' |
| 1955 |
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 1956 |
lt_cv_file_magic_test_file=/lib/libc.so |
| 1957 |
;; |
| 1958 |
esac |
| 1959 |
;; |
| 1960 |
esac |
| 1961 |
|
| 1962 |
fi |
| 1963 |
|
| 1964 |
echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6 |
| 1965 |
file_magic_cmd=$lt_cv_file_magic_cmd |
| 1966 |
deplibs_check_method=$lt_cv_deplibs_check_method |
| 1967 |
|
| 1968 |
echo $ac_n "checking for object suffix""... $ac_c" 1>&6 |
| 1969 |
echo "configure:1969: checking for object suffix" >&5 |
| 1970 |
if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then |
| 1971 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1972 |
else |
| 1973 |
rm -f conftest* |
| 1974 |
echo 'int i = 1;' > conftest.$ac_ext |
| 1975 |
if { (eval echo configure:1975: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 1976 |
for ac_file in conftest.*; do |
| 1977 |
case $ac_file in |
| 1978 |
*.c) ;; |
| 1979 |
*) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;; |
| 1980 |
esac |
| 1981 |
done |
| 1982 |
else |
| 1983 |
{ echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; } |
| 1984 |
fi |
| 1985 |
rm -f conftest* |
| 1986 |
fi |
| 1987 |
|
| 1988 |
echo "$ac_t""$ac_cv_objext" 1>&6 |
| 1989 |
OBJEXT=$ac_cv_objext |
| 1990 |
ac_objext=$ac_cv_objext |
| 1991 |
|
| 1992 |
|
| 1993 |
|
| 1994 |
echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 |
| 1995 |
echo "configure:1995: checking for executable suffix" >&5 |
| 1996 |
if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then |
| 1997 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1998 |
else |
| 1999 |
if test "$CYGWIN" = yes || test "$MINGW32" = yes; then |
| 2000 |
ac_cv_exeext=.exe |
| 2001 |
else |
| 2002 |
rm -f conftest* |
| 2003 |
echo 'int main () { return 0; }' > conftest.$ac_ext |
| 2004 |
ac_cv_exeext= |
| 2005 |
if { (eval echo configure:2005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
| 2006 |
for file in conftest.*; do |
| 2007 |
case $file in |
| 2008 |
*.c | *.o | *.obj) ;; |
| 2009 |
*) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; |
| 2010 |
esac |
| 2011 |
done |
| 2012 |
else |
| 2013 |
{ echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } |
| 2014 |
fi |
| 2015 |
rm -f conftest* |
| 2016 |
test x"${ac_cv_exeext}" = x && ac_cv_exeext=no |
| 2017 |
fi |
| 2018 |
fi |
| 2019 |
|
| 2020 |
EXEEXT="" |
| 2021 |
test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} |
| 2022 |
echo "$ac_t""${ac_cv_exeext}" 1>&6 |
| 2023 |
ac_exeext=$EXEEXT |
| 2024 |
|
| 2025 |
if test $host != $build; then |
| 2026 |
ac_tool_prefix=${host_alias}- |
| 2027 |
else |
| 2028 |
ac_tool_prefix= |
| 2029 |
fi |
| 2030 |
|
| 2031 |
|
| 2032 |
|
| 2033 |
|
| 2034 |
# Check for command to grab the raw symbol name followed by C symbol from nm. |
| 2035 |
echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6 |
| 2036 |
echo "configure:2036: checking command to parse $NM output" >&5 |
| 2037 |
if eval "test \"`echo '$''{'lt_cv_sys_global_symbol_pipe'+set}'`\" = set"; then |
| 2038 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 2039 |
else |
| 2040 |
|
| 2041 |
# These are sane defaults that work on at least a few old systems. |
| 2042 |
# [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 2043 |
|
| 2044 |
# Character class describing NM global symbol codes. |
| 2045 |
symcode='[BCDEGRST]' |
| 2046 |
|
| 2047 |
# Regexp to match symbols that can be accessed directly from C. |
| 2048 |
sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 2049 |
|
| 2050 |
# Transform the above into a raw symbol and a C symbol. |
| 2051 |
symxfrm='\1 \2\3 \3' |
| 2052 |
|
| 2053 |
# Transform an extracted symbol line into a proper C declaration |
| 2054 |
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'" |
| 2055 |
|
| 2056 |
# Define system-specific variables. |
| 2057 |
case $host_os in |
| 2058 |
aix*) |
| 2059 |
symcode='[BCDT]' |
| 2060 |
;; |
| 2061 |
cygwin* | mingw* | pw32*) |
| 2062 |
symcode='[ABCDGISTW]' |
| 2063 |
;; |
| 2064 |
hpux*) # Its linker distinguishes data from code symbols |
| 2065 |
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 2066 |
;; |
| 2067 |
irix*) |
| 2068 |
symcode='[BCDEGRST]' |
| 2069 |
;; |
| 2070 |
solaris* | sysv5*) |
| 2071 |
symcode='[BDT]' |
| 2072 |
;; |
| 2073 |
sysv4) |
| 2074 |
symcode='[DFNSTU]' |
| 2075 |
;; |
| 2076 |
esac |
| 2077 |
|
| 2078 |
# Handle CRLF in mingw tool chain |
| 2079 |
opt_cr= |
| 2080 |
case $host_os in |
| 2081 |
mingw*) |
| 2082 |
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 2083 |
;; |
| 2084 |
esac |
| 2085 |
|
| 2086 |
# If we're using GNU nm, then use its standard symbol codes. |
| 2087 |
if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then |
| 2088 |
symcode='[ABCDGISTW]' |
| 2089 |
fi |
| 2090 |
|
| 2091 |
# Try without a prefix undercore, then with it. |
| 2092 |
for ac_symprfx in "" "_"; do |
| 2093 |
|
| 2094 |
# Write the raw and C identifiers. |
| 2095 |
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" |
| 2096 |
|
| 2097 |
# Check to see that the pipe works correctly. |
| 2098 |
pipe_works=no |
| 2099 |
rm -f conftest* |
| 2100 |
cat > conftest.$ac_ext <<EOF |
| 2101 |
#ifdef __cplusplus |
| 2102 |
extern "C" { |
| 2103 |
#endif |
| 2104 |
char nm_test_var; |
| 2105 |
void nm_test_func(){} |
| 2106 |
#ifdef __cplusplus |
| 2107 |
} |
| 2108 |
#endif |
| 2109 |
int main(){nm_test_var='a';nm_test_func();return(0);} |
| 2110 |
EOF |
| 2111 |
|
| 2112 |
if { (eval echo configure:2112: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 2113 |
# Now try to grab the symbols. |
| 2114 |
nlist=conftest.nm |
| 2115 |
if { (eval echo configure:2115: \"$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 |
| 2116 |
# Try sorting and uniquifying the output. |
| 2117 |
if sort "$nlist" | uniq > "$nlist"T; then |
| 2118 |
mv -f "$nlist"T "$nlist" |
| 2119 |
else |
| 2120 |
rm -f "$nlist"T |
| 2121 |
fi |
| 2122 |
|
| 2123 |
# Make sure that we snagged all the symbols we need. |
| 2124 |
if egrep ' nm_test_var$' "$nlist" >/dev/null; then |
| 2125 |
if egrep ' nm_test_func$' "$nlist" >/dev/null; then |
| 2126 |
cat <<EOF > conftest.$ac_ext |
| 2127 |
#ifdef __cplusplus |
| 2128 |
extern "C" { |
| 2129 |
#endif |
| 2130 |
|
| 2131 |
EOF |
| 2132 |
# Now generate the symbol file. |
| 2133 |
eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext' |
| 2134 |
|
| 2135 |
cat <<EOF >> conftest.$ac_ext |
| 2136 |
#if defined (__STDC__) && __STDC__ |
| 2137 |
# define lt_ptr_t void * |
| 2138 |
#else |
| 2139 |
# define lt_ptr_t char * |
| 2140 |
# define const |
| 2141 |
#endif |
| 2142 |
|
| 2143 |
/* The mapping between symbol names and symbols. */ |
| 2144 |
const struct { |
| 2145 |
const char *name; |
| 2146 |
lt_ptr_t address; |
| 2147 |
} |
| 2148 |
lt_preloaded_symbols[] = |
| 2149 |
{ |
| 2150 |
EOF |
| 2151 |
sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" >> conftest.$ac_ext |
| 2152 |
cat <<\EOF >> conftest.$ac_ext |
| 2153 |
{0, (lt_ptr_t) 0} |
| 2154 |
}; |
| 2155 |
|
| 2156 |
#ifdef __cplusplus |
| 2157 |
} |
| 2158 |
#endif |
| 2159 |
EOF |
| 2160 |
# Now try linking the two files. |
| 2161 |
mv conftest.$ac_objext conftstm.$ac_objext |
| 2162 |
save_LIBS="$LIBS" |
| 2163 |
save_CFLAGS="$CFLAGS" |
| 2164 |
LIBS="conftstm.$ac_objext" |
| 2165 |
CFLAGS="$CFLAGS$no_builtin_flag" |
| 2166 |
if { (eval echo configure:2166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 2167 |
pipe_works=yes |
| 2168 |
fi |
| 2169 |
LIBS="$save_LIBS" |
| 2170 |
CFLAGS="$save_CFLAGS" |
| 2171 |
else |
| 2172 |
echo "cannot find nm_test_func in $nlist" >&5 |
| 2173 |
fi |
| 2174 |
else |
| 2175 |
echo "cannot find nm_test_var in $nlist" >&5 |
| 2176 |
fi |
| 2177 |
else |
| 2178 |
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 2179 |
fi |
| 2180 |
else |
| 2181 |
echo "$progname: failed program was:" >&5 |
| 2182 |
cat conftest.$ac_ext >&5 |
| 2183 |
fi |
| 2184 |
rm -f conftest* conftst* |
| 2185 |
|
| 2186 |
# Do not use the global_symbol_pipe unless it works. |
| 2187 |
if test "$pipe_works" = yes; then |
| 2188 |
break |
| 2189 |
else |
| 2190 |
lt_cv_sys_global_symbol_pipe= |
| 2191 |
fi |
| 2192 |
done |
| 2193 |
|
| 2194 |
fi |
| 2195 |
|
| 2196 |
global_symbol_pipe="$lt_cv_sys_global_symbol_pipe" |
| 2197 |
if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 2198 |
global_symbol_to_cdecl= |
| 2199 |
else |
| 2200 |
global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl" |
| 2201 |
fi |
| 2202 |
if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then |
| 2203 |
echo "$ac_t""failed" 1>&6 |
| 2204 |
else |
| 2205 |
echo "$ac_t""ok" 1>&6 |
| 2206 |
fi |
| 2207 |
|
| 2208 |
for ac_hdr in dlfcn.h |
| 2209 |
do |
| 2210 |
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 2211 |
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 2212 |
echo "configure:2212: checking for $ac_hdr" >&5 |
| 2213 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 2214 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 2215 |
else |
| 2216 |
cat > conftest.$ac_ext <<EOF |
| 2217 |
#line 2217 "configure" |
| 2218 |
#include "confdefs.h" |
| 2219 |
#include <$ac_hdr> |
| 2220 |
EOF |
| 2221 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 2222 |
{ (eval echo configure:2222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 2223 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 2224 |
if test -z "$ac_err"; then |
| 2225 |
rm -rf conftest* |
| 2226 |
eval "ac_cv_header_$ac_safe=yes" |
| 2227 |
else |
| 2228 |
echo "$ac_err" >&5 |
| 2229 |
echo "configure: failed program was:" >&5 |
| 2230 |
cat conftest.$ac_ext >&5 |
| 2231 |
rm -rf conftest* |
| 2232 |
eval "ac_cv_header_$ac_safe=no" |
| 2233 |
fi |
| 2234 |
rm -f conftest* |
| 2235 |
fi |
| 2236 |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 2237 |
echo "$ac_t""yes" 1>&6 |
| 2238 |
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 2239 |
cat >> confdefs.h <<EOF |
| 2240 |
#define $ac_tr_hdr 1 |
| 2241 |
EOF |
| 2242 |
|
| 2243 |
else |
| 2244 |
echo "$ac_t""no" 1>&6 |
| 2245 |
fi |
| 2246 |
done |
| 2247 |
|
| 2248 |
|
| 2249 |
|
| 2250 |
|
| 2251 |
|
| 2252 |
# Only perform the check for file, if the check method requires it |
| 2253 |
case $deplibs_check_method in |
| 2254 |
file_magic*) |
| 2255 |
if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
| 2256 |
echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6 |
| 2257 |
echo "configure:2257: checking for ${ac_tool_prefix}file" >&5 |
| 2258 |
if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then |
| 2259 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 2260 |
else |
| 2261 |
case $MAGIC_CMD in |
| 2262 |
/*) |
| 2263 |
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 2264 |
;; |
| 2265 |
?:/*) |
| 2266 |
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
| 2267 |
;; |
| 2268 |
*) |
| 2269 |
ac_save_MAGIC_CMD="$MAGIC_CMD" |
| 2270 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 2271 |
ac_dummy="/usr/bin:$PATH" |
| 2272 |
for ac_dir in $ac_dummy; do |
| 2273 |
test -z "$ac_dir" && ac_dir=. |
| 2274 |
if test -f $ac_dir/${ac_tool_prefix}file; then |
| 2275 |
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 2276 |
if test -n "$file_magic_test_file"; then |
| 2277 |
case $deplibs_check_method in |
| 2278 |
"file_magic "*) |
| 2279 |
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
| 2280 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 2281 |
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 2282 |
egrep "$file_magic_regex" > /dev/null; then |
| 2283 |
: |
| 2284 |
else |
| 2285 |
cat <<EOF 1>&2 |
| 2286 |
|
| 2287 |
*** Warning: the command libtool uses to detect shared libraries, |
| 2288 |
*** $file_magic_cmd, produces output that libtool cannot recognize. |
| 2289 |
*** The result is that libtool may fail to recognize shared libraries |
| 2290 |
*** as such. This will affect the creation of libtool libraries that |
| 2291 |
*** depend on shared libraries, but programs linked with such libtool |
| 2292 |
*** libraries will work regardless of this problem. Nevertheless, you |
| 2293 |
*** may want to report the problem to your system manager and/or to |
| 2294 |
*** [email protected] |
| 2295 |
|
| 2296 |
EOF |
| 2297 |
fi ;; |
| 2298 |
esac |
| 2299 |
fi |
| 2300 |
break |
| 2301 |
fi |
| 2302 |
done |
| 2303 |
IFS="$ac_save_ifs" |
| 2304 |
MAGIC_CMD="$ac_save_MAGIC_CMD" |
| 2305 |
;; |
| 2306 |
esac |
| 2307 |
fi |
| 2308 |
|
| 2309 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 2310 |
if test -n "$MAGIC_CMD"; then |
| 2311 |
echo "$ac_t""$MAGIC_CMD" 1>&6 |
| 2312 |
else |
| 2313 |
echo "$ac_t""no" 1>&6 |
| 2314 |
fi |
| 2315 |
|
| 2316 |
if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 2317 |
if test -n "$ac_tool_prefix"; then |
| 2318 |
echo $ac_n "checking for file""... $ac_c" 1>&6 |
| 2319 |
echo "configure:2319: checking for file" >&5 |
| 2320 |
if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then |
| 2321 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 2322 |
else |
| 2323 |
case $MAGIC_CMD in |
| 2324 |
/*) |
| 2325 |
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 2326 |
;; |
| 2327 |
?:/*) |
| 2328 |
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
| 2329 |
;; |
| 2330 |
*) |
| 2331 |
ac_save_MAGIC_CMD="$MAGIC_CMD" |
| 2332 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 2333 |
ac_dummy="/usr/bin:$PATH" |
| 2334 |
for ac_dir in $ac_dummy; do |
| 2335 |
test -z "$ac_dir" && ac_dir=. |
| 2336 |
if test -f $ac_dir/file; then |
| 2337 |
lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 2338 |
if test -n "$file_magic_test_file"; then |
| 2339 |
case $deplibs_check_method in |
| 2340 |
"file_magic "*) |
| 2341 |
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
| 2342 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 2343 |
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 2344 |
egrep "$file_magic_regex" > /dev/null; then |
| 2345 |
: |
| 2346 |
else |
| 2347 |
cat <<EOF 1>&2 |
| 2348 |
|
| 2349 |
*** Warning: the command libtool uses to detect shared libraries, |
| 2350 |
*** $file_magic_cmd, produces output that libtool cannot recognize. |
| 2351 |
*** The result is that libtool may fail to recognize shared libraries |
| 2352 |
*** as such. This will affect the creation of libtool libraries that |
| 2353 |
*** depend on shared libraries, but programs linked with such libtool |
| 2354 |
*** libraries will work regardless of this problem. Nevertheless, you |
| 2355 |
*** may want to report the problem to your system manager and/or to |
| 2356 |
*** [email protected] |
| 2357 |
|
| 2358 |
EOF |
| 2359 |
fi ;; |
| 2360 |
esac |
| 2361 |
fi |
| 2362 |
break |
| 2363 |
fi |
| 2364 |
done |
| 2365 |
IFS="$ac_save_ifs" |
| 2366 |
MAGIC_CMD="$ac_save_MAGIC_CMD" |
| 2367 |
;; |
| 2368 |
esac |
| 2369 |
fi |
| 2370 |
|
| 2371 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 2372 |
if test -n "$MAGIC_CMD"; then |
| 2373 |
echo "$ac_t""$MAGIC_CMD" 1>&6 |
| 2374 |
else |
| 2375 |
echo "$ac_t""no" 1>&6 |
| 2376 |
fi |
| 2377 |
|
| 2378 |
else |
| 2379 |
MAGIC_CMD=: |
| 2380 |
fi |
| 2381 |
fi |
| 2382 |
|
| 2383 |
fi |
| 2384 |
;; |
| 2385 |
esac |
| 2386 |
|
| 2387 |
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 2388 |
set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 2389 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 2390 |
echo "configure:2390: checking for $ac_word" >&5 |
| 2391 |
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
| 2392 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 2393 |
else |
| 2394 |
if test -n "$RANLIB"; then |
| 2395 |
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 2396 |
else |
| 2397 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 2398 |
ac_dummy="$PATH" |
| 2399 |
for ac_dir in $ac_dummy; do |
| 2400 |
test -z "$ac_dir" && ac_dir=. |
| 2401 |
if test -f $ac_dir/$ac_word; then |
| 2402 |
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 2403 |
break |
| 2404 |
fi |
| 2405 |
done |
| 2406 |
IFS="$ac_save_ifs" |
| 2407 |
fi |
| 2408 |
fi |
| 2409 |
RANLIB="$ac_cv_prog_RANLIB" |
| 2410 |
if test -n "$RANLIB"; then |
| 2411 |
echo "$ac_t""$RANLIB" 1>&6 |
| 2412 |
else |
| 2413 |
echo "$ac_t""no" 1>&6 |
| 2414 |
fi |
| 2415 |
|
| 2416 |
|
| 2417 |
if test -z "$ac_cv_prog_RANLIB"; then |
| 2418 |
if test -n "$ac_tool_prefix"; then |
| 2419 |
# Extract the first word of "ranlib", so it can be a program name with args. |
| 2420 |
set dummy ranlib; ac_word=$2 |
| 2421 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 2422 |
echo "configure:2422: checking for $ac_word" >&5 |
| 2423 |
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
| 2424 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 2425 |
else |
| 2426 |
if test -n "$RANLIB"; then |
| 2427 |
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 2428 |
else |
| 2429 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 2430 |
ac_dummy="$PATH" |
| 2431 |
for ac_dir in $ac_dummy; do |
| 2432 |
test -z "$ac_dir" && ac_dir=. |
| 2433 |
if test -f $ac_dir/$ac_word; then |
| 2434 |
ac_cv_prog_RANLIB="ranlib" |
| 2435 |
break |
| 2436 |
fi |
| 2437 |
done |
| 2438 |
IFS="$ac_save_ifs" |
| 2439 |
test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
| 2440 |
fi |
| 2441 |
fi |
| 2442 |
RANLIB="$ac_cv_prog_RANLIB" |
| 2443 |
if test -n "$RANLIB"; then |
| 2444 |
echo "$ac_t""$RANLIB" 1>&6 |
| 2445 |
else |
| 2446 |
echo "$ac_t""no" 1>&6 |
| 2447 |
fi |
| 2448 |
|
| 2449 |
else |
| 2450 |
RANLIB=":" |
| 2451 |
fi |
| 2452 |
fi |
| 2453 |
|
| 2454 |
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 2455 |
set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 2456 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 2457 |
echo "configure:2457: checking for $ac_word" >&5 |
| 2458 |
if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
| 2459 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 2460 |
else |
| 2461 |
if test -n "$STRIP"; then |
| 2462 |
ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 2463 |
else |
| 2464 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 2465 |
ac_dummy="$PATH" |
| 2466 |
for ac_dir in $ac_dummy; do |
| 2467 |
test -z "$ac_dir" && ac_dir=. |
| 2468 |
if test -f $ac_dir/$ac_word; then |
| 2469 |
ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 2470 |
break |
| 2471 |
fi |
| 2472 |
done |
| 2473 |
IFS="$ac_save_ifs" |
| 2474 |
fi |
| 2475 |
fi |
| 2476 |
STRIP="$ac_cv_prog_STRIP" |
| 2477 |
if test -n "$STRIP"; then |
| 2478 |
echo "$ac_t""$STRIP" 1>&6 |
| 2479 |
else |
| 2480 |
echo "$ac_t""no" 1>&6 |
| 2481 |
fi |
| 2482 |
|
| 2483 |
|
| 2484 |
if test -z "$ac_cv_prog_STRIP"; then |
| 2485 |
if test -n "$ac_tool_prefix"; then |
| 2486 |
# Extract the first word of "strip", so it can be a program name with args. |
| 2487 |
set dummy strip; ac_word=$2 |
| 2488 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 2489 |
echo "configure:2489: checking for $ac_word" >&5 |
| 2490 |
if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
| 2491 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 2492 |
else |
| 2493 |
if test -n "$STRIP"; then |
| 2494 |
ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 2495 |
else |
| 2496 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 2497 |
ac_dummy="$PATH" |
| 2498 |
for ac_dir in $ac_dummy; do |
| 2499 |
test -z "$ac_dir" && ac_dir=. |
| 2500 |
if test -f $ac_dir/$ac_word; then |
| 2501 |
ac_cv_prog_STRIP="strip" |
| 2502 |
break |
| 2503 |
fi |
| 2504 |
done |
| 2505 |
IFS="$ac_save_ifs" |
| 2506 |
test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" |
| 2507 |
fi |
| 2508 |
fi |
| 2509 |
STRIP="$ac_cv_prog_STRIP" |
| 2510 |
if test -n "$STRIP"; then |
| 2511 |
echo "$ac_t""$STRIP" 1>&6 |
| 2512 |
else |
| 2513 |
echo "$ac_t""no" 1>&6 |
| 2514 |
fi |
| 2515 |
|
| 2516 |
else |
| 2517 |
STRIP=":" |
| 2518 |
fi |
| 2519 |
fi |
| 2520 |
|
| 2521 |
|
| 2522 |
enable_dlopen=no |
| 2523 |
enable_win32_dll=no |
| 2524 |
|
| 2525 |
# Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
| 2526 |
if test "${enable_libtool_lock+set}" = set; then |
| 2527 |
enableval="$enable_libtool_lock" |
| 2528 |
: |
| 2529 |
fi |
| 2530 |
|
| 2531 |
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 2532 |
|
| 2533 |
# Some flags need to be propagated to the compiler or linker for good |
| 2534 |
# libtool support. |
| 2535 |
case $host in |
| 2536 |
*-*-irix6*) |
| 2537 |
# Find out which ABI we are using. |
| 2538 |
echo '#line 2538 "configure"' > conftest.$ac_ext |
| 2539 |
if { (eval echo configure:2539: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 2540 |
case `/usr/bin/file conftest.$ac_objext` in |
| 2541 |
*32-bit*) |
| 2542 |
LD="${LD-ld} -32" |
| 2543 |
;; |
| 2544 |
*N32*) |
| 2545 |
LD="${LD-ld} -n32" |
| 2546 |
;; |
| 2547 |
*64-bit*) |
| 2548 |
LD="${LD-ld} -64" |
| 2549 |
;; |
| 2550 |
esac |
| 2551 |
fi |
| 2552 |
rm -rf conftest* |
| 2553 |
;; |
| 2554 |
|
| 2555 |
*-*-sco3.2v5*) |
| 2556 |
# On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 2557 |
SAVE_CFLAGS="$CFLAGS" |
| 2558 |
CFLAGS="$CFLAGS -belf" |
| 2559 |
echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 |
| 2560 |
echo "configure:2560: checking whether the C compiler needs -belf" >&5 |
| 2561 |
if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then |
| 2562 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 2563 |
else |
| 2564 |
|
| 2565 |
ac_ext=c |
| 2566 |
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 2567 |
ac_cpp='$CPP $CPPFLAGS' |
| 2568 |
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 2569 |
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 2570 |
cross_compiling=$ac_cv_prog_cc_cross |
| 2571 |
|
| 2572 |
cat > conftest.$ac_ext <<EOF |
| 2573 |
#line 2573 "configure" |
| 2574 |
#include "confdefs.h" |
| 2575 |
|
| 2576 |
int main() { |
| 2577 |
|
| 2578 |
; return 0; } |
| 2579 |
EOF |
| 2580 |
if { (eval echo configure:2580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2581 |
rm -rf conftest* |
| 2582 |
lt_cv_cc_needs_belf=yes |
| 2583 |
else |
| 2584 |
echo "configure: failed program was:" >&5 |
| 2585 |
cat conftest.$ac_ext >&5 |
| 2586 |
rm -rf conftest* |
| 2587 |
lt_cv_cc_needs_belf=no |
| 2588 |
fi |
| 2589 |
rm -f conftest* |
| 2590 |
ac_ext=c |
| 2591 |
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 2592 |
ac_cpp='$CPP $CPPFLAGS' |
| 2593 |
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 2594 |
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 2595 |
cross_compiling=$ac_cv_prog_cc_cross |
| 2596 |
|
| 2597 |
fi |
| 2598 |
|
| 2599 |
echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6 |
| 2600 |
if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 2601 |
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 2602 |
CFLAGS="$SAVE_CFLAGS" |
| 2603 |
fi |
| 2604 |
;; |
| 2605 |
|
| 2606 |
|
| 2607 |
esac |
| 2608 |
|
| 2609 |
# Sed substitution that helps us do robust quoting. It backslashifies |
| 2610 |
# metacharacters that are still active within double-quoted strings. |
| 2611 |
Xsed='sed -e s/^X//' |
| 2612 |
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
| 2613 |
|
| 2614 |
# Same as above, but do not quote variable references. |
| 2615 |
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
| 2616 |
|
| 2617 |
# Sed substitution to delay expansion of an escaped shell variable in a |
| 2618 |
# double_quote_subst'ed string. |
| 2619 |
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 2620 |
|
| 2621 |
# Constants: |
| 2622 |
rm="rm -f" |
| 2623 |
|
| 2624 |
# Global variables: |
| 2625 |
default_ofile=libtool |
| 2626 |
can_build_shared=yes |
| 2627 |
|
| 2628 |
# All known linkers require a `.a' archive for static linking (except M$VC, |
| 2629 |
# which needs '.lib'). |
| 2630 |
libext=a |
| 2631 |
ltmain="$ac_aux_dir/ltmain.sh" |
| 2632 |
ofile="$default_ofile" |
| 2633 |
with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 2634 |
need_locks="$enable_libtool_lock" |
| 2635 |
|
| 2636 |
old_CC="$CC" |
| 2637 |
old_CFLAGS="$CFLAGS" |
| 2638 |
|
| 2639 |
# Set sane defaults for various variables |
| 2640 |
test -z "$AR" && AR=ar |
| 2641 |
test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 2642 |
test -z "$AS" && AS=as |
| 2643 |
test -z "$CC" && CC=cc |
| 2644 |
test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 2645 |
test -z "$LD" && LD=ld |
| 2646 |
test -z "$LN_S" && LN_S="ln -s" |
| 2647 |
test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 2648 |
test -z "$NM" && NM=nm |
| 2649 |
test -z "$OBJDUMP" && OBJDUMP=objdump |
| 2650 |
test -z "$RANLIB" && RANLIB=: |
| 2651 |
test -z "$STRIP" && STRIP=: |
| 2652 |
test -z "$ac_objext" && ac_objext=o |
| 2653 |
|
| 2654 |
if test x"$host" != x"$build"; then |
| 2655 |
ac_tool_prefix=${host_alias}- |
| 2656 |
else |
| 2657 |
ac_tool_prefix= |
| 2658 |
fi |
| 2659 |
|
| 2660 |
# Transform linux* to *-*-linux-gnu*, to support old configure scripts. |
| 2661 |
case $host_os in |
| 2662 |
linux-gnu*) ;; |
| 2663 |
linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` |
| 2664 |
esac |
| 2665 |
|
| 2666 |
case $host_os in |
| 2667 |
aix3*) |
| 2668 |
# AIX sometimes has problems with the GCC collect2 program. For some |
| 2669 |
# reason, if we set the COLLECT_NAMES environment variable, the problems |
| 2670 |
# vanish in a puff of smoke. |
| 2671 |
if test "X${COLLECT_NAMES+set}" != Xset; then |
| 2672 |
COLLECT_NAMES= |
| 2673 |
export COLLECT_NAMES |
| 2674 |
fi |
| 2675 |
;; |
| 2676 |
esac |
| 2677 |
|
| 2678 |
# Determine commands to create old-style static archives. |
| 2679 |
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
| 2680 |
old_postinstall_cmds='chmod 644 $oldlib' |
| 2681 |
old_postuninstall_cmds= |
| 2682 |
|
| 2683 |
if test -n "$RANLIB"; then |
| 2684 |
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 2685 |
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
| 2686 |
fi |
| 2687 |
|
| 2688 |
# Allow CC to be a program name with arguments. |
| 2689 |
set dummy $CC |
| 2690 |
compiler="$2" |
| 2691 |
|
| 2692 |
echo $ac_n "checking for objdir""... $ac_c" 1>&6 |
| 2693 |
echo "configure:2693: checking for objdir" >&5 |
| 2694 |
rm -f .libs 2>/dev/null |
| 2695 |
mkdir .libs 2>/dev/null |
| 2696 |
if test -d .libs; then |
| 2697 |
objdir=.libs |
| 2698 |
else |
| 2699 |
# MS-DOS does not allow filenames that begin with a dot. |
| 2700 |
objdir=_libs |
| 2701 |
fi |
| 2702 |
rmdir .libs 2>/dev/null |
| 2703 |
echo "$ac_t""$objdir" 1>&6 |
| 2704 |
|
| 2705 |
|
| 2706 |
# Check whether --with-pic or --without-pic was given. |
| 2707 |
if test "${with_pic+set}" = set; then |
| 2708 |
withval="$with_pic" |
| 2709 |
pic_mode="$withval" |
| 2710 |
else |
| 2711 |
pic_mode=default |
| 2712 |
fi |
| 2713 |
|
| 2714 |
test -z "$pic_mode" && pic_mode=default |
| 2715 |
|
| 2716 |
# We assume here that the value for lt_cv_prog_cc_pic will not be cached |
| 2717 |
# in isolation, and that seeing it set (from the cache) indicates that |
| 2718 |
# the associated values are set (in the cache) correctly too. |
| 2719 |
echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6 |
| 2720 |
echo "configure:2720: checking for $compiler option to produce PIC" >&5 |
| 2721 |
if eval "test \"`echo '$''{'lt_cv_prog_cc_pic'+set}'`\" = set"; then |
| 2722 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 2723 |
else |
| 2724 |
lt_cv_prog_cc_pic= |
| 2725 |
lt_cv_prog_cc_shlib= |
| 2726 |
lt_cv_prog_cc_wl= |
| 2727 |
lt_cv_prog_cc_static= |
| 2728 |
lt_cv_prog_cc_no_builtin= |
| 2729 |
lt_cv_prog_cc_can_build_shared=$can_build_shared |
| 2730 |
|
| 2731 |
if test "$GCC" = yes; then |
| 2732 |
lt_cv_prog_cc_wl='-Wl,' |
| 2733 |
lt_cv_prog_cc_static='-static' |
| 2734 |
|
| 2735 |
case $host_os in |
| 2736 |
aix*) |
| 2737 |
# Below there is a dirty hack to force normal static linking with -ldl |
| 2738 |
# The problem is because libdl dynamically linked with both libc and |
| 2739 |
# libC (AIX C++ library), which obviously doesn't included in libraries |
| 2740 |
# list by gcc. This cause undefined symbols with -static flags. |
| 2741 |
# This hack allows C programs to be linked with "-static -ldl", but |
| 2742 |
# we not sure about C++ programs. |
| 2743 |
lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC" |
| 2744 |
;; |
| 2745 |
amigaos*) |
| 2746 |
# FIXME: we need at least 68020 code to build shared libraries, but |
| 2747 |
# adding the `-m68020' flag to GCC prevents building anything better, |
| 2748 |
# like `-m68040'. |
| 2749 |
lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4' |
| 2750 |
;; |
| 2751 |
beos* | irix5* | irix6* | osf3* | osf4* | osf5*) |
| 2752 |
# PIC is the default for these OSes. |
| 2753 |
;; |
| 2754 |
darwin* | rhapsody*) |
| 2755 |
# PIC is the default on this platform |
| 2756 |
# Common symbols not allowed in MH_DYLIB files |
| 2757 |
lt_cv_prog_cc_pic='-fno-common' |
| 2758 |
;; |
| 2759 |
cygwin* | mingw* | pw32* | os2*) |
| 2760 |
# This hack is so that the source file can tell whether it is being |
| 2761 |
# built for inclusion in a dll (and should export symbols for example). |
| 2762 |
lt_cv_prog_cc_pic='-DDLL_EXPORT' |
| 2763 |
;; |
| 2764 |
sysv4*MP*) |
| 2765 |
if test -d /usr/nec; then |
| 2766 |
lt_cv_prog_cc_pic=-Kconform_pic |
| 2767 |
fi |
| 2768 |
;; |
| 2769 |
*) |
| 2770 |
lt_cv_prog_cc_pic='-fPIC' |
| 2771 |
;; |
| 2772 |
esac |
| 2773 |
else |
| 2774 |
# PORTME Check for PIC flags for the system compiler. |
| 2775 |
case $host_os in |
| 2776 |
aix3* | aix4* | aix5*) |
| 2777 |
# All AIX code is PIC. |
| 2778 |
if test "$host_cpu" = ia64; then |
| 2779 |
# AIX 5 now supports IA64 processor |
| 2780 |
lt_cv_prog_cc_static='-Bstatic' |
| 2781 |
lt_cv_prog_cc_wl='-Wl,' |
| 2782 |
else |
| 2783 |
lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp' |
| 2784 |
fi |
| 2785 |
;; |
| 2786 |
|
| 2787 |
hpux9* | hpux10* | hpux11*) |
| 2788 |
# Is there a better lt_cv_prog_cc_static that works with the bundled CC? |
| 2789 |
lt_cv_prog_cc_wl='-Wl,' |
| 2790 |
lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive" |
| 2791 |
lt_cv_prog_cc_pic='+Z' |
| 2792 |
;; |
| 2793 |
|
| 2794 |
irix5* | irix6*) |
| 2795 |
lt_cv_prog_cc_wl='-Wl,' |
| 2796 |
lt_cv_prog_cc_static='-non_shared' |
| 2797 |
# PIC (with -KPIC) is the default. |
| 2798 |
;; |
| 2799 |
|
| 2800 |
cygwin* | mingw* | pw32* | os2*) |
| 2801 |
# This hack is so that the source file can tell whether it is being |
| 2802 |
# built for inclusion in a dll (and should export symbols for example). |
| 2803 |
lt_cv_prog_cc_pic='-DDLL_EXPORT' |
| 2804 |
;; |
| 2805 |
|
| 2806 |
newsos6) |
| 2807 |
lt_cv_prog_cc_pic='-KPIC' |
| 2808 |
lt_cv_prog_cc_static='-Bstatic' |
| 2809 |
;; |
| 2810 |
|
| 2811 |
osf3* | osf4* | osf5*) |
| 2812 |
# All OSF/1 code is PIC. |
| 2813 |
lt_cv_prog_cc_wl='-Wl,' |
| 2814 |
lt_cv_prog_cc_static='-non_shared' |
| 2815 |
;; |
| 2816 |
|
| 2817 |
sco3.2v5*) |
| 2818 |
lt_cv_prog_cc_pic='-Kpic' |
| 2819 |
lt_cv_prog_cc_static='-dn' |
| 2820 |
lt_cv_prog_cc_shlib='-belf' |
| 2821 |
;; |
| 2822 |
|
| 2823 |
solaris*) |
| 2824 |
lt_cv_prog_cc_pic='-KPIC' |
| 2825 |
lt_cv_prog_cc_static='-Bstatic' |
| 2826 |
lt_cv_prog_cc_wl='-Wl,' |
| 2827 |
;; |
| 2828 |
|
| 2829 |
sunos4*) |
| 2830 |
lt_cv_prog_cc_pic='-PIC' |
| 2831 |
lt_cv_prog_cc_static='-Bstatic' |
| 2832 |
lt_cv_prog_cc_wl='-Qoption ld ' |
| 2833 |
;; |
| 2834 |
|
| 2835 |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 2836 |
lt_cv_prog_cc_pic='-KPIC' |
| 2837 |
lt_cv_prog_cc_static='-Bstatic' |
| 2838 |
if test "x$host_vendor" = xsni; then |
| 2839 |
lt_cv_prog_cc_wl='-LD' |
| 2840 |
else |
| 2841 |
lt_cv_prog_cc_wl='-Wl,' |
| 2842 |
fi |
| 2843 |
;; |
| 2844 |
|
| 2845 |
uts4*) |
| 2846 |
lt_cv_prog_cc_pic='-pic' |
| 2847 |
lt_cv_prog_cc_static='-Bstatic' |
| 2848 |
;; |
| 2849 |
|
| 2850 |
sysv4*MP*) |
| 2851 |
if test -d /usr/nec ;then |
| 2852 |
lt_cv_prog_cc_pic='-Kconform_pic' |
| 2853 |
lt_cv_prog_cc_static='-Bstatic' |
| 2854 |
fi |
| 2855 |
;; |
| 2856 |
|
| 2857 |
*) |
| 2858 |
lt_cv_prog_cc_can_build_shared=no |
| 2859 |
;; |
| 2860 |
esac |
| 2861 |
fi |
| 2862 |
|
| 2863 |
fi |
| 2864 |
|
| 2865 |
if test -z "$lt_cv_prog_cc_pic"; then |
| 2866 |
echo "$ac_t""none" 1>&6 |
| 2867 |
else |
| 2868 |
echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6 |
| 2869 |
|
| 2870 |
# Check to make sure the pic_flag actually works. |
| 2871 |
echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6 |
| 2872 |
echo "configure:2872: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5 |
| 2873 |
if eval "test \"`echo '$''{'lt_cv_prog_cc_pic_works'+set}'`\" = set"; then |
| 2874 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 2875 |
else |
| 2876 |
save_CFLAGS="$CFLAGS" |
| 2877 |
CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC" |
| 2878 |
cat > conftest.$ac_ext <<EOF |
| 2879 |
#line 2879 "configure" |
| 2880 |
#include "confdefs.h" |
| 2881 |
|
| 2882 |
int main() { |
| 2883 |
|
| 2884 |
; return 0; } |
| 2885 |
EOF |
| 2886 |
if { (eval echo configure:2886: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 2887 |
rm -rf conftest* |
| 2888 |
case $host_os in |
| 2889 |
hpux9* | hpux10* | hpux11*) |
| 2890 |
# On HP-UX, both CC and GCC only warn that PIC is supported... then |
| 2891 |
# they create non-PIC objects. So, if there were any warnings, we |
| 2892 |
# assume that PIC is not supported. |
| 2893 |
if test -s conftest.err; then |
| 2894 |
lt_cv_prog_cc_pic_works=no |
| 2895 |
else |
| 2896 |
lt_cv_prog_cc_pic_works=yes |
| 2897 |
fi |
| 2898 |
;; |
| 2899 |
*) |
| 2900 |
lt_cv_prog_cc_pic_works=yes |
| 2901 |
;; |
| 2902 |
esac |
| 2903 |
|
| 2904 |
else |
| 2905 |
echo "configure: failed program was:" >&5 |
| 2906 |
cat conftest.$ac_ext >&5 |
| 2907 |
rm -rf conftest* |
| 2908 |
lt_cv_prog_cc_pic_works=no |
| 2909 |
|
| 2910 |
fi |
| 2911 |
rm -f conftest* |
| 2912 |
CFLAGS="$save_CFLAGS" |
| 2913 |
|
| 2914 |
fi |
| 2915 |
|
| 2916 |
|
| 2917 |
if test "X$lt_cv_prog_cc_pic_works" = Xno; then |
| 2918 |
lt_cv_prog_cc_pic= |
| 2919 |
lt_cv_prog_cc_can_build_shared=no |
| 2920 |
else |
| 2921 |
lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic" |
| 2922 |
fi |
| 2923 |
|
| 2924 |
echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6 |
| 2925 |
fi |
| 2926 |
|
| 2927 |
# Check for any special shared library compilation flags. |
| 2928 |
if test -n "$lt_cv_prog_cc_shlib"; then |
| 2929 |
echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2 |
| 2930 |
if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then : |
| 2931 |
else |
| 2932 |
echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2 |
| 2933 |
lt_cv_prog_cc_can_build_shared=no |
| 2934 |
fi |
| 2935 |
fi |
| 2936 |
|
| 2937 |
echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6 |
| 2938 |
echo "configure:2938: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5 |
| 2939 |
if eval "test \"`echo '$''{'lt_cv_prog_cc_static_works'+set}'`\" = set"; then |
| 2940 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 2941 |
else |
| 2942 |
lt_cv_prog_cc_static_works=no |
| 2943 |
save_LDFLAGS="$LDFLAGS" |
| 2944 |
LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static" |
| 2945 |
cat > conftest.$ac_ext <<EOF |
| 2946 |
#line 2946 "configure" |
| 2947 |
#include "confdefs.h" |
| 2948 |
|
| 2949 |
int main() { |
| 2950 |
|
| 2951 |
; return 0; } |
| 2952 |
EOF |
| 2953 |
if { (eval echo configure:2953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2954 |
rm -rf conftest* |
| 2955 |
lt_cv_prog_cc_static_works=yes |
| 2956 |
else |
| 2957 |
echo "configure: failed program was:" >&5 |
| 2958 |
cat conftest.$ac_ext >&5 |
| 2959 |
fi |
| 2960 |
rm -f conftest* |
| 2961 |
LDFLAGS="$save_LDFLAGS" |
| 2962 |
|
| 2963 |
fi |
| 2964 |
|
| 2965 |
|
| 2966 |
# Belt *and* braces to stop my trousers falling down: |
| 2967 |
test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static= |
| 2968 |
echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6 |
| 2969 |
|
| 2970 |
pic_flag="$lt_cv_prog_cc_pic" |
| 2971 |
special_shlib_compile_flags="$lt_cv_prog_cc_shlib" |
| 2972 |
wl="$lt_cv_prog_cc_wl" |
| 2973 |
link_static_flag="$lt_cv_prog_cc_static" |
| 2974 |
no_builtin_flag="$lt_cv_prog_cc_no_builtin" |
| 2975 |
can_build_shared="$lt_cv_prog_cc_can_build_shared" |
| 2976 |
|
| 2977 |
|
| 2978 |
# Check to see if options -o and -c are simultaneously supported by compiler |
| 2979 |
echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6 |
| 2980 |
echo "configure:2980: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 2981 |
if eval "test \"`echo '$''{'lt_cv_compiler_c_o'+set}'`\" = set"; then |
| 2982 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 2983 |
else |
| 2984 |
|
| 2985 |
$rm -r conftest 2>/dev/null |
| 2986 |
mkdir conftest |
| 2987 |
cd conftest |
| 2988 |
echo "int some_variable = 0;" > conftest.$ac_ext |
| 2989 |
mkdir out |
| 2990 |
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers |
| 2991 |
# that will create temporary files in the current directory regardless of |
| 2992 |
# the output directory. Thus, making CWD read-only will cause this test |
| 2993 |
# to fail, enabling locking or at least warning the user not to do parallel |
| 2994 |
# builds. |
| 2995 |
chmod -w . |
| 2996 |
save_CFLAGS="$CFLAGS" |
| 2997 |
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" |
| 2998 |
compiler_c_o=no |
| 2999 |
if { (eval echo configure:2999: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then |
| 3000 |
# The compiler can only warn and ignore the option if not recognized |
| 3001 |
# So say no if there are warnings |
| 3002 |
if test -s out/conftest.err; then |
| 3003 |
lt_cv_compiler_c_o=no |
| 3004 |
else |
| 3005 |
lt_cv_compiler_c_o=yes |
| 3006 |
fi |
| 3007 |
else |
| 3008 |
# Append any errors to the config.log. |
| 3009 |
cat out/conftest.err 1>&5 |
| 3010 |
lt_cv_compiler_c_o=no |
| 3011 |
fi |
| 3012 |
CFLAGS="$save_CFLAGS" |
| 3013 |
chmod u+w . |
| 3014 |
$rm conftest* out/* |
| 3015 |
rmdir out |
| 3016 |
cd .. |
| 3017 |
rmdir conftest |
| 3018 |
$rm -r conftest 2>/dev/null |
| 3019 |
|
| 3020 |
fi |
| 3021 |
|
| 3022 |
compiler_c_o=$lt_cv_compiler_c_o |
| 3023 |
echo "$ac_t""$compiler_c_o" 1>&6 |
| 3024 |
|
| 3025 |
if test x"$compiler_c_o" = x"yes"; then |
| 3026 |
# Check to see if we can write to a .lo |
| 3027 |
echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6 |
| 3028 |
echo "configure:3028: checking if $compiler supports -c -o file.lo" >&5 |
| 3029 |
if eval "test \"`echo '$''{'lt_cv_compiler_o_lo'+set}'`\" = set"; then |
| 3030 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 3031 |
else |
| 3032 |
|
| 3033 |
lt_cv_compiler_o_lo=no |
| 3034 |
save_CFLAGS="$CFLAGS" |
| 3035 |
CFLAGS="$CFLAGS -c -o conftest.lo" |
| 3036 |
cat > conftest.$ac_ext <<EOF |
| 3037 |
#line 3037 "configure" |
| 3038 |
#include "confdefs.h" |
| 3039 |
|
| 3040 |
int main() { |
| 3041 |
int some_variable = 0; |
| 3042 |
; return 0; } |
| 3043 |
EOF |
| 3044 |
if { (eval echo configure:3044: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 3045 |
rm -rf conftest* |
| 3046 |
# The compiler can only warn and ignore the option if not recognized |
| 3047 |
# So say no if there are warnings |
| 3048 |
if test -s conftest.err; then |
| 3049 |
lt_cv_compiler_o_lo=no |
| 3050 |
else |
| 3051 |
lt_cv_compiler_o_lo=yes |
| 3052 |
fi |
| 3053 |
|
| 3054 |
else |
| 3055 |
echo "configure: failed program was:" >&5 |
| 3056 |
cat conftest.$ac_ext >&5 |
| 3057 |
fi |
| 3058 |
rm -f conftest* |
| 3059 |
CFLAGS="$save_CFLAGS" |
| 3060 |
|
| 3061 |
fi |
| 3062 |
|
| 3063 |
compiler_o_lo=$lt_cv_compiler_o_lo |
| 3064 |
echo "$ac_t""$compiler_o_lo" 1>&6 |
| 3065 |
else |
| 3066 |
compiler_o_lo=no |
| 3067 |
fi |
| 3068 |
|
| 3069 |
# Check to see if we can do hard links to lock some files if needed |
| 3070 |
hard_links="nottested" |
| 3071 |
if test "$compiler_c_o" = no && test "$need_locks" != no; then |
| 3072 |
# do not overwrite the value of need_locks provided by the user |
| 3073 |
echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6 |
| 3074 |
echo "configure:3074: checking if we can lock with hard links" >&5 |
| 3075 |
hard_links=yes |
| 3076 |
$rm conftest* |
| 3077 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 3078 |
touch conftest.a |
| 3079 |
ln conftest.a conftest.b 2>&5 || hard_links=no |
| 3080 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 3081 |
echo "$ac_t""$hard_links" 1>&6 |
| 3082 |
if test "$hard_links" = no; then |
| 3083 |
echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2 |
| 3084 |
need_locks=warn |
| 3085 |
fi |
| 3086 |
else |
| 3087 |
need_locks=no |
| 3088 |
fi |
| 3089 |
|
| 3090 |
if test "$GCC" = yes; then |
| 3091 |
# Check to see if options -fno-rtti -fno-exceptions are supported by compiler |
| 3092 |
echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6 |
| 3093 |
echo "configure:3093: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 3094 |
echo "int some_variable = 0;" > conftest.$ac_ext |
| 3095 |
save_CFLAGS="$CFLAGS" |
| 3096 |
CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" |
| 3097 |
compiler_rtti_exceptions=no |
| 3098 |
cat > conftest.$ac_ext <<EOF |
| 3099 |
#line 3099 "configure" |
| 3100 |
#include "confdefs.h" |
| 3101 |
|
| 3102 |
int main() { |
| 3103 |
int some_variable = 0; |
| 3104 |
; return 0; } |
| 3105 |
EOF |
| 3106 |
if { (eval echo configure:3106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 3107 |
rm -rf conftest* |
| 3108 |
# The compiler can only warn and ignore the option if not recognized |
| 3109 |
# So say no if there are warnings |
| 3110 |
if test -s conftest.err; then |
| 3111 |
compiler_rtti_exceptions=no |
| 3112 |
else |
| 3113 |
compiler_rtti_exceptions=yes |
| 3114 |
fi |
| 3115 |
|
| 3116 |
else |
| 3117 |
echo "configure: failed program was:" >&5 |
| 3118 |
cat conftest.$ac_ext >&5 |
| 3119 |
fi |
| 3120 |
rm -f conftest* |
| 3121 |
CFLAGS="$save_CFLAGS" |
| 3122 |
echo "$ac_t""$compiler_rtti_exceptions" 1>&6 |
| 3123 |
|
| 3124 |
if test "$compiler_rtti_exceptions" = "yes"; then |
| 3125 |
no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions' |
| 3126 |
else |
| 3127 |
no_builtin_flag=' -fno-builtin' |
| 3128 |
fi |
| 3129 |
fi |
| 3130 |
|
| 3131 |
# See if the linker supports building shared libraries. |
| 3132 |
echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6 |
| 3133 |
echo "configure:3133: checking whether the linker ($LD) supports shared libraries" >&5 |
| 3134 |
|
| 3135 |
allow_undefined_flag= |
| 3136 |
no_undefined_flag= |
| 3137 |
need_lib_prefix=unknown |
| 3138 |
need_version=unknown |
| 3139 |
# when you set need_version to no, make sure it does not cause -set_version |
| 3140 |
# flags to be left without arguments |
| 3141 |
archive_cmds= |
| 3142 |
archive_expsym_cmds= |
| 3143 |
old_archive_from_new_cmds= |
| 3144 |
old_archive_from_expsyms_cmds= |
| 3145 |
export_dynamic_flag_spec= |
| 3146 |
whole_archive_flag_spec= |
| 3147 |
thread_safe_flag_spec= |
| 3148 |
hardcode_into_libs=no |
| 3149 |
hardcode_libdir_flag_spec= |
| 3150 |
hardcode_libdir_separator= |
| 3151 |
hardcode_direct=no |
| 3152 |
hardcode_minus_L=no |
| 3153 |
hardcode_shlibpath_var=unsupported |
| 3154 |
runpath_var= |
| 3155 |
link_all_deplibs=unknown |
| 3156 |
always_export_symbols=no |
| 3157 |
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 3158 |
# include_expsyms should be a list of space-separated symbols to be *always* |
| 3159 |
# included in the symbol list |
| 3160 |
include_expsyms= |
| 3161 |
# exclude_expsyms can be an egrep regular expression of symbols to exclude |
| 3162 |
# it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 3163 |
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 3164 |
# as well as any symbol that contains `d'. |
| 3165 |
exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
| 3166 |
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 3167 |
# platforms (ab)use it in PIC code, but their linkers get confused if |
| 3168 |
# the symbol is explicitly referenced. Since portable code cannot |
| 3169 |
# rely on this symbol name, it's probably fine to never include it in |
| 3170 |
# preloaded symbol tables. |
| 3171 |
extract_expsyms_cmds= |
| 3172 |
|
| 3173 |
case $host_os in |
| 3174 |
cygwin* | mingw* | pw32* ) |
| 3175 |
# FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 3176 |
# When not using gcc, we currently assume that we are using |
| 3177 |
# Microsoft Visual C++. |
| 3178 |
if test "$GCC" != yes; then |
| 3179 |
with_gnu_ld=no |
| 3180 |
fi |
| 3181 |
;; |
| 3182 |
|
| 3183 |
esac |
| 3184 |
|
| 3185 |
ld_shlibs=yes |
| 3186 |
if test "$with_gnu_ld" = yes; then |
| 3187 |
# If archive_cmds runs LD, not CC, wlarc should be empty |
| 3188 |
wlarc='${wl}' |
| 3189 |
|
| 3190 |
# See if GNU ld supports shared libraries. |
| 3191 |
case $host_os in |
| 3192 |
aix3* | aix4* | aix5*) |
| 3193 |
# On AIX, the GNU linker is very broken |
| 3194 |
# Note:Check GNU linker on AIX 5-IA64 when/if it becomes available. |
| 3195 |
ld_shlibs=no |
| 3196 |
cat <<EOF 1>&2 |
| 3197 |
|
| 3198 |
*** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 3199 |
*** to be unable to reliably create shared libraries on AIX. |
| 3200 |
*** Therefore, libtool is disabling shared libraries support. If you |
| 3201 |
*** really care for shared libraries, you may want to modify your PATH |
| 3202 |
*** so that a non-GNU linker is found, and then restart. |
| 3203 |
|
| 3204 |
EOF |
| 3205 |
;; |
| 3206 |
|
| 3207 |
amigaos*) |
| 3208 |
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)' |
| 3209 |
hardcode_libdir_flag_spec='-L$libdir' |
| 3210 |
hardcode_minus_L=yes |
| 3211 |
|
| 3212 |
# Samuel A. Falvo II <[email protected]> reports |
| 3213 |
# that the semantics of dynamic libraries on AmigaOS, at least up |
| 3214 |
# to version 4, is to share data among multiple programs linked |
| 3215 |
# with the same dynamic library. Since this doesn't match the |
| 3216 |
# behavior of shared libraries on other platforms, we can use |
| 3217 |
# them. |
| 3218 |
ld_shlibs=no |
| 3219 |
;; |
| 3220 |
|
| 3221 |
beos*) |
| 3222 |
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
| 3223 |
allow_undefined_flag=unsupported |
| 3224 |
# Joseph Beckenbach <[email protected]> says some releases of gcc |
| 3225 |
# support --undefined. This deserves some investigation. FIXME |
| 3226 |
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 3227 |
else |
| 3228 |
ld_shlibs=no |
| 3229 |
fi |
| 3230 |
;; |
| 3231 |
|
| 3232 |
cygwin* | mingw* | pw32*) |
| 3233 |
# hardcode_libdir_flag_spec is actually meaningless, as there is |
| 3234 |
# no search path for DLLs. |
| 3235 |
hardcode_libdir_flag_spec='-L$libdir' |
| 3236 |
allow_undefined_flag=unsupported |
| 3237 |
always_export_symbols=yes |
| 3238 |
|
| 3239 |
extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ |
| 3240 |
sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ |
| 3241 |
test -f $output_objdir/impgen.exe || (cd $output_objdir && \ |
| 3242 |
if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ |
| 3243 |
else $CC -o impgen impgen.c ; fi)~ |
| 3244 |
$output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' |
| 3245 |
|
| 3246 |
old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' |
| 3247 |
|
| 3248 |
# cygwin and mingw dlls have different entry points and sets of symbols |
| 3249 |
# to exclude. |
| 3250 |
# FIXME: what about values for MSVC? |
| 3251 |
dll_entry=__cygwin_dll_entry@12 |
| 3252 |
dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ |
| 3253 |
case $host_os in |
| 3254 |
mingw*) |
| 3255 |
# mingw values |
| 3256 |
dll_entry=_DllMainCRTStartup@12 |
| 3257 |
dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ |
| 3258 |
;; |
| 3259 |
esac |
| 3260 |
|
| 3261 |
# mingw and cygwin differ, and it's simplest to just exclude the union |
| 3262 |
# of the two symbol sets. |
| 3263 |
dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 |
| 3264 |
|
| 3265 |
# recent cygwin and mingw systems supply a stub DllMain which the user |
| 3266 |
# can override, but on older systems we have to supply one (in ltdll.c) |
| 3267 |
if test "x$lt_cv_need_dllmain" = "xyes"; then |
| 3268 |
ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " |
| 3269 |
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~ |
| 3270 |
test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' |
| 3271 |
else |
| 3272 |
ltdll_obj= |
| 3273 |
ltdll_cmds= |
| 3274 |
fi |
| 3275 |
|
| 3276 |
# Extract the symbol export list from an `--export-all' def file, |
| 3277 |
# then regenerate the def file from the symbol export list, so that |
| 3278 |
# the compiled dll only exports the symbol export list. |
| 3279 |
# Be careful not to strip the DATA tag left be newer dlltools. |
| 3280 |
export_symbols_cmds="$ltdll_cmds"' |
| 3281 |
$DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ |
| 3282 |
sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' |
| 3283 |
|
| 3284 |
# If the export-symbols file already is a .def file (1st line |
| 3285 |
# is EXPORTS), use it as is. |
| 3286 |
# If DATA tags from a recent dlltool are present, honour them! |
| 3287 |
archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then |
| 3288 |
cp $export_symbols $output_objdir/$soname-def; |
| 3289 |
else |
| 3290 |
echo EXPORTS > $output_objdir/$soname-def; |
| 3291 |
_lt_hint=1; |
| 3292 |
cat $export_symbols | while read symbol; do |
| 3293 |
set dummy \$symbol; |
| 3294 |
case \$# in |
| 3295 |
2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; |
| 3296 |
*) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;; |
| 3297 |
esac; |
| 3298 |
_lt_hint=`expr 1 + \$_lt_hint`; |
| 3299 |
done; |
| 3300 |
fi~ |
| 3301 |
'"$ltdll_cmds"' |
| 3302 |
$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~ |
| 3303 |
$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~ |
| 3304 |
$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~ |
| 3305 |
$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~ |
| 3306 |
$CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' |
| 3307 |
;; |
| 3308 |
|
| 3309 |
netbsd*) |
| 3310 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 3311 |
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 3312 |
wlarc= |
| 3313 |
else |
| 3314 |
archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 3315 |
archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 3316 |
fi |
| 3317 |
;; |
| 3318 |
|
| 3319 |
solaris* | sysv5*) |
| 3320 |
if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then |
| 3321 |
ld_shlibs=no |
| 3322 |
cat <<EOF 1>&2 |
| 3323 |
|
| 3324 |
*** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 3325 |
*** create shared libraries on Solaris systems. Therefore, libtool |
| 3326 |
*** is disabling shared libraries support. We urge you to upgrade GNU |
| 3327 |
*** binutils to release 2.9.1 or newer. Another option is to modify |
| 3328 |
*** your PATH or compiler configuration so that the native linker is |
| 3329 |
*** used, and then restart. |
| 3330 |
|
| 3331 |
EOF |
| 3332 |
elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
| 3333 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 3334 |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 3335 |
else |
| 3336 |
ld_shlibs=no |
| 3337 |
fi |
| 3338 |
;; |
| 3339 |
|
| 3340 |
sunos4*) |
| 3341 |
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 3342 |
wlarc= |
| 3343 |
hardcode_direct=yes |
| 3344 |
hardcode_shlibpath_var=no |
| 3345 |
;; |
| 3346 |
|
| 3347 |
*) |
| 3348 |
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
| 3349 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 3350 |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 3351 |
else |
| 3352 |
ld_shlibs=no |
| 3353 |
fi |
| 3354 |
;; |
| 3355 |
esac |
| 3356 |
|
| 3357 |
if test "$ld_shlibs" = yes; then |
| 3358 |
runpath_var=LD_RUN_PATH |
| 3359 |
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
| 3360 |
export_dynamic_flag_spec='${wl}--export-dynamic' |
| 3361 |
case $host_os in |
| 3362 |
cygwin* | mingw* | pw32*) |
| 3363 |
# dlltool doesn't understand --whole-archive et. al. |
| 3364 |
whole_archive_flag_spec= |
| 3365 |
;; |
| 3366 |
*) |
| 3367 |
# ancient GNU ld didn't support --whole-archive et. al. |
| 3368 |
if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then |
| 3369 |
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 3370 |
else |
| 3371 |
whole_archive_flag_spec= |
| 3372 |
fi |
| 3373 |
;; |
| 3374 |
esac |
| 3375 |
fi |
| 3376 |
else |
| 3377 |
# PORTME fill in a description of your system's linker (not GNU ld) |
| 3378 |
case $host_os in |
| 3379 |
aix3*) |
| 3380 |
allow_undefined_flag=unsupported |
| 3381 |
always_export_symbols=yes |
| 3382 |
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' |
| 3383 |
# Note: this linker hardcodes the directories in LIBPATH if there |
| 3384 |
# are no directories specified by -L. |
| 3385 |
hardcode_minus_L=yes |
| 3386 |
if test "$GCC" = yes && test -z "$link_static_flag"; then |
| 3387 |
# Neither direct hardcoding nor static linking is supported with a |
| 3388 |
# broken collect2. |
| 3389 |
hardcode_direct=unsupported |
| 3390 |
fi |
| 3391 |
;; |
| 3392 |
|
| 3393 |
aix4* | aix5*) |
| 3394 |
# When large executables or shared objects are built, AIX ld can |
| 3395 |
# have problems creating the table of contents. If linking a library |
| 3396 |
# or program results in "error TOC overflow" add -mminimal-toc to |
| 3397 |
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 3398 |
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 3399 |
|
| 3400 |
archive_cmds='' |
| 3401 |
hardcode_libdir_separator=':' |
| 3402 |
if test "$GCC" = yes; then |
| 3403 |
collect2name=`${CC} -print-prog-name=collect2` |
| 3404 |
if test -f "$collect2name" && \ |
| 3405 |
strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 3406 |
then |
| 3407 |
# We have reworked collect2 |
| 3408 |
hardcode_direct=yes |
| 3409 |
else |
| 3410 |
# We have old collect2 |
| 3411 |
hardcode_direct=unsupported |
| 3412 |
# It fails to find uninstalled libraries when the uninstalled |
| 3413 |
# path is not listed in the libpath. Setting hardcode_minus_L |
| 3414 |
# to unsupported forces relinking |
| 3415 |
hardcode_minus_L=yes |
| 3416 |
hardcode_libdir_flag_spec='-L$libdir' |
| 3417 |
hardcode_libdir_separator= |
| 3418 |
fi |
| 3419 |
shared_flag='-shared' |
| 3420 |
else |
| 3421 |
if test "$host_cpu" = ia64; then |
| 3422 |
shared_flag='-G' |
| 3423 |
else |
| 3424 |
shared_flag='${wl}-bM:SRE' |
| 3425 |
fi |
| 3426 |
hardcode_direct=yes |
| 3427 |
fi |
| 3428 |
|
| 3429 |
if test "$host_cpu" = ia64; then |
| 3430 |
# On IA64, the linker does run time linking by default, so we don't |
| 3431 |
# have to do anything special. |
| 3432 |
aix_use_runtimelinking=no |
| 3433 |
exp_sym_flag='-Bexport' |
| 3434 |
no_entry_flag="" |
| 3435 |
else |
| 3436 |
# Test if we are trying to use run time linking, or normal AIX style linking. |
| 3437 |
# If -brtl is somewhere in LDFLAGS, we need to do run time linking. |
| 3438 |
aix_use_runtimelinking=no |
| 3439 |
for ld_flag in $LDFLAGS; do |
| 3440 |
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl" ); then |
| 3441 |
aix_use_runtimelinking=yes |
| 3442 |
break |
| 3443 |
fi |
| 3444 |
done |
| 3445 |
exp_sym_flag='-bexport' |
| 3446 |
no_entry_flag='-bnoentry' |
| 3447 |
fi |
| 3448 |
# It seems that -bexpall can do strange things, so it is better to |
| 3449 |
# generate a list of symbols to export. |
| 3450 |
always_export_symbols=yes |
| 3451 |
if test "$aix_use_runtimelinking" = yes; then |
| 3452 |
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib' |
| 3453 |
allow_undefined_flag=' -Wl,-G' |
| 3454 |
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" |
| 3455 |
else |
| 3456 |
if test "$host_cpu" = ia64; then |
| 3457 |
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 3458 |
allow_undefined_flag="-znodefs" |
| 3459 |
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" |
| 3460 |
else |
| 3461 |
hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib' |
| 3462 |
# Warning - without using the other run time loading flags, -berok will |
| 3463 |
# link without error, but may produce a broken library. |
| 3464 |
allow_undefined_flag='${wl}-berok' |
| 3465 |
# This is a bit strange, but is similar to how AIX traditionally builds |
| 3466 |
# it's shared libraries. |
| 3467 |
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' |
| 3468 |
fi |
| 3469 |
fi |
| 3470 |
;; |
| 3471 |
|
| 3472 |
amigaos*) |
| 3473 |
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)' |
| 3474 |
hardcode_libdir_flag_spec='-L$libdir' |
| 3475 |
hardcode_minus_L=yes |
| 3476 |
# see comment about different semantics on the GNU ld section |
| 3477 |
ld_shlibs=no |
| 3478 |
;; |
| 3479 |
|
| 3480 |
cygwin* | mingw* | pw32*) |
| 3481 |
# When not using gcc, we currently assume that we are using |
| 3482 |
# Microsoft Visual C++. |
| 3483 |
# hardcode_libdir_flag_spec is actually meaningless, as there is |
| 3484 |
# no search path for DLLs. |
| 3485 |
hardcode_libdir_flag_spec=' ' |
| 3486 |
allow_undefined_flag=unsupported |
| 3487 |
# Tell ltmain to make .lib files, not .a files. |
| 3488 |
libext=lib |
| 3489 |
# FIXME: Setting linknames here is a bad hack. |
| 3490 |
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 3491 |
# The linker will automatically build a .lib file if we build a DLL. |
| 3492 |
old_archive_from_new_cmds='true' |
| 3493 |
# FIXME: Should let the user specify the lib program. |
| 3494 |
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 3495 |
fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 3496 |
;; |
| 3497 |
|
| 3498 |
darwin* | rhapsody*) |
| 3499 |
allow_undefined_flag='-undefined suppress' |
| 3500 |
# FIXME: Relying on posixy $() will cause problems for |
| 3501 |
# cross-compilation, but unfortunately the echo tests do not |
| 3502 |
# yet detect zsh echo's removal of \ escapes. |
| 3503 |
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)' |
| 3504 |
# We need to add '_' to the symbols in $export_symbols first |
| 3505 |
#archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols' |
| 3506 |
hardcode_direct=yes |
| 3507 |
hardcode_shlibpath_var=no |
| 3508 |
whole_archive_flag_spec='-all_load $convenience' |
| 3509 |
;; |
| 3510 |
|
| 3511 |
freebsd1*) |
| 3512 |
ld_shlibs=no |
| 3513 |
;; |
| 3514 |
|
| 3515 |
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 3516 |
# support. Future versions do this automatically, but an explicit c++rt0.o |
| 3517 |
# does not break anything, and helps significantly (at the cost of a little |
| 3518 |
# extra space). |
| 3519 |
freebsd2.2*) |
| 3520 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 3521 |
hardcode_libdir_flag_spec='-R$libdir' |
| 3522 |
hardcode_direct=yes |
| 3523 |
hardcode_shlibpath_var=no |
| 3524 |
;; |
| 3525 |
|
| 3526 |
# Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 3527 |
freebsd2*) |
| 3528 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 3529 |
hardcode_direct=yes |
| 3530 |
hardcode_minus_L=yes |
| 3531 |
hardcode_shlibpath_var=no |
| 3532 |
;; |
| 3533 |
|
| 3534 |
# FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 3535 |
freebsd*) |
| 3536 |
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 3537 |
hardcode_libdir_flag_spec='-R$libdir' |
| 3538 |
hardcode_direct=yes |
| 3539 |
hardcode_shlibpath_var=no |
| 3540 |
;; |
| 3541 |
|
| 3542 |
hpux9* | hpux10* | hpux11*) |
| 3543 |
case $host_os in |
| 3544 |
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' ;; |
| 3545 |
*) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; |
| 3546 |
esac |
| 3547 |
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 3548 |
hardcode_libdir_separator=: |
| 3549 |
hardcode_direct=yes |
| 3550 |
hardcode_minus_L=yes # Not in the search PATH, but as the default |
| 3551 |
# location of the library. |
| 3552 |
export_dynamic_flag_spec='${wl}-E' |
| 3553 |
;; |
| 3554 |
|
| 3555 |
irix5* | irix6*) |
| 3556 |
if test "$GCC" = yes; then |
| 3557 |
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' |
| 3558 |
else |
| 3559 |
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' |
| 3560 |
fi |
| 3561 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 3562 |
hardcode_libdir_separator=: |
| 3563 |
link_all_deplibs=yes |
| 3564 |
;; |
| 3565 |
|
| 3566 |
netbsd*) |
| 3567 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 3568 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 3569 |
else |
| 3570 |
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 3571 |
fi |
| 3572 |
hardcode_libdir_flag_spec='-R$libdir' |
| 3573 |
hardcode_direct=yes |
| 3574 |
hardcode_shlibpath_var=no |
| 3575 |
;; |
| 3576 |
|
| 3577 |
newsos6) |
| 3578 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts' |
| 3579 |
hardcode_direct=yes |
| 3580 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 3581 |
hardcode_libdir_separator=: |
| 3582 |
hardcode_shlibpath_var=no |
| 3583 |
;; |
| 3584 |
|
| 3585 |
openbsd*) |
| 3586 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 3587 |
hardcode_libdir_flag_spec='-R$libdir' |
| 3588 |
hardcode_direct=yes |
| 3589 |
hardcode_shlibpath_var=no |
| 3590 |
;; |
| 3591 |
|
| 3592 |
os2*) |
| 3593 |
hardcode_libdir_flag_spec='-L$libdir' |
| 3594 |
hardcode_minus_L=yes |
| 3595 |
allow_undefined_flag=unsupported |
| 3596 |
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' |
| 3597 |
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 3598 |
;; |
| 3599 |
|
| 3600 |
osf3*) |
| 3601 |
if test "$GCC" = yes; then |
| 3602 |
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 3603 |
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' |
| 3604 |
else |
| 3605 |
allow_undefined_flag=' -expect_unresolved \*' |
| 3606 |
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' |
| 3607 |
fi |
| 3608 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 3609 |
hardcode_libdir_separator=: |
| 3610 |
;; |
| 3611 |
|
| 3612 |
osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 3613 |
if test "$GCC" = yes; then |
| 3614 |
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 3615 |
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' |
| 3616 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 3617 |
else |
| 3618 |
allow_undefined_flag=' -expect_unresolved \*' |
| 3619 |
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' |
| 3620 |
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
| 3621 |
$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' |
| 3622 |
|
| 3623 |
#Both c and cxx compiler support -rpath directly |
| 3624 |
hardcode_libdir_flag_spec='-rpath $libdir' |
| 3625 |
fi |
| 3626 |
hardcode_libdir_separator=: |
| 3627 |
;; |
| 3628 |
|
| 3629 |
sco3.2v5*) |
| 3630 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 3631 |
hardcode_shlibpath_var=no |
| 3632 |
runpath_var=LD_RUN_PATH |
| 3633 |
hardcode_runpath_var=yes |
| 3634 |
;; |
| 3635 |
|
| 3636 |
solaris*) |
| 3637 |
no_undefined_flag=' -z defs' |
| 3638 |
# $CC -shared without GNU ld will not create a library from C++ |
| 3639 |
# object files and a static libstdc++, better avoid it by now |
| 3640 |
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 3641 |
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 3642 |
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 3643 |
hardcode_libdir_flag_spec='-R$libdir' |
| 3644 |
hardcode_shlibpath_var=no |
| 3645 |
case $host_os in |
| 3646 |
solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 3647 |
*) # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 3648 |
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
| 3649 |
esac |
| 3650 |
link_all_deplibs=yes |
| 3651 |
;; |
| 3652 |
|
| 3653 |
sunos4*) |
| 3654 |
if test "x$host_vendor" = xsequent; then |
| 3655 |
# Use $CC to link under sequent, because it throws in some extra .o |
| 3656 |
# files that make .init and .fini sections work. |
| 3657 |
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 3658 |
else |
| 3659 |
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 3660 |
fi |
| 3661 |
hardcode_libdir_flag_spec='-L$libdir' |
| 3662 |
hardcode_direct=yes |
| 3663 |
hardcode_minus_L=yes |
| 3664 |
hardcode_shlibpath_var=no |
| 3665 |
;; |
| 3666 |
|
| 3667 |
sysv4) |
| 3668 |
if test "x$host_vendor" = xsno; then |
| 3669 |
archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts' |
| 3670 |
hardcode_direct=yes # is this really true??? |
| 3671 |
else |
| 3672 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 3673 |
hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 3674 |
fi |
| 3675 |
runpath_var='LD_RUN_PATH' |
| 3676 |
hardcode_shlibpath_var=no |
| 3677 |
;; |
| 3678 |
|
| 3679 |
sysv4.3*) |
| 3680 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 3681 |
hardcode_shlibpath_var=no |
| 3682 |
export_dynamic_flag_spec='-Bexport' |
| 3683 |
;; |
| 3684 |
|
| 3685 |
sysv5*) |
| 3686 |
no_undefined_flag=' -z text' |
| 3687 |
# $CC -shared without GNU ld will not create a library from C++ |
| 3688 |
# object files and a static libstdc++, better avoid it by now |
| 3689 |
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 3690 |
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 3691 |
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 3692 |
hardcode_libdir_flag_spec= |
| 3693 |
hardcode_shlibpath_var=no |
| 3694 |
runpath_var='LD_RUN_PATH' |
| 3695 |
;; |
| 3696 |
|
| 3697 |
uts4*) |
| 3698 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 3699 |
hardcode_libdir_flag_spec='-L$libdir' |
| 3700 |
hardcode_shlibpath_var=no |
| 3701 |
;; |
| 3702 |
|
| 3703 |
dgux*) |
| 3704 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 3705 |
hardcode_libdir_flag_spec='-L$libdir' |
| 3706 |
hardcode_shlibpath_var=no |
| 3707 |
;; |
| 3708 |
|
| 3709 |
sysv4*MP*) |
| 3710 |
if test -d /usr/nec; then |
| 3711 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 3712 |
hardcode_shlibpath_var=no |
| 3713 |
runpath_var=LD_RUN_PATH |
| 3714 |
hardcode_runpath_var=yes |
| 3715 |
ld_shlibs=yes |
| 3716 |
fi |
| 3717 |
;; |
| 3718 |
|
| 3719 |
sysv4.2uw2*) |
| 3720 |
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 3721 |
hardcode_direct=yes |
| 3722 |
hardcode_minus_L=no |
| 3723 |
hardcode_shlibpath_var=no |
| 3724 |
hardcode_runpath_var=yes |
| 3725 |
runpath_var=LD_RUN_PATH |
| 3726 |
;; |
| 3727 |
|
| 3728 |
sysv5uw7* | unixware7*) |
| 3729 |
no_undefined_flag='${wl}-z ${wl}text' |
| 3730 |
if test "$GCC" = yes; then |
| 3731 |
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 3732 |
else |
| 3733 |
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 3734 |
fi |
| 3735 |
runpath_var='LD_RUN_PATH' |
| 3736 |
hardcode_shlibpath_var=no |
| 3737 |
;; |
| 3738 |
|
| 3739 |
*) |
| 3740 |
ld_shlibs=no |
| 3741 |
;; |
| 3742 |
esac |
| 3743 |
fi |
| 3744 |
echo "$ac_t""$ld_shlibs" 1>&6 |
| 3745 |
test "$ld_shlibs" = no && can_build_shared=no |
| 3746 |
|
| 3747 |
# Check hardcoding attributes. |
| 3748 |
echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6 |
| 3749 |
echo "configure:3749: checking how to hardcode library paths into programs" >&5 |
| 3750 |
hardcode_action= |
| 3751 |
if test -n "$hardcode_libdir_flag_spec" || \ |
| 3752 |
test -n "$runpath_var"; then |
| 3753 |
|
| 3754 |
# We can hardcode non-existant directories. |
| 3755 |
if test "$hardcode_direct" != no && |
| 3756 |
# If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 3757 |
# have to relink, otherwise we might link with an installed library |
| 3758 |
# when we should be linking with a yet-to-be-installed one |
| 3759 |
## test "$hardcode_shlibpath_var" != no && |
| 3760 |
test "$hardcode_minus_L" != no; then |
| 3761 |
# Linking always hardcodes the temporary library directory. |
| 3762 |
hardcode_action=relink |
| 3763 |
else |
| 3764 |
# We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 3765 |
hardcode_action=immediate |
| 3766 |
fi |
| 3767 |
else |
| 3768 |
# We cannot hardcode anything, or else we can only hardcode existing |
| 3769 |
# directories. |
| 3770 |
hardcode_action=unsupported |
| 3771 |
fi |
| 3772 |
echo "$ac_t""$hardcode_action" 1>&6 |
| 3773 |
|
| 3774 |
striplib= |
| 3775 |
old_striplib= |
| 3776 |
echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6 |
| 3777 |
echo "configure:3777: checking whether stripping libraries is possible" >&5 |
| 3778 |
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 3779 |
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 3780 |
test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 3781 |
echo "$ac_t""yes" 1>&6 |
| 3782 |
else |
| 3783 |
echo "$ac_t""no" 1>&6 |
| 3784 |
fi |
| 3785 |
|
| 3786 |
reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 3787 |
test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 3788 |
|
| 3789 |
# PORTME Fill in your ld.so characteristics |
| 3790 |
echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6 |
| 3791 |
echo "configure:3791: checking dynamic linker characteristics" >&5 |
| 3792 |
library_names_spec= |
| 3793 |
libname_spec='lib$name' |
| 3794 |
soname_spec= |
| 3795 |
postinstall_cmds= |
| 3796 |
postuninstall_cmds= |
| 3797 |
finish_cmds= |
| 3798 |
finish_eval= |
| 3799 |
shlibpath_var= |
| 3800 |
shlibpath_overrides_runpath=unknown |
| 3801 |
version_type=none |
| 3802 |
dynamic_linker="$host_os ld.so" |
| 3803 |
sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 3804 |
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 3805 |
|
| 3806 |
case $host_os in |
| 3807 |
aix3*) |
| 3808 |
version_type=linux |
| 3809 |
library_names_spec='${libname}${release}.so$versuffix $libname.a' |
| 3810 |
shlibpath_var=LIBPATH |
| 3811 |
|
| 3812 |
# AIX has no versioning support, so we append a major version to the name. |
| 3813 |
soname_spec='${libname}${release}.so$major' |
| 3814 |
;; |
| 3815 |
|
| 3816 |
aix4* | aix5*) |
| 3817 |
version_type=linux |
| 3818 |
if test "$host_cpu" = ia64; then |
| 3819 |
# AIX 5 supports IA64 |
| 3820 |
library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' |
| 3821 |
shlibpath_var=LD_LIBRARY_PATH |
| 3822 |
else |
| 3823 |
# With GCC up to 2.95.x, collect2 would create an import file |
| 3824 |
# for dependence libraries. The import file would start with |
| 3825 |
# the line `#! .'. This would cause the generated library to |
| 3826 |
# depend on `.', always an invalid library. This was fixed in |
| 3827 |
# development snapshots of GCC prior to 3.0. |
| 3828 |
case $host_os in |
| 3829 |
aix4 | aix4.[01] | aix4.[01].*) |
| 3830 |
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 3831 |
echo ' yes ' |
| 3832 |
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 3833 |
: |
| 3834 |
else |
| 3835 |
can_build_shared=no |
| 3836 |
fi |
| 3837 |
;; |
| 3838 |
esac |
| 3839 |
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 3840 |
# soname into executable. Probably we can add versioning support to |
| 3841 |
# collect2, so additional links can be useful in future. |
| 3842 |
if test "$aix_use_runtimelinking" = yes; then |
| 3843 |
# If using run time linking (on AIX 4.2 or later) use lib<name>.so instead of |
| 3844 |
# lib<name>.a to let people know that these are not typical AIX shared libraries. |
| 3845 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 3846 |
else |
| 3847 |
# We preserve .a as extension for shared libraries through AIX4.2 |
| 3848 |
# and later when we are not doing run time linking. |
| 3849 |
library_names_spec='${libname}${release}.a $libname.a' |
| 3850 |
soname_spec='${libname}${release}.so$major' |
| 3851 |
fi |
| 3852 |
shlibpath_var=LIBPATH |
| 3853 |
deplibs_check_method=pass_all |
| 3854 |
fi |
| 3855 |
;; |
| 3856 |
|
| 3857 |
amigaos*) |
| 3858 |
library_names_spec='$libname.ixlibrary $libname.a' |
| 3859 |
# Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 3860 |
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' |
| 3861 |
;; |
| 3862 |
|
| 3863 |
beos*) |
| 3864 |
library_names_spec='${libname}.so' |
| 3865 |
dynamic_linker="$host_os ld.so" |
| 3866 |
shlibpath_var=LIBRARY_PATH |
| 3867 |
;; |
| 3868 |
|
| 3869 |
bsdi4*) |
| 3870 |
version_type=linux |
| 3871 |
need_version=no |
| 3872 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 3873 |
soname_spec='${libname}${release}.so$major' |
| 3874 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 3875 |
shlibpath_var=LD_LIBRARY_PATH |
| 3876 |
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 3877 |
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 3878 |
export_dynamic_flag_spec=-rdynamic |
| 3879 |
# the default ld.so.conf also contains /usr/contrib/lib and |
| 3880 |
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 3881 |
# libtool to hard-code these into programs |
| 3882 |
;; |
| 3883 |
|
| 3884 |
cygwin* | mingw* | pw32*) |
| 3885 |
version_type=windows |
| 3886 |
need_version=no |
| 3887 |
need_lib_prefix=no |
| 3888 |
case $GCC,$host_os in |
| 3889 |
yes,cygwin*) |
| 3890 |
library_names_spec='$libname.dll.a' |
| 3891 |
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' |
| 3892 |
postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ |
| 3893 |
dldir=$destdir/`dirname \$dlpath`~ |
| 3894 |
test -d \$dldir || mkdir -p \$dldir~ |
| 3895 |
$install_prog .libs/$dlname \$dldir/$dlname' |
| 3896 |
postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 3897 |
dlpath=$dir/\$dldll~ |
| 3898 |
$rm \$dlpath' |
| 3899 |
;; |
| 3900 |
yes,mingw*) |
| 3901 |
library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' |
| 3902 |
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"` |
| 3903 |
;; |
| 3904 |
yes,pw32*) |
| 3905 |
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll' |
| 3906 |
;; |
| 3907 |
*) |
| 3908 |
library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' |
| 3909 |
;; |
| 3910 |
esac |
| 3911 |
dynamic_linker='Win32 ld.exe' |
| 3912 |
# FIXME: first we should search . and the directory the executable is in |
| 3913 |
shlibpath_var=PATH |
| 3914 |
;; |
| 3915 |
|
| 3916 |
darwin* | rhapsody*) |
| 3917 |
dynamic_linker="$host_os dyld" |
| 3918 |
version_type=darwin |
| 3919 |
need_lib_prefix=no |
| 3920 |
need_version=no |
| 3921 |
# FIXME: Relying on posixy $() will cause problems for |
| 3922 |
# cross-compilation, but unfortunately the echo tests do not |
| 3923 |
# yet detect zsh echo's removal of \ escapes. |
| 3924 |
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)' |
| 3925 |
soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' |
| 3926 |
shlibpath_overrides_runpath=yes |
| 3927 |
shlibpath_var=DYLD_LIBRARY_PATH |
| 3928 |
;; |
| 3929 |
|
| 3930 |
freebsd1*) |
| 3931 |
dynamic_linker=no |
| 3932 |
;; |
| 3933 |
|
| 3934 |
freebsd*) |
| 3935 |
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
| 3936 |
version_type=freebsd-$objformat |
| 3937 |
case $version_type in |
| 3938 |
freebsd-elf*) |
| 3939 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' |
| 3940 |
need_version=no |
| 3941 |
need_lib_prefix=no |
| 3942 |
;; |
| 3943 |
freebsd-*) |
| 3944 |
library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' |
| 3945 |
need_version=yes |
| 3946 |
;; |
| 3947 |
esac |
| 3948 |
shlibpath_var=LD_LIBRARY_PATH |
| 3949 |
case $host_os in |
| 3950 |
freebsd2*) |
| 3951 |
shlibpath_overrides_runpath=yes |
| 3952 |
;; |
| 3953 |
*) |
| 3954 |
shlibpath_overrides_runpath=no |
| 3955 |
hardcode_into_libs=yes |
| 3956 |
;; |
| 3957 |
esac |
| 3958 |
;; |
| 3959 |
|
| 3960 |
gnu*) |
| 3961 |
version_type=linux |
| 3962 |
need_lib_prefix=no |
| 3963 |
need_version=no |
| 3964 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' |
| 3965 |
soname_spec='${libname}${release}.so$major' |
| 3966 |
shlibpath_var=LD_LIBRARY_PATH |
| 3967 |
hardcode_into_libs=yes |
| 3968 |
;; |
| 3969 |
|
| 3970 |
hpux9* | hpux10* | hpux11*) |
| 3971 |
# Give a soname corresponding to the major version so that dld.sl refuses to |
| 3972 |
# link against other versions. |
| 3973 |
dynamic_linker="$host_os dld.sl" |
| 3974 |
version_type=sunos |
| 3975 |
need_lib_prefix=no |
| 3976 |
need_version=no |
| 3977 |
shlibpath_var=SHLIB_PATH |
| 3978 |
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 3979 |
library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' |
| 3980 |
soname_spec='${libname}${release}.sl$major' |
| 3981 |
# HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 3982 |
postinstall_cmds='chmod 555 $lib' |
| 3983 |
;; |
| 3984 |
|
| 3985 |
irix5* | irix6*) |
| 3986 |
version_type=irix |
| 3987 |
need_lib_prefix=no |
| 3988 |
need_version=no |
| 3989 |
soname_spec='${libname}${release}.so$major' |
| 3990 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' |
| 3991 |
case $host_os in |
| 3992 |
irix5*) |
| 3993 |
libsuff= shlibsuff= |
| 3994 |
;; |
| 3995 |
*) |
| 3996 |
case $LD in # libtool.m4 will add one of these switches to LD |
| 3997 |
*-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; |
| 3998 |
*-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 3999 |
*-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 4000 |
*) libsuff= shlibsuff= libmagic=never-match;; |
| 4001 |
esac |
| 4002 |
;; |
| 4003 |
esac |
| 4004 |
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 4005 |
shlibpath_overrides_runpath=no |
| 4006 |
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 4007 |
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 4008 |
;; |
| 4009 |
|
| 4010 |
# No shared lib support for Linux oldld, aout, or coff. |
| 4011 |
linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*) |
| 4012 |
dynamic_linker=no |
| 4013 |
;; |
| 4014 |
|
| 4015 |
# This must be Linux ELF. |
| 4016 |
linux-gnu*) |
| 4017 |
version_type=linux |
| 4018 |
need_lib_prefix=no |
| 4019 |
need_version=no |
| 4020 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 4021 |
soname_spec='${libname}${release}.so$major' |
| 4022 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 4023 |
shlibpath_var=LD_LIBRARY_PATH |
| 4024 |
shlibpath_overrides_runpath=no |
| 4025 |
# This implies no fast_install, which is unacceptable. |
| 4026 |
# Some rework will be needed to allow for fast_install |
| 4027 |
# before this can be enabled. |
| 4028 |
hardcode_into_libs=yes |
| 4029 |
|
| 4030 |
# We used to test for /lib/ld.so.1 and disable shared libraries on |
| 4031 |
# powerpc, because MkLinux only supported shared libraries with the |
| 4032 |
# GNU dynamic linker. Since this was broken with cross compilers, |
| 4033 |
# most powerpc-linux boxes support dynamic linking these days and |
| 4034 |
# people can always --disable-shared, the test was removed, and we |
| 4035 |
# assume the GNU/Linux dynamic linker is in use. |
| 4036 |
dynamic_linker='GNU/Linux ld.so' |
| 4037 |
;; |
| 4038 |
|
| 4039 |
netbsd*) |
| 4040 |
version_type=sunos |
| 4041 |
need_lib_prefix=no |
| 4042 |
need_version=no |
| 4043 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 4044 |
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
| 4045 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 4046 |
dynamic_linker='NetBSD (a.out) ld.so' |
| 4047 |
else |
| 4048 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' |
| 4049 |
soname_spec='${libname}${release}.so$major' |
| 4050 |
dynamic_linker='NetBSD ld.elf_so' |
| 4051 |
fi |
| 4052 |
shlibpath_var=LD_LIBRARY_PATH |
| 4053 |
shlibpath_overrides_runpath=yes |
| 4054 |
hardcode_into_libs=yes |
| 4055 |
;; |
| 4056 |
|
| 4057 |
newsos6) |
| 4058 |
version_type=linux |
| 4059 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 4060 |
shlibpath_var=LD_LIBRARY_PATH |
| 4061 |
shlibpath_overrides_runpath=yes |
| 4062 |
;; |
| 4063 |
|
| 4064 |
openbsd*) |
| 4065 |
version_type=sunos |
| 4066 |
if test "$with_gnu_ld" = yes; then |
| 4067 |
need_lib_prefix=no |
| 4068 |
need_version=no |
| 4069 |
fi |
| 4070 |
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
| 4071 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 4072 |
shlibpath_var=LD_LIBRARY_PATH |
| 4073 |
;; |
| 4074 |
|
| 4075 |
os2*) |
| 4076 |
libname_spec='$name' |
| 4077 |
need_lib_prefix=no |
| 4078 |
library_names_spec='$libname.dll $libname.a' |
| 4079 |
dynamic_linker='OS/2 ld.exe' |
| 4080 |
shlibpath_var=LIBPATH |
| 4081 |
;; |
| 4082 |
|
| 4083 |
osf3* | osf4* | osf5*) |
| 4084 |
version_type=osf |
| 4085 |
need_version=no |
| 4086 |
soname_spec='${libname}${release}.so' |
| 4087 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' |
| 4088 |
shlibpath_var=LD_LIBRARY_PATH |
| 4089 |
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 4090 |
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 4091 |
;; |
| 4092 |
|
| 4093 |
sco3.2v5*) |
| 4094 |
version_type=osf |
| 4095 |
soname_spec='${libname}${release}.so$major' |
| 4096 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 4097 |
shlibpath_var=LD_LIBRARY_PATH |
| 4098 |
;; |
| 4099 |
|
| 4100 |
solaris*) |
| 4101 |
version_type=linux |
| 4102 |
need_lib_prefix=no |
| 4103 |
need_version=no |
| 4104 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 4105 |
soname_spec='${libname}${release}.so$major' |
| 4106 |
shlibpath_var=LD_LIBRARY_PATH |
| 4107 |
shlibpath_overrides_runpath=yes |
| 4108 |
hardcode_into_libs=yes |
| 4109 |
# ldd complains unless libraries are executable |
| 4110 |
postinstall_cmds='chmod +x $lib' |
| 4111 |
;; |
| 4112 |
|
| 4113 |
sunos4*) |
| 4114 |
version_type=sunos |
| 4115 |
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
| 4116 |
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 4117 |
shlibpath_var=LD_LIBRARY_PATH |
| 4118 |
shlibpath_overrides_runpath=yes |
| 4119 |
if test "$with_gnu_ld" = yes; then |
| 4120 |
need_lib_prefix=no |
| 4121 |
fi |
| 4122 |
need_version=yes |
| 4123 |
;; |
| 4124 |
|
| 4125 |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 4126 |
version_type=linux |
| 4127 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 4128 |
soname_spec='${libname}${release}.so$major' |
| 4129 |
shlibpath_var=LD_LIBRARY_PATH |
| 4130 |
case $host_vendor in |
| 4131 |
sni) |
| 4132 |
shlibpath_overrides_runpath=no |
| 4133 |
;; |
| 4134 |
motorola) |
| 4135 |
need_lib_prefix=no |
| 4136 |
need_version=no |
| 4137 |
shlibpath_overrides_runpath=no |
| 4138 |
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 4139 |
;; |
| 4140 |
esac |
| 4141 |
;; |
| 4142 |
|
| 4143 |
uts4*) |
| 4144 |
version_type=linux |
| 4145 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 4146 |
soname_spec='${libname}${release}.so$major' |
| 4147 |
shlibpath_var=LD_LIBRARY_PATH |
| 4148 |
;; |
| 4149 |
|
| 4150 |
dgux*) |
| 4151 |
version_type=linux |
| 4152 |
need_lib_prefix=no |
| 4153 |
need_version=no |
| 4154 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| 4155 |
soname_spec='${libname}${release}.so$major' |
| 4156 |
shlibpath_var=LD_LIBRARY_PATH |
| 4157 |
;; |
| 4158 |
|
| 4159 |
sysv4*MP*) |
| 4160 |
if test -d /usr/nec ;then |
| 4161 |
version_type=linux |
| 4162 |
library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' |
| 4163 |
soname_spec='$libname.so.$major' |
| 4164 |
shlibpath_var=LD_LIBRARY_PATH |
| 4165 |
fi |
| 4166 |
;; |
| 4167 |
|
| 4168 |
*) |
| 4169 |
dynamic_linker=no |
| 4170 |
;; |
| 4171 |
esac |
| 4172 |
echo "$ac_t""$dynamic_linker" 1>&6 |
| 4173 |
test "$dynamic_linker" = no && can_build_shared=no |
| 4174 |
|
| 4175 |
# Report the final consequences. |
| 4176 |
echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6 |
| 4177 |
echo "configure:4177: checking if libtool supports shared libraries" >&5 |
| 4178 |
echo "$ac_t""$can_build_shared" 1>&6 |
| 4179 |
|
| 4180 |
if test "$hardcode_action" = relink; then |
| 4181 |
# Fast installation is not supported |
| 4182 |
enable_fast_install=no |
| 4183 |
elif test "$shlibpath_overrides_runpath" = yes || |
| 4184 |
test "$enable_shared" = no; then |
| 4185 |
# Fast installation is not necessary |
| 4186 |
enable_fast_install=needless |
| 4187 |
fi |
| 4188 |
|
| 4189 |
variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 4190 |
if test "$GCC" = yes; then |
| 4191 |
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 4192 |
fi |
| 4193 |
|
| 4194 |
if test "x$enable_dlopen" != xyes; then |
| 4195 |
enable_dlopen=unknown |
| 4196 |
enable_dlopen_self=unknown |
| 4197 |
enable_dlopen_self_static=unknown |
| 4198 |
else |
| 4199 |
lt_cv_dlopen=no |
| 4200 |
lt_cv_dlopen_libs= |
| 4201 |
|
| 4202 |
case $host_os in |
| 4203 |
beos*) |
| 4204 |
lt_cv_dlopen="load_add_on" |
| 4205 |
lt_cv_dlopen_libs= |
| 4206 |
lt_cv_dlopen_self=yes |
| 4207 |
;; |
| 4208 |
|
| 4209 |
cygwin* | mingw* | pw32*) |
| 4210 |
lt_cv_dlopen="LoadLibrary" |
| 4211 |
lt_cv_dlopen_libs= |
| 4212 |
;; |
| 4213 |
|
| 4214 |
*) |
| 4215 |
echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 |
| 4216 |
echo "configure:4216: checking for dlopen in -ldl" >&5 |
| 4217 |
ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
| 4218 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 4219 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 4220 |
else |
| 4221 |
ac_save_LIBS="$LIBS" |
| 4222 |
LIBS="-ldl $LIBS" |
| 4223 |
cat > conftest.$ac_ext <<EOF |
| 4224 |
#line 4224 "configure" |
| 4225 |
#include "confdefs.h" |
| 4226 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 4227 |
/* We use char because int might match the return type of a gcc2 |
| 4228 |
builtin and then its argument prototype would still apply. */ |
| 4229 |
char dlopen(); |
| 4230 |
|
| 4231 |
int main() { |
| 4232 |
dlopen() |
| 4233 |
; return 0; } |
| 4234 |
EOF |
| 4235 |
if { (eval echo configure:4235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 4236 |
rm -rf conftest* |
| 4237 |
eval "ac_cv_lib_$ac_lib_var=yes" |
| 4238 |
else |
| 4239 |
echo "configure: failed program was:" >&5 |
| 4240 |
cat conftest.$ac_ext >&5 |
| 4241 |
rm -rf conftest* |
| 4242 |
eval "ac_cv_lib_$ac_lib_var=no" |
| 4243 |
fi |
| 4244 |
rm -f conftest* |
| 4245 |
LIBS="$ac_save_LIBS" |
| 4246 |
|
| 4247 |
fi |
| 4248 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 4249 |
echo "$ac_t""yes" 1>&6 |
| 4250 |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 4251 |
else |
| 4252 |
echo "$ac_t""no" 1>&6 |
| 4253 |
echo $ac_n "checking for dlopen""... $ac_c" 1>&6 |
| 4254 |
echo "configure:4254: checking for dlopen" >&5 |
| 4255 |
if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then |
| 4256 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 4257 |
else |
| 4258 |
cat > conftest.$ac_ext <<EOF |
| 4259 |
#line 4259 "configure" |
| 4260 |
#include "confdefs.h" |
| 4261 |
/* System header to define __stub macros and hopefully few prototypes, |
| 4262 |
which can conflict with char dlopen(); below. */ |
| 4263 |
#include <assert.h> |
| 4264 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 4265 |
/* We use char because int might match the return type of a gcc2 |
| 4266 |
builtin and then its argument prototype would still apply. */ |
| 4267 |
char dlopen(); |
| 4268 |
|
| 4269 |
int main() { |
| 4270 |
|
| 4271 |
/* The GNU C library defines this for functions which it implements |
| 4272 |
to always fail with ENOSYS. Some functions are actually named |
| 4273 |
something starting with __ and the normal name is an alias. */ |
| 4274 |
#if defined (__stub_dlopen) || defined (__stub___dlopen) |
| 4275 |
choke me |
| 4276 |
#else |
| 4277 |
dlopen(); |
| 4278 |
#endif |
| 4279 |
|
| 4280 |
; return 0; } |
| 4281 |
EOF |
| 4282 |
if { (eval echo configure:4282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 4283 |
rm -rf conftest* |
| 4284 |
eval "ac_cv_func_dlopen=yes" |
| 4285 |
else |
| 4286 |
echo "configure: failed program was:" >&5 |
| 4287 |
cat conftest.$ac_ext >&5 |
| 4288 |
rm -rf conftest* |
| 4289 |
eval "ac_cv_func_dlopen=no" |
| 4290 |
fi |
| 4291 |
rm -f conftest* |
| 4292 |
fi |
| 4293 |
|
| 4294 |
if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then |
| 4295 |
echo "$ac_t""yes" 1>&6 |
| 4296 |
lt_cv_dlopen="dlopen" |
| 4297 |
else |
| 4298 |
echo "$ac_t""no" 1>&6 |
| 4299 |
echo $ac_n "checking for shl_load""... $ac_c" 1>&6 |
| 4300 |
echo "configure:4300: checking for shl_load" >&5 |
| 4301 |
if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then |
| 4302 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 4303 |
else |
| 4304 |
cat > conftest.$ac_ext <<EOF |
| 4305 |
#line 4305 "configure" |
| 4306 |
#include "confdefs.h" |
| 4307 |
/* System header to define __stub macros and hopefully few prototypes, |
| 4308 |
which can conflict with char shl_load(); below. */ |
| 4309 |
#include <assert.h> |
| 4310 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 4311 |
/* We use char because int might match the return type of a gcc2 |
| 4312 |
builtin and then its argument prototype would still apply. */ |
| 4313 |
char shl_load(); |
| 4314 |
|
| 4315 |
int main() { |
| 4316 |
|
| 4317 |
/* The GNU C library defines this for functions which it implements |
| 4318 |
to always fail with ENOSYS. Some functions are actually named |
| 4319 |
something starting with __ and the normal name is an alias. */ |
| 4320 |
#if defined (__stub_shl_load) || defined (__stub___shl_load) |
| 4321 |
choke me |
| 4322 |
#else |
| 4323 |
shl_load(); |
| 4324 |
#endif |
| 4325 |
|
| 4326 |
; return 0; } |
| 4327 |
EOF |
| 4328 |
if { (eval echo configure:4328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 4329 |
rm -rf conftest* |
| 4330 |
eval "ac_cv_func_shl_load=yes" |
| 4331 |
else |
| 4332 |
echo "configure: failed program was:" >&5 |
| 4333 |
cat conftest.$ac_ext >&5 |
| 4334 |
rm -rf conftest* |
| 4335 |
eval "ac_cv_func_shl_load=no" |
| 4336 |
fi |
| 4337 |
rm -f conftest* |
| 4338 |
fi |
| 4339 |
|
| 4340 |
if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then |
| 4341 |
echo "$ac_t""yes" 1>&6 |
| 4342 |
lt_cv_dlopen="shl_load" |
| 4343 |
else |
| 4344 |
echo "$ac_t""no" 1>&6 |
| 4345 |
echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6 |
| 4346 |
echo "configure:4346: checking for dlopen in -lsvld" >&5 |
| 4347 |
ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-%__p_%'` |
| 4348 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 4349 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 4350 |
else |
| 4351 |
ac_save_LIBS="$LIBS" |
| 4352 |
LIBS="-lsvld $LIBS" |
| 4353 |
cat > conftest.$ac_ext <<EOF |
| 4354 |
#line 4354 "configure" |
| 4355 |
#include "confdefs.h" |
| 4356 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 4357 |
/* We use char because int might match the return type of a gcc2 |
| 4358 |
builtin and then its argument prototype would still apply. */ |
| 4359 |
char dlopen(); |
| 4360 |
|
| 4361 |
int main() { |
| 4362 |
dlopen() |
| 4363 |
; return 0; } |
| 4364 |
EOF |
| 4365 |
if { (eval echo configure:4365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 4366 |
rm -rf conftest* |
| 4367 |
eval "ac_cv_lib_$ac_lib_var=yes" |
| 4368 |
else |
| 4369 |
echo "configure: failed program was:" >&5 |
| 4370 |
cat conftest.$ac_ext >&5 |
| 4371 |
rm -rf conftest* |
| 4372 |
eval "ac_cv_lib_$ac_lib_var=no" |
| 4373 |
fi |
| 4374 |
rm -f conftest* |
| 4375 |
LIBS="$ac_save_LIBS" |
| 4376 |
|
| 4377 |
fi |
| 4378 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 4379 |
echo "$ac_t""yes" 1>&6 |
| 4380 |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 4381 |
else |
| 4382 |
echo "$ac_t""no" 1>&6 |
| 4383 |
echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 |
| 4384 |
echo "configure:4384: checking for shl_load in -ldld" >&5 |
| 4385 |
ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` |
| 4386 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 4387 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 4388 |
else |
| 4389 |
ac_save_LIBS="$LIBS" |
| 4390 |
LIBS="-ldld $LIBS" |
| 4391 |
cat > conftest.$ac_ext <<EOF |
| 4392 |
#line 4392 "configure" |
| 4393 |
#include "confdefs.h" |
| 4394 |
/* Override any gcc2 internal prototype to avoid an error. */ |
| 4395 |
/* We use char because int might match the return type of a gcc2 |
| 4396 |
builtin and then its argument prototype would still apply. */ |
| 4397 |
char shl_load(); |
| 4398 |
|
| 4399 |
int main() { |
| 4400 |
shl_load() |
| 4401 |
; return 0; } |
| 4402 |
EOF |
| 4403 |
if { (eval echo configure:4403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 4404 |
rm -rf conftest* |
| 4405 |
eval "ac_cv_lib_$ac_lib_var=yes" |
| 4406 |
else |
| 4407 |
echo "configure: failed program was:" >&5 |
| 4408 |
cat conftest.$ac_ext >&5 |
| 4409 |
rm -rf conftest* |
| 4410 |
eval "ac_cv_lib_$ac_lib_var=no" |
| 4411 |
fi |
| 4412 |
rm -f conftest* |
| 4413 |
LIBS="$ac_save_LIBS" |
| 4414 |
|
| 4415 |
fi |
| 4416 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 4417 |
echo "$ac_t""yes" 1>&6 |
| 4418 |
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 4419 |
else |
| 4420 |
echo "$ac_t""no" 1>&6 |
| 4421 |
fi |
| 4422 |
|
| 4423 |
|
| 4424 |
fi |
| 4425 |
|
| 4426 |
|
| 4427 |
fi |
| 4428 |
|
| 4429 |
|
| 4430 |
fi |
| 4431 |
|
| 4432 |
|
| 4433 |
fi |
| 4434 |
|
| 4435 |
;; |
| 4436 |
esac |
| 4437 |
|
| 4438 |
if test "x$lt_cv_dlopen" != xno; then |
| 4439 |
enable_dlopen=yes |
| 4440 |
else |
| 4441 |
enable_dlopen=no |
| 4442 |
fi |
| 4443 |
|
| 4444 |
case $lt_cv_dlopen in |
| 4445 |
dlopen) |
| 4446 |
save_CPPFLAGS="$CPPFLAGS" |
| 4447 |
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 4448 |
|
| 4449 |
save_LDFLAGS="$LDFLAGS" |
| 4450 |
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 4451 |
|
| 4452 |
save_LIBS="$LIBS" |
| 4453 |
LIBS="$lt_cv_dlopen_libs $LIBS" |
| 4454 |
|
| 4455 |
echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6 |
| 4456 |
echo "configure:4456: checking whether a program can dlopen itself" >&5 |
| 4457 |
if eval "test \"`echo '$''{'lt_cv_dlopen_self'+set}'`\" = set"; then |
| 4458 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 4459 |
else |
| 4460 |
if test "$cross_compiling" = yes; then : |
| 4461 |
lt_cv_dlopen_self=cross |
| 4462 |
else |
| 4463 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 4464 |
lt_status=$lt_dlunknown |
| 4465 |
cat > conftest.$ac_ext <<EOF |
| 4466 |
#line 4466 "configure" |
| 4467 |
#include "confdefs.h" |
| 4468 |
|
| 4469 |
#if HAVE_DLFCN_H |
| 4470 |
#include <dlfcn.h> |
| 4471 |
#endif |
| 4472 |
|
| 4473 |
#include <stdio.h> |
| 4474 |
|
| 4475 |
#ifdef RTLD_GLOBAL |
| 4476 |
# define LT_DLGLOBAL RTLD_GLOBAL |
| 4477 |
#else |
| 4478 |
# ifdef DL_GLOBAL |
| 4479 |
# define LT_DLGLOBAL DL_GLOBAL |
| 4480 |
# else |
| 4481 |
# define LT_DLGLOBAL 0 |
| 4482 |
# endif |
| 4483 |
#endif |
| 4484 |
|
| 4485 |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 4486 |
find out it does not work in some platform. */ |
| 4487 |
#ifndef LT_DLLAZY_OR_NOW |
| 4488 |
# ifdef RTLD_LAZY |
| 4489 |
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 4490 |
# else |
| 4491 |
# ifdef DL_LAZY |
| 4492 |
# define LT_DLLAZY_OR_NOW DL_LAZY |
| 4493 |
# else |
| 4494 |
# ifdef RTLD_NOW |
| 4495 |
# define LT_DLLAZY_OR_NOW RTLD_NOW |
| 4496 |
# else |
| 4497 |
# ifdef DL_NOW |
| 4498 |
# define LT_DLLAZY_OR_NOW DL_NOW |
| 4499 |
# else |
| 4500 |
# define LT_DLLAZY_OR_NOW 0 |
| 4501 |
# endif |
| 4502 |
# endif |
| 4503 |
# endif |
| 4504 |
# endif |
| 4505 |
#endif |
| 4506 |
|
| 4507 |
#ifdef __cplusplus |
| 4508 |
extern "C" void exit (int); |
| 4509 |
#endif |
| 4510 |
|
| 4511 |
void fnord() { int i=42;} |
| 4512 |
int main () |
| 4513 |
{ |
| 4514 |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 4515 |
int status = $lt_dlunknown; |
| 4516 |
|
| 4517 |
if (self) |
| 4518 |
{ |
| 4519 |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 4520 |
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 4521 |
/* dlclose (self); */ |
| 4522 |
} |
| 4523 |
|
| 4524 |
exit (status); |
| 4525 |
} |
| 4526 |
EOF |
| 4527 |
if { (eval echo configure:4527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 4528 |
(./conftest; exit; ) 2>/dev/null |
| 4529 |
lt_status=$? |
| 4530 |
case x$lt_status in |
| 4531 |
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 4532 |
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 4533 |
x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
| 4534 |
esac |
| 4535 |
else : |
| 4536 |
# compilation failed |
| 4537 |
lt_cv_dlopen_self=no |
| 4538 |
fi |
| 4539 |
fi |
| 4540 |
rm -fr conftest* |
| 4541 |
|
| 4542 |
|
| 4543 |
fi |
| 4544 |
|
| 4545 |
echo "$ac_t""$lt_cv_dlopen_self" 1>&6 |
| 4546 |
|
| 4547 |
if test "x$lt_cv_dlopen_self" = xyes; then |
| 4548 |
LDFLAGS="$LDFLAGS $link_static_flag" |
| 4549 |
echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6 |
| 4550 |
echo "configure:4550: checking whether a statically linked program can dlopen itself" >&5 |
| 4551 |
if eval "test \"`echo '$''{'lt_cv_dlopen_self_static'+set}'`\" = set"; then |
| 4552 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 4553 |
else |
| 4554 |
if test "$cross_compiling" = yes; then : |
| 4555 |
lt_cv_dlopen_self_static=cross |
| 4556 |
else |
| 4557 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 4558 |
lt_status=$lt_dlunknown |
| 4559 |
cat > conftest.$ac_ext <<EOF |
| 4560 |
#line 4560 "configure" |
| 4561 |
#include "confdefs.h" |
| 4562 |
|
| 4563 |
#if HAVE_DLFCN_H |
| 4564 |
#include <dlfcn.h> |
| 4565 |
#endif |
| 4566 |
|
| 4567 |
#include <stdio.h> |
| 4568 |
|
| 4569 |
#ifdef RTLD_GLOBAL |
| 4570 |
# define LT_DLGLOBAL RTLD_GLOBAL |
| 4571 |
#else |
| 4572 |
# ifdef DL_GLOBAL |
| 4573 |
# define LT_DLGLOBAL DL_GLOBAL |
| 4574 |
# else |
| 4575 |
# define LT_DLGLOBAL 0 |
| 4576 |
# endif |
| 4577 |
#endif |
| 4578 |
|
| 4579 |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 4580 |
find out it does not work in some platform. */ |
| 4581 |
#ifndef LT_DLLAZY_OR_NOW |
| 4582 |
# ifdef RTLD_LAZY |
| 4583 |
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 4584 |
# else |
| 4585 |
# ifdef DL_LAZY |
| 4586 |
# define LT_DLLAZY_OR_NOW DL_LAZY |
| 4587 |
# else |
| 4588 |
# ifdef RTLD_NOW |
| 4589 |
# define LT_DLLAZY_OR_NOW RTLD_NOW |
| 4590 |
# else |
| 4591 |
# ifdef DL_NOW |
| 4592 |
# define LT_DLLAZY_OR_NOW DL_NOW |
| 4593 |
# else |
| 4594 |
# define LT_DLLAZY_OR_NOW 0 |
| 4595 |
# endif |
| 4596 |
# endif |
| 4597 |
# endif |
| 4598 |
# endif |
| 4599 |
#endif |
| 4600 |
|
| 4601 |
#ifdef __cplusplus |
| 4602 |
extern "C" void exit (int); |
| 4603 |
#endif |
| 4604 |
|
| 4605 |
void fnord() { int i=42;} |
| 4606 |
int main () |
| 4607 |
{ |
| 4608 |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 4609 |
int status = $lt_dlunknown; |
| 4610 |
|
| 4611 |
if (self) |
| 4612 |
{ |
| 4613 |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 4614 |
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 4615 |
/* dlclose (self); */ |
| 4616 |
} |
| 4617 |
|
| 4618 |
exit (status); |
| 4619 |
} |
| 4620 |
EOF |
| 4621 |
if { (eval echo configure:4621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 4622 |
(./conftest; exit; ) 2>/dev/null |
| 4623 |
lt_status=$? |
| 4624 |
case x$lt_status in |
| 4625 |
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 4626 |
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 4627 |
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
| 4628 |
esac |
| 4629 |
else : |
| 4630 |
# compilation failed |
| 4631 |
lt_cv_dlopen_self_static=no |
| 4632 |
fi |
| 4633 |
fi |
| 4634 |
rm -fr conftest* |
| 4635 |
|
| 4636 |
|
| 4637 |
fi |
| 4638 |
|
| 4639 |
echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6 |
| 4640 |
fi |
| 4641 |
|
| 4642 |
CPPFLAGS="$save_CPPFLAGS" |
| 4643 |
LDFLAGS="$save_LDFLAGS" |
| 4644 |
LIBS="$save_LIBS" |
| 4645 |
;; |
| 4646 |
esac |
| 4647 |
|
| 4648 |
case $lt_cv_dlopen_self in |
| 4649 |
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 4650 |
*) enable_dlopen_self=unknown ;; |
| 4651 |
esac |
| 4652 |
|
| 4653 |
case $lt_cv_dlopen_self_static in |
| 4654 |
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 4655 |
*) enable_dlopen_self_static=unknown ;; |
| 4656 |
esac |
| 4657 |
fi |
| 4658 |
|
| 4659 |
|
| 4660 |
if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 4661 |
case $archive_cmds in |
| 4662 |
*'~'*) |
| 4663 |
# FIXME: we may have to deal with multi-command sequences. |
| 4664 |
;; |
| 4665 |
'$CC '*) |
| 4666 |
# Test whether the compiler implicitly links with -lc since on some |
| 4667 |
# systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 4668 |
# to ld, don't add -lc before -lgcc. |
| 4669 |
echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6 |
| 4670 |
echo "configure:4670: checking whether -lc should be explicitly linked in" >&5 |
| 4671 |
if eval "test \"`echo '$''{'lt_cv_archive_cmds_need_lc'+set}'`\" = set"; then |
| 4672 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 4673 |
else |
| 4674 |
$rm conftest* |
| 4675 |
echo 'static int dummy;' > conftest.$ac_ext |
| 4676 |
|
| 4677 |
if { (eval echo configure:4677: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 4678 |
soname=conftest |
| 4679 |
lib=conftest |
| 4680 |
libobjs=conftest.$ac_objext |
| 4681 |
deplibs= |
| 4682 |
wl=$lt_cv_prog_cc_wl |
| 4683 |
compiler_flags=-v |
| 4684 |
linker_flags=-v |
| 4685 |
verstring= |
| 4686 |
output_objdir=. |
| 4687 |
libname=conftest |
| 4688 |
save_allow_undefined_flag=$allow_undefined_flag |
| 4689 |
allow_undefined_flag= |
| 4690 |
if { (eval echo configure:4690: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\") 1>&5; (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5; } |
| 4691 |
then |
| 4692 |
lt_cv_archive_cmds_need_lc=no |
| 4693 |
else |
| 4694 |
lt_cv_archive_cmds_need_lc=yes |
| 4695 |
fi |
| 4696 |
allow_undefined_flag=$save_allow_undefined_flag |
| 4697 |
else |
| 4698 |
cat conftest.err 1>&5 |
| 4699 |
fi |
| 4700 |
fi |
| 4701 |
|
| 4702 |
echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6 |
| 4703 |
;; |
| 4704 |
esac |
| 4705 |
fi |
| 4706 |
need_lc=${lt_cv_archive_cmds_need_lc-yes} |
| 4707 |
|
| 4708 |
# The second clause should only fire when bootstrapping the |
| 4709 |
# libtool distribution, otherwise you forgot to ship ltmain.sh |
| 4710 |
# with your package, and you will get complaints that there are |
| 4711 |
# no rules to generate ltmain.sh. |
| 4712 |
if test -f "$ltmain"; then |
| 4713 |
: |
| 4714 |
else |
| 4715 |
# If there is no Makefile yet, we rely on a make rule to execute |
| 4716 |
# `config.status --recheck' to rerun these tests and create the |
| 4717 |
# libtool script then. |
| 4718 |
test -f Makefile && make "$ltmain" |
| 4719 |
fi |
| 4720 |
|
| 4721 |
if test -f "$ltmain"; then |
| 4722 |
trap "$rm \"${ofile}T\"; exit 1" 1 2 15 |
| 4723 |
$rm -f "${ofile}T" |
| 4724 |
|
| 4725 |
echo creating $ofile |
| 4726 |
|
| 4727 |
# Now quote all the things that may contain metacharacters while being |
| 4728 |
# careful not to overquote the AC_SUBSTed values. We take copies of the |
| 4729 |
# variables and quote the copies for generation of the libtool script. |
| 4730 |
for var in echo old_CC old_CFLAGS \ |
| 4731 |
AR AR_FLAGS CC LD LN_S NM SHELL \ |
| 4732 |
reload_flag reload_cmds wl \ |
| 4733 |
pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \ |
| 4734 |
thread_safe_flag_spec whole_archive_flag_spec libname_spec \ |
| 4735 |
library_names_spec soname_spec \ |
| 4736 |
RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \ |
| 4737 |
old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \ |
| 4738 |
postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \ |
| 4739 |
old_striplib striplib file_magic_cmd export_symbols_cmds \ |
| 4740 |
deplibs_check_method allow_undefined_flag no_undefined_flag \ |
| 4741 |
finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \ |
| 4742 |
hardcode_libdir_flag_spec hardcode_libdir_separator \ |
| 4743 |
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 4744 |
compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do |
| 4745 |
|
| 4746 |
case $var in |
| 4747 |
reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \ |
| 4748 |
old_postinstall_cmds | old_postuninstall_cmds | \ |
| 4749 |
export_symbols_cmds | archive_cmds | archive_expsym_cmds | \ |
| 4750 |
extract_expsyms_cmds | old_archive_from_expsyms_cmds | \ |
| 4751 |
postinstall_cmds | postuninstall_cmds | \ |
| 4752 |
finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 4753 |
# Double-quote double-evaled strings. |
| 4754 |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 4755 |
;; |
| 4756 |
*) |
| 4757 |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 4758 |
;; |
| 4759 |
esac |
| 4760 |
done |
| 4761 |
|
| 4762 |
cat <<__EOF__ > "${ofile}T" |
| 4763 |
#! $SHELL |
| 4764 |
|
| 4765 |
# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
| 4766 |
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
| 4767 |
# NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 4768 |
# |
| 4769 |
# Copyright (C) 1996-2000 Free Software Foundation, Inc. |
| 4770 |
# Originally by Gordon Matzigkeit <[email protected]>, 1996 |
| 4771 |
# |
| 4772 |
# This program is free software; you can redistribute it and/or modify |
| 4773 |
# it under the terms of the GNU General Public License as published by |
| 4774 |
# the Free Software Foundation; either version 2 of the License, or |
| 4775 |
# (at your option) any later version. |
| 4776 |
# |
| 4777 |
# This program is distributed in the hope that it will be useful, but |
| 4778 |
# WITHOUT ANY WARRANTY; without even the implied warranty of |
| 4779 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 4780 |
# General Public License for more details. |
| 4781 |
# |
| 4782 |
# You should have received a copy of the GNU General Public License |
| 4783 |
# along with this program; if not, write to the Free Software |
| 4784 |
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 4785 |
# |
| 4786 |
# As a special exception to the GNU General Public License, if you |
| 4787 |
# distribute this file as part of a program that contains a |
| 4788 |
# configuration script generated by Autoconf, you may include it under |
| 4789 |
# the same distribution terms that you use for the rest of that program. |
| 4790 |
|
| 4791 |
# Sed that helps us avoid accidentally triggering echo(1) options like -n. |
| 4792 |
Xsed="sed -e s/^X//" |
| 4793 |
|
| 4794 |
# The HP-UX ksh and POSIX shell print the target directory to stdout |
| 4795 |
# if CDPATH is set. |
| 4796 |
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
| 4797 |
|
| 4798 |
# ### BEGIN LIBTOOL CONFIG |
| 4799 |
|
| 4800 |
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 4801 |
|
| 4802 |
# Shell to use when invoking shell scripts. |
| 4803 |
SHELL=$lt_SHELL |
| 4804 |
|
| 4805 |
# Whether or not to build shared libraries. |
| 4806 |
build_libtool_libs=$enable_shared |
| 4807 |
|
| 4808 |
# Whether or not to add -lc for building shared libraries. |
| 4809 |
build_libtool_need_lc=$need_lc |
| 4810 |
|
| 4811 |
# Whether or not to build static libraries. |
| 4812 |
build_old_libs=$enable_static |
| 4813 |
|
| 4814 |
# Whether or not to optimize for fast installation. |
| 4815 |
fast_install=$enable_fast_install |
| 4816 |
|
| 4817 |
# The host system. |
| 4818 |
host_alias=$host_alias |
| 4819 |
host=$host |
| 4820 |
|
| 4821 |
# An echo program that does not interpret backslashes. |
| 4822 |
echo=$lt_echo |
| 4823 |
|
| 4824 |
# The archiver. |
| 4825 |
AR=$lt_AR |
| 4826 |
AR_FLAGS=$lt_AR_FLAGS |
| 4827 |
|
| 4828 |
# The default C compiler. |
| 4829 |
CC=$lt_CC |
| 4830 |
|
| 4831 |
# Is the compiler the GNU C compiler? |
| 4832 |
with_gcc=$GCC |
| 4833 |
|
| 4834 |
# The linker used to build libraries. |
| 4835 |
LD=$lt_LD |
| 4836 |
|
| 4837 |
# Whether we need hard or soft links. |
| 4838 |
LN_S=$lt_LN_S |
| 4839 |
|
| 4840 |
# A BSD-compatible nm program. |
| 4841 |
NM=$lt_NM |
| 4842 |
|
| 4843 |
# A symbol stripping program |
| 4844 |
STRIP=$STRIP |
| 4845 |
|
| 4846 |
# Used to examine libraries when file_magic_cmd begins "file" |
| 4847 |
MAGIC_CMD=$MAGIC_CMD |
| 4848 |
|
| 4849 |
# Used on cygwin: DLL creation program. |
| 4850 |
DLLTOOL="$DLLTOOL" |
| 4851 |
|
| 4852 |
# Used on cygwin: object dumper. |
| 4853 |
OBJDUMP="$OBJDUMP" |
| 4854 |
|
| 4855 |
# Used on cygwin: assembler. |
| 4856 |
AS="$AS" |
| 4857 |
|
| 4858 |
# The name of the directory that contains temporary libtool files. |
| 4859 |
objdir=$objdir |
| 4860 |
|
| 4861 |
# How to create reloadable object files. |
| 4862 |
reload_flag=$lt_reload_flag |
| 4863 |
reload_cmds=$lt_reload_cmds |
| 4864 |
|
| 4865 |
# How to pass a linker flag through the compiler. |
| 4866 |
wl=$lt_wl |
| 4867 |
|
| 4868 |
# Object file suffix (normally "o"). |
| 4869 |
objext="$ac_objext" |
| 4870 |
|
| 4871 |
# Old archive suffix (normally "a"). |
| 4872 |
libext="$libext" |
| 4873 |
|
| 4874 |
# Executable file suffix (normally ""). |
| 4875 |
exeext="$exeext" |
| 4876 |
|
| 4877 |
# Additional compiler flags for building library objects. |
| 4878 |
pic_flag=$lt_pic_flag |
| 4879 |
pic_mode=$pic_mode |
| 4880 |
|
| 4881 |
# Does compiler simultaneously support -c and -o options? |
| 4882 |
compiler_c_o=$lt_compiler_c_o |
| 4883 |
|
| 4884 |
# Can we write directly to a .lo ? |
| 4885 |
compiler_o_lo=$lt_compiler_o_lo |
| 4886 |
|
| 4887 |
# Must we lock files when doing compilation ? |
| 4888 |
need_locks=$lt_need_locks |
| 4889 |
|
| 4890 |
# Do we need the lib prefix for modules? |
| 4891 |
need_lib_prefix=$need_lib_prefix |
| 4892 |
|
| 4893 |
# Do we need a version for libraries? |
| 4894 |
need_version=$need_version |
| 4895 |
|
| 4896 |
# Whether dlopen is supported. |
| 4897 |
dlopen_support=$enable_dlopen |
| 4898 |
|
| 4899 |
# Whether dlopen of programs is supported. |
| 4900 |
dlopen_self=$enable_dlopen_self |
| 4901 |
|
| 4902 |
# Whether dlopen of statically linked programs is supported. |
| 4903 |
dlopen_self_static=$enable_dlopen_self_static |
| 4904 |
|
| 4905 |
# Compiler flag to prevent dynamic linking. |
| 4906 |
link_static_flag=$lt_link_static_flag |
| 4907 |
|
| 4908 |
# Compiler flag to turn off builtin functions. |
| 4909 |
no_builtin_flag=$lt_no_builtin_flag |
| 4910 |
|
| 4911 |
# Compiler flag to allow reflexive dlopens. |
| 4912 |
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 4913 |
|
| 4914 |
# Compiler flag to generate shared objects directly from archives. |
| 4915 |
whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 4916 |
|
| 4917 |
# Compiler flag to generate thread-safe objects. |
| 4918 |
thread_safe_flag_spec=$lt_thread_safe_flag_spec |
| 4919 |
|
| 4920 |
# Library versioning type. |
| 4921 |
version_type=$version_type |
| 4922 |
|
| 4923 |
# Format of library name prefix. |
| 4924 |
libname_spec=$lt_libname_spec |
| 4925 |
|
| 4926 |
# List of archive names. First name is the real one, the rest are links. |
| 4927 |
# The last name is the one that the linker finds with -lNAME. |
| 4928 |
library_names_spec=$lt_library_names_spec |
| 4929 |
|
| 4930 |
# The coded name of the library, if different from the real name. |
| 4931 |
soname_spec=$lt_soname_spec |
| 4932 |
|
| 4933 |
# Commands used to build and install an old-style archive. |
| 4934 |
RANLIB=$lt_RANLIB |
| 4935 |
old_archive_cmds=$lt_old_archive_cmds |
| 4936 |
old_postinstall_cmds=$lt_old_postinstall_cmds |
| 4937 |
old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 4938 |
|
| 4939 |
# Create an old-style archive from a shared archive. |
| 4940 |
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 4941 |
|
| 4942 |
# Create a temporary old-style archive to link instead of a shared archive. |
| 4943 |
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 4944 |
|
| 4945 |
# Commands used to build and install a shared archive. |
| 4946 |
archive_cmds=$lt_archive_cmds |
| 4947 |
archive_expsym_cmds=$lt_archive_expsym_cmds |
| 4948 |
postinstall_cmds=$lt_postinstall_cmds |
| 4949 |
postuninstall_cmds=$lt_postuninstall_cmds |
| 4950 |
|
| 4951 |
# Commands to strip libraries. |
| 4952 |
old_striplib=$lt_old_striplib |
| 4953 |
striplib=$lt_striplib |
| 4954 |
|
| 4955 |
# Method to check whether dependent libraries are shared objects. |
| 4956 |
deplibs_check_method=$lt_deplibs_check_method |
| 4957 |
|
| 4958 |
# Command to use when deplibs_check_method == file_magic. |
| 4959 |
file_magic_cmd=$lt_file_magic_cmd |
| 4960 |
|
| 4961 |
# Flag that allows shared libraries with undefined symbols to be built. |
| 4962 |
allow_undefined_flag=$lt_allow_undefined_flag |
| 4963 |
|
| 4964 |
# Flag that forces no undefined symbols. |
| 4965 |
no_undefined_flag=$lt_no_undefined_flag |
| 4966 |
|
| 4967 |
# Commands used to finish a libtool library installation in a directory. |
| 4968 |
finish_cmds=$lt_finish_cmds |
| 4969 |
|
| 4970 |
# Same as above, but a single script fragment to be evaled but not shown. |
| 4971 |
finish_eval=$lt_finish_eval |
| 4972 |
|
| 4973 |
# Take the output of nm and produce a listing of raw symbols and C names. |
| 4974 |
global_symbol_pipe=$lt_global_symbol_pipe |
| 4975 |
|
| 4976 |
# Transform the output of nm in a proper C declaration |
| 4977 |
global_symbol_to_cdecl=$lt_global_symbol_to_cdecl |
| 4978 |
|
| 4979 |
# This is the shared library runtime path variable. |
| 4980 |
runpath_var=$runpath_var |
| 4981 |
|
| 4982 |
# This is the shared library path variable. |
| 4983 |
shlibpath_var=$shlibpath_var |
| 4984 |
|
| 4985 |
# Is shlibpath searched before the hard-coded library search path? |
| 4986 |
shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 4987 |
|
| 4988 |
# How to hardcode a shared library path into an executable. |
| 4989 |
hardcode_action=$hardcode_action |
| 4990 |
|
| 4991 |
# Whether we should hardcode library paths into libraries. |
| 4992 |
hardcode_into_libs=$hardcode_into_libs |
| 4993 |
|
| 4994 |
# Flag to hardcode \$libdir into a binary during linking. |
| 4995 |
# This must work even if \$libdir does not exist. |
| 4996 |
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 4997 |
|
| 4998 |
# Whether we need a single -rpath flag with a separated argument. |
| 4999 |
hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 5000 |
|
| 5001 |
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the |
| 5002 |
# resulting binary. |
| 5003 |
hardcode_direct=$hardcode_direct |
| 5004 |
|
| 5005 |
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 5006 |
# resulting binary. |
| 5007 |
hardcode_minus_L=$hardcode_minus_L |
| 5008 |
|
| 5009 |
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 5010 |
# the resulting binary. |
| 5011 |
hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 5012 |
|
| 5013 |
# Variables whose values should be saved in libtool wrapper scripts and |
| 5014 |
# restored at relink time. |
| 5015 |
variables_saved_for_relink="$variables_saved_for_relink" |
| 5016 |
|
| 5017 |
# Whether libtool must link a program against all its dependency libraries. |
| 5018 |
link_all_deplibs=$link_all_deplibs |
| 5019 |
|
| 5020 |
# Compile-time system search path for libraries |
| 5021 |
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 5022 |
|
| 5023 |
# Run-time system search path for libraries |
| 5024 |
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 5025 |
|
| 5026 |
# Fix the shell variable \$srcfile for the compiler. |
| 5027 |
fix_srcfile_path="$fix_srcfile_path" |
| 5028 |
|
| 5029 |
# Set to yes if exported symbols are required. |
| 5030 |
always_export_symbols=$always_export_symbols |
| 5031 |
|
| 5032 |
# The commands to list exported symbols. |
| 5033 |
export_symbols_cmds=$lt_export_symbols_cmds |
| 5034 |
|
| 5035 |
# The commands to extract the exported symbol list from a shared archive. |
| 5036 |
extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 5037 |
|
| 5038 |
# Symbols that should not be listed in the preloaded symbols. |
| 5039 |
exclude_expsyms=$lt_exclude_expsyms |
| 5040 |
|
| 5041 |
# Symbols that must always be exported. |
| 5042 |
include_expsyms=$lt_include_expsyms |
| 5043 |
|
| 5044 |
# ### END LIBTOOL CONFIG |
| 5045 |
|
| 5046 |
__EOF__ |
| 5047 |
|
| 5048 |
case $host_os in |
| 5049 |
aix3*) |
| 5050 |
cat <<\EOF >> "${ofile}T" |
| 5051 |
|
| 5052 |
# AIX sometimes has problems with the GCC collect2 program. For some |
| 5053 |
# reason, if we set the COLLECT_NAMES environment variable, the problems |
| 5054 |
# vanish in a puff of smoke. |
| 5055 |
if test "X${COLLECT_NAMES+set}" != Xset; then |
| 5056 |
COLLECT_NAMES= |
| 5057 |
export COLLECT_NAMES |
| 5058 |
fi |
| 5059 |
EOF |
| 5060 |
;; |
| 5061 |
esac |
| 5062 |
|
| 5063 |
case $host_os in |
| 5064 |
cygwin* | mingw* | pw32* | os2*) |
| 5065 |
cat <<'EOF' >> "${ofile}T" |
| 5066 |
# This is a source program that is used to create dlls on Windows |
| 5067 |
# Don't remove nor modify the starting and closing comments |
| 5068 |
# /* ltdll.c starts here */ |
| 5069 |
# #define WIN32_LEAN_AND_MEAN |
| 5070 |
# #include <windows.h> |
| 5071 |
# #undef WIN32_LEAN_AND_MEAN |
| 5072 |
# #include <stdio.h> |
| 5073 |
# |
| 5074 |
# #ifndef __CYGWIN__ |
| 5075 |
# # ifdef __CYGWIN32__ |
| 5076 |
# # define __CYGWIN__ __CYGWIN32__ |
| 5077 |
# # endif |
| 5078 |
# #endif |
| 5079 |
# |
| 5080 |
# #ifdef __cplusplus |
| 5081 |
# extern "C" { |
| 5082 |
# #endif |
| 5083 |
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); |
| 5084 |
# #ifdef __cplusplus |
| 5085 |
# } |
| 5086 |
# #endif |
| 5087 |
# |
| 5088 |
# #ifdef __CYGWIN__ |
| 5089 |
# #include <cygwin/cygwin_dll.h> |
| 5090 |
# DECLARE_CYGWIN_DLL( DllMain ); |
| 5091 |
# #endif |
| 5092 |
# HINSTANCE __hDllInstance_base; |
| 5093 |
# |
| 5094 |
# BOOL APIENTRY |
| 5095 |
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) |
| 5096 |
# { |
| 5097 |
# __hDllInstance_base = hInst; |
| 5098 |
# return TRUE; |
| 5099 |
# } |
| 5100 |
# /* ltdll.c ends here */ |
| 5101 |
# This is a source program that is used to create import libraries |
| 5102 |
# on Windows for dlls which lack them. Don't remove nor modify the |
| 5103 |
# starting and closing comments |
| 5104 |
# /* impgen.c starts here */ |
| 5105 |
# /* Copyright (C) 1999-2000 Free Software Foundation, Inc. |
| 5106 |
# |
| 5107 |
# This file is part of GNU libtool. |
| 5108 |
# |
| 5109 |
# This program is free software; you can redistribute it and/or modify |
| 5110 |
# it under the terms of the GNU General Public License as published by |
| 5111 |
# the Free Software Foundation; either version 2 of the License, or |
| 5112 |
# (at your option) any later version. |
| 5113 |
# |
| 5114 |
# This program is distributed in the hope that it will be useful, |
| 5115 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 5116 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 5117 |
# GNU General Public License for more details. |
| 5118 |
# |
| 5119 |
# You should have received a copy of the GNU General Public License |
| 5120 |
# along with this program; if not, write to the Free Software |
| 5121 |
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 5122 |
# */ |
| 5123 |
# |
| 5124 |
# #include <stdio.h> /* for printf() */ |
| 5125 |
# #include <unistd.h> /* for open(), lseek(), read() */ |
| 5126 |
# #include <fcntl.h> /* for O_RDONLY, O_BINARY */ |
| 5127 |
# #include <string.h> /* for strdup() */ |
| 5128 |
# |
| 5129 |
# /* O_BINARY isn't required (or even defined sometimes) under Unix */ |
| 5130 |
# #ifndef O_BINARY |
| 5131 |
# #define O_BINARY 0 |
| 5132 |
# #endif |
| 5133 |
# |
| 5134 |
# static unsigned int |
| 5135 |
# pe_get16 (fd, offset) |
| 5136 |
# int fd; |
| 5137 |
# int offset; |
| 5138 |
# { |
| 5139 |
# unsigned char b[2]; |
| 5140 |
# lseek (fd, offset, SEEK_SET); |
| 5141 |
# read (fd, b, 2); |
| 5142 |
# return b[0] + (b[1]<<8); |
| 5143 |
# } |
| 5144 |
# |
| 5145 |
# static unsigned int |
| 5146 |
# pe_get32 (fd, offset) |
| 5147 |
# int fd; |
| 5148 |
# int offset; |
| 5149 |
# { |
| 5150 |
# unsigned char b[4]; |
| 5151 |
# lseek (fd, offset, SEEK_SET); |
| 5152 |
# read (fd, b, 4); |
| 5153 |
# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); |
| 5154 |
# } |
| 5155 |
# |
| 5156 |
# static unsigned int |
| 5157 |
# pe_as32 (ptr) |
| 5158 |
# void *ptr; |
| 5159 |
# { |
| 5160 |
# unsigned char *b = ptr; |
| 5161 |
# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); |
| 5162 |
# } |
| 5163 |
# |
| 5164 |
# int |
| 5165 |
# main (argc, argv) |
| 5166 |
# int argc; |
| 5167 |
# char *argv[]; |
| 5168 |
# { |
| 5169 |
# int dll; |
| 5170 |
# unsigned long pe_header_offset, opthdr_ofs, num_entries, i; |
| 5171 |
# unsigned long export_rva, export_size, nsections, secptr, expptr; |
| 5172 |
# unsigned long name_rvas, nexp; |
| 5173 |
# unsigned char *expdata, *erva; |
| 5174 |
# char *filename, *dll_name; |
| 5175 |
# |
| 5176 |
# filename = argv[1]; |
| 5177 |
# |
| 5178 |
# dll = open(filename, O_RDONLY|O_BINARY); |
| 5179 |
# if (dll < 1) |
| 5180 |
# return 1; |
| 5181 |
# |
| 5182 |
# dll_name = filename; |
| 5183 |
# |
| 5184 |
# for (i=0; filename[i]; i++) |
| 5185 |
# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':') |
| 5186 |
# dll_name = filename + i +1; |
| 5187 |
# |
| 5188 |
# pe_header_offset = pe_get32 (dll, 0x3c); |
| 5189 |
# opthdr_ofs = pe_header_offset + 4 + 20; |
| 5190 |
# num_entries = pe_get32 (dll, opthdr_ofs + 92); |
| 5191 |
# |
| 5192 |
# if (num_entries < 1) /* no exports */ |
| 5193 |
# return 1; |
| 5194 |
# |
| 5195 |
# export_rva = pe_get32 (dll, opthdr_ofs + 96); |
| 5196 |
# export_size = pe_get32 (dll, opthdr_ofs + 100); |
| 5197 |
# nsections = pe_get16 (dll, pe_header_offset + 4 +2); |
| 5198 |
# secptr = (pe_header_offset + 4 + 20 + |
| 5199 |
# pe_get16 (dll, pe_header_offset + 4 + 16)); |
| 5200 |
# |
| 5201 |
# expptr = 0; |
| 5202 |
# for (i = 0; i < nsections; i++) |
| 5203 |
# { |
| 5204 |
# char sname[8]; |
| 5205 |
# unsigned long secptr1 = secptr + 40 * i; |
| 5206 |
# unsigned long vaddr = pe_get32 (dll, secptr1 + 12); |
| 5207 |
# unsigned long vsize = pe_get32 (dll, secptr1 + 16); |
| 5208 |
# unsigned long fptr = pe_get32 (dll, secptr1 + 20); |
| 5209 |
# lseek(dll, secptr1, SEEK_SET); |
| 5210 |
# read(dll, sname, 8); |
| 5211 |
# if (vaddr <= export_rva && vaddr+vsize > export_rva) |
| 5212 |
# { |
| 5213 |
# expptr = fptr + (export_rva - vaddr); |
| 5214 |
# if (export_rva + export_size > vaddr + vsize) |
| 5215 |
# export_size = vsize - (export_rva - vaddr); |
| 5216 |
# break; |
| 5217 |
# } |
| 5218 |
# } |
| 5219 |
# |
| 5220 |
# expdata = (unsigned char*)malloc(export_size); |
| 5221 |
# lseek (dll, expptr, SEEK_SET); |
| 5222 |
# read (dll, expdata, export_size); |
| 5223 |
# erva = expdata - export_rva; |
| 5224 |
# |
| 5225 |
# nexp = pe_as32 (expdata+24); |
| 5226 |
# name_rvas = pe_as32 (expdata+32); |
| 5227 |
# |
| 5228 |
# printf ("EXPORTS\n"); |
| 5229 |
# for (i = 0; i<nexp; i++) |
| 5230 |
# { |
| 5231 |
# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4); |
| 5232 |
# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i); |
| 5233 |
# } |
| 5234 |
# |
| 5235 |
# return 0; |
| 5236 |
# } |
| 5237 |
# /* impgen.c ends here */ |
| 5238 |
|
| 5239 |
EOF |
| 5240 |
;; |
| 5241 |
esac |
| 5242 |
|
| 5243 |
# We use sed instead of cat because bash on DJGPP gets confused if |
| 5244 |
# if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 5245 |
# text mode, it properly converts lines to CR/LF. This bash problem |
| 5246 |
# is reportedly fixed, but why not run on old versions too? |
| 5247 |
sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1) |
| 5248 |
|
| 5249 |
mv -f "${ofile}T" "$ofile" || \ |
| 5250 |
(rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T") |
| 5251 |
chmod +x "$ofile" |
| 5252 |
fi |
| 5253 |
|
| 5254 |
|
| 5255 |
|
| 5256 |
|
| 5257 |
|
| 5258 |
# This can be used to rebuild libtool when needed |
| 5259 |
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
| 5260 |
|
| 5261 |
# Always use our own libtool. |
| 5262 |
LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 5263 |
|
| 5264 |
# Prevent multiple expansion |
| 5265 |
|
| 5266 |
|
| 5267 |
|
| 5268 |
SHARED_LIBTOOL='$(LIBTOOL)' |
| 5269 |
PHP_COMPILE='$(LIBTOOL) --mode=compile $(COMPILE) -c $<' |
| 5270 |
phplibdir="`pwd`/modules" |
| 5271 |
CPPFLAGS="$CPPFLAGS -DHAVE_CONFIG_H" |
| 5272 |
|
| 5273 |
test "$prefix" = "NONE" && prefix="/usr/local" |
| 5274 |
test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)' |
| 5275 |
|
| 5276 |
|
| 5277 |
PHP_VAR_SUBST="$PHP_VAR_SUBST prefix" |
| 5278 |
|
| 5279 |
|
| 5280 |
PHP_VAR_SUBST="$PHP_VAR_SUBST exec_prefix" |
| 5281 |
|
| 5282 |
|
| 5283 |
PHP_VAR_SUBST="$PHP_VAR_SUBST libdir" |
| 5284 |
|
| 5285 |
|
| 5286 |
PHP_VAR_SUBST="$PHP_VAR_SUBST prefix" |
| 5287 |
|
| 5288 |
|
| 5289 |
PHP_VAR_SUBST="$PHP_VAR_SUBST phplibdir" |
| 5290 |
|
| 5291 |
|
| 5292 |
|
| 5293 |
PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_COMPILE" |
| 5294 |
|
| 5295 |
|
| 5296 |
PHP_VAR_SUBST="$PHP_VAR_SUBST CC" |
| 5297 |
|
| 5298 |
|
| 5299 |
PHP_VAR_SUBST="$PHP_VAR_SUBST CFLAGS" |
| 5300 |
|
| 5301 |
|
| 5302 |
PHP_VAR_SUBST="$PHP_VAR_SUBST CPP" |
| 5303 |
|
| 5304 |
|
| 5305 |
PHP_VAR_SUBST="$PHP_VAR_SUBST CPPFLAGS" |
| 5306 |
|
| 5307 |
|
| 5308 |
PHP_VAR_SUBST="$PHP_VAR_SUBST CXX" |
| 5309 |
|
| 5310 |
|
| 5311 |
PHP_VAR_SUBST="$PHP_VAR_SUBST DEFS" |
| 5312 |
|
| 5313 |
|
| 5314 |
PHP_VAR_SUBST="$PHP_VAR_SUBST EXTENSION_DIR" |
| 5315 |
|
| 5316 |
|
| 5317 |
PHP_VAR_SUBST="$PHP_VAR_SUBST EXTRA_LDFLAGS" |
| 5318 |
|
| 5319 |
|
| 5320 |
PHP_VAR_SUBST="$PHP_VAR_SUBST EXTRA_LIBS" |
| 5321 |
|
| 5322 |
|
| 5323 |
PHP_VAR_SUBST="$PHP_VAR_SUBST INCLUDES" |
| 5324 |
|
| 5325 |
|
| 5326 |
PHP_VAR_SUBST="$PHP_VAR_SUBST LEX" |
| 5327 |
|
| 5328 |
|
| 5329 |
PHP_VAR_SUBST="$PHP_VAR_SUBST LEX_OUTPUT_ROOT" |
| 5330 |
|
| 5331 |
|
| 5332 |
PHP_VAR_SUBST="$PHP_VAR_SUBST LFLAGS" |
| 5333 |
|
| 5334 |
|
| 5335 |
PHP_VAR_SUBST="$PHP_VAR_SUBST SHARED_LIBTOOL" |
| 5336 |
|
| 5337 |
|
| 5338 |
PHP_VAR_SUBST="$PHP_VAR_SUBST LIBTOOL" |
| 5339 |
|
| 5340 |
|
| 5341 |
PHP_VAR_SUBST="$PHP_VAR_SUBST SHELL" |
| 5342 |
|
| 5343 |
|
| 5344 |
|
| 5345 |
PHP_FAST_OUTPUT_FILES="$PHP_FAST_OUTPUT_FILES Makefile" |
| 5346 |
|
| 5347 |
|
| 5348 |
|
| 5349 |
|
| 5350 |
echo $ac_n "checking for working mkdir -p""... $ac_c" 1>&6 |
| 5351 |
echo "configure:5351: checking for working mkdir -p" >&5 |
| 5352 |
if eval "test \"`echo '$''{'ac_cv_mkdir_p'+set}'`\" = set"; then |
| 5353 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 5354 |
else |
| 5355 |
|
| 5356 |
test -d conftestdir && rm -rf conftestdir |
| 5357 |
mkdir -p conftestdir/somedir >/dev/null 2>&1 |
| 5358 |
mkdir -p conftestdir/somedir >/dev/null 2>&1 |
| 5359 |
if test "$?" = "0" && test -d conftestdir/somedir; then |
| 5360 |
ac_cv_mkdir_p=yes |
| 5361 |
else |
| 5362 |
ac_cv_mkdir_p=no |
| 5363 |
fi |
| 5364 |
rm -rf conftestdir |
| 5365 |
|
| 5366 |
fi |
| 5367 |
|
| 5368 |
echo "$ac_t""$ac_cv_mkdir_p" 1>&6 |
| 5369 |
|
| 5370 |
echo creating config_vars.mk |
| 5371 |
> config_vars.mk |
| 5372 |
for i in $PHP_VAR_SUBST; do |
| 5373 |
eval echo "$i = \$$i" >> config_vars.mk |
| 5374 |
done |
| 5375 |
|
| 5376 |
|
| 5377 |
$SHELL $srcdir/build/fastgen.sh $srcdir $ac_cv_mkdir_p $BSD_MAKEFILE $PHP_FAST_OUTPUT_FILES |
| 5378 |
|
| 5379 |
|
| 5380 |
test -d modules || mkdir modules |
| 5381 |
touch .deps |
| 5382 |
|
| 5383 |
|
| 5384 |
|
| 5385 |
trap '' 1 2 15 |
| 5386 |
cat > confcache <<\EOF |
| 5387 |
# This file is a shell script that caches the results of configure |
| 5388 |
# tests run on this system so they can be shared between configure |
| 5389 |
# scripts and configure runs. It is not useful on other systems. |
| 5390 |
# If it contains results you don't want to keep, you may remove or edit it. |
| 5391 |
# |
| 5392 |
# By default, configure uses ./config.cache as the cache file, |
| 5393 |
# creating it if it does not exist already. You can give configure |
| 5394 |
# the --cache-file=FILE option to use a different cache file; that is |
| 5395 |
# what configure does when it calls configure scripts in |
| 5396 |
# subdirectories, so they share the cache. |
| 5397 |
# Giving --cache-file=/dev/null disables caching, for debugging configure. |
| 5398 |
# config.status only pays attention to the cache file if you give it the |
| 5399 |
# --recheck option to rerun configure. |
| 5400 |
# |
| 5401 |
EOF |
| 5402 |
# The following way of writing the cache mishandles newlines in values, |
| 5403 |
# but we know of no workaround that is simple, portable, and efficient. |
| 5404 |
# So, don't put newlines in cache variables' values. |
| 5405 |
# Ultrix sh set writes to stderr and can't be redirected directly, |
| 5406 |
# and sets the high bit in the cache file unless we assign to the vars. |
| 5407 |
(set) 2>&1 | |
| 5408 |
case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 5409 |
*ac_space=\ *) |
| 5410 |
# `set' does not quote correctly, so add quotes (double-quote substitution |
| 5411 |
# turns \\\\ into \\, and sed turns \\ into \). |
| 5412 |
sed -n \ |
| 5413 |
-e "s/'/'\\\\''/g" \ |
| 5414 |
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
| 5415 |
;; |
| 5416 |
*) |
| 5417 |
# `set' quotes correctly as required by POSIX, so do not add quotes. |
| 5418 |
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
| 5419 |
;; |
| 5420 |
esac >> confcache |
| 5421 |
if cmp -s $cache_file confcache; then |
| 5422 |
: |
| 5423 |
else |
| 5424 |
if test -w $cache_file; then |
| 5425 |
echo "updating cache $cache_file" |
| 5426 |
cat confcache > $cache_file |
| 5427 |
else |
| 5428 |
echo "not updating unwritable cache $cache_file" |
| 5429 |
fi |
| 5430 |
fi |
| 5431 |
rm -f confcache |
| 5432 |
|
| 5433 |
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
| 5434 |
|
| 5435 |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 5436 |
# Let make expand exec_prefix. |
| 5437 |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 5438 |
|
| 5439 |
# Any assignment to VPATH causes Sun make to only execute |
| 5440 |
# the first set of double-colon rules, so remove it if not needed. |
| 5441 |
# If there is a colon in the path, we need to keep it. |
| 5442 |
if test "x$srcdir" = x.; then |
| 5443 |
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
| 5444 |
fi |
| 5445 |
|
| 5446 |
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
| 5447 |
|
| 5448 |
DEFS=-DHAVE_CONFIG_H |
| 5449 |
|
| 5450 |
# Without the "./", some shells look in PATH for config.status. |
| 5451 |
: ${CONFIG_STATUS=./config.status} |
| 5452 |
|
| 5453 |
echo creating $CONFIG_STATUS |
| 5454 |
rm -f $CONFIG_STATUS |
| 5455 |
cat > $CONFIG_STATUS <<EOF |
| 5456 |
#! /bin/sh |
| 5457 |
# Generated automatically by configure. |
| 5458 |
# Run this file to recreate the current configuration. |
| 5459 |
# This directory was configured as follows, |
| 5460 |
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 5461 |
# |
| 5462 |
# $0 $ac_configure_args |
| 5463 |
# |
| 5464 |
# Compiler output produced by configure, useful for debugging |
| 5465 |
# configure, is in ./config.log if it exists. |
| 5466 |
|
| 5467 |
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
| 5468 |
for ac_option |
| 5469 |
do |
| 5470 |
case "\$ac_option" in |
| 5471 |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 5472 |
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
| 5473 |
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
| 5474 |
-version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
| 5475 |
echo "$CONFIG_STATUS generated by autoconf version 2.13" |
| 5476 |
exit 0 ;; |
| 5477 |
-help | --help | --hel | --he | --h) |
| 5478 |
echo "\$ac_cs_usage"; exit 0 ;; |
| 5479 |
*) echo "\$ac_cs_usage"; exit 1 ;; |
| 5480 |
esac |
| 5481 |
done |
| 5482 |
|
| 5483 |
ac_given_srcdir=$srcdir |
| 5484 |
|
| 5485 |
trap 'rm -fr `echo " config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
| 5486 |
EOF |
| 5487 |
cat >> $CONFIG_STATUS <<EOF |
| 5488 |
|
| 5489 |
# Protect against being on the right side of a sed subst in config.status. |
| 5490 |
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
| 5491 |
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
| 5492 |
$ac_vpsub |
| 5493 |
$extrasub |
| 5494 |
s%@SHELL@%$SHELL%g |
| 5495 |
s%@CFLAGS@%$CFLAGS%g |
| 5496 |
s%@CPPFLAGS@%$CPPFLAGS%g |
| 5497 |
s%@CXXFLAGS@%$CXXFLAGS%g |
| 5498 |
s%@FFLAGS@%$FFLAGS%g |
| 5499 |
s%@DEFS@%$DEFS%g |
| 5500 |
s%@LDFLAGS@%$LDFLAGS%g |
| 5501 |
s%@LIBS@%$LIBS%g |
| 5502 |
s%@exec_prefix@%$exec_prefix%g |
| 5503 |
s%@prefix@%$prefix%g |
| 5504 |
s%@program_transform_name@%$program_transform_name%g |
| 5505 |
s%@bindir@%$bindir%g |
| 5506 |
s%@sbindir@%$sbindir%g |
| 5507 |
s%@libexecdir@%$libexecdir%g |
| 5508 |
s%@datadir@%$datadir%g |
| 5509 |
s%@sysconfdir@%$sysconfdir%g |
| 5510 |
s%@sharedstatedir@%$sharedstatedir%g |
| 5511 |
s%@localstatedir@%$localstatedir%g |
| 5512 |
s%@libdir@%$libdir%g |
| 5513 |
s%@includedir@%$includedir%g |
| 5514 |
s%@oldincludedir@%$oldincludedir%g |
| 5515 |
s%@infodir@%$infodir%g |
| 5516 |
s%@mandir@%$mandir%g |
| 5517 |
s%@CC@%$CC%g |
| 5518 |
s%@host@%$host%g |
| 5519 |
s%@host_alias@%$host_alias%g |
| 5520 |
s%@host_cpu@%$host_cpu%g |
| 5521 |
s%@host_vendor@%$host_vendor%g |
| 5522 |
s%@host_os@%$host_os%g |
| 5523 |
s%@build@%$build%g |
| 5524 |
s%@build_alias@%$build_alias%g |
| 5525 |
s%@build_cpu@%$build_cpu%g |
| 5526 |
s%@build_vendor@%$build_vendor%g |
| 5527 |
s%@build_os@%$build_os%g |
| 5528 |
s%@LN_S@%$LN_S%g |
| 5529 |
s%@OBJEXT@%$OBJEXT%g |
| 5530 |
s%@EXEEXT@%$EXEEXT%g |
| 5531 |
s%@ECHO@%$ECHO%g |
| 5532 |
s%@RANLIB@%$RANLIB%g |
| 5533 |
s%@STRIP@%$STRIP%g |
| 5534 |
s%@CPP@%$CPP%g |
| 5535 |
s%@LIBTOOL@%$LIBTOOL%g |
| 5536 |
|
| 5537 |
CEOF |
| 5538 |
EOF |
| 5539 |
|
| 5540 |
cat >> $CONFIG_STATUS <<\EOF |
| 5541 |
|
| 5542 |
# Split the substitutions into bite-sized pieces for seds with |
| 5543 |
# small command number limits, like on Digital OSF/1 and HP-UX. |
| 5544 |
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
| 5545 |
ac_file=1 # Number of current file. |
| 5546 |
ac_beg=1 # First line for current file. |
| 5547 |
ac_end=$ac_max_sed_cmds # Line after last line for current file. |
| 5548 |
ac_more_lines=: |
| 5549 |
ac_sed_cmds="" |
| 5550 |
while $ac_more_lines; do |
| 5551 |
if test $ac_beg -gt 1; then |
| 5552 |
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
| 5553 |
else |
| 5554 |
sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
| 5555 |
fi |
| 5556 |
if test ! -s conftest.s$ac_file; then |
| 5557 |
ac_more_lines=false |
| 5558 |
rm -f conftest.s$ac_file |
| 5559 |
else |
| 5560 |
if test -z "$ac_sed_cmds"; then |
| 5561 |
ac_sed_cmds="sed -f conftest.s$ac_file" |
| 5562 |
else |
| 5563 |
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
| 5564 |
fi |
| 5565 |
ac_file=`expr $ac_file + 1` |
| 5566 |
ac_beg=$ac_end |
| 5567 |
ac_end=`expr $ac_end + $ac_max_sed_cmds` |
| 5568 |
fi |
| 5569 |
done |
| 5570 |
if test -z "$ac_sed_cmds"; then |
| 5571 |
ac_sed_cmds=cat |
| 5572 |
fi |
| 5573 |
EOF |
| 5574 |
|
| 5575 |
cat >> $CONFIG_STATUS <<EOF |
| 5576 |
|
| 5577 |
CONFIG_FILES=\${CONFIG_FILES-""} |
| 5578 |
EOF |
| 5579 |
cat >> $CONFIG_STATUS <<\EOF |
| 5580 |
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
| 5581 |
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 5582 |
case "$ac_file" in |
| 5583 |
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
| 5584 |
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 5585 |
*) ac_file_in="${ac_file}.in" ;; |
| 5586 |
esac |
| 5587 |
|
| 5588 |
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
| 5589 |
|
| 5590 |
# Remove last slash and all that follows it. Not all systems have dirname. |
| 5591 |
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 5592 |
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 5593 |
# The file is in a subdirectory. |
| 5594 |
test ! -d "$ac_dir" && mkdir "$ac_dir" |
| 5595 |
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
| 5596 |
# A "../" for each directory in $ac_dir_suffix. |
| 5597 |
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
| 5598 |
else |
| 5599 |
ac_dir_suffix= ac_dots= |
| 5600 |
fi |
| 5601 |
|
| 5602 |
case "$ac_given_srcdir" in |
| 5603 |
.) srcdir=. |
| 5604 |
if test -z "$ac_dots"; then top_srcdir=. |
| 5605 |
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
| 5606 |
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
| 5607 |
*) # Relative path. |
| 5608 |
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
| 5609 |
top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 5610 |
esac |
| 5611 |
|
| 5612 |
|
| 5613 |
echo creating "$ac_file" |
| 5614 |
rm -f "$ac_file" |
| 5615 |
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
| 5616 |
case "$ac_file" in |
| 5617 |
*Makefile*) ac_comsub="1i\\ |
| 5618 |
# $configure_input" ;; |
| 5619 |
*) ac_comsub= ;; |
| 5620 |
esac |
| 5621 |
|
| 5622 |
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
| 5623 |
sed -e "$ac_comsub |
| 5624 |
s%@configure_input@%$configure_input%g |
| 5625 |
s%@srcdir@%$srcdir%g |
| 5626 |
s%@top_srcdir@%$top_srcdir%g |
| 5627 |
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
| 5628 |
fi; done |
| 5629 |
rm -f conftest.s* |
| 5630 |
|
| 5631 |
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 5632 |
# NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 5633 |
# |
| 5634 |
# ac_d sets the value in "#define NAME VALUE" lines. |
| 5635 |
ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 5636 |
ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
| 5637 |
ac_dC='\3' |
| 5638 |
ac_dD='%g' |
| 5639 |
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". |
| 5640 |
ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 5641 |
ac_uB='\([ ]\)%\1#\2define\3' |
| 5642 |
ac_uC=' ' |
| 5643 |
ac_uD='\4%g' |
| 5644 |
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 5645 |
ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 5646 |
ac_eB='$%\1#\2define\3' |
| 5647 |
ac_eC=' ' |
| 5648 |
ac_eD='%g' |
| 5649 |
|
| 5650 |
if test "${CONFIG_HEADERS+set}" != set; then |
| 5651 |
EOF |
| 5652 |
cat >> $CONFIG_STATUS <<EOF |
| 5653 |
CONFIG_HEADERS="config.h" |
| 5654 |
EOF |
| 5655 |
cat >> $CONFIG_STATUS <<\EOF |
| 5656 |
fi |
| 5657 |
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then |
| 5658 |
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 5659 |
case "$ac_file" in |
| 5660 |
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
| 5661 |
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 5662 |
*) ac_file_in="${ac_file}.in" ;; |
| 5663 |
esac |
| 5664 |
|
| 5665 |
echo creating $ac_file |
| 5666 |
|
| 5667 |
rm -f conftest.frag conftest.in conftest.out |
| 5668 |
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
| 5669 |
cat $ac_file_inputs > conftest.in |
| 5670 |
|
| 5671 |
EOF |
| 5672 |
|
| 5673 |
# Transform confdefs.h into a sed script conftest.vals that substitutes |
| 5674 |
# the proper values into config.h.in to produce config.h. And first: |
| 5675 |
# Protect against being on the right side of a sed subst in config.status. |
| 5676 |
# Protect against being in an unquoted here document in config.status. |
| 5677 |
rm -f conftest.vals |
| 5678 |
cat > conftest.hdr <<\EOF |
| 5679 |
s/[\\&%]/\\&/g |
| 5680 |
s%[\\$`]%\\&%g |
| 5681 |
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp |
| 5682 |
s%ac_d%ac_u%gp |
| 5683 |
s%ac_u%ac_e%gp |
| 5684 |
EOF |
| 5685 |
sed -n -f conftest.hdr confdefs.h > conftest.vals |
| 5686 |
rm -f conftest.hdr |
| 5687 |
|
| 5688 |
# This sed command replaces #undef with comments. This is necessary, for |
| 5689 |
# example, in the case of _POSIX_SOURCE, which is predefined and required |
| 5690 |
# on some systems where configure will not decide to define it. |
| 5691 |
cat >> conftest.vals <<\EOF |
| 5692 |
s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
| 5693 |
EOF |
| 5694 |
|
| 5695 |
# Break up conftest.vals because some shells have a limit on |
| 5696 |
# the size of here documents, and old seds have small limits too. |
| 5697 |
|
| 5698 |
rm -f conftest.tail |
| 5699 |
while : |
| 5700 |
do |
| 5701 |
ac_lines=`grep -c . conftest.vals` |
| 5702 |
# grep -c gives empty output for an empty file on some AIX systems. |
| 5703 |
if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
| 5704 |
# Write a limited-size here document to conftest.frag. |
| 5705 |
echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
| 5706 |
sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
| 5707 |
echo 'CEOF |
| 5708 |
sed -f conftest.frag conftest.in > conftest.out |
| 5709 |
rm -f conftest.in |
| 5710 |
mv conftest.out conftest.in |
| 5711 |
' >> $CONFIG_STATUS |
| 5712 |
sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
| 5713 |
rm -f conftest.vals |
| 5714 |
mv conftest.tail conftest.vals |
| 5715 |
done |
| 5716 |
rm -f conftest.vals |
| 5717 |
|
| 5718 |
cat >> $CONFIG_STATUS <<\EOF |
| 5719 |
rm -f conftest.frag conftest.h |
| 5720 |
echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
| 5721 |
cat conftest.in >> conftest.h |
| 5722 |
rm -f conftest.in |
| 5723 |
if cmp -s $ac_file conftest.h 2>/dev/null; then |
| 5724 |
echo "$ac_file is unchanged" |
| 5725 |
rm -f conftest.h |
| 5726 |
else |
| 5727 |
# Remove last slash and all that follows it. Not all systems have dirname. |
| 5728 |
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 5729 |
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 5730 |
# The file is in a subdirectory. |
| 5731 |
test ! -d "$ac_dir" && mkdir "$ac_dir" |
| 5732 |
fi |
| 5733 |
rm -f $ac_file |
| 5734 |
mv conftest.h $ac_file |
| 5735 |
fi |
| 5736 |
fi; done |
| 5737 |
|
| 5738 |
EOF |
| 5739 |
cat >> $CONFIG_STATUS <<EOF |
| 5740 |
|
| 5741 |
EOF |
| 5742 |
cat >> $CONFIG_STATUS <<\EOF |
| 5743 |
|
| 5744 |
exit 0 |
| 5745 |
EOF |
| 5746 |
chmod +x $CONFIG_STATUS |
| 5747 |
rm -fr confdefs* $ac_clean_files |
| 5748 |
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
| 5749 |
|