| 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 |
--enable-debug enable debug options [default=no]" |
| 16 |
ac_help="$ac_help |
| 17 |
--enable-libraries build and install libraries [default=yes]" |
| 18 |
ac_help="$ac_help |
| 19 |
--enable-server build and install server [default=yes]" |
| 20 |
ac_help="$ac_help |
| 21 |
--enable-client build and install clients [default=no]" |
| 22 |
ac_help="$ac_help |
| 23 |
--enable-Wnn build and install Wnn [default=yes]" |
| 24 |
ac_help="$ac_help |
| 25 |
--enable-cWnn build and install cWnn [default=yes]" |
| 26 |
ac_help="$ac_help |
| 27 |
--enable-kWnn build and install kWnn [default=yes]" |
| 28 |
ac_help="$ac_help |
| 29 |
--with-libwnn use installed Wnn library [default=no]" |
| 30 |
ac_help="$ac_help |
| 31 |
--with-wnn-includes=DIR WNN include files are in DIR" |
| 32 |
ac_help="$ac_help |
| 33 |
--with-wnn-libraries=DIR Search for WNN libraries in DIR[default=/usr/local/lib]" |
| 34 |
ac_help="$ac_help |
| 35 |
--with-libcwnn use installed cWnn library [default=no]" |
| 36 |
ac_help="$ac_help |
| 37 |
--with-cwnn-includes=DIR CWNN include files are in DIR" |
| 38 |
ac_help="$ac_help |
| 39 |
--with-cwnn-libraries=DIR Search for CWNN libraries in DIR[default=/usr/local/lib]" |
| 40 |
ac_help="$ac_help |
| 41 |
--with-libkwnn use installed kWnn library [default=no]" |
| 42 |
ac_help="$ac_help |
| 43 |
--with-kwnn-includes=DIR KWNN include files are in DIR" |
| 44 |
ac_help="$ac_help |
| 45 |
--with-kwnn-libraries=DIR Search for KWNN libraries in DIR[default=/usr/local/lib]" |
| 46 |
ac_help="$ac_help |
| 47 |
--enable-ipv6 build and install IPv6 [default=no]" |
| 48 |
ac_help="$ac_help |
| 49 |
--enable-unsafe-path allow creating files in an arbitrary path [default=no]" |
| 50 |
ac_help="$ac_help |
| 51 |
--enable-shared[=PKGS] build shared libraries [default=yes]" |
| 52 |
ac_help="$ac_help |
| 53 |
--enable-static[=PKGS] build static libraries [default=yes]" |
| 54 |
ac_help="$ac_help |
| 55 |
--enable-fast-install[=PKGS] optimize for fast installation [default=yes]" |
| 56 |
ac_help="$ac_help |
| 57 |
--with-gnu-ld assume the C compiler uses GNU ld [default=no]" |
| 58 |
|
| 59 |
# Find the correct PATH separator. Usually this is `:', but |
| 60 |
# DJGPP uses `;' like DOS. |
| 61 |
if test "X${PATH_SEPARATOR+set}" != Xset; then |
| 62 |
UNAME=${UNAME-`uname 2>/dev/null`} |
| 63 |
case X$UNAME in |
| 64 |
*-DOS) lt_cv_sys_path_separator=';' ;; |
| 65 |
*) lt_cv_sys_path_separator=':' ;; |
| 66 |
esac |
| 67 |
fi |
| 68 |
|
| 69 |
|
| 70 |
# Check that we are running under the correct shell. |
| 71 |
SHELL=${CONFIG_SHELL-/bin/sh} |
| 72 |
|
| 73 |
case X$ECHO in |
| 74 |
X*--fallback-echo) |
| 75 |
# Remove one level of quotation (which was required for Make). |
| 76 |
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
| 77 |
;; |
| 78 |
esac |
| 79 |
|
| 80 |
echo=${ECHO-echo} |
| 81 |
if test "X$1" = X--no-reexec; then |
| 82 |
# Discard the --no-reexec flag, and continue. |
| 83 |
shift |
| 84 |
elif test "X$1" = X--fallback-echo; then |
| 85 |
# Avoid inline document here, it may be left over |
| 86 |
: |
| 87 |
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then |
| 88 |
# Yippee, $echo works! |
| 89 |
: |
| 90 |
else |
| 91 |
# Restart under the correct shell. |
| 92 |
exec $SHELL "$0" --no-reexec ${1+"$@"} |
| 93 |
fi |
| 94 |
|
| 95 |
if test "X$1" = X--fallback-echo; then |
| 96 |
# used as fallback echo |
| 97 |
shift |
| 98 |
cat <<EOF |
| 99 |
|
| 100 |
EOF |
| 101 |
exit 0 |
| 102 |
fi |
| 103 |
|
| 104 |
# The HP-UX ksh and POSIX shell print the target directory to stdout |
| 105 |
# if CDPATH is set. |
| 106 |
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
| 107 |
|
| 108 |
if test -z "$ECHO"; then |
| 109 |
if test "X${echo_test_string+set}" != Xset; then |
| 110 |
# find a string as large as possible, as long as the shell can cope with it |
| 111 |
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
| 112 |
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
| 113 |
if (echo_test_string="`eval $cmd`") 2>/dev/null && |
| 114 |
echo_test_string="`eval $cmd`" && |
| 115 |
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
| 116 |
then |
| 117 |
break |
| 118 |
fi |
| 119 |
done |
| 120 |
fi |
| 121 |
|
| 122 |
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 123 |
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 124 |
test "X$echo_testing_string" = "X$echo_test_string"; then |
| 125 |
: |
| 126 |
else |
| 127 |
# The Solaris, AIX, and Digital Unix default echo programs unquote |
| 128 |
# backslashes. This makes it impossible to quote backslashes using |
| 129 |
# echo "$something" | sed 's/\\/\\\\/g' |
| 130 |
# |
| 131 |
# So, first we look for a working echo in the user's PATH. |
| 132 |
|
| 133 |
IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}" |
| 134 |
for dir in $PATH /usr/ucb; do |
| 135 |
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
| 136 |
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
| 137 |
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
| 138 |
test "X$echo_testing_string" = "X$echo_test_string"; then |
| 139 |
echo="$dir/echo" |
| 140 |
break |
| 141 |
fi |
| 142 |
done |
| 143 |
IFS="$save_ifs" |
| 144 |
|
| 145 |
if test "X$echo" = Xecho; then |
| 146 |
# We didn't find a better echo, so look for alternatives. |
| 147 |
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
| 148 |
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
| 149 |
test "X$echo_testing_string" = "X$echo_test_string"; then |
| 150 |
# This shell has a builtin print -r that does the trick. |
| 151 |
echo='print -r' |
| 152 |
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
| 153 |
test "X$CONFIG_SHELL" != X/bin/ksh; then |
| 154 |
# If we have ksh, try running configure again with it. |
| 155 |
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
| 156 |
export ORIGINAL_CONFIG_SHELL |
| 157 |
CONFIG_SHELL=/bin/ksh |
| 158 |
export CONFIG_SHELL |
| 159 |
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
| 160 |
else |
| 161 |
# Try using printf. |
| 162 |
echo='printf %s\n' |
| 163 |
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 164 |
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 165 |
test "X$echo_testing_string" = "X$echo_test_string"; then |
| 166 |
# Cool, printf works |
| 167 |
: |
| 168 |
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 169 |
test "X$echo_testing_string" = 'X\t' && |
| 170 |
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 171 |
test "X$echo_testing_string" = "X$echo_test_string"; then |
| 172 |
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
| 173 |
export CONFIG_SHELL |
| 174 |
SHELL="$CONFIG_SHELL" |
| 175 |
export SHELL |
| 176 |
echo="$CONFIG_SHELL $0 --fallback-echo" |
| 177 |
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 178 |
test "X$echo_testing_string" = 'X\t' && |
| 179 |
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 180 |
test "X$echo_testing_string" = "X$echo_test_string"; then |
| 181 |
echo="$CONFIG_SHELL $0 --fallback-echo" |
| 182 |
else |
| 183 |
# maybe with a smaller string... |
| 184 |
prev=: |
| 185 |
|
| 186 |
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
| 187 |
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
| 188 |
then |
| 189 |
break |
| 190 |
fi |
| 191 |
prev="$cmd" |
| 192 |
done |
| 193 |
|
| 194 |
if test "$prev" != 'sed 50q "$0"'; then |
| 195 |
echo_test_string=`eval $prev` |
| 196 |
export echo_test_string |
| 197 |
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
| 198 |
else |
| 199 |
# Oops. We lost completely, so just stick with echo. |
| 200 |
echo=echo |
| 201 |
fi |
| 202 |
fi |
| 203 |
fi |
| 204 |
fi |
| 205 |
fi |
| 206 |
fi |
| 207 |
|
| 208 |
# Copy echo and quote the copy suitably for passing to libtool from |
| 209 |
# the Makefile, instead of quoting the original, which is used later. |
| 210 |
ECHO=$echo |
| 211 |
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
| 212 |
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
| 213 |
fi |
| 214 |
|
| 215 |
|
| 216 |
ac_help="$ac_help |
| 217 |
--disable-libtool-lock avoid locking (might break parallel builds)" |
| 218 |
ac_help="$ac_help |
| 219 |
--with-pic try to use only PIC/non-PIC objects [default=use both]" |
| 220 |
ac_help="$ac_help |
| 221 |
--with-x use the X Window System" |
| 222 |
|
| 223 |
# Initialize some variables set by options. |
| 224 |
# The variables have the same names as the options, with |
| 225 |
# dashes changed to underlines. |
| 226 |
build=NONE |
| 227 |
cache_file=./config.cache |
| 228 |
exec_prefix=NONE |
| 229 |
host=NONE |
| 230 |
no_create= |
| 231 |
nonopt=NONE |
| 232 |
no_recursion= |
| 233 |
prefix=NONE |
| 234 |
program_prefix=NONE |
| 235 |
program_suffix=NONE |
| 236 |
program_transform_name=s,x,x, |
| 237 |
silent= |
| 238 |
site= |
| 239 |
sitefile= |
| 240 |
srcdir= |
| 241 |
target=NONE |
| 242 |
verbose= |
| 243 |
x_includes=NONE |
| 244 |
x_libraries=NONE |
| 245 |
bindir='${exec_prefix}/bin' |
| 246 |
sbindir='${exec_prefix}/sbin' |
| 247 |
libexecdir='${exec_prefix}/libexec' |
| 248 |
datadir='${prefix}/share' |
| 249 |
sysconfdir='${prefix}/etc' |
| 250 |
sharedstatedir='${prefix}/com' |
| 251 |
localstatedir='${prefix}/var' |
| 252 |
libdir='${exec_prefix}/lib' |
| 253 |
includedir='${prefix}/include' |
| 254 |
oldincludedir='/usr/include' |
| 255 |
infodir='${prefix}/info' |
| 256 |
mandir='${prefix}/man' |
| 257 |
|
| 258 |
# Initialize some other variables. |
| 259 |
subdirs= |
| 260 |
MFLAGS= MAKEFLAGS= |
| 261 |
SHELL=${CONFIG_SHELL-/bin/sh} |
| 262 |
# Maximum number of lines to put in a shell here document. |
| 263 |
ac_max_here_lines=12 |
| 264 |
|
| 265 |
ac_prev= |
| 266 |
for ac_option |
| 267 |
do |
| 268 |
|
| 269 |
# If the previous option needs an argument, assign it. |
| 270 |
if test -n "$ac_prev"; then |
| 271 |
eval "$ac_prev=\$ac_option" |
| 272 |
ac_prev= |
| 273 |
continue |
| 274 |
fi |
| 275 |
|
| 276 |
case "$ac_option" in |
| 277 |
-*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
| 278 |
*) ac_optarg= ;; |
| 279 |
esac |
| 280 |
|
| 281 |
# Accept the important Cygnus configure options, so we can diagnose typos. |
| 282 |
|
| 283 |
case "$ac_option" in |
| 284 |
|
| 285 |
-bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 286 |
ac_prev=bindir ;; |
| 287 |
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 288 |
bindir="$ac_optarg" ;; |
| 289 |
|
| 290 |
-build | --build | --buil | --bui | --bu) |
| 291 |
ac_prev=build ;; |
| 292 |
-build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 293 |
build="$ac_optarg" ;; |
| 294 |
|
| 295 |
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 296 |
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 297 |
ac_prev=cache_file ;; |
| 298 |
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 299 |
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 300 |
cache_file="$ac_optarg" ;; |
| 301 |
|
| 302 |
-datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 303 |
ac_prev=datadir ;; |
| 304 |
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 305 |
| --da=*) |
| 306 |
datadir="$ac_optarg" ;; |
| 307 |
|
| 308 |
-disable-* | --disable-*) |
| 309 |
ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
| 310 |
# Reject names that are not valid shell variable names. |
| 311 |
if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
| 312 |
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
| 313 |
fi |
| 314 |
ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 315 |
eval "enable_${ac_feature}=no" ;; |
| 316 |
|
| 317 |
-enable-* | --enable-*) |
| 318 |
ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
| 319 |
# Reject names that are not valid shell variable names. |
| 320 |
if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
| 321 |
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
| 322 |
fi |
| 323 |
ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 324 |
case "$ac_option" in |
| 325 |
*=*) ;; |
| 326 |
*) ac_optarg=yes ;; |
| 327 |
esac |
| 328 |
eval "enable_${ac_feature}='$ac_optarg'" ;; |
| 329 |
|
| 330 |
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 331 |
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 332 |
| --exec | --exe | --ex) |
| 333 |
ac_prev=exec_prefix ;; |
| 334 |
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 335 |
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 336 |
| --exec=* | --exe=* | --ex=*) |
| 337 |
exec_prefix="$ac_optarg" ;; |
| 338 |
|
| 339 |
-gas | --gas | --ga | --g) |
| 340 |
# Obsolete; use --with-gas. |
| 341 |
with_gas=yes ;; |
| 342 |
|
| 343 |
-help | --help | --hel | --he) |
| 344 |
# Omit some internal or obsolete options to make the list less imposing. |
| 345 |
# This message is too long to be a string in the A/UX 3.1 sh. |
| 346 |
cat << EOF |
| 347 |
Usage: configure [options] [host] |
| 348 |
Options: [defaults in brackets after descriptions] |
| 349 |
Configuration: |
| 350 |
--cache-file=FILE cache test results in FILE |
| 351 |
--help print this message |
| 352 |
--no-create do not create output files |
| 353 |
--quiet, --silent do not print \`checking...' messages |
| 354 |
--site-file=FILE use FILE as the site file |
| 355 |
--version print the version of autoconf that created configure |
| 356 |
Directory and file names: |
| 357 |
--prefix=PREFIX install architecture-independent files in PREFIX |
| 358 |
[$ac_default_prefix] |
| 359 |
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 360 |
[same as prefix] |
| 361 |
--bindir=DIR user executables in DIR [EPREFIX/bin] |
| 362 |
--sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
| 363 |
--libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
| 364 |
--datadir=DIR read-only architecture-independent data in DIR |
| 365 |
[PREFIX/share] |
| 366 |
--sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
| 367 |
--sharedstatedir=DIR modifiable architecture-independent data in DIR |
| 368 |
[PREFIX/com] |
| 369 |
--localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
| 370 |
--libdir=DIR object code libraries in DIR [EPREFIX/lib] |
| 371 |
--includedir=DIR C header files in DIR [PREFIX/include] |
| 372 |
--oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
| 373 |
--infodir=DIR info documentation in DIR [PREFIX/info] |
| 374 |
--mandir=DIR man documentation in DIR [PREFIX/man] |
| 375 |
--srcdir=DIR find the sources in DIR [configure dir or ..] |
| 376 |
--program-prefix=PREFIX prepend PREFIX to installed program names |
| 377 |
--program-suffix=SUFFIX append SUFFIX to installed program names |
| 378 |
--program-transform-name=PROGRAM |
| 379 |
run sed PROGRAM on installed program names |
| 380 |
EOF |
| 381 |
cat << EOF |
| 382 |
Host type: |
| 383 |
--build=BUILD configure for building on BUILD [BUILD=HOST] |
| 384 |
--host=HOST configure for HOST [guessed] |
| 385 |
--target=TARGET configure for TARGET [TARGET=HOST] |
| 386 |
Features and packages: |
| 387 |
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 388 |
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 389 |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 390 |
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 391 |
--x-includes=DIR X include files are in DIR |
| 392 |
--x-libraries=DIR X library files are in DIR |
| 393 |
EOF |
| 394 |
if test -n "$ac_help"; then |
| 395 |
echo "--enable and --with options recognized:$ac_help" |
| 396 |
fi |
| 397 |
exit 0 ;; |
| 398 |
|
| 399 |
-host | --host | --hos | --ho) |
| 400 |
ac_prev=host ;; |
| 401 |
-host=* | --host=* | --hos=* | --ho=*) |
| 402 |
host="$ac_optarg" ;; |
| 403 |
|
| 404 |
-includedir | --includedir | --includedi | --included | --include \ |
| 405 |
| --includ | --inclu | --incl | --inc) |
| 406 |
ac_prev=includedir ;; |
| 407 |
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 408 |
| --includ=* | --inclu=* | --incl=* | --inc=*) |
| 409 |
includedir="$ac_optarg" ;; |
| 410 |
|
| 411 |
-infodir | --infodir | --infodi | --infod | --info | --inf) |
| 412 |
ac_prev=infodir ;; |
| 413 |
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 414 |
infodir="$ac_optarg" ;; |
| 415 |
|
| 416 |
-libdir | --libdir | --libdi | --libd) |
| 417 |
ac_prev=libdir ;; |
| 418 |
-libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 419 |
libdir="$ac_optarg" ;; |
| 420 |
|
| 421 |
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 422 |
| --libexe | --libex | --libe) |
| 423 |
ac_prev=libexecdir ;; |
| 424 |
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 425 |
| --libexe=* | --libex=* | --libe=*) |
| 426 |
libexecdir="$ac_optarg" ;; |
| 427 |
|
| 428 |
-localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 429 |
| --localstate | --localstat | --localsta | --localst \ |
| 430 |
| --locals | --local | --loca | --loc | --lo) |
| 431 |
ac_prev=localstatedir ;; |
| 432 |
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 433 |
| --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 434 |
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 435 |
localstatedir="$ac_optarg" ;; |
| 436 |
|
| 437 |
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 438 |
ac_prev=mandir ;; |
| 439 |
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 440 |
mandir="$ac_optarg" ;; |
| 441 |
|
| 442 |
-nfp | --nfp | --nf) |
| 443 |
# Obsolete; use --without-fp. |
| 444 |
with_fp=no ;; |
| 445 |
|
| 446 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 447 |
| --no-cr | --no-c) |
| 448 |
no_create=yes ;; |
| 449 |
|
| 450 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 451 |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 452 |
no_recursion=yes ;; |
| 453 |
|
| 454 |
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 455 |
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 456 |
| --oldin | --oldi | --old | --ol | --o) |
| 457 |
ac_prev=oldincludedir ;; |
| 458 |
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 459 |
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 460 |
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 461 |
oldincludedir="$ac_optarg" ;; |
| 462 |
|
| 463 |
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 464 |
ac_prev=prefix ;; |
| 465 |
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 466 |
prefix="$ac_optarg" ;; |
| 467 |
|
| 468 |
-program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 469 |
| --program-pre | --program-pr | --program-p) |
| 470 |
ac_prev=program_prefix ;; |
| 471 |
-program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 472 |
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 473 |
program_prefix="$ac_optarg" ;; |
| 474 |
|
| 475 |
-program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 476 |
| --program-suf | --program-su | --program-s) |
| 477 |
ac_prev=program_suffix ;; |
| 478 |
-program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 479 |
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 480 |
program_suffix="$ac_optarg" ;; |
| 481 |
|
| 482 |
-program-transform-name | --program-transform-name \ |
| 483 |
| --program-transform-nam | --program-transform-na \ |
| 484 |
| --program-transform-n | --program-transform- \ |
| 485 |
| --program-transform | --program-transfor \ |
| 486 |
| --program-transfo | --program-transf \ |
| 487 |
| --program-trans | --program-tran \ |
| 488 |
| --progr-tra | --program-tr | --program-t) |
| 489 |
ac_prev=program_transform_name ;; |
| 490 |
-program-transform-name=* | --program-transform-name=* \ |
| 491 |
| --program-transform-nam=* | --program-transform-na=* \ |
| 492 |
| --program-transform-n=* | --program-transform-=* \ |
| 493 |
| --program-transform=* | --program-transfor=* \ |
| 494 |
| --program-transfo=* | --program-transf=* \ |
| 495 |
| --program-trans=* | --program-tran=* \ |
| 496 |
| --progr-tra=* | --program-tr=* | --program-t=*) |
| 497 |
program_transform_name="$ac_optarg" ;; |
| 498 |
|
| 499 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 500 |
| -silent | --silent | --silen | --sile | --sil) |
| 501 |
silent=yes ;; |
| 502 |
|
| 503 |
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 504 |
ac_prev=sbindir ;; |
| 505 |
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 506 |
| --sbi=* | --sb=*) |
| 507 |
sbindir="$ac_optarg" ;; |
| 508 |
|
| 509 |
-sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 510 |
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 511 |
| --sharedst | --shareds | --shared | --share | --shar \ |
| 512 |
| --sha | --sh) |
| 513 |
ac_prev=sharedstatedir ;; |
| 514 |
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 515 |
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 516 |
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 517 |
| --sha=* | --sh=*) |
| 518 |
sharedstatedir="$ac_optarg" ;; |
| 519 |
|
| 520 |
-site | --site | --sit) |
| 521 |
ac_prev=site ;; |
| 522 |
-site=* | --site=* | --sit=*) |
| 523 |
site="$ac_optarg" ;; |
| 524 |
|
| 525 |
-site-file | --site-file | --site-fil | --site-fi | --site-f) |
| 526 |
ac_prev=sitefile ;; |
| 527 |
-site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*) |
| 528 |
sitefile="$ac_optarg" ;; |
| 529 |
|
| 530 |
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 531 |
ac_prev=srcdir ;; |
| 532 |
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 533 |
srcdir="$ac_optarg" ;; |
| 534 |
|
| 535 |
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 536 |
| --syscon | --sysco | --sysc | --sys | --sy) |
| 537 |
ac_prev=sysconfdir ;; |
| 538 |
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 539 |
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 540 |
sysconfdir="$ac_optarg" ;; |
| 541 |
|
| 542 |
-target | --target | --targe | --targ | --tar | --ta | --t) |
| 543 |
ac_prev=target ;; |
| 544 |
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 545 |
target="$ac_optarg" ;; |
| 546 |
|
| 547 |
-v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 548 |
verbose=yes ;; |
| 549 |
|
| 550 |
-version | --version | --versio | --versi | --vers) |
| 551 |
echo "configure generated by autoconf version 2.13" |
| 552 |
exit 0 ;; |
| 553 |
|
| 554 |
-with-* | --with-*) |
| 555 |
ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
| 556 |
# Reject names that are not valid shell variable names. |
| 557 |
if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
| 558 |
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
| 559 |
fi |
| 560 |
ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 561 |
case "$ac_option" in |
| 562 |
*=*) ;; |
| 563 |
*) ac_optarg=yes ;; |
| 564 |
esac |
| 565 |
eval "with_${ac_package}='$ac_optarg'" ;; |
| 566 |
|
| 567 |
-without-* | --without-*) |
| 568 |
ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
| 569 |
# Reject names that are not valid shell variable names. |
| 570 |
if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
| 571 |
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
| 572 |
fi |
| 573 |
ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 574 |
eval "with_${ac_package}=no" ;; |
| 575 |
|
| 576 |
--x) |
| 577 |
# Obsolete; use --with-x. |
| 578 |
with_x=yes ;; |
| 579 |
|
| 580 |
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 581 |
| --x-incl | --x-inc | --x-in | --x-i) |
| 582 |
ac_prev=x_includes ;; |
| 583 |
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 584 |
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 585 |
x_includes="$ac_optarg" ;; |
| 586 |
|
| 587 |
-x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 588 |
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 589 |
ac_prev=x_libraries ;; |
| 590 |
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 591 |
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 592 |
x_libraries="$ac_optarg" ;; |
| 593 |
|
| 594 |
-*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
| 595 |
;; |
| 596 |
|
| 597 |
*) |
| 598 |
if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
| 599 |
echo "configure: warning: $ac_option: invalid host type" 1>&2 |
| 600 |
fi |
| 601 |
if test "x$nonopt" != xNONE; then |
| 602 |
{ echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
| 603 |
fi |
| 604 |
nonopt="$ac_option" |
| 605 |
;; |
| 606 |
|
| 607 |
esac |
| 608 |
done |
| 609 |
|
| 610 |
if test -n "$ac_prev"; then |
| 611 |
{ echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
| 612 |
fi |
| 613 |
|
| 614 |
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
| 615 |
|
| 616 |
# File descriptor usage: |
| 617 |
# 0 standard input |
| 618 |
# 1 file creation |
| 619 |
# 2 errors and warnings |
| 620 |
# 3 some systems may open it to /dev/tty |
| 621 |
# 4 used on the Kubota Titan |
| 622 |
# 6 checking for... messages and results |
| 623 |
# 5 compiler messages saved in config.log |
| 624 |
if test "$silent" = yes; then |
| 625 |
exec 6>/dev/null |
| 626 |
else |
| 627 |
exec 6>&1 |
| 628 |
fi |
| 629 |
exec 5>./config.log |
| 630 |
|
| 631 |
echo "\ |
| 632 |
This file contains any messages produced by compilers while |
| 633 |
running configure, to aid debugging if configure makes a mistake. |
| 634 |
" 1>&5 |
| 635 |
|
| 636 |
# Strip out --no-create and --no-recursion so they do not pile up. |
| 637 |
# Also quote any args containing shell metacharacters. |
| 638 |
ac_configure_args= |
| 639 |
for ac_arg |
| 640 |
do |
| 641 |
case "$ac_arg" in |
| 642 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 643 |
| --no-cr | --no-c) ;; |
| 644 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 645 |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
| 646 |
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
| 647 |
ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 648 |
*) ac_configure_args="$ac_configure_args $ac_arg" ;; |
| 649 |
esac |
| 650 |
done |
| 651 |
|
| 652 |
# NLS nuisances. |
| 653 |
# Only set these to C if already set. These must not be set unconditionally |
| 654 |
# because not all systems understand e.g. LANG=C (notably SCO). |
| 655 |
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
| 656 |
# Non-C LC_CTYPE values break the ctype check. |
| 657 |
if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
| 658 |
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
| 659 |
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
| 660 |
if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
| 661 |
|
| 662 |
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 663 |
rm -rf conftest* confdefs.h |
| 664 |
# AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 665 |
echo > confdefs.h |
| 666 |
|
| 667 |
# A filename unique to this package, relative to the directory that |
| 668 |
# configure is in, which we can look for to find out if srcdir is correct. |
| 669 |
ac_unique_file=Wnn/conv/cvt_head.h |
| 670 |
|
| 671 |
# Find the source files, if location was not specified. |
| 672 |
if test -z "$srcdir"; then |
| 673 |
ac_srcdir_defaulted=yes |
| 674 |
# Try the directory containing this script, then its parent. |
| 675 |
ac_prog=$0 |
| 676 |
ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
| 677 |
test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
| 678 |
srcdir=$ac_confdir |
| 679 |
if test ! -r $srcdir/$ac_unique_file; then |
| 680 |
srcdir=.. |
| 681 |
fi |
| 682 |
else |
| 683 |
ac_srcdir_defaulted=no |
| 684 |
fi |
| 685 |
if test ! -r $srcdir/$ac_unique_file; then |
| 686 |
if test "$ac_srcdir_defaulted" = yes; then |
| 687 |
{ echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
| 688 |
else |
| 689 |
{ echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
| 690 |
fi |
| 691 |
fi |
| 692 |
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
| 693 |
|
| 694 |
# Prefer explicitly selected file to automatically selected ones. |
| 695 |
if test -z "$sitefile"; then |
| 696 |
if test -z "$CONFIG_SITE"; then |
| 697 |
if test "x$prefix" != xNONE; then |
| 698 |
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 699 |
else |
| 700 |
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 701 |
fi |
| 702 |
fi |
| 703 |
else |
| 704 |
CONFIG_SITE="$sitefile" |
| 705 |
fi |
| 706 |
for ac_site_file in $CONFIG_SITE; do |
| 707 |
if test -r "$ac_site_file"; then |
| 708 |
echo "loading site script $ac_site_file" |
| 709 |
. "$ac_site_file" |
| 710 |
fi |
| 711 |
done |
| 712 |
|
| 713 |
if test -r "$cache_file"; then |
| 714 |
echo "loading cache $cache_file" |
| 715 |
. $cache_file |
| 716 |
else |
| 717 |
echo "creating cache $cache_file" |
| 718 |
> $cache_file |
| 719 |
fi |
| 720 |
|
| 721 |
ac_ext=c |
| 722 |
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 723 |
ac_cpp='$CPP $CPPFLAGS' |
| 724 |
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 725 |
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 726 |
cross_compiling=$ac_cv_prog_cc_cross |
| 727 |
|
| 728 |
ac_exeext= |
| 729 |
ac_objext=o |
| 730 |
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
| 731 |
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
| 732 |
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
| 733 |
ac_n= ac_c=' |
| 734 |
' ac_t=' ' |
| 735 |
else |
| 736 |
ac_n=-n ac_c= ac_t= |
| 737 |
fi |
| 738 |
else |
| 739 |
ac_n= ac_c='\c' ac_t= |
| 740 |
fi |
| 741 |
|
| 742 |
|
| 743 |
|
| 744 |
|
| 745 |
|
| 746 |
ac_aux_dir= |
| 747 |
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 748 |
if test -f $ac_dir/install-sh; then |
| 749 |
ac_aux_dir=$ac_dir |
| 750 |
ac_install_sh="$ac_aux_dir/install-sh -c" |
| 751 |
break |
| 752 |
elif test -f $ac_dir/install.sh; then |
| 753 |
ac_aux_dir=$ac_dir |
| 754 |
ac_install_sh="$ac_aux_dir/install.sh -c" |
| 755 |
break |
| 756 |
fi |
| 757 |
done |
| 758 |
if test -z "$ac_aux_dir"; then |
| 759 |
{ echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
| 760 |
fi |
| 761 |
ac_config_guess=$ac_aux_dir/config.guess |
| 762 |
ac_config_sub=$ac_aux_dir/config.sub |
| 763 |
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
| 764 |
|
| 765 |
|
| 766 |
# Make sure we can run config.sub. |
| 767 |
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
| 768 |
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
| 769 |
fi |
| 770 |
|
| 771 |
echo $ac_n "checking host system type""... $ac_c" 1>&6 |
| 772 |
echo "configure:773: checking host system type" >&5 |
| 773 |
|
| 774 |
host_alias=$host |
| 775 |
case "$host_alias" in |
| 776 |
NONE) |
| 777 |
case $nonopt in |
| 778 |
NONE) |
| 779 |
if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
| 780 |
else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
| 781 |
fi ;; |
| 782 |
*) host_alias=$nonopt ;; |
| 783 |
esac ;; |
| 784 |
esac |
| 785 |
|
| 786 |
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
| 787 |
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 788 |
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 789 |
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 790 |
echo "$ac_t""$host" 1>&6 |
| 791 |
|
| 792 |
|
| 793 |
|
| 794 |
# Check whether --enable-debug or --disable-debug was given. |
| 795 |
if test "${enable_debug+set}" = set; then |
| 796 |
enableval="$enable_debug" |
| 797 |
case "${enableval}" in |
| 798 |
yes) debug=true ;; |
| 799 |
no) debug=false ;; |
| 800 |
*) { echo "configure: error: bad value for --enable-debug" 1>&2; exit 1; } |
| 801 |
esac |
| 802 |
else |
| 803 |
debug=false |
| 804 |
fi |
| 805 |
|
| 806 |
|
| 807 |
# Check whether --enable-libraries or --disable-libraries was given. |
| 808 |
if test "${enable_libraries+set}" = set; then |
| 809 |
enableval="$enable_libraries" |
| 810 |
case "${enableval}" in |
| 811 |
yes) libraries=true ;; |
| 812 |
no) libraries=false ;; |
| 813 |
*) { echo "configure: error: bad value for --enable-libraries" 1>&2; exit 1; } ;; |
| 814 |
esac |
| 815 |
else |
| 816 |
libraries=true |
| 817 |
fi |
| 818 |
|
| 819 |
|
| 820 |
# Check whether --enable-server or --disable-server was given. |
| 821 |
if test "${enable_server+set}" = set; then |
| 822 |
enableval="$enable_server" |
| 823 |
case "${enableval}" in |
| 824 |
yes) server=true ;; |
| 825 |
no) server=false ;; |
| 826 |
*) { echo "configure: error: bad value for --enable-server" 1>&2; exit 1; } ;; |
| 827 |
esac |
| 828 |
else |
| 829 |
server=true |
| 830 |
fi |
| 831 |
|
| 832 |
|
| 833 |
# Check whether --enable-client or --disable-client was given. |
| 834 |
if test "${enable_client+set}" = set; then |
| 835 |
enableval="$enable_client" |
| 836 |
case "${enableval}" in |
| 837 |
yes) client=true ;; |
| 838 |
no) client=false ;; |
| 839 |
*) { echo "configure: error: bad value for --enable-client" 1>&2; exit 1; } ;; |
| 840 |
esac |
| 841 |
else |
| 842 |
client=false |
| 843 |
fi |
| 844 |
|
| 845 |
|
| 846 |
if test $libraries = true; then |
| 847 |
SUBDIRS="\$(LIB_SUBDIRS)" |
| 848 |
WNNMANDIR="\$(LIB_WNNMANDIR)" |
| 849 |
fi |
| 850 |
if test $server = true; then |
| 851 |
SUBDIRS="$SUBDIRS \$(SERVER_SUBDIRS)" |
| 852 |
WNNMANDIR="$WNNMANDIR \$(SERVER_WNNMANDIR)" |
| 853 |
fi |
| 854 |
if test $client = true; then |
| 855 |
SUBDIRS="$SUBDIRS \$(CLIENT_SUBDIRS)" |
| 856 |
fi |
| 857 |
|
| 858 |
|
| 859 |
|
| 860 |
|
| 861 |
|
| 862 |
# Check whether --enable-Wnn or --disable-Wnn was given. |
| 863 |
if test "${enable_Wnn+set}" = set; then |
| 864 |
enableval="$enable_Wnn" |
| 865 |
case "${enableval}" in |
| 866 |
yes) Wnn="Wnn";; |
| 867 |
no) Wnn="" ;; |
| 868 |
*) { echo "configure: error: bad value for --enable-Wnn" 1>&2; exit 1; } ;; |
| 869 |
esac |
| 870 |
else |
| 871 |
Wnn="Wnn" |
| 872 |
fi |
| 873 |
|
| 874 |
|
| 875 |
|
| 876 |
if test "$server" = true -a "$Wnn" = Wnn; then |
| 877 |
# JSERVER_SUBDIRS1="\$(JSERVER_SUBDIRS1)" |
| 878 |
JSERVER_SUBDIRS2="\$(JSERVER_SUBDIRS2)" |
| 879 |
else |
| 880 |
# JSERVER_SUBDIRS1="" |
| 881 |
JSERVER_SUBDIRS2="" |
| 882 |
fi |
| 883 |
|
| 884 |
|
| 885 |
# Check whether --enable-cWnn or --disable-cWnn was given. |
| 886 |
if test "${enable_cWnn+set}" = set; then |
| 887 |
enableval="$enable_cWnn" |
| 888 |
case "${enableval}" in |
| 889 |
yes) cWnn="cWnn" ;; |
| 890 |
no) cWnn="" ;; |
| 891 |
*) { echo "configure: error: bad value for --enable-cWnn" 1>&2; exit 1; } ;; |
| 892 |
esac |
| 893 |
else |
| 894 |
cWnn="cWnn" |
| 895 |
fi |
| 896 |
|
| 897 |
|
| 898 |
|
| 899 |
# Check whether --enable-kWnn or --disable-kWnn was given. |
| 900 |
if test "${enable_kWnn+set}" = set; then |
| 901 |
enableval="$enable_kWnn" |
| 902 |
case "${enableval}" in |
| 903 |
yes) kWnn="kWnn" ;; |
| 904 |
no) kWnn="" ;; |
| 905 |
*) { echo "configure: error: bad value for --enable-kWnn" 1>&2; exit 1; } ;; |
| 906 |
esac |
| 907 |
else |
| 908 |
kWnn="kWnn" |
| 909 |
fi |
| 910 |
|
| 911 |
|
| 912 |
|
| 913 |
|
| 914 |
|
| 915 |
# Check whether --with-libwnn or --without-libwnn was given. |
| 916 |
if test "${with_libwnn+set}" = set; then |
| 917 |
withval="$with_libwnn" |
| 918 |
with_libwnn="${withval}" |
| 919 |
# Check whether --with-wnn-includes or --without-wnn-includes was given. |
| 920 |
if test "${with_wnn_includes+set}" = set; then |
| 921 |
withval="$with_wnn_includes" |
| 922 |
wnnincludedir="-I${withval}" |
| 923 |
else |
| 924 |
wnnincludedir='' |
| 925 |
fi |
| 926 |
|
| 927 |
# Check whether --with-wnn-libraries or --without-wnn-libraries was given. |
| 928 |
if test "${with_wnn_libraries+set}" = set; then |
| 929 |
withval="$with_wnn_libraries" |
| 930 |
wnnlibdir="${withval}" |
| 931 |
else |
| 932 |
wnnlibdir='/usr/local/lib' |
| 933 |
fi |
| 934 |
|
| 935 |
if test "X${with_libwnn}" = X-lwnn; then |
| 936 |
WNNJLIB="-L${wnnlibdir} -lwnn" |
| 937 |
elif test X"`echo ${with_libwnn} | grep '^/.*'`" != X ; then |
| 938 |
WNNJLIB="${with_libwnn}" |
| 939 |
else |
| 940 |
WNNJLIB="${wnnlibdir}/libwnn.a" |
| 941 |
fi |
| 942 |
DEPWNNJLIB="" |
| 943 |
HINSI_DATA="\$(JWNNWNNDIR)/hinsi.data" |
| 944 |
|
| 945 |
else |
| 946 |
WNNJLIB="\$(WNNJLIBSRC)/libwnn.la" |
| 947 |
DEPWNNJLIB="\$(WNNJLIB)" |
| 948 |
HINSI_DATA="\$(WNNJDSRC)/hinsi.data" |
| 949 |
|
| 950 |
fi |
| 951 |
|
| 952 |
|
| 953 |
|
| 954 |
|
| 955 |
|
| 956 |
# Check whether --with-libcwnn or --without-libcwnn was given. |
| 957 |
if test "${with_libcwnn+set}" = set; then |
| 958 |
withval="$with_libcwnn" |
| 959 |
|
| 960 |
# Check whether --with-cwnn-includes or --without-cwnn-includes was given. |
| 961 |
if test "${with_cwnn_includes+set}" = set; then |
| 962 |
withval="$with_cwnn_includes" |
| 963 |
cwnnincludedir="-I${withval}" |
| 964 |
else |
| 965 |
cwnnincludedir='' |
| 966 |
fi |
| 967 |
|
| 968 |
# Check whether --with-cwnn-libraries or --without-cwnn-libraries was given. |
| 969 |
if test "${with_cwnn_libraries+set}" = set; then |
| 970 |
withval="$with_cwnn_libraries" |
| 971 |
cwnnlibdir="${withval}" |
| 972 |
else |
| 973 |
cwnnlibdir='/usr/local/lib' |
| 974 |
fi |
| 975 |
|
| 976 |
if test "X${with_libcwnn}" = X-lcwnn; then |
| 977 |
CWNNJLIB="-L${cwnnlibdir} -lcwnn" |
| 978 |
elif test X"`echo ${with_libcwnn} | grep '^/.*'`" != X ; then |
| 979 |
CWNNJLIB="${with_libcwnn}" |
| 980 |
else |
| 981 |
CWNNJLIB="${cwnnlibdir}/libcwnn.a" |
| 982 |
fi |
| 983 |
DEPCWNNJLIB="" |
| 984 |
CHINSI_DATA="\$(CWNNWNNDIR)/cixing.data" |
| 985 |
THINSI_DATA="\$(TWNNTDSRC)/cixing.data" |
| 986 |
|
| 987 |
else |
| 988 |
CWNNJLIB="\$(CWNNJLIBSRC)/libcwnn.la" |
| 989 |
DEPCWNNJLIB="\$(CWNNJLIB)" |
| 990 |
CHINSI_DATA="\$(CWNNCDSRC)/cixing.data" |
| 991 |
THINSI_DATA="\$(TWNNTDSRC)/cixing.data" |
| 992 |
|
| 993 |
fi |
| 994 |
|
| 995 |
|
| 996 |
|
| 997 |
|
| 998 |
|
| 999 |
|
| 1000 |
# Check whether --with-libkwnn or --without-libkwnn was given. |
| 1001 |
if test "${with_libkwnn+set}" = set; then |
| 1002 |
withval="$with_libkwnn" |
| 1003 |
|
| 1004 |
# Check whether --with-kwnn-includes or --without-kwnn-includes was given. |
| 1005 |
if test "${with_kwnn_includes+set}" = set; then |
| 1006 |
withval="$with_kwnn_includes" |
| 1007 |
kwnnincludedir="-I${withval}" |
| 1008 |
else |
| 1009 |
kwnnincludedir='' |
| 1010 |
fi |
| 1011 |
|
| 1012 |
# Check whether --with-kwnn-libraries or --without-kwnn-libraries was given. |
| 1013 |
if test "${with_kwnn_libraries+set}" = set; then |
| 1014 |
withval="$with_kwnn_libraries" |
| 1015 |
kwnnlibdir="${withval}" |
| 1016 |
else |
| 1017 |
kwnnlibdir='/usr/local/lib' |
| 1018 |
fi |
| 1019 |
|
| 1020 |
if test "X${with_libkwnn}" = X-lkwnn; then |
| 1021 |
KWNNJLIB="-L${kwnnlibdir} -lkwnn" |
| 1022 |
elif test X"`echo ${with_libkwnn} | grep '^/.*'`" != X ; then |
| 1023 |
KWNNJLIB="${with_libkwnn}" |
| 1024 |
else |
| 1025 |
KWNNJLIB="${kwnnlibdir}/libkwnn.a" |
| 1026 |
fi |
| 1027 |
DEPKWNNJLIB="" |
| 1028 |
KHINSI_DATA="\$(KWNNWNNDIR)/hinsi.data" |
| 1029 |
|
| 1030 |
else |
| 1031 |
KWNNJLIB="\$(KWNNJLIBSRC)/libkwnn.la" |
| 1032 |
DEPKWNNJLIB="\$(KWNNJLIB)" |
| 1033 |
KHINSI_DATA="\$(KWNNKDSRC)/hinsi.data" |
| 1034 |
|
| 1035 |
fi |
| 1036 |
|
| 1037 |
|
| 1038 |
|
| 1039 |
|
| 1040 |
|
| 1041 |
|
| 1042 |
# Check whether --enable-ipv6 or --disable-ipv6 was given. |
| 1043 |
if test "${enable_ipv6+set}" = set; then |
| 1044 |
enableval="$enable_ipv6" |
| 1045 |
case "${enableval}" in |
| 1046 |
yes) ipv6="-DINET6";; |
| 1047 |
no) ipv6="" ;; |
| 1048 |
*) { echo "configure: error: bad value for --enable-ipv6" 1>&2; exit 1; } ;; |
| 1049 |
esac |
| 1050 |
else |
| 1051 |
ipv6="" |
| 1052 |
fi |
| 1053 |
|
| 1054 |
|
| 1055 |
|
| 1056 |
# Check whether --enable-unsafe-path or --disable-unsafe-path was given. |
| 1057 |
if test "${enable_unsafe_path+set}" = set; then |
| 1058 |
enableval="$enable_unsafe_path" |
| 1059 |
case "${enableval}" in |
| 1060 |
yes) unsafe_path=true;; |
| 1061 |
no) unsafe_path=false;; |
| 1062 |
*) { echo "configure: error: bad value for --enable-unsafe-path" 1>&2; exit 1; } ;; |
| 1063 |
esac |
| 1064 |
else |
| 1065 |
unsafe_path=false |
| 1066 |
fi |
| 1067 |
|
| 1068 |
|
| 1069 |
|
| 1070 |
if test ${unsafe_path} = true; then |
| 1071 |
cat >> confdefs.h <<\EOF |
| 1072 |
#define WNN_ALLOW_UNSAFE_PATH 1 |
| 1073 |
EOF |
| 1074 |
|
| 1075 |
fi |
| 1076 |
|
| 1077 |
# Extract the first word of "gcc", so it can be a program name with args. |
| 1078 |
set dummy gcc; ac_word=$2 |
| 1079 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 1080 |
echo "configure:1081: checking for $ac_word" >&5 |
| 1081 |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 1082 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1083 |
else |
| 1084 |
if test -n "$CC"; then |
| 1085 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1086 |
else |
| 1087 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1088 |
ac_dummy="$PATH" |
| 1089 |
for ac_dir in $ac_dummy; do |
| 1090 |
test -z "$ac_dir" && ac_dir=. |
| 1091 |
if test -f $ac_dir/$ac_word; then |
| 1092 |
ac_cv_prog_CC="gcc" |
| 1093 |
break |
| 1094 |
fi |
| 1095 |
done |
| 1096 |
IFS="$ac_save_ifs" |
| 1097 |
fi |
| 1098 |
fi |
| 1099 |
CC="$ac_cv_prog_CC" |
| 1100 |
if test -n "$CC"; then |
| 1101 |
echo "$ac_t""$CC" 1>&6 |
| 1102 |
else |
| 1103 |
echo "$ac_t""no" 1>&6 |
| 1104 |
fi |
| 1105 |
|
| 1106 |
if test -z "$CC"; then |
| 1107 |
# Extract the first word of "cc", so it can be a program name with args. |
| 1108 |
set dummy cc; ac_word=$2 |
| 1109 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 1110 |
echo "configure:1111: checking for $ac_word" >&5 |
| 1111 |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 1112 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1113 |
else |
| 1114 |
if test -n "$CC"; then |
| 1115 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1116 |
else |
| 1117 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1118 |
ac_prog_rejected=no |
| 1119 |
ac_dummy="$PATH" |
| 1120 |
for ac_dir in $ac_dummy; do |
| 1121 |
test -z "$ac_dir" && ac_dir=. |
| 1122 |
if test -f $ac_dir/$ac_word; then |
| 1123 |
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
| 1124 |
ac_prog_rejected=yes |
| 1125 |
continue |
| 1126 |
fi |
| 1127 |
ac_cv_prog_CC="cc" |
| 1128 |
break |
| 1129 |
fi |
| 1130 |
done |
| 1131 |
IFS="$ac_save_ifs" |
| 1132 |
if test $ac_prog_rejected = yes; then |
| 1133 |
# We found a bogon in the path, so make sure we never use it. |
| 1134 |
set dummy $ac_cv_prog_CC |
| 1135 |
shift |
| 1136 |
if test $# -gt 0; then |
| 1137 |
# We chose a different compiler from the bogus one. |
| 1138 |
# However, it has the same basename, so the bogon will be chosen |
| 1139 |
# first if we set CC to just the basename; use the full file name. |
| 1140 |
shift |
| 1141 |
set dummy "$ac_dir/$ac_word" "$@" |
| 1142 |
shift |
| 1143 |
ac_cv_prog_CC="$@" |
| 1144 |
fi |
| 1145 |
fi |
| 1146 |
fi |
| 1147 |
fi |
| 1148 |
CC="$ac_cv_prog_CC" |
| 1149 |
if test -n "$CC"; then |
| 1150 |
echo "$ac_t""$CC" 1>&6 |
| 1151 |
else |
| 1152 |
echo "$ac_t""no" 1>&6 |
| 1153 |
fi |
| 1154 |
|
| 1155 |
if test -z "$CC"; then |
| 1156 |
case "`uname -s`" in |
| 1157 |
*win32* | *WIN32*) |
| 1158 |
# Extract the first word of "cl", so it can be a program name with args. |
| 1159 |
set dummy cl; ac_word=$2 |
| 1160 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 1161 |
echo "configure:1162: checking for $ac_word" >&5 |
| 1162 |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 1163 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1164 |
else |
| 1165 |
if test -n "$CC"; then |
| 1166 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1167 |
else |
| 1168 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1169 |
ac_dummy="$PATH" |
| 1170 |
for ac_dir in $ac_dummy; do |
| 1171 |
test -z "$ac_dir" && ac_dir=. |
| 1172 |
if test -f $ac_dir/$ac_word; then |
| 1173 |
ac_cv_prog_CC="cl" |
| 1174 |
break |
| 1175 |
fi |
| 1176 |
done |
| 1177 |
IFS="$ac_save_ifs" |
| 1178 |
fi |
| 1179 |
fi |
| 1180 |
CC="$ac_cv_prog_CC" |
| 1181 |
if test -n "$CC"; then |
| 1182 |
echo "$ac_t""$CC" 1>&6 |
| 1183 |
else |
| 1184 |
echo "$ac_t""no" 1>&6 |
| 1185 |
fi |
| 1186 |
;; |
| 1187 |
esac |
| 1188 |
fi |
| 1189 |
test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
| 1190 |
fi |
| 1191 |
|
| 1192 |
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
| 1193 |
echo "configure:1194: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
| 1194 |
|
| 1195 |
ac_ext=c |
| 1196 |
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 1197 |
ac_cpp='$CPP $CPPFLAGS' |
| 1198 |
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 1199 |
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 1200 |
cross_compiling=$ac_cv_prog_cc_cross |
| 1201 |
|
| 1202 |
cat > conftest.$ac_ext << EOF |
| 1203 |
|
| 1204 |
#line 1205 "configure" |
| 1205 |
#include "confdefs.h" |
| 1206 |
|
| 1207 |
main(){return(0);} |
| 1208 |
EOF |
| 1209 |
if { (eval echo configure:1210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 1210 |
ac_cv_prog_cc_works=yes |
| 1211 |
# If we can't run a trivial program, we are probably using a cross compiler. |
| 1212 |
if (./conftest; exit) 2>/dev/null; then |
| 1213 |
ac_cv_prog_cc_cross=no |
| 1214 |
else |
| 1215 |
ac_cv_prog_cc_cross=yes |
| 1216 |
fi |
| 1217 |
else |
| 1218 |
echo "configure: failed program was:" >&5 |
| 1219 |
cat conftest.$ac_ext >&5 |
| 1220 |
ac_cv_prog_cc_works=no |
| 1221 |
fi |
| 1222 |
rm -fr conftest* |
| 1223 |
ac_ext=c |
| 1224 |
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 1225 |
ac_cpp='$CPP $CPPFLAGS' |
| 1226 |
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 1227 |
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 1228 |
cross_compiling=$ac_cv_prog_cc_cross |
| 1229 |
|
| 1230 |
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
| 1231 |
if test $ac_cv_prog_cc_works = no; then |
| 1232 |
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
| 1233 |
fi |
| 1234 |
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
| 1235 |
echo "configure:1236: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
| 1236 |
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
| 1237 |
cross_compiling=$ac_cv_prog_cc_cross |
| 1238 |
|
| 1239 |
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
| 1240 |
echo "configure:1241: checking whether we are using GNU C" >&5 |
| 1241 |
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
| 1242 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1243 |
else |
| 1244 |
cat > conftest.c <<EOF |
| 1245 |
#ifdef __GNUC__ |
| 1246 |
yes; |
| 1247 |
#endif |
| 1248 |
EOF |
| 1249 |
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
| 1250 |
ac_cv_prog_gcc=yes |
| 1251 |
else |
| 1252 |
ac_cv_prog_gcc=no |
| 1253 |
fi |
| 1254 |
fi |
| 1255 |
|
| 1256 |
echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
| 1257 |
|
| 1258 |
if test $ac_cv_prog_gcc = yes; then |
| 1259 |
GCC=yes |
| 1260 |
else |
| 1261 |
GCC= |
| 1262 |
fi |
| 1263 |
|
| 1264 |
ac_test_CFLAGS="${CFLAGS+set}" |
| 1265 |
ac_save_CFLAGS="$CFLAGS" |
| 1266 |
CFLAGS= |
| 1267 |
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
| 1268 |
echo "configure:1269: checking whether ${CC-cc} accepts -g" >&5 |
| 1269 |
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
| 1270 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1271 |
else |
| 1272 |
echo 'void f(){}' > conftest.c |
| 1273 |
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
| 1274 |
ac_cv_prog_cc_g=yes |
| 1275 |
else |
| 1276 |
ac_cv_prog_cc_g=no |
| 1277 |
fi |
| 1278 |
rm -f conftest* |
| 1279 |
|
| 1280 |
fi |
| 1281 |
|
| 1282 |
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
| 1283 |
if test "$ac_test_CFLAGS" = set; then |
| 1284 |
CFLAGS="$ac_save_CFLAGS" |
| 1285 |
elif test $ac_cv_prog_cc_g = yes; then |
| 1286 |
if test "$GCC" = yes; then |
| 1287 |
CFLAGS="-g -O2" |
| 1288 |
else |
| 1289 |
CFLAGS="-g" |
| 1290 |
fi |
| 1291 |
else |
| 1292 |
if test "$GCC" = yes; then |
| 1293 |
CFLAGS="-O2" |
| 1294 |
else |
| 1295 |
CFLAGS= |
| 1296 |
fi |
| 1297 |
fi |
| 1298 |
|
| 1299 |
|
| 1300 |
CDEBUGFLAGS=${CDEBUGFLAGS:-"-O"} |
| 1301 |
case $host in |
| 1302 |
*-*-linux*) |
| 1303 |
CCOPTIONS="-Dlinux -D_POSIX_SOURCE -D_BSD_SOURCE" |
| 1304 |
CDEBUGFLAGS="-O2 -fno-strength-reduce" |
| 1305 |
;; |
| 1306 |
*-*-freebsd*|*-*-netbsd*|*-*-openbsd*) |
| 1307 |
CCOPTIONS="-DCSRG_BASED" |
| 1308 |
CDEBUGFLAGS="-O2 -fno-strength-reduce" |
| 1309 |
;; |
| 1310 |
*-*-bsdi*) |
| 1311 |
CCOPTIONS="-DCSRG_BASED" |
| 1312 |
CDEBUGFLAGS="-O2 -fno-strength-reduce" |
| 1313 |
;; |
| 1314 |
*-*-sunos*) |
| 1315 |
if test $GCC = yes; then |
| 1316 |
CCOPTIONS="-Dsun -Dsparc" |
| 1317 |
CDEBUGFLAGS=-O2 |
| 1318 |
else |
| 1319 |
CCOPTIONS="" |
| 1320 |
CDEBUGFLAGS=-O4 |
| 1321 |
fi |
| 1322 |
;; |
| 1323 |
*-*-solaris2.*) |
| 1324 |
# Will 'solaris*' be OK? |
| 1325 |
if test $GCC = yes; then |
| 1326 |
CCOPTIONS="-Dsun -D`uname -p` -DSVR4 -DSYSV" |
| 1327 |
CDEBUGFLAGS=-O2 |
| 1328 |
else |
| 1329 |
CCOPTIONS="-Xc -xF -xcg92 -Dsun -D`uname -p` -DSVR4 -DSYSV" |
| 1330 |
CDEBUGFLAGS=-O4 |
| 1331 |
fi |
| 1332 |
;; |
| 1333 |
*-*-hpux*) |
| 1334 |
if test $GCC = yes; then |
| 1335 |
CCOPTIONS="-Dhpux -DSYSV" |
| 1336 |
CDEBUGFLAGS=-O2 |
| 1337 |
else |
| 1338 |
CCOPTIONS="-Ae -Dhpux -DSYSV" |
| 1339 |
fi |
| 1340 |
;; |
| 1341 |
i[34567]86-pc-beos*) |
| 1342 |
CCOPTIONS="-DBEOS -D_POSIX_SOURCE -D_BSD_SOURCE" |
| 1343 |
CDEBUGFLAGS="-O2 -fno-strength-reduce" |
| 1344 |
;; |
| 1345 |
powerpc-*-beos*) |
| 1346 |
CCOPTIONS="-DBEOS -D_POSIX_SOURCE -D_BSD_SOURCE" |
| 1347 |
;; |
| 1348 |
*-*-aix*) |
| 1349 |
if test $GCC = yes; then |
| 1350 |
CDEBUGFLAGS=-O2 |
| 1351 |
else |
| 1352 |
CDEBUGFLAGS=-O |
| 1353 |
fi |
| 1354 |
CCOPTIONS="-DSYSV" |
| 1355 |
;; |
| 1356 |
*) |
| 1357 |
echo "configure: warning: "It is not reported if FreeWnn works on this system. But continuing..."" 1>&2 |
| 1358 |
echo "configure: warning: (It may or may not work if you set CCOPTIONS properly.)" 1>&2 |
| 1359 |
;; |
| 1360 |
esac |
| 1361 |
|
| 1362 |
if test $debug = true; then |
| 1363 |
if test $GCC = yes; then |
| 1364 |
CDEBUGFLAGS="-g2 -Wall -fstack-check $CDEBUGFLAGS" |
| 1365 |
fi |
| 1366 |
fi |
| 1367 |
|
| 1368 |
if test ${debug} = true; then |
| 1369 |
INSTPGMFLAGS= |
| 1370 |
else |
| 1371 |
INSTPGMFLAGS="-s" |
| 1372 |
fi |
| 1373 |
|
| 1374 |
|
| 1375 |
echo "Set CDEBUGFLAGS and CCOPTIONS to following:" |
| 1376 |
echo ' CDEBUGFLAGS="'"$CDEBUGFLAGS"'"' |
| 1377 |
echo ' CCOPTIONS="'"$CCOPTIONS"'"' |
| 1378 |
|
| 1379 |
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
| 1380 |
echo "configure:1381: checking how to run the C preprocessor" >&5 |
| 1381 |
# On Suns, sometimes $CPP names a directory. |
| 1382 |
if test -n "$CPP" && test -d "$CPP"; then |
| 1383 |
CPP= |
| 1384 |
fi |
| 1385 |
if test -z "$CPP"; then |
| 1386 |
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
| 1387 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1388 |
else |
| 1389 |
# This must be in double quotes, not single quotes, because CPP may get |
| 1390 |
# substituted into the Makefile and "${CC-cc}" will confuse make. |
| 1391 |
CPP="${CC-cc} -E" |
| 1392 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
| 1393 |
# not just through cpp. |
| 1394 |
cat > conftest.$ac_ext <<EOF |
| 1395 |
#line 1396 "configure" |
| 1396 |
#include "confdefs.h" |
| 1397 |
#include <assert.h> |
| 1398 |
Syntax Error |
| 1399 |
EOF |
| 1400 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1401 |
{ (eval echo configure:1402: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1402 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1403 |
if test -z "$ac_err"; then |
| 1404 |
: |
| 1405 |
else |
| 1406 |
echo "$ac_err" >&5 |
| 1407 |
echo "configure: failed program was:" >&5 |
| 1408 |
cat conftest.$ac_ext >&5 |
| 1409 |
rm -rf conftest* |
| 1410 |
CPP="${CC-cc} -E -traditional-cpp" |
| 1411 |
cat > conftest.$ac_ext <<EOF |
| 1412 |
#line 1413 "configure" |
| 1413 |
#include "confdefs.h" |
| 1414 |
#include <assert.h> |
| 1415 |
Syntax Error |
| 1416 |
EOF |
| 1417 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1418 |
{ (eval echo configure:1419: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1419 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1420 |
if test -z "$ac_err"; then |
| 1421 |
: |
| 1422 |
else |
| 1423 |
echo "$ac_err" >&5 |
| 1424 |
echo "configure: failed program was:" >&5 |
| 1425 |
cat conftest.$ac_ext >&5 |
| 1426 |
rm -rf conftest* |
| 1427 |
CPP="${CC-cc} -nologo -E" |
| 1428 |
cat > conftest.$ac_ext <<EOF |
| 1429 |
#line 1430 "configure" |
| 1430 |
#include "confdefs.h" |
| 1431 |
#include <assert.h> |
| 1432 |
Syntax Error |
| 1433 |
EOF |
| 1434 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1435 |
{ (eval echo configure:1436: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1436 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1437 |
if test -z "$ac_err"; then |
| 1438 |
: |
| 1439 |
else |
| 1440 |
echo "$ac_err" >&5 |
| 1441 |
echo "configure: failed program was:" >&5 |
| 1442 |
cat conftest.$ac_ext >&5 |
| 1443 |
rm -rf conftest* |
| 1444 |
CPP=/lib/cpp |
| 1445 |
fi |
| 1446 |
rm -f conftest* |
| 1447 |
fi |
| 1448 |
rm -f conftest* |
| 1449 |
fi |
| 1450 |
rm -f conftest* |
| 1451 |
ac_cv_prog_CPP="$CPP" |
| 1452 |
fi |
| 1453 |
CPP="$ac_cv_prog_CPP" |
| 1454 |
else |
| 1455 |
ac_cv_prog_CPP="$CPP" |
| 1456 |
fi |
| 1457 |
echo "$ac_t""$CPP" 1>&6 |
| 1458 |
|
| 1459 |
|
| 1460 |
# Find a good install program. We prefer a C program (faster), |
| 1461 |
# so one script is as good as another. But avoid the broken or |
| 1462 |
# incompatible versions: |
| 1463 |
# SysV /etc/install, /usr/sbin/install |
| 1464 |
# SunOS /usr/etc/install |
| 1465 |
# IRIX /sbin/install |
| 1466 |
# AIX /bin/install |
| 1467 |
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 1468 |
# AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 1469 |
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 1470 |
# ./install, which can be erroneously created by make from ./install.sh. |
| 1471 |
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
| 1472 |
echo "configure:1473: checking for a BSD compatible install" >&5 |
| 1473 |
if test -z "$INSTALL"; then |
| 1474 |
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
| 1475 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1476 |
else |
| 1477 |
IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
| 1478 |
for ac_dir in $PATH; do |
| 1479 |
# Account for people who put trailing slashes in PATH elements. |
| 1480 |
case "$ac_dir/" in |
| 1481 |
/|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
| 1482 |
*) |
| 1483 |
# OSF1 and SCO ODT 3.0 have their own names for install. |
| 1484 |
# Don't use installbsd from OSF since it installs stuff as root |
| 1485 |
# by default. |
| 1486 |
for ac_prog in ginstall scoinst install; do |
| 1487 |
if test -f $ac_dir/$ac_prog; then |
| 1488 |
if test $ac_prog = install && |
| 1489 |
grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
| 1490 |
# AIX install. It has an incompatible calling convention. |
| 1491 |
: |
| 1492 |
else |
| 1493 |
ac_cv_path_install="$ac_dir/$ac_prog -c" |
| 1494 |
break 2 |
| 1495 |
fi |
| 1496 |
fi |
| 1497 |
done |
| 1498 |
;; |
| 1499 |
esac |
| 1500 |
done |
| 1501 |
IFS="$ac_save_IFS" |
| 1502 |
|
| 1503 |
fi |
| 1504 |
if test "${ac_cv_path_install+set}" = set; then |
| 1505 |
INSTALL="$ac_cv_path_install" |
| 1506 |
else |
| 1507 |
# As a last resort, use the slow shell script. We don't cache a |
| 1508 |
# path for INSTALL within a source directory, because that will |
| 1509 |
# break other packages using the cache if that directory is |
| 1510 |
# removed, or if the path is relative. |
| 1511 |
INSTALL="$ac_install_sh" |
| 1512 |
fi |
| 1513 |
fi |
| 1514 |
echo "$ac_t""$INSTALL" 1>&6 |
| 1515 |
|
| 1516 |
# Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 1517 |
# It thinks the first close brace ends the variable substitution. |
| 1518 |
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 1519 |
|
| 1520 |
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
| 1521 |
|
| 1522 |
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 1523 |
|
| 1524 |
echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
| 1525 |
echo "configure:1526: checking whether ln -s works" >&5 |
| 1526 |
if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
| 1527 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1528 |
else |
| 1529 |
rm -f conftestdata |
| 1530 |
if ln -s X conftestdata 2>/dev/null |
| 1531 |
then |
| 1532 |
rm -f conftestdata |
| 1533 |
ac_cv_prog_LN_S="ln -s" |
| 1534 |
else |
| 1535 |
ac_cv_prog_LN_S=ln |
| 1536 |
fi |
| 1537 |
fi |
| 1538 |
LN_S="$ac_cv_prog_LN_S" |
| 1539 |
if test "$ac_cv_prog_LN_S" = "ln -s"; then |
| 1540 |
echo "$ac_t""yes" 1>&6 |
| 1541 |
else |
| 1542 |
echo "$ac_t""no" 1>&6 |
| 1543 |
fi |
| 1544 |
|
| 1545 |
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
| 1546 |
echo "configure:1547: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
| 1547 |
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
| 1548 |
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
| 1549 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1550 |
else |
| 1551 |
cat > conftestmake <<\EOF |
| 1552 |
all: |
| 1553 |
@echo 'ac_maketemp="${MAKE}"' |
| 1554 |
EOF |
| 1555 |
# GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 1556 |
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
| 1557 |
if test -n "$ac_maketemp"; then |
| 1558 |
eval ac_cv_prog_make_${ac_make}_set=yes |
| 1559 |
else |
| 1560 |
eval ac_cv_prog_make_${ac_make}_set=no |
| 1561 |
fi |
| 1562 |
rm -f conftestmake |
| 1563 |
fi |
| 1564 |
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
| 1565 |
echo "$ac_t""yes" 1>&6 |
| 1566 |
SET_MAKE= |
| 1567 |
else |
| 1568 |
echo "$ac_t""no" 1>&6 |
| 1569 |
SET_MAKE="MAKE=${MAKE-make}" |
| 1570 |
fi |
| 1571 |
|
| 1572 |
echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 |
| 1573 |
echo "configure:1574: checking for Cygwin environment" >&5 |
| 1574 |
if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then |
| 1575 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1576 |
else |
| 1577 |
cat > conftest.$ac_ext <<EOF |
| 1578 |
#line 1579 "configure" |
| 1579 |
#include "confdefs.h" |
| 1580 |
|
| 1581 |
int main() { |
| 1582 |
|
| 1583 |
#ifndef __CYGWIN__ |
| 1584 |
#define __CYGWIN__ __CYGWIN32__ |
| 1585 |
#endif |
| 1586 |
return __CYGWIN__; |
| 1587 |
; return 0; } |
| 1588 |
EOF |
| 1589 |
if { (eval echo configure:1590: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 1590 |
rm -rf conftest* |
| 1591 |
ac_cv_cygwin=yes |
| 1592 |
else |
| 1593 |
echo "configure: failed program was:" >&5 |
| 1594 |
cat conftest.$ac_ext >&5 |
| 1595 |
rm -rf conftest* |
| 1596 |
ac_cv_cygwin=no |
| 1597 |
fi |
| 1598 |
rm -f conftest* |
| 1599 |
rm -f conftest* |
| 1600 |
fi |
| 1601 |
|
| 1602 |
echo "$ac_t""$ac_cv_cygwin" 1>&6 |
| 1603 |
CYGWIN= |
| 1604 |
test "$ac_cv_cygwin" = yes && CYGWIN=yes |
| 1605 |
echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 |
| 1606 |
echo "configure:1607: checking for mingw32 environment" >&5 |
| 1607 |
if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then |
| 1608 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1609 |
else |
| 1610 |
cat > conftest.$ac_ext <<EOF |
| 1611 |
#line 1612 "configure" |
| 1612 |
#include "confdefs.h" |
| 1613 |
|
| 1614 |
int main() { |
| 1615 |
return __MINGW32__; |
| 1616 |
; return 0; } |
| 1617 |
EOF |
| 1618 |
if { (eval echo configure:1619: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 1619 |
rm -rf conftest* |
| 1620 |
ac_cv_mingw32=yes |
| 1621 |
else |
| 1622 |
echo "configure: failed program was:" >&5 |
| 1623 |
cat conftest.$ac_ext >&5 |
| 1624 |
rm -rf conftest* |
| 1625 |
ac_cv_mingw32=no |
| 1626 |
fi |
| 1627 |
rm -f conftest* |
| 1628 |
rm -f conftest* |
| 1629 |
fi |
| 1630 |
|
| 1631 |
echo "$ac_t""$ac_cv_mingw32" 1>&6 |
| 1632 |
MINGW32= |
| 1633 |
test "$ac_cv_mingw32" = yes && MINGW32=yes |
| 1634 |
# Check whether --enable-shared or --disable-shared was given. |
| 1635 |
if test "${enable_shared+set}" = set; then |
| 1636 |
enableval="$enable_shared" |
| 1637 |
p=${PACKAGE-default} |
| 1638 |
case $enableval in |
| 1639 |
yes) enable_shared=yes ;; |
| 1640 |
no) enable_shared=no ;; |
| 1641 |
*) |
| 1642 |
enable_shared=no |
| 1643 |
# Look at the argument we got. We use all the common list separators. |
| 1644 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
| 1645 |
for pkg in $enableval; do |
| 1646 |
if test "X$pkg" = "X$p"; then |
| 1647 |
enable_shared=yes |
| 1648 |
fi |
| 1649 |
done |
| 1650 |
IFS="$ac_save_ifs" |
| 1651 |
;; |
| 1652 |
esac |
| 1653 |
else |
| 1654 |
enable_shared=yes |
| 1655 |
fi |
| 1656 |
|
| 1657 |
# Check whether --enable-static or --disable-static was given. |
| 1658 |
if test "${enable_static+set}" = set; then |
| 1659 |
enableval="$enable_static" |
| 1660 |
p=${PACKAGE-default} |
| 1661 |
case $enableval in |
| 1662 |
yes) enable_static=yes ;; |
| 1663 |
no) enable_static=no ;; |
| 1664 |
*) |
| 1665 |
enable_static=no |
| 1666 |
# Look at the argument we got. We use all the common list separators. |
| 1667 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
| 1668 |
for pkg in $enableval; do |
| 1669 |
if test "X$pkg" = "X$p"; then |
| 1670 |
enable_static=yes |
| 1671 |
fi |
| 1672 |
done |
| 1673 |
IFS="$ac_save_ifs" |
| 1674 |
;; |
| 1675 |
esac |
| 1676 |
else |
| 1677 |
enable_static=yes |
| 1678 |
fi |
| 1679 |
|
| 1680 |
# Check whether --enable-fast-install or --disable-fast-install was given. |
| 1681 |
if test "${enable_fast_install+set}" = set; then |
| 1682 |
enableval="$enable_fast_install" |
| 1683 |
p=${PACKAGE-default} |
| 1684 |
case $enableval in |
| 1685 |
yes) enable_fast_install=yes ;; |
| 1686 |
no) enable_fast_install=no ;; |
| 1687 |
*) |
| 1688 |
enable_fast_install=no |
| 1689 |
# Look at the argument we got. We use all the common list separators. |
| 1690 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
| 1691 |
for pkg in $enableval; do |
| 1692 |
if test "X$pkg" = "X$p"; then |
| 1693 |
enable_fast_install=yes |
| 1694 |
fi |
| 1695 |
done |
| 1696 |
IFS="$ac_save_ifs" |
| 1697 |
;; |
| 1698 |
esac |
| 1699 |
else |
| 1700 |
enable_fast_install=yes |
| 1701 |
fi |
| 1702 |
|
| 1703 |
echo $ac_n "checking build system type""... $ac_c" 1>&6 |
| 1704 |
echo "configure:1705: checking build system type" >&5 |
| 1705 |
|
| 1706 |
build_alias=$build |
| 1707 |
case "$build_alias" in |
| 1708 |
NONE) |
| 1709 |
case $nonopt in |
| 1710 |
NONE) build_alias=$host_alias ;; |
| 1711 |
*) build_alias=$nonopt ;; |
| 1712 |
esac ;; |
| 1713 |
esac |
| 1714 |
|
| 1715 |
build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` |
| 1716 |
build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1717 |
build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1718 |
build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1719 |
echo "$ac_t""$build" 1>&6 |
| 1720 |
|
| 1721 |
# Check whether --with-gnu-ld or --without-gnu-ld was given. |
| 1722 |
if test "${with_gnu_ld+set}" = set; then |
| 1723 |
withval="$with_gnu_ld" |
| 1724 |
test "$withval" = no || with_gnu_ld=yes |
| 1725 |
else |
| 1726 |
with_gnu_ld=no |
| 1727 |
fi |
| 1728 |
|
| 1729 |
ac_prog=ld |
| 1730 |
if test "$GCC" = yes; then |
| 1731 |
# Check if gcc -print-prog-name=ld gives a path. |
| 1732 |
echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 |
| 1733 |
echo "configure:1734: checking for ld used by GCC" >&5 |
| 1734 |
case $host in |
| 1735 |
*-*-mingw*) |
| 1736 |
# gcc leaves a trailing carriage return which upsets mingw |
| 1737 |
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 1738 |
*) |
| 1739 |
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 1740 |
esac |
| 1741 |
case $ac_prog in |
| 1742 |
# Accept absolute paths. |
| 1743 |
[\\/]* | [A-Za-z]:[\\/]*) |
| 1744 |
re_direlt='/[^/][^/]*/\.\./' |
| 1745 |
# Canonicalize the path of ld |
| 1746 |
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
| 1747 |
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 1748 |
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
| 1749 |
done |
| 1750 |
test -z "$LD" && LD="$ac_prog" |
| 1751 |
;; |
| 1752 |
"") |
| 1753 |
# If it fails, then pretend we aren't using GCC. |
| 1754 |
ac_prog=ld |
| 1755 |
;; |
| 1756 |
*) |
| 1757 |
# If it is relative, then search for the first ld in PATH. |
| 1758 |
with_gnu_ld=unknown |
| 1759 |
;; |
| 1760 |
esac |
| 1761 |
elif test "$with_gnu_ld" = yes; then |
| 1762 |
echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 |
| 1763 |
echo "configure:1764: checking for GNU ld" >&5 |
| 1764 |
else |
| 1765 |
echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 |
| 1766 |
echo "configure:1767: checking for non-GNU ld" >&5 |
| 1767 |
fi |
| 1768 |
if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then |
| 1769 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1770 |
else |
| 1771 |
if test -z "$LD"; then |
| 1772 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
| 1773 |
for ac_dir in $PATH; do |
| 1774 |
test -z "$ac_dir" && ac_dir=. |
| 1775 |
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 1776 |
lt_cv_path_LD="$ac_dir/$ac_prog" |
| 1777 |
# Check to see if the program is GNU ld. I'd rather use --version, |
| 1778 |
# but apparently some GNU ld's only accept -v. |
| 1779 |
# Break only if it was the GNU/non-GNU ld that we prefer. |
| 1780 |
if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
| 1781 |
test "$with_gnu_ld" != no && break |
| 1782 |
else |
| 1783 |
test "$with_gnu_ld" != yes && break |
| 1784 |
fi |
| 1785 |
fi |
| 1786 |
done |
| 1787 |
IFS="$ac_save_ifs" |
| 1788 |
else |
| 1789 |
lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 1790 |
fi |
| 1791 |
fi |
| 1792 |
|
| 1793 |
LD="$lt_cv_path_LD" |
| 1794 |
if test -n "$LD"; then |
| 1795 |
echo "$ac_t""$LD" 1>&6 |
| 1796 |
else |
| 1797 |
echo "$ac_t""no" 1>&6 |
| 1798 |
fi |
| 1799 |
test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } |
| 1800 |
echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 |
| 1801 |
echo "configure:1802: checking if the linker ($LD) is GNU ld" >&5 |
| 1802 |
if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then |
| 1803 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1804 |
else |
| 1805 |
# I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 1806 |
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then |
| 1807 |
lt_cv_prog_gnu_ld=yes |
| 1808 |
else |
| 1809 |
lt_cv_prog_gnu_ld=no |
| 1810 |
fi |
| 1811 |
fi |
| 1812 |
|
| 1813 |
echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6 |
| 1814 |
with_gnu_ld=$lt_cv_prog_gnu_ld |
| 1815 |
|
| 1816 |
|
| 1817 |
echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6 |
| 1818 |
echo "configure:1819: checking for $LD option to reload object files" >&5 |
| 1819 |
if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then |
| 1820 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1821 |
else |
| 1822 |
lt_cv_ld_reload_flag='-r' |
| 1823 |
fi |
| 1824 |
|
| 1825 |
echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6 |
| 1826 |
reload_flag=$lt_cv_ld_reload_flag |
| 1827 |
test -n "$reload_flag" && reload_flag=" $reload_flag" |
| 1828 |
|
| 1829 |
echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 |
| 1830 |
echo "configure:1831: checking for BSD-compatible nm" >&5 |
| 1831 |
if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then |
| 1832 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1833 |
else |
| 1834 |
if test -n "$NM"; then |
| 1835 |
# Let the user override the test. |
| 1836 |
lt_cv_path_NM="$NM" |
| 1837 |
else |
| 1838 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
| 1839 |
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
| 1840 |
test -z "$ac_dir" && ac_dir=. |
| 1841 |
tmp_nm=$ac_dir/${ac_tool_prefix}nm |
| 1842 |
if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then |
| 1843 |
# Check to see if the nm accepts a BSD-compat flag. |
| 1844 |
# Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 1845 |
# nm: unknown option "B" ignored |
| 1846 |
# Tru64's nm complains that /dev/null is an invalid object file |
| 1847 |
if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then |
| 1848 |
lt_cv_path_NM="$tmp_nm -B" |
| 1849 |
break |
| 1850 |
elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
| 1851 |
lt_cv_path_NM="$tmp_nm -p" |
| 1852 |
break |
| 1853 |
else |
| 1854 |
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 1855 |
continue # so that we can try to find one that supports BSD flags |
| 1856 |
fi |
| 1857 |
fi |
| 1858 |
done |
| 1859 |
IFS="$ac_save_ifs" |
| 1860 |
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 1861 |
fi |
| 1862 |
fi |
| 1863 |
|
| 1864 |
NM="$lt_cv_path_NM" |
| 1865 |
echo "$ac_t""$NM" 1>&6 |
| 1866 |
|
| 1867 |
echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6 |
| 1868 |
echo "configure:1869: checking how to recognise dependant libraries" >&5 |
| 1869 |
if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then |
| 1870 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 1871 |
else |
| 1872 |
lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 1873 |
lt_cv_file_magic_test_file= |
| 1874 |
lt_cv_deplibs_check_method='unknown' |
| 1875 |
# Need to set the preceding variable on all platforms that support |
| 1876 |
# interlibrary dependencies. |
| 1877 |
# 'none' -- dependencies not supported. |
| 1878 |
# `unknown' -- same as none, but documents that we really don't know. |
| 1879 |
# 'pass_all' -- all dependencies passed with no checks. |
| 1880 |
# 'test_compile' -- check by making test program. |
| 1881 |
# ['file_magic [regex]'] -- check by looking for files in library path |
| 1882 |
# which responds to the $file_magic_cmd with a given egrep regex. |
| 1883 |
# If you have `file' or equivalent on your system and you're not sure |
| 1884 |
# whether `pass_all' will *always* work, you probably want this one. |
| 1885 |
|
| 1886 |
case $host_os in |
| 1887 |
aix4* | aix5*) |
| 1888 |
lt_cv_deplibs_check_method=pass_all |
| 1889 |
;; |
| 1890 |
|
| 1891 |
beos*) |
| 1892 |
lt_cv_deplibs_check_method=pass_all |
| 1893 |
;; |
| 1894 |
|
| 1895 |
bsdi4*) |
| 1896 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 1897 |
lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 1898 |
lt_cv_file_magic_test_file=/shlib/libc.so |
| 1899 |
;; |
| 1900 |
|
| 1901 |
cygwin* | mingw* | pw32*) |
| 1902 |
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 1903 |
lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 1904 |
;; |
| 1905 |
|
| 1906 |
darwin* | rhapsody*) |
| 1907 |
lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' |
| 1908 |
lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 1909 |
case "$host_os" in |
| 1910 |
rhapsody* | darwin1.012) |
| 1911 |
lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1` |
| 1912 |
;; |
| 1913 |
*) # Darwin 1.3 on |
| 1914 |
lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' |
| 1915 |
;; |
| 1916 |
esac |
| 1917 |
;; |
| 1918 |
|
| 1919 |
freebsd*) |
| 1920 |
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 1921 |
case $host_cpu in |
| 1922 |
i*86 ) |
| 1923 |
# Not sure whether the presence of OpenBSD here was a mistake. |
| 1924 |
# Let's accept both of them until this is cleared up. |
| 1925 |
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
| 1926 |
lt_cv_file_magic_cmd=/usr/bin/file |
| 1927 |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 1928 |
;; |
| 1929 |
esac |
| 1930 |
else |
| 1931 |
lt_cv_deplibs_check_method=pass_all |
| 1932 |
fi |
| 1933 |
;; |
| 1934 |
|
| 1935 |
gnu*) |
| 1936 |
lt_cv_deplibs_check_method=pass_all |
| 1937 |
;; |
| 1938 |
|
| 1939 |
hpux10.20*|hpux11*) |
| 1940 |
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 1941 |
lt_cv_file_magic_cmd=/usr/bin/file |
| 1942 |
lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 1943 |
;; |
| 1944 |
|
| 1945 |
irix5* | irix6*) |
| 1946 |
case $host_os in |
| 1947 |
irix5*) |
| 1948 |
# this will be overridden with pass_all, but let us keep it just in case |
| 1949 |
lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" |
| 1950 |
;; |
| 1951 |
*) |
| 1952 |
case $LD in |
| 1953 |
*-32|*"-32 ") libmagic=32-bit;; |
| 1954 |
*-n32|*"-n32 ") libmagic=N32;; |
| 1955 |
*-64|*"-64 ") libmagic=64-bit;; |
| 1956 |
*) libmagic=never-match;; |
| 1957 |
esac |
| 1958 |
# this will be overridden with pass_all, but let us keep it just in case |
| 1959 |
lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" |
| 1960 |
;; |
| 1961 |
esac |
| 1962 |
lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` |
| 1963 |
lt_cv_deplibs_check_method=pass_all |
| 1964 |
;; |
| 1965 |
|
| 1966 |
# This must be Linux ELF. |
| 1967 |
linux-gnu*) |
| 1968 |
case $host_cpu in |
| 1969 |
alpha* | i*86 | powerpc* | sparc* | ia64* ) |
| 1970 |
lt_cv_deplibs_check_method=pass_all ;; |
| 1971 |
*) |
| 1972 |
# glibc up to 2.1.1 does not perform some relocations on ARM |
| 1973 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; |
| 1974 |
esac |
| 1975 |
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
| 1976 |
;; |
| 1977 |
|
| 1978 |
netbsd*) |
| 1979 |
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 1980 |
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' |
| 1981 |
else |
| 1982 |
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' |
| 1983 |
fi |
| 1984 |
;; |
| 1985 |
|
| 1986 |
newos6*) |
| 1987 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 1988 |
lt_cv_file_magic_cmd=/usr/bin/file |
| 1989 |
lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 1990 |
;; |
| 1991 |
|
| 1992 |
osf3* | osf4* | osf5*) |
| 1993 |
# this will be overridden with pass_all, but let us keep it just in case |
| 1994 |
lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' |
| 1995 |
lt_cv_file_magic_test_file=/shlib/libc.so |
| 1996 |
lt_cv_deplibs_check_method=pass_all |
| 1997 |
;; |
| 1998 |
|
| 1999 |
sco3.2v5*) |
| 2000 |
lt_cv_deplibs_check_method=pass_all |
| 2001 |
;; |
| 2002 |
|
| 2003 |
solaris*) |
| 2004 |
lt_cv_deplibs_check_method=pass_all |
| 2005 |
lt_cv_file_magic_test_file=/lib/libc.so |
| 2006 |
;; |
| 2007 |
|
| 2008 |
sysv5uw[78]* | sysv4*uw2*) |
| 2009 |
lt_cv_deplibs_check_method=pass_all |
| 2010 |
;; |
| 2011 |
|
| 2012 |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 2013 |
case $host_vendor in |
| 2014 |
motorola) |
| 2015 |
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]' |
| 2016 |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 2017 |
;; |
| 2018 |
ncr) |
| 2019 |
lt_cv_deplibs_check_method=pass_all |
| 2020 |
;; |
| 2021 |
sequent) |
| 2022 |
lt_cv_file_magic_cmd='/bin/file' |
| 2023 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 2024 |
;; |
| 2025 |
sni) |
| 2026 |
lt_cv_file_magic_cmd='/bin/file' |
| 2027 |
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 2028 |
lt_cv_file_magic_test_file=/lib/libc.so |
| 2029 |
;; |
| 2030 |
esac |
| 2031 |
;; |
| 2032 |
esac |
| 2033 |
|
| 2034 |
fi |
| 2035 |
|
| 2036 |
echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6 |
| 2037 |
file_magic_cmd=$lt_cv_file_magic_cmd |
| 2038 |
deplibs_check_method=$lt_cv_deplibs_check_method |
| 2039 |
|
| 2040 |
echo $ac_n "checking for object suffix""... $ac_c" 1>&6 |
| 2041 |
echo "configure:2042: checking for object suffix" >&5 |
| 2042 |
if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then |
| 2043 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 2044 |
else |
| 2045 |
rm -f conftest* |
| 2046 |
echo 'int i = 1;' > conftest.$ac_ext |
| 2047 |
if { (eval echo configure:2048: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 2048 |
for ac_file in conftest.*; do |
| 2049 |
case $ac_file in |
| 2050 |
*.c) ;; |
| 2051 |
*) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;; |
| 2052 |
esac |
| 2053 |
done |
| 2054 |
else |
| 2055 |
{ echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; } |
| 2056 |
fi |
| 2057 |
rm -f conftest* |
| 2058 |
fi |
| 2059 |
|
| 2060 |
echo "$ac_t""$ac_cv_objext" 1>&6 |
| 2061 |
OBJEXT=$ac_cv_objext |
| 2062 |
ac_objext=$ac_cv_objext |
| 2063 |
|
| 2064 |
|
| 2065 |
|
| 2066 |
echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 |
| 2067 |
echo "configure:2068: checking for executable suffix" >&5 |
| 2068 |
if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then |
| 2069 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 2070 |
else |
| 2071 |
if test "$CYGWIN" = yes || test "$MINGW32" = yes; then |
| 2072 |
ac_cv_exeext=.exe |
| 2073 |
else |
| 2074 |
rm -f conftest* |
| 2075 |
echo 'int main () { return 0; }' > conftest.$ac_ext |
| 2076 |
ac_cv_exeext= |
| 2077 |
if { (eval echo configure:2078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
| 2078 |
for file in conftest.*; do |
| 2079 |
case $file in |
| 2080 |
*.c | *.C | *.o | *.obj | *.ilk | *.pdb) ;; |
| 2081 |
*) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; |
| 2082 |
esac |
| 2083 |
done |
| 2084 |
else |
| 2085 |
{ echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } |
| 2086 |
fi |
| 2087 |
rm -f conftest* |
| 2088 |
test x"${ac_cv_exeext}" = x && ac_cv_exeext=no |
| 2089 |
fi |
| 2090 |
fi |
| 2091 |
|
| 2092 |
EXEEXT="" |
| 2093 |
test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} |
| 2094 |
echo "$ac_t""${ac_cv_exeext}" 1>&6 |
| 2095 |
ac_exeext=$EXEEXT |
| 2096 |
|
| 2097 |
if test $host != $build; then |
| 2098 |
ac_tool_prefix=${host_alias}- |
| 2099 |
else |
| 2100 |
ac_tool_prefix= |
| 2101 |
fi |
| 2102 |
|
| 2103 |
|
| 2104 |
|
| 2105 |
|
| 2106 |
# Check for command to grab the raw symbol name followed by C symbol from nm. |
| 2107 |
echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6 |
| 2108 |
echo "configure:2109: checking command to parse $NM output" >&5 |
| 2109 |
if eval "test \"`echo '$''{'lt_cv_sys_global_symbol_pipe'+set}'`\" = set"; then |
| 2110 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 2111 |
else |
| 2112 |
|
| 2113 |
# These are sane defaults that work on at least a few old systems. |
| 2114 |
# [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 2115 |
|
| 2116 |
# Character class describing NM global symbol codes. |
| 2117 |
symcode='[BCDEGRST]' |
| 2118 |
|
| 2119 |
# Regexp to match symbols that can be accessed directly from C. |
| 2120 |
sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 2121 |
|
| 2122 |
# Transform the above into a raw symbol and a C symbol. |
| 2123 |
symxfrm='\1 \2\3 \3' |
| 2124 |
|
| 2125 |
# Transform an extracted symbol line into a proper C declaration |
| 2126 |
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'" |
| 2127 |
|
| 2128 |
# Define system-specific variables. |
| 2129 |
case $host_os in |
| 2130 |
aix*) |
| 2131 |
symcode='[BCDT]' |
| 2132 |
;; |
| 2133 |
cygwin* | mingw* | pw32*) |
| 2134 |
symcode='[ABCDGISTW]' |
| 2135 |
;; |
| 2136 |
hpux*) # Its linker distinguishes data from code symbols |
| 2137 |
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 2138 |
;; |
| 2139 |
irix*) |
| 2140 |
symcode='[BCDEGRST]' |
| 2141 |
;; |
| 2142 |
solaris* | sysv5*) |
| 2143 |
symcode='[BDT]' |
| 2144 |
;; |
| 2145 |
sysv4) |
| 2146 |
symcode='[DFNSTU]' |
| 2147 |
;; |
| 2148 |
esac |
| 2149 |
|
| 2150 |
# Handle CRLF in mingw tool chain |
| 2151 |
opt_cr= |
| 2152 |
case $host_os in |
| 2153 |
mingw*) |
| 2154 |
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 2155 |
;; |
| 2156 |
esac |
| 2157 |
|
| 2158 |
# If we're using GNU nm, then use its standard symbol codes. |
| 2159 |
if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then |
| 2160 |
symcode='[ABCDGISTW]' |
| 2161 |
fi |
| 2162 |
|
| 2163 |
# Try without a prefix undercore, then with it. |
| 2164 |
for ac_symprfx in "" "_"; do |
| 2165 |
|
| 2166 |
# Write the raw and C identifiers. |
| 2167 |
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" |
| 2168 |
|
| 2169 |
# Check to see that the pipe works correctly. |
| 2170 |
pipe_works=no |
| 2171 |
rm -f conftest* |
| 2172 |
cat > conftest.$ac_ext <<EOF |
| 2173 |
#ifdef __cplusplus |
| 2174 |
extern "C" { |
| 2175 |
#endif |
| 2176 |
char nm_test_var; |
| 2177 |
void nm_test_func(){} |
| 2178 |
#ifdef __cplusplus |
| 2179 |
} |
| 2180 |
#endif |
| 2181 |
int main(){nm_test_var='a';nm_test_func();return(0);} |
| 2182 |
EOF |
| 2183 |
|
| 2184 |
if { (eval echo configure:2185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 2185 |
# Now try to grab the symbols. |
| 2186 |
nlist=conftest.nm |
| 2187 |
if { (eval echo configure:2188: \"$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 |
| 2188 |
# Try sorting and uniquifying the output. |
| 2189 |
if sort "$nlist" | uniq > "$nlist"T; then |
| 2190 |
mv -f "$nlist"T "$nlist" |
| 2191 |
else |
| 2192 |
rm -f "$nlist"T |
| 2193 |
fi |
| 2194 |
|
| 2195 |
# Make sure that we snagged all the symbols we need. |
| 2196 |
if egrep ' nm_test_var$' "$nlist" >/dev/null; then |
| 2197 |
if egrep ' nm_test_func$' "$nlist" >/dev/null; then |
| 2198 |
cat <<EOF > conftest.$ac_ext |
| 2199 |
#ifdef __cplusplus |
| 2200 |
extern "C" { |
| 2201 |
#endif |
| 2202 |
|
| 2203 |
EOF |
| 2204 |
# Now generate the symbol file. |
| 2205 |
eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext' |
| 2206 |
|
| 2207 |
cat <<EOF >> conftest.$ac_ext |
| 2208 |
#if defined (__STDC__) && __STDC__ |
| 2209 |
# define lt_ptr_t void * |
| 2210 |
#else |
| 2211 |
# define lt_ptr_t char * |
| 2212 |
# define const |
| 2213 |
#endif |
| 2214 |
|
| 2215 |
/* The mapping between symbol names and symbols. */ |
| 2216 |
const struct { |
| 2217 |
const char *name; |
| 2218 |
lt_ptr_t address; |
| 2219 |
} |
| 2220 |
lt_preloaded_symbols[] = |
| 2221 |
{ |
| 2222 |
EOF |
| 2223 |
sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" >> conftest.$ac_ext |
| 2224 |
cat <<\EOF >> conftest.$ac_ext |
| 2225 |
{0, (lt_ptr_t) 0} |
| 2226 |
}; |
| 2227 |
|
| 2228 |
#ifdef __cplusplus |
| 2229 |
} |
| 2230 |
#endif |
| 2231 |
EOF |
| 2232 |
# Now try linking the two files. |
| 2233 |
mv conftest.$ac_objext conftstm.$ac_objext |
| 2234 |
save_LIBS="$LIBS" |
| 2235 |
save_CFLAGS="$CFLAGS" |
| 2236 |
LIBS="conftstm.$ac_objext" |
| 2237 |
CFLAGS="$CFLAGS$no_builtin_flag" |
| 2238 |
if { (eval echo configure:2239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 2239 |
pipe_works=yes |
| 2240 |
fi |
| 2241 |
LIBS="$save_LIBS" |
| 2242 |
CFLAGS="$save_CFLAGS" |
| 2243 |
else |
| 2244 |
echo "cannot find nm_test_func in $nlist" >&5 |
| 2245 |
fi |
| 2246 |
else |
| 2247 |
echo "cannot find nm_test_var in $nlist" >&5 |
| 2248 |
fi |
| 2249 |
else |
| 2250 |
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 2251 |
fi |
| 2252 |
else |
| 2253 |
echo "$progname: failed program was:" >&5 |
| 2254 |
cat conftest.$ac_ext >&5 |
| 2255 |
fi |
| 2256 |
rm -f conftest* conftst* |
| 2257 |
|
| 2258 |
# Do not use the global_symbol_pipe unless it works. |
| 2259 |
if test "$pipe_works" = yes; then |
| 2260 |
break |
| 2261 |
else |
| 2262 |
lt_cv_sys_global_symbol_pipe= |
| 2263 |
fi |
| 2264 |
done |
| 2265 |
|
| 2266 |
fi |
| 2267 |
|
| 2268 |
global_symbol_pipe="$lt_cv_sys_global_symbol_pipe" |
| 2269 |
if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 2270 |
global_symbol_to_cdecl= |
| 2271 |
else |
| 2272 |
global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl" |
| 2273 |
fi |
| 2274 |
if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then |
| 2275 |
echo "$ac_t""failed" 1>&6 |
| 2276 |
else |
| 2277 |
echo "$ac_t""ok" 1>&6 |
| 2278 |
fi |
| 2279 |
|
| 2280 |
for ac_hdr in dlfcn.h |
| 2281 |
do |
| 2282 |
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 2283 |
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 2284 |
echo "configure:2285: checking for $ac_hdr" >&5 |
| 2285 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 2286 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 2287 |
else |
| 2288 |
cat > conftest.$ac_ext <<EOF |
| 2289 |
#line 2290 "configure" |
| 2290 |
#include "confdefs.h" |
| 2291 |
#include <$ac_hdr> |
| 2292 |
EOF |
| 2293 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 2294 |
{ (eval echo configure:2295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 2295 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 2296 |
if test -z "$ac_err"; then |
| 2297 |
rm -rf conftest* |
| 2298 |
eval "ac_cv_header_$ac_safe=yes" |
| 2299 |
else |
| 2300 |
echo "$ac_err" >&5 |
| 2301 |
echo "configure: failed program was:" >&5 |
| 2302 |
cat conftest.$ac_ext >&5 |
| 2303 |
rm -rf conftest* |
| 2304 |
eval "ac_cv_header_$ac_safe=no" |
| 2305 |
fi |
| 2306 |
rm -f conftest* |
| 2307 |
fi |
| 2308 |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 2309 |
echo "$ac_t""yes" 1>&6 |
| 2310 |
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 2311 |
cat >> confdefs.h <<EOF |
| 2312 |
#define $ac_tr_hdr 1 |
| 2313 |
EOF |
| 2314 |
|
| 2315 |
else |
| 2316 |
echo "$ac_t""no" 1>&6 |
| 2317 |
fi |
| 2318 |
done |
| 2319 |
|
| 2320 |
|
| 2321 |
|
| 2322 |
|
| 2323 |
|
| 2324 |
# Only perform the check for file, if the check method requires it |
| 2325 |
case $deplibs_check_method in |
| 2326 |
file_magic*) |
| 2327 |
if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
| 2328 |
echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6 |
| 2329 |
echo "configure:2330: checking for ${ac_tool_prefix}file" >&5 |
| 2330 |
if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then |
| 2331 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 2332 |
else |
| 2333 |
case $MAGIC_CMD in |
| 2334 |
/*) |
| 2335 |
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 2336 |
;; |
| 2337 |
?:/*) |
| 2338 |
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
| 2339 |
;; |
| 2340 |
*) |
| 2341 |
ac_save_MAGIC_CMD="$MAGIC_CMD" |
| 2342 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 2343 |
ac_dummy="/usr/bin:$PATH" |
| 2344 |
for ac_dir in $ac_dummy; do |
| 2345 |
test -z "$ac_dir" && ac_dir=. |
| 2346 |
if test -f $ac_dir/${ac_tool_prefix}file; then |
| 2347 |
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 2348 |
if test -n "$file_magic_test_file"; then |
| 2349 |
case $deplibs_check_method in |
| 2350 |
"file_magic "*) |
| 2351 |
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
| 2352 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 2353 |
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 2354 |
egrep "$file_magic_regex" > /dev/null; then |
| 2355 |
: |
| 2356 |
else |
| 2357 |
cat <<EOF 1>&2 |
| 2358 |
|
| 2359 |
*** Warning: the command libtool uses to detect shared libraries, |
| 2360 |
*** $file_magic_cmd, produces output that libtool cannot recognize. |
| 2361 |
*** The result is that libtool may fail to recognize shared libraries |
| 2362 |
*** as such. This will affect the creation of libtool libraries that |
| 2363 |
*** depend on shared libraries, but programs linked with such libtool |
| 2364 |
*** libraries will work regardless of this problem. Nevertheless, you |
| 2365 |
*** may want to report the problem to your system manager and/or to |
| 2366 |
*** bug-libtool@gnu.org |
| 2367 |
|
| 2368 |
EOF |
| 2369 |
fi ;; |
| 2370 |
esac |
| 2371 |
fi |
| 2372 |
break |
| 2373 |
fi |
| 2374 |
done |
| 2375 |
IFS="$ac_save_ifs" |
| 2376 |
MAGIC_CMD="$ac_save_MAGIC_CMD" |
| 2377 |
;; |
| 2378 |
esac |
| 2379 |
fi |
| 2380 |
|
| 2381 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 2382 |
if test -n "$MAGIC_CMD"; then |
| 2383 |
echo "$ac_t""$MAGIC_CMD" 1>&6 |
| 2384 |
else |
| 2385 |
echo "$ac_t""no" 1>&6 |
| 2386 |
fi |
| 2387 |
|
| 2388 |
if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 2389 |
if test -n "$ac_tool_prefix"; then |
| 2390 |
echo $ac_n "checking for file""... $ac_c" 1>&6 |
| 2391 |
echo "configure:2392: checking for file" >&5 |
| 2392 |
if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then |
| 2393 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 2394 |
else |
| 2395 |
case $MAGIC_CMD in |
| 2396 |
/*) |
| 2397 |
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 2398 |
;; |
| 2399 |
?:/*) |
| 2400 |
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
| 2401 |
;; |
| 2402 |
*) |
| 2403 |
ac_save_MAGIC_CMD="$MAGIC_CMD" |
| 2404 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 2405 |
ac_dummy="/usr/bin:$PATH" |
| 2406 |
for ac_dir in $ac_dummy; do |
| 2407 |
test -z "$ac_dir" && ac_dir=. |
| 2408 |
if test -f $ac_dir/file; then |
| 2409 |
lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 2410 |
if test -n "$file_magic_test_file"; then |
| 2411 |
case $deplibs_check_method in |
| 2412 |
"file_magic "*) |
| 2413 |
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
| 2414 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 2415 |
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 2416 |
egrep "$file_magic_regex" > /dev/null; then |
| 2417 |
: |
| 2418 |
else |
| 2419 |
cat <<EOF 1>&2 |
| 2420 |
|
| 2421 |
*** Warning: the command libtool uses to detect shared libraries, |
| 2422 |
*** $file_magic_cmd, produces output that libtool cannot recognize. |
| 2423 |
*** The result is that libtool may fail to recognize shared libraries |
| 2424 |
*** as such. This will affect the creation of libtool libraries that |
| 2425 |
*** depend on shared libraries, but programs linked with such libtool |
| 2426 |
*** libraries will work regardless of this problem. Nevertheless, you |
| 2427 |
*** may want to report the problem to your system manager and/or to |
| 2428 |
*** bug-libtool@gnu.org |
| 2429 |
|
| 2430 |
EOF |
| 2431 |
fi ;; |
| 2432 |
esac |
| 2433 |
fi |
| 2434 |
break |
| 2435 |
fi |
| 2436 |
done |
| 2437 |
IFS="$ac_save_ifs" |
| 2438 |
MAGIC_CMD="$ac_save_MAGIC_CMD" |
| 2439 |
;; |
| 2440 |
esac |
| 2441 |
fi |
| 2442 |
|
| 2443 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 2444 |
if test -n "$MAGIC_CMD"; then |
| 2445 |
echo "$ac_t""$MAGIC_CMD" 1>&6 |
| 2446 |
else |
| 2447 |
echo "$ac_t""no" 1>&6 |
| 2448 |
fi |
| 2449 |
|
| 2450 |
else |
| 2451 |
MAGIC_CMD=: |
| 2452 |
fi |
| 2453 |
fi |
| 2454 |
|
| 2455 |
fi |
| 2456 |
;; |
| 2457 |
esac |
| 2458 |
|
| 2459 |
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 2460 |
set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 2461 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 2462 |
echo "configure:2463: checking for $ac_word" >&5 |
| 2463 |
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
| 2464 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 2465 |
else |
| 2466 |
if test -n "$RANLIB"; then |
| 2467 |
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 2468 |
else |
| 2469 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 2470 |
ac_dummy="$PATH" |
| 2471 |
for ac_dir in $ac_dummy; do |
| 2472 |
test -z "$ac_dir" && ac_dir=. |
| 2473 |
if test -f $ac_dir/$ac_word; then |
| 2474 |
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 2475 |
break |
| 2476 |
fi |
| 2477 |
done |
| 2478 |
IFS="$ac_save_ifs" |
| 2479 |
fi |
| 2480 |
fi |
| 2481 |
RANLIB="$ac_cv_prog_RANLIB" |
| 2482 |
if test -n "$RANLIB"; then |
| 2483 |
echo "$ac_t""$RANLIB" 1>&6 |
| 2484 |
else |
| 2485 |
echo "$ac_t""no" 1>&6 |
| 2486 |
fi |
| 2487 |
|
| 2488 |
|
| 2489 |
if test -z "$ac_cv_prog_RANLIB"; then |
| 2490 |
if test -n "$ac_tool_prefix"; then |
| 2491 |
# Extract the first word of "ranlib", so it can be a program name with args. |
| 2492 |
set dummy ranlib; ac_word=$2 |
| 2493 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 2494 |
echo "configure:2495: checking for $ac_word" >&5 |
| 2495 |
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
| 2496 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 2497 |
else |
| 2498 |
if test -n "$RANLIB"; then |
| 2499 |
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 2500 |
else |
| 2501 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 2502 |
ac_dummy="$PATH" |
| 2503 |
for ac_dir in $ac_dummy; do |
| 2504 |
test -z "$ac_dir" && ac_dir=. |
| 2505 |
if test -f $ac_dir/$ac_word; then |
| 2506 |
ac_cv_prog_RANLIB="ranlib" |
| 2507 |
break |
| 2508 |
fi |
| 2509 |
done |
| 2510 |
IFS="$ac_save_ifs" |
| 2511 |
test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
| 2512 |
fi |
| 2513 |
fi |
| 2514 |
RANLIB="$ac_cv_prog_RANLIB" |
| 2515 |
if test -n "$RANLIB"; then |
| 2516 |
echo "$ac_t""$RANLIB" 1>&6 |
| 2517 |
else |
| 2518 |
echo "$ac_t""no" 1>&6 |
| 2519 |
fi |
| 2520 |
|
| 2521 |
else |
| 2522 |
RANLIB=":" |
| 2523 |
fi |
| 2524 |
fi |
| 2525 |
|
| 2526 |
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 2527 |
set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 2528 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 2529 |
echo "configure:2530: checking for $ac_word" >&5 |
| 2530 |
if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
| 2531 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 2532 |
else |
| 2533 |
if test -n "$STRIP"; then |
| 2534 |
ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 2535 |
else |
| 2536 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 2537 |
ac_dummy="$PATH" |
| 2538 |
for ac_dir in $ac_dummy; do |
| 2539 |
test -z "$ac_dir" && ac_dir=. |
| 2540 |
if test -f $ac_dir/$ac_word; then |
| 2541 |
ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 2542 |
break |
| 2543 |
fi |
| 2544 |
done |
| 2545 |
IFS="$ac_save_ifs" |
| 2546 |
fi |
| 2547 |
fi |
| 2548 |
STRIP="$ac_cv_prog_STRIP" |
| 2549 |
if test -n "$STRIP"; then |
| 2550 |
echo "$ac_t""$STRIP" 1>&6 |
| 2551 |
else |
| 2552 |
echo "$ac_t""no" 1>&6 |
| 2553 |
fi |
| 2554 |
|
| 2555 |
|
| 2556 |
if test -z "$ac_cv_prog_STRIP"; then |
| 2557 |
if test -n "$ac_tool_prefix"; then |
| 2558 |
# Extract the first word of "strip", so it can be a program name with args. |
| 2559 |
set dummy strip; ac_word=$2 |
| 2560 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 2561 |
echo "configure:2562: checking for $ac_word" >&5 |
| 2562 |
if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
| 2563 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 2564 |
else |
| 2565 |
if test -n "$STRIP"; then |
| 2566 |
ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 2567 |
else |
| 2568 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 2569 |
ac_dummy="$PATH" |
| 2570 |
for ac_dir in $ac_dummy; do |
| 2571 |
test -z "$ac_dir" && ac_dir=. |
| 2572 |
if test -f $ac_dir/$ac_word; then |
| 2573 |
ac_cv_prog_STRIP="strip" |
| 2574 |
break |
| 2575 |
fi |
| 2576 |
done |
| 2577 |
IFS="$ac_save_ifs" |
| 2578 |
test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" |
| 2579 |
fi |
| 2580 |
fi |
| 2581 |
STRIP="$ac_cv_prog_STRIP" |
| 2582 |
if test -n "$STRIP"; then |
| 2583 |
echo "$ac_t""$STRIP" 1>&6 |
| 2584 |
else |
| 2585 |
echo "$ac_t""no" 1>&6 |
| 2586 |
fi |
| 2587 |
|
| 2588 |
else |
| 2589 |
STRIP=":" |
| 2590 |
fi |
| 2591 |
fi |
| 2592 |
|
| 2593 |
|
| 2594 |
enable_dlopen=no |
| 2595 |
enable_win32_dll=no |
| 2596 |
|
| 2597 |
# Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
| 2598 |
if test "${enable_libtool_lock+set}" = set; then |
| 2599 |
enableval="$enable_libtool_lock" |
| 2600 |
: |
| 2601 |
fi |
| 2602 |
|
| 2603 |
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 2604 |
|
| 2605 |
# Some flags need to be propagated to the compiler or linker for good |
| 2606 |
# libtool support. |
| 2607 |
case $host in |
| 2608 |
*-*-irix6*) |
| 2609 |
# Find out which ABI we are using. |
| 2610 |
echo '#line 2611 "configure"' > conftest.$ac_ext |
| 2611 |
if { (eval echo configure:2612: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 2612 |
case `/usr/bin/file conftest.$ac_objext` in |
| 2613 |
*32-bit*) |
| 2614 |
LD="${LD-ld} -32" |
| 2615 |
;; |
| 2616 |
*N32*) |
| 2617 |
LD="${LD-ld} -n32" |
| 2618 |
;; |
| 2619 |
*64-bit*) |
| 2620 |
LD="${LD-ld} -64" |
| 2621 |
;; |
| 2622 |
esac |
| 2623 |
fi |
| 2624 |
rm -rf conftest* |
| 2625 |
;; |
| 2626 |
|
| 2627 |
*-*-sco3.2v5*) |
| 2628 |
# On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 2629 |
SAVE_CFLAGS="$CFLAGS" |
| 2630 |
CFLAGS="$CFLAGS -belf" |
| 2631 |
echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 |
| 2632 |
echo "configure:2633: checking whether the C compiler needs -belf" >&5 |
| 2633 |
if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then |
| 2634 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 2635 |
else |
| 2636 |
|
| 2637 |
ac_ext=c |
| 2638 |
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 2639 |
ac_cpp='$CPP $CPPFLAGS' |
| 2640 |
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 2641 |
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 2642 |
cross_compiling=$ac_cv_prog_cc_cross |
| 2643 |
|
| 2644 |
cat > conftest.$ac_ext <<EOF |
| 2645 |
#line 2646 "configure" |
| 2646 |
#include "confdefs.h" |
| 2647 |
|
| 2648 |
int main() { |
| 2649 |
|
| 2650 |
; return 0; } |
| 2651 |
EOF |
| 2652 |
if { (eval echo configure:2653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2653 |
rm -rf conftest* |
| 2654 |
lt_cv_cc_needs_belf=yes |
| 2655 |
else |
| 2656 |
echo "configure: failed program was:" >&5 |
| 2657 |
cat conftest.$ac_ext >&5 |
| 2658 |
rm -rf conftest* |
| 2659 |
lt_cv_cc_needs_belf=no |
| 2660 |
fi |
| 2661 |
rm -f conftest* |
| 2662 |
ac_ext=c |
| 2663 |
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 2664 |
ac_cpp='$CPP $CPPFLAGS' |
| 2665 |
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 2666 |
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 2667 |
cross_compiling=$ac_cv_prog_cc_cross |
| 2668 |
|
| 2669 |
fi |
| 2670 |
|
| 2671 |
echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6 |
| 2672 |
if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 2673 |
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 2674 |
CFLAGS="$SAVE_CFLAGS" |
| 2675 |
fi |
| 2676 |
;; |
| 2677 |
|
| 2678 |
|
| 2679 |
esac |
| 2680 |
|
| 2681 |
# Sed substitution that helps us do robust quoting. It backslashifies |
| 2682 |
# metacharacters that are still active within double-quoted strings. |
| 2683 |
Xsed='sed -e s/^X//' |
| 2684 |
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
| 2685 |
|
| 2686 |
# Same as above, but do not quote variable references. |
| 2687 |
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
| 2688 |
|
| 2689 |
# Sed substitution to delay expansion of an escaped shell variable in a |
| 2690 |
# double_quote_subst'ed string. |
| 2691 |
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 2692 |
|
| 2693 |
# Constants: |
| 2694 |
rm="rm -f" |
| 2695 |
|
| 2696 |
# Global variables: |
| 2697 |
default_ofile=libtool |
| 2698 |
can_build_shared=yes |
| 2699 |
|
| 2700 |
# All known linkers require a `.a' archive for static linking (except M$VC, |
| 2701 |
# which needs '.lib'). |
| 2702 |
libext=a |
| 2703 |
ltmain="$ac_aux_dir/ltmain.sh" |
| 2704 |
ofile="$default_ofile" |
| 2705 |
with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 2706 |
need_locks="$enable_libtool_lock" |
| 2707 |
|
| 2708 |
old_CC="$CC" |
| 2709 |
old_CFLAGS="$CFLAGS" |
| 2710 |
|
| 2711 |
# Set sane defaults for various variables |
| 2712 |
test -z "$AR" && AR=ar |
| 2713 |
test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 2714 |
test -z "$AS" && AS=as |
| 2715 |
test -z "$CC" && CC=cc |
| 2716 |
test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 2717 |
test -z "$LD" && LD=ld |
| 2718 |
test -z "$LN_S" && LN_S="ln -s" |
| 2719 |
test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 2720 |
test -z "$NM" && NM=nm |
| 2721 |
test -z "$OBJDUMP" && OBJDUMP=objdump |
| 2722 |
test -z "$RANLIB" && RANLIB=: |
| 2723 |
test -z "$STRIP" && STRIP=: |
| 2724 |
test -z "$ac_objext" && ac_objext=o |
| 2725 |
|
| 2726 |
if test x"$host" != x"$build"; then |
| 2727 |
ac_tool_prefix=${host_alias}- |
| 2728 |
else |
| 2729 |
ac_tool_prefix= |
| 2730 |
fi |
| 2731 |
|
| 2732 |
# Transform linux* to *-*-linux-gnu*, to support old configure scripts. |
| 2733 |
case $host_os in |
| 2734 |
linux-gnu*) ;; |
| 2735 |
linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` |
| 2736 |
esac |
| 2737 |
|
| 2738 |
case $host_os in |
| 2739 |
aix3*) |
| 2740 |
# AIX sometimes has problems with the GCC collect2 program. For some |
| 2741 |
# reason, if we set the COLLECT_NAMES environment variable, the problems |
| 2742 |
# vanish in a puff of smoke. |
| 2743 |
if test "X${COLLECT_NAMES+set}" != Xset; then |
| 2744 |
COLLECT_NAMES= |
| 2745 |
export COLLECT_NAMES |
| 2746 |
fi |
| 2747 |
;; |
| 2748 |
esac |
| 2749 |
|
| 2750 |
# Determine commands to create old-style static archives. |
| 2751 |
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
| 2752 |
old_postinstall_cmds='chmod 644 $oldlib' |
| 2753 |
old_postuninstall_cmds= |
| 2754 |
|
| 2755 |
if test -n "$RANLIB"; then |
| 2756 |
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 2757 |
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
| 2758 |
fi |
| 2759 |
|
| 2760 |
# Allow CC to be a program name with arguments. |
| 2761 |
set dummy $CC |
| 2762 |
compiler="$2" |
| 2763 |
|
| 2764 |
echo $ac_n "checking for objdir""... $ac_c" 1>&6 |
| 2765 |
echo "configure:2766: checking for objdir" >&5 |
| 2766 |
rm -f .libs 2>/dev/null |
| 2767 |
mkdir .libs 2>/dev/null |
| 2768 |
if test -d .libs; then |
| 2769 |
objdir=.libs |
| 2770 |
else |
| 2771 |
# MS-DOS does not allow filenames that begin with a dot. |
| 2772 |
objdir=_libs |
| 2773 |
fi |
| 2774 |
rmdir .libs 2>/dev/null |
| 2775 |
echo "$ac_t""$objdir" 1>&6 |
| 2776 |
|
| 2777 |
|
| 2778 |
# Check whether --with-pic or --without-pic was given. |
| 2779 |
if test "${with_pic+set}" = set; then |
| 2780 |
withval="$with_pic" |
| 2781 |
pic_mode="$withval" |
| 2782 |
else |
| 2783 |
pic_mode=default |
| 2784 |
fi |
| 2785 |
|
| 2786 |
test -z "$pic_mode" && pic_mode=default |
| 2787 |
|
| 2788 |
# We assume here that the value for lt_cv_prog_cc_pic will not be cached |
| 2789 |
# in isolation, and that seeing it set (from the cache) indicates that |
| 2790 |
# the associated values are set (in the cache) correctly too. |
| 2791 |
echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6 |
| 2792 |
echo "configure:2793: checking for $compiler option to produce PIC" >&5 |
| 2793 |
if eval "test \"`echo '$''{'lt_cv_prog_cc_pic'+set}'`\" = set"; then |
| 2794 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 2795 |
else |
| 2796 |
lt_cv_prog_cc_pic= |
| 2797 |
lt_cv_prog_cc_shlib= |
| 2798 |
lt_cv_prog_cc_wl= |
| 2799 |
lt_cv_prog_cc_static= |
| 2800 |
lt_cv_prog_cc_no_builtin= |
| 2801 |
lt_cv_prog_cc_can_build_shared=$can_build_shared |
| 2802 |
|
| 2803 |
if test "$GCC" = yes; then |
| 2804 |
lt_cv_prog_cc_wl='-Wl,' |
| 2805 |
lt_cv_prog_cc_static='-static' |
| 2806 |
|
| 2807 |
case $host_os in |
| 2808 |
aix*) |
| 2809 |
# Below there is a dirty hack to force normal static linking with -ldl |
| 2810 |
# The problem is because libdl dynamically linked with both libc and |
| 2811 |
# libC (AIX C++ library), which obviously doesn't included in libraries |
| 2812 |
# list by gcc. This cause undefined symbols with -static flags. |
| 2813 |
# This hack allows C programs to be linked with "-static -ldl", but |
| 2814 |
# we not sure about C++ programs. |
| 2815 |
lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC" |
| 2816 |
;; |
| 2817 |
amigaos*) |
| 2818 |
# FIXME: we need at least 68020 code to build shared libraries, but |
| 2819 |
# adding the `-m68020' flag to GCC prevents building anything better, |
| 2820 |
# like `-m68040'. |
| 2821 |
lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4' |
| 2822 |
;; |
| 2823 |
beos* | irix5* | irix6* | osf3* | osf4* | osf5*) |
| 2824 |
# PIC is the default for these OSes. |
| 2825 |
;; |
| 2826 |
darwin* | rhapsody*) |
| 2827 |
# PIC is the default on this platform |
| 2828 |
# Common symbols not allowed in MH_DYLIB files |
| 2829 |
lt_cv_prog_cc_pic='-fno-common' |
| 2830 |
;; |
| 2831 |
cygwin* | mingw* | pw32* | os2*) |
| 2832 |
# This hack is so that the source file can tell whether it is being |
| 2833 |
# built for inclusion in a dll (and should export symbols for example). |
| 2834 |
lt_cv_prog_cc_pic='-DDLL_EXPORT' |
| 2835 |
;; |
| 2836 |
sysv4*MP*) |
| 2837 |
if test -d /usr/nec; then |
| 2838 |
lt_cv_prog_cc_pic=-Kconform_pic |
| 2839 |
fi |
| 2840 |
;; |
| 2841 |
*) |
| 2842 |
lt_cv_prog_cc_pic='-fPIC' |
| 2843 |
;; |
| 2844 |
esac |
| 2845 |
else |
| 2846 |
# PORTME Check for PIC flags for the system compiler. |
| 2847 |
case $host_os in |
| 2848 |
aix3* | aix4* | aix5*) |
| 2849 |
# All AIX code is PIC. |
| 2850 |
if test "$host_cpu" = ia64; then |
| 2851 |
# AIX 5 now supports IA64 processor |
| 2852 |
lt_cv_prog_cc_static='-Bstatic' |
| 2853 |
lt_cv_prog_cc_wl='-Wl,' |
| 2854 |
else |
| 2855 |
lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp' |
| 2856 |
fi |
| 2857 |
;; |
| 2858 |
|
| 2859 |
hpux9* | hpux10* | hpux11*) |
| 2860 |
# Is there a better lt_cv_prog_cc_static that works with the bundled CC? |
| 2861 |
lt_cv_prog_cc_wl='-Wl,' |
| 2862 |
lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive" |
| 2863 |
lt_cv_prog_cc_pic='+Z' |
| 2864 |
;; |
| 2865 |
|
| 2866 |
irix5* | irix6*) |
| 2867 |
lt_cv_prog_cc_wl='-Wl,' |
| 2868 |
lt_cv_prog_cc_static='-non_shared' |
| 2869 |
# PIC (with -KPIC) is the default. |
| 2870 |
;; |
| 2871 |
|
| 2872 |
cygwin* | mingw* | pw32* | os2*) |
| 2873 |
# This hack is so that the source file can tell whether it is being |
| 2874 |
# built for inclusion in a dll (and should export symbols for example). |
| 2875 |
lt_cv_prog_cc_pic='-DDLL_EXPORT' |
| 2876 |
;; |
| 2877 |
|
| 2878 |
newsos6) |
| 2879 |
lt_cv_prog_cc_pic='-KPIC' |
| 2880 |
lt_cv_prog_cc_static='-Bstatic' |
| 2881 |
;; |
| 2882 |
|
| 2883 |
osf3* | osf4* | osf5*) |
| 2884 |
# All OSF/1 code is PIC. |
| 2885 |
lt_cv_prog_cc_wl='-Wl,' |
| 2886 |
lt_cv_prog_cc_static='-non_shared' |
| 2887 |
;; |
| 2888 |
|
| 2889 |
sco3.2v5*) |
| 2890 |
lt_cv_prog_cc_pic='-Kpic' |
| 2891 |
lt_cv_prog_cc_static='-dn' |
| 2892 |
lt_cv_prog_cc_shlib='-belf' |
| 2893 |
;; |
| 2894 |
|
| 2895 |
solaris*) |
| 2896 |
lt_cv_prog_cc_pic='-KPIC' |
| 2897 |
lt_cv_prog_cc_static='-Bstatic' |
| 2898 |
lt_cv_prog_cc_wl='-Wl,' |
| 2899 |
;; |
| 2900 |
|
| 2901 |
sunos4*) |
| 2902 |
lt_cv_prog_cc_pic='-PIC' |
| 2903 |
lt_cv_prog_cc_static='-Bstatic' |
| 2904 |
lt_cv_prog_cc_wl='-Qoption ld ' |
| 2905 |
;; |
| 2906 |
|
| 2907 |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 2908 |
lt_cv_prog_cc_pic='-KPIC' |
| 2909 |
lt_cv_prog_cc_static='-Bstatic' |
| 2910 |
if test "x$host_vendor" = xsni; then |
| 2911 |
lt_cv_prog_cc_wl='-LD' |
| 2912 |
else |
| 2913 |
lt_cv_prog_cc_wl='-Wl,' |
| 2914 |
fi |
| 2915 |
;; |
| 2916 |
|
| 2917 |
uts4*) |
| 2918 |
lt_cv_prog_cc_pic='-pic' |
| 2919 |
lt_cv_prog_cc_static='-Bstatic' |
| 2920 |
;; |
| 2921 |
|
| 2922 |
sysv4*MP*) |
| 2923 |
if test -d /usr/nec ;then |
| 2924 |
lt_cv_prog_cc_pic='-Kconform_pic' |
| 2925 |
lt_cv_prog_cc_static='-Bstatic' |
| 2926 |
fi |
| 2927 |
;; |
| 2928 |
|
| 2929 |
*) |
| 2930 |
lt_cv_prog_cc_can_build_shared=no |
| 2931 |
;; |
| 2932 |
esac |
| 2933 |
fi |
| 2934 |
|
| 2935 |
fi |
| 2936 |
|
| 2937 |
if test -z "$lt_cv_prog_cc_pic"; then |
| 2938 |
echo "$ac_t""none" 1>&6 |
| 2939 |
else |
| 2940 |
echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6 |
| 2941 |
|
| 2942 |
# Check to make sure the pic_flag actually works. |
| 2943 |
echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6 |
| 2944 |
echo "configure:2945: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5 |
| 2945 |
if eval "test \"`echo '$''{'lt_cv_prog_cc_pic_works'+set}'`\" = set"; then |
| 2946 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 2947 |
else |
| 2948 |
save_CFLAGS="$CFLAGS" |
| 2949 |
CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC" |
| 2950 |
cat > conftest.$ac_ext <<EOF |
| 2951 |
#line 2952 "configure" |
| 2952 |
#include "confdefs.h" |
| 2953 |
|
| 2954 |
int main() { |
| 2955 |
|
| 2956 |
; return 0; } |
| 2957 |
EOF |
| 2958 |
if { (eval echo configure:2959: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 2959 |
rm -rf conftest* |
| 2960 |
case $host_os in |
| 2961 |
hpux9* | hpux10* | hpux11*) |
| 2962 |
# On HP-UX, both CC and GCC only warn that PIC is supported... then |
| 2963 |
# they create non-PIC objects. So, if there were any warnings, we |
| 2964 |
# assume that PIC is not supported. |
| 2965 |
if test -s conftest.err; then |
| 2966 |
lt_cv_prog_cc_pic_works=no |
| 2967 |
else |
| 2968 |
lt_cv_prog_cc_pic_works=yes |
| 2969 |
fi |
| 2970 |
;; |
| 2971 |
*) |
| 2972 |
lt_cv_prog_cc_pic_works=yes |
| 2973 |
;; |
| 2974 |
esac |
| 2975 |
|
| 2976 |
else |
| 2977 |
echo "configure: failed program was:" >&5 |
| 2978 |
cat conftest.$ac_ext >&5 |
| 2979 |
rm -rf conftest* |
| 2980 |
lt_cv_prog_cc_pic_works=no |
| 2981 |
|
| 2982 |
fi |
| 2983 |
rm -f conftest* |
| 2984 |
CFLAGS="$save_CFLAGS" |
| 2985 |
|
| 2986 |
fi |
| 2987 |
|
| 2988 |
|
| 2989 |
if test "X$lt_cv_prog_cc_pic_works" = Xno; then |
| 2990 |
lt_cv_prog_cc_pic= |
| 2991 |
lt_cv_prog_cc_can_build_shared=no |
| 2992 |
else |
| 2993 |
lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic" |
| 2994 |
fi |
| 2995 |
|
| 2996 |
echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6 |
| 2997 |
fi |
| 2998 |
|
| 2999 |
# Check for any special shared library compilation flags. |
| 3000 |
if test -n "$lt_cv_prog_cc_shlib"; then |
| 3001 |
echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2 |
| 3002 |
if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then : |
| 3003 |
else |
| 3004 |
echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2 |
| 3005 |
lt_cv_prog_cc_can_build_shared=no |
| 3006 |
fi |
| 3007 |
fi |
| 3008 |
|
| 3009 |
echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6 |
| 3010 |
echo "configure:3011: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5 |
| 3011 |
if eval "test \"`echo '$''{'lt_cv_prog_cc_static_works'+set}'`\" = set"; then |
| 3012 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 3013 |
else |
| 3014 |
lt_cv_prog_cc_static_works=no |
| 3015 |
save_LDFLAGS="$LDFLAGS" |
| 3016 |
LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static" |
| 3017 |
cat > conftest.$ac_ext <<EOF |
| 3018 |
#line 3019 "configure" |
| 3019 |
#include "confdefs.h" |
| 3020 |
|
| 3021 |
int main() { |
| 3022 |
|
| 3023 |
; return 0; } |
| 3024 |
EOF |
| 3025 |
if { (eval echo configure:3026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3026 |
rm -rf conftest* |
| 3027 |
lt_cv_prog_cc_static_works=yes |
| 3028 |
else |
| 3029 |
echo "configure: failed program was:" >&5 |
| 3030 |
cat conftest.$ac_ext >&5 |
| 3031 |
fi |
| 3032 |
rm -f conftest* |
| 3033 |
LDFLAGS="$save_LDFLAGS" |
| 3034 |
|
| 3035 |
fi |
| 3036 |
|
| 3037 |
|
| 3038 |
# Belt *and* braces to stop my trousers falling down: |
| 3039 |
test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static= |
| 3040 |
echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6 |
| 3041 |
|
| 3042 |
pic_flag="$lt_cv_prog_cc_pic" |
| 3043 |
special_shlib_compile_flags="$lt_cv_prog_cc_shlib" |
| 3044 |
wl="$lt_cv_prog_cc_wl" |
| 3045 |
link_static_flag="$lt_cv_prog_cc_static" |
| 3046 |
no_builtin_flag="$lt_cv_prog_cc_no_builtin" |
| 3047 |
can_build_shared="$lt_cv_prog_cc_can_build_shared" |
| 3048 |
|
| 3049 |
|
| 3050 |
# Check to see if options -o and -c are simultaneously supported by compiler |
| 3051 |
echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6 |
| 3052 |
echo "configure:3053: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 3053 |
if eval "test \"`echo '$''{'lt_cv_compiler_c_o'+set}'`\" = set"; then |
| 3054 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 3055 |
else |
| 3056 |
|
| 3057 |
$rm -r conftest 2>/dev/null |
| 3058 |
mkdir conftest |
| 3059 |
cd conftest |
| 3060 |
echo "int some_variable = 0;" > conftest.$ac_ext |
| 3061 |
mkdir out |
| 3062 |
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers |
| 3063 |
# that will create temporary files in the current directory regardless of |
| 3064 |
# the output directory. Thus, making CWD read-only will cause this test |
| 3065 |
# to fail, enabling locking or at least warning the user not to do parallel |
| 3066 |
# builds. |
| 3067 |
chmod -w . |
| 3068 |
save_CFLAGS="$CFLAGS" |
| 3069 |
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" |
| 3070 |
compiler_c_o=no |
| 3071 |
if { (eval echo configure:3072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then |
| 3072 |
# The compiler can only warn and ignore the option if not recognized |
| 3073 |
# So say no if there are warnings |
| 3074 |
if test -s out/conftest.err; then |
| 3075 |
lt_cv_compiler_c_o=no |
| 3076 |
else |
| 3077 |
lt_cv_compiler_c_o=yes |
| 3078 |
fi |
| 3079 |
else |
| 3080 |
# Append any errors to the config.log. |
| 3081 |
cat out/conftest.err 1>&5 |
| 3082 |
lt_cv_compiler_c_o=no |
| 3083 |
fi |
| 3084 |
CFLAGS="$save_CFLAGS" |
| 3085 |
chmod u+w . |
| 3086 |
$rm conftest* out/* |
| 3087 |
rmdir out |
| 3088 |
cd .. |
| 3089 |
rmdir conftest |
| 3090 |
$rm -r conftest 2>/dev/null |
| 3091 |
|
| 3092 |
fi |
| 3093 |
|
| 3094 |
compiler_c_o=$lt_cv_compiler_c_o |
| 3095 |
echo "$ac_t""$compiler_c_o" 1>&6 |
| 3096 |
|
| 3097 |
if test x"$compiler_c_o" = x"yes"; then |
| 3098 |
# Check to see if we can write to a .lo |
| 3099 |
echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6 |
| 3100 |
echo "configure:3101: checking if $compiler supports -c -o file.lo" >&5 |
| 3101 |
if eval "test \"`echo '$''{'lt_cv_compiler_o_lo'+set}'`\" = set"; then |
| 3102 |
echo $ac_n "(cached) $ac_c" 1>&6 |
| 3103 |
else |
| 3104 |
|
| 3105 |
lt_cv_compiler_o_lo=no |
| 3106 |
save_CFLAGS="$CFLAGS" |
| 3107 |
CFLAGS="$CFLAGS -c -o conftest.lo" |
| 3108 |
cat > conftest.$ac_ext <<EOF |
| 3109 |
#line 3110 "configure" |
| 3110 |
#include "confdefs.h" |
| 3111 |
|
| 3112 |
int main() { |
| 3113 |
int some_variable = 0; |
| 3114 |
; return 0; } |
| 3115 |
EOF |
| 3116 |
if { (eval echo configure:3117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 3117 |
rm -rf conftest* |
| 3118 |
# The compiler can only warn and ignore the option if not recognized |
| 3119 |
# So say no if there are warnings |
| 3120 |
if test -s conftest.err; then |
| 3121 |
lt_cv_compiler_o_lo=no |
| 3122 |
else |
| 3123 |
lt_cv_compiler_o_lo=yes |
| 3124 |
fi |
| 3125 |
|
| 3126 |
else |
| 3127 |
echo "configure: failed program was:" >&5 |
| 3128 |
cat conftest.$ac_ext >&5 |
| 3129 |
fi |
| 3130 |
rm -f conftest* |
| 3131 |
CFLAGS="$save_CFLAGS" |
| 3132 |
|
| 3133 |
fi |
| 3134 |
|
| 3135 |
compiler_o_lo=$lt_cv_compiler_o_lo |
| 3136 |
echo "$ac_t""$compiler_c_lo" 1>&6 |
| 3137 |
else |
| 3138 |
compiler_o_lo=no |
| 3139 |
fi |
| 3140 |
|
| 3141 |
# Check to see if we can do hard links to lock some files if needed |
| 3142 |
hard_links="nottested" |
| 3143 |
if test "$compiler_c_o" = no && test "$need_locks" != no; then |
| 3144 |
# do not overwrite the value of need_locks provided by the user |
| 3145 |
echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6 |
| 3146 |
echo "configure:3147: checking if we can lock with hard links" >&5 |
| 3147 |
hard_links=yes |
| 3148 |
$rm conftest* |
| 3149 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 3150 |
touch conftest.a |
| 3151 |
ln conftest.a conftest.b 2>&5 || hard_links=no |
| 3152 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 3153 |
echo "$ac_t""$hard_links" 1>&6 |
| 3154 |
if test "$hard_links" = no; then |
| 3155 |
echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2 |
| 3156 |
need_locks=warn |
| 3157 |
fi |
| 3158 |
else |
| 3159 |
need_locks=no |
| 3160 |
fi |
| 3161 |
|
| 3162 |
if test "$GCC" = yes; then |
| 3163 |
# Check to see if options -fno-rtti -fno-exceptions are supported by compiler |
| 3164 |
echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6 |
| 3165 |
echo "configure:3166: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 3166 |
echo "int some_variable = 0;" > conftest.$ac_ext |
| 3167 |
save_CFLAGS="$CFLAGS" |
| 3168 |
CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" |
| 3169 |
compiler_rtti_exceptions=no |
| 3170 |
cat > conftest.$ac_ext <<EOF |
| 3171 |
#line 3172 "configure" |
| 3172 |
#include "confdefs.h" |
| 3173 |
|
| 3174 |
int main() { |
| 3175 |
int some_variable = 0; |
| 3176 |
; return 0; } |
| 3177 |
EOF |
| 3178 |
if { (eval echo configure:3179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 3179 |
rm -rf conftest* |
| 3180 |
# The compiler can only warn and ignore the option if not recognized |
| 3181 |
# So say no if there are warnings |
| 3182 |
if test -s conftest.err; then |
| 3183 |
compiler_rtti_exceptions=no |
| 3184 |
else |
| 3185 |
compiler_rtti_exceptions=yes |
| 3186 |
fi |
| 3187 |
|
| 3188 |
else |
| 3189 |
echo "configure: failed program was:" >&5 |
| 3190 |
cat conftest.$ac_ext >&5 |
| 3191 |
fi |
| 3192 |
rm -f conftest* |
| 3193 |
CFLAGS="$save_CFLAGS" |
| 3194 |
echo "$ac_t""$compiler_rtti_exceptions" 1>&6 |
| 3195 |
|
| 3196 |
if test "$compiler_rtti_exceptions" = "yes"; then |
| 3197 |
no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions' |
| 3198 |
else |
| 3199 |
no_builtin_flag=' -fno-builtin' |
| 3200 |
fi |
| 3201 |
fi |
| 3202 |
|
| 3203 |
# See if the linker supports building shared libraries. |
| 3204 |
echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6 |
| 3205 |
echo "configure:3206: checking whether the linker ($LD) supports shared libraries" >&5 |
| 3206 |
|
| 3207 |
allow_undefined_flag= |
| 3208 |
no_undefined_flag= |
| 3209 |
need_lib_prefix=unknown |
| 3210 |
need_version=unknown |
| 3211 |
# when you set need_version to no, make sure it does not cause -set_version |
| 3212 |
# flags to be left without arguments |
| 3213 |
archive_cmds= |
| 3214 |
archive_expsym_cmds= |
| 3215 |
old_archive_from_new_cmds= |
| 3216 |
old_archive_from_expsyms_cmds= |
| 3217 |
export_dynamic_flag_spec= |
| 3218 |
whole_archive_flag_spec= |
| 3219 |
thread_safe_flag_spec= |
| 3220 |
hardcode_into_libs=no |
| 3221 |
hardcode_libdir_flag_spec= |
| 3222 |
hardcode_libdir_separator= |
| 3223 |
hardcode_direct=no |
| 3224 |
hardcode_minus_L=no |
| 3225 |
hardcode_shlibpath_var=unsupported |
| 3226 |
runpath_var= |
| 3227 |
link_all_deplibs=unknown |
| 3228 |
always_export_symbols=no |
| 3229 |
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 3230 |
# include_expsyms should be a list of space-separated symbols to be *always* |
| 3231 |
# included in the symbol list |
| 3232 |
include_expsyms= |
| 3233 |
# exclude_expsyms can be an egrep regular expression of symbols to exclude |
| 3234 |
# it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 3235 |
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 3236 |
# as well as any symbol that contains `d'. |
| 3237 |
exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
| 3238 |
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 3239 |
# platforms (ab)use it in PIC code, but their linkers get confused if |
| 3240 |
# the symbol is explicitly referenced. Since portable code cannot |
| 3241 |
# rely on this symbol name, it's probably fine to never include it in |
| 3242 |
# preloaded symbol tables. |
| 3243 |
extract_expsyms_cmds= |
| 3244 |
|
| 3245 |
case $host_os in |
| 3246 |
cygwin* | mingw* | pw32* ) |
| 3247 |
# FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 3248 |
# When not using gcc, we currently assume that we are using |
| 3249 |
# Microsoft Visual C++. |
| 3250 |
if test "$GCC" != yes; then |
| 3251 |
with_gnu_ld=no |
| 3252 |
fi |
| 3253 |
;; |
| 3254 |
|
| 3255 |
esac |
| 3256 |
|
| 3257 |
ld_shlibs=yes |
| 3258 |
if test "$with_gnu_ld" = yes; then |
| 3259 |
# If archive_cmds runs LD, not CC, wlarc should be empty |
| 3260 |
wlarc='${wl}' |
| 3261 |
|
| 3262 |
# See if GNU ld supports shared libraries. |
| 3263 |
case $host_os in |
| 3264 |
aix3* | aix4* | aix5*) |
| 3265 |
# On AIX, the GNU linker is very broken |
| 3266 |
# Note:Check GNU linker on AIX 5-IA64 when/if it becomes available. |
| 3267 |
ld_shlibs=no |
| 3268 |
cat <<EOF 1>&2 |
| 3269 |
|
| 3270 |
*** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 3271 |
*** to be unable to reliably create shared libraries on AIX. |
| 3272 |
*** Therefore, libtool is disabling shared libraries support. If you |
| 3273 |
*** really care for shared libraries, you may want to modify your PATH |
| 3274 |
*** so that a non-GNU linker is found, and then restart. |
| 3275 |
|
| 3276 |
EOF |
| 3277 |
;; |
| 3278 |
|
| 3279 |
amigaos*) |
| 3280 |
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)' |
| 3281 |
hardcode_libdir_flag_spec='-L$libdir' |
| 3282 |
hardcode_minus_L=yes |
| 3283 |
|
| 3284 |
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 3285 |
# that the semantics of dynamic libraries on AmigaOS, at least up |
| 3286 |
# to version 4, is to share data among multiple programs linked |
| 3287 |
# with the same dynamic library. Since this doesn't match the |
| 3288 |
# behavior of shared libraries on other platforms, we can use |
| 3289 |
# them. |
| 3290 |
ld_shlibs=no |
| 3291 |
;; |
| 3292 |
|
| 3293 |
beos*) |
| 3294 |
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
| 3295 |
allow_undefined_flag=unsupported |
| 3296 |
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 3297 |
# support --undefined. This deserves some investigation. FIXME |
| 3298 |
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 3299 |
else |
| 3300 |
ld_shlibs=no |
| 3301 |
fi |
| 3302 |
;; |
| 3303 |
|
| 3304 |
cygwin* | mingw* | pw32*) |
| 3305 |
# hardcode_libdir_flag_spec is actually meaningless, as there is |
| 3306 |
# no search path for DLLs. |
| 3307 |
hardcode_libdir_flag_spec='-L$libdir' |
| 3308 |
allow_undefined_flag=unsupported |
| 3309 |
always_export_symbols=yes |
| 3310 |
|
| 3311 |
extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ |
| 3312 |
sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ |
| 3313 |
test -f $output_objdir/impgen.exe || (cd $output_objdir && \ |
| 3314 |
if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ |
| 3315 |
else $CC -o impgen impgen.c ; fi)~ |
| 3316 |
$output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' |
| 3317 |
|
| 3318 |
old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' |
| 3319 |
|
| 3320 |
# cygwin and mingw dlls have different entry points and sets of symbols |
| 3321 |
# to exclude. |
| 3322 |
# FIXME: what about values for MSVC? |
| 3323 |
dll_entry=__cygwin_dll_entry@12 |
| 3324 |
dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ |
| 3325 |
case $host_os in |
| 3326 |
mingw*) |
| 3327 |
# mingw values |
| 3328 |
dll_entry=_DllMainCRTStartup@12 |
| 3329 |
dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ |
| 3330 |
;; |
| 3331 |
esac |
| 3332 |
|
| 3333 |
# mingw and cygwin differ, and it's simplest to just exclude the union |
| 3334 |
# of the two symbol sets. |
| 3335 |
dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 |
| 3336 |
|
| 3337 |
# recent cygwin and mingw systems supply a stub DllMain which the user |
| 3338 |
# can override, but on older systems we have to supply one (in ltdll.c) |
| 3339 |
if test "x$lt_cv_need_dllmain" = "xyes"; then |
| 3340 |
ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " |
| 3341 |
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~ |
| 3342 |
test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' |
| 3343 |
else |
| 3344 |
ltdll_obj= |
| 3345 |
ltdll_cmds= |
| 3346 |
fi |
| 3347 |
|
| 3348 |
# Extract the symbol export list from an `--export-all' def file, |
| 3349 |
# then regenerate the def file from the symbol export list, so that |
| 3350 |
# the compiled dll only exports the symbol export list. |
| 3351 |
# Be careful not to strip the DATA tag left be newer dlltools. |
| 3352 |
export_symbols_cmds="$ltdll_cmds"' |
| 3353 |
$DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ |
| 3354 |
sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' |
| 3355 |
|
| 3356 |
# If the export-symbols file already is a .def file (1st line |
| 3357 |
# is EXPORTS), use it as is. |
| 3358 |
# If DATA tags from a recent dlltool are present, honour them! |
| 3359 |
archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then |
| 3360 |
cp $export_symbols $output_objdir/$soname-def; |
| 3361 |
else |
| 3362 |
echo EXPORTS > $output_objdir/$soname-def; |
| 3363 |
_lt_hint=1; |
| 3364 |
cat $export_symbols | while read symbol; do |
| 3365 |
set dummy \$symbol; |
| 3366 |
case \$# in |
| 3367 |
2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; |
| 3368 |
*) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;; |
| 3369 |
esac; |
| 3370 |
_lt_hint=`expr 1 + \$_lt_hint`; |
| 3371 |
done; |
| 3372 |
fi~ |
| 3373 |
'"$ltdll_cmds"' |
| 3374 |
$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~ |
| 3375 |
$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~ |
| 3376 |
$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~ |
| 3377 |
$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~ |
| 3378 |
$CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' |
| 3379 |
;; |
| 3380 |
|
| 3381 |
netbsd*) |
| 3382 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 3383 |
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 3384 |
wlarc= |
| 3385 |
else |
| 3386 |
archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 3387 |
archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 3388 |
fi |
| 3389 |
;; |
| 3390 |
|
| 3391 |
solaris* | sysv5*) |
| 3392 |
if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then |
| 3393 |
ld_shlibs=no |
| 3394 |
cat <<EOF 1>&2 |
| 3395 |
|
| 3396 |
*** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 3397 |
*** create shared libraries on Solaris systems. Therefore, libtool |
| 3398 |
*** is disabling shared libraries support. We urge you to upgrade GNU |
| 3399 |
*** binutils to release 2.9.1 or newer. Another option is to modify |
| 3400 |
*** your PATH or compiler configuration so that the native linker is |
| 3401 |
*** used, and then restart. |
| 3402 |
|
| 3403 |
EOF |
| 3404 |
elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
| 3405 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 3406 |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 3407 |
else |
| 3408 |
ld_shlibs=no |
| 3409 |
fi |
| 3410 |
;; |
| 3411 |
|
| 3412 |
sunos4*) |
| 3413 |
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 3414 |
wlarc= |
| 3415 |
hardcode_direct=yes |
| 3416 |
hardcode_shlibpath_var=no |
| 3417 |
;; |
| 3418 |
|
| 3419 |
*) |
| 3420 |
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
| 3421 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 3422 |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 3423 |
else |
| 3424 |
ld_shlibs=no |
| 3425 |
fi |
| 3426 |
;; |
| 3427 |
esac |
| 3428 |
|
| 3429 |
if test "$ld_shlibs" = yes; then |
| 3430 |
runpath_var=LD_RUN_PATH |
| 3431 |
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
| 3432 |
export_dynamic_flag_spec='${wl}--export-dynamic' |
| 3433 |
case $host_os in |
| 3434 |
cygwin* | mingw* | pw32*) |
| 3435 |
# dlltool doesn't understand --whole-archive et. al. |
| 3436 |
whole_archive_flag_spec= |
| 3437 |
;; |
| 3438 |
*) |
| 3439 |
# ancient GNU ld didn't support --whole-archive et. al. |
| 3440 |
if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then |
| 3441 |
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 3442 |
else |
| 3443 |
whole_archive_flag_spec= |
| 3444 |
fi |
| 3445 |
;; |
| 3446 |
esac |
| 3447 |
fi |
| 3448 |
else |
| 3449 |
# PORTME fill in a description of your system's linker (not GNU ld) |
| 3450 |
case $host_os in |
| 3451 |
aix3*) |
| 3452 |
allow_undefined_flag=unsupported |
| 3453 |
always_export_symbols=yes |
| 3454 |
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' |
| 3455 |
# Note: this linker hardcodes the directories in LIBPATH if there |
| 3456 |
# are no directories specified by -L. |
| 3457 |
hardcode_minus_L=yes |
| 3458 |
if test "$GCC" = yes && test -z "$link_static_flag"; then |
| 3459 |
# Neither direct hardcoding nor static linking is supported with a |
| 3460 |
# broken collect2. |
| 3461 |
hardcode_direct=unsupported |
| 3462 |
fi |
| 3463 |
;; |
| 3464 |
|
| 3465 |
aix4* | aix5*) |
| 3466 |
# When large executables or shared objects are built, AIX ld can |
| 3467 |
# have problems creating the table of contents. If linking a library |
| 3468 |
# or program results in "error TOC overflow" add -mminimal-toc to |
| 3469 |
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 3470 |
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 3471 |
|
| 3472 |
archive_cmds='' |
| 3473 |
hardcode_libdir_separator=':' |
| 3474 |
if test "$GCC" = yes; then |
| 3475 |
collect2name=`${CC} -print-prog-name=collect2` |
| 3476 |
if test -f "$collect2name" && \ |
| 3477 |
strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 3478 |
then |
| 3479 |
# We have reworked collect2 |
| 3480 |
hardcode_direct=yes |
| 3481 |
else |
| 3482 |
# We have old collect2 |
| 3483 |
hardcode_direct=unsupported |
| 3484 |
# It fails to find uninstalled libraries when the uninstalled |
| 3485 |
# path is not listed in the libpath. Setting hardcode_minus_L |
| 3486 |
# to unsupported forces relinking |
| 3487 |
hardcode_minus_L=yes |
| 3488 |
hardcode_libdir_flag_spec='-L$libdir' |
| 3489 |
hardcode_libdir_separator= |
| 3490 |
fi |
| 3491 |
shared_flag='-shared' |
| 3492 |
else |
| 3493 |
if test "$host_cpu" = ia64; then |
| 3494 |
shared_flag='-G' |
| 3495 |
else |
| 3496 |
shared_flag='${wl}-bM:SRE' |
| 3497 |
fi |
| 3498 |
hardcode_direct=yes |
| 3499 |
fi |
| 3500 |
|
| 3501 |
if test "$host_cpu" = ia64; then |
| 3502 |
# On IA64, the linker does run time linking by default, so we don't |
| 3503 |
# have to do anything special. |
| 3504 |
aix_use_runtimelinking=no |
| 3505 |
exp_sym_flag='-Bexport' |
| 3506 |
no_entry_flag="" |
| 3507 |
else |
| 3508 |
# Test if we are trying to use run time linking, or normal AIX style linking. |
| 3509 |
# If -brtl is somewhere in LDFLAGS, we need to do run time linking. |
| 3510 |
aix_use_runtimelinking=no |
| 3511 |
for ld_flag in $LDFLAGS; do |
| 3512 |
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl" ); then |
| 3513 |
aix_use_runtimelinking=yes |
| 3514 |
break |
| 3515 |
fi |
| 3516 |
done |
| 3517 |
exp_sym_flag='-bexport' |
| 3518 |
no_entry_flag='-bnoentry' |
| 3519 |
fi |
| 3520 |
# It seems that -bexpall can do strange things, so it is better to |
| 3521 |
# generate a list of symbols to export. |
| 3522 |
always_export_symbols=yes |
| 3523 |
if test "$aix_use_runtimelinking" = yes; then |
| 3524 |
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib' |
| 3525 |
allow_undefined_flag=' -Wl,-G' |
| 3526 |
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" |
| 3527 |
else |
| 3528 |
if test "$host_cpu" = ia64; then |
| 3529 |
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 3530 |
allow_undefined_flag="-znodefs" |
| 3531 |
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" |
| 3532 |
else |
| 3533 |
hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib' |
| 3534 |
# Warning - without using the other run time loading flags, -berok will |
| 3535 |
# link without error, but may produce a broken library. |
| 3536 |
allow_undefined_flag='${wl}-berok" |
| 3537 |
# This is a bit strange, but is similar to how AIX traditionally builds |
| 3538 |
# it's shared libraries. |
| 3539 |
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' |
| 3540 |
fi |
| 3541 |
fi |
| 3542 |
;; |
| 3543 |
|
| 3544 |
amigaos*) |
| 3545 |
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)' |
| 3546 |
hardcode_libdir_flag_spec='-L$libdir' |
| 3547 |
hardcode_minus_L=yes |
| 3548 |
# see comment about different semantics on the GNU ld section |
| 3549 |
ld_shlibs=no |
| 3550 |
;; |
| 3551 |
|
| 3552 |
cygwin* | mingw* | pw32*) |
| 3553 |
# When not using gcc, we currently assume that we are using |
| 3554 |
# Microsoft Visual C++. |
| 3555 |
# hardcode_libdir_flag_spec is actually meaningless, as there is |
| 3556 |
# no search path for DLLs. |
| 3557 |
hardcode_libdir_flag_spec=' ' |
| 3558 |
allow_undefined_flag=unsupported |
| 3559 |
# Tell ltmain to make .lib files, not .a files. |
| 3560 |
libext=lib |
| 3561 |
# FIXME: Setting linknames here is a bad hack. |
| 3562 |
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 3563 |
# The linker will automatically build a .lib file if we build a DLL. |
| 3564 |
old_archive_from_new_cmds='true' |
| 3565 |
# FIXME: Should let the user specify the lib program. |
| 3566 |
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 3567 |
fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 3568 |
;; |
| 3569 |
|
| 3570 |
darwin* | rhapsody*) |
| 3571 |
allow_undefined_flag='-undefined suppress' |
| 3572 |
# FIXME: Relying on posixy $() will cause problems for |
| 3573 |
# cross-compilation, but unfortunately the echo tests do not |
| 3574 |
# yet detect zsh echo's removal of \ escapes. |
| 3575 |
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)' |
| 3576 |
# We need to add '_' to the symbols in $export_symbols first |
| 3577 |
#archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols' |
| 3578 |
hardcode_direct=yes |
| 3579 |
hardcode_shlibpath_var=no |
| 3580 |
whole_archive_flag_spec='-all_load $convenience' |
| 3581 |
;; |
| 3582 |
|
| 3583 |
freebsd1*) |
| 3584 |
ld_shlibs=no |
| 3585 |
;; |
| 3586 |
|
| 3587 |
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 3588 |
# support. Future versions do this automatically, but an explicit c++rt0.o |
| 3589 |
# does not break anything, and helps significantly (at the cost of a little |
| 3590 |
# extra space). |
| 3591 |
freebsd2.2*) |
| 3592 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 3593 |
hardcode_libdir_flag_spec='-R$libdir' |
| 3594 |
hardcode_direct=yes |
| 3595 |
hardcode_shlibpath_var=no |
| 3596 |
;; |
| 3597 |
|
| 3598 |
# Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 3599 |
freebsd2*) |
| 3600 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 3601 |
hardcode_direct=yes |
| 3602 |
hardcode_minus_L=yes |
| 3603 |
hardcode_shlibpath_var=no |
| 3604 |
;; |
| 3605 |
|
| 3606 |
# FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 3607 |
freebsd*) |
| 3608 |
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 3609 |
hardcode_libdir_flag_spec='-R$libdir' |
| 3610 |
hardcode_direct=yes |
| 3611 |
hardcode_shlibpath_var=no |
| 3612 |
;; |
| 3613 |
|
| 3614 |
hpux9* | hpux10* | hpux11*) |
| 3615 |
case $host_os in |
| 3616 |
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' ;; |
| 3617 |
*) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; |
| 3618 |
esac |
| 3619 |
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 3620 |
hardcode_libdir_separator=: |
| 3621 |
hardcode_direct=yes |
| 3622 |
hardcode_minus_L=yes # Not in the search PATH, but as the default |
| 3623 |
# location of the library. |
| 3624 |
export_dynamic_flag_spec='${wl}-E' |
| 3625 |
;; |
| 3626 |
|
| 3627 |
irix5* | irix6*) |
| 3628 |
if test "$GCC" = yes; then |
| 3629 |
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' |
| 3630 |
else |
| 3631 |
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' |
| 3632 |
fi |
| 3633 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 3634 |
hardcode_libdir_separator=: |
| 3635 |
link_all_deplibs=yes |
| 3636 |
;; |
| 3637 |
|
| 3638 |
netbsd*) |
| 3639 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 3640 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 3641 |
else |
| 3642 |
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 3643 |
fi |
| 3644 |
hardcode_libdir_flag_spec='-R$libdir' |
| 3645 |
hardcode_direct=yes |
| 3646 |
hardcode_shlibpath_var=no |
| 3647 |
;; |
| 3648 |
|
| 3649 |
newsos6) |
| 3650 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts' |
| 3651 |
hardcode_direct=yes |
| 3652 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 3653 |
hardcode_libdir_separator=: |
| 3654 |
hardcode_shlibpath_var=no |
| 3655 |
;; |
| 3656 |
|
| 3657 |
openbsd*) |
| 3658 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 3659 |
hardcode_libdir_flag_spec='-R$libdir' |
| 3660 |
hardcode_direct=yes |
| 3661 |
hardcode_shlibpath_var=no |
| 3662 |
;; |
| 3663 |
|
| 3664 |
os2*) |
| 3665 |
hardcode_libdir_flag_spec='-L$libdir' |
| 3666 |
hardcode_minus_L=yes |
| 3667 |
allow_undefined_flag=unsupported |
| 3668 |
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' |
| 3669 |
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 3670 |
;; |
| 3671 |
|
| 3672
| |