| 1 |
#! /bin/sh |
| 2 |
# From configure.ac Id: configure.ac 1751 2013-01-16 18:30:52Z michael . |
| 3 |
# Guess values for system-dependent variables and create Makefiles. |
| 4 |
# Generated by GNU Autoconf 2.69 for ircd-hybrid TRUNK. |
| 5 |
# |
| 6 |
# Report bugs to <bugs@ircd-hybrid.org>. |
| 7 |
# |
| 8 |
# |
| 9 |
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
| 10 |
# |
| 11 |
# |
| 12 |
# This configure script is free software; the Free Software Foundation |
| 13 |
# gives unlimited permission to copy, distribute and modify it. |
| 14 |
## -------------------- ## |
| 15 |
## M4sh Initialization. ## |
| 16 |
## -------------------- ## |
| 17 |
|
| 18 |
# Be more Bourne compatible |
| 19 |
DUALCASE=1; export DUALCASE # for MKS sh |
| 20 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
| 21 |
emulate sh |
| 22 |
NULLCMD=: |
| 23 |
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 24 |
# is contrary to our usage. Disable this feature. |
| 25 |
alias -g '${1+"$@"}'='"$@"' |
| 26 |
setopt NO_GLOB_SUBST |
| 27 |
else |
| 28 |
case `(set -o) 2>/dev/null` in #( |
| 29 |
*posix*) : |
| 30 |
set -o posix ;; #( |
| 31 |
*) : |
| 32 |
;; |
| 33 |
esac |
| 34 |
fi |
| 35 |
|
| 36 |
|
| 37 |
as_nl=' |
| 38 |
' |
| 39 |
export as_nl |
| 40 |
# Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 41 |
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 42 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 43 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 44 |
# Prefer a ksh shell builtin over an external printf program on Solaris, |
| 45 |
# but without wasting forks for bash or zsh. |
| 46 |
if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 47 |
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 48 |
as_echo='print -r --' |
| 49 |
as_echo_n='print -rn --' |
| 50 |
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 51 |
as_echo='printf %s\n' |
| 52 |
as_echo_n='printf %s' |
| 53 |
else |
| 54 |
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 55 |
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 56 |
as_echo_n='/usr/ucb/echo -n' |
| 57 |
else |
| 58 |
as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 59 |
as_echo_n_body='eval |
| 60 |
arg=$1; |
| 61 |
case $arg in #( |
| 62 |
*"$as_nl"*) |
| 63 |
expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 64 |
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 65 |
esac; |
| 66 |
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 67 |
' |
| 68 |
export as_echo_n_body |
| 69 |
as_echo_n='sh -c $as_echo_n_body as_echo' |
| 70 |
fi |
| 71 |
export as_echo_body |
| 72 |
as_echo='sh -c $as_echo_body as_echo' |
| 73 |
fi |
| 74 |
|
| 75 |
# The user is always right. |
| 76 |
if test "${PATH_SEPARATOR+set}" != set; then |
| 77 |
PATH_SEPARATOR=: |
| 78 |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 79 |
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 80 |
PATH_SEPARATOR=';' |
| 81 |
} |
| 82 |
fi |
| 83 |
|
| 84 |
|
| 85 |
# IFS |
| 86 |
# We need space, tab and new line, in precisely that order. Quoting is |
| 87 |
# there to prevent editors from complaining about space-tab. |
| 88 |
# (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 89 |
# splitting by setting IFS to empty value.) |
| 90 |
IFS=" "" $as_nl" |
| 91 |
|
| 92 |
# Find who we are. Look in the path if we contain no directory separator. |
| 93 |
as_myself= |
| 94 |
case $0 in #(( |
| 95 |
*[\\/]* ) as_myself=$0 ;; |
| 96 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 97 |
for as_dir in $PATH |
| 98 |
do |
| 99 |
IFS=$as_save_IFS |
| 100 |
test -z "$as_dir" && as_dir=. |
| 101 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 102 |
done |
| 103 |
IFS=$as_save_IFS |
| 104 |
|
| 105 |
;; |
| 106 |
esac |
| 107 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
| 108 |
# in which case we are not to be found in the path. |
| 109 |
if test "x$as_myself" = x; then |
| 110 |
as_myself=$0 |
| 111 |
fi |
| 112 |
if test ! -f "$as_myself"; then |
| 113 |
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 114 |
exit 1 |
| 115 |
fi |
| 116 |
|
| 117 |
# Unset variables that we do not need and which cause bugs (e.g. in |
| 118 |
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 119 |
# suppresses any "Segmentation fault" message there. '((' could |
| 120 |
# trigger a bug in pdksh 5.2.14. |
| 121 |
for as_var in BASH_ENV ENV MAIL MAILPATH |
| 122 |
do eval test x\${$as_var+set} = xset \ |
| 123 |
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 124 |
done |
| 125 |
PS1='$ ' |
| 126 |
PS2='> ' |
| 127 |
PS4='+ ' |
| 128 |
|
| 129 |
# NLS nuisances. |
| 130 |
LC_ALL=C |
| 131 |
export LC_ALL |
| 132 |
LANGUAGE=C |
| 133 |
export LANGUAGE |
| 134 |
|
| 135 |
# CDPATH. |
| 136 |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 137 |
|
| 138 |
# Use a proper internal environment variable to ensure we don't fall |
| 139 |
# into an infinite loop, continuously re-executing ourselves. |
| 140 |
if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
| 141 |
_as_can_reexec=no; export _as_can_reexec; |
| 142 |
# We cannot yet assume a decent shell, so we have to provide a |
| 143 |
# neutralization value for shells without unset; and this also |
| 144 |
# works around shells that cannot unset nonexistent variables. |
| 145 |
# Preserve -v and -x to the replacement shell. |
| 146 |
BASH_ENV=/dev/null |
| 147 |
ENV=/dev/null |
| 148 |
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 149 |
case $- in # (((( |
| 150 |
*v*x* | *x*v* ) as_opts=-vx ;; |
| 151 |
*v* ) as_opts=-v ;; |
| 152 |
*x* ) as_opts=-x ;; |
| 153 |
* ) as_opts= ;; |
| 154 |
esac |
| 155 |
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 156 |
# Admittedly, this is quite paranoid, since all the known shells bail |
| 157 |
# out after a failed `exec'. |
| 158 |
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 159 |
as_fn_exit 255 |
| 160 |
fi |
| 161 |
# We don't want this to propagate to other subprocesses. |
| 162 |
{ _as_can_reexec=; unset _as_can_reexec;} |
| 163 |
if test "x$CONFIG_SHELL" = x; then |
| 164 |
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 165 |
emulate sh |
| 166 |
NULLCMD=: |
| 167 |
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 168 |
# is contrary to our usage. Disable this feature. |
| 169 |
alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 170 |
setopt NO_GLOB_SUBST |
| 171 |
else |
| 172 |
case \`(set -o) 2>/dev/null\` in #( |
| 173 |
*posix*) : |
| 174 |
set -o posix ;; #( |
| 175 |
*) : |
| 176 |
;; |
| 177 |
esac |
| 178 |
fi |
| 179 |
" |
| 180 |
as_required="as_fn_return () { (exit \$1); } |
| 181 |
as_fn_success () { as_fn_return 0; } |
| 182 |
as_fn_failure () { as_fn_return 1; } |
| 183 |
as_fn_ret_success () { return 0; } |
| 184 |
as_fn_ret_failure () { return 1; } |
| 185 |
|
| 186 |
exitcode=0 |
| 187 |
as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 188 |
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 189 |
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 190 |
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 191 |
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 192 |
|
| 193 |
else |
| 194 |
exitcode=1; echo positional parameters were not saved. |
| 195 |
fi |
| 196 |
test x\$exitcode = x0 || exit 1 |
| 197 |
test -x / || exit 1" |
| 198 |
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 199 |
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 200 |
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 201 |
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 202 |
|
| 203 |
test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( |
| 204 |
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 205 |
ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO |
| 206 |
ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO |
| 207 |
PATH=/empty FPATH=/empty; export PATH FPATH |
| 208 |
test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ |
| 209 |
|| test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 |
| 210 |
test \$(( 1 + 1 )) = 2 || exit 1" |
| 211 |
if (eval "$as_required") 2>/dev/null; then : |
| 212 |
as_have_required=yes |
| 213 |
else |
| 214 |
as_have_required=no |
| 215 |
fi |
| 216 |
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 217 |
|
| 218 |
else |
| 219 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 220 |
as_found=false |
| 221 |
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 222 |
do |
| 223 |
IFS=$as_save_IFS |
| 224 |
test -z "$as_dir" && as_dir=. |
| 225 |
as_found=: |
| 226 |
case $as_dir in #( |
| 227 |
/*) |
| 228 |
for as_base in sh bash ksh sh5; do |
| 229 |
# Try only shells that exist, to save several forks. |
| 230 |
as_shell=$as_dir/$as_base |
| 231 |
if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 232 |
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 233 |
CONFIG_SHELL=$as_shell as_have_required=yes |
| 234 |
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 235 |
break 2 |
| 236 |
fi |
| 237 |
fi |
| 238 |
done;; |
| 239 |
esac |
| 240 |
as_found=false |
| 241 |
done |
| 242 |
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 243 |
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 244 |
CONFIG_SHELL=$SHELL as_have_required=yes |
| 245 |
fi; } |
| 246 |
IFS=$as_save_IFS |
| 247 |
|
| 248 |
|
| 249 |
if test "x$CONFIG_SHELL" != x; then : |
| 250 |
export CONFIG_SHELL |
| 251 |
# We cannot yet assume a decent shell, so we have to provide a |
| 252 |
# neutralization value for shells without unset; and this also |
| 253 |
# works around shells that cannot unset nonexistent variables. |
| 254 |
# Preserve -v and -x to the replacement shell. |
| 255 |
BASH_ENV=/dev/null |
| 256 |
ENV=/dev/null |
| 257 |
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 258 |
case $- in # (((( |
| 259 |
*v*x* | *x*v* ) as_opts=-vx ;; |
| 260 |
*v* ) as_opts=-v ;; |
| 261 |
*x* ) as_opts=-x ;; |
| 262 |
* ) as_opts= ;; |
| 263 |
esac |
| 264 |
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 265 |
# Admittedly, this is quite paranoid, since all the known shells bail |
| 266 |
# out after a failed `exec'. |
| 267 |
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 268 |
exit 255 |
| 269 |
fi |
| 270 |
|
| 271 |
if test x$as_have_required = xno; then : |
| 272 |
$as_echo "$0: This script requires a shell more modern than all" |
| 273 |
$as_echo "$0: the shells that I found on your system." |
| 274 |
if test x${ZSH_VERSION+set} = xset ; then |
| 275 |
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 276 |
$as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 277 |
else |
| 278 |
$as_echo "$0: Please tell bug-autoconf@gnu.org and |
| 279 |
$0: bugs@ircd-hybrid.org about your system, including any |
| 280 |
$0: error possibly output before this message. Then install |
| 281 |
$0: a modern shell, or manually run the script under such a |
| 282 |
$0: shell if you do have one." |
| 283 |
fi |
| 284 |
exit 1 |
| 285 |
fi |
| 286 |
fi |
| 287 |
fi |
| 288 |
SHELL=${CONFIG_SHELL-/bin/sh} |
| 289 |
export SHELL |
| 290 |
# Unset more variables known to interfere with behavior of common tools. |
| 291 |
CLICOLOR_FORCE= GREP_OPTIONS= |
| 292 |
unset CLICOLOR_FORCE GREP_OPTIONS |
| 293 |
|
| 294 |
## --------------------- ## |
| 295 |
## M4sh Shell Functions. ## |
| 296 |
## --------------------- ## |
| 297 |
# as_fn_unset VAR |
| 298 |
# --------------- |
| 299 |
# Portably unset VAR. |
| 300 |
as_fn_unset () |
| 301 |
{ |
| 302 |
{ eval $1=; unset $1;} |
| 303 |
} |
| 304 |
as_unset=as_fn_unset |
| 305 |
|
| 306 |
# as_fn_set_status STATUS |
| 307 |
# ----------------------- |
| 308 |
# Set $? to STATUS, without forking. |
| 309 |
as_fn_set_status () |
| 310 |
{ |
| 311 |
return $1 |
| 312 |
} # as_fn_set_status |
| 313 |
|
| 314 |
# as_fn_exit STATUS |
| 315 |
# ----------------- |
| 316 |
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 317 |
as_fn_exit () |
| 318 |
{ |
| 319 |
set +e |
| 320 |
as_fn_set_status $1 |
| 321 |
exit $1 |
| 322 |
} # as_fn_exit |
| 323 |
|
| 324 |
# as_fn_mkdir_p |
| 325 |
# ------------- |
| 326 |
# Create "$as_dir" as a directory, including parents if necessary. |
| 327 |
as_fn_mkdir_p () |
| 328 |
{ |
| 329 |
|
| 330 |
case $as_dir in #( |
| 331 |
-*) as_dir=./$as_dir;; |
| 332 |
esac |
| 333 |
test -d "$as_dir" || eval $as_mkdir_p || { |
| 334 |
as_dirs= |
| 335 |
while :; do |
| 336 |
case $as_dir in #( |
| 337 |
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 338 |
*) as_qdir=$as_dir;; |
| 339 |
esac |
| 340 |
as_dirs="'$as_qdir' $as_dirs" |
| 341 |
as_dir=`$as_dirname -- "$as_dir" || |
| 342 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 343 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 344 |
X"$as_dir" : 'X\(//\)$' \| \ |
| 345 |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 346 |
$as_echo X"$as_dir" | |
| 347 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 348 |
s//\1/ |
| 349 |
q |
| 350 |
} |
| 351 |
/^X\(\/\/\)[^/].*/{ |
| 352 |
s//\1/ |
| 353 |
q |
| 354 |
} |
| 355 |
/^X\(\/\/\)$/{ |
| 356 |
s//\1/ |
| 357 |
q |
| 358 |
} |
| 359 |
/^X\(\/\).*/{ |
| 360 |
s//\1/ |
| 361 |
q |
| 362 |
} |
| 363 |
s/.*/./; q'` |
| 364 |
test -d "$as_dir" && break |
| 365 |
done |
| 366 |
test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 367 |
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 368 |
|
| 369 |
|
| 370 |
} # as_fn_mkdir_p |
| 371 |
|
| 372 |
# as_fn_executable_p FILE |
| 373 |
# ----------------------- |
| 374 |
# Test if FILE is an executable regular file. |
| 375 |
as_fn_executable_p () |
| 376 |
{ |
| 377 |
test -f "$1" && test -x "$1" |
| 378 |
} # as_fn_executable_p |
| 379 |
# as_fn_append VAR VALUE |
| 380 |
# ---------------------- |
| 381 |
# Append the text in VALUE to the end of the definition contained in VAR. Take |
| 382 |
# advantage of any shell optimizations that allow amortized linear growth over |
| 383 |
# repeated appends, instead of the typical quadratic growth present in naive |
| 384 |
# implementations. |
| 385 |
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 386 |
eval 'as_fn_append () |
| 387 |
{ |
| 388 |
eval $1+=\$2 |
| 389 |
}' |
| 390 |
else |
| 391 |
as_fn_append () |
| 392 |
{ |
| 393 |
eval $1=\$$1\$2 |
| 394 |
} |
| 395 |
fi # as_fn_append |
| 396 |
|
| 397 |
# as_fn_arith ARG... |
| 398 |
# ------------------ |
| 399 |
# Perform arithmetic evaluation on the ARGs, and store the result in the |
| 400 |
# global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 401 |
# must be portable across $(()) and expr. |
| 402 |
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 403 |
eval 'as_fn_arith () |
| 404 |
{ |
| 405 |
as_val=$(( $* )) |
| 406 |
}' |
| 407 |
else |
| 408 |
as_fn_arith () |
| 409 |
{ |
| 410 |
as_val=`expr "$@" || test $? -eq 1` |
| 411 |
} |
| 412 |
fi # as_fn_arith |
| 413 |
|
| 414 |
|
| 415 |
# as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 416 |
# ---------------------------------------- |
| 417 |
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 418 |
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 419 |
# script with STATUS, using 1 if that was 0. |
| 420 |
as_fn_error () |
| 421 |
{ |
| 422 |
as_status=$1; test $as_status -eq 0 && as_status=1 |
| 423 |
if test "$4"; then |
| 424 |
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 425 |
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 426 |
fi |
| 427 |
$as_echo "$as_me: error: $2" >&2 |
| 428 |
as_fn_exit $as_status |
| 429 |
} # as_fn_error |
| 430 |
|
| 431 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
| 432 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 433 |
as_expr=expr |
| 434 |
else |
| 435 |
as_expr=false |
| 436 |
fi |
| 437 |
|
| 438 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 439 |
as_basename=basename |
| 440 |
else |
| 441 |
as_basename=false |
| 442 |
fi |
| 443 |
|
| 444 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 445 |
as_dirname=dirname |
| 446 |
else |
| 447 |
as_dirname=false |
| 448 |
fi |
| 449 |
|
| 450 |
as_me=`$as_basename -- "$0" || |
| 451 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 452 |
X"$0" : 'X\(//\)$' \| \ |
| 453 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 454 |
$as_echo X/"$0" | |
| 455 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 456 |
s//\1/ |
| 457 |
q |
| 458 |
} |
| 459 |
/^X\/\(\/\/\)$/{ |
| 460 |
s//\1/ |
| 461 |
q |
| 462 |
} |
| 463 |
/^X\/\(\/\).*/{ |
| 464 |
s//\1/ |
| 465 |
q |
| 466 |
} |
| 467 |
s/.*/./; q'` |
| 468 |
|
| 469 |
# Avoid depending upon Character Ranges. |
| 470 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 471 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 472 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 473 |
as_cr_digits='0123456789' |
| 474 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 475 |
|
| 476 |
|
| 477 |
as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 478 |
as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 479 |
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 480 |
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 481 |
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
| 482 |
sed -n ' |
| 483 |
p |
| 484 |
/[$]LINENO/= |
| 485 |
' <$as_myself | |
| 486 |
sed ' |
| 487 |
s/[$]LINENO.*/&-/ |
| 488 |
t lineno |
| 489 |
b |
| 490 |
:lineno |
| 491 |
N |
| 492 |
:loop |
| 493 |
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 494 |
t loop |
| 495 |
s/-\n.*// |
| 496 |
' >$as_me.lineno && |
| 497 |
chmod +x "$as_me.lineno" || |
| 498 |
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
| 499 |
|
| 500 |
# If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
| 501 |
# already done that, so ensure we don't try to do so again and fall |
| 502 |
# in an infinite loop. This has already happened in practice. |
| 503 |
_as_can_reexec=no; export _as_can_reexec |
| 504 |
# Don't try to exec as it changes $[0], causing all sort of problems |
| 505 |
# (the dirname of $[0] is not the place where we might find the |
| 506 |
# original and so on. Autoconf is especially sensitive to this). |
| 507 |
. "./$as_me.lineno" |
| 508 |
# Exit status is that of the last command. |
| 509 |
exit |
| 510 |
} |
| 511 |
|
| 512 |
ECHO_C= ECHO_N= ECHO_T= |
| 513 |
case `echo -n x` in #((((( |
| 514 |
-n*) |
| 515 |
case `echo 'xy\c'` in |
| 516 |
*c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 517 |
xy) ECHO_C='\c';; |
| 518 |
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 519 |
ECHO_T=' ';; |
| 520 |
esac;; |
| 521 |
*) |
| 522 |
ECHO_N='-n';; |
| 523 |
esac |
| 524 |
|
| 525 |
rm -f conf$$ conf$$.exe conf$$.file |
| 526 |
if test -d conf$$.dir; then |
| 527 |
rm -f conf$$.dir/conf$$.file |
| 528 |
else |
| 529 |
rm -f conf$$.dir |
| 530 |
mkdir conf$$.dir 2>/dev/null |
| 531 |
fi |
| 532 |
if (echo >conf$$.file) 2>/dev/null; then |
| 533 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 534 |
as_ln_s='ln -s' |
| 535 |
# ... but there are two gotchas: |
| 536 |
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 537 |
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 538 |
# In both cases, we have to default to `cp -pR'. |
| 539 |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 540 |
as_ln_s='cp -pR' |
| 541 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
| 542 |
as_ln_s=ln |
| 543 |
else |
| 544 |
as_ln_s='cp -pR' |
| 545 |
fi |
| 546 |
else |
| 547 |
as_ln_s='cp -pR' |
| 548 |
fi |
| 549 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 550 |
rmdir conf$$.dir 2>/dev/null |
| 551 |
|
| 552 |
if mkdir -p . 2>/dev/null; then |
| 553 |
as_mkdir_p='mkdir -p "$as_dir"' |
| 554 |
else |
| 555 |
test -d ./-p && rmdir ./-p |
| 556 |
as_mkdir_p=false |
| 557 |
fi |
| 558 |
|
| 559 |
as_test_x='test -x' |
| 560 |
as_executable_p=as_fn_executable_p |
| 561 |
|
| 562 |
# Sed expression to map a string onto a valid CPP name. |
| 563 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 564 |
|
| 565 |
# Sed expression to map a string onto a valid variable name. |
| 566 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 567 |
|
| 568 |
lt_ltdl_dir='libltdl' |
| 569 |
|
| 570 |
SHELL=${CONFIG_SHELL-/bin/sh} |
| 571 |
|
| 572 |
|
| 573 |
test -n "$DJDIR" || exec 7<&0 </dev/null |
| 574 |
exec 6>&1 |
| 575 |
|
| 576 |
# Name of the host. |
| 577 |
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
| 578 |
# so uname gets run too. |
| 579 |
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 580 |
|
| 581 |
# |
| 582 |
# Initializations. |
| 583 |
# |
| 584 |
ac_default_prefix=/usr/local |
| 585 |
ac_clean_files= |
| 586 |
ac_config_libobj_dir=. |
| 587 |
LIBOBJS= |
| 588 |
cross_compiling=no |
| 589 |
subdirs= |
| 590 |
MFLAGS= |
| 591 |
MAKEFLAGS= |
| 592 |
|
| 593 |
# Identity of this package. |
| 594 |
PACKAGE_NAME='ircd-hybrid' |
| 595 |
PACKAGE_TARNAME='ircd-hybrid' |
| 596 |
PACKAGE_VERSION='TRUNK' |
| 597 |
PACKAGE_STRING='ircd-hybrid TRUNK' |
| 598 |
PACKAGE_BUGREPORT='bugs@ircd-hybrid.org' |
| 599 |
PACKAGE_URL='' |
| 600 |
|
| 601 |
ac_unique_file="src/ircd.c" |
| 602 |
# Factoring default headers for most tests. |
| 603 |
ac_includes_default="\ |
| 604 |
#include <stdio.h> |
| 605 |
#ifdef HAVE_SYS_TYPES_H |
| 606 |
# include <sys/types.h> |
| 607 |
#endif |
| 608 |
#ifdef HAVE_SYS_STAT_H |
| 609 |
# include <sys/stat.h> |
| 610 |
#endif |
| 611 |
#ifdef STDC_HEADERS |
| 612 |
# include <stdlib.h> |
| 613 |
# include <stddef.h> |
| 614 |
#else |
| 615 |
# ifdef HAVE_STDLIB_H |
| 616 |
# include <stdlib.h> |
| 617 |
# endif |
| 618 |
#endif |
| 619 |
#ifdef HAVE_STRING_H |
| 620 |
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
| 621 |
# include <memory.h> |
| 622 |
# endif |
| 623 |
# include <string.h> |
| 624 |
#endif |
| 625 |
#ifdef HAVE_STRINGS_H |
| 626 |
# include <strings.h> |
| 627 |
#endif |
| 628 |
#ifdef HAVE_INTTYPES_H |
| 629 |
# include <inttypes.h> |
| 630 |
#endif |
| 631 |
#ifdef HAVE_STDINT_H |
| 632 |
# include <stdint.h> |
| 633 |
#endif |
| 634 |
#ifdef HAVE_UNISTD_H |
| 635 |
# include <unistd.h> |
| 636 |
#endif" |
| 637 |
|
| 638 |
ac_func_list= |
| 639 |
ac_header_list= |
| 640 |
ac_subst_vars='ltdl_LTLIBOBJS |
| 641 |
ltdl_LIBOBJS |
| 642 |
am__EXEEXT_FALSE |
| 643 |
am__EXEEXT_TRUE |
| 644 |
LTLIBOBJS |
| 645 |
LIBOBJS |
| 646 |
LOCALSTATEDIR |
| 647 |
DATADIR |
| 648 |
LIBDIR |
| 649 |
SYSCONFDIR |
| 650 |
PREFIX |
| 651 |
ENABLE_SSL_FALSE |
| 652 |
ENABLE_SSL_TRUE |
| 653 |
LTDLOPEN |
| 654 |
LT_CONFIG_H |
| 655 |
CONVENIENCE_LTDL_FALSE |
| 656 |
CONVENIENCE_LTDL_TRUE |
| 657 |
INSTALL_LTDL_FALSE |
| 658 |
INSTALL_LTDL_TRUE |
| 659 |
ARGZ_H |
| 660 |
sys_symbol_underscore |
| 661 |
LIBADD_DL |
| 662 |
LT_DLPREOPEN |
| 663 |
LIBADD_DLD_LINK |
| 664 |
LIBADD_SHL_LOAD |
| 665 |
LIBADD_DLOPEN |
| 666 |
LT_DLLOADERS |
| 667 |
INCLTDL |
| 668 |
LTDLINCL |
| 669 |
LTDLDEPS |
| 670 |
LIBLTDL |
| 671 |
CPP |
| 672 |
OTOOL64 |
| 673 |
OTOOL |
| 674 |
LIPO |
| 675 |
NMEDIT |
| 676 |
DSYMUTIL |
| 677 |
MANIFEST_TOOL |
| 678 |
RANLIB |
| 679 |
ac_ct_AR |
| 680 |
AR |
| 681 |
DLLTOOL |
| 682 |
OBJDUMP |
| 683 |
LN_S |
| 684 |
NM |
| 685 |
ac_ct_DUMPBIN |
| 686 |
DUMPBIN |
| 687 |
LD |
| 688 |
FGREP |
| 689 |
EGREP |
| 690 |
GREP |
| 691 |
SED |
| 692 |
host_os |
| 693 |
host_vendor |
| 694 |
host_cpu |
| 695 |
host |
| 696 |
build_os |
| 697 |
build_vendor |
| 698 |
build_cpu |
| 699 |
build |
| 700 |
LIBTOOL |
| 701 |
LEXLIB |
| 702 |
LEX_OUTPUT_ROOT |
| 703 |
LEX |
| 704 |
YFLAGS |
| 705 |
YACC |
| 706 |
am__fastdepCC_FALSE |
| 707 |
am__fastdepCC_TRUE |
| 708 |
CCDEPMODE |
| 709 |
am__nodep |
| 710 |
AMDEPBACKSLASH |
| 711 |
AMDEP_FALSE |
| 712 |
AMDEP_TRUE |
| 713 |
am__quote |
| 714 |
am__include |
| 715 |
DEPDIR |
| 716 |
OBJEXT |
| 717 |
EXEEXT |
| 718 |
ac_ct_CC |
| 719 |
CPPFLAGS |
| 720 |
LDFLAGS |
| 721 |
CFLAGS |
| 722 |
CC |
| 723 |
MAINT |
| 724 |
MAINTAINER_MODE_FALSE |
| 725 |
MAINTAINER_MODE_TRUE |
| 726 |
AM_BACKSLASH |
| 727 |
AM_DEFAULT_VERBOSITY |
| 728 |
AM_DEFAULT_V |
| 729 |
AM_V |
| 730 |
am__untar |
| 731 |
am__tar |
| 732 |
AMTAR |
| 733 |
am__leading_dot |
| 734 |
SET_MAKE |
| 735 |
AWK |
| 736 |
mkdir_p |
| 737 |
MKDIR_P |
| 738 |
INSTALL_STRIP_PROGRAM |
| 739 |
STRIP |
| 740 |
install_sh |
| 741 |
MAKEINFO |
| 742 |
AUTOHEADER |
| 743 |
AUTOMAKE |
| 744 |
AUTOCONF |
| 745 |
ACLOCAL |
| 746 |
VERSION |
| 747 |
PACKAGE |
| 748 |
CYGPATH_W |
| 749 |
am__isrc |
| 750 |
INSTALL_DATA |
| 751 |
INSTALL_SCRIPT |
| 752 |
INSTALL_PROGRAM |
| 753 |
target_alias |
| 754 |
host_alias |
| 755 |
build_alias |
| 756 |
LIBS |
| 757 |
ECHO_T |
| 758 |
ECHO_N |
| 759 |
ECHO_C |
| 760 |
DEFS |
| 761 |
mandir |
| 762 |
localedir |
| 763 |
libdir |
| 764 |
psdir |
| 765 |
pdfdir |
| 766 |
dvidir |
| 767 |
htmldir |
| 768 |
infodir |
| 769 |
docdir |
| 770 |
oldincludedir |
| 771 |
includedir |
| 772 |
localstatedir |
| 773 |
sharedstatedir |
| 774 |
sysconfdir |
| 775 |
datadir |
| 776 |
datarootdir |
| 777 |
libexecdir |
| 778 |
sbindir |
| 779 |
bindir |
| 780 |
program_transform_name |
| 781 |
prefix |
| 782 |
exec_prefix |
| 783 |
PACKAGE_URL |
| 784 |
PACKAGE_BUGREPORT |
| 785 |
PACKAGE_STRING |
| 786 |
PACKAGE_VERSION |
| 787 |
PACKAGE_TARNAME |
| 788 |
PACKAGE_NAME |
| 789 |
PATH_SEPARATOR |
| 790 |
SHELL' |
| 791 |
ac_subst_files='' |
| 792 |
ac_user_opts=' |
| 793 |
enable_option_checking |
| 794 |
enable_silent_rules |
| 795 |
enable_maintainer_mode |
| 796 |
enable_dependency_tracking |
| 797 |
enable_static |
| 798 |
enable_shared |
| 799 |
with_pic |
| 800 |
enable_fast_install |
| 801 |
with_gnu_ld |
| 802 |
with_sysroot |
| 803 |
enable_libtool_lock |
| 804 |
with_included_ltdl |
| 805 |
with_ltdl_include |
| 806 |
with_ltdl_lib |
| 807 |
enable_ltdl_install |
| 808 |
enable_libpcre |
| 809 |
enable_openssl |
| 810 |
enable_assert |
| 811 |
enable_kqueue |
| 812 |
enable_epoll |
| 813 |
enable_devpoll |
| 814 |
enable_poll |
| 815 |
enable_select |
| 816 |
enable_halfops |
| 817 |
enable_debugging |
| 818 |
enable_warnings |
| 819 |
' |
| 820 |
ac_precious_vars='build_alias |
| 821 |
host_alias |
| 822 |
target_alias |
| 823 |
CC |
| 824 |
CFLAGS |
| 825 |
LDFLAGS |
| 826 |
LIBS |
| 827 |
CPPFLAGS |
| 828 |
YACC |
| 829 |
YFLAGS |
| 830 |
CPP' |
| 831 |
|
| 832 |
|
| 833 |
# Initialize some variables set by options. |
| 834 |
ac_init_help= |
| 835 |
ac_init_version=false |
| 836 |
ac_unrecognized_opts= |
| 837 |
ac_unrecognized_sep= |
| 838 |
# The variables have the same names as the options, with |
| 839 |
# dashes changed to underlines. |
| 840 |
cache_file=/dev/null |
| 841 |
exec_prefix=NONE |
| 842 |
no_create= |
| 843 |
no_recursion= |
| 844 |
prefix=NONE |
| 845 |
program_prefix=NONE |
| 846 |
program_suffix=NONE |
| 847 |
program_transform_name=s,x,x, |
| 848 |
silent= |
| 849 |
site= |
| 850 |
srcdir= |
| 851 |
verbose= |
| 852 |
x_includes=NONE |
| 853 |
x_libraries=NONE |
| 854 |
|
| 855 |
# Installation directory options. |
| 856 |
# These are left unexpanded so users can "make install exec_prefix=/foo" |
| 857 |
# and all the variables that are supposed to be based on exec_prefix |
| 858 |
# by default will actually change. |
| 859 |
# Use braces instead of parens because sh, perl, etc. also accept them. |
| 860 |
# (The list follows the same order as the GNU Coding Standards.) |
| 861 |
bindir='${exec_prefix}/bin' |
| 862 |
sbindir='${exec_prefix}/sbin' |
| 863 |
libexecdir='${exec_prefix}/libexec' |
| 864 |
datarootdir='${prefix}/share' |
| 865 |
datadir='${datarootdir}' |
| 866 |
sysconfdir='${prefix}/etc' |
| 867 |
sharedstatedir='${prefix}/com' |
| 868 |
localstatedir='${prefix}/var' |
| 869 |
includedir='${prefix}/include' |
| 870 |
oldincludedir='/usr/include' |
| 871 |
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 872 |
infodir='${datarootdir}/info' |
| 873 |
htmldir='${docdir}' |
| 874 |
dvidir='${docdir}' |
| 875 |
pdfdir='${docdir}' |
| 876 |
psdir='${docdir}' |
| 877 |
libdir='${exec_prefix}/lib' |
| 878 |
localedir='${datarootdir}/locale' |
| 879 |
mandir='${datarootdir}/man' |
| 880 |
|
| 881 |
ac_prev= |
| 882 |
ac_dashdash= |
| 883 |
for ac_option |
| 884 |
do |
| 885 |
# If the previous option needs an argument, assign it. |
| 886 |
if test -n "$ac_prev"; then |
| 887 |
eval $ac_prev=\$ac_option |
| 888 |
ac_prev= |
| 889 |
continue |
| 890 |
fi |
| 891 |
|
| 892 |
case $ac_option in |
| 893 |
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 894 |
*=) ac_optarg= ;; |
| 895 |
*) ac_optarg=yes ;; |
| 896 |
esac |
| 897 |
|
| 898 |
# Accept the important Cygnus configure options, so we can diagnose typos. |
| 899 |
|
| 900 |
case $ac_dashdash$ac_option in |
| 901 |
--) |
| 902 |
ac_dashdash=yes ;; |
| 903 |
|
| 904 |
-bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 905 |
ac_prev=bindir ;; |
| 906 |
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 907 |
bindir=$ac_optarg ;; |
| 908 |
|
| 909 |
-build | --build | --buil | --bui | --bu) |
| 910 |
ac_prev=build_alias ;; |
| 911 |
-build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 912 |
build_alias=$ac_optarg ;; |
| 913 |
|
| 914 |
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 915 |
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 916 |
ac_prev=cache_file ;; |
| 917 |
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 918 |
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 919 |
cache_file=$ac_optarg ;; |
| 920 |
|
| 921 |
--config-cache | -C) |
| 922 |
cache_file=config.cache ;; |
| 923 |
|
| 924 |
-datadir | --datadir | --datadi | --datad) |
| 925 |
ac_prev=datadir ;; |
| 926 |
-datadir=* | --datadir=* | --datadi=* | --datad=*) |
| 927 |
datadir=$ac_optarg ;; |
| 928 |
|
| 929 |
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 930 |
| --dataroo | --dataro | --datar) |
| 931 |
ac_prev=datarootdir ;; |
| 932 |
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 933 |
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 934 |
datarootdir=$ac_optarg ;; |
| 935 |
|
| 936 |
-disable-* | --disable-*) |
| 937 |
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 938 |
# Reject names that are not valid shell variable names. |
| 939 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 940 |
as_fn_error $? "invalid feature name: $ac_useropt" |
| 941 |
ac_useropt_orig=$ac_useropt |
| 942 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 943 |
case $ac_user_opts in |
| 944 |
*" |
| 945 |
"enable_$ac_useropt" |
| 946 |
"*) ;; |
| 947 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 948 |
ac_unrecognized_sep=', ';; |
| 949 |
esac |
| 950 |
eval enable_$ac_useropt=no ;; |
| 951 |
|
| 952 |
-docdir | --docdir | --docdi | --doc | --do) |
| 953 |
ac_prev=docdir ;; |
| 954 |
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 955 |
docdir=$ac_optarg ;; |
| 956 |
|
| 957 |
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 958 |
ac_prev=dvidir ;; |
| 959 |
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 960 |
dvidir=$ac_optarg ;; |
| 961 |
|
| 962 |
-enable-* | --enable-*) |
| 963 |
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 964 |
# Reject names that are not valid shell variable names. |
| 965 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 966 |
as_fn_error $? "invalid feature name: $ac_useropt" |
| 967 |
ac_useropt_orig=$ac_useropt |
| 968 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 969 |
case $ac_user_opts in |
| 970 |
*" |
| 971 |
"enable_$ac_useropt" |
| 972 |
"*) ;; |
| 973 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 974 |
ac_unrecognized_sep=', ';; |
| 975 |
esac |
| 976 |
eval enable_$ac_useropt=\$ac_optarg ;; |
| 977 |
|
| 978 |
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 979 |
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 980 |
| --exec | --exe | --ex) |
| 981 |
ac_prev=exec_prefix ;; |
| 982 |
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 983 |
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 984 |
| --exec=* | --exe=* | --ex=*) |
| 985 |
exec_prefix=$ac_optarg ;; |
| 986 |
|
| 987 |
-gas | --gas | --ga | --g) |
| 988 |
# Obsolete; use --with-gas. |
| 989 |
with_gas=yes ;; |
| 990 |
|
| 991 |
-help | --help | --hel | --he | -h) |
| 992 |
ac_init_help=long ;; |
| 993 |
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 994 |
ac_init_help=recursive ;; |
| 995 |
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 996 |
ac_init_help=short ;; |
| 997 |
|
| 998 |
-host | --host | --hos | --ho) |
| 999 |
ac_prev=host_alias ;; |
| 1000 |
-host=* | --host=* | --hos=* | --ho=*) |
| 1001 |
host_alias=$ac_optarg ;; |
| 1002 |
|
| 1003 |
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1004 |
ac_prev=htmldir ;; |
| 1005 |
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1006 |
| --ht=*) |
| 1007 |
htmldir=$ac_optarg ;; |
| 1008 |
|
| 1009 |
-includedir | --includedir | --includedi | --included | --include \ |
| 1010 |
| --includ | --inclu | --incl | --inc) |
| 1011 |
ac_prev=includedir ;; |
| 1012 |
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1013 |
| --includ=* | --inclu=* | --incl=* | --inc=*) |
| 1014 |
includedir=$ac_optarg ;; |
| 1015 |
|
| 1016 |
-infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1017 |
ac_prev=infodir ;; |
| 1018 |
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 1019 |
infodir=$ac_optarg ;; |
| 1020 |
|
| 1021 |
-libdir | --libdir | --libdi | --libd) |
| 1022 |
ac_prev=libdir ;; |
| 1023 |
-libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 1024 |
libdir=$ac_optarg ;; |
| 1025 |
|
| 1026 |
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1027 |
| --libexe | --libex | --libe) |
| 1028 |
ac_prev=libexecdir ;; |
| 1029 |
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1030 |
| --libexe=* | --libex=* | --libe=*) |
| 1031 |
libexecdir=$ac_optarg ;; |
| 1032 |
|
| 1033 |
-localedir | --localedir | --localedi | --localed | --locale) |
| 1034 |
ac_prev=localedir ;; |
| 1035 |
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1036 |
localedir=$ac_optarg ;; |
| 1037 |
|
| 1038 |
-localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 1039 |
| --localstate | --localstat | --localsta | --localst | --locals) |
| 1040 |
ac_prev=localstatedir ;; |
| 1041 |
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 1042 |
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
| 1043 |
localstatedir=$ac_optarg ;; |
| 1044 |
|
| 1045 |
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1046 |
ac_prev=mandir ;; |
| 1047 |
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1048 |
mandir=$ac_optarg ;; |
| 1049 |
|
| 1050 |
-nfp | --nfp | --nf) |
| 1051 |
# Obsolete; use --without-fp. |
| 1052 |
with_fp=no ;; |
| 1053 |
|
| 1054 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1055 |
| --no-cr | --no-c | -n) |
| 1056 |
no_create=yes ;; |
| 1057 |
|
| 1058 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1059 |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1060 |
no_recursion=yes ;; |
| 1061 |
|
| 1062 |
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1063 |
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1064 |
| --oldin | --oldi | --old | --ol | --o) |
| 1065 |
ac_prev=oldincludedir ;; |
| 1066 |
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1067 |
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1068 |
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1069 |
oldincludedir=$ac_optarg ;; |
| 1070 |
|
| 1071 |
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1072 |
ac_prev=prefix ;; |
| 1073 |
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1074 |
prefix=$ac_optarg ;; |
| 1075 |
|
| 1076 |
-program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1077 |
| --program-pre | --program-pr | --program-p) |
| 1078 |
ac_prev=program_prefix ;; |
| 1079 |
-program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1080 |
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1081 |
program_prefix=$ac_optarg ;; |
| 1082 |
|
| 1083 |
-program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1084 |
| --program-suf | --program-su | --program-s) |
| 1085 |
ac_prev=program_suffix ;; |
| 1086 |
-program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1087 |
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1088 |
program_suffix=$ac_optarg ;; |
| 1089 |
|
| 1090 |
-program-transform-name | --program-transform-name \ |
| 1091 |
| --program-transform-nam | --program-transform-na \ |
| 1092 |
| --program-transform-n | --program-transform- \ |
| 1093 |
| --program-transform | --program-transfor \ |
| 1094 |
| --program-transfo | --program-transf \ |
| 1095 |
| --program-trans | --program-tran \ |
| 1096 |
| --progr-tra | --program-tr | --program-t) |
| 1097 |
ac_prev=program_transform_name ;; |
| 1098 |
-program-transform-name=* | --program-transform-name=* \ |
| 1099 |
| --program-transform-nam=* | --program-transform-na=* \ |
| 1100 |
| --program-transform-n=* | --program-transform-=* \ |
| 1101 |
| --program-transform=* | --program-transfor=* \ |
| 1102 |
| --program-transfo=* | --program-transf=* \ |
| 1103 |
| --program-trans=* | --program-tran=* \ |
| 1104 |
| --progr-tra=* | --program-tr=* | --program-t=*) |
| 1105 |
program_transform_name=$ac_optarg ;; |
| 1106 |
|
| 1107 |
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1108 |
ac_prev=pdfdir ;; |
| 1109 |
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1110 |
pdfdir=$ac_optarg ;; |
| 1111 |
|
| 1112 |
-psdir | --psdir | --psdi | --psd | --ps) |
| 1113 |
ac_prev=psdir ;; |
| 1114 |
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1115 |
psdir=$ac_optarg ;; |
| 1116 |
|
| 1117 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1118 |
| -silent | --silent | --silen | --sile | --sil) |
| 1119 |
silent=yes ;; |
| 1120 |
|
| 1121 |
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1122 |
ac_prev=sbindir ;; |
| 1123 |
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1124 |
| --sbi=* | --sb=*) |
| 1125 |
sbindir=$ac_optarg ;; |
| 1126 |
|
| 1127 |
-sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1128 |
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1129 |
| --sharedst | --shareds | --shared | --share | --shar \ |
| 1130 |
| --sha | --sh) |
| 1131 |
ac_prev=sharedstatedir ;; |
| 1132 |
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1133 |
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1134 |
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1135 |
| --sha=* | --sh=*) |
| 1136 |
sharedstatedir=$ac_optarg ;; |
| 1137 |
|
| 1138 |
-site | --site | --sit) |
| 1139 |
ac_prev=site ;; |
| 1140 |
-site=* | --site=* | --sit=*) |
| 1141 |
site=$ac_optarg ;; |
| 1142 |
|
| 1143 |
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1144 |
ac_prev=srcdir ;; |
| 1145 |
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1146 |
srcdir=$ac_optarg ;; |
| 1147 |
|
| 1148 |
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1149 |
| --syscon | --sysco | --sysc | --sys | --sy) |
| 1150 |
ac_prev=sysconfdir ;; |
| 1151 |
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1152 |
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1153 |
sysconfdir=$ac_optarg ;; |
| 1154 |
|
| 1155 |
-target | --target | --targe | --targ | --tar | --ta | --t) |
| 1156 |
ac_prev=target_alias ;; |
| 1157 |
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1158 |
target_alias=$ac_optarg ;; |
| 1159 |
|
| 1160 |
-v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1161 |
verbose=yes ;; |
| 1162 |
|
| 1163 |
-version | --version | --versio | --versi | --vers | -V) |
| 1164 |
ac_init_version=: ;; |
| 1165 |
|
| 1166 |
-with-* | --with-*) |
| 1167 |
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1168 |
# Reject names that are not valid shell variable names. |
| 1169 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1170 |
as_fn_error $? "invalid package name: $ac_useropt" |
| 1171 |
ac_useropt_orig=$ac_useropt |
| 1172 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1173 |
case $ac_user_opts in |
| 1174 |
*" |
| 1175 |
"with_$ac_useropt" |
| 1176 |
"*) ;; |
| 1177 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1178 |
ac_unrecognized_sep=', ';; |
| 1179 |
esac |
| 1180 |
eval with_$ac_useropt=\$ac_optarg ;; |
| 1181 |
|
| 1182 |
-without-* | --without-*) |
| 1183 |
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1184 |
# Reject names that are not valid shell variable names. |
| 1185 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1186 |
as_fn_error $? "invalid package name: $ac_useropt" |
| 1187 |
ac_useropt_orig=$ac_useropt |
| 1188 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1189 |
case $ac_user_opts in |
| 1190 |
*" |
| 1191 |
"with_$ac_useropt" |
| 1192 |
"*) ;; |
| 1193 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1194 |
ac_unrecognized_sep=', ';; |
| 1195 |
esac |
| 1196 |
eval with_$ac_useropt=no ;; |
| 1197 |
|
| 1198 |
--x) |
| 1199 |
# Obsolete; use --with-x. |
| 1200 |
with_x=yes ;; |
| 1201 |
|
| 1202 |
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1203 |
| --x-incl | --x-inc | --x-in | --x-i) |
| 1204 |
ac_prev=x_includes ;; |
| 1205 |
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1206 |
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1207 |
x_includes=$ac_optarg ;; |
| 1208 |
|
| 1209 |
-x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1210 |
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1211 |
ac_prev=x_libraries ;; |
| 1212 |
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1213 |
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1214 |
x_libraries=$ac_optarg ;; |
| 1215 |
|
| 1216 |
-*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1217 |
Try \`$0 --help' for more information" |
| 1218 |
;; |
| 1219 |
|
| 1220 |
*=*) |
| 1221 |
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1222 |
# Reject names that are not valid shell variable names. |
| 1223 |
case $ac_envvar in #( |
| 1224 |
'' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1225 |
as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
| 1226 |
esac |
| 1227 |
eval $ac_envvar=\$ac_optarg |
| 1228 |
export $ac_envvar ;; |
| 1229 |
|
| 1230 |
*) |
| 1231 |
# FIXME: should be removed in autoconf 3.0. |
| 1232 |
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1233 |
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1234 |
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1235 |
: "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
| 1236 |
;; |
| 1237 |
|
| 1238 |
esac |
| 1239 |
done |
| 1240 |
|
| 1241 |
if test -n "$ac_prev"; then |
| 1242 |
ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1243 |
as_fn_error $? "missing argument to $ac_option" |
| 1244 |
fi |
| 1245 |
|
| 1246 |
if test -n "$ac_unrecognized_opts"; then |
| 1247 |
case $enable_option_checking in |
| 1248 |
no) ;; |
| 1249 |
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
| 1250 |
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1251 |
esac |
| 1252 |
fi |
| 1253 |
|
| 1254 |
# Check all directory arguments for consistency. |
| 1255 |
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1256 |
datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1257 |
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1258 |
libdir localedir mandir |
| 1259 |
do |
| 1260 |
eval ac_val=\$$ac_var |
| 1261 |
# Remove trailing slashes. |
| 1262 |
case $ac_val in |
| 1263 |
*/ ) |
| 1264 |
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1265 |
eval $ac_var=\$ac_val;; |
| 1266 |
esac |
| 1267 |
# Be sure to have absolute directory names. |
| 1268 |
case $ac_val in |
| 1269 |
[\\/$]* | ?:[\\/]* ) continue;; |
| 1270 |
NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1271 |
esac |
| 1272 |
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
| 1273 |
done |
| 1274 |
|
| 1275 |
# There might be people who depend on the old broken behavior: `$host' |
| 1276 |
# used to hold the argument of --host etc. |
| 1277 |
# FIXME: To remove some day. |
| 1278 |
build=$build_alias |
| 1279 |
host=$host_alias |
| 1280 |
target=$target_alias |
| 1281 |
|
| 1282 |
# FIXME: To remove some day. |
| 1283 |
if test "x$host_alias" != x; then |
| 1284 |
if test "x$build_alias" = x; then |
| 1285 |
cross_compiling=maybe |
| 1286 |
elif test "x$build_alias" != "x$host_alias"; then |
| 1287 |
cross_compiling=yes |
| 1288 |
fi |
| 1289 |
fi |
| 1290 |
|
| 1291 |
ac_tool_prefix= |
| 1292 |
test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1293 |
|
| 1294 |
test "$silent" = yes && exec 6>/dev/null |
| 1295 |
|
| 1296 |
|
| 1297 |
ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1298 |
ac_ls_di=`ls -di .` && |
| 1299 |
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1300 |
as_fn_error $? "working directory cannot be determined" |
| 1301 |
test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1302 |
as_fn_error $? "pwd does not report name of working directory" |
| 1303 |
|
| 1304 |
|
| 1305 |
# Find the source files, if location was not specified. |
| 1306 |
if test -z "$srcdir"; then |
| 1307 |
ac_srcdir_defaulted=yes |
| 1308 |
# Try the directory containing this script, then the parent directory. |
| 1309 |
ac_confdir=`$as_dirname -- "$as_myself" || |
| 1310 |
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1311 |
X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1312 |
X"$as_myself" : 'X\(//\)$' \| \ |
| 1313 |
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1314 |
$as_echo X"$as_myself" | |
| 1315 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1316 |
s//\1/ |
| 1317 |
q |
| 1318 |
} |
| 1319 |
/^X\(\/\/\)[^/].*/{ |
| 1320 |
s//\1/ |
| 1321 |
q |
| 1322 |
} |
| 1323 |
/^X\(\/\/\)$/{ |
| 1324 |
s//\1/ |
| 1325 |
q |
| 1326 |
} |
| 1327 |
/^X\(\/\).*/{ |
| 1328 |
s//\1/ |
| 1329 |
q |
| 1330 |
} |
| 1331 |
s/.*/./; q'` |
| 1332 |
srcdir=$ac_confdir |
| 1333 |
if test ! -r "$srcdir/$ac_unique_file"; then |
| 1334 |
srcdir=.. |
| 1335 |
fi |
| 1336 |
else |
| 1337 |
ac_srcdir_defaulted=no |
| 1338 |
fi |
| 1339 |
if test ! -r "$srcdir/$ac_unique_file"; then |
| 1340 |
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1341 |
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
| 1342 |
fi |
| 1343 |
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1344 |
ac_abs_confdir=`( |
| 1345 |
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
| 1346 |
pwd)` |
| 1347 |
# When building in place, set srcdir=. |
| 1348 |
if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1349 |
srcdir=. |
| 1350 |
fi |
| 1351 |
# Remove unnecessary trailing slashes from srcdir. |
| 1352 |
# Double slashes in file names in object file debugging info |
| 1353 |
# mess up M-x gdb in Emacs. |
| 1354 |
case $srcdir in |
| 1355 |
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1356 |
esac |
| 1357 |
for ac_var in $ac_precious_vars; do |
| 1358 |
eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1359 |
eval ac_env_${ac_var}_value=\$${ac_var} |
| 1360 |
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1361 |
eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1362 |
done |
| 1363 |
|
| 1364 |
# |
| 1365 |
# Report the --help message. |
| 1366 |
# |
| 1367 |
if test "$ac_init_help" = "long"; then |
| 1368 |
# Omit some internal or obsolete options to make the list less imposing. |
| 1369 |
# This message is too long to be a string in the A/UX 3.1 sh. |
| 1370 |
cat <<_ACEOF |
| 1371 |
\`configure' configures ircd-hybrid TRUNK to adapt to many kinds of systems. |
| 1372 |
|
| 1373 |
Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1374 |
|
| 1375 |
To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1376 |
VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1377 |
|
| 1378 |
Defaults for the options are specified in brackets. |
| 1379 |
|
| 1380 |
Configuration: |
| 1381 |
-h, --help display this help and exit |
| 1382 |
--help=short display options specific to this package |
| 1383 |
--help=recursive display the short help of all the included packages |
| 1384 |
-V, --version display version information and exit |
| 1385 |
-q, --quiet, --silent do not print \`checking ...' messages |
| 1386 |
--cache-file=FILE cache test results in FILE [disabled] |
| 1387 |
-C, --config-cache alias for \`--cache-file=config.cache' |
| 1388 |
-n, --no-create do not create output files |
| 1389 |
--srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1390 |
|
| 1391 |
Installation directories: |
| 1392 |
--prefix=PREFIX install architecture-independent files in PREFIX |
| 1393 |
[$ac_default_prefix] |
| 1394 |
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1395 |
[PREFIX] |
| 1396 |
|
| 1397 |
By default, \`make install' will install all the files in |
| 1398 |
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1399 |
an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1400 |
for instance \`--prefix=\$HOME'. |
| 1401 |
|
| 1402 |
For better control, use the options below. |
| 1403 |
|
| 1404 |
Fine tuning of the installation directories: |
| 1405 |
--bindir=DIR user executables [EPREFIX/bin] |
| 1406 |
--sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1407 |
--libexecdir=DIR program executables [EPREFIX/libexec] |
| 1408 |
--sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1409 |
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1410 |
--localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1411 |
--libdir=DIR object code libraries [EPREFIX/lib] |
| 1412 |
--includedir=DIR C header files [PREFIX/include] |
| 1413 |
--oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1414 |
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1415 |
--datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1416 |
--infodir=DIR info documentation [DATAROOTDIR/info] |
| 1417 |
--localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1418 |
--mandir=DIR man documentation [DATAROOTDIR/man] |
| 1419 |
--docdir=DIR documentation root [DATAROOTDIR/doc/ircd-hybrid] |
| 1420 |
--htmldir=DIR html documentation [DOCDIR] |
| 1421 |
--dvidir=DIR dvi documentation [DOCDIR] |
| 1422 |
--pdfdir=DIR pdf documentation [DOCDIR] |
| 1423 |
--psdir=DIR ps documentation [DOCDIR] |
| 1424 |
_ACEOF |
| 1425 |
|
| 1426 |
cat <<\_ACEOF |
| 1427 |
|
| 1428 |
Program names: |
| 1429 |
--program-prefix=PREFIX prepend PREFIX to installed program names |
| 1430 |
--program-suffix=SUFFIX append SUFFIX to installed program names |
| 1431 |
--program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 1432 |
|
| 1433 |
System types: |
| 1434 |
--build=BUILD configure for building on BUILD [guessed] |
| 1435 |
--host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1436 |
_ACEOF |
| 1437 |
fi |
| 1438 |
|
| 1439 |
if test -n "$ac_init_help"; then |
| 1440 |
case $ac_init_help in |
| 1441 |
short | recursive ) echo "Configuration of ircd-hybrid TRUNK:";; |
| 1442 |
esac |
| 1443 |
cat <<\_ACEOF |
| 1444 |
|
| 1445 |
Optional Features: |
| 1446 |
--disable-option-checking ignore unrecognized --enable/--with options |
| 1447 |
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1448 |
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1449 |
--enable-silent-rules less verbose build output (undo: "make V=1") |
| 1450 |
--disable-silent-rules verbose build output (undo: "make V=0") |
| 1451 |
--enable-maintainer-mode |
| 1452 |
enable make rules and dependencies not useful (and |
| 1453 |
sometimes confusing) to the casual installer |
| 1454 |
--enable-dependency-tracking |
| 1455 |
do not reject slow dependency extractors |
| 1456 |
--disable-dependency-tracking |
| 1457 |
speeds up one-time build |
| 1458 |
--enable-static[=PKGS] build static libraries [default=no] |
| 1459 |
--enable-shared[=PKGS] build shared libraries [default=yes] |
| 1460 |
--enable-fast-install[=PKGS] |
| 1461 |
optimize for fast installation [default=yes] |
| 1462 |
--disable-libtool-lock avoid locking (might break parallel builds) |
| 1463 |
--enable-ltdl-install install libltdl |
| 1464 |
--disable-libpcre Disable PCRE support |
| 1465 |
--enable-openssl=DIR Enable OpenSSL support (DIR optional). |
| 1466 |
--disable-openssl Disable OpenSSL support. |
| 1467 |
--enable-assert Enable assert() statements |
| 1468 |
--enable-kqueue Force kqueue usage. |
| 1469 |
--enable-epoll Force epoll usage. |
| 1470 |
--enable-devpoll Force devpoll usage. |
| 1471 |
--enable-poll Force poll usage. |
| 1472 |
--enable-select Force select usage. |
| 1473 |
--enable-halfops Enable halfops support. |
| 1474 |
--enable-debugging Enable debugging. |
| 1475 |
--enable-warnings Enable compiler warnings. |
| 1476 |
|
| 1477 |
Optional Packages: |
| 1478 |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1479 |
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1480 |
--with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use |
| 1481 |
both] |
| 1482 |
--with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1483 |
--with-sysroot=DIR Search for dependent libraries within DIR |
| 1484 |
(or the compiler's sysroot if not specified). |
| 1485 |
--with-included-ltdl use the GNU ltdl sources included here |
| 1486 |
--with-ltdl-include=DIR use the ltdl headers installed in DIR |
| 1487 |
--with-ltdl-lib=DIR use the libltdl.la installed in DIR |
| 1488 |
|
| 1489 |
Some influential environment variables: |
| 1490 |
CC C compiler command |
| 1491 |
CFLAGS C compiler flags |
| 1492 |
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1493 |
nonstandard directory <lib dir> |
| 1494 |
LIBS libraries to pass to the linker, e.g. -l<library> |
| 1495 |
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
| 1496 |
you have headers in a nonstandard directory <include dir> |
| 1497 |
YACC The `Yet Another Compiler Compiler' implementation to use. |
| 1498 |
Defaults to the first program found out of: `bison -y', `byacc', |
| 1499 |
`yacc'. |
| 1500 |
YFLAGS The list of arguments that will be passed by default to $YACC. |
| 1501 |
This script will default YFLAGS to the empty string to avoid a |
| 1502 |
default value of `-d' given by some make applications. |
| 1503 |
CPP C preprocessor |
| 1504 |
|
| 1505 |
Use these variables to override the choices made by `configure' or to help |
| 1506 |
it to find libraries and programs with nonstandard names/locations. |
| 1507 |
|
| 1508 |
Report bugs to <bugs@ircd-hybrid.org>. |
| 1509 |
_ACEOF |
| 1510 |
ac_status=$? |
| 1511 |
fi |
| 1512 |
|
| 1513 |
if test "$ac_init_help" = "recursive"; then |
| 1514 |
# If there are subdirs, report their specific --help. |
| 1515 |
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1516 |
test -d "$ac_dir" || |
| 1517 |
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1518 |
continue |
| 1519 |
ac_builddir=. |
| 1520 |
|
| 1521 |
case "$ac_dir" in |
| 1522 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1523 |
*) |
| 1524 |
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 1525 |
# A ".." for each directory in $ac_dir_suffix. |
| 1526 |
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 1527 |
case $ac_top_builddir_sub in |
| 1528 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1529 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1530 |
esac ;; |
| 1531 |
esac |
| 1532 |
ac_abs_top_builddir=$ac_pwd |
| 1533 |
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1534 |
# for backward compatibility: |
| 1535 |
ac_top_builddir=$ac_top_build_prefix |
| 1536 |
|
| 1537 |
case $srcdir in |
| 1538 |
.) # We are building in place. |
| 1539 |
ac_srcdir=. |
| 1540 |
ac_top_srcdir=$ac_top_builddir_sub |
| 1541 |
ac_abs_top_srcdir=$ac_pwd ;; |
| 1542 |
[\\/]* | ?:[\\/]* ) # Absolute name. |
| 1543 |
ac_srcdir=$srcdir$ac_dir_suffix; |
| 1544 |
ac_top_srcdir=$srcdir |
| 1545 |
ac_abs_top_srcdir=$srcdir ;; |
| 1546 |
*) # Relative name. |
| 1547 |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1548 |
ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1549 |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 1550 |
esac |
| 1551 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 1552 |
|
| 1553 |
cd "$ac_dir" || { ac_status=$?; continue; } |
| 1554 |
# Check for guested configure. |
| 1555 |
if test -f "$ac_srcdir/configure.gnu"; then |
| 1556 |
echo && |
| 1557 |
$SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1558 |
elif test -f "$ac_srcdir/configure"; then |
| 1559 |
echo && |
| 1560 |
$SHELL "$ac_srcdir/configure" --help=recursive |
| 1561 |
else |
| 1562 |
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1563 |
fi || ac_status=$? |
| 1564 |
cd "$ac_pwd" || { ac_status=$?; break; } |
| 1565 |
done |
| 1566 |
fi |
| 1567 |
|
| 1568 |
test -n "$ac_init_help" && exit $ac_status |
| 1569 |
if $ac_init_version; then |
| 1570 |
cat <<\_ACEOF |
| 1571 |
ircd-hybrid configure TRUNK |
| 1572 |
generated by GNU Autoconf 2.69 |
| 1573 |
|
| 1574 |
Copyright (C) 2012 Free Software Foundation, Inc. |
| 1575 |
This configure script is free software; the Free Software Foundation |
| 1576 |
gives unlimited permission to copy, distribute and modify it. |
| 1577 |
_ACEOF |
| 1578 |
exit |
| 1579 |
fi |
| 1580 |
|
| 1581 |
## ------------------------ ## |
| 1582 |
## Autoconf initialization. ## |
| 1583 |
## ------------------------ ## |
| 1584 |
|
| 1585 |
# ac_fn_c_try_compile LINENO |
| 1586 |
# -------------------------- |
| 1587 |
# Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1588 |
ac_fn_c_try_compile () |
| 1589 |
{ |
| 1590 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1591 |
rm -f conftest.$ac_objext |
| 1592 |
if { { ac_try="$ac_compile" |
| 1593 |
case "(($ac_try" in |
| 1594 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1595 |
*) ac_try_echo=$ac_try;; |
| 1596 |
esac |
| 1597 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1598 |
$as_echo "$ac_try_echo"; } >&5 |
| 1599 |
(eval "$ac_compile") 2>conftest.err |
| 1600 |
ac_status=$? |
| 1601 |
if test -s conftest.err; then |
| 1602 |
grep -v '^ *+' conftest.err >conftest.er1 |
| 1603 |
cat conftest.er1 >&5 |
| 1604 |
mv -f conftest.er1 conftest.err |
| 1605 |
fi |
| 1606 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1607 |
test $ac_status = 0; } && { |
| 1608 |
test -z "$ac_c_werror_flag" || |
| 1609 |
test ! -s conftest.err |
| 1610 |
} && test -s conftest.$ac_objext; then : |
| 1611 |
ac_retval=0 |
| 1612 |
else |
| 1613 |
$as_echo "$as_me: failed program was:" >&5 |
| 1614 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 1615 |
|
| 1616 |
ac_retval=1 |
| 1617 |
fi |
| 1618 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1619 |
as_fn_set_status $ac_retval |
| 1620 |
|
| 1621 |
} # ac_fn_c_try_compile |
| 1622 |
|
| 1623 |
# ac_fn_c_try_link LINENO |
| 1624 |
# ----------------------- |
| 1625 |
# Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1626 |
ac_fn_c_try_link () |
| 1627 |
{ |
| 1628 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1629 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 1630 |
if { { ac_try="$ac_link" |
| 1631 |
case "(($ac_try" in |
| 1632 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1633 |
*) ac_try_echo=$ac_try;; |
| 1634 |
esac |
| 1635 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1636 |
$as_echo "$ac_try_echo"; } >&5 |
| 1637 |
(eval "$ac_link") 2>conftest.err |
| 1638 |
ac_status=$? |
| 1639 |
if test -s conftest.err; then |
| 1640 |
grep -v '^ *+' conftest.err >conftest.er1 |
| 1641 |
cat conftest.er1 >&5 |
| 1642 |
mv -f conftest.er1 conftest.err |
| 1643 |
fi |
| 1644 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1645 |
test $ac_status = 0; } && { |
| 1646 |
test -z "$ac_c_werror_flag" || |
| 1647 |
test ! -s conftest.err |
| 1648 |
} && test -s conftest$ac_exeext && { |
| 1649 |
test "$cross_compiling" = yes || |
| 1650 |
test -x conftest$ac_exeext |
| 1651 |
}; then : |
| 1652 |
ac_retval=0 |
| 1653 |
else |
| 1654 |
$as_echo "$as_me: failed program was:" >&5 |
| 1655 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 1656 |
|
| 1657 |
ac_retval=1 |
| 1658 |
fi |
| 1659 |
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1660 |
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1661 |
# interfere with the next link command; also delete a directory that is |
| 1662 |
# left behind by Apple's compiler. We do this before executing the actions. |
| 1663 |
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1664 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1665 |
as_fn_set_status $ac_retval |
| 1666 |
|
| 1667 |
} # ac_fn_c_try_link |
| 1668 |
|
| 1669 |
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1670 |
# ------------------------------------------------------- |
| 1671 |
# Tests whether HEADER exists and can be compiled using the include files in |
| 1672 |
# INCLUDES, setting the cache variable VAR accordingly. |
| 1673 |
ac_fn_c_check_header_compile () |
| 1674 |
{ |
| 1675 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1676 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1677 |
$as_echo_n "checking for $2... " >&6; } |
| 1678 |
if eval \${$3+:} false; then : |
| 1679 |
$as_echo_n "(cached) " >&6 |
| 1680 |
else |
| 1681 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1682 |
/* end confdefs.h. */ |
| 1683 |
$4 |
| 1684 |
#include <$2> |
| 1685 |
_ACEOF |
| 1686 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 1687 |
eval "$3=yes" |
| 1688 |
else |
| 1689 |
eval "$3=no" |
| 1690 |
fi |
| 1691 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1692 |
fi |
| 1693 |
eval ac_res=\$$3 |
| 1694 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1695 |
$as_echo "$ac_res" >&6; } |
| 1696 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1697 |
|
| 1698 |
} # ac_fn_c_check_header_compile |
| 1699 |
|
| 1700 |
# ac_fn_c_try_cpp LINENO |
| 1701 |
# ---------------------- |
| 1702 |
# Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1703 |
ac_fn_c_try_cpp () |
| 1704 |
{ |
| 1705 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1706 |
if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1707 |
case "(($ac_try" in |
| 1708 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1709 |
*) ac_try_echo=$ac_try;; |
| 1710 |
esac |
| 1711 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1712 |
$as_echo "$ac_try_echo"; } >&5 |
| 1713 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1714 |
ac_status=$? |
| 1715 |
if test -s conftest.err; then |
| 1716 |
grep -v '^ *+' conftest.err >conftest.er1 |
| 1717 |
cat conftest.er1 >&5 |
| 1718 |
mv -f conftest.er1 conftest.err |
| 1719 |
fi |
| 1720 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1721 |
test $ac_status = 0; } > conftest.i && { |
| 1722 |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1723 |
test ! -s conftest.err |
| 1724 |
}; then : |
| 1725 |
ac_retval=0 |
| 1726 |
else |
| 1727 |
$as_echo "$as_me: failed program was:" >&5 |
| 1728 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 1729 |
|
| 1730 |
ac_retval=1 |
| 1731 |
fi |
| 1732 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1733 |
as_fn_set_status $ac_retval |
| 1734 |
|
| 1735 |
} # ac_fn_c_try_cpp |
| 1736 |
|
| 1737 |
# ac_fn_c_try_run LINENO |
| 1738 |
# ---------------------- |
| 1739 |
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1740 |
# that executables *can* be run. |
| 1741 |
ac_fn_c_try_run () |
| 1742 |
{ |
| 1743 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1744 |
if { { ac_try="$ac_link" |
| 1745 |
case "(($ac_try" in |
| 1746 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1747 |
*) ac_try_echo=$ac_try;; |
| 1748 |
esac |
| 1749 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1750 |
$as_echo "$ac_try_echo"; } >&5 |
| 1751 |
(eval "$ac_link") 2>&5 |
| 1752 |
ac_status=$? |
| 1753 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1754 |
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1755 |
{ { case "(($ac_try" in |
| 1756 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1757 |
*) ac_try_echo=$ac_try;; |
| 1758 |
esac |
| 1759 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1760 |
$as_echo "$ac_try_echo"; } >&5 |
| 1761 |
(eval "$ac_try") 2>&5 |
| 1762 |
ac_status=$? |
| 1763 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1764 |
test $ac_status = 0; }; }; then : |
| 1765 |
ac_retval=0 |
| 1766 |
else |
| 1767 |
$as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1768 |
$as_echo "$as_me: failed program was:" >&5 |
| 1769 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 1770 |
|
| 1771 |
ac_retval=$ac_status |
| 1772 |
fi |
| 1773 |
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1774 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1775 |
as_fn_set_status $ac_retval |
| 1776 |
|
| 1777 |
} # ac_fn_c_try_run |
| 1778 |
|
| 1779 |
# ac_fn_c_check_func LINENO FUNC VAR |
| 1780 |
# ---------------------------------- |
| 1781 |
# Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 1782 |
ac_fn_c_check_func () |
| 1783 |
{ |
| 1784 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1785 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1786 |
$as_echo_n "checking for $2... " >&6; } |
| 1787 |
if eval \${$3+:} false; then : |
| 1788 |
$as_echo_n "(cached) " >&6 |
| 1789 |
else |
| 1790 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1791 |
/* end confdefs.h. */ |
| 1792 |
/* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 1793 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 1794 |
#define $2 innocuous_$2 |
| 1795 |
|
| 1796 |
/* System header to define __stub macros and hopefully few prototypes, |
| 1797 |
which can conflict with char $2 (); below. |
| 1798 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 1799 |
<limits.h> exists even on freestanding compilers. */ |
| 1800 |
|
| 1801 |
#ifdef __STDC__ |
| 1802 |
# include <limits.h> |
| 1803 |
#else |
| 1804 |
# include <assert.h> |
| 1805 |
#endif |
| 1806 |
|
| 1807 |
#undef $2 |
| 1808 |
|
| 1809 |
/* Override any GCC internal prototype to avoid an error. |
| 1810 |
Use char because int might match the return type of a GCC |
| 1811 |
builtin and then its argument prototype would still apply. */ |
| 1812 |
#ifdef __cplusplus |
| 1813 |
extern "C" |
| 1814 |
#endif |
| 1815 |
char $2 (); |
| 1816 |
/* The GNU C library defines this for functions which it implements |
| 1817 |
to always fail with ENOSYS. Some functions are actually named |
| 1818 |
something starting with __ and the normal name is an alias. */ |
| 1819 |
#if defined __stub_$2 || defined __stub___$2 |
| 1820 |
choke me |
| 1821 |
#endif |
| 1822 |
|
| 1823 |
int |
| 1824 |
main () |
| 1825 |
{ |
| 1826 |
return $2 (); |
| 1827 |
; |
| 1828 |
return 0; |
| 1829 |
} |
| 1830 |
_ACEOF |
| 1831 |
if ac_fn_c_try_link "$LINENO"; then : |
| 1832 |
eval "$3=yes" |
| 1833 |
else |
| 1834 |
eval "$3=no" |
| 1835 |
fi |
| 1836 |
rm -f core conftest.err conftest.$ac_objext \ |
| 1837 |
conftest$ac_exeext conftest.$ac_ext |
| 1838 |
fi |
| 1839 |
eval ac_res=\$$3 |
| 1840 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1841 |
$as_echo "$ac_res" >&6; } |
| 1842 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1843 |
|
| 1844 |
} # ac_fn_c_check_func |
| 1845 |
|
| 1846 |
# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES |
| 1847 |
# --------------------------------------------- |
| 1848 |
# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR |
| 1849 |
# accordingly. |
| 1850 |
ac_fn_c_check_decl () |
| 1851 |
{ |
| 1852 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1853 |
as_decl_name=`echo $2|sed 's/ *(.*//'` |
| 1854 |
as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` |
| 1855 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 |
| 1856 |
$as_echo_n "checking whether $as_decl_name is declared... " >&6; } |
| 1857 |
if eval \${$3+:} false; then : |
| 1858 |
$as_echo_n "(cached) " >&6 |
| 1859 |
else |
| 1860 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1861 |
/* end confdefs.h. */ |
| 1862 |
$4 |
| 1863 |
int |
| 1864 |
main () |
| 1865 |
{ |
| 1866 |
#ifndef $as_decl_name |
| 1867 |
#ifdef __cplusplus |
| 1868 |
(void) $as_decl_use; |
| 1869 |
#else |
| 1870 |
(void) $as_decl_name; |
| 1871 |
#endif |
| 1872 |
#endif |
| 1873 |
|
| 1874 |
; |
| 1875 |
return 0; |
| 1876 |
} |
| 1877 |
_ACEOF |
| 1878 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 1879 |
eval "$3=yes" |
| 1880 |
else |
| 1881 |
eval "$3=no" |
| 1882 |
fi |
| 1883 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1884 |
fi |
| 1885 |
eval ac_res=\$$3 |
| 1886 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1887 |
$as_echo "$ac_res" >&6; } |
| 1888 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1889 |
|
| 1890 |
} # ac_fn_c_check_decl |
| 1891 |
|
| 1892 |
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 1893 |
# ------------------------------------------- |
| 1894 |
# Tests whether TYPE exists after having included INCLUDES, setting cache |
| 1895 |
# variable VAR accordingly. |
| 1896 |
ac_fn_c_check_type () |
| 1897 |
{ |
| 1898 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1899 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1900 |
$as_echo_n "checking for $2... " >&6; } |
| 1901 |
if eval \${$3+:} false; then : |
| 1902 |
$as_echo_n "(cached) " >&6 |
| 1903 |
else |
| 1904 |
eval "$3=no" |
| 1905 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1906 |
/* end confdefs.h. */ |
| 1907 |
$4 |
| 1908 |
int |
| 1909 |
main () |
| 1910 |
{ |
| 1911 |
if (sizeof ($2)) |
| 1912 |
return 0; |
| 1913 |
; |
| 1914 |
return 0; |
| 1915 |
} |
| 1916 |
_ACEOF |
| 1917 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 1918 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1919 |
/* end confdefs.h. */ |
| 1920 |
$4 |
| 1921 |
int |
| 1922 |
main () |
| 1923 |
{ |
| 1924 |
if (sizeof (($2))) |
| 1925 |
return 0; |
| 1926 |
; |
| 1927 |
return 0; |
| 1928 |
} |
| 1929 |
_ACEOF |
| 1930 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 1931 |
|
| 1932 |
else |
| 1933 |
eval "$3=yes" |
| 1934 |
fi |
| 1935 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1936 |
fi |
| 1937 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1938 |
fi |
| 1939 |
eval ac_res=\$$3 |
| 1940 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1941 |
$as_echo "$ac_res" >&6; } |
| 1942 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1943 |
|
| 1944 |
} # ac_fn_c_check_type |
| 1945 |
|
| 1946 |
# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
| 1947 |
# ---------------------------------------------------- |
| 1948 |
# Tries to find if the field MEMBER exists in type AGGR, after including |
| 1949 |
# INCLUDES, setting cache variable VAR accordingly. |
| 1950 |
ac_fn_c_check_member () |
| 1951 |
{ |
| 1952 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1953 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
| 1954 |
$as_echo_n "checking for $2.$3... " >&6; } |
| 1955 |
if eval \${$4+:} false; then : |
| 1956 |
$as_echo_n "(cached) " >&6 |
| 1957 |
else |
| 1958 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1959 |
/* end confdefs.h. */ |
| 1960 |
$5 |
| 1961 |
int |
| 1962 |
main () |
| 1963 |
{ |
| 1964 |
static $2 ac_aggr; |
| 1965 |
if (ac_aggr.$3) |
| 1966 |
return 0; |
| 1967 |
; |
| 1968 |
return 0; |
| 1969 |
} |
| 1970 |
_ACEOF |
| 1971 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 1972 |
eval "$4=yes" |
| 1973 |
else |
| 1974 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1975 |
/* end confdefs.h. */ |
| 1976 |
$5 |
| 1977 |
int |
| 1978 |
main () |
| 1979 |
{ |
| 1980 |
static $2 ac_aggr; |
| 1981 |
if (sizeof ac_aggr.$3) |
| 1982 |
return 0; |
| 1983 |
; |
| 1984 |
return 0; |
| 1985 |
} |
| 1986 |
_ACEOF |
| 1987 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 1988 |
eval "$4=yes" |
| 1989 |
else |
| 1990 |
eval "$4=no" |
| 1991 |
fi |
| 1992 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1993 |
fi |
| 1994 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1995 |
fi |
| 1996 |
eval ac_res=\$$4 |
| 1997 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1998 |
$as_echo "$ac_res" >&6; } |
| 1999 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2000 |
|
| 2001 |
} # ac_fn_c_check_member |
| 2002 |
|
| 2003 |
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 2004 |
# ------------------------------------------------------- |
| 2005 |
# Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 2006 |
# the include files in INCLUDES and setting the cache variable VAR |
| 2007 |
# accordingly. |
| 2008 |
ac_fn_c_check_header_mongrel () |
| 2009 |
{ |
| 2010 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2011 |
if eval \${$3+:} false; then : |
| 2012 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2013 |
$as_echo_n "checking for $2... " >&6; } |
| 2014 |
if eval \${$3+:} false; then : |
| 2015 |
$as_echo_n "(cached) " >&6 |
| 2016 |
fi |
| 2017 |
eval ac_res=\$$3 |
| 2018 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2019 |
$as_echo "$ac_res" >&6; } |
| 2020 |
else |
| 2021 |
# Is the header compilable? |
| 2022 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 2023 |
$as_echo_n "checking $2 usability... " >&6; } |
| 2024 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2025 |
/* end confdefs.h. */ |
| 2026 |
$4 |
| 2027 |
#include <$2> |
| 2028 |
_ACEOF |
| 2029 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 2030 |
ac_header_compiler=yes |
| 2031 |
else |
| 2032 |
ac_header_compiler=no |
| 2033 |
fi |
| 2034 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2035 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 2036 |
$as_echo "$ac_header_compiler" >&6; } |
| 2037 |
|
| 2038 |
# Is the header present? |
| 2039 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 2040 |
$as_echo_n "checking $2 presence... " >&6; } |
| 2041 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2042 |
/* end confdefs.h. */ |
| 2043 |
#include <$2> |
| 2044 |
_ACEOF |
| 2045 |
if ac_fn_c_try_cpp "$LINENO"; then : |
| 2046 |
ac_header_preproc=yes |
| 2047 |
else |
| 2048 |
ac_header_preproc=no |
| 2049 |
fi |
| 2050 |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 2051 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 2052 |
$as_echo "$ac_header_preproc" >&6; } |
| 2053 |
|
| 2054 |
# So? What about this header? |
| 2055 |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 2056 |
yes:no: ) |
| 2057 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 2058 |
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 2059 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 2060 |
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 2061 |
;; |
| 2062 |
no:yes:* ) |
| 2063 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 2064 |
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 2065 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 2066 |
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 2067 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 2068 |
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 2069 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 2070 |
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 2071 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 2072 |
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 2073 |
( $as_echo "## ----------------------------------- ## |
| 2074 |
## Report this to bugs@ircd-hybrid.org ## |
| 2075 |
## ----------------------------------- ##" |
| 2076 |
) | sed "s/^/$as_me: WARNING: /" >&2 |
| 2077 |
;; |
| 2078 |
esac |
| 2079 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2080 |
$as_echo_n "checking for $2... " >&6; } |
| 2081 |
if eval \${$3+:} false; then : |
| 2082 |
$as_echo_n "(cached) " >&6 |
| 2083 |
else |
| 2084 |
eval "$3=\$ac_header_compiler" |
| 2085 |
fi |
| 2086 |
eval ac_res=\$$3 |
| 2087 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2088 |
$as_echo "$ac_res" >&6; } |
| 2089 |
fi |
| 2090 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2091 |
|
| 2092 |
} # ac_fn_c_check_header_mongrel |
| 2093 |
cat >config.log <<_ACEOF |
| 2094 |
This file contains any messages produced by compilers while |
| 2095 |
running configure, to aid debugging if configure makes a mistake. |
| 2096 |
|
| 2097 |
It was created by ircd-hybrid $as_me TRUNK, which was |
| 2098 |
generated by GNU Autoconf 2.69. Invocation command line was |
| 2099 |
|
| 2100 |
$ $0 $@ |
| 2101 |
|
| 2102 |
_ACEOF |
| 2103 |
exec 5>>config.log |
| 2104 |
{ |
| 2105 |
cat <<_ASUNAME |
| 2106 |
## --------- ## |
| 2107 |
## Platform. ## |
| 2108 |
## --------- ## |
| 2109 |
|
| 2110 |
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2111 |
uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2112 |
uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2113 |
uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2114 |
uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2115 |
|
| 2116 |
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2117 |
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2118 |
|
| 2119 |
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2120 |
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2121 |
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 2122 |
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
| 2123 |
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2124 |
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2125 |
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2126 |
|
| 2127 |
_ASUNAME |
| 2128 |
|
| 2129 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2130 |
for as_dir in $PATH |
| 2131 |
do |
| 2132 |
IFS=$as_save_IFS |
| 2133 |
test -z "$as_dir" && as_dir=. |
| 2134 |
$as_echo "PATH: $as_dir" |
| 2135 |
done |
| 2136 |
IFS=$as_save_IFS |
| 2137 |
|
| 2138 |
} >&5 |
| 2139 |
|
| 2140 |
cat >&5 <<_ACEOF |
| 2141 |
|
| 2142 |
|
| 2143 |
## ----------- ## |
| 2144 |
## Core tests. ## |
| 2145 |
## ----------- ## |
| 2146 |
|
| 2147 |
_ACEOF |
| 2148 |
|
| 2149 |
|
| 2150 |
# Keep a trace of the command line. |
| 2151 |
# Strip out --no-create and --no-recursion so they do not pile up. |
| 2152 |
# Strip out --silent because we don't want to record it for future runs. |
| 2153 |
# Also quote any args containing shell meta-characters. |
| 2154 |
# Make two passes to allow for proper duplicate-argument suppression. |
| 2155 |
ac_configure_args= |
| 2156 |
ac_configure_args0= |
| 2157 |
ac_configure_args1= |
| 2158 |
ac_must_keep_next=false |
| 2159 |
for ac_pass in 1 2 |
| 2160 |
do |
| 2161 |
for ac_arg |
| 2162 |
do |
| 2163 |
case $ac_arg in |
| 2164 |
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2165 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2166 |
| -silent | --silent | --silen | --sile | --sil) |
| 2167 |
continue ;; |
| 2168 |
*\'*) |
| 2169 |
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2170 |
esac |
| 2171 |
case $ac_pass in |
| 2172 |
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
| 2173 |
2) |
| 2174 |
as_fn_append ac_configure_args1 " '$ac_arg'" |
| 2175 |
if test $ac_must_keep_next = true; then |
| 2176 |
ac_must_keep_next=false # Got value, back to normal. |
| 2177 |
else |
| 2178 |
case $ac_arg in |
| 2179 |
*=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2180 |
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2181 |
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2182 |
| -with-* | --with-* | -without-* | --without-* | --x) |
| 2183 |
case "$ac_configure_args0 " in |
| 2184 |
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2185 |
esac |
| 2186 |
;; |
| 2187 |
-* ) ac_must_keep_next=true ;; |
| 2188 |
esac |
| 2189 |
fi |
| 2190 |
as_fn_append ac_configure_args " '$ac_arg'" |
| 2191 |
;; |
| 2192 |
esac |
| 2193 |
done |
| 2194 |
done |
| 2195 |
{ ac_configure_args0=; unset ac_configure_args0;} |
| 2196 |
{ ac_configure_args1=; unset ac_configure_args1;} |
| 2197 |
|
| 2198 |
# When interrupted or exit'd, cleanup temporary files, and complete |
| 2199 |
# config.log. We remove comments because anyway the quotes in there |
| 2200 |
# would cause problems or look ugly. |
| 2201 |
# WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2202 |
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
| 2203 |
trap 'exit_status=$? |
| 2204 |
# Save into config.log some information that might help in debugging. |
| 2205 |
{ |
| 2206 |
echo |
| 2207 |
|
| 2208 |
$as_echo "## ---------------- ## |
| 2209 |
## Cache variables. ## |
| 2210 |
## ---------------- ##" |
| 2211 |
echo |
| 2212 |
# The following way of writing the cache mishandles newlines in values, |
| 2213 |
( |
| 2214 |
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2215 |
eval ac_val=\$$ac_var |
| 2216 |
case $ac_val in #( |
| 2217 |
*${as_nl}*) |
| 2218 |
case $ac_var in #( |
| 2219 |
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 2220 |
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 2221 |
esac |
| 2222 |
case $ac_var in #( |
| 2223 |
_ | IFS | as_nl) ;; #( |
| 2224 |
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 2225 |
*) { eval $ac_var=; unset $ac_var;} ;; |
| 2226 |
esac ;; |
| 2227 |
esac |
| 2228 |
done |
| 2229 |
(set) 2>&1 | |
| 2230 |
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2231 |
*${as_nl}ac_space=\ *) |
| 2232 |
sed -n \ |
| 2233 |
"s/'\''/'\''\\\\'\'''\''/g; |
| 2234 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2235 |
;; #( |
| 2236 |
*) |
| 2237 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 2238 |
;; |
| 2239 |
esac | |
| 2240 |
sort |
| 2241 |
) |
| 2242 |
echo |
| 2243 |
|
| 2244 |
$as_echo "## ----------------- ## |
| 2245 |
## Output variables. ## |
| 2246 |
## ----------------- ##" |
| 2247 |
echo |
| 2248 |
for ac_var in $ac_subst_vars |
| 2249 |
do |
| 2250 |
eval ac_val=\$$ac_var |
| 2251 |
case $ac_val in |
| 2252 |
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2253 |
esac |
| 2254 |
$as_echo "$ac_var='\''$ac_val'\''" |
| 2255 |
done | sort |
| 2256 |
echo |
| 2257 |
|
| 2258 |
if test -n "$ac_subst_files"; then |
| 2259 |
$as_echo "## ------------------- ## |
| 2260 |
## File substitutions. ## |
| 2261 |
## ------------------- ##" |
| 2262 |
echo |
| 2263 |
for ac_var in $ac_subst_files |
| 2264 |
do |
| 2265 |
eval ac_val=\$$ac_var |
| 2266 |
case $ac_val in |
| 2267 |
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2268 |
esac |
| 2269 |
$as_echo "$ac_var='\''$ac_val'\''" |
| 2270 |
done | sort |
| 2271 |
echo |
| 2272 |
fi |
| 2273 |
|
| 2274 |
if test -s confdefs.h; then |
| 2275 |
$as_echo "## ----------- ## |
| 2276 |
## confdefs.h. ## |
| 2277 |
## ----------- ##" |
| 2278 |
echo |
| 2279 |
cat confdefs.h |
| 2280 |
echo |
| 2281 |
fi |
| 2282 |
test "$ac_signal" != 0 && |
| 2283 |
$as_echo "$as_me: caught signal $ac_signal" |
| 2284 |
$as_echo "$as_me: exit $exit_status" |
| 2285 |
} >&5 |
| 2286 |
rm -f core *.core core.conftest.* && |
| 2287 |
rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
| 2288 |
exit $exit_status |
| 2289 |
' 0 |
| 2290 |
for ac_signal in 1 2 13 15; do |
| 2291 |
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
| 2292 |
done |
| 2293 |
ac_signal=0 |
| 2294 |
|
| 2295 |
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 2296 |
rm -f -r conftest* confdefs.h |
| 2297 |
|
| 2298 |
$as_echo "/* confdefs.h */" > confdefs.h |
| 2299 |
|
| 2300 |
# Predefined preprocessor variables. |
| 2301 |
|
| 2302 |
cat >>confdefs.h <<_ACEOF |
| 2303 |
#define PACKAGE_NAME "$PACKAGE_NAME" |
| 2304 |
_ACEOF |
| 2305 |
|
| 2306 |
cat >>confdefs.h <<_ACEOF |
| 2307 |
#define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2308 |
_ACEOF |
| 2309 |
|
| 2310 |
cat >>confdefs.h <<_ACEOF |
| 2311 |
#define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2312 |
_ACEOF |
| 2313 |
|
| 2314 |
cat >>confdefs.h <<_ACEOF |
| 2315 |
#define PACKAGE_STRING "$PACKAGE_STRING" |
| 2316 |
_ACEOF |
| 2317 |
|
| 2318 |
cat >>confdefs.h <<_ACEOF |
| 2319 |
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2320 |
_ACEOF |
| 2321 |
|
| 2322 |
cat >>confdefs.h <<_ACEOF |
| 2323 |
#define PACKAGE_URL "$PACKAGE_URL" |
| 2324 |
_ACEOF |
| 2325 |
|
| 2326 |
|
| 2327 |
# Let the site file select an alternate cache file if it wants to. |
| 2328 |
# Prefer an explicitly selected file to automatically selected ones. |
| 2329 |
ac_site_file1=NONE |
| 2330 |
ac_site_file2=NONE |
| 2331 |
if test -n "$CONFIG_SITE"; then |
| 2332 |
# We do not want a PATH search for config.site. |
| 2333 |
case $CONFIG_SITE in #(( |
| 2334 |
-*) ac_site_file1=./$CONFIG_SITE;; |
| 2335 |
*/*) ac_site_file1=$CONFIG_SITE;; |
| 2336 |
*) ac_site_file1=./$CONFIG_SITE;; |
| 2337 |
esac |
| 2338 |
elif test "x$prefix" != xNONE; then |
| 2339 |
ac_site_file1=$prefix/share/config.site |
| 2340 |
ac_site_file2=$prefix/etc/config.site |
| 2341 |
else |
| 2342 |
ac_site_file1=$ac_default_prefix/share/config.site |
| 2343 |
ac_site_file2=$ac_default_prefix/etc/config.site |
| 2344 |
fi |
| 2345 |
for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
| 2346 |
do |
| 2347 |
test "x$ac_site_file" = xNONE && continue |
| 2348 |
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
| 2349 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2350 |
$as_echo "$as_me: loading site script $ac_site_file" >&6;} |
| 2351 |
sed 's/^/| /' "$ac_site_file" >&5 |
| 2352 |
. "$ac_site_file" \ |
| 2353 |
|| { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2354 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2355 |
as_fn_error $? "failed to load site script $ac_site_file |
| 2356 |
See \`config.log' for more details" "$LINENO" 5; } |
| 2357 |
fi |
| 2358 |
done |
| 2359 |
|
| 2360 |
if test -r "$cache_file"; then |
| 2361 |
# Some versions of bash will fail to source /dev/null (special files |
| 2362 |
# actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2363 |
if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 2364 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2365 |
$as_echo "$as_me: loading cache $cache_file" >&6;} |
| 2366 |
case $cache_file in |
| 2367 |
[\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2368 |
*) . "./$cache_file";; |
| 2369 |
esac |
| 2370 |
fi |
| 2371 |
else |
| 2372 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2373 |
$as_echo "$as_me: creating cache $cache_file" >&6;} |
| 2374 |
>$cache_file |
| 2375 |
fi |
| 2376 |
|
| 2377 |
as_fn_append ac_func_list " strtok_r" |
| 2378 |
as_fn_append ac_func_list " usleep" |
| 2379 |
as_fn_append ac_func_list " strlcat" |
| 2380 |
as_fn_append ac_func_list " strlcpy" |
| 2381 |
as_fn_append ac_header_list " crypt.h" |
| 2382 |
as_fn_append ac_header_list " sys/resource.h" |
| 2383 |
as_fn_append ac_header_list " sys/param.h" |
| 2384 |
as_fn_append ac_header_list " types.h" |
| 2385 |
as_fn_append ac_header_list " socket.h" |
| 2386 |
as_fn_append ac_header_list " sys/wait.h" |
| 2387 |
as_fn_append ac_header_list " wait.h" |
| 2388 |
# Check that the precious variables saved in the cache have kept the same |
| 2389 |
# value. |
| 2390 |
ac_cache_corrupted=false |
| 2391 |
for ac_var in $ac_precious_vars; do |
| 2392 |
eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2393 |
eval ac_new_set=\$ac_env_${ac_var}_set |
| 2394 |
eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2395 |
eval ac_new_val=\$ac_env_${ac_var}_value |
| 2396 |
case $ac_old_set,$ac_new_set in |
| 2397 |
set,) |
| 2398 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 2399 |
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 2400 |
ac_cache_corrupted=: ;; |
| 2401 |
,set) |
| 2402 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 2403 |
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 2404 |
ac_cache_corrupted=: ;; |
| 2405 |
,);; |
| 2406 |
*) |
| 2407 |
if test "x$ac_old_val" != "x$ac_new_val"; then |
| 2408 |
# differences in whitespace do not lead to failure. |
| 2409 |
ac_old_val_w=`echo x $ac_old_val` |
| 2410 |
ac_new_val_w=`echo x $ac_new_val` |
| 2411 |
if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 2412 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 2413 |
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2414 |
ac_cache_corrupted=: |
| 2415 |
else |
| 2416 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 2417 |
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2418 |
eval $ac_var=\$ac_old_val |
| 2419 |
fi |
| 2420 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 2421 |
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 2422 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 2423 |
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
| 2424 |
fi;; |
| 2425 |
esac |
| 2426 |
# Pass precious variables to config.status. |
| 2427 |
if test "$ac_new_set" = set; then |
| 2428 |
case $ac_new_val in |
| 2429 |
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2430 |
*) ac_arg=$ac_var=$ac_new_val ;; |
| 2431 |
esac |
| 2432 |
case " $ac_configure_args " in |
| 2433 |
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 2434 |
*) as_fn_append ac_configure_args " '$ac_arg'" ;; |
| 2435 |
esac |
| 2436 |
fi |
| 2437 |
done |
| 2438 |
if $ac_cache_corrupted; then |
| 2439 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2440 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2441 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 2442 |
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 2443 |
as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
| 2444 |
fi |
| 2445 |
## -------------------- ## |
| 2446 |
## Main body of script. ## |
| 2447 |
## -------------------- ## |
| 2448 |
|
| 2449 |
ac_ext=c |
| 2450 |
ac_cpp='$CPP $CPPFLAGS' |
| 2451 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2452 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2453 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2454 |
|
| 2455 |
|
| 2456 |
am__api_version='1.13' |
| 2457 |
|
| 2458 |
ac_aux_dir= |
| 2459 |
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 2460 |
if test -f "$ac_dir/install-sh"; then |
| 2461 |
ac_aux_dir=$ac_dir |
| 2462 |
ac_install_sh="$ac_aux_dir/install-sh -c" |
| 2463 |
break |
| 2464 |
elif test -f "$ac_dir/install.sh"; then |
| 2465 |
ac_aux_dir=$ac_dir |
| 2466 |
ac_install_sh="$ac_aux_dir/install.sh -c" |
| 2467 |
break |
| 2468 |
elif test -f "$ac_dir/shtool"; then |
| 2469 |
ac_aux_dir=$ac_dir |
| 2470 |
ac_install_sh="$ac_aux_dir/shtool install -c" |
| 2471 |
break |
| 2472 |
fi |
| 2473 |
done |
| 2474 |
if test -z "$ac_aux_dir"; then |
| 2475 |
as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
| 2476 |
fi |
| 2477 |
|
| 2478 |
# These three variables are undocumented and unsupported, |
| 2479 |
# and are intended to be withdrawn in a future Autoconf release. |
| 2480 |
# They can cause serious problems if a builder's source tree is in a directory |
| 2481 |
# whose full name contains unusual characters. |
| 2482 |
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2483 |
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2484 |
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2485 |
|
| 2486 |
|
| 2487 |
# Find a good install program. We prefer a C program (faster), |
| 2488 |
# so one script is as good as another. But avoid the broken or |
| 2489 |
# incompatible versions: |
| 2490 |
# SysV /etc/install, /usr/sbin/install |
| 2491 |
# SunOS /usr/etc/install |
| 2492 |
# IRIX /sbin/install |
| 2493 |
# AIX /bin/install |
| 2494 |
# AmigaOS /C/install, which installs bootblocks on floppy discs |
| 2495 |
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 2496 |
# AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 2497 |
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 2498 |
# OS/2's system install, which has a completely different semantic |
| 2499 |
# ./install, which can be erroneously created by make from ./install.sh. |
| 2500 |
# Reject install programs that cannot install multiple files. |
| 2501 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 2502 |
$as_echo_n "checking for a BSD-compatible install... " >&6; } |
| 2503 |
if test -z "$INSTALL"; then |
| 2504 |
if ${ac_cv_path_install+:} false; then : |
| 2505 |
$as_echo_n "(cached) " >&6 |
| 2506 |
else |
| 2507 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2508 |
for as_dir in $PATH |
| 2509 |
do |
| 2510 |
IFS=$as_save_IFS |
| 2511 |
test -z "$as_dir" && as_dir=. |
| 2512 |
# Account for people who put trailing slashes in PATH elements. |
| 2513 |
case $as_dir/ in #(( |
| 2514 |
./ | .// | /[cC]/* | \ |
| 2515 |
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 2516 |
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
| 2517 |
/usr/ucb/* ) ;; |
| 2518 |
*) |
| 2519 |
# OSF1 and SCO ODT 3.0 have their own names for install. |
| 2520 |
# Don't use installbsd from OSF since it installs stuff as root |
| 2521 |
# by default. |
| 2522 |
for ac_prog in ginstall scoinst install; do |
| 2523 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 2524 |
if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 2525 |
if test $ac_prog = install && |
| 2526 |
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2527 |
# AIX install. It has an incompatible calling convention. |
| 2528 |
: |
| 2529 |
elif test $ac_prog = install && |
| 2530 |
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2531 |
# program-specific install script used by HP pwplus--don't use. |
| 2532 |
: |
| 2533 |
else |
| 2534 |
rm -rf conftest.one conftest.two conftest.dir |
| 2535 |
echo one > conftest.one |
| 2536 |
echo two > conftest.two |
| 2537 |
mkdir conftest.dir |
| 2538 |
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 2539 |
test -s conftest.one && test -s conftest.two && |
| 2540 |
test -s conftest.dir/conftest.one && |
| 2541 |
test -s conftest.dir/conftest.two |
| 2542 |
then |
| 2543 |
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 2544 |
break 3 |
| 2545 |
fi |
| 2546 |
fi |
| 2547 |
fi |
| 2548 |
done |
| 2549 |
done |
| 2550 |
;; |
| 2551 |
esac |
| 2552 |
|
| 2553 |
done |
| 2554 |
IFS=$as_save_IFS |
| 2555 |
|
| 2556 |
rm -rf conftest.one conftest.two conftest.dir |
| 2557 |
|
| 2558 |
fi |
| 2559 |
if test "${ac_cv_path_install+set}" = set; then |
| 2560 |
INSTALL=$ac_cv_path_install |
| 2561 |
else |
| 2562 |
# As a last resort, use the slow shell script. Don't cache a |
| 2563 |
# value for INSTALL within a source directory, because that will |
| 2564 |
# break other packages using the cache if that directory is |
| 2565 |
# removed, or if the value is a relative name. |
| 2566 |
INSTALL=$ac_install_sh |
| 2567 |
fi |
| 2568 |
fi |
| 2569 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 2570 |
$as_echo "$INSTALL" >&6; } |
| 2571 |
|
| 2572 |
# Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 2573 |
# It thinks the first close brace ends the variable substitution. |
| 2574 |
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 2575 |
|
| 2576 |
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 2577 |
|
| 2578 |
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 2579 |
|
| 2580 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
| 2581 |
$as_echo_n "checking whether build environment is sane... " >&6; } |
| 2582 |
# Reject unsafe characters in $srcdir or the absolute working directory |
| 2583 |
# name. Accept space and tab only in the latter. |
| 2584 |
am_lf=' |
| 2585 |
' |
| 2586 |
case `pwd` in |
| 2587 |
*[\\\"\#\$\&\'\`$am_lf]*) |
| 2588 |
as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
| 2589 |
esac |
| 2590 |
case $srcdir in |
| 2591 |
*[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
| 2592 |
as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
| 2593 |
esac |
| 2594 |
|
| 2595 |
# Do 'set' in a subshell so we don't clobber the current shell's |
| 2596 |
# arguments. Must try -L first in case configure is actually a |
| 2597 |
# symlink; some systems play weird games with the mod time of symlinks |
| 2598 |
# (eg FreeBSD returns the mod time of the symlink's containing |
| 2599 |
# directory). |
| 2600 |
if ( |
| 2601 |
am_has_slept=no |
| 2602 |
for am_try in 1 2; do |
| 2603 |
echo "timestamp, slept: $am_has_slept" > conftest.file |
| 2604 |
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
| 2605 |
if test "$*" = "X"; then |
| 2606 |
# -L didn't work. |
| 2607 |
set X `ls -t "$srcdir/configure" conftest.file` |
| 2608 |
fi |
| 2609 |
if test "$*" != "X $srcdir/configure conftest.file" \ |
| 2610 |
&& test "$*" != "X conftest.file $srcdir/configure"; then |
| 2611 |
|
| 2612 |
# If neither matched, then we have a broken ls. This can happen |
| 2613 |
# if, for instance, CONFIG_SHELL is bash and it inherits a |
| 2614 |
# broken ls alias from the environment. This has actually |
| 2615 |
# happened. Such a system could not be considered "sane". |
| 2616 |
as_fn_error $? "ls -t appears to fail. Make sure there is not a broken |
| 2617 |
alias in your environment" "$LINENO" 5 |
| 2618 |
fi |
| 2619 |
if test "$2" = conftest.file || test $am_try -eq 2; then |
| 2620 |
break |
| 2621 |
fi |
| 2622 |
# Just in case. |
| 2623 |
sleep 1 |
| 2624 |
am_has_slept=yes |
| 2625 |
done |
| 2626 |
test "$2" = conftest.file |
| 2627 |
) |
| 2628 |
then |
| 2629 |
# Ok. |
| 2630 |
: |
| 2631 |
else |
| 2632 |
as_fn_error $? "newly created file is older than distributed files! |
| 2633 |
Check your system clock" "$LINENO" 5 |
| 2634 |
fi |
| 2635 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2636 |
$as_echo "yes" >&6; } |
| 2637 |
# If we didn't sleep, we still need to ensure time stamps of config.status and |
| 2638 |
# generated files are strictly newer. |
| 2639 |
am_sleep_pid= |
| 2640 |
if grep 'slept: no' conftest.file >/dev/null 2>&1; then |
| 2641 |
( sleep 1 ) & |
| 2642 |
am_sleep_pid=$! |
| 2643 |
fi |
| 2644 |
|
| 2645 |
rm -f conftest.file |
| 2646 |
|
| 2647 |
test "$program_prefix" != NONE && |
| 2648 |
program_transform_name="s&^&$program_prefix&;$program_transform_name" |
| 2649 |
# Use a double $ so make ignores it. |
| 2650 |
test "$program_suffix" != NONE && |
| 2651 |
program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
| 2652 |
# Double any \ or $. |
| 2653 |
# By default was `s,x,x', remove it if useless. |
| 2654 |
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
| 2655 |
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
| 2656 |
|
| 2657 |
# expand $ac_aux_dir to an absolute path |
| 2658 |
am_aux_dir=`cd $ac_aux_dir && pwd` |
| 2659 |
|
| 2660 |
if test x"${MISSING+set}" != xset; then |
| 2661 |
case $am_aux_dir in |
| 2662 |
*\ * | *\ *) |
| 2663 |
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
| 2664 |
*) |
| 2665 |
MISSING="\${SHELL} $am_aux_dir/missing" ;; |
| 2666 |
esac |
| 2667 |
fi |
| 2668 |
# Use eval to expand $SHELL |
| 2669 |
if eval "$MISSING --is-lightweight"; then |
| 2670 |
am_missing_run="$MISSING " |
| 2671 |
else |
| 2672 |
am_missing_run= |
| 2673 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
| 2674 |
$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} |
| 2675 |
fi |
| 2676 |
|
| 2677 |
if test x"${install_sh}" != xset; then |
| 2678 |
case $am_aux_dir in |
| 2679 |
*\ * | *\ *) |
| 2680 |
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
| 2681 |
*) |
| 2682 |
install_sh="\${SHELL} $am_aux_dir/install-sh" |
| 2683 |
esac |
| 2684 |
fi |
| 2685 |
|
| 2686 |
# Installed binaries are usually stripped using 'strip' when the user |
| 2687 |
# run "make install-strip". However 'strip' might not be the right |
| 2688 |
# tool to use in cross-compilation environments, therefore Automake |
| 2689 |
# will honor the 'STRIP' environment variable to overrule this program. |
| 2690 |
if test "$cross_compiling" != no; then |
| 2691 |
if test -n "$ac_tool_prefix"; then |
| 2692 |
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 2693 |
set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 2694 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2695 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 2696 |
if ${ac_cv_prog_STRIP+:} false; then : |
| 2697 |
$as_echo_n "(cached) " >&6 |
| 2698 |
else |
| 2699 |
if test -n "$STRIP"; then |
| 2700 |
ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 2701 |
else |
| 2702 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2703 |
for as_dir in $PATH |
| 2704 |
do |
| 2705 |
IFS=$as_save_IFS |
| 2706 |
test -z "$as_dir" && as_dir=. |
| 2707 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 2708 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2709 |
ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 2710 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2711 |
break 2 |
| 2712 |
fi |
| 2713 |
done |
| 2714 |
done |
| 2715 |
IFS=$as_save_IFS |
| 2716 |
|
| 2717 |
fi |
| 2718 |
fi |
| 2719 |
STRIP=$ac_cv_prog_STRIP |
| 2720 |
if test -n "$STRIP"; then |
| 2721 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 2722 |
$as_echo "$STRIP" >&6; } |
| 2723 |
else |
| 2724 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2725 |
$as_echo "no" >&6; } |
| 2726 |
fi |
| 2727 |
|
| 2728 |
|
| 2729 |
fi |
| 2730 |
if test -z "$ac_cv_prog_STRIP"; then |
| 2731 |
ac_ct_STRIP=$STRIP |
| 2732 |
# Extract the first word of "strip", so it can be a program name with args. |
| 2733 |
set dummy strip; ac_word=$2 |
| 2734 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2735 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 2736 |
if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
| 2737 |
$as_echo_n "(cached) " >&6 |
| 2738 |
else |
| 2739 |
if test -n "$ac_ct_STRIP"; then |
| 2740 |
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 2741 |
else |
| 2742 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2743 |
for as_dir in $PATH |
| 2744 |
do |
| 2745 |
IFS=$as_save_IFS |
| 2746 |
test -z "$as_dir" && as_dir=. |
| 2747 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 2748 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2749 |
ac_cv_prog_ac_ct_STRIP="strip" |
| 2750 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2751 |
break 2 |
| 2752 |
fi |
| 2753 |
done |
| 2754 |
done |
| 2755 |
IFS=$as_save_IFS |
| 2756 |
|
| 2757 |
fi |
| 2758 |
fi |
| 2759 |
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 2760 |
if test -n "$ac_ct_STRIP"; then |
| 2761 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 2762 |
$as_echo "$ac_ct_STRIP" >&6; } |
| 2763 |
else |
| 2764 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2765 |
$as_echo "no" >&6; } |
| 2766 |
fi |
| 2767 |
|
| 2768 |
if test "x$ac_ct_STRIP" = x; then |
| 2769 |
STRIP=":" |
| 2770 |
else |
| 2771 |
case $cross_compiling:$ac_tool_warned in |
| 2772 |
yes:) |
| 2773 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2774 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2775 |
ac_tool_warned=yes ;; |
| 2776 |
esac |
| 2777 |
STRIP=$ac_ct_STRIP |
| 2778 |
fi |
| 2779 |
else |
| 2780 |
STRIP="$ac_cv_prog_STRIP" |
| 2781 |
fi |
| 2782 |
|
| 2783 |
fi |
| 2784 |
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
| 2785 |
|
| 2786 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
| 2787 |
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
| 2788 |
if test -z "$MKDIR_P"; then |
| 2789 |
if ${ac_cv_path_mkdir+:} false; then : |
| 2790 |
$as_echo_n "(cached) " >&6 |
| 2791 |
else |
| 2792 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2793 |
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 2794 |
do |
| 2795 |
IFS=$as_save_IFS |
| 2796 |
test -z "$as_dir" && as_dir=. |
| 2797 |
for ac_prog in mkdir gmkdir; do |
| 2798 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 2799 |
as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
| 2800 |
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 2801 |
'mkdir (GNU coreutils) '* | \ |
| 2802 |
'mkdir (coreutils) '* | \ |
| 2803 |
'mkdir (fileutils) '4.1*) |
| 2804 |
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
| 2805 |
break 3;; |
| 2806 |
esac |
| 2807 |
done |
| 2808 |
done |
| 2809 |
done |
| 2810 |
IFS=$as_save_IFS |
| 2811 |
|
| 2812 |
fi |
| 2813 |
|
| 2814 |
test -d ./--version && rmdir ./--version |
| 2815 |
if test "${ac_cv_path_mkdir+set}" = set; then |
| 2816 |
MKDIR_P="$ac_cv_path_mkdir -p" |
| 2817 |
else |
| 2818 |
# As a last resort, use the slow shell script. Don't cache a |
| 2819 |
# value for MKDIR_P within a source directory, because that will |
| 2820 |
# break other packages using the cache if that directory is |
| 2821 |
# removed, or if the value is a relative name. |
| 2822 |
MKDIR_P="$ac_install_sh -d" |
| 2823 |
fi |
| 2824 |
fi |
| 2825 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
| 2826 |
$as_echo "$MKDIR_P" >&6; } |
| 2827 |
|
| 2828 |
for ac_prog in gawk mawk nawk awk |
| 2829 |
do |
| 2830 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2831 |
set dummy $ac_prog; ac_word=$2 |
| 2832 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2833 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 2834 |
if ${ac_cv_prog_AWK+:} false; then : |
| 2835 |
$as_echo_n "(cached) " >&6 |
| 2836 |
else |
| 2837 |
if test -n "$AWK"; then |
| 2838 |
ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 2839 |
else |
| 2840 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2841 |
for as_dir in $PATH |
| 2842 |
do |
| 2843 |
IFS=$as_save_IFS |
| 2844 |
test -z "$as_dir" && as_dir=. |
| 2845 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 2846 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2847 |
ac_cv_prog_AWK="$ac_prog" |
| 2848 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2849 |
break 2 |
| 2850 |
fi |
| 2851 |
done |
| 2852 |
done |
| 2853 |
IFS=$as_save_IFS |
| 2854 |
|
| 2855 |
fi |
| 2856 |
fi |
| 2857 |
AWK=$ac_cv_prog_AWK |
| 2858 |
if test -n "$AWK"; then |
| 2859 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
| 2860 |
$as_echo "$AWK" >&6; } |
| 2861 |
else |
| 2862 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2863 |
$as_echo "no" >&6; } |
| 2864 |
fi |
| 2865 |
|
| 2866 |
|
| 2867 |
test -n "$AWK" && break |
| 2868 |
done |
| 2869 |
|
| 2870 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 2871 |
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 2872 |
set x ${MAKE-make} |
| 2873 |
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 2874 |
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
| 2875 |
$as_echo_n "(cached) " >&6 |
| 2876 |
else |
| 2877 |
cat >conftest.make <<\_ACEOF |
| 2878 |
SHELL = /bin/sh |
| 2879 |
all: |
| 2880 |
@echo '@@@%%%=$(MAKE)=@@@%%%' |
| 2881 |
_ACEOF |
| 2882 |
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
| 2883 |
case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 2884 |
*@@@%%%=?*=@@@%%%*) |
| 2885 |
eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 2886 |
*) |
| 2887 |
eval ac_cv_prog_make_${ac_make}_set=no;; |
| 2888 |
esac |
| 2889 |
rm -f conftest.make |
| 2890 |
fi |
| 2891 |
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 2892 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2893 |
$as_echo "yes" >&6; } |
| 2894 |
SET_MAKE= |
| 2895 |
else |
| 2896 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2897 |
$as_echo "no" >&6; } |
| 2898 |
SET_MAKE="MAKE=${MAKE-make}" |
| 2899 |
fi |
| 2900 |
|
| 2901 |
rm -rf .tst 2>/dev/null |
| 2902 |
mkdir .tst 2>/dev/null |
| 2903 |
if test -d .tst; then |
| 2904 |
am__leading_dot=. |
| 2905 |
else |
| 2906 |
am__leading_dot=_ |
| 2907 |
fi |
| 2908 |
rmdir .tst 2>/dev/null |
| 2909 |
|
| 2910 |
# Check whether --enable-silent-rules was given. |
| 2911 |
if test "${enable_silent_rules+set}" = set; then : |
| 2912 |
enableval=$enable_silent_rules; |
| 2913 |
fi |
| 2914 |
|
| 2915 |
case $enable_silent_rules in # ((( |
| 2916 |
yes) AM_DEFAULT_VERBOSITY=0;; |
| 2917 |
no) AM_DEFAULT_VERBOSITY=1;; |
| 2918 |
*) AM_DEFAULT_VERBOSITY=1;; |
| 2919 |
esac |
| 2920 |
am_make=${MAKE-make} |
| 2921 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 |
| 2922 |
$as_echo_n "checking whether $am_make supports nested variables... " >&6; } |
| 2923 |
if ${am_cv_make_support_nested_variables+:} false; then : |
| 2924 |
$as_echo_n "(cached) " >&6 |
| 2925 |
else |
| 2926 |
if $as_echo 'TRUE=$(BAR$(V)) |
| 2927 |
BAR0=false |
| 2928 |
BAR1=true |
| 2929 |
V=1 |
| 2930 |
am__doit: |
| 2931 |
@$(TRUE) |
| 2932 |
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then |
| 2933 |
am_cv_make_support_nested_variables=yes |
| 2934 |
else |
| 2935 |
am_cv_make_support_nested_variables=no |
| 2936 |
fi |
| 2937 |
fi |
| 2938 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 |
| 2939 |
$as_echo "$am_cv_make_support_nested_variables" >&6; } |
| 2940 |
if test $am_cv_make_support_nested_variables = yes; then |
| 2941 |
AM_V='$(V)' |
| 2942 |
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' |
| 2943 |
else |
| 2944 |
AM_V=$AM_DEFAULT_VERBOSITY |
| 2945 |
AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY |
| 2946 |
fi |
| 2947 |
AM_BACKSLASH='\' |
| 2948 |
|
| 2949 |
if test "`cd $srcdir && pwd`" != "`pwd`"; then |
| 2950 |
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
| 2951 |
# is not polluted with repeated "-I." |
| 2952 |
am__isrc=' -I$(srcdir)' |
| 2953 |
# test to see if srcdir already configured |
| 2954 |
if test -f $srcdir/config.status; then |
| 2955 |
as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
| 2956 |
fi |
| 2957 |
fi |
| 2958 |
|
| 2959 |
# test whether we have cygpath |
| 2960 |
if test -z "$CYGPATH_W"; then |
| 2961 |
if (cygpath --version) >/dev/null 2>/dev/null; then |
| 2962 |
CYGPATH_W='cygpath -w' |
| 2963 |
else |
| 2964 |
CYGPATH_W=echo |
| 2965 |
fi |
| 2966 |
fi |
| 2967 |
|
| 2968 |
|
| 2969 |
# Define the identity of the package. |
| 2970 |
PACKAGE='ircd-hybrid' |
| 2971 |
VERSION='TRUNK' |
| 2972 |
|
| 2973 |
|
| 2974 |
cat >>confdefs.h <<_ACEOF |
| 2975 |
#define PACKAGE "$PACKAGE" |
| 2976 |
_ACEOF |
| 2977 |
|
| 2978 |
|
| 2979 |
cat >>confdefs.h <<_ACEOF |
| 2980 |
#define VERSION "$VERSION" |
| 2981 |
_ACEOF |
| 2982 |
|
| 2983 |
# Some tools Automake needs. |
| 2984 |
|
| 2985 |
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 2986 |
|
| 2987 |
|
| 2988 |
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 2989 |
|
| 2990 |
|
| 2991 |
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 2992 |
|
| 2993 |
|
| 2994 |
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 2995 |
|
| 2996 |
|
| 2997 |
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 2998 |
|
| 2999 |
# For better backward compatibility. To be removed once Automake 1.9.x |
| 3000 |
# dies out for good. For more background, see: |
| 3001 |
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> |
| 3002 |
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> |
| 3003 |
mkdir_p='$(MKDIR_P)' |
| 3004 |
|
| 3005 |
# We need awk for the "check" target. The system "awk" is bad on |
| 3006 |
# some platforms. |
| 3007 |
# Always define AMTAR for backward compatibility. Yes, it's still used |
| 3008 |
# in the wild :-( We should find a proper way to deprecate it ... |
| 3009 |
AMTAR='$${TAR-tar}' |
| 3010 |
|
| 3011 |
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
| 3012 |
|
| 3013 |
|
| 3014 |
|
| 3015 |
|
| 3016 |
|
| 3017 |
|
| 3018 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
| 3019 |
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } |
| 3020 |
# Check whether --enable-maintainer-mode was given. |
| 3021 |
if test "${enable_maintainer_mode+set}" = set; then : |
| 3022 |
enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
| 3023 |
else |
| 3024 |
USE_MAINTAINER_MODE=no |
| 3025 |
fi |
| 3026 |
|
| 3027 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
| 3028 |
$as_echo "$USE_MAINTAINER_MODE" >&6; } |
| 3029 |
if test $USE_MAINTAINER_MODE = yes; then |
| 3030 |
MAINTAINER_MODE_TRUE= |
| 3031 |
MAINTAINER_MODE_FALSE='#' |
| 3032 |
else |
| 3033 |
MAINTAINER_MODE_TRUE='#' |
| 3034 |
MAINTAINER_MODE_FALSE= |
| 3035 |
fi |
| 3036 |
|
| 3037 |
MAINT=$MAINTAINER_MODE_TRUE |
| 3038 |
|
| 3039 |
|
| 3040 |
ac_config_headers="$ac_config_headers config.h" |
| 3041 |
|
| 3042 |
|
| 3043 |
|
| 3044 |
# Checks for programs. |
| 3045 |
DEPDIR="${am__leading_dot}deps" |
| 3046 |
|
| 3047 |
ac_config_commands="$ac_config_commands depfiles" |
| 3048 |
|
| 3049 |
|
| 3050 |
am_make=${MAKE-make} |
| 3051 |
cat > confinc << 'END' |
| 3052 |
am__doit: |
| 3053 |
@echo this is the am__doit target |
| 3054 |
.PHONY: am__doit |
| 3055 |
END |
| 3056 |
# If we don't find an include directive, just comment out the code. |
| 3057 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
| 3058 |
$as_echo_n "checking for style of include used by $am_make... " >&6; } |
| 3059 |
am__include="#" |
| 3060 |
am__quote= |
| 3061 |
_am_result=none |
| 3062 |
# First try GNU make style include. |
| 3063 |
echo "include confinc" > confmf |
| 3064 |
# Ignore all kinds of additional output from 'make'. |
| 3065 |
case `$am_make -s -f confmf 2> /dev/null` in #( |
| 3066 |
*the\ am__doit\ target*) |
| 3067 |
am__include=include |
| 3068 |
am__quote= |
| 3069 |
_am_result=GNU |
| 3070 |
;; |
| 3071 |
esac |
| 3072 |
# Now try BSD make style include. |
| 3073 |
if test "$am__include" = "#"; then |
| 3074 |
echo '.include "confinc"' > confmf |
| 3075 |
case `$am_make -s -f confmf 2> /dev/null` in #( |
| 3076 |
*the\ am__doit\ target*) |
| 3077 |
am__include=.include |
| 3078 |
am__quote="\"" |
| 3079 |
_am_result=BSD |
| 3080 |
;; |
| 3081 |
esac |
| 3082 |
fi |
| 3083 |
|
| 3084 |
|
| 3085 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
| 3086 |
$as_echo "$_am_result" >&6; } |
| 3087 |
rm -f confinc confmf |
| 3088 |
|
| 3089 |
# Check whether --enable-dependency-tracking was given. |
| 3090 |
if test "${enable_dependency_tracking+set}" = set; then : |
| 3091 |
enableval=$enable_dependency_tracking; |
| 3092 |
fi |
| 3093 |
|
| 3094 |
if test "x$enable_dependency_tracking" != xno; then |
| 3095 |
am_depcomp="$ac_aux_dir/depcomp" |
| 3096 |
AMDEPBACKSLASH='\' |
| 3097 |
am__nodep='_no' |
| 3098 |
fi |
| 3099 |
if test "x$enable_dependency_tracking" != xno; then |
| 3100 |
AMDEP_TRUE= |
| 3101 |
AMDEP_FALSE='#' |
| 3102 |
else |
| 3103 |
AMDEP_TRUE='#' |
| 3104 |
AMDEP_FALSE= |
| 3105 |
fi |
| 3106 |
|
| 3107 |
|
| 3108 |
ac_ext=c |
| 3109 |
ac_cpp='$CPP $CPPFLAGS' |
| 3110 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3111 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3112 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3113 |
if test -n "$ac_tool_prefix"; then |
| 3114 |
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 3115 |
set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 3116 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3117 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 3118 |
if ${ac_cv_prog_CC+:} false; then : |
| 3119 |
$as_echo_n "(cached) " >&6 |
| 3120 |
else |
| 3121 |
if test -n "$CC"; then |
| 3122 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3123 |
else |
| 3124 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3125 |
for as_dir in $PATH |
| 3126 |
do |
| 3127 |
IFS=$as_save_IFS |
| 3128 |
test -z "$as_dir" && as_dir=. |
| 3129 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3130 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3131 |
ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 3132 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3133 |
break 2 |
| 3134 |
fi |
| 3135 |
done |
| 3136 |
done |
| 3137 |
IFS=$as_save_IFS |
| 3138 |
|
| 3139 |
fi |
| 3140 |
fi |
| 3141 |
CC=$ac_cv_prog_CC |
| 3142 |
if test -n "$CC"; then |
| 3143 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3144 |
$as_echo "$CC" >&6; } |
| 3145 |
else |
| 3146 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3147 |
$as_echo "no" >&6; } |
| 3148 |
fi |
| 3149 |
|
| 3150 |
|
| 3151 |
fi |
| 3152 |
if test -z "$ac_cv_prog_CC"; then |
| 3153 |
ac_ct_CC=$CC |
| 3154 |
# Extract the first word of "gcc", so it can be a program name with args. |
| 3155 |
set dummy gcc; ac_word=$2 |
| 3156 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3157 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 3158 |
if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| 3159 |
$as_echo_n "(cached) " >&6 |
| 3160 |
else |
| 3161 |
if test -n "$ac_ct_CC"; then |
| 3162 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3163 |
else |
| 3164 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3165 |
for as_dir in $PATH |
| 3166 |
do |
| 3167 |
IFS=$as_save_IFS |
| 3168 |
test -z "$as_dir" && as_dir=. |
| 3169 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3170 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3171 |
ac_cv_prog_ac_ct_CC="gcc" |
| 3172 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3173 |
break 2 |
| 3174 |
fi |
| 3175 |
done |
| 3176 |
done |
| 3177 |
IFS=$as_save_IFS |
| 3178 |
|
| 3179 |
fi |
| 3180 |
fi |
| 3181 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3182 |
if test -n "$ac_ct_CC"; then |
| 3183 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3184 |
$as_echo "$ac_ct_CC" >&6; } |
| 3185 |
else |
| 3186 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3187 |
$as_echo "no" >&6; } |
| 3188 |
fi |
| 3189 |
|
| 3190 |
if test "x$ac_ct_CC" = x; then |
| 3191 |
CC="" |
| 3192 |
else |
| 3193 |
case $cross_compiling:$ac_tool_warned in |
| 3194 |
yes:) |
| 3195 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3196 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3197 |
ac_tool_warned=yes ;; |
| 3198 |
esac |
| 3199 |
CC=$ac_ct_CC |
| 3200 |
fi |
| 3201 |
else |
| 3202 |
CC="$ac_cv_prog_CC" |
| 3203 |
fi |
| 3204 |
|
| 3205 |
if test -z "$CC"; then |
| 3206 |
if test -n "$ac_tool_prefix"; then |
| 3207 |
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 3208 |
set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 3209 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3210 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 3211 |
if ${ac_cv_prog_CC+:} false; then : |
| 3212 |
$as_echo_n "(cached) " >&6 |
| 3213 |
else |
| 3214 |
if test -n "$CC"; then |
| 3215 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3216 |
else |
| 3217 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3218 |
for as_dir in $PATH |
| 3219 |
do |
| 3220 |
IFS=$as_save_IFS |
| 3221 |
test -z "$as_dir" && as_dir=. |
| 3222 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3223 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3224 |
ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 3225 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3226 |
break 2 |
| 3227 |
fi |
| 3228 |
done |
| 3229 |
done |
| 3230 |
IFS=$as_save_IFS |
| 3231 |
|
| 3232 |
fi |
| 3233 |
fi |
| 3234 |
CC=$ac_cv_prog_CC |
| 3235 |
if test -n "$CC"; then |
| 3236 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3237 |
$as_echo "$CC" >&6; } |
| 3238 |
else |
| 3239 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3240 |
$as_echo "no" >&6; } |
| 3241 |
fi |
| 3242 |
|
| 3243 |
|
| 3244 |
fi |
| 3245 |
fi |
| 3246 |
if test -z "$CC"; then |
| 3247 |
# Extract the first word of "cc", so it can be a program name with args. |
| 3248 |
set dummy cc; ac_word=$2 |
| 3249 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3250 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 3251 |
if ${ac_cv_prog_CC+:} false; then : |
| 3252 |
$as_echo_n "(cached) " >&6 |
| 3253 |
else |
| 3254 |
if test -n "$CC"; then |
| 3255 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3256 |
else |
| 3257 |
ac_prog_rejected=no |
| 3258 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3259 |
for as_dir in $PATH |
| 3260 |
do |
| 3261 |
IFS=$as_save_IFS |
| 3262 |
test -z "$as_dir" && as_dir=. |
| 3263 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3264 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3265 |
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3266 |
ac_prog_rejected=yes |
| 3267 |
continue |
| 3268 |
fi |
| 3269 |
ac_cv_prog_CC="cc" |
| 3270 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3271 |
break 2 |
| 3272 |
fi |
| 3273 |
done |
| 3274 |
done |
| 3275 |
IFS=$as_save_IFS |
| 3276 |
|
| 3277 |
if test $ac_prog_rejected = yes; then |
| 3278 |
# We found a bogon in the path, so make sure we never use it. |
| 3279 |
set dummy $ac_cv_prog_CC |
| 3280 |
shift |
| 3281 |
if test $# != 0; then |
| 3282 |
# We chose a different compiler from the bogus one. |
| 3283 |
# However, it has the same basename, so the bogon will be chosen |
| 3284 |
# first if we set CC to just the basename; use the full file name. |
| 3285 |
shift |
| 3286 |
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 3287 |
fi |
| 3288 |
fi |
| 3289 |
fi |
| 3290 |
fi |
| 3291 |
CC=$ac_cv_prog_CC |
| 3292 |
if test -n "$CC"; then |
| 3293 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3294 |
$as_echo "$CC" >&6; } |
| 3295 |
else |
| 3296 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3297 |
$as_echo "no" >&6; } |
| 3298 |
fi |
| 3299 |
|
| 3300 |
|
| 3301 |
fi |
| 3302 |
if test -z "$CC"; then |
| 3303 |
if test -n "$ac_tool_prefix"; then |
| 3304 |
for ac_prog in cl.exe |
| 3305 |
do |
| 3306 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3307 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3308 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3309 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 3310 |
if ${ac_cv_prog_CC+:} false; then : |
| 3311 |
$as_echo_n "(cached) " >&6 |
| 3312 |
else |
| 3313 |
if test -n "$CC"; then |
| 3314 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3315 |
else |
| 3316 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3317 |
for as_dir in $PATH |
| 3318 |
do |
| 3319 |
IFS=$as_save_IFS |
| 3320 |
test -z "$as_dir" && as_dir=. |
| 3321 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3322 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3323 |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 3324 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3325 |
break 2 |
| 3326 |
fi |
| 3327 |
done |
| 3328 |
done |
| 3329 |
IFS=$as_save_IFS |
| 3330 |
|
| 3331 |
fi |
| 3332 |
fi |
| 3333 |
CC=$ac_cv_prog_CC |
| 3334 |
if test -n "$CC"; then |
| 3335 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3336 |
$as_echo "$CC" >&6; } |
| 3337 |
else |
| 3338 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3339 |
$as_echo "no" >&6; } |
| 3340 |
fi |
| 3341 |
|
| 3342 |
|
| 3343 |
test -n "$CC" && break |
| 3344 |
done |
| 3345 |
fi |
| 3346 |
if test -z "$CC"; then |
| 3347 |
ac_ct_CC=$CC |
| 3348 |
for ac_prog in cl.exe |
| 3349 |
do |
| 3350 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3351 |
set dummy $ac_prog; ac_word=$2 |
| 3352 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3353 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 3354 |
if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| 3355 |
$as_echo_n "(cached) " >&6 |
| 3356 |
else |
| 3357 |
if test -n "$ac_ct_CC"; then |
| 3358 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3359 |
else |
| 3360 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3361 |
for as_dir in $PATH |
| 3362 |
do |
| 3363 |
IFS=$as_save_IFS |
| 3364 |
test -z "$as_dir" && as_dir=. |
| 3365 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3366 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3367 |
ac_cv_prog_ac_ct_CC="$ac_prog" |
| 3368 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3369 |
break 2 |
| 3370 |
fi |
| 3371 |
done |
| 3372 |
done |
| 3373 |
IFS=$as_save_IFS |
| 3374 |
|
| 3375 |
fi |
| 3376 |
fi |
| 3377 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3378 |
if test -n "$ac_ct_CC"; then |
| 3379 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3380 |
$as_echo "$ac_ct_CC" >&6; } |
| 3381 |
else |
| 3382 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3383 |
$as_echo "no" >&6; } |
| 3384 |
fi |
| 3385 |
|
| 3386 |
|
| 3387 |
test -n "$ac_ct_CC" && break |
| 3388 |
done |
| 3389 |
|
| 3390 |
if test "x$ac_ct_CC" = x; then |
| 3391 |
CC="" |
| 3392 |
else |
| 3393 |
case $cross_compiling:$ac_tool_warned in |
| 3394 |
yes:) |
| 3395 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3396 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3397 |
ac_tool_warned=yes ;; |
| 3398 |
esac |
| 3399 |
CC=$ac_ct_CC |
| 3400 |
fi |
| 3401 |
fi |
| 3402 |
|
| 3403 |
fi |
| 3404 |
|
| 3405 |
|
| 3406 |
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3407 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3408 |
as_fn_error $? "no acceptable C compiler found in \$PATH |
| 3409 |
See \`config.log' for more details" "$LINENO" 5; } |
| 3410 |
|
| 3411 |
# Provide some information about the compiler. |
| 3412 |
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 3413 |
set X $ac_compile |
| 3414 |
ac_compiler=$2 |
| 3415 |
for ac_option in --version -v -V -qversion; do |
| 3416 |
{ { ac_try="$ac_compiler $ac_option >&5" |
| 3417 |
case "(($ac_try" in |
| 3418 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3419 |
*) ac_try_echo=$ac_try;; |
| 3420 |
esac |
| 3421 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3422 |
$as_echo "$ac_try_echo"; } >&5 |
| 3423 |
(eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 3424 |
ac_status=$? |
| 3425 |
if test -s conftest.err; then |
| 3426 |
sed '10a\ |
| 3427 |
... rest of stderr output deleted ... |
| 3428 |
10q' conftest.err >conftest.er1 |
| 3429 |
cat conftest.er1 >&5 |
| 3430 |
fi |
| 3431 |
rm -f conftest.er1 conftest.err |
| 3432 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3433 |
test $ac_status = 0; } |
| 3434 |
done |
| 3435 |
|
| 3436 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3437 |
/* end confdefs.h. */ |
| 3438 |
|
| 3439 |
int |
| 3440 |
main () |
| 3441 |
{ |
| 3442 |
|
| 3443 |
; |
| 3444 |
return 0; |
| 3445 |
} |
| 3446 |
_ACEOF |
| 3447 |
ac_clean_files_save=$ac_clean_files |
| 3448 |
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
| 3449 |
# Try to create an executable without -o first, disregard a.out. |
| 3450 |
# It will help us diagnose broken compilers, and finding out an intuition |
| 3451 |
# of exeext. |
| 3452 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 3453 |
$as_echo_n "checking whether the C compiler works... " >&6; } |
| 3454 |
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3455 |
|
| 3456 |
# The possible output files: |
| 3457 |
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 3458 |
|
| 3459 |
ac_rmfiles= |
| 3460 |
for ac_file in $ac_files |
| 3461 |
do |
| 3462 |
case $ac_file in |
| 3463 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 3464 |
* ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3465 |
esac |
| 3466 |
done |
| 3467 |
rm -f $ac_rmfiles |
| 3468 |
|
| 3469 |
if { { ac_try="$ac_link_default" |
| 3470 |
case "(($ac_try" in |
| 3471 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3472 |
*) ac_try_echo=$ac_try;; |
| 3473 |
esac |
| 3474 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3475 |
$as_echo "$ac_try_echo"; } >&5 |
| 3476 |
(eval "$ac_link_default") 2>&5 |
| 3477 |
ac_status=$? |
| 3478 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3479 |
test $ac_status = 0; }; then : |
| 3480 |
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 3481 |
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 3482 |
# in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 3483 |
# so that the user can short-circuit this test for compilers unknown to |
| 3484 |
# Autoconf. |
| 3485 |
for ac_file in $ac_files '' |
| 3486 |
do |
| 3487 |
test -f "$ac_file" || continue |
| 3488 |
case $ac_file in |
| 3489 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
| 3490 |
;; |
| 3491 |
[ab].out ) |
| 3492 |
# We found the default executable, but exeext='' is most |
| 3493 |
# certainly right. |
| 3494 |
break;; |
| 3495 |
*.* ) |
| 3496 |
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 3497 |
then :; else |
| 3498 |
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3499 |
fi |
| 3500 |
# We set ac_cv_exeext here because the later test for it is not |
| 3501 |
# safe: cross compilers may not add the suffix if given an `-o' |
| 3502 |
# argument, so we may need to know it at that point already. |
| 3503 |
# Even if this section looks crufty: it has the advantage of |
| 3504 |
# actually working. |
| 3505 |
break;; |
| 3506 |
* ) |
| 3507 |
break;; |
| 3508 |
esac |
| 3509 |
done |
| 3510 |
test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 3511 |
|
| 3512 |
else |
| 3513 |
ac_file='' |
| 3514 |
fi |
| 3515 |
if test -z "$ac_file"; then : |
| 3516 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3517 |
$as_echo "no" >&6; } |
| 3518 |
$as_echo "$as_me: failed program was:" >&5 |
| 3519 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 3520 |
|
| 3521 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3522 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3523 |
as_fn_error 77 "C compiler cannot create executables |
| 3524 |
See \`config.log' for more details" "$LINENO" 5; } |
| 3525 |
else |
| 3526 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3527 |
$as_echo "yes" >&6; } |
| 3528 |
fi |
| 3529 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 3530 |
$as_echo_n "checking for C compiler default output file name... " >&6; } |
| 3531 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3532 |
$as_echo "$ac_file" >&6; } |
| 3533 |
ac_exeext=$ac_cv_exeext |
| 3534 |
|
| 3535 |
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
| 3536 |
ac_clean_files=$ac_clean_files_save |
| 3537 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 3538 |
$as_echo_n "checking for suffix of executables... " >&6; } |
| 3539 |
if { { ac_try="$ac_link" |
| 3540 |
case "(($ac_try" in |
| 3541 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3542 |
*) ac_try_echo=$ac_try;; |
| 3543 |
esac |
| 3544 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3545 |
$as_echo "$ac_try_echo"; } >&5 |
| 3546 |
(eval "$ac_link") 2>&5 |
| 3547 |
ac_status=$? |
| 3548 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3549 |
test $ac_status = 0; }; then : |
| 3550 |
# If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3551 |
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3552 |
# work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3553 |
# `rm'. |
| 3554 |
for ac_file in conftest.exe conftest conftest.*; do |
| 3555 |
test -f "$ac_file" || continue |
| 3556 |
case $ac_file in |
| 3557 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 3558 |
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3559 |
break;; |
| 3560 |
* ) break;; |
| 3561 |
esac |
| 3562 |
done |
| 3563 |
else |
| 3564 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3565 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3566 |
as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 3567 |
See \`config.log' for more details" "$LINENO" 5; } |
| 3568 |
fi |
| 3569 |
rm -f conftest conftest$ac_cv_exeext |
| 3570 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 3571 |
$as_echo "$ac_cv_exeext" >&6; } |
| 3572 |
|
| 3573 |
rm -f conftest.$ac_ext |
| 3574 |
EXEEXT=$ac_cv_exeext |
| 3575 |
ac_exeext=$EXEEXT |
| 3576 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3577 |
/* end confdefs.h. */ |
| 3578 |
#include <stdio.h> |
| 3579 |
int |
| 3580 |
main () |
| 3581 |
{ |
| 3582 |
FILE *f = fopen ("conftest.out", "w"); |
| 3583 |
return ferror (f) || fclose (f) != 0; |
| 3584 |
|
| 3585 |
; |
| 3586 |
return 0; |
| 3587 |
} |
| 3588 |
_ACEOF |
| 3589 |
ac_clean_files="$ac_clean_files conftest.out" |
| 3590 |
# Check that the compiler produces executables we can run. If not, either |
| 3591 |
# the compiler is broken, or we cross compile. |
| 3592 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3593 |
$as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3594 |
if test "$cross_compiling" != yes; then |
| 3595 |
{ { ac_try="$ac_link" |
| 3596 |
case "(($ac_try" in |
| 3597 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3598 |
*) ac_try_echo=$ac_try;; |
| 3599 |
esac |
| 3600 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3601 |
$as_echo "$ac_try_echo"; } >&5 |
| 3602 |
(eval "$ac_link") 2>&5 |
| 3603 |
ac_status=$? |
| 3604 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3605 |
test $ac_status = 0; } |
| 3606 |
if { ac_try='./conftest$ac_cv_exeext' |
| 3607 |
{ { case "(($ac_try" in |
| 3608 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3609 |
*) ac_try_echo=$ac_try;; |
| 3610 |
esac |
| 3611 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3612 |
$as_echo "$ac_try_echo"; } >&5 |
| 3613 |
(eval "$ac_try") 2>&5 |
| 3614 |
ac_status=$? |
| 3615 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3616 |
test $ac_status = 0; }; }; then |
| 3617 |
cross_compiling=no |
| 3618 |
else |
| 3619 |
if test "$cross_compiling" = maybe; then |
| 3620 |
cross_compiling=yes |
| 3621 |
else |
| 3622 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3623 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3624 |
as_fn_error $? "cannot run C compiled programs. |
| 3625 |
If you meant to cross compile, use \`--host'. |
| 3626 |
See \`config.log' for more details" "$LINENO" 5; } |
| 3627 |
fi |
| 3628 |
fi |
| 3629 |
fi |
| 3630 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3631 |
$as_echo "$cross_compiling" >&6; } |
| 3632 |
|
| 3633 |
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 3634 |
ac_clean_files=$ac_clean_files_save |
| 3635 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 3636 |
$as_echo_n "checking for suffix of object files... " >&6; } |
| 3637 |
if ${ac_cv_objext+:} false; then : |
| 3638 |
$as_echo_n "(cached) " >&6 |
| 3639 |
else |
| 3640 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3641 |
/* end confdefs.h. */ |
| 3642 |
|
| 3643 |
int |
| 3644 |
main () |
| 3645 |
{ |
| 3646 |
|
| 3647 |
; |
| 3648 |
return 0; |
| 3649 |
} |
| 3650 |
_ACEOF |
| 3651 |
rm -f conftest.o conftest.obj |
| 3652 |
if { { ac_try="$ac_compile" |
| 3653 |
case "(($ac_try" in |
| 3654 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3655 |
*) ac_try_echo=$ac_try;; |
| 3656 |
esac |
| 3657 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3658 |
$as_echo "$ac_try_echo"; } >&5 |
| 3659 |
(eval "$ac_compile") 2>&5 |
| 3660 |
ac_status=$? |
| 3661 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3662 |
test $ac_status = 0; }; then : |
| 3663 |
for ac_file in conftest.o conftest.obj conftest.*; do |
| 3664 |
test -f "$ac_file" || continue; |
| 3665 |
case $ac_file in |
| 3666 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
| 3667 |
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3668 |
break;; |
| 3669 |
esac |
| 3670 |
done |
| 3671 |
else |
| 3672 |
$as_echo "$as_me: failed program was:" >&5 |
| 3673 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 3674 |
|
| 3675 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3676 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3677 |
as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 3678 |
See \`config.log' for more details" "$LINENO" 5; } |
| 3679 |
fi |
| 3680 |
rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3681 |
fi |
| 3682 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 3683 |
$as_echo "$ac_cv_objext" >&6; } |
| 3684 |
OBJEXT=$ac_cv_objext |
| 3685 |
ac_objext=$OBJEXT |
| 3686 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 3687 |
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| 3688 |
if ${ac_cv_c_compiler_gnu+:} false; then : |
| 3689 |
$as_echo_n "(cached) " >&6 |
| 3690 |
else |
| 3691 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3692 |
/* end confdefs.h. */ |
| 3693 |
|
| 3694 |
int |
| 3695 |
main () |
| 3696 |
{ |
| 3697 |
#ifndef __GNUC__ |
| 3698 |
choke me |
| 3699 |
#endif |
| 3700 |
|
| 3701 |
; |
| 3702 |
return 0; |
| 3703 |
} |
| 3704 |
_ACEOF |
| 3705 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 3706 |
ac_compiler_gnu=yes |
| 3707 |
else |
| 3708 |
ac_compiler_gnu=no |
| 3709 |
fi |
| 3710 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3711 |
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3712 |
|
| 3713 |
fi |
| 3714 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 3715 |
$as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3716 |
if test $ac_compiler_gnu = yes; then |
| 3717 |
GCC=yes |
| 3718 |
else |
| 3719 |
GCC= |
| 3720 |
fi |
| 3721 |
ac_test_CFLAGS=${CFLAGS+set} |
| 3722 |
ac_save_CFLAGS=$CFLAGS |
| 3723 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 3724 |
$as_echo_n "checking whether $CC accepts -g... " >&6; } |
| 3725 |
if ${ac_cv_prog_cc_g+:} false; then : |
| 3726 |
$as_echo_n "(cached) " >&6 |
| 3727 |
else |
| 3728 |
ac_save_c_werror_flag=$ac_c_werror_flag |
| 3729 |
ac_c_werror_flag=yes |
| 3730 |
ac_cv_prog_cc_g=no |
| 3731 |
CFLAGS="-g" |
| 3732 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3733 |
/* end confdefs.h. */ |
| 3734 |
|
| 3735 |
int |
| 3736 |
main () |
| 3737 |
{ |
| 3738 |
|
| 3739 |
; |
| 3740 |
return 0; |
| 3741 |
} |
| 3742 |
_ACEOF |
| 3743 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 3744 |
ac_cv_prog_cc_g=yes |
| 3745 |
else |
| 3746 |
CFLAGS="" |
| 3747 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3748 |
/* end confdefs.h. */ |
| 3749 |
|
| 3750 |
int |
| 3751 |
main () |
| 3752 |
{ |
| 3753 |
|
| 3754 |
; |
| 3755 |
return 0; |
| 3756 |
} |
| 3757 |
_ACEOF |
| 3758 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 3759 |
|
| 3760 |
else |
| 3761 |
ac_c_werror_flag=$ac_save_c_werror_flag |
| 3762 |
CFLAGS="-g" |
| 3763 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3764 |
/* end confdefs.h. */ |
| 3765 |
|
| 3766 |
int |
| 3767 |
main () |
| 3768 |
{ |
| 3769 |
|
| 3770 |
; |
| 3771 |
return 0; |
| 3772 |
} |
| 3773 |
_ACEOF |
| 3774 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 3775 |
ac_cv_prog_cc_g=yes |
| 3776 |
fi |
| 3777 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3778 |
fi |
| 3779 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3780 |
fi |
| 3781 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3782 |
ac_c_werror_flag=$ac_save_c_werror_flag |
| 3783 |
fi |
| 3784 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 3785 |
$as_echo "$ac_cv_prog_cc_g" >&6; } |
| 3786 |
if test "$ac_test_CFLAGS" = set; then |
| 3787 |
CFLAGS=$ac_save_CFLAGS |
| 3788 |
elif test $ac_cv_prog_cc_g = yes; then |
| 3789 |
if test "$GCC" = yes; then |
| 3790 |
CFLAGS="-g -O2" |
| 3791 |
else |
| 3792 |
CFLAGS="-g" |
| 3793 |
fi |
| 3794 |
else |
| 3795 |
if test "$GCC" = yes; then |
| 3796 |
CFLAGS="-O2" |
| 3797 |
else |
| 3798 |
CFLAGS= |
| 3799 |
fi |
| 3800 |
fi |
| 3801 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 3802 |
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 3803 |
if ${ac_cv_prog_cc_c89+:} false; then : |
| 3804 |
$as_echo_n "(cached) " >&6 |
| 3805 |
else |
| 3806 |
ac_cv_prog_cc_c89=no |
| 3807 |
ac_save_CC=$CC |
| 3808 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3809 |
/* end confdefs.h. */ |
| 3810 |
#include <stdarg.h> |
| 3811 |
#include <stdio.h> |
| 3812 |
struct stat; |
| 3813 |
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3814 |
struct buf { int x; }; |
| 3815 |
FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3816 |
static char *e (p, i) |
| 3817 |
char **p; |
| 3818 |
int i; |
| 3819 |
{ |
| 3820 |
return p[i]; |
| 3821 |
} |
| 3822 |
static char *f (char * (*g) (char **, int), char **p, ...) |
| 3823 |
{ |
| 3824 |
char *s; |
| 3825 |
va_list v; |
| 3826 |
va_start (v,p); |
| 3827 |
s = g (p, va_arg (v,int)); |
| 3828 |
va_end (v); |
| 3829 |
return s; |
| 3830 |
} |
| 3831 |
|
| 3832 |
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3833 |
function prototypes and stuff, but not '\xHH' hex character constants. |
| 3834 |
These don't provoke an error unfortunately, instead are silently treated |
| 3835 |
as 'x'. The following induces an error, until -std is added to get |
| 3836 |
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3837 |
array size at least. It's necessary to write '\x00'==0 to get something |
| 3838 |
that's true only with -std. */ |
| 3839 |
int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3840 |
|
| 3841 |
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3842 |
inside strings and character constants. */ |
| 3843 |
#define FOO(x) 'x' |
| 3844 |
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3845 |
|
| 3846 |
int test (int i, double x); |
| 3847 |
struct s1 {int (*f) (int a);}; |
| 3848 |
struct s2 {int (*f) (double a);}; |
| 3849 |
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3850 |
int argc; |
| 3851 |
char **argv; |
| 3852 |
int |
| 3853 |
main () |
| 3854 |
{ |
| 3855 |
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3856 |
; |
| 3857 |
return 0; |
| 3858 |
} |
| 3859 |
_ACEOF |
| 3860 |
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3861 |
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 3862 |
do |
| 3863 |
CC="$ac_save_CC $ac_arg" |
| 3864 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 3865 |
ac_cv_prog_cc_c89=$ac_arg |
| 3866 |
fi |
| 3867 |
rm -f core conftest.err conftest.$ac_objext |
| 3868 |
test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 3869 |
done |
| 3870 |
rm -f conftest.$ac_ext |
| 3871 |
CC=$ac_save_CC |
| 3872 |
|
| 3873 |
fi |
| 3874 |
# AC_CACHE_VAL |
| 3875 |
case "x$ac_cv_prog_cc_c89" in |
| 3876 |
x) |
| 3877 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 3878 |
$as_echo "none needed" >&6; } ;; |
| 3879 |
xno) |
| 3880 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 3881 |
$as_echo "unsupported" >&6; } ;; |
| 3882 |
*) |
| 3883 |
CC="$CC $ac_cv_prog_cc_c89" |
| 3884 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 3885 |
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 3886 |
esac |
| 3887 |
if test "x$ac_cv_prog_cc_c89" != xno; then : |
| 3888 |
|
| 3889 |
fi |
| 3890 |
|
| 3891 |
ac_ext=c |
| 3892 |
ac_cpp='$CPP $CPPFLAGS' |
| 3893 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3894 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3895 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3896 |
|
| 3897 |
depcc="$CC" am_compiler_list= |
| 3898 |
|
| 3899 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 3900 |
$as_echo_n "checking dependency style of $depcc... " >&6; } |
| 3901 |
if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
| 3902 |
$as_echo_n "(cached) " >&6 |
| 3903 |
else |
| 3904 |
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 3905 |
# We make a subdir and do the tests there. Otherwise we can end up |
| 3906 |
# making bogus files that we don't know about and never remove. For |
| 3907 |
# instance it was reported that on HP-UX the gcc test will end up |
| 3908 |
# making a dummy file named 'D' -- because '-MD' means "put the output |
| 3909 |
# in D". |
| 3910 |
rm -rf conftest.dir |
| 3911 |
mkdir conftest.dir |
| 3912 |
# Copy depcomp to subdir because otherwise we won't find it if we're |
| 3913 |
# using a relative directory. |
| 3914 |
cp "$am_depcomp" conftest.dir |
| 3915 |
cd conftest.dir |
| 3916 |
# We will build objects and dependencies in a subdirectory because |
| 3917 |
# it helps to detect inapplicable dependency modes. For instance |
| 3918 |
# both Tru64's cc and ICC support -MD to output dependencies as a |
| 3919 |
# side effect of compilation, but ICC will put the dependencies in |
| 3920 |
# the current directory while Tru64 will put them in the object |
| 3921 |
# directory. |
| 3922 |
mkdir sub |
| 3923 |
|
| 3924 |
am_cv_CC_dependencies_compiler_type=none |
| 3925 |
if test "$am_compiler_list" = ""; then |
| 3926 |
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 3927 |
fi |
| 3928 |
am__universal=false |
| 3929 |
case " $depcc " in #( |
| 3930 |
*\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 3931 |
esac |
| 3932 |
|
| 3933 |
for depmode in $am_compiler_list; do |
| 3934 |
# Setup a source with many dependencies, because some compilers |
| 3935 |
# like to wrap large dependency lists on column 80 (with \), and |
| 3936 |
# we should not choose a depcomp mode which is confused by this. |
| 3937 |
# |
| 3938 |
# We need to recreate these files for each test, as the compiler may |
| 3939 |
# overwrite some of them when testing with obscure command lines. |
| 3940 |
# This happens at least with the AIX C compiler. |
| 3941 |
: > sub/conftest.c |
| 3942 |
for i in 1 2 3 4 5 6; do |
| 3943 |
echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 3944 |
# Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
| 3945 |
# Solaris 10 /bin/sh. |
| 3946 |
echo '/* dummy */' > sub/conftst$i.h |
| 3947 |
done |
| 3948 |
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 3949 |
|
| 3950 |
# We check with '-c' and '-o' for the sake of the "dashmstdout" |
| 3951 |
# mode. It turns out that the SunPro C++ compiler does not properly |
| 3952 |
# handle '-M -o', and we need to detect this. Also, some Intel |
| 3953 |
# versions had trouble with output in subdirs. |
| 3954 |
am__obj=sub/conftest.${OBJEXT-o} |
| 3955 |
am__minus_obj="-o $am__obj" |
| 3956 |
case $depmode in |
| 3957 |
gcc) |
| 3958 |
# This depmode causes a compiler race in universal mode. |
| 3959 |
test "$am__universal" = false || continue |
| 3960 |
;; |
| 3961 |
nosideeffect) |
| 3962 |
# After this tag, mechanisms are not by side-effect, so they'll |
| 3963 |
# only be used when explicitly requested. |
| 3964 |
if test "x$enable_dependency_tracking" = xyes; then |
| 3965 |
continue |
| 3966 |
else |
| 3967 |
break |
| 3968 |
fi |
| 3969 |
;; |
| 3970 |
msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
| 3971 |
# This compiler won't grok '-c -o', but also, the minuso test has |
| 3972 |
# not run yet. These depmodes are late enough in the game, and |
| 3973 |
# so weak that their functioning should not be impacted. |
| 3974 |
am__obj=conftest.${OBJEXT-o} |
| 3975 |
am__minus_obj= |
| 3976 |
;; |
| 3977 |
none) break ;; |
| 3978 |
esac |
| 3979 |
if depmode=$depmode \ |
| 3980 |
source=sub/conftest.c object=$am__obj \ |
| 3981 |
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 3982 |
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 3983 |
>/dev/null 2>conftest.err && |
| 3984 |
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 3985 |
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 3986 |
grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 3987 |
${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 3988 |
# icc doesn't choke on unknown options, it will just issue warnings |
| 3989 |
# or remarks (even with -Werror). So we grep stderr for any message |
| 3990 |
# that says an option was ignored or not supported. |
| 3991 |
# When given -MP, icc 7.0 and 7.1 complain thusly: |
| 3992 |
# icc: Command line warning: ignoring option '-M'; no argument required |
| 3993 |
# The diagnosis changed in icc 8.0: |
| 3994 |
# icc: Command line remark: option '-MP' not supported |
| 3995 |
if (grep 'ignoring option' conftest.err || |
| 3996 |
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 3997 |
am_cv_CC_dependencies_compiler_type=$depmode |
| 3998 |
break |
| 3999 |
fi |
| 4000 |
fi |
| 4001 |
done |
| 4002 |
|
| 4003 |
cd .. |
| 4004 |
rm -rf conftest.dir |
| 4005 |
else |
| 4006 |
am_cv_CC_dependencies_compiler_type=none |
| 4007 |
fi |
| 4008 |
|
| 4009 |
fi |
| 4010 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 4011 |
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
| 4012 |
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 4013 |
|
| 4014 |
if |
| 4015 |
test "x$enable_dependency_tracking" != xno \ |
| 4016 |
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 4017 |
am__fastdepCC_TRUE= |
| 4018 |
am__fastdepCC_FALSE='#' |
| 4019 |
else |
| 4020 |
am__fastdepCC_TRUE='#' |
| 4021 |
am__fastdepCC_FALSE= |
| 4022 |
fi |
| 4023 |
|
| 4024 |
|
| 4025 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 |
| 4026 |
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } |
| 4027 |
if ${ac_cv_prog_cc_c99+:} false; then : |
| 4028 |
$as_echo_n "(cached) " >&6 |
| 4029 |
else |
| 4030 |
ac_cv_prog_cc_c99=no |
| 4031 |
ac_save_CC=$CC |
| 4032 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4033 |
/* end confdefs.h. */ |
| 4034 |
#include <stdarg.h> |
| 4035 |
#include <stdbool.h> |
| 4036 |
#include <stdlib.h> |
| 4037 |
#include <wchar.h> |
| 4038 |
#include <stdio.h> |
| 4039 |
|
| 4040 |
// Check varargs macros. These examples are taken from C99 6.10.3.5. |
| 4041 |
#define debug(...) fprintf (stderr, __VA_ARGS__) |
| 4042 |
#define showlist(...) puts (#__VA_ARGS__) |
| 4043 |
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
| 4044 |
static void |
| 4045 |
test_varargs_macros (void) |
| 4046 |
{ |
| 4047 |
int x = 1234; |
| 4048 |
int y = 5678; |
| 4049 |
debug ("Flag"); |
| 4050 |
debug ("X = %d\n", x); |
| 4051 |
showlist (The first, second, and third items.); |
| 4052 |
report (x>y, "x is %d but y is %d", x, y); |
| 4053 |
} |
| 4054 |
|
| 4055 |
// Check long long types. |
| 4056 |
#define BIG64 18446744073709551615ull |
| 4057 |
#define BIG32 4294967295ul |
| 4058 |
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
| 4059 |
#if !BIG_OK |
| 4060 |
your preprocessor is broken; |
| 4061 |
#endif |
| 4062 |
#if BIG_OK |
| 4063 |
#else |
| 4064 |
your preprocessor is broken; |
| 4065 |
#endif |
| 4066 |
static long long int bignum = -9223372036854775807LL; |
| 4067 |
static unsigned long long int ubignum = BIG64; |
| 4068 |
|
| 4069 |
struct incomplete_array |
| 4070 |
{ |
| 4071 |
int datasize; |
| 4072 |
double data[]; |
| 4073 |
}; |
| 4074 |
|
| 4075 |
struct named_init { |
| 4076 |
int number; |
| 4077 |
const wchar_t *name; |
| 4078 |
double average; |
| 4079 |
}; |
| 4080 |
|
| 4081 |
typedef const char *ccp; |
| 4082 |
|
| 4083 |
static inline int |
| 4084 |
test_restrict (ccp restrict text) |
| 4085 |
{ |
| 4086 |
// See if C++-style comments work. |
| 4087 |
// Iterate through items via the restricted pointer. |
| 4088 |
// Also check for declarations in for loops. |
| 4089 |
for (unsigned int i = 0; *(text+i) != '\0'; ++i) |
| 4090 |
continue; |
| 4091 |
return 0; |
| 4092 |
} |
| 4093 |
|
| 4094 |
// Check varargs and va_copy. |
| 4095 |
static void |
| 4096 |
test_varargs (const char *format, ...) |
| 4097 |
{ |
| 4098 |
va_list args; |
| 4099 |
va_start (args, format); |
| 4100 |
va_list args_copy; |
| 4101 |
va_copy (args_copy, args); |
| 4102 |
|
| 4103 |
const char *str; |
| 4104 |
int number; |
| 4105 |
float fnumber; |
| 4106 |
|
| 4107 |
while (*format) |
| 4108 |
{ |
| 4109 |
switch (*format++) |
| 4110 |
{ |
| 4111 |
case 's': // string |
| 4112 |
str = va_arg (args_copy, const char *); |
| 4113 |
break; |
| 4114 |
case 'd': // int |
| 4115 |
number = va_arg (args_copy, int); |
| 4116 |
break; |
| 4117 |
case 'f': // float |
| 4118 |
fnumber = va_arg (args_copy, double); |
| 4119 |
break; |
| 4120 |
default: |
| 4121 |
break; |
| 4122 |
} |
| 4123 |
} |
| 4124 |
va_end (args_copy); |
| 4125 |
va_end (args); |
| 4126 |
} |
| 4127 |
|
| 4128 |
int |
| 4129 |
main () |
| 4130 |
{ |
| 4131 |
|
| 4132 |
// Check bool. |
| 4133 |
_Bool success = false; |
| 4134 |
|
| 4135 |
// Check restrict. |
| 4136 |
if (test_restrict ("String literal") == 0) |
| 4137 |
success = true; |
| 4138 |
char *restrict newvar = "Another string"; |
| 4139 |
|
| 4140 |
// Check varargs. |
| 4141 |
test_varargs ("s, d' f .", "string", 65, 34.234); |
| 4142 |
test_varargs_macros (); |
| 4143 |
|
| 4144 |
// Check flexible array members. |
| 4145 |
struct incomplete_array *ia = |
| 4146 |
malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
| 4147 |
ia->datasize = 10; |
| 4148 |
for (int i = 0; i < ia->datasize; ++i) |
| 4149 |
ia->data[i] = i * 1.234; |
| 4150 |
|
| 4151 |
// Check named initializers. |
| 4152 |
struct named_init ni = { |
| 4153 |
.number = 34, |
| 4154 |
.name = L"Test wide string", |
| 4155 |
.average = 543.34343, |
| 4156 |
}; |
| 4157 |
|
| 4158 |
ni.number = 58; |
| 4159 |
|
| 4160 |
int dynamic_array[ni.number]; |
| 4161 |
dynamic_array[ni.number - 1] = 543; |
| 4162 |
|
| 4163 |
// work around unused variable warnings |
| 4164 |
return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' |
| 4165 |
|| dynamic_array[ni.number - 1] != 543); |
| 4166 |
|
| 4167 |
; |
| 4168 |
return 0; |
| 4169 |
} |
| 4170 |
_ACEOF |
| 4171 |
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 |
| 4172 |
do |
| 4173 |
CC="$ac_save_CC $ac_arg" |
| 4174 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 4175 |
ac_cv_prog_cc_c99=$ac_arg |
| 4176 |
fi |
| 4177 |
rm -f core conftest.err conftest.$ac_objext |
| 4178 |
test "x$ac_cv_prog_cc_c99" != "xno" && break |
| 4179 |
done |
| 4180 |
rm -f conftest.$ac_ext |
| 4181 |
CC=$ac_save_CC |
| 4182 |
|
| 4183 |
fi |
| 4184 |
# AC_CACHE_VAL |
| 4185 |
case "x$ac_cv_prog_cc_c99" in |
| 4186 |
x) |
| 4187 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4188 |
$as_echo "none needed" >&6; } ;; |
| 4189 |
xno) |
| 4190 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4191 |
$as_echo "unsupported" >&6; } ;; |
| 4192 |
*) |
| 4193 |
CC="$CC $ac_cv_prog_cc_c99" |
| 4194 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 |
| 4195 |
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; |
| 4196 |
esac |
| 4197 |
if test "x$ac_cv_prog_cc_c99" != xno; then : |
| 4198 |
|
| 4199 |
fi |
| 4200 |
|
| 4201 |
|
| 4202 |
if test "$ac_cv_prog_cc_c99" = "no"; then : |
| 4203 |
as_fn_error $? "no suitable C99 compiler found. Aborting." "$LINENO" 5 |
| 4204 |
fi |
| 4205 |
for ac_prog in 'bison -y' byacc |
| 4206 |
do |
| 4207 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4208 |
set dummy $ac_prog; ac_word=$2 |
| 4209 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4210 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 4211 |
if ${ac_cv_prog_YACC+:} false; then : |
| 4212 |
$as_echo_n "(cached) " >&6 |
| 4213 |
else |
| 4214 |
if test -n "$YACC"; then |
| 4215 |
ac_cv_prog_YACC="$YACC" # Let the user override the test. |
| 4216 |
else |
| 4217 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4218 |
for as_dir in $PATH |
| 4219 |
do |
| 4220 |
IFS=$as_save_IFS |
| 4221 |
test -z "$as_dir" && as_dir=. |
| 4222 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4223 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4224 |
ac_cv_prog_YACC="$ac_prog" |
| 4225 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4226 |
break 2 |
| 4227 |
fi |
| 4228 |
done |
| 4229 |
done |
| 4230 |
IFS=$as_save_IFS |
| 4231 |
|
| 4232 |
fi |
| 4233 |
fi |
| 4234 |
YACC=$ac_cv_prog_YACC |
| 4235 |
if test -n "$YACC"; then |
| 4236 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
| 4237 |
$as_echo "$YACC" >&6; } |
| 4238 |
else |
| 4239 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4240 |
$as_echo "no" >&6; } |
| 4241 |
fi |
| 4242 |
|
| 4243 |
|
| 4244 |
test -n "$YACC" && break |
| 4245 |
done |
| 4246 |
test -n "$YACC" || YACC="yacc" |
| 4247 |
|
| 4248 |
|
| 4249 |
for ac_prog in flex lex |
| 4250 |
do |
| 4251 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4252 |
set dummy $ac_prog; ac_word=$2 |
| 4253 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4254 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 4255 |
if ${ac_cv_prog_LEX+:} false; then : |
| 4256 |
$as_echo_n "(cached) " >&6 |
| 4257 |
else |
| 4258 |
if test -n "$LEX"; then |
| 4259 |
ac_cv_prog_LEX="$LEX" # Let the user override the test. |
| 4260 |
else |
| 4261 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4262 |
for as_dir in $PATH |
| 4263 |
do |
| 4264 |
IFS=$as_save_IFS |
| 4265 |
test -z "$as_dir" && as_dir=. |
| 4266 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4267 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4268 |
ac_cv_prog_LEX="$ac_prog" |
| 4269 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4270 |
break 2 |
| 4271 |
fi |
| 4272 |
done |
| 4273 |
done |
| 4274 |
IFS=$as_save_IFS |
| 4275 |
|
| 4276 |
fi |
| 4277 |
fi |
| 4278 |
LEX=$ac_cv_prog_LEX |
| 4279 |
if test -n "$LEX"; then |
| 4280 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
| 4281 |
$as_echo "$LEX" >&6; } |
| 4282 |
else |
| 4283 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4284 |
$as_echo "no" >&6; } |
| 4285 |
fi |
| 4286 |
|
| 4287 |
|
| 4288 |
test -n "$LEX" && break |
| 4289 |
done |
| 4290 |
test -n "$LEX" || LEX=":" |
| 4291 |
|
| 4292 |
if test "x$LEX" != "x:"; then |
| 4293 |
cat >conftest.l <<_ACEOF |
| 4294 |
%% |
| 4295 |
a { ECHO; } |
| 4296 |
b { REJECT; } |
| 4297 |
c { yymore (); } |
| 4298 |
d { yyless (1); } |
| 4299 |
e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ |
| 4300 |
yyless ((input () != 0)); } |
| 4301 |
f { unput (yytext[0]); } |
| 4302 |
. { BEGIN INITIAL; } |
| 4303 |
%% |
| 4304 |
#ifdef YYTEXT_POINTER |
| 4305 |
extern char *yytext; |
| 4306 |
#endif |
| 4307 |
int |
| 4308 |
main (void) |
| 4309 |
{ |
| 4310 |
return ! yylex () + ! yywrap (); |
| 4311 |
} |
| 4312 |
_ACEOF |
| 4313 |
{ { ac_try="$LEX conftest.l" |
| 4314 |
case "(($ac_try" in |
| 4315 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4316 |
*) ac_try_echo=$ac_try;; |
| 4317 |
esac |
| 4318 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4319 |
$as_echo "$ac_try_echo"; } >&5 |
| 4320 |
(eval "$LEX conftest.l") 2>&5 |
| 4321 |
ac_status=$? |
| 4322 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4323 |
test $ac_status = 0; } |
| 4324 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 |
| 4325 |
$as_echo_n "checking lex output file root... " >&6; } |
| 4326 |
if ${ac_cv_prog_lex_root+:} false; then : |
| 4327 |
$as_echo_n "(cached) " >&6 |
| 4328 |
else |
| 4329 |
|
| 4330 |
if test -f lex.yy.c; then |
| 4331 |
ac_cv_prog_lex_root=lex.yy |
| 4332 |
elif test -f lexyy.c; then |
| 4333 |
ac_cv_prog_lex_root=lexyy |
| 4334 |
else |
| 4335 |
as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 |
| 4336 |
fi |
| 4337 |
fi |
| 4338 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 |
| 4339 |
$as_echo "$ac_cv_prog_lex_root" >&6; } |
| 4340 |
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
| 4341 |
|
| 4342 |
if test -z "${LEXLIB+set}"; then |
| 4343 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 |
| 4344 |
$as_echo_n "checking lex library... " >&6; } |
| 4345 |
if ${ac_cv_lib_lex+:} false; then : |
| 4346 |
$as_echo_n "(cached) " >&6 |
| 4347 |
else |
| 4348 |
|
| 4349 |
ac_save_LIBS=$LIBS |
| 4350 |
ac_cv_lib_lex='none needed' |
| 4351 |
for ac_lib in '' -lfl -ll; do |
| 4352 |
LIBS="$ac_lib $ac_save_LIBS" |
| 4353 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4354 |
/* end confdefs.h. */ |
| 4355 |
`cat $LEX_OUTPUT_ROOT.c` |
| 4356 |
_ACEOF |
| 4357 |
if ac_fn_c_try_link "$LINENO"; then : |
| 4358 |
ac_cv_lib_lex=$ac_lib |
| 4359 |
fi |
| 4360 |
rm -f core conftest.err conftest.$ac_objext \ |
| 4361 |
conftest$ac_exeext conftest.$ac_ext |
| 4362 |
test "$ac_cv_lib_lex" != 'none needed' && break |
| 4363 |
done |
| 4364 |
LIBS=$ac_save_LIBS |
| 4365 |
|
| 4366 |
fi |
| 4367 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 |
| 4368 |
$as_echo "$ac_cv_lib_lex" >&6; } |
| 4369 |
test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex |
| 4370 |
fi |
| 4371 |
|
| 4372 |
|
| 4373 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 |
| 4374 |
$as_echo_n "checking whether yytext is a pointer... " >&6; } |
| 4375 |
if ${ac_cv_prog_lex_yytext_pointer+:} false; then : |
| 4376 |
$as_echo_n "(cached) " >&6 |
| 4377 |
else |
| 4378 |
# POSIX says lex can declare yytext either as a pointer or an array; the |
| 4379 |
# default is implementation-dependent. Figure out which it is, since |
| 4380 |
# not all implementations provide the %pointer and %array declarations. |
| 4381 |
ac_cv_prog_lex_yytext_pointer=no |
| 4382 |
ac_save_LIBS=$LIBS |
| 4383 |
LIBS="$LEXLIB $ac_save_LIBS" |
| 4384 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4385 |
/* end confdefs.h. */ |
| 4386 |
|
| 4387 |
#define YYTEXT_POINTER 1 |
| 4388 |
`cat $LEX_OUTPUT_ROOT.c` |
| 4389 |
_ACEOF |
| 4390 |
if ac_fn_c_try_link "$LINENO"; then : |
| 4391 |
ac_cv_prog_lex_yytext_pointer=yes |
| 4392 |
fi |
| 4393 |
rm -f core conftest.err conftest.$ac_objext \ |
| 4394 |
conftest$ac_exeext conftest.$ac_ext |
| 4395 |
LIBS=$ac_save_LIBS |
| 4396 |
|
| 4397 |
fi |
| 4398 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
| 4399 |
$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } |
| 4400 |
if test $ac_cv_prog_lex_yytext_pointer = yes; then |
| 4401 |
|
| 4402 |
$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h |
| 4403 |
|
| 4404 |
fi |
| 4405 |
rm -f conftest.l $LEX_OUTPUT_ROOT.c |
| 4406 |
|
| 4407 |
fi |
| 4408 |
if test "$LEX" = :; then |
| 4409 |
LEX=${am_missing_run}flex |
| 4410 |
fi |
| 4411 |
|
| 4412 |
|
| 4413 |
# Initializing libtool. |
| 4414 |
|
| 4415 |
|
| 4416 |
|
| 4417 |
|
| 4418 |
|
| 4419 |
|
| 4420 |
|
| 4421 |
case `pwd` in |
| 4422 |
*\ * | *\ *) |
| 4423 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
| 4424 |
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
| 4425 |
esac |
| 4426 |
|
| 4427 |
|
| 4428 |
|
| 4429 |
macro_version='2.4.2' |
| 4430 |
macro_revision='1.3337' |
| 4431 |
|
| 4432 |
|
| 4433 |
|
| 4434 |
|
| 4435 |
|
| 4436 |
|
| 4437 |
|
| 4438 |
|
| 4439 |
|
| 4440 |
|
| 4441 |
|
| 4442 |
|
| 4443 |
|
| 4444 |
ltmain="$ac_aux_dir/ltmain.sh" |
| 4445 |
|
| 4446 |
# Make sure we can run config.sub. |
| 4447 |
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 4448 |
as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
| 4449 |
|
| 4450 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 4451 |
$as_echo_n "checking build system type... " >&6; } |
| 4452 |
if ${ac_cv_build+:} false; then : |
| 4453 |
$as_echo_n "(cached) " >&6 |
| 4454 |
else |
| 4455 |
ac_build_alias=$build_alias |
| 4456 |
test "x$ac_build_alias" = x && |
| 4457 |
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 4458 |
test "x$ac_build_alias" = x && |
| 4459 |
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
| 4460 |
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 4461 |
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
| 4462 |
|
| 4463 |
fi |
| 4464 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 4465 |
$as_echo "$ac_cv_build" >&6; } |
| 4466 |
case $ac_cv_build in |
| 4467 |
*-*-*) ;; |
| 4468 |
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
| 4469 |
esac |
| 4470 |
build=$ac_cv_build |
| 4471 |
ac_save_IFS=$IFS; IFS='-' |
| 4472 |
set x $ac_cv_build |
| 4473 |
shift |
| 4474 |
build_cpu=$1 |
| 4475 |
build_vendor=$2 |
| 4476 |
shift; shift |
| 4477 |
# Remember, the first character of IFS is used to create $*, |
| 4478 |
# except with old shells: |
| 4479 |
build_os=$* |
| 4480 |
IFS=$ac_save_IFS |
| 4481 |
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 4482 |
|
| 4483 |
|
| 4484 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 4485 |
$as_echo_n "checking host system type... " >&6; } |
| 4486 |
if ${ac_cv_host+:} false; then : |
| 4487 |
$as_echo_n "(cached) " >&6 |
| 4488 |
else |
| 4489 |
if test "x$host_alias" = x; then |
| 4490 |
ac_cv_host=$ac_cv_build |
| 4491 |
else |
| 4492 |
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 4493 |
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
| 4494 |
fi |
| 4495 |
|
| 4496 |
fi |
| 4497 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 4498 |
$as_echo "$ac_cv_host" >&6; } |
| 4499 |
case $ac_cv_host in |
| 4500 |
*-*-*) ;; |
| 4501 |
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
| 4502 |
esac |
| 4503 |
host=$ac_cv_host |
| 4504 |
ac_save_IFS=$IFS; IFS='-' |
| 4505 |
set x $ac_cv_host |
| 4506 |
shift |
| 4507 |
host_cpu=$1 |
| 4508 |
host_vendor=$2 |
| 4509 |
shift; shift |
| 4510 |
# Remember, the first character of IFS is used to create $*, |
| 4511 |
# except with old shells: |
| 4512 |
host_os=$* |
| 4513 |
IFS=$ac_save_IFS |
| 4514 |
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 4515 |
|
| 4516 |
|
| 4517 |
# Backslashify metacharacters that are still active within |
| 4518 |
# double-quoted strings. |
| 4519 |
sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
| 4520 |
|
| 4521 |
# Same as above, but do not quote variable references. |
| 4522 |
double_quote_subst='s/\(["`\\]\)/\\\1/g' |
| 4523 |
|
| 4524 |
# Sed substitution to delay expansion of an escaped shell variable in a |
| 4525 |
# double_quote_subst'ed string. |
| 4526 |
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 4527 |
|
| 4528 |
# Sed substitution to delay expansion of an escaped single quote. |
| 4529 |
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
| 4530 |
|
| 4531 |
# Sed substitution to avoid accidental globbing in evaled expressions |
| 4532 |
no_glob_subst='s/\*/\\\*/g' |
| 4533 |
|
| 4534 |
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 4535 |
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO |
| 4536 |
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO |
| 4537 |
|
| 4538 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 |
| 4539 |
$as_echo_n "checking how to print strings... " >&6; } |
| 4540 |
# Test print first, because it will be a builtin if present. |
| 4541 |
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ |
| 4542 |
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then |
| 4543 |
ECHO='print -r --' |
| 4544 |
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then |
| 4545 |
ECHO='printf %s\n' |
| 4546 |
else |
| 4547 |
# Use this function as a fallback that always works. |
| 4548 |
func_fallback_echo () |
| 4549 |
{ |
| 4550 |
eval 'cat <<_LTECHO_EOF |
| 4551 |
$1 |
| 4552 |
_LTECHO_EOF' |
| 4553 |
} |
| 4554 |
ECHO='func_fallback_echo' |
| 4555 |
fi |
| 4556 |
|
| 4557 |
# func_echo_all arg... |
| 4558 |
# Invoke $ECHO with all args, space-separated. |
| 4559 |
func_echo_all () |
| 4560 |
{ |
| 4561 |
$ECHO "" |
| 4562 |
} |
| 4563 |
|
| 4564 |
case "$ECHO" in |
| 4565 |
printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 |
| 4566 |
$as_echo "printf" >&6; } ;; |
| 4567 |
print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 |
| 4568 |
$as_echo "print -r" >&6; } ;; |
| 4569 |
*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 |
| 4570 |
$as_echo "cat" >&6; } ;; |
| 4571 |
esac |
| 4572 |
|
| 4573 |
|
| 4574 |
|
| 4575 |
|
| 4576 |
|
| 4577 |
|
| 4578 |
|
| 4579 |
|
| 4580 |
|
| 4581 |
|
| 4582 |
|
| 4583 |
|
| 4584 |
|
| 4585 |
|
| 4586 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
| 4587 |
$as_echo_n "checking for a sed that does not truncate output... " >&6; } |
| 4588 |
if ${ac_cv_path_SED+:} false; then : |
| 4589 |
$as_echo_n "(cached) " >&6 |
| 4590 |
else |
| 4591 |
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
| 4592 |
for ac_i in 1 2 3 4 5 6 7; do |
| 4593 |
ac_script="$ac_script$as_nl$ac_script" |
| 4594 |
done |
| 4595 |
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
| 4596 |
{ ac_script=; unset ac_script;} |
| 4597 |
if test -z "$SED"; then |
| 4598 |
ac_path_SED_found=false |
| 4599 |
# Loop through the user's path and test for each of PROGNAME-LIST |
| 4600 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4601 |
for as_dir in $PATH |
| 4602 |
do |
| 4603 |
IFS=$as_save_IFS |
| 4604 |
test -z "$as_dir" && as_dir=. |
| 4605 |
for ac_prog in sed gsed; do |
| 4606 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4607 |
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
| 4608 |
as_fn_executable_p "$ac_path_SED" || continue |
| 4609 |
# Check for GNU ac_path_SED and select it if it is found. |
| 4610 |
# Check for GNU $ac_path_SED |
| 4611 |
case `"$ac_path_SED" --version 2>&1` in |
| 4612 |
*GNU*) |
| 4613 |
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
| 4614 |
*) |
| 4615 |
ac_count=0 |
| 4616 |
$as_echo_n 0123456789 >"conftest.in" |
| 4617 |
while : |
| 4618 |
do |
| 4619 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4620 |
mv "conftest.tmp" "conftest.in" |
| 4621 |
cp "conftest.in" "conftest.nl" |
| 4622 |
$as_echo '' >> "conftest.nl" |
| 4623 |
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4624 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4625 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4626 |
if test $ac_count -gt ${ac_path_SED_max-0}; then |
| 4627 |
# Best one so far, save it but keep looking for a better one |
| 4628 |
ac_cv_path_SED="$ac_path_SED" |
| 4629 |
ac_path_SED_max=$ac_count |
| 4630 |
fi |
| 4631 |
# 10*(2^10) chars as input seems more than enough |
| 4632 |
test $ac_count -gt 10 && break |
| 4633 |
done |
| 4634 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4635 |
esac |
| 4636 |
|
| 4637 |
$ac_path_SED_found && break 3 |
| 4638 |
done |
| 4639 |
done |
| 4640 |
done |
| 4641 |
IFS=$as_save_IFS |
| 4642 |
if test -z "$ac_cv_path_SED"; then |
| 4643 |
as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
| 4644 |
fi |
| 4645 |
else |
| 4646 |
ac_cv_path_SED=$SED |
| 4647 |
fi |
| 4648 |
|
| 4649 |
fi |
| 4650 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
| 4651 |
$as_echo "$ac_cv_path_SED" >&6; } |
| 4652 |
SED="$ac_cv_path_SED" |
| 4653 |
rm -f conftest.sed |
| 4654 |
|
| 4655 |
test -z "$SED" && SED=sed |
| 4656 |
Xsed="$SED -e 1s/^X//" |
| 4657 |
|
| 4658 |
|
| 4659 |
|
| 4660 |
|
| 4661 |
|
| 4662 |
|
| 4663 |
|
| 4664 |
|
| 4665 |
|
| 4666 |
|
| 4667 |
|
| 4668 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 4669 |
$as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 4670 |
if ${ac_cv_path_GREP+:} false; then : |
| 4671 |
$as_echo_n "(cached) " >&6 |
| 4672 |
else |
| 4673 |
if test -z "$GREP"; then |
| 4674 |
ac_path_GREP_found=false |
| 4675 |
# Loop through the user's path and test for each of PROGNAME-LIST |
| 4676 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4677 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4678 |
do |
| 4679 |
IFS=$as_save_IFS |
| 4680 |
test -z "$as_dir" && as_dir=. |
| 4681 |
for ac_prog in grep ggrep; do |
| 4682 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4683 |
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4684 |
as_fn_executable_p "$ac_path_GREP" || continue |
| 4685 |
# Check for GNU ac_path_GREP and select it if it is found. |
| 4686 |
# Check for GNU $ac_path_GREP |
| 4687 |
case `"$ac_path_GREP" --version 2>&1` in |
| 4688 |
*GNU*) |
| 4689 |
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4690 |
*) |
| 4691 |
ac_count=0 |
| 4692 |
$as_echo_n 0123456789 >"conftest.in" |
| 4693 |
while : |
| 4694 |
do |
| 4695 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4696 |
mv "conftest.tmp" "conftest.in" |
| 4697 |
cp "conftest.in" "conftest.nl" |
| 4698 |
$as_echo 'GREP' >> "conftest.nl" |
| 4699 |
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4700 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4701 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4702 |
if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4703 |
# Best one so far, save it but keep looking for a better one |
| 4704 |
ac_cv_path_GREP="$ac_path_GREP" |
| 4705 |
ac_path_GREP_max=$ac_count |
| 4706 |
fi |
| 4707 |
# 10*(2^10) chars as input seems more than enough |
| 4708 |
test $ac_count -gt 10 && break |
| 4709 |
done |
| 4710 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4711 |
esac |
| 4712 |
|
| 4713 |
$ac_path_GREP_found && break 3 |
| 4714 |
done |
| 4715 |
done |
| 4716 |
done |
| 4717 |
IFS=$as_save_IFS |
| 4718 |
if test -z "$ac_cv_path_GREP"; then |
| 4719 |
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4720 |
fi |
| 4721 |
else |
| 4722 |
ac_cv_path_GREP=$GREP |
| 4723 |
fi |
| 4724 |
|
| 4725 |
fi |
| 4726 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 4727 |
$as_echo "$ac_cv_path_GREP" >&6; } |
| 4728 |
GREP="$ac_cv_path_GREP" |
| 4729 |
|
| 4730 |
|
| 4731 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 4732 |
$as_echo_n "checking for egrep... " >&6; } |
| 4733 |
if ${ac_cv_path_EGREP+:} false; then : |
| 4734 |
$as_echo_n "(cached) " >&6 |
| 4735 |
else |
| 4736 |
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4737 |
then ac_cv_path_EGREP="$GREP -E" |
| 4738 |
else |
| 4739 |
if test -z "$EGREP"; then |
| 4740 |
ac_path_EGREP_found=false |
| 4741 |
# Loop through the user's path and test for each of PROGNAME-LIST |
| 4742 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4743 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4744 |
do |
| 4745 |
IFS=$as_save_IFS |
| 4746 |
test -z "$as_dir" && as_dir=. |
| 4747 |
for ac_prog in egrep; do |
| 4748 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4749 |
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4750 |
as_fn_executable_p "$ac_path_EGREP" || continue |
| 4751 |
# Check for GNU ac_path_EGREP and select it if it is found. |
| 4752 |
# Check for GNU $ac_path_EGREP |
| 4753 |
case `"$ac_path_EGREP" --version 2>&1` in |
| 4754 |
*GNU*) |
| 4755 |
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4756 |
*) |
| 4757 |
ac_count=0 |
| 4758 |
$as_echo_n 0123456789 >"conftest.in" |
| 4759 |
while : |
| 4760 |
do |
| 4761 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4762 |
mv "conftest.tmp" "conftest.in" |
| 4763 |
cp "conftest.in" "conftest.nl" |
| 4764 |
$as_echo 'EGREP' >> "conftest.nl" |
| 4765 |
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4766 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4767 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4768 |
if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4769 |
# Best one so far, save it but keep looking for a better one |
| 4770 |
ac_cv_path_EGREP="$ac_path_EGREP" |
| 4771 |
ac_path_EGREP_max=$ac_count |
| 4772 |
fi |
| 4773 |
# 10*(2^10) chars as input seems more than enough |
| 4774 |
test $ac_count -gt 10 && break |
| 4775 |
done |
| 4776 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4777 |
esac |
| 4778 |
|
| 4779 |
$ac_path_EGREP_found && break 3 |
| 4780 |
done |
| 4781 |
done |
| 4782 |
done |
| 4783 |
IFS=$as_save_IFS |
| 4784 |
if test -z "$ac_cv_path_EGREP"; then |
| 4785 |
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4786 |
fi |
| 4787 |
else |
| 4788 |
ac_cv_path_EGREP=$EGREP |
| 4789 |
fi |
| 4790 |
|
| 4791 |
fi |
| 4792 |
fi |
| 4793 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 4794 |
$as_echo "$ac_cv_path_EGREP" >&6; } |
| 4795 |
EGREP="$ac_cv_path_EGREP" |
| 4796 |
|
| 4797 |
|
| 4798 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
| 4799 |
$as_echo_n "checking for fgrep... " >&6; } |
| 4800 |
if ${ac_cv_path_FGREP+:} false; then : |
| 4801 |
$as_echo_n "(cached) " >&6 |
| 4802 |
else |
| 4803 |
if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
| 4804 |
then ac_cv_path_FGREP="$GREP -F" |
| 4805 |
else |
| 4806 |
if test -z "$FGREP"; then |
| 4807 |
ac_path_FGREP_found=false |
| 4808 |
# Loop through the user's path and test for each of PROGNAME-LIST |
| 4809 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4810 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4811 |
do |
| 4812 |
IFS=$as_save_IFS |
| 4813 |
test -z "$as_dir" && as_dir=. |
| 4814 |
for ac_prog in fgrep; do |
| 4815 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4816 |
ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4817 |
as_fn_executable_p "$ac_path_FGREP" || continue |
| 4818 |
# Check for GNU ac_path_FGREP and select it if it is found. |
| 4819 |
# Check for GNU $ac_path_FGREP |
| 4820 |
case `"$ac_path_FGREP" --version 2>&1` in |
| 4821 |
*GNU*) |
| 4822 |
ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; |
| 4823 |
*) |
| 4824 |
ac_count=0 |
| 4825 |
$as_echo_n 0123456789 >"conftest.in" |
| 4826 |
while : |
| 4827 |
do |
| 4828 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4829 |
mv "conftest.tmp" "conftest.in" |
| 4830 |
cp "conftest.in" "conftest.nl" |
| 4831 |
$as_echo 'FGREP' >> "conftest.nl" |
| 4832 |
"$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4833 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4834 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4835 |
if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
| 4836 |
# Best one so far, save it but keep looking for a better one |
| 4837 |
ac_cv_path_FGREP="$ac_path_FGREP" |
| 4838 |
ac_path_FGREP_max=$ac_count |
| 4839 |
fi |
| 4840 |
# 10*(2^10) chars as input seems more than enough |
| 4841 |
test $ac_count -gt 10 && break |
| 4842 |
done |
| 4843 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4844 |
esac |
| 4845 |
|
| 4846 |
$ac_path_FGREP_found && break 3 |
| 4847 |
done |
| 4848 |
done |
| 4849 |
done |
| 4850 |
IFS=$as_save_IFS |
| 4851 |
if test -z "$ac_cv_path_FGREP"; then |
| 4852 |
as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4853 |
fi |
| 4854 |
else |
| 4855 |
ac_cv_path_FGREP=$FGREP |
| 4856 |
fi |
| 4857 |
|
| 4858 |
fi |
| 4859 |
fi |
| 4860 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
| 4861 |
$as_echo "$ac_cv_path_FGREP" >&6; } |
| 4862 |
FGREP="$ac_cv_path_FGREP" |
| 4863 |
|
| 4864 |
|
| 4865 |
test -z "$GREP" && GREP=grep |
| 4866 |
|
| 4867 |
|
| 4868 |
|
| 4869 |
|
| 4870 |
|
| 4871 |
|
| 4872 |
|
| 4873 |
|
| 4874 |
|
| 4875 |
|
| 4876 |
|
| 4877 |
|
| 4878 |
|
| 4879 |
|
| 4880 |
|
| 4881 |
|
| 4882 |
|
| 4883 |
|
| 4884 |
|
| 4885 |
# Check whether --with-gnu-ld was given. |
| 4886 |
if test "${with_gnu_ld+set}" = set; then : |
| 4887 |
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
| 4888 |
else |
| 4889 |
with_gnu_ld=no |
| 4890 |
fi |
| 4891 |
|
| 4892 |
ac_prog=ld |
| 4893 |
if test "$GCC" = yes; then |
| 4894 |
# Check if gcc -print-prog-name=ld gives a path. |
| 4895 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
| 4896 |
$as_echo_n "checking for ld used by $CC... " >&6; } |
| 4897 |
case $host in |
| 4898 |
*-*-mingw*) |
| 4899 |
# gcc leaves a trailing carriage return which upsets mingw |
| 4900 |
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 4901 |
*) |
| 4902 |
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 4903 |
esac |
| 4904 |
case $ac_prog in |
| 4905 |
# Accept absolute paths. |
| 4906 |
[\\/]* | ?:[\\/]*) |
| 4907 |
re_direlt='/[^/][^/]*/\.\./' |
| 4908 |
# Canonicalize the pathname of ld |
| 4909 |
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 4910 |
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 4911 |
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
| 4912 |
done |
| 4913 |
test -z "$LD" && LD="$ac_prog" |
| 4914 |
;; |
| 4915 |
"") |
| 4916 |
# If it fails, then pretend we aren't using GCC. |
| 4917 |
ac_prog=ld |
| 4918 |
;; |
| 4919 |
*) |
| 4920 |
# If it is relative, then search for the first ld in PATH. |
| 4921 |
with_gnu_ld=unknown |
| 4922 |
;; |
| 4923 |
esac |
| 4924 |
elif test "$with_gnu_ld" = yes; then |
| 4925 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 4926 |
$as_echo_n "checking for GNU ld... " >&6; } |
| 4927 |
else |
| 4928 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
| 4929 |
$as_echo_n "checking for non-GNU ld... " >&6; } |
| 4930 |
fi |
| 4931 |
if ${lt_cv_path_LD+:} false; then : |
| 4932 |
$as_echo_n "(cached) " >&6 |
| 4933 |
else |
| 4934 |
if test -z "$LD"; then |
| 4935 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 4936 |
for ac_dir in $PATH; do |
| 4937 |
IFS="$lt_save_ifs" |
| 4938 |
test -z "$ac_dir" && ac_dir=. |
| 4939 |
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 4940 |
lt_cv_path_LD="$ac_dir/$ac_prog" |
| 4941 |
# Check to see if the program is GNU ld. I'd rather use --version, |
| 4942 |
# but apparently some variants of GNU ld only accept -v. |
| 4943 |
# Break only if it was the GNU/non-GNU ld that we prefer. |
| 4944 |
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 4945 |
*GNU* | *'with BFD'*) |
| 4946 |
test "$with_gnu_ld" != no && break |
| 4947 |
;; |
| 4948 |
*) |
| 4949 |
test "$with_gnu_ld" != yes && break |
| 4950 |
;; |
| 4951 |
esac |
| 4952 |
fi |
| 4953 |
done |
| 4954 |
IFS="$lt_save_ifs" |
| 4955 |
else |
| 4956 |
lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 4957 |
fi |
| 4958 |
fi |
| 4959 |
|
| 4960 |
LD="$lt_cv_path_LD" |
| 4961 |
if test -n "$LD"; then |
| 4962 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
| 4963 |
$as_echo "$LD" >&6; } |
| 4964 |
else |
| 4965 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4966 |
$as_echo "no" >&6; } |
| 4967 |
fi |
| 4968 |
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
| 4969 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
| 4970 |
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
| 4971 |
if ${lt_cv_prog_gnu_ld+:} false; then : |
| 4972 |
$as_echo_n "(cached) " >&6 |
| 4973 |
else |
| 4974 |
# I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 4975 |
case `$LD -v 2>&1 </dev/null` in |
| 4976 |
*GNU* | *'with BFD'*) |
| 4977 |
lt_cv_prog_gnu_ld=yes |
| 4978 |
;; |
| 4979 |
*) |
| 4980 |
lt_cv_prog_gnu_ld=no |
| 4981 |
;; |
| 4982 |
esac |
| 4983 |
fi |
| 4984 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
| 4985 |
$as_echo "$lt_cv_prog_gnu_ld" >&6; } |
| 4986 |
with_gnu_ld=$lt_cv_prog_gnu_ld |
| 4987 |
|
| 4988 |
|
| 4989 |
|
| 4990 |
|
| 4991 |
|
| 4992 |
|
| 4993 |
|
| 4994 |
|
| 4995 |
|
| 4996 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
| 4997 |
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
| 4998 |
if ${lt_cv_path_NM+:} false; then : |
| 4999 |
$as_echo_n "(cached) " >&6 |
| 5000 |
else |
| 5001 |
if test -n "$NM"; then |
| 5002 |
# Let the user override the test. |
| 5003 |
lt_cv_path_NM="$NM" |
| 5004 |
else |
| 5005 |
lt_nm_to_check="${ac_tool_prefix}nm" |
| 5006 |
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 5007 |
lt_nm_to_check="$lt_nm_to_check nm" |
| 5008 |
fi |
| 5009 |
for lt_tmp_nm in $lt_nm_to_check; do |
| 5010 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 5011 |
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 5012 |
IFS="$lt_save_ifs" |
| 5013 |
test -z "$ac_dir" && ac_dir=. |
| 5014 |
tmp_nm="$ac_dir/$lt_tmp_nm" |
| 5015 |
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 5016 |
# Check to see if the nm accepts a BSD-compat flag. |
| 5017 |
# Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 5018 |
# nm: unknown option "B" ignored |
| 5019 |
# Tru64's nm complains that /dev/null is an invalid object file |
| 5020 |
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 5021 |
*/dev/null* | *'Invalid file or object type'*) |
| 5022 |
lt_cv_path_NM="$tmp_nm -B" |
| 5023 |
break |
| 5024 |
;; |
| 5025 |
*) |
| 5026 |
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 5027 |
*/dev/null*) |
| 5028 |
lt_cv_path_NM="$tmp_nm -p" |
| 5029 |
break |
| 5030 |
;; |
| 5031 |
*) |
| 5032 |
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 5033 |
continue # so that we can try to find one that supports BSD flags |
| 5034 |
;; |
| 5035 |
esac |
| 5036 |
;; |
| 5037 |
esac |
| 5038 |
fi |
| 5039 |
done |
| 5040 |
IFS="$lt_save_ifs" |
| 5041 |
done |
| 5042 |
: ${lt_cv_path_NM=no} |
| 5043 |
fi |
| 5044 |
fi |
| 5045 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
| 5046 |
$as_echo "$lt_cv_path_NM" >&6; } |
| 5047 |
if test "$lt_cv_path_NM" != "no"; then |
| 5048 |
NM="$lt_cv_path_NM" |
| 5049 |
else |
| 5050 |
# Didn't find any BSD compatible name lister, look for dumpbin. |
| 5051 |
if test -n "$DUMPBIN"; then : |
| 5052 |
# Let the user override the test. |
| 5053 |
else |
| 5054 |
if test -n "$ac_tool_prefix"; then |
| 5055 |
for ac_prog in dumpbin "link -dump" |
| 5056 |
do |
| 5057 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5058 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5059 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5060 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 5061 |
if ${ac_cv_prog_DUMPBIN+:} false; then : |
| 5062 |
$as_echo_n "(cached) " >&6 |
| 5063 |
else |
| 5064 |
if test -n "$DUMPBIN"; then |
| 5065 |
ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. |
| 5066 |
else |
| 5067 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5068 |
for as_dir in $PATH |
| 5069 |
do |
| 5070 |
IFS=$as_save_IFS |
| 5071 |
test -z "$as_dir" && as_dir=. |
| 5072 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5073 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5074 |
ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
| 5075 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5076 |
break 2 |
| 5077 |
fi |
| 5078 |
done |
| 5079 |
done |
| 5080 |
IFS=$as_save_IFS |
| 5081 |
|
| 5082 |
fi |
| 5083 |
fi |
| 5084 |
DUMPBIN=$ac_cv_prog_DUMPBIN |
| 5085 |
if test -n "$DUMPBIN"; then |
| 5086 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
| 5087 |
$as_echo "$DUMPBIN" >&6; } |
| 5088 |
else |
| 5089 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5090 |
$as_echo "no" >&6; } |
| 5091 |
fi |
| 5092 |
|
| 5093 |
|
| 5094 |
test -n "$DUMPBIN" && break |
| 5095 |
done |
| 5096 |
fi |
| 5097 |
if test -z "$DUMPBIN"; then |
| 5098 |
ac_ct_DUMPBIN=$DUMPBIN |
| 5099 |
for ac_prog in dumpbin "link -dump" |
| 5100 |
do |
| 5101 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5102 |
set dummy $ac_prog; ac_word=$2 |
| 5103 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5104 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 5105 |
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
| 5106 |
$as_echo_n "(cached) " >&6 |
| 5107 |
else |
| 5108 |
if test -n "$ac_ct_DUMPBIN"; then |
| 5109 |
ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. |
| 5110 |
else |
| 5111 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5112 |
for as_dir in $PATH |
| 5113 |
do |
| 5114 |
IFS=$as_save_IFS |
| 5115 |
test -z "$as_dir" && as_dir=. |
| 5116 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5117 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5118 |
ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
| 5119 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5120 |
break 2 |
| 5121 |
fi |
| 5122 |
done |
| 5123 |
done |
| 5124 |
IFS=$as_save_IFS |
| 5125 |
|
| 5126 |
fi |
| 5127 |
fi |
| 5128 |
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
| 5129 |
if test -n "$ac_ct_DUMPBIN"; then |
| 5130 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
| 5131 |
$as_echo "$ac_ct_DUMPBIN" >&6; } |
| 5132 |
else |
| 5133 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5134 |
$as_echo "no" >&6; } |
| 5135 |
fi |
| 5136 |
|
| 5137 |
|
| 5138 |
test -n "$ac_ct_DUMPBIN" && break |
| 5139 |
done |
| 5140 |
|
| 5141 |
if test "x$ac_ct_DUMPBIN" = x; then |
| 5142 |
DUMPBIN=":" |
| 5143 |
else |
| 5144 |
case $cross_compiling:$ac_tool_warned in |
| 5145 |
yes:) |
| 5146 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5147 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5148 |
ac_tool_warned=yes ;; |
| 5149 |
esac |
| 5150 |
DUMPBIN=$ac_ct_DUMPBIN |
| 5151 |
fi |
| 5152 |
fi |
| 5153 |
|
| 5154 |
case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
| 5155 |
*COFF*) |
| 5156 |
DUMPBIN="$DUMPBIN -symbols" |
| 5157 |
;; |
| 5158 |
*) |
| 5159 |
DUMPBIN=: |
| 5160 |
;; |
| 5161 |
esac |
| 5162 |
fi |
| 5163 |
|
| 5164 |
if test "$DUMPBIN" != ":"; then |
| 5165 |
NM="$DUMPBIN" |
| 5166 |
fi |
| 5167 |
fi |
| 5168 |
test -z "$NM" && NM=nm |
| 5169 |
|
| 5170 |
|
| 5171 |
|
| 5172 |
|
| 5173 |
|
| 5174 |
|
| 5175 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
| 5176 |
$as_echo_n "checking the name lister ($NM) interface... " >&6; } |
| 5177 |
if ${lt_cv_nm_interface+:} false; then : |
| 5178 |
$as_echo_n "(cached) " >&6 |
| 5179 |
else |
| 5180 |
lt_cv_nm_interface="BSD nm" |
| 5181 |
echo "int some_variable = 0;" > conftest.$ac_ext |
| 5182 |
(eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
| 5183 |
(eval "$ac_compile" 2>conftest.err) |
| 5184 |
cat conftest.err >&5 |
| 5185 |
(eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
| 5186 |
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
| 5187 |
cat conftest.err >&5 |
| 5188 |
(eval echo "\"\$as_me:$LINENO: output\"" >&5) |
| 5189 |
cat conftest.out >&5 |
| 5190 |
if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
| 5191 |
lt_cv_nm_interface="MS dumpbin" |
| 5192 |
fi |
| 5193 |
rm -f conftest* |
| 5194 |
fi |
| 5195 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
| 5196 |
$as_echo "$lt_cv_nm_interface" >&6; } |
| 5197 |
|
| 5198 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
| 5199 |
$as_echo_n "checking whether ln -s works... " >&6; } |
| 5200 |
LN_S=$as_ln_s |
| 5201 |
if test "$LN_S" = "ln -s"; then |
| 5202 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5203 |
$as_echo "yes" >&6; } |
| 5204 |
else |
| 5205 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
| 5206 |
$as_echo "no, using $LN_S" >&6; } |
| 5207 |
fi |
| 5208 |
|
| 5209 |
# find the maximum length of command line arguments |
| 5210 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
| 5211 |
$as_echo_n "checking the maximum length of command line arguments... " >&6; } |
| 5212 |
if ${lt_cv_sys_max_cmd_len+:} false; then : |
| 5213 |
$as_echo_n "(cached) " >&6 |
| 5214 |
else |
| 5215 |
i=0 |
| 5216 |
teststring="ABCD" |
| 5217 |
|
| 5218 |
case $build_os in |
| 5219 |
msdosdjgpp*) |
| 5220 |
# On DJGPP, this test can blow up pretty badly due to problems in libc |
| 5221 |
# (any single argument exceeding 2000 bytes causes a buffer overrun |
| 5222 |
# during glob expansion). Even if it were fixed, the result of this |
| 5223 |
# check would be larger than it should be. |
| 5224 |
lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 5225 |
;; |
| 5226 |
|
| 5227 |
gnu*) |
| 5228 |
# Under GNU Hurd, this test is not required because there is |
| 5229 |
# no limit to the length of command line arguments. |
| 5230 |
# Libtool will interpret -1 as no limit whatsoever |
| 5231 |
lt_cv_sys_max_cmd_len=-1; |
| 5232 |
;; |
| 5233 |
|
| 5234 |
cygwin* | mingw* | cegcc*) |
| 5235 |
# On Win9x/ME, this test blows up -- it succeeds, but takes |
| 5236 |
# about 5 minutes as the teststring grows exponentially. |
| 5237 |
# Worse, since 9x/ME are not pre-emptively multitasking, |
| 5238 |
# you end up with a "frozen" computer, even though with patience |
| 5239 |
# the test eventually succeeds (with a max line length of 256k). |
| 5240 |
# Instead, let's just punt: use the minimum linelength reported by |
| 5241 |
# all of the supported platforms: 8192 (on NT/2K/XP). |
| 5242 |
lt_cv_sys_max_cmd_len=8192; |
| 5243 |
;; |
| 5244 |
|
| 5245 |
mint*) |
| 5246 |
# On MiNT this can take a long time and run out of memory. |
| 5247 |
lt_cv_sys_max_cmd_len=8192; |
| 5248 |
;; |
| 5249 |
|
| 5250 |
amigaos*) |
| 5251 |
# On AmigaOS with pdksh, this test takes hours, literally. |
| 5252 |
# So we just punt and use a minimum line length of 8192. |
| 5253 |
lt_cv_sys_max_cmd_len=8192; |
| 5254 |
;; |
| 5255 |
|
| 5256 |
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
| 5257 |
# This has been around since 386BSD, at least. Likely further. |
| 5258 |
if test -x /sbin/sysctl; then |
| 5259 |
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 5260 |
elif test -x /usr/sbin/sysctl; then |
| 5261 |
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 5262 |
else |
| 5263 |
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| 5264 |
fi |
| 5265 |
# And add a safety zone |
| 5266 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 5267 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 5268 |
;; |
| 5269 |
|
| 5270 |
interix*) |
| 5271 |
# We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 5272 |
lt_cv_sys_max_cmd_len=196608 |
| 5273 |
;; |
| 5274 |
|
| 5275 |
os2*) |
| 5276 |
# The test takes a long time on OS/2. |
| 5277 |
lt_cv_sys_max_cmd_len=8192 |
| 5278 |
;; |
| 5279 |
|
| 5280 |
osf*) |
| 5281 |
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 5282 |
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 5283 |
# nice to cause kernel panics so lets avoid the loop below. |
| 5284 |
# First set a reasonable default. |
| 5285 |
lt_cv_sys_max_cmd_len=16384 |
| 5286 |
# |
| 5287 |
if test -x /sbin/sysconfig; then |
| 5288 |
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 5289 |
*1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 5290 |
esac |
| 5291 |
fi |
| 5292 |
;; |
| 5293 |
sco3.2v5*) |
| 5294 |
lt_cv_sys_max_cmd_len=102400 |
| 5295 |
;; |
| 5296 |
sysv5* | sco5v6* | sysv4.2uw2*) |
| 5297 |
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 5298 |
if test -n "$kargmax"; then |
| 5299 |
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| 5300 |
else |
| 5301 |
lt_cv_sys_max_cmd_len=32768 |
| 5302 |
fi |
| 5303 |
;; |
| 5304 |
*) |
| 5305 |
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
| 5306 |
if test -n "$lt_cv_sys_max_cmd_len"; then |
| 5307 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 5308 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 5309 |
else |
| 5310 |
# Make teststring a little bigger before we do anything with it. |
| 5311 |
# a 1K string should be a reasonable start. |
| 5312 |
for i in 1 2 3 4 5 6 7 8 ; do |
| 5313 |
teststring=$teststring$teststring |
| 5314 |
done |
| 5315 |
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 5316 |
# If test is not a shell built-in, we'll probably end up computing a |
| 5317 |
# maximum length that is only half of the actual maximum length, but |
| 5318 |
# we can't tell. |
| 5319 |
while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ |
| 5320 |
= "X$teststring$teststring"; } >/dev/null 2>&1 && |
| 5321 |
test $i != 17 # 1/2 MB should be enough |
| 5322 |
do |
| 5323 |
i=`expr $i + 1` |
| 5324 |
teststring=$teststring$teststring |
| 5325 |
done |
| 5326 |
# Only check the string length outside the loop. |
| 5327 |
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
| 5328 |
teststring= |
| 5329 |
# Add a significant safety factor because C++ compilers can tack on |
| 5330 |
# massive amounts of additional arguments before passing them to the |
| 5331 |
# linker. It appears as though 1/2 is a usable value. |
| 5332 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 5333 |
fi |
| 5334 |
;; |
| 5335 |
esac |
| 5336 |
|
| 5337 |
fi |
| 5338 |
|
| 5339 |
if test -n $lt_cv_sys_max_cmd_len ; then |
| 5340 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
| 5341 |
$as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
| 5342 |
else |
| 5343 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| 5344 |
$as_echo "none" >&6; } |
| 5345 |
fi |
| 5346 |
max_cmd_len=$lt_cv_sys_max_cmd_len |
| 5347 |
|
| 5348 |
|
| 5349 |
|
| 5350 |
|
| 5351 |
|
| 5352 |
|
| 5353 |
: ${CP="cp -f"} |
| 5354 |
: ${MV="mv -f"} |
| 5355 |
: ${RM="rm -f"} |
| 5356 |
|
| 5357 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
| 5358 |
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } |
| 5359 |
# Try some XSI features |
| 5360 |
xsi_shell=no |
| 5361 |
( _lt_dummy="a/b/c" |
| 5362 |
test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ |
| 5363 |
= c,a/b,b/c, \ |
| 5364 |
&& eval 'test $(( 1 + 1 )) -eq 2 \ |
| 5365 |
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ |
| 5366 |
&& xsi_shell=yes |
| 5367 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
| 5368 |
$as_echo "$xsi_shell" >&6; } |
| 5369 |
|
| 5370 |
|
| 5371 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
| 5372 |
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } |
| 5373 |
lt_shell_append=no |
| 5374 |
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ |
| 5375 |
>/dev/null 2>&1 \ |
| 5376 |
&& lt_shell_append=yes |
| 5377 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
| 5378 |
$as_echo "$lt_shell_append" >&6; } |
| 5379 |
|
| 5380 |
|
| 5381 |
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 5382 |
lt_unset=unset |
| 5383 |
else |
| 5384 |
lt_unset=false |
| 5385 |
fi |
| 5386 |
|
| 5387 |
|
| 5388 |
|
| 5389 |
|
| 5390 |
|
| 5391 |
# test EBCDIC or ASCII |
| 5392 |
case `echo X|tr X '\101'` in |
| 5393 |
A) # ASCII based system |
| 5394 |
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr |
| 5395 |
lt_SP2NL='tr \040 \012' |
| 5396 |
lt_NL2SP='tr \015\012 \040\040' |
| 5397 |
;; |
| 5398 |
*) # EBCDIC based system |
| 5399 |
lt_SP2NL='tr \100 \n' |
| 5400 |
lt_NL2SP='tr \r\n \100\100' |
| 5401 |
;; |
| 5402 |
esac |
| 5403 |
|
| 5404 |
|
| 5405 |
|
| 5406 |
|
| 5407 |
|
| 5408 |
|
| 5409 |
|
| 5410 |
|
| 5411 |
|
| 5412 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 |
| 5413 |
$as_echo_n "checking how to convert $build file names to $host format... " >&6; } |
| 5414 |
if ${lt_cv_to_host_file_cmd+:} false; then : |
| 5415 |
$as_echo_n "(cached) " >&6 |
| 5416 |
else |
| 5417 |
case $host in |
| 5418 |
*-*-mingw* ) |
| 5419 |
case $build in |
| 5420 |
*-*-mingw* ) # actually msys |
| 5421 |
lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 |
| 5422 |
;; |
| 5423 |
*-*-cygwin* ) |
| 5424 |
lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 |
| 5425 |
;; |
| 5426 |
* ) # otherwise, assume *nix |
| 5427 |
lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 |
| 5428 |
;; |
| 5429 |
esac |
| 5430 |
;; |
| 5431 |
*-*-cygwin* ) |
| 5432 |
case $build in |
| 5433 |
*-*-mingw* ) # actually msys |
| 5434 |
lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin |
| 5435 |
;; |
| 5436 |
*-*-cygwin* ) |
| 5437 |
lt_cv_to_host_file_cmd=func_convert_file_noop |
| 5438 |
;; |
| 5439 |
* ) # otherwise, assume *nix |
| 5440 |
lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin |
| 5441 |
;; |
| 5442 |
esac |
| 5443 |
;; |
| 5444 |
* ) # unhandled hosts (and "normal" native builds) |
| 5445 |
lt_cv_to_host_file_cmd=func_convert_file_noop |
| 5446 |
;; |
| 5447 |
esac |
| 5448 |
|
| 5449 |
fi |
| 5450 |
|
| 5451 |
to_host_file_cmd=$lt_cv_to_host_file_cmd |
| 5452 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 |
| 5453 |
$as_echo "$lt_cv_to_host_file_cmd" >&6; } |
| 5454 |
|
| 5455 |
|
| 5456 |
|
| 5457 |
|
| 5458 |
|
| 5459 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 |
| 5460 |
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } |
| 5461 |
if ${lt_cv_to_tool_file_cmd+:} false; then : |
| 5462 |
$as_echo_n "(cached) " >&6 |
| 5463 |
else |
| 5464 |
#assume ordinary cross tools, or native build. |
| 5465 |
lt_cv_to_tool_file_cmd=func_convert_file_noop |
| 5466 |
case $host in |
| 5467 |
*-*-mingw* ) |
| 5468 |
case $build in |
| 5469 |
*-*-mingw* ) # actually msys |
| 5470 |
lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 |
| 5471 |
;; |
| 5472 |
esac |
| 5473 |
;; |
| 5474 |
esac |
| 5475 |
|
| 5476 |
fi |
| 5477 |
|
| 5478 |
to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
| 5479 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 |
| 5480 |
$as_echo "$lt_cv_to_tool_file_cmd" >&6; } |
| 5481 |
|
| 5482 |
|
| 5483 |
|
| 5484 |
|
| 5485 |
|
| 5486 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
| 5487 |
$as_echo_n "checking for $LD option to reload object files... " >&6; } |
| 5488 |
if ${lt_cv_ld_reload_flag+:} false; then : |
| 5489 |
$as_echo_n "(cached) " >&6 |
| 5490 |
else |
| 5491 |
lt_cv_ld_reload_flag='-r' |
| 5492 |
fi |
| 5493 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
| 5494 |
$as_echo "$lt_cv_ld_reload_flag" >&6; } |
| 5495 |
reload_flag=$lt_cv_ld_reload_flag |
| 5496 |
case $reload_flag in |
| 5497 |
"" | " "*) ;; |
| 5498 |
*) reload_flag=" $reload_flag" ;; |
| 5499 |
esac |
| 5500 |
reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 5501 |
case $host_os in |
| 5502 |
cygwin* | mingw* | pw32* | cegcc*) |
| 5503 |
if test "$GCC" != yes; then |
| 5504 |
reload_cmds=false |
| 5505 |
fi |
| 5506 |
;; |
| 5507 |
darwin*) |
| 5508 |
if test "$GCC" = yes; then |
| 5509 |
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
| 5510 |
else |
| 5511 |
reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 5512 |
fi |
| 5513 |
;; |
| 5514 |
esac |
| 5515 |
|
| 5516 |
|
| 5517 |
|
| 5518 |
|
| 5519 |
|
| 5520 |
|
| 5521 |
|
| 5522 |
|
| 5523 |
|
| 5524 |
if test -n "$ac_tool_prefix"; then |
| 5525 |
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
| 5526 |
set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
| 5527 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5528 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 5529 |
if ${ac_cv_prog_OBJDUMP+:} false; then : |
| 5530 |
$as_echo_n "(cached) " >&6 |
| 5531 |
else |
| 5532 |
if test -n "$OBJDUMP"; then |
| 5533 |
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
| 5534 |
else |
| 5535 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5536 |
for as_dir in $PATH |
| 5537 |
do |
| 5538 |
IFS=$as_save_IFS |
| 5539 |
test -z "$as_dir" && as_dir=. |
| 5540 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5541 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5542 |
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
| 5543 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5544 |
break 2 |
| 5545 |
fi |
| 5546 |
done |
| 5547 |
done |
| 5548 |
IFS=$as_save_IFS |
| 5549 |
|
| 5550 |
fi |
| 5551 |
fi |
| 5552 |
OBJDUMP=$ac_cv_prog_OBJDUMP |
| 5553 |
if test -n "$OBJDUMP"; then |
| 5554 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
| 5555 |
$as_echo "$OBJDUMP" >&6; } |
| 5556 |
else |
| 5557 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5558 |
$as_echo "no" >&6; } |
| 5559 |
fi |
| 5560 |
|
| 5561 |
|
| 5562 |
fi |
| 5563 |
if test -z "$ac_cv_prog_OBJDUMP"; then |
| 5564 |
ac_ct_OBJDUMP=$OBJDUMP |
| 5565 |
# Extract the first word of "objdump", so it can be a program name with args. |
| 5566 |
set dummy objdump; ac_word=$2 |
| 5567 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5568 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 5569 |
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
| 5570 |
$as_echo_n "(cached) " >&6 |
| 5571 |
else |
| 5572 |
if test -n "$ac_ct_OBJDUMP"; then |
| 5573 |
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
| 5574 |
else |
| 5575 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5576 |
for as_dir in $PATH |
| 5577 |
do |
| 5578 |
IFS=$as_save_IFS |
| 5579 |
test -z "$as_dir" && as_dir=. |
| 5580 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5581 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5582 |
ac_cv_prog_ac_ct_OBJDUMP="objdump" |
| 5583 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5584 |
break 2 |
| 5585 |
fi |
| 5586 |
done |
| 5587 |
done |
| 5588 |
IFS=$as_save_IFS |
| 5589 |
|
| 5590 |
fi |
| 5591 |
fi |
| 5592 |
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
| 5593 |
if test -n "$ac_ct_OBJDUMP"; then |
| 5594 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
| 5595 |
$as_echo "$ac_ct_OBJDUMP" >&6; } |
| 5596 |
else |
| 5597 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5598 |
$as_echo "no" >&6; } |
| 5599 |
fi |
| 5600 |
|
| 5601 |
if test "x$ac_ct_OBJDUMP" = x; then |
| 5602 |
OBJDUMP="false" |
| 5603 |
else |
| 5604 |
case $cross_compiling:$ac_tool_warned in |
| 5605 |
yes:) |
| 5606 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5607 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5608 |
ac_tool_warned=yes ;; |
| 5609 |
esac |
| 5610 |
OBJDUMP=$ac_ct_OBJDUMP |
| 5611 |
fi |
| 5612 |
else |
| 5613 |
OBJDUMP="$ac_cv_prog_OBJDUMP" |
| 5614 |
fi |
| 5615 |
|
| 5616 |
test -z "$OBJDUMP" && OBJDUMP=objdump |
| 5617 |
|
| 5618 |
|
| 5619 |
|
| 5620 |
|
| 5621 |
|
| 5622 |
|
| 5623 |
|
| 5624 |
|
| 5625 |
|
| 5626 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
| 5627 |
$as_echo_n "checking how to recognize dependent libraries... " >&6; } |
| 5628 |
if ${lt_cv_deplibs_check_method+:} false; then : |
| 5629 |
$as_echo_n "(cached) " >&6 |
| 5630 |
else |
| 5631 |
lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 5632 |
lt_cv_file_magic_test_file= |
| 5633 |
lt_cv_deplibs_check_method='unknown' |
| 5634 |
# Need to set the preceding variable on all platforms that support |
| 5635 |
# interlibrary dependencies. |
| 5636 |
# 'none' -- dependencies not supported. |
| 5637 |
# `unknown' -- same as none, but documents that we really don't know. |
| 5638 |
# 'pass_all' -- all dependencies passed with no checks. |
| 5639 |
# 'test_compile' -- check by making test program. |
| 5640 |
# 'file_magic [[regex]]' -- check by looking for files in library path |
| 5641 |
# which responds to the $file_magic_cmd with a given extended regex. |
| 5642 |
# If you have `file' or equivalent on your system and you're not sure |
| 5643 |
# whether `pass_all' will *always* work, you probably want this one. |
| 5644 |
|
| 5645 |
case $host_os in |
| 5646 |
aix[4-9]*) |
| 5647 |
lt_cv_deplibs_check_method=pass_all |
| 5648 |
;; |
| 5649 |
|
| 5650 |
beos*) |
| 5651 |
lt_cv_deplibs_check_method=pass_all |
| 5652 |
;; |
| 5653 |
|
| 5654 |
bsdi[45]*) |
| 5655 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 5656 |
lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 5657 |
lt_cv_file_magic_test_file=/shlib/libc.so |
| 5658 |
;; |
| 5659 |
|
| 5660 |
cygwin*) |
| 5661 |
# func_win32_libid is a shell function defined in ltmain.sh |
| 5662 |
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 5663 |
lt_cv_file_magic_cmd='func_win32_libid' |
| 5664 |
;; |
| 5665 |
|
| 5666 |
mingw* | pw32*) |
| 5667 |
# Base MSYS/MinGW do not provide the 'file' command needed by |
| 5668 |
# func_win32_libid shell function, so use a weaker test based on 'objdump', |
| 5669 |
# unless we find 'file', for example because we are cross-compiling. |
| 5670 |
# func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. |
| 5671 |
if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then |
| 5672 |
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 5673 |
lt_cv_file_magic_cmd='func_win32_libid' |
| 5674 |
else |
| 5675 |
# Keep this pattern in sync with the one in func_win32_libid. |
| 5676 |
lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' |
| 5677 |
lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 5678 |
fi |
| 5679 |
;; |
| 5680 |
|
| 5681 |
cegcc*) |
| 5682 |
# use the weaker test based on 'objdump'. See mingw*. |
| 5683 |
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
| 5684 |
lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 5685 |
;; |
| 5686 |
|
| 5687 |
darwin* | rhapsody*) |
| 5688 |
lt_cv_deplibs_check_method=pass_all |
| 5689 |
;; |
| 5690 |
|
| 5691 |
freebsd* | dragonfly*) |
| 5692 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 5693 |
case $host_cpu in |
| 5694 |
i*86 ) |
| 5695 |
# Not sure whether the presence of OpenBSD here was a mistake. |
| 5696 |
# Let's accept both of them until this is cleared up. |
| 5697 |
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
| 5698 |
lt_cv_file_magic_cmd=/usr/bin/file |
| 5699 |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 5700 |
;; |
| 5701 |
esac |
| 5702 |
else |
| 5703 |
lt_cv_deplibs_check_method=pass_all |
| 5704 |
fi |
| 5705 |
;; |
| 5706 |
|
| 5707 |
gnu*) |
| 5708 |
lt_cv_deplibs_check_method=pass_all |
| 5709 |
;; |
| 5710 |
|
| 5711 |
haiku*) |
| 5712 |
lt_cv_deplibs_check_method=pass_all |
| 5713 |
;; |
| 5714 |
|
| 5715 |
hpux10.20* | hpux11*) |
| 5716 |
lt_cv_file_magic_cmd=/usr/bin/file |
| 5717 |
case $host_cpu in |
| 5718 |
ia64*) |
| 5719 |
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 5720 |
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 5721 |
;; |
| 5722 |
hppa*64*) |
| 5723 |
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' |
| 5724 |
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 5725 |
;; |
| 5726 |
*) |
| 5727 |
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
| 5728 |
lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 5729 |
;; |
| 5730 |
esac |
| 5731 |
;; |
| 5732 |
|
| 5733 |
interix[3-9]*) |
| 5734 |
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 5735 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 5736 |
;; |
| 5737 |
|
| 5738 |
irix5* | irix6* | nonstopux*) |
| 5739 |
case $LD in |
| 5740 |
*-32|*"-32 ") libmagic=32-bit;; |
| 5741 |
*-n32|*"-n32 ") libmagic=N32;; |
| 5742 |
*-64|*"-64 ") libmagic=64-bit;; |
| 5743 |
*) libmagic=never-match;; |
| 5744 |
esac |
| 5745 |
lt_cv_deplibs_check_method=pass_all |
| 5746 |
;; |
| 5747 |
|
| 5748 |
# This must be glibc/ELF. |
| 5749 |
linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| 5750 |
lt_cv_deplibs_check_method=pass_all |
| 5751 |
;; |
| 5752 |
|
| 5753 |
netbsd*) |
| 5754 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 5755 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 5756 |
else |
| 5757 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 5758 |
fi |
| 5759 |
;; |
| 5760 |
|
| 5761 |
newos6*) |
| 5762 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 5763 |
lt_cv_file_magic_cmd=/usr/bin/file |
| 5764 |
lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 5765 |
;; |
| 5766 |
|
| 5767 |
*nto* | *qnx*) |
| 5768 |
lt_cv_deplibs_check_method=pass_all |
| 5769 |
;; |
| 5770 |
|
| 5771 |
openbsd*) |
| 5772 |
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 5773 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
| 5774 |
else |
| 5775 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 5776 |
fi |
| 5777 |
;; |
| 5778 |
|
| 5779 |
osf3* | osf4* | osf5*) |
| 5780 |
lt_cv_deplibs_check_method=pass_all |
| 5781 |
;; |
| 5782 |
|
| 5783 |
rdos*) |
| 5784 |
lt_cv_deplibs_check_method=pass_all |
| 5785 |
;; |
| 5786 |
|
| 5787 |
solaris*) |
| 5788 |
lt_cv_deplibs_check_method=pass_all |
| 5789 |
;; |
| 5790 |
|
| 5791 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 5792 |
lt_cv_deplibs_check_method=pass_all |
| 5793 |
;; |
| 5794 |
|
| 5795 |
sysv4 | sysv4.3*) |
| 5796 |
case $host_vendor in |
| 5797 |
motorola) |
| 5798 |
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]' |
| 5799 |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 5800 |
;; |
| 5801 |
ncr) |
| 5802 |
lt_cv_deplibs_check_method=pass_all |
| 5803 |
;; |
| 5804 |
sequent) |
| 5805 |
lt_cv_file_magic_cmd='/bin/file' |
| 5806 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 5807 |
;; |
| 5808 |
sni) |
| 5809 |
lt_cv_file_magic_cmd='/bin/file' |
| 5810 |
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 5811 |
lt_cv_file_magic_test_file=/lib/libc.so |
| 5812 |
;; |
| 5813 |
siemens) |
| 5814 |
lt_cv_deplibs_check_method=pass_all |
| 5815 |
;; |
| 5816 |
pc) |
| 5817 |
lt_cv_deplibs_check_method=pass_all |
| 5818 |
;; |
| 5819 |
esac |
| 5820 |
;; |
| 5821 |
|
| 5822 |
tpf*) |
| 5823 |
lt_cv_deplibs_check_method=pass_all |
| 5824 |
;; |
| 5825 |
esac |
| 5826 |
|
| 5827 |
fi |
| 5828 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
| 5829 |
$as_echo "$lt_cv_deplibs_check_method" >&6; } |
| 5830 |
|
| 5831 |
file_magic_glob= |
| 5832 |
want_nocaseglob=no |
| 5833 |
if test "$build" = "$host"; then |
| 5834 |
case $host_os in |
| 5835 |
mingw* | pw32*) |
| 5836 |
if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then |
| 5837 |
want_nocaseglob=yes |
| 5838 |
else |
| 5839 |
file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` |
| 5840 |
fi |
| 5841 |
;; |
| 5842 |
esac |
| 5843 |
fi |
| 5844 |
|
| 5845 |
file_magic_cmd=$lt_cv_file_magic_cmd |
| 5846 |
deplibs_check_method=$lt_cv_deplibs_check_method |
| 5847 |
test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 5848 |
|
| 5849 |
|
| 5850 |
|
| 5851 |
|
| 5852 |
|
| 5853 |
|
| 5854 |
|
| 5855 |
|
| 5856 |
|
| 5857 |
|
| 5858 |
|
| 5859 |
|
| 5860 |
|
| 5861 |
|
| 5862 |
|
| 5863 |
|
| 5864 |
|
| 5865 |
|
| 5866 |
|
| 5867 |
|
| 5868 |
|
| 5869 |
|
| 5870 |
if test -n "$ac_tool_prefix"; then |
| 5871 |
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
| 5872 |
set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
| 5873 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5874 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 5875 |
if ${ac_cv_prog_DLLTOOL+:} false; then : |
| 5876 |
$as_echo_n "(cached) " >&6 |
| 5877 |
else |
| 5878 |
if test -n "$DLLTOOL"; then |
| 5879 |
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 5880 |
else |
| 5881 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5882 |
for as_dir in $PATH |
| 5883 |
do |
| 5884 |
IFS=$as_save_IFS |
| 5885 |
test -z "$as_dir" && as_dir=. |
| 5886 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5887 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5888 |
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
| 5889 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5890 |
break 2 |
| 5891 |
fi |
| 5892 |
done |
| 5893 |
done |
| 5894 |
IFS=$as_save_IFS |
| 5895 |
|
| 5896 |
fi |
| 5897 |
fi |
| 5898 |
DLLTOOL=$ac_cv_prog_DLLTOOL |
| 5899 |
if test -n "$DLLTOOL"; then |
| 5900 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
| 5901 |
$as_echo "$DLLTOOL" >&6; } |
| 5902 |
else |
| 5903 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5904 |
$as_echo "no" >&6; } |
| 5905 |
fi |
| 5906 |
|
| 5907 |
|
| 5908 |
fi |
| 5909 |
if test -z "$ac_cv_prog_DLLTOOL"; then |
| 5910 |
ac_ct_DLLTOOL=$DLLTOOL |
| 5911 |
# Extract the first word of "dlltool", so it can be a program name with args. |
| 5912 |
set dummy dlltool; ac_word=$2 |
| 5913 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5914 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 5915 |
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : |
| 5916 |
$as_echo_n "(cached) " >&6 |
| 5917 |
else |
| 5918 |
if test -n "$ac_ct_DLLTOOL"; then |
| 5919 |
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
| 5920 |
else |
| 5921 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5922 |
for as_dir in $PATH |
| 5923 |
do |
| 5924 |
IFS=$as_save_IFS |
| 5925 |
test -z "$as_dir" && as_dir=. |
| 5926 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5927 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5928 |
ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
| 5929 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5930 |
break 2 |
| 5931 |
fi |
| 5932 |
done |
| 5933 |
done |
| 5934 |
IFS=$as_save_IFS |
| 5935 |
|
| 5936 |
fi |
| 5937 |
fi |
| 5938 |
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
| 5939 |
if test -n "$ac_ct_DLLTOOL"; then |
| 5940 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 |
| 5941 |
$as_echo "$ac_ct_DLLTOOL" >&6; } |
| 5942 |
else |
| 5943 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5944 |
$as_echo "no" >&6; } |
| 5945 |
fi |
| 5946 |
|
| 5947 |
if test "x$ac_ct_DLLTOOL" = x; then |
| 5948 |
DLLTOOL="false" |
| 5949 |
else |
| 5950 |
case $cross_compiling:$ac_tool_warned in |
| 5951 |
yes:) |
| 5952 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5953 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5954 |
ac_tool_warned=yes ;; |
| 5955 |
esac |
| 5956 |
DLLTOOL=$ac_ct_DLLTOOL |
| 5957 |
fi |
| 5958 |
else |
| 5959 |
DLLTOOL="$ac_cv_prog_DLLTOOL" |
| 5960 |
fi |
| 5961 |
|
| 5962 |
test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 5963 |
|
| 5964 |
|
| 5965 |
|
| 5966 |
|
| 5967 |
|
| 5968 |
|
| 5969 |
|
| 5970 |
|
| 5971 |
|
| 5972 |
|
| 5973 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 |
| 5974 |
$as_echo_n "checking how to associate runtime and link libraries... " >&6; } |
| 5975 |
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : |
| 5976 |
$as_echo_n "(cached) " >&6 |
| 5977 |
else |
| 5978 |
lt_cv_sharedlib_from_linklib_cmd='unknown' |
| 5979 |
|
| 5980 |
case $host_os in |
| 5981 |
cygwin* | mingw* | pw32* | cegcc*) |
| 5982 |
# two different shell functions defined in ltmain.sh |
| 5983 |
# decide which to use based on capabilities of $DLLTOOL |
| 5984 |
case `$DLLTOOL --help 2>&1` in |
| 5985 |
*--identify-strict*) |
| 5986 |
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib |
| 5987 |
;; |
| 5988 |
*) |
| 5989 |
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback |
| 5990 |
;; |
| 5991 |
esac |
| 5992 |
;; |
| 5993 |
*) |
| 5994 |
# fallback: assume linklib IS sharedlib |
| 5995 |
lt_cv_sharedlib_from_linklib_cmd="$ECHO" |
| 5996 |
;; |
| 5997 |
esac |
| 5998 |
|
| 5999 |
fi |
| 6000 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 |
| 6001 |
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } |
| 6002 |
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd |
| 6003 |
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO |
| 6004 |
|
| 6005 |
|
| 6006 |
|
| 6007 |
|
| 6008 |
|
| 6009 |
|
| 6010 |
|
| 6011 |
if test -n "$ac_tool_prefix"; then |
| 6012 |
for ac_prog in ar |
| 6013 |
do |
| 6014 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 6015 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 6016 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6017 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 6018 |
if ${ac_cv_prog_AR+:} false; then : |
| 6019 |
$as_echo_n "(cached) " >&6 |
| 6020 |
else |
| 6021 |
if test -n "$AR"; then |
| 6022 |
ac_cv_prog_AR="$AR" # Let the user override the test. |
| 6023 |
else |
| 6024 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6025 |
for as_dir in $PATH |
| 6026 |
do |
| 6027 |
IFS=$as_save_IFS |
| 6028 |
test -z "$as_dir" && as_dir=. |
| 6029 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 6030 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6031 |
ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
| 6032 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6033 |
break 2 |
| 6034 |
fi |
| 6035 |
done |
| 6036 |
done |
| 6037 |
IFS=$as_save_IFS |
| 6038 |
|
| 6039 |
fi |
| 6040 |
fi |
| 6041 |
AR=$ac_cv_prog_AR |
| 6042 |
if test -n "$AR"; then |
| 6043 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 6044 |
$as_echo "$AR" >&6; } |
| 6045 |
else |
| 6046 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6047 |
$as_echo "no" >&6; } |
| 6048 |
fi |
| 6049 |
|
| 6050 |
|
| 6051 |
test -n "$AR" && break |
| 6052 |
done |
| 6053 |
fi |
| 6054 |
if test -z "$AR"; then |
| 6055 |
ac_ct_AR=$AR |
| 6056 |
for ac_prog in ar |
| 6057 |
do |
| 6058 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6059 |
set dummy $ac_prog; ac_word=$2 |
| 6060 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6061 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 6062 |
if ${ac_cv_prog_ac_ct_AR+:} false; then : |
| 6063 |
$as_echo_n "(cached) " >&6 |
| 6064 |
else |
| 6065 |
if test -n "$ac_ct_AR"; then |
| 6066 |
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 6067 |
else |
| 6068 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6069 |
for as_dir in $PATH |
| 6070 |
do |
| 6071 |
IFS=$as_save_IFS |
| 6072 |
test -z "$as_dir" && as_dir=. |
| 6073 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 6074 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6075 |
ac_cv_prog_ac_ct_AR="$ac_prog" |
| 6076 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6077 |
break 2 |
| 6078 |
fi |
| 6079 |
done |
| 6080 |
done |
| 6081 |
IFS=$as_save_IFS |
| 6082 |
|
| 6083 |
fi |
| 6084 |
fi |
| 6085 |
ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 6086 |
if test -n "$ac_ct_AR"; then |
| 6087 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
| 6088 |
$as_echo "$ac_ct_AR" >&6; } |
| 6089 |
else |
| 6090 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6091 |
$as_echo "no" >&6; } |
| 6092 |
fi |
| 6093 |
|
| 6094 |
|
| 6095 |
test -n "$ac_ct_AR" && break |
| 6096 |
done |
| 6097 |
|
| 6098 |
if test "x$ac_ct_AR" = x; then |
| 6099 |
AR="false" |
| 6100 |
else |
| 6101 |
case $cross_compiling:$ac_tool_warned in |
| 6102 |
yes:) |
| 6103 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6104 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6105 |
ac_tool_warned=yes ;; |
| 6106 |
esac |
| 6107 |
AR=$ac_ct_AR |
| 6108 |
fi |
| 6109 |
fi |
| 6110 |
|
| 6111 |
: ${AR=ar} |
| 6112 |
: ${AR_FLAGS=cru} |
| 6113 |
|
| 6114 |
|
| 6115 |
|
| 6116 |
|
| 6117 |
|
| 6118 |
|
| 6119 |
|
| 6120 |
|
| 6121 |
|
| 6122 |
|
| 6123 |
|
| 6124 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 |
| 6125 |
$as_echo_n "checking for archiver @FILE support... " >&6; } |
| 6126 |
if ${lt_cv_ar_at_file+:} false; then : |
| 6127 |
$as_echo_n "(cached) " >&6 |
| 6128 |
else |
| 6129 |
lt_cv_ar_at_file=no |
| 6130 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6131 |
/* end confdefs.h. */ |
| 6132 |
|
| 6133 |
int |
| 6134 |
main () |
| 6135 |
{ |
| 6136 |
|
| 6137 |
; |
| 6138 |
return 0; |
| 6139 |
} |
| 6140 |
_ACEOF |
| 6141 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 6142 |
echo conftest.$ac_objext > conftest.lst |
| 6143 |
lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' |
| 6144 |
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
| 6145 |
(eval $lt_ar_try) 2>&5 |
| 6146 |
ac_status=$? |
| 6147 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6148 |
test $ac_status = 0; } |
| 6149 |
if test "$ac_status" -eq 0; then |
| 6150 |
# Ensure the archiver fails upon bogus file names. |
| 6151 |
rm -f conftest.$ac_objext libconftest.a |
| 6152 |
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
| 6153 |
(eval $lt_ar_try) 2>&5 |
| 6154 |
ac_status=$? |
| 6155 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6156 |
test $ac_status = 0; } |
| 6157 |
if test "$ac_status" -ne 0; then |
| 6158 |
lt_cv_ar_at_file=@ |
| 6159 |
fi |
| 6160 |
fi |
| 6161 |
rm -f conftest.* libconftest.a |
| 6162 |
|
| 6163 |
fi |
| 6164 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6165 |
|
| 6166 |
fi |
| 6167 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 |
| 6168 |
$as_echo "$lt_cv_ar_at_file" >&6; } |
| 6169 |
|
| 6170 |
if test "x$lt_cv_ar_at_file" = xno; then |
| 6171 |
archiver_list_spec= |
| 6172 |
else |
| 6173 |
archiver_list_spec=$lt_cv_ar_at_file |
| 6174 |
fi |
| 6175 |
|
| 6176 |
|
| 6177 |
|
| 6178 |
|
| 6179 |
|
| 6180 |
|
| 6181 |
|
| 6182 |
if test -n "$ac_tool_prefix"; then |
| 6183 |
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 6184 |
set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 6185 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6186 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 6187 |
if ${ac_cv_prog_STRIP+:} false; then : |
| 6188 |
$as_echo_n "(cached) " >&6 |
| 6189 |
else |
| 6190 |
if test -n "$STRIP"; then |
| 6191 |
ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 6192 |
else |
| 6193 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6194 |
for as_dir in $PATH |
| 6195 |
do |
| 6196 |
IFS=$as_save_IFS |
| 6197 |
test -z "$as_dir" && as_dir=. |
| 6198 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 6199 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6200 |
ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 6201 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6202 |
break 2 |
| 6203 |
fi |
| 6204 |
done |
| 6205 |
done |
| 6206 |
IFS=$as_save_IFS |
| 6207 |
|
| 6208 |
fi |
| 6209 |
fi |
| 6210 |
STRIP=$ac_cv_prog_STRIP |
| 6211 |
if test -n "$STRIP"; then |
| 6212 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 6213 |
$as_echo "$STRIP" >&6; } |
| 6214 |
else |
| 6215 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6216 |
$as_echo "no" >&6; } |
| 6217 |
fi |
| 6218 |
|
| 6219 |
|
| 6220 |
fi |
| 6221 |
if test -z "$ac_cv_prog_STRIP"; then |
| 6222 |
ac_ct_STRIP=$STRIP |
| 6223 |
# Extract the first word of "strip", so it can be a program name with args. |
| 6224 |
set dummy strip; ac_word=$2 |
| 6225 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6226 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 6227 |
if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
| 6228 |
$as_echo_n "(cached) " >&6 |
| 6229 |
else |
| 6230 |
if test -n "$ac_ct_STRIP"; then |
| 6231 |
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 6232 |
else |
| 6233 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6234 |
for as_dir in $PATH |
| 6235 |
do |
| 6236 |
IFS=$as_save_IFS |
| 6237 |
test -z "$as_dir" && as_dir=. |
| 6238 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 6239 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6240 |
ac_cv_prog_ac_ct_STRIP="strip" |
| 6241 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6242 |
break 2 |
| 6243 |
fi |
| 6244 |
done |
| 6245 |
done |
| 6246 |
IFS=$as_save_IFS |
| 6247 |
|
| 6248 |
fi |
| 6249 |
fi |
| 6250 |
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 6251 |
if test -n "$ac_ct_STRIP"; then |
| 6252 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 6253 |
$as_echo "$ac_ct_STRIP" >&6; } |
| 6254 |
else |
| 6255 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6256 |
$as_echo "no" >&6; } |
| 6257 |
fi |
| 6258 |
|
| 6259 |
if test "x$ac_ct_STRIP" = x; then |
| 6260 |
STRIP=":" |
| 6261 |
else |
| 6262 |
case $cross_compiling:$ac_tool_warned in |
| 6263 |
yes:) |
| 6264 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6265 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6266 |
ac_tool_warned=yes ;; |
| 6267 |
esac |
| 6268 |
STRIP=$ac_ct_STRIP |
| 6269 |
fi |
| 6270 |
else |
| 6271 |
STRIP="$ac_cv_prog_STRIP" |
| 6272 |
fi |
| 6273 |
|
| 6274 |
test -z "$STRIP" && STRIP=: |
| 6275 |
|
| 6276 |
|
| 6277 |
|
| 6278 |
|
| 6279 |
|
| 6280 |
|
| 6281 |
if test -n "$ac_tool_prefix"; then |
| 6282 |
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 6283 |
set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 6284 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6285 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 6286 |
if ${ac_cv_prog_RANLIB+:} false; then : |
| 6287 |
$as_echo_n "(cached) " >&6 |
| 6288 |
else |
| 6289 |
if test -n "$RANLIB"; then |
| 6290 |
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 6291 |
else |
| 6292 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6293 |
for as_dir in $PATH |
| 6294 |
do |
| 6295 |
IFS=$as_save_IFS |
| 6296 |
test -z "$as_dir" && as_dir=. |
| 6297 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 6298 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6299 |
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 6300 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6301 |
break 2 |
| 6302 |
fi |
| 6303 |
done |
| 6304 |
done |
| 6305 |
IFS=$as_save_IFS |
| 6306 |
|
| 6307 |
fi |
| 6308 |
fi |
| 6309 |
RANLIB=$ac_cv_prog_RANLIB |
| 6310 |
if test -n "$RANLIB"; then |
| 6311 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 6312 |
$as_echo "$RANLIB" >&6; } |
| 6313 |
else |
| 6314 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6315 |
$as_echo "no" >&6; } |
| 6316 |
fi |
| 6317 |
|
| 6318 |
|
| 6319 |
fi |
| 6320 |
if test -z "$ac_cv_prog_RANLIB"; then |
| 6321 |
ac_ct_RANLIB=$RANLIB |
| 6322 |
# Extract the first word of "ranlib", so it can be a program name with args. |
| 6323 |
set dummy ranlib; ac_word=$2 |
| 6324 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6325 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 6326 |
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
| 6327 |
$as_echo_n "(cached) " >&6 |
| 6328 |
else |
| 6329 |
if test -n "$ac_ct_RANLIB"; then |
| 6330 |
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 6331 |
else |
| 6332 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6333 |
for as_dir in $PATH |
| 6334 |
do |
| 6335 |
IFS=$as_save_IFS |
| 6336 |
test -z "$as_dir" && as_dir=. |
| 6337 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 6338 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6339 |
ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 6340 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6341 |
break 2 |
| 6342 |
fi |
| 6343 |
done |
| 6344 |
done |
| 6345 |
IFS=$as_save_IFS |
| 6346 |
|
| 6347 |
fi |
| 6348 |
fi |
| 6349 |
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 6350 |
if test -n "$ac_ct_RANLIB"; then |
| 6351 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| 6352 |
$as_echo "$ac_ct_RANLIB" >&6; } |
| 6353 |
else |
| 6354 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6355 |
$as_echo "no" >&6; } |
| 6356 |
fi |
| 6357 |
|
| 6358 |
if test "x$ac_ct_RANLIB" = x; then |
| 6359 |
RANLIB=":" |
| 6360 |
else |
| 6361 |
case $cross_compiling:$ac_tool_warned in |
| 6362 |
yes:) |
| 6363 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6364 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6365 |
ac_tool_warned=yes ;; |
| 6366 |
esac |
| 6367 |
RANLIB=$ac_ct_RANLIB |
| 6368 |
fi |
| 6369 |
else |
| 6370 |
RANLIB="$ac_cv_prog_RANLIB" |
| 6371 |
fi |
| 6372 |
|
| 6373 |
test -z "$RANLIB" && RANLIB=: |
| 6374 |
|
| 6375 |
|
| 6376 |
|
| 6377 |
|
| 6378 |
|
| 6379 |
|
| 6380 |
# Determine commands to create old-style static archives. |
| 6381 |
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
| 6382 |
old_postinstall_cmds='chmod 644 $oldlib' |
| 6383 |
old_postuninstall_cmds= |
| 6384 |
|
| 6385 |
if test -n "$RANLIB"; then |
| 6386 |
case $host_os in |
| 6387 |
openbsd*) |
| 6388 |
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" |
| 6389 |
;; |
| 6390 |
*) |
| 6391 |
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" |
| 6392 |
;; |
| 6393 |
esac |
| 6394 |
old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" |
| 6395 |
fi |
| 6396 |
|
| 6397 |
case $host_os in |
| 6398 |
darwin*) |
| 6399 |
lock_old_archive_extraction=yes ;; |
| 6400 |
*) |
| 6401 |
lock_old_archive_extraction=no ;; |
| 6402 |
esac |
| 6403 |
|
| 6404 |
|
| 6405 |
|
| 6406 |
|
| 6407 |
|
| 6408 |
|
| 6409 |
|
| 6410 |
|
| 6411 |
|
| 6412 |
|
| 6413 |
|
| 6414 |
|
| 6415 |
|
| 6416 |
|
| 6417 |
|
| 6418 |
|
| 6419 |
|
| 6420 |
|
| 6421 |
|
| 6422 |
|
| 6423 |
|
| 6424 |
|
| 6425 |
|
| 6426 |
|
| 6427 |
|
| 6428 |
|
| 6429 |
|
| 6430 |
|
| 6431 |
|
| 6432 |
|
| 6433 |
|
| 6434 |
|
| 6435 |
|
| 6436 |
|
| 6437 |
|
| 6438 |
|
| 6439 |
|
| 6440 |
|
| 6441 |
|
| 6442 |
# If no C compiler was specified, use CC. |
| 6443 |
LTCC=${LTCC-"$CC"} |
| 6444 |
|
| 6445 |
# If no C compiler flags were specified, use CFLAGS. |
| 6446 |
LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 6447 |
|
| 6448 |
# Allow CC to be a program name with arguments. |
| 6449 |
compiler=$CC |
| 6450 |
|
| 6451 |
|
| 6452 |
# Check for command to grab the raw symbol name followed by C symbol from nm. |
| 6453 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
| 6454 |
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } |
| 6455 |
if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
| 6456 |
$as_echo_n "(cached) " >&6 |
| 6457 |
else |
| 6458 |
|
| 6459 |
# These are sane defaults that work on at least a few old systems. |
| 6460 |
# [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 6461 |
|
| 6462 |
# Character class describing NM global symbol codes. |
| 6463 |
symcode='[BCDEGRST]' |
| 6464 |
|
| 6465 |
# Regexp to match symbols that can be accessed directly from C. |
| 6466 |
sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 6467 |
|
| 6468 |
# Define system-specific variables. |
| 6469 |
case $host_os in |
| 6470 |
aix*) |
| 6471 |
symcode='[BCDT]' |
| 6472 |
;; |
| 6473 |
cygwin* | mingw* | pw32* | cegcc*) |
| 6474 |
symcode='[ABCDGISTW]' |
| 6475 |
;; |
| 6476 |
hpux*) |
| 6477 |
if test "$host_cpu" = ia64; then |
| 6478 |
symcode='[ABCDEGRST]' |
| 6479 |
fi |
| 6480 |
;; |
| 6481 |
irix* | nonstopux*) |
| 6482 |
symcode='[BCDEGRST]' |
| 6483 |
;; |
| 6484 |
osf*) |
| 6485 |
symcode='[BCDEGQRST]' |
| 6486 |
;; |
| 6487 |
solaris*) |
| 6488 |
symcode='[BDRT]' |
| 6489 |
;; |
| 6490 |
sco3.2v5*) |
| 6491 |
symcode='[DT]' |
| 6492 |
;; |
| 6493 |
sysv4.2uw2*) |
| 6494 |
symcode='[DT]' |
| 6495 |
;; |
| 6496 |
sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 6497 |
symcode='[ABDT]' |
| 6498 |
;; |
| 6499 |
sysv4) |
| 6500 |
symcode='[DFNSTU]' |
| 6501 |
;; |
| 6502 |
esac |
| 6503 |
|
| 6504 |
# If we're using GNU nm, then use its standard symbol codes. |
| 6505 |
case `$NM -V 2>&1` in |
| 6506 |
*GNU* | *'with BFD'*) |
| 6507 |
symcode='[ABCDGIRSTW]' ;; |
| 6508 |
esac |
| 6509 |
|
| 6510 |
# Transform an extracted symbol line into a proper C declaration. |
| 6511 |
# Some systems (esp. on ia64) link data and code symbols differently, |
| 6512 |
# so use this general approach. |
| 6513 |
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 6514 |
|
| 6515 |
# Transform an extracted symbol line into symbol name and symbol address |
| 6516 |
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" |
| 6517 |
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" |
| 6518 |
|
| 6519 |
# Handle CRLF in mingw tool chain |
| 6520 |
opt_cr= |
| 6521 |
case $build_os in |
| 6522 |
mingw*) |
| 6523 |
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 6524 |
;; |
| 6525 |
esac |
| 6526 |
|
| 6527 |
# Try without a prefix underscore, then with it. |
| 6528 |
for ac_symprfx in "" "_"; do |
| 6529 |
|
| 6530 |
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 6531 |
symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 6532 |
|
| 6533 |
# Write the raw and C identifiers. |
| 6534 |
if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 6535 |
# Fake it for dumpbin and say T for any non-static function |
| 6536 |
# and D for any global variable. |
| 6537 |
# Also find C++ and __fastcall symbols from MSVC++, |
| 6538 |
# which start with @ or ?. |
| 6539 |
lt_cv_sys_global_symbol_pipe="$AWK '"\ |
| 6540 |
" {last_section=section; section=\$ 3};"\ |
| 6541 |
" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ |
| 6542 |
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
| 6543 |
" \$ 0!~/External *\|/{next};"\ |
| 6544 |
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
| 6545 |
" {if(hide[section]) next};"\ |
| 6546 |
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ |
| 6547 |
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ |
| 6548 |
" s[1]~/^[@?]/{print s[1], s[1]; next};"\ |
| 6549 |
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ |
| 6550 |
" ' prfx=^$ac_symprfx" |
| 6551 |
else |
| 6552 |
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
| 6553 |
fi |
| 6554 |
lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" |
| 6555 |
|
| 6556 |
# Check to see that the pipe works correctly. |
| 6557 |
pipe_works=no |
| 6558 |
|
| 6559 |
rm -f conftest* |
| 6560 |
cat > conftest.$ac_ext <<_LT_EOF |
| 6561 |
#ifdef __cplusplus |
| 6562 |
extern "C" { |
| 6563 |
#endif |
| 6564 |
char nm_test_var; |
| 6565 |
void nm_test_func(void); |
| 6566 |
void nm_test_func(void){} |
| 6567 |
#ifdef __cplusplus |
| 6568 |
} |
| 6569 |
#endif |
| 6570 |
int main(){nm_test_var='a';nm_test_func();return(0);} |
| 6571 |
_LT_EOF |
| 6572 |
|
| 6573 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6574 |
(eval $ac_compile) 2>&5 |
| 6575 |
ac_status=$? |
| 6576 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6577 |
test $ac_status = 0; }; then |
| 6578 |
# Now try to grab the symbols. |
| 6579 |
nlist=conftest.nm |
| 6580 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
| 6581 |
(eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 |
| 6582 |
ac_status=$? |
| 6583 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6584 |
test $ac_status = 0; } && test -s "$nlist"; then |
| 6585 |
# Try sorting and uniquifying the output. |
| 6586 |
if sort "$nlist" | uniq > "$nlist"T; then |
| 6587 |
mv -f "$nlist"T "$nlist" |
| 6588 |
else |
| 6589 |
rm -f "$nlist"T |
| 6590 |
fi |
| 6591 |
|
| 6592 |
# Make sure that we snagged all the symbols we need. |
| 6593 |
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
| 6594 |
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
| 6595 |
cat <<_LT_EOF > conftest.$ac_ext |
| 6596 |
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ |
| 6597 |
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) |
| 6598 |
/* DATA imports from DLLs on WIN32 con't be const, because runtime |
| 6599 |
relocations are performed -- see ld's documentation on pseudo-relocs. */ |
| 6600 |
# define LT_DLSYM_CONST |
| 6601 |
#elif defined(__osf__) |
| 6602 |
/* This system does not cope well with relocations in const data. */ |
| 6603 |
# define LT_DLSYM_CONST |
| 6604 |
#else |
| 6605 |
# define LT_DLSYM_CONST const |
| 6606 |
#endif |
| 6607 |
|
| 6608 |
#ifdef __cplusplus |
| 6609 |
extern "C" { |
| 6610 |
#endif |
| 6611 |
|
| 6612 |
_LT_EOF |
| 6613 |
# Now generate the symbol file. |
| 6614 |
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
| 6615 |
|
| 6616 |
cat <<_LT_EOF >> conftest.$ac_ext |
| 6617 |
|
| 6618 |
/* The mapping between symbol names and symbols. */ |
| 6619 |
LT_DLSYM_CONST struct { |
| 6620 |
const char *name; |
| 6621 |
void *address; |
| 6622 |
} |
| 6623 |
lt__PROGRAM__LTX_preloaded_symbols[] = |
| 6624 |
{ |
| 6625 |
{ "@PROGRAM@", (void *) 0 }, |
| 6626 |
_LT_EOF |
| 6627 |
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
| 6628 |
cat <<\_LT_EOF >> conftest.$ac_ext |
| 6629 |
{0, (void *) 0} |
| 6630 |
}; |
| 6631 |
|
| 6632 |
/* This works around a problem in FreeBSD linker */ |
| 6633 |
#ifdef FREEBSD_WORKAROUND |
| 6634 |
static const void *lt_preloaded_setup() { |
| 6635 |
return lt__PROGRAM__LTX_preloaded_symbols; |
| 6636 |
} |
| 6637 |
#endif |
| 6638 |
|
| 6639 |
#ifdef __cplusplus |
| 6640 |
} |
| 6641 |
#endif |
| 6642 |
_LT_EOF |
| 6643 |
# Now try linking the two files. |
| 6644 |
mv conftest.$ac_objext conftstm.$ac_objext |
| 6645 |
lt_globsym_save_LIBS=$LIBS |
| 6646 |
lt_globsym_save_CFLAGS=$CFLAGS |
| 6647 |
LIBS="conftstm.$ac_objext" |
| 6648 |
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 6649 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 6650 |
(eval $ac_link) 2>&5 |
| 6651 |
ac_status=$? |
| 6652 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6653 |
test $ac_status = 0; } && test -s conftest${ac_exeext}; then |
| 6654 |
pipe_works=yes |
| 6655 |
fi |
| 6656 |
LIBS=$lt_globsym_save_LIBS |
| 6657 |
CFLAGS=$lt_globsym_save_CFLAGS |
| 6658 |
else |
| 6659 |
echo "cannot find nm_test_func in $nlist" >&5 |
| 6660 |
fi |
| 6661 |
else |
| 6662 |
echo "cannot find nm_test_var in $nlist" >&5 |
| 6663 |
fi |
| 6664 |
else |
| 6665 |
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 6666 |
fi |
| 6667 |
else |
| 6668 |
echo "$progname: failed program was:" >&5 |
| 6669 |
cat conftest.$ac_ext >&5 |
| 6670 |
fi |
| 6671 |
rm -rf conftest* conftst* |
| 6672 |
|
| 6673 |
# Do not use the global_symbol_pipe unless it works. |
| 6674 |
if test "$pipe_works" = yes; then |
| 6675 |
break |
| 6676 |
else |
| 6677 |
lt_cv_sys_global_symbol_pipe= |
| 6678 |
fi |
| 6679 |
done |
| 6680 |
|
| 6681 |
fi |
| 6682 |
|
| 6683 |
if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 6684 |
lt_cv_sys_global_symbol_to_cdecl= |
| 6685 |
fi |
| 6686 |
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
| 6687 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
| 6688 |
$as_echo "failed" >&6; } |
| 6689 |
else |
| 6690 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
| 6691 |
$as_echo "ok" >&6; } |
| 6692 |
fi |
| 6693 |
|
| 6694 |
# Response file support. |
| 6695 |
if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 6696 |
nm_file_list_spec='@' |
| 6697 |
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then |
| 6698 |
nm_file_list_spec='@' |
| 6699 |
fi |
| 6700 |
|
| 6701 |
|
| 6702 |
|
| 6703 |
|
| 6704 |
|
| 6705 |
|
| 6706 |
|
| 6707 |
|
| 6708 |
|
| 6709 |
|
| 6710 |
|
| 6711 |
|
| 6712 |
|
| 6713 |
|
| 6714 |
|
| 6715 |
|
| 6716 |
|
| 6717 |
|
| 6718 |
|
| 6719 |
|
| 6720 |
|
| 6721 |
|
| 6722 |
|
| 6723 |
|
| 6724 |
|
| 6725 |
|
| 6726 |
|
| 6727 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 |
| 6728 |
$as_echo_n "checking for sysroot... " >&6; } |
| 6729 |
|
| 6730 |
# Check whether --with-sysroot was given. |
| 6731 |
if test "${with_sysroot+set}" = set; then : |
| 6732 |
withval=$with_sysroot; |
| 6733 |
else |
| 6734 |
with_sysroot=no |
| 6735 |
fi |
| 6736 |
|
| 6737 |
|
| 6738 |
lt_sysroot= |
| 6739 |
case ${with_sysroot} in #( |
| 6740 |
yes) |
| 6741 |
if test "$GCC" = yes; then |
| 6742 |
lt_sysroot=`$CC --print-sysroot 2>/dev/null` |
| 6743 |
fi |
| 6744 |
;; #( |
| 6745 |
/*) |
| 6746 |
lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` |
| 6747 |
;; #( |
| 6748 |
no|'') |
| 6749 |
;; #( |
| 6750 |
*) |
| 6751 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 |
| 6752 |
$as_echo "${with_sysroot}" >&6; } |
| 6753 |
as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 |
| 6754 |
;; |
| 6755 |
esac |
| 6756 |
|
| 6757 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 |
| 6758 |
$as_echo "${lt_sysroot:-no}" >&6; } |
| 6759 |
|
| 6760 |
|
| 6761 |
|
| 6762 |
|
| 6763 |
|
| 6764 |
# Check whether --enable-libtool-lock was given. |
| 6765 |
if test "${enable_libtool_lock+set}" = set; then : |
| 6766 |
enableval=$enable_libtool_lock; |
| 6767 |
fi |
| 6768 |
|
| 6769 |
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 6770 |
|
| 6771 |
# Some flags need to be propagated to the compiler or linker for good |
| 6772 |
# libtool support. |
| 6773 |
case $host in |
| 6774 |
ia64-*-hpux*) |
| 6775 |
# Find out which ABI we are using. |
| 6776 |
echo 'int i;' > conftest.$ac_ext |
| 6777 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6778 |
(eval $ac_compile) 2>&5 |
| 6779 |
ac_status=$? |
| 6780 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6781 |
test $ac_status = 0; }; then |
| 6782 |
case `/usr/bin/file conftest.$ac_objext` in |
| 6783 |
*ELF-32*) |
| 6784 |
HPUX_IA64_MODE="32" |
| 6785 |
;; |
| 6786 |
*ELF-64*) |
| 6787 |
HPUX_IA64_MODE="64" |
| 6788 |
;; |
| 6789 |
esac |
| 6790 |
fi |
| 6791 |
rm -rf conftest* |
| 6792 |
;; |
| 6793 |
*-*-irix6*) |
| 6794 |
# Find out which ABI we are using. |
| 6795 |
echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
| 6796 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6797 |
(eval $ac_compile) 2>&5 |
| 6798 |
ac_status=$? |
| 6799 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6800 |
test $ac_status = 0; }; then |
| 6801 |
if test "$lt_cv_prog_gnu_ld" = yes; then |
| 6802 |
case `/usr/bin/file conftest.$ac_objext` in |
| 6803 |
*32-bit*) |
| 6804 |
LD="${LD-ld} -melf32bsmip" |
| 6805 |
;; |
| 6806 |
*N32*) |
| 6807 |
LD="${LD-ld} -melf32bmipn32" |
| 6808 |
;; |
| 6809 |
*64-bit*) |
| 6810 |
LD="${LD-ld} -melf64bmip" |
| 6811 |
;; |
| 6812 |
esac |
| 6813 |
else |
| 6814 |
case `/usr/bin/file conftest.$ac_objext` in |
| 6815 |
*32-bit*) |
| 6816 |
LD="${LD-ld} -32" |
| 6817 |
;; |
| 6818 |
*N32*) |
| 6819 |
LD="${LD-ld} -n32" |
| 6820 |
;; |
| 6821 |
*64-bit*) |
| 6822 |
LD="${LD-ld} -64" |
| 6823 |
;; |
| 6824 |
esac |
| 6825 |
fi |
| 6826 |
fi |
| 6827 |
rm -rf conftest* |
| 6828 |
;; |
| 6829 |
|
| 6830 |
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
| 6831 |
s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
| 6832 |
# Find out which ABI we are using. |
| 6833 |
echo 'int i;' > conftest.$ac_ext |
| 6834 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6835 |
(eval $ac_compile) 2>&5 |
| 6836 |
ac_status=$? |
| 6837 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6838 |
test $ac_status = 0; }; then |
| 6839 |
case `/usr/bin/file conftest.o` in |
| 6840 |
*32-bit*) |
| 6841 |
case $host in |
| 6842 |
x86_64-*kfreebsd*-gnu) |
| 6843 |
LD="${LD-ld} -m elf_i386_fbsd" |
| 6844 |
;; |
| 6845 |
x86_64-*linux*) |
| 6846 |
LD="${LD-ld} -m elf_i386" |
| 6847 |
;; |
| 6848 |
ppc64-*linux*|powerpc64-*linux*) |
| 6849 |
LD="${LD-ld} -m elf32ppclinux" |
| 6850 |
;; |
| 6851 |
s390x-*linux*) |
| 6852 |
LD="${LD-ld} -m elf_s390" |
| 6853 |
;; |
| 6854 |
sparc64-*linux*) |
| 6855 |
LD="${LD-ld} -m elf32_sparc" |
| 6856 |
;; |
| 6857 |
esac |
| 6858 |
;; |
| 6859 |
*64-bit*) |
| 6860 |
case $host in |
| 6861 |
x86_64-*kfreebsd*-gnu) |
| 6862 |
LD="${LD-ld} -m elf_x86_64_fbsd" |
| 6863 |
;; |
| 6864 |
x86_64-*linux*) |
| 6865 |
LD="${LD-ld} -m elf_x86_64" |
| 6866 |
;; |
| 6867 |
ppc*-*linux*|powerpc*-*linux*) |
| 6868 |
LD="${LD-ld} -m elf64ppc" |
| 6869 |
;; |
| 6870 |
s390*-*linux*|s390*-*tpf*) |
| 6871 |
LD="${LD-ld} -m elf64_s390" |
| 6872 |
;; |
| 6873 |
sparc*-*linux*) |
| 6874 |
LD="${LD-ld} -m elf64_sparc" |
| 6875 |
;; |
| 6876 |
esac |
| 6877 |
;; |
| 6878 |
esac |
| 6879 |
fi |
| 6880 |
rm -rf conftest* |
| 6881 |
;; |
| 6882 |
|
| 6883 |
*-*-sco3.2v5*) |
| 6884 |
# On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 6885 |
SAVE_CFLAGS="$CFLAGS" |
| 6886 |
CFLAGS="$CFLAGS -belf" |
| 6887 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
| 6888 |
$as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
| 6889 |
if ${lt_cv_cc_needs_belf+:} false; then : |
| 6890 |
$as_echo_n "(cached) " >&6 |
| 6891 |
else |
| 6892 |
ac_ext=c |
| 6893 |
ac_cpp='$CPP $CPPFLAGS' |
| 6894 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6895 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6896 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6897 |
|
| 6898 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6899 |
/* end confdefs.h. */ |
| 6900 |
|
| 6901 |
int |
| 6902 |
main () |
| 6903 |
{ |
| 6904 |
|
| 6905 |
; |
| 6906 |
return 0; |
| 6907 |
} |
| 6908 |
_ACEOF |
| 6909 |
if ac_fn_c_try_link "$LINENO"; then : |
| 6910 |
lt_cv_cc_needs_belf=yes |
| 6911 |
else |
| 6912 |
lt_cv_cc_needs_belf=no |
| 6913 |
fi |
| 6914 |
rm -f core conftest.err conftest.$ac_objext \ |
| 6915 |
conftest$ac_exeext conftest.$ac_ext |
| 6916 |
ac_ext=c |
| 6917 |
ac_cpp='$CPP $CPPFLAGS' |
| 6918 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6919 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6920 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6921 |
|
| 6922 |
fi |
| 6923 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
| 6924 |
$as_echo "$lt_cv_cc_needs_belf" >&6; } |
| 6925 |
if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 6926 |
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 6927 |
CFLAGS="$SAVE_CFLAGS" |
| 6928 |
fi |
| 6929 |
;; |
| 6930 |
*-*solaris*) |
| 6931 |
# Find out which ABI we are using. |
| 6932 |
echo 'int i;' > conftest.$ac_ext |
| 6933 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6934 |
(eval $ac_compile) 2>&5 |
| 6935 |
ac_status=$? |
| 6936 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6937 |
test $ac_status = 0; }; then |
| 6938 |
case `/usr/bin/file conftest.o` in |
| 6939 |
*64-bit*) |
| 6940 |
case $lt_cv_prog_gnu_ld in |
| 6941 |
yes*) |
| 6942 |
case $host in |
| 6943 |
i?86-*-solaris*) |
| 6944 |
LD="${LD-ld} -m elf_x86_64" |
| 6945 |
;; |
| 6946 |
sparc*-*-solaris*) |
| 6947 |
LD="${LD-ld} -m elf64_sparc" |
| 6948 |
;; |
| 6949 |
esac |
| 6950 |
# GNU ld 2.21 introduced _sol2 emulations. Use them if available. |
| 6951 |
if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then |
| 6952 |
LD="${LD-ld}_sol2" |
| 6953 |
fi |
| 6954 |
;; |
| 6955 |
*) |
| 6956 |
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
| 6957 |
LD="${LD-ld} -64" |
| 6958 |
fi |
| 6959 |
;; |
| 6960 |
esac |
| 6961 |
;; |
| 6962 |
esac |
| 6963 |
fi |
| 6964 |
rm -rf conftest* |
| 6965 |
;; |
| 6966 |
esac |
| 6967 |
|
| 6968 |
need_locks="$enable_libtool_lock" |
| 6969 |
|
| 6970 |
if test -n "$ac_tool_prefix"; then |
| 6971 |
# Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. |
| 6972 |
set dummy ${ac_tool_prefix}mt; ac_word=$2 |
| 6973 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6974 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 6975 |
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : |
| 6976 |
$as_echo_n "(cached) " >&6 |
| 6977 |
else |
| 6978 |
if test -n "$MANIFEST_TOOL"; then |
| 6979 |
ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. |
| 6980 |
else |
| 6981 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6982 |
for as_dir in $PATH |
| 6983 |
do |
| 6984 |
IFS=$as_save_IFS |
| 6985 |
test -z "$as_dir" && as_dir=. |
| 6986 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 6987 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6988 |
ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" |
| 6989 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6990 |
break 2 |
| 6991 |
fi |
| 6992 |
done |
| 6993 |
done |
| 6994 |
IFS=$as_save_IFS |
| 6995 |
|
| 6996 |
fi |
| 6997 |
fi |
| 6998 |
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL |
| 6999 |
if test -n "$MANIFEST_TOOL"; then |
| 7000 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 |
| 7001 |
$as_echo "$MANIFEST_TOOL" >&6; } |
| 7002 |
else |
| 7003 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7004 |
$as_echo "no" >&6; } |
| 7005 |
fi |
| 7006 |
|
| 7007 |
|
| 7008 |
fi |
| 7009 |
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then |
| 7010 |
ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL |
| 7011 |
# Extract the first word of "mt", so it can be a program name with args. |
| 7012 |
set dummy mt; ac_word=$2 |
| 7013 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7014 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 7015 |
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : |
| 7016 |
$as_echo_n "(cached) " >&6 |
| 7017 |
else |
| 7018 |
if test -n "$ac_ct_MANIFEST_TOOL"; then |
| 7019 |
ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. |
| 7020 |
else |
| 7021 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7022 |
for as_dir in $PATH |
| 7023 |
do |
| 7024 |
IFS=$as_save_IFS |
| 7025 |
test -z "$as_dir" && as_dir=. |
| 7026 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 7027 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7028 |
ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" |
| 7029 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7030 |
break 2 |
| 7031 |
fi |
| 7032 |
done |
| 7033 |
done |
| 7034 |
IFS=$as_save_IFS |
| 7035 |
|
| 7036 |
fi |
| 7037 |
fi |
| 7038 |
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL |
| 7039 |
if test -n "$ac_ct_MANIFEST_TOOL"; then |
| 7040 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 |
| 7041 |
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } |
| 7042 |
else |
| 7043 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7044 |
$as_echo "no" >&6; } |
| 7045 |
fi |
| 7046 |
|
| 7047 |
if test "x$ac_ct_MANIFEST_TOOL" = x; then |
| 7048 |
MANIFEST_TOOL=":" |
| 7049 |
else |
| 7050 |
case $cross_compiling:$ac_tool_warned in |
| 7051 |
yes:) |
| 7052 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7053 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7054 |
ac_tool_warned=yes ;; |
| 7055 |
esac |
| 7056 |
MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL |
| 7057 |
fi |
| 7058 |
else |
| 7059 |
MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" |
| 7060 |
fi |
| 7061 |
|
| 7062 |
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt |
| 7063 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 |
| 7064 |
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } |
| 7065 |
if ${lt_cv_path_mainfest_tool+:} false; then : |
| 7066 |
$as_echo_n "(cached) " >&6 |
| 7067 |
else |
| 7068 |
lt_cv_path_mainfest_tool=no |
| 7069 |
echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 |
| 7070 |
$MANIFEST_TOOL '-?' 2>conftest.err > conftest.out |
| 7071 |
cat conftest.err >&5 |
| 7072 |
if $GREP 'Manifest Tool' conftest.out > /dev/null; then |
| 7073 |
lt_cv_path_mainfest_tool=yes |
| 7074 |
fi |
| 7075 |
rm -f conftest* |
| 7076 |
fi |
| 7077 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 |
| 7078 |
$as_echo "$lt_cv_path_mainfest_tool" >&6; } |
| 7079 |
if test "x$lt_cv_path_mainfest_tool" != xyes; then |
| 7080 |
MANIFEST_TOOL=: |
| 7081 |
fi |
| 7082 |
|
| 7083 |
|
| 7084 |
|
| 7085 |
|
| 7086 |
|
| 7087 |
|
| 7088 |
case $host_os in |
| 7089 |
rhapsody* | darwin*) |
| 7090 |
if test -n "$ac_tool_prefix"; then |
| 7091 |
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. |
| 7092 |
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 |
| 7093 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7094 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 7095 |
if ${ac_cv_prog_DSYMUTIL+:} false; then : |
| 7096 |
$as_echo_n "(cached) " >&6 |
| 7097 |
else |
| 7098 |
if test -n "$DSYMUTIL"; then |
| 7099 |
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. |
| 7100 |
else |
| 7101 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7102 |
for as_dir in $PATH |
| 7103 |
do |
| 7104 |
IFS=$as_save_IFS |
| 7105 |
test -z "$as_dir" && as_dir=. |
| 7106 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 7107 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7108 |
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
| 7109 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7110 |
break 2 |
| 7111 |
fi |
| 7112 |
done |
| 7113 |
done |
| 7114 |
IFS=$as_save_IFS |
| 7115 |
|
| 7116 |
fi |
| 7117 |
fi |
| 7118 |
DSYMUTIL=$ac_cv_prog_DSYMUTIL |
| 7119 |
if test -n "$DSYMUTIL"; then |
| 7120 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
| 7121 |
$as_echo "$DSYMUTIL" >&6; } |
| 7122 |
else |
| 7123 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7124 |
$as_echo "no" >&6; } |
| 7125 |
fi |
| 7126 |
|
| 7127 |
|
| 7128 |
fi |
| 7129 |
if test -z "$ac_cv_prog_DSYMUTIL"; then |
| 7130 |
ac_ct_DSYMUTIL=$DSYMUTIL |
| 7131 |
# Extract the first word of "dsymutil", so it can be a program name with args. |
| 7132 |
set dummy dsymutil; ac_word=$2 |
| 7133 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7134 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 7135 |
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
| 7136 |
$as_echo_n "(cached) " >&6 |
| 7137 |
else |
| 7138 |
if test -n "$ac_ct_DSYMUTIL"; then |
| 7139 |
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. |
| 7140 |
else |
| 7141 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7142 |
for as_dir in $PATH |
| 7143 |
do |
| 7144 |
IFS=$as_save_IFS |
| 7145 |
test -z "$as_dir" && as_dir=. |
| 7146 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 7147 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7148 |
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
| 7149 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7150 |
break 2 |
| 7151 |
fi |
| 7152 |
done |
| 7153 |
done |
| 7154 |
IFS=$as_save_IFS |
| 7155 |
|
| 7156 |
fi |
| 7157 |
fi |
| 7158 |
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
| 7159 |
if test -n "$ac_ct_DSYMUTIL"; then |
| 7160 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
| 7161 |
$as_echo "$ac_ct_DSYMUTIL" >&6; } |
| 7162 |
else |
| 7163 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7164 |
$as_echo "no" >&6; } |
| 7165 |
fi |
| 7166 |
|
| 7167 |
if test "x$ac_ct_DSYMUTIL" = x; then |
| 7168 |
DSYMUTIL=":" |
| 7169 |
else |
| 7170 |
case $cross_compiling:$ac_tool_warned in |
| 7171 |
yes:) |
| 7172 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7173 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7174 |
ac_tool_warned=yes ;; |
| 7175 |
esac |
| 7176 |
DSYMUTIL=$ac_ct_DSYMUTIL |
| 7177 |
fi |
| 7178 |
else |
| 7179 |
DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
| 7180 |
fi |
| 7181 |
|
| 7182 |
if test -n "$ac_tool_prefix"; then |
| 7183 |
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
| 7184 |
set dummy ${ac_tool_prefix}nmedit; ac_word=$2 |
| 7185 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7186 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 7187 |
if ${ac_cv_prog_NMEDIT+:} false; then : |
| 7188 |
$as_echo_n "(cached) " >&6 |
| 7189 |
else |
| 7190 |
if test -n "$NMEDIT"; then |
| 7191 |
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. |
| 7192 |
else |
| 7193 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7194 |
for as_dir in $PATH |
| 7195 |
do |
| 7196 |
IFS=$as_save_IFS |
| 7197 |
test -z "$as_dir" && as_dir=. |
| 7198 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 7199 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7200 |
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
| 7201 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7202 |
break 2 |
| 7203 |
fi |
| 7204 |
done |
| 7205 |
done |
| 7206 |
IFS=$as_save_IFS |
| 7207 |
|
| 7208 |
fi |
| 7209 |
fi |
| 7210 |
NMEDIT=$ac_cv_prog_NMEDIT |
| 7211 |
if test -n "$NMEDIT"; then |
| 7212 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
| 7213 |
$as_echo "$NMEDIT" >&6; } |
| 7214 |
else |
| 7215 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7216 |
$as_echo "no" >&6; } |
| 7217 |
fi |
| 7218 |
|
| 7219 |
|
| 7220 |
fi |
| 7221 |
if test -z "$ac_cv_prog_NMEDIT"; then |
| 7222 |
ac_ct_NMEDIT=$NMEDIT |
| 7223 |
# Extract the first word of "nmedit", so it can be a program name with args. |
| 7224 |
set dummy nmedit; ac_word=$2 |
| 7225 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7226 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 7227 |
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
| 7228 |
$as_echo_n "(cached) " >&6 |
| 7229 |
else |
| 7230 |
if test -n "$ac_ct_NMEDIT"; then |
| 7231 |
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. |
| 7232 |
else |
| 7233 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7234 |
for as_dir in $PATH |
| 7235 |
do |
| 7236 |
IFS=$as_save_IFS |
| 7237 |
test -z "$as_dir" && as_dir=. |
| 7238 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 7239 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7240 |
ac_cv_prog_ac_ct_NMEDIT="nmedit" |
| 7241 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7242 |
break 2 |
| 7243 |
fi |
| 7244 |
done |
| 7245 |
done |
| 7246 |
IFS=$as_save_IFS |
| 7247 |
|
| 7248 |
fi |
| 7249 |
fi |
| 7250 |
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
| 7251 |
if test -n "$ac_ct_NMEDIT"; then |
| 7252 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
| 7253 |
$as_echo "$ac_ct_NMEDIT" >&6; } |
| 7254 |
else |
| 7255 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7256 |
$as_echo "no" >&6; } |
| 7257 |
fi |
| 7258 |
|
| 7259 |
if test "x$ac_ct_NMEDIT" = x; then |
| 7260 |
NMEDIT=":" |
| 7261 |
else |
| 7262 |
case $cross_compiling:$ac_tool_warned in |
| 7263 |
yes:) |
| 7264 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7265 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7266 |
ac_tool_warned=yes ;; |
| 7267 |
esac |
| 7268 |
NMEDIT=$ac_ct_NMEDIT |
| 7269 |
fi |
| 7270 |
else |
| 7271 |
NMEDIT="$ac_cv_prog_NMEDIT" |
| 7272 |
fi |
| 7273 |
|
| 7274 |
if test -n "$ac_tool_prefix"; then |
| 7275 |
# Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
| 7276 |
set dummy ${ac_tool_prefix}lipo; ac_word=$2 |
| 7277 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7278 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 7279 |
if ${ac_cv_prog_LIPO+:} false; then : |
| 7280 |
$as_echo_n "(cached) " >&6 |
| 7281 |
else |
| 7282 |
if test -n "$LIPO"; then |
| 7283 |
ac_cv_prog_LIPO="$LIPO" # Let the user override the test. |
| 7284 |
else |
| 7285 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7286 |
for as_dir in $PATH |
| 7287 |
do |
| 7288 |
IFS=$as_save_IFS |
| 7289 |
test -z "$as_dir" && as_dir=. |
| 7290 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 7291 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7292 |
ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
| 7293 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7294 |
break 2 |
| 7295 |
fi |
| 7296 |
done |
| 7297 |
done |
| 7298 |
IFS=$as_save_IFS |
| 7299 |
|
| 7300 |
fi |
| 7301 |
fi |
| 7302 |
LIPO=$ac_cv_prog_LIPO |
| 7303 |
if test -n "$LIPO"; then |
| 7304 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
| 7305 |
$as_echo "$LIPO" >&6; } |
| 7306 |
else |
| 7307 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7308 |
$as_echo "no" >&6; } |
| 7309 |
fi |
| 7310 |
|
| 7311 |
|
| 7312 |
fi |
| 7313 |
if test -z "$ac_cv_prog_LIPO"; then |
| 7314 |
ac_ct_LIPO=$LIPO |
| 7315 |
# Extract the first word of "lipo", so it can be a program name with args. |
| 7316 |
set dummy lipo; ac_word=$2 |
| 7317 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7318 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 7319 |
if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
| 7320 |
$as_echo_n "(cached) " >&6 |
| 7321 |
else |
| 7322 |
if test -n "$ac_ct_LIPO"; then |
| 7323 |
ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. |
| 7324 |
else |
| 7325 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7326 |
for as_dir in $PATH |
| 7327 |
do |
| 7328 |
IFS=$as_save_IFS |
| 7329 |
test -z "$as_dir" && as_dir=. |
| 7330 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 7331 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7332 |
ac_cv_prog_ac_ct_LIPO="lipo" |
| 7333 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7334 |
break 2 |
| 7335 |
fi |
| 7336 |
done |
| 7337 |
done |
| 7338 |
IFS=$as_save_IFS |
| 7339 |
|
| 7340 |
fi |
| 7341 |
fi |
| 7342 |
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
| 7343 |
if test -n "$ac_ct_LIPO"; then |
| 7344 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
| 7345 |
$as_echo "$ac_ct_LIPO" >&6; } |
| 7346 |
else |
| 7347 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7348 |
$as_echo "no" >&6; } |
| 7349 |
fi |
| 7350 |
|
| 7351 |
if test "x$ac_ct_LIPO" = x; then |
| 7352 |
LIPO=":" |
| 7353 |
else |
| 7354 |
case $cross_compiling:$ac_tool_warned in |
| 7355 |
yes:) |
| 7356 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7357 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7358 |
ac_tool_warned=yes ;; |
| 7359 |
esac |
| 7360 |
LIPO=$ac_ct_LIPO |
| 7361 |
fi |
| 7362 |
else |
| 7363 |
LIPO="$ac_cv_prog_LIPO" |
| 7364 |
fi |
| 7365 |
|
| 7366 |
if test -n "$ac_tool_prefix"; then |
| 7367 |
# Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. |
| 7368 |
set dummy ${ac_tool_prefix}otool; ac_word=$2 |
| 7369 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7370 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 7371 |
if ${ac_cv_prog_OTOOL+:} false; then : |
| 7372 |
$as_echo_n "(cached) " >&6 |
| 7373 |
else |
| 7374 |
if test -n "$OTOOL"; then |
| 7375 |
ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. |
| 7376 |
else |
| 7377 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7378 |
for as_dir in $PATH |
| 7379 |
do |
| 7380 |
IFS=$as_save_IFS |
| 7381 |
test -z "$as_dir" && as_dir=. |
| 7382 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 7383 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7384 |
ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
| 7385 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7386 |
break 2 |
| 7387 |
fi |
| 7388 |
done |
| 7389 |
done |
| 7390 |
IFS=$as_save_IFS |
| 7391 |
|
| 7392 |
fi |
| 7393 |
fi |
| 7394 |
OTOOL=$ac_cv_prog_OTOOL |
| 7395 |
if test -n "$OTOOL"; then |
| 7396 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
| 7397 |
$as_echo "$OTOOL" >&6; } |
| 7398 |
else |
| 7399 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7400 |
$as_echo "no" >&6; } |
| 7401 |
fi |
| 7402 |
|
| 7403 |
|
| 7404 |
fi |
| 7405 |
if test -z "$ac_cv_prog_OTOOL"; then |
| 7406 |
ac_ct_OTOOL=$OTOOL |
| 7407 |
# Extract the first word of "otool", so it can be a program name with args. |
| 7408 |
set dummy otool; ac_word=$2 |
| 7409 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7410 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 7411 |
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
| 7412 |
$as_echo_n "(cached) " >&6 |
| 7413 |
else |
| 7414 |
if test -n "$ac_ct_OTOOL"; then |
| 7415 |
ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. |
| 7416 |
else |
| 7417 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7418 |
for as_dir in $PATH |
| 7419 |
do |
| 7420 |
IFS=$as_save_IFS |
| 7421 |
test -z "$as_dir" && as_dir=. |
| 7422 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 7423 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7424 |
ac_cv_prog_ac_ct_OTOOL="otool" |
| 7425 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7426 |
break 2 |
| 7427 |
fi |
| 7428 |
done |
| 7429 |
done |
| 7430 |
IFS=$as_save_IFS |
| 7431 |
|
| 7432 |
fi |
| 7433 |
fi |
| 7434 |
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
| 7435 |
if test -n "$ac_ct_OTOOL"; then |
| 7436 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
| 7437 |
$as_echo "$ac_ct_OTOOL" >&6; } |
| 7438 |
else |
| 7439 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7440 |
$as_echo "no" >&6; } |
| 7441 |
fi |
| 7442 |
|
| 7443 |
if test "x$ac_ct_OTOOL" = x; then |
| 7444 |
OTOOL=":" |
| 7445 |
else |
| 7446 |
case $cross_compiling:$ac_tool_warned in |
| 7447 |
yes:) |
| 7448 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7449 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7450 |
ac_tool_warned=yes ;; |
| 7451 |
esac |
| 7452 |
OTOOL=$ac_ct_OTOOL |
| 7453 |
fi |
| 7454 |
else |
| 7455 |
OTOOL="$ac_cv_prog_OTOOL" |
| 7456 |
fi |
| 7457 |
|
| 7458 |
if test -n "$ac_tool_prefix"; then |
| 7459 |
# Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. |
| 7460 |
set dummy ${ac_tool_prefix}otool64; ac_word=$2 |
| 7461 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7462 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 7463 |
if ${ac_cv_prog_OTOOL64+:} false; then : |
| 7464 |
$as_echo_n "(cached) " >&6 |
| 7465 |
else |
| 7466 |
if test -n "$OTOOL64"; then |
| 7467 |
ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. |
| 7468 |
else |
| 7469 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7470 |
for as_dir in $PATH |
| 7471 |
do |
| 7472 |
IFS=$as_save_IFS |
| 7473 |
test -z "$as_dir" && as_dir=. |
| 7474 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 7475 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7476 |
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
| 7477 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7478 |
break 2 |
| 7479 |
fi |
| 7480 |
done |
| 7481 |
done |
| 7482 |
IFS=$as_save_IFS |
| 7483 |
|
| 7484 |
fi |
| 7485 |
fi |
| 7486 |
OTOOL64=$ac_cv_prog_OTOOL64 |
| 7487 |
if test -n "$OTOOL64"; then |
| 7488 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
| 7489 |
$as_echo "$OTOOL64" >&6; } |
| 7490 |
else |
| 7491 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7492 |
$as_echo "no" >&6; } |
| 7493 |
fi |
| 7494 |
|
| 7495 |
|
| 7496 |
fi |
| 7497 |
if test -z "$ac_cv_prog_OTOOL64"; then |
| 7498 |
ac_ct_OTOOL64=$OTOOL64 |
| 7499 |
# Extract the first word of "otool64", so it can be a program name with args. |
| 7500 |
set dummy otool64; ac_word=$2 |
| 7501 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7502 |
$as_echo_n "checking for $ac_word... " >&6; } |
| 7503 |
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
| 7504 |
$as_echo_n "(cached) " >&6 |
| 7505 |
else |
| 7506 |
if test -n "$ac_ct_OTOOL64"; then |
| 7507 |
ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. |
| 7508 |
else |
| 7509 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7510 |
for as_dir in $PATH |
| 7511 |
do |
| 7512 |
IFS=$as_save_IFS |
| 7513 |
test -z "$as_dir" && as_dir=. |
| 7514 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 7515 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7516 |
ac_cv_prog_ac_ct_OTOOL64="otool64" |
| 7517 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7518 |
break 2 |
| 7519 |
fi |
| 7520 |
done |
| 7521 |
done |
| 7522 |
IFS=$as_save_IFS |
| 7523 |
|
| 7524 |
fi |
| 7525 |
fi |
| 7526 |
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
| 7527 |
if test -n "$ac_ct_OTOOL64"; then |
| 7528 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
| 7529 |
$as_echo "$ac_ct_OTOOL64" >&6; } |
| 7530 |
else |
| 7531 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7532 |
$as_echo "no" >&6; } |
| 7533 |
fi |
| 7534 |
|
| 7535 |
if test "x$ac_ct_OTOOL64" = x; then |
| 7536 |
OTOOL64=":" |
| 7537 |
else |
| 7538 |
case $cross_compiling:$ac_tool_warned in |
| 7539 |
yes:) |
| 7540 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7541 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7542 |
ac_tool_warned=yes ;; |
| 7543 |
esac |
| 7544 |
OTOOL64=$ac_ct_OTOOL64 |
| 7545 |
fi |
| 7546 |
else |
| 7547 |
OTOOL64="$ac_cv_prog_OTOOL64" |
| 7548 |
fi |
| 7549 |
|
| 7550 |
|
| 7551 |
|
| 7552 |
|
| 7553 |
|
| 7554 |
|
| 7555 |
|
| 7556 |
|
| 7557 |
|
| 7558 |
|
| 7559 |
|
| 7560 |
|
| 7561 |
|
| 7562 |
|
| 7563 |
|
| 7564 |
|
| 7565 |
|
| 7566 |
|
| 7567 |
|
| 7568 |
|
| 7569 |
|
| 7570 |
|
| 7571 |
|
| 7572 |
|
| 7573 |
|
| 7574 |
|
| 7575 |
|
| 7576 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
| 7577 |
$as_echo_n "checking for -single_module linker flag... " >&6; } |
| 7578 |
if ${lt_cv_apple_cc_single_mod+:} false; then : |
| 7579 |
$as_echo_n "(cached) " >&6 |
| 7580 |
else |
| 7581 |
lt_cv_apple_cc_single_mod=no |
| 7582 |
if test -z "${LT_MULTI_MODULE}"; then |
| 7583 |
# By default we will add the -single_module flag. You can override |
| 7584 |
# by either setting the environment variable LT_MULTI_MODULE |
| 7585 |
# non-empty at configure time, or by adding -multi_module to the |
| 7586 |
# link flags. |
| 7587 |
rm -rf libconftest.dylib* |
| 7588 |
echo "int foo(void){return 1;}" > conftest.c |
| 7589 |
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 7590 |
-dynamiclib -Wl,-single_module conftest.c" >&5 |
| 7591 |
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 7592 |
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
| 7593 |
_lt_result=$? |
| 7594 |
# If there is a non-empty error log, and "single_module" |
| 7595 |
# appears in it, assume the flag caused a linker warning |
| 7596 |
if test -s conftest.err && $GREP single_module conftest.err; then |
| 7597 |
cat conftest.err >&5 |
| 7598 |
# Otherwise, if the output was created with a 0 exit code from |
| 7599 |
# the compiler, it worked. |
| 7600 |
elif test -f libconftest.dylib && test $_lt_result -eq 0; then |
| 7601 |
lt_cv_apple_cc_single_mod=yes |
| 7602 |
else |
| 7603 |
cat conftest.err >&5 |
| 7604 |
fi |
| 7605 |
rm -rf libconftest.dylib* |
| 7606 |
rm -f conftest.* |
| 7607 |
fi |
| 7608 |
fi |
| 7609 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
| 7610 |
$as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
| 7611 |
|
| 7612 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
| 7613 |
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
| 7614 |
if ${lt_cv_ld_exported_symbols_list+:} false; then : |
| 7615 |
$as_echo_n "(cached) " >&6 |
| 7616 |
else |
| 7617 |
lt_cv_ld_exported_symbols_list=no |
| 7618 |
save_LDFLAGS=$LDFLAGS |
| 7619 |
echo "_main" > conftest.sym |
| 7620 |
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
| 7621 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7622 |
/* end confdefs.h. */ |
| 7623 |
|
| 7624 |
int |
| 7625 |
main () |
| 7626 |
{ |
| 7627 |
|
| 7628 |
; |
| 7629 |
return 0; |
| 7630 |
} |
| 7631 |
_ACEOF |
| 7632 |
if ac_fn_c_try_link "$LINENO"; then : |
| 7633 |
lt_cv_ld_exported_symbols_list=yes |
| 7634 |
else |
| 7635 |
lt_cv_ld_exported_symbols_list=no |
| 7636 |
fi |
| 7637 |
rm -f core conftest.err conftest.$ac_objext \ |
| 7638 |
conftest$ac_exeext conftest.$ac_ext |
| 7639 |
LDFLAGS="$save_LDFLAGS" |
| 7640 |
|
| 7641 |
fi |
| 7642 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
| 7643 |
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
| 7644 |
|
| 7645 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
| 7646 |
$as_echo_n "checking for -force_load linker flag... " >&6; } |
| 7647 |
if ${lt_cv_ld_force_load+:} false; then : |
| 7648 |
$as_echo_n "(cached) " >&6 |
| 7649 |
else |
| 7650 |
lt_cv_ld_force_load=no |
| 7651 |
cat > conftest.c << _LT_EOF |
| 7652 |
int forced_loaded() { return 2;} |
| 7653 |
_LT_EOF |
| 7654 |
echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 |
| 7655 |
$LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 |
| 7656 |
echo "$AR cru libconftest.a conftest.o" >&5 |
| 7657 |
$AR cru libconftest.a conftest.o 2>&5 |
| 7658 |
echo "$RANLIB libconftest.a" >&5 |
| 7659 |
$RANLIB libconftest.a 2>&5 |
| 7660 |
cat > conftest.c << _LT_EOF |
| 7661 |
int main() { return 0;} |
| 7662 |
_LT_EOF |
| 7663 |
echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 |
| 7664 |
$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err |
| 7665 |
_lt_result=$? |
| 7666 |
if test -s conftest.err && $GREP force_load conftest.err; then |
| 7667 |
cat conftest.err >&5 |
| 7668 |
elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then |
| 7669 |
lt_cv_ld_force_load=yes |
| 7670 |
else |
| 7671 |
cat conftest.err >&5 |
| 7672 |
fi |
| 7673 |
rm -f conftest.err libconftest.a conftest conftest.c |
| 7674 |
rm -rf conftest.dSYM |
| 7675 |
|
| 7676 |
fi |
| 7677 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
| 7678 |
$as_echo "$lt_cv_ld_force_load" >&6; } |
| 7679 |
case $host_os in |
| 7680 |
rhapsody* | darwin1.[012]) |
| 7681 |
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
| 7682 |
darwin1.*) |
| 7683 |
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 7684 |
darwin*) # darwin 5.x on |
| 7685 |
# if running on 10.5 or later, the deployment target defaults |
| 7686 |
# to the OS version, if on x86, and 10.4, the deployment |
| 7687 |
# target defaults to 10.4. Don't you love it? |
| 7688 |
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
| 7689 |
10.0,*86*-darwin8*|10.0,*-darwin[91]*) |
| 7690 |
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 7691 |
10.[012]*) |
| 7692 |
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 7693 |
10.*) |
| 7694 |
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 7695 |
esac |
| 7696 |
;; |
| 7697 |
esac |
| 7698 |
if test "$lt_cv_apple_cc_single_mod" = "yes"; then |
| 7699 |
_lt_dar_single_mod='$single_module' |
| 7700 |
fi |
| 7701 |
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then |
| 7702 |
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' |
| 7703 |
else |
| 7704 |
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 7705 |
fi |
| 7706 |
if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then |
| 7707 |
_lt_dsymutil='~$DSYMUTIL $lib || :' |
| 7708 |
else |
| 7709 |
_lt_dsymutil= |
| 7710 |
fi |
| 7711 |
;; |
| 7712 |
esac |
| 7713 |
|
| 7714 |
ac_ext=c |
| 7715 |
ac_cpp='$CPP $CPPFLAGS' |
| 7716 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7717 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7718 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7719 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 7720 |
$as_echo_n "checking how to run the C preprocessor... " >&6; } |
| 7721 |
# On Suns, sometimes $CPP names a directory. |
| 7722 |
if test -n "$CPP" && test -d "$CPP"; then |
| 7723 |
CPP= |
| 7724 |
fi |
| 7725 |
if test -z "$CPP"; then |
| 7726 |
if ${ac_cv_prog_CPP+:} false; then : |
| 7727 |
$as_echo_n "(cached) " >&6 |
| 7728 |
else |
| 7729 |
# Double quotes because CPP needs to be expanded |
| 7730 |
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 7731 |
do |
| 7732 |
ac_preproc_ok=false |
| 7733 |
for ac_c_preproc_warn_flag in '' yes |
| 7734 |
do |
| 7735 |
# Use a header file that comes with gcc, so configuring glibc |
| 7736 |
# with a fresh cross-compiler works. |
| 7737 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7738 |
# <limits.h> exists even on freestanding compilers. |
| 7739 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
| 7740 |
# not just through cpp. "Syntax error" is here to catch this case. |
| 7741 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7742 |
/* end confdefs.h. */ |
| 7743 |
#ifdef __STDC__ |
| 7744 |
# include <limits.h> |
| 7745 |
#else |
| 7746 |
# include <assert.h> |
| 7747 |
#endif |
| 7748 |
Syntax error |
| 7749 |
_ACEOF |
| 7750 |
if ac_fn_c_try_cpp "$LINENO"; then : |
| 7751 |
|
| 7752 |
else |
| 7753 |
# Broken: fails on valid input. |
| 7754 |
continue |
| 7755 |
fi |
| 7756 |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 7757 |
|
| 7758 |
# OK, works on sane cases. Now check whether nonexistent headers |
| 7759 |
# can be detected and how. |
| 7760 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7761 |
/* end confdefs.h. */ |
| 7762 |
#include <ac_nonexistent.h> |
| 7763 |
_ACEOF |
| 7764 |
if ac_fn_c_try_cpp "$LINENO"; then : |
| 7765 |
# Broken: success on invalid input. |
| 7766 |
continue |
| 7767 |
else |
| 7768 |
# Passes both tests. |
| 7769 |
ac_preproc_ok=: |
| 7770 |
break |
| 7771 |
fi |
| 7772 |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 7773 |
|
| 7774 |
done |
| 7775 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 7776 |
rm -f conftest.i conftest.err conftest.$ac_ext |
| 7777 |
if $ac_preproc_ok; then : |
| 7778 |
break |
| 7779 |
fi |
| 7780 |
|
| 7781 |
done |
| 7782 |
ac_cv_prog_CPP=$CPP |
| 7783 |
|
| 7784 |
fi |
| 7785 |
CPP=$ac_cv_prog_CPP |
| 7786 |
else |
| 7787 |
ac_cv_prog_CPP=$CPP |
| 7788 |
fi |
| 7789 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 7790 |
$as_echo "$CPP" >&6; } |
| 7791 |
ac_preproc_ok=false |
| 7792 |
for ac_c_preproc_warn_flag in '' yes |
| 7793 |
do |
| 7794 |
# Use a header file that comes with gcc, so configuring glibc |
| 7795 |
# with a fresh cross-compiler works. |
| 7796 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7797 |
# <limits.h> exists even on freestanding compilers. |
| 7798 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
| 7799 |
# not just through cpp. "Syntax error" is here to catch this case. |
| 7800 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7801 |
/* end confdefs.h. */ |
| 7802 |
#ifdef __STDC__ |
| 7803 |
# include <limits.h> |
| 7804 |
#else |
| 7805 |
# include <assert.h> |
| 7806 |
#endif |
| 7807 |
Syntax error |
| 7808 |
_ACEOF |
| 7809 |
if ac_fn_c_try_cpp "$LINENO"; then : |
| 7810 |
|
| 7811 |
else |
| 7812 |
# Broken: fails on valid input. |
| 7813 |
continue |
| 7814 |
fi |
| 7815 |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 7816 |
|
| 7817 |
# OK, works on sane cases. Now check whether nonexistent headers |
| 7818 |
# can be detected and how. |
| 7819 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7820 |
/* end confdefs.h. */ |
| 7821 |
#include <ac_nonexistent.h> |
| 7822 |
_ACEOF |
| 7823 |
if ac_fn_c_try_cpp "$LINENO"; then : |
| 7824 |
# Broken: success on invalid input. |
| 7825 |
continue |
| 7826 |
else |
| 7827 |
# Passes both tests. |
| 7828 |
ac_preproc_ok=: |
| 7829 |
break |
| 7830 |
fi |
| 7831 |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 7832 |
|
| 7833 |
done |
| 7834 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 7835 |
rm -f conftest.i conftest.err conftest.$ac_ext |
| 7836 |
if $ac_preproc_ok; then : |
| 7837 |
|
| 7838 |
else |
| 7839 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7840 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 7841 |
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 7842 |
See \`config.log' for more details" "$LINENO" 5; } |
| 7843 |
fi |
| 7844 |
|
| 7845 |
ac_ext=c |
| 7846 |
ac_cpp='$CPP $CPPFLAGS' |
| 7847 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7848 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7849 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7850 |
|
| 7851 |
|
| 7852 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 7853 |
$as_echo_n "checking for ANSI C header files... " >&6; } |
| 7854 |
if ${ac_cv_header_stdc+:} false; then : |
| 7855 |
$as_echo_n "(cached) " >&6 |
| 7856 |
else |
| 7857 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7858 |
/* end confdefs.h. */ |
| 7859 |
#include <stdlib.h> |
| 7860 |
#include <stdarg.h> |
| 7861 |
#include <string.h> |
| 7862 |
#include <float.h> |
| 7863 |
|
| 7864 |
int |
| 7865 |
main () |
| 7866 |
{ |
| 7867 |
|
| 7868 |
; |
| 7869 |
return 0; |
| 7870 |
} |
| 7871 |
_ACEOF |
| 7872 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 7873 |
ac_cv_header_stdc=yes |
| 7874 |
else |
| 7875 |
ac_cv_header_stdc=no |
| 7876 |
fi |
| 7877 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7878 |
|
| 7879 |
if test $ac_cv_header_stdc = yes; then |
| 7880 |
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 7881 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7882 |
/* end confdefs.h. */ |
| 7883 |
#include <string.h> |
| 7884 |
|
| 7885 |
_ACEOF |
| 7886 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7887 |
$EGREP "memchr" >/dev/null 2>&1; then : |
| 7888 |
|
| 7889 |
else |
| 7890 |
ac_cv_header_stdc=no |
| 7891 |
fi |
| 7892 |
rm -f conftest* |
| 7893 |
|
| 7894 |
fi |
| 7895 |
|
| 7896 |
if test $ac_cv_header_stdc = yes; then |
| 7897 |
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 7898 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7899 |
/* end confdefs.h. */ |
| 7900 |
#include <stdlib.h> |
| 7901 |
|
| 7902 |
_ACEOF |
| 7903 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7904 |
$EGREP "free" >/dev/null 2>&1; then : |
| 7905 |
|
| 7906 |
else |
| 7907 |
ac_cv_header_stdc=no |
| 7908 |
fi |
| 7909 |
rm -f conftest* |
| 7910 |
|
| 7911 |
fi |
| 7912 |
|
| 7913 |
if test $ac_cv_header_stdc = yes; then |
| 7914 |
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 7915 |
if test "$cross_compiling" = yes; then : |
| 7916 |
: |
| 7917 |
else |
| 7918 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7919 |
/* end confdefs.h. */ |
| 7920 |
#include <ctype.h> |
| 7921 |
#include <stdlib.h> |
| 7922 |
#if ((' ' & 0x0FF) == 0x020) |
| 7923 |
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 7924 |
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 7925 |
#else |
| 7926 |
# define ISLOWER(c) \ |
| 7927 |
(('a' <= (c) && (c) <= 'i') \ |
| 7928 |
|| ('j' <= (c) && (c) <= 'r') \ |
| 7929 |
|| ('s' <= (c) && (c) <= 'z')) |
| 7930 |
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 7931 |
#endif |
| 7932 |
|
| 7933 |
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 7934 |
int |
| 7935 |
main () |
| 7936 |
{ |
| 7937 |
int i; |
| 7938 |
for (i = 0; i < 256; i++) |
| 7939 |
if (XOR (islower (i), ISLOWER (i)) |
| 7940 |
|| toupper (i) != TOUPPER (i)) |
| 7941 |
return 2; |
| 7942 |
return 0; |
| 7943 |
} |
| 7944 |
_ACEOF |
| 7945 |
if ac_fn_c_try_run "$LINENO"; then : |
| 7946 |
|
| 7947 |
else |
| 7948 |
ac_cv_header_stdc=no |
| 7949 |
fi |
| 7950 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7951 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7952 |
fi |
| 7953 |
|
| 7954 |
fi |
| 7955 |
fi |
| 7956 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 7957 |
$as_echo "$ac_cv_header_stdc" >&6; } |
| 7958 |
if test $ac_cv_header_stdc = yes; then |
| 7959 |
|
| 7960 |
$as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 7961 |
|
| 7962 |
fi |
| 7963 |
|
| 7964 |
# On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 7965 |
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 7966 |
inttypes.h stdint.h unistd.h |
| 7967 |
do : |
| 7968 |
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7969 |
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 7970 |
" |
| 7971 |
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 7972 |
cat >>confdefs.h <<_ACEOF |
| 7973 |
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7974 |
_ACEOF |
| 7975 |
|
| 7976 |
fi |
| 7977 |
|
| 7978 |
done |
| 7979 |
|
| 7980 |
|
| 7981 |
for ac_header in dlfcn.h |
| 7982 |
do : |
| 7983 |
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default |
| 7984 |
" |
| 7985 |
if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
| 7986 |
cat >>confdefs.h <<_ACEOF |
| 7987 |
#define HAVE_DLFCN_H 1 |
| 7988 |
_ACEOF |
| 7989 |
|
| 7990 |
fi |
| 7991 |
|
| 7992 |
done |
| 7993 |
|
| 7994 |
|
| 7995 |
|
| 7996 |
|
| 7997 |
|
| 7998 |
# Set options |
| 7999 |
enable_dlopen=yes |
| 8000 |
# Check whether --enable-static was given. |
| 8001 |
if test "${enable_static+set}" = set; then : |
| 8002 |
enableval=$enable_static; p=${PACKAGE-default} |
| 8003 |
case $enableval in |
| 8004 |
yes) enable_static=yes ;; |
| 8005 |
no) enable_static=no ;; |
| 8006 |
*) |
| 8007 |
enable_static=no |
| 8008 |
# Look at the argument we got. We use all the common list separators. |
| 8009 |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 8010 |
for pkg in $enableval; do |
| 8011 |
IFS="$lt_save_ifs" |
| 8012 |
if test "X$pkg" = "X$p"; then |
| 8013 |
enable_static=yes |
| 8014 |
fi |
| 8015 |
done |
| 8016 |
IFS="$lt_save_ifs" |
| 8017 |
;; |
| 8018 |
esac |
| 8019 |
else |
| 8020 |
enable_static=no |
| 8021 |
fi |
| 8022 |
|
| 8023 |
|
| 8024 |
|
| 8025 |
|
| 8026 |
|
| 8027 |
|
| 8028 |
|
| 8029 |
|
| 8030 |
|
| 8031 |
|
| 8032 |
|
| 8033 |
enable_win32_dll=no |
| 8034 |
|
| 8035 |
|
| 8036 |
# Check whether --enable-shared was given. |
| 8037 |
if test "${enable_shared+set}" = set; then : |
| 8038 |
enableval=$enable_shared; p=${PACKAGE-default} |
| 8039 |
case $enableval in |
| 8040 |
yes) enable_shared=yes ;; |
| 8041 |
no) enable_shared=no ;; |
| 8042 |
*) |
| 8043 |
enable_shared=no |
| 8044 |
# Look at the argument we got. We use all the common list separators. |
| 8045 |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 8046 |
for pkg in $enableval; do |
| 8047 |
IFS="$lt_save_ifs" |
| 8048 |
if test "X$pkg" = "X$p"; then |
| 8049 |
enable_shared=yes |
| 8050 |
fi |
| 8051 |
done |
| 8052 |
IFS="$lt_save_ifs" |
| 8053 |
;; |
| 8054 |
esac |
| 8055 |
else |
| 8056 |
enable_shared=yes |
| 8057 |
fi |
| 8058 |
|
| 8059 |
|
| 8060 |
|
| 8061 |
|
| 8062 |
|
| 8063 |
|
| 8064 |
|
| 8065 |
|
| 8066 |
|
| 8067 |
|
| 8068 |
|
| 8069 |
# Check whether --with-pic was given. |
| 8070 |
if test "${with_pic+set}" = set; then : |
| 8071 |
withval=$with_pic; lt_p=${PACKAGE-default} |
| 8072 |
case $withval in |
| 8073 |
yes|no) pic_mode=$withval ;; |
| 8074 |
*) |
| 8075 |
pic_mode=default |
| 8076 |
# Look at the argument we got. We use all the common list separators. |
| 8077 |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 8078 |
for lt_pkg in $withval; do |
| 8079 |
IFS="$lt_save_ifs" |
| 8080 |
if test "X$lt_pkg" = "X$lt_p"; then |
| 8081 |
pic_mode=yes |
| 8082 |
fi |
| 8083 |
done |
| 8084 |
IFS="$lt_save_ifs" |
| 8085 |
;; |
| 8086 |
esac |
| 8087 |
else |
| 8088 |
pic_mode=default |
| 8089 |
fi |
| 8090 |
|
| 8091 |
|
| 8092 |
test -z "$pic_mode" && pic_mode=default |
| 8093 |
|
| 8094 |
|
| 8095 |
|
| 8096 |
|
| 8097 |
|
| 8098 |
|
| 8099 |
|
| 8100 |
# Check whether --enable-fast-install was given. |
| 8101 |
if test "${enable_fast_install+set}" = set; then : |
| 8102 |
enableval=$enable_fast_install; p=${PACKAGE-default} |
| 8103 |
case $enableval in |
| 8104 |
yes) enable_fast_install=yes ;; |
| 8105 |
no) enable_fast_install=no ;; |
| 8106 |
*) |
| 8107 |
enable_fast_install=no |
| 8108 |
# Look at the argument we got. We use all the common list separators. |
| 8109 |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 8110 |
for pkg in $enableval; do |
| 8111 |
IFS="$lt_save_ifs" |
| 8112 |
if test "X$pkg" = "X$p"; then |
| 8113 |
enable_fast_install=yes |
| 8114 |
fi |
| 8115 |
done |
| 8116 |
IFS="$lt_save_ifs" |
| 8117 |
;; |
| 8118 |
esac |
| 8119 |
else |
| 8120 |
enable_fast_install=yes |
| 8121 |
fi |
| 8122 |
|
| 8123 |
|
| 8124 |
|
| 8125 |
|
| 8126 |
|
| 8127 |
|
| 8128 |
|
| 8129 |
|
| 8130 |
|
| 8131 |
|
| 8132 |
|
| 8133 |
# This can be used to rebuild libtool when needed |
| 8134 |
LIBTOOL_DEPS="$ltmain" |
| 8135 |
|
| 8136 |
# Always use our own libtool. |
| 8137 |
LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 8138 |
|
| 8139 |
|
| 8140 |
|
| 8141 |
|
| 8142 |
|
| 8143 |
|
| 8144 |
|
| 8145 |
|
| 8146 |
|
| 8147 |
|
| 8148 |
|
| 8149 |
|
| 8150 |
|
| 8151 |
|
| 8152 |
|
| 8153 |
|
| 8154 |
|
| 8155 |
|
| 8156 |
|
| 8157 |
|
| 8158 |
|
| 8159 |
|
| 8160 |
|
| 8161 |
|
| 8162 |
|
| 8163 |
|
| 8164 |
|
| 8165 |
|
| 8166 |
|
| 8167 |
|
| 8168 |
test -z "$LN_S" && LN_S="ln -s" |
| 8169 |
|
| 8170 |
|
| 8171 |
|
| 8172 |
|
| 8173 |
|
| 8174 |
|
| 8175 |
|
| 8176 |
|
| 8177 |
|
| 8178 |
|
| 8179 |
|
| 8180 |
|
| 8181 |
|
| 8182 |
|
| 8183 |
if test -n "${ZSH_VERSION+set}" ; then |
| 8184 |
setopt NO_GLOB_SUBST |
| 8185 |
fi |
| 8186 |
|
| 8187 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
| 8188 |
$as_echo_n "checking for objdir... " >&6; } |
| 8189 |
if ${lt_cv_objdir+:} false; then : |
| 8190 |
$as_echo_n "(cached) " >&6 |
| 8191 |
else |
| 8192 |
rm -f .libs 2>/dev/null |
| 8193 |
mkdir .libs 2>/dev/null |
| 8194 |
if test -d .libs; then |
| 8195 |
lt_cv_objdir=.libs |
| 8196 |
else |
| 8197 |
# MS-DOS does not allow filenames that begin with a dot. |
| 8198 |
lt_cv_objdir=_libs |
| 8199 |
fi |
| 8200 |
rmdir .libs 2>/dev/null |
| 8201 |
fi |
| 8202 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
| 8203 |
$as_echo "$lt_cv_objdir" >&6; } |
| 8204 |
objdir=$lt_cv_objdir |
| 8205 |
|
| 8206 |
|
| 8207 |
|
| 8208 |
|
| 8209 |
|
| 8210 |
cat >>confdefs.h <<_ACEOF |
| 8211 |
#define LT_OBJDIR "$lt_cv_objdir/" |
| 8212 |
_ACEOF |
| 8213 |
|
| 8214 |
|
| 8215 |
|
| 8216 |
|
| 8217 |
case $host_os in |
| 8218 |
aix3*) |
| 8219 |
# AIX sometimes has problems with the GCC collect2 program. For some |
| 8220 |
# reason, if we set the COLLECT_NAMES environment variable, the problems |
| 8221 |
# vanish in a puff of smoke. |
| 8222 |
if test "X${COLLECT_NAMES+set}" != Xset; then |
| 8223 |
COLLECT_NAMES= |
| 8224 |
export COLLECT_NAMES |
| 8225 |
fi |
| 8226 |
;; |
| 8227 |
esac |
| 8228 |
|
| 8229 |
# Global variables: |
| 8230 |
ofile=libtool |
| 8231 |
can_build_shared=yes |
| 8232 |
|
| 8233 |
# All known linkers require a `.a' archive for static linking (except MSVC, |
| 8234 |
# which needs '.lib'). |
| 8235 |
libext=a |
| 8236 |
|
| 8237 |
with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 8238 |
|
| 8239 |
old_CC="$CC" |
| 8240 |
old_CFLAGS="$CFLAGS" |
| 8241 |
|
| 8242 |
# Set sane defaults for various variables |
| 8243 |
test -z "$CC" && CC=cc |
| 8244 |
test -z "$LTCC" && LTCC=$CC |
| 8245 |
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
| 8246 |
test -z "$LD" && LD=ld |
| 8247 |
test -z "$ac_objext" && ac_objext=o |
| 8248 |
|
| 8249 |
for cc_temp in $compiler""; do |
| 8250 |
case $cc_temp in |
| 8251 |
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 8252 |
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 8253 |
\-*) ;; |
| 8254 |
*) break;; |
| 8255 |
esac |
| 8256 |
done |
| 8257 |
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
| 8258 |
|
| 8259 |
|
| 8260 |
# Only perform the check for file, if the check method requires it |
| 8261 |
test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 8262 |
case $deplibs_check_method in |
| 8263 |
file_magic*) |
| 8264 |
if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
| 8265 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
| 8266 |
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } |
| 8267 |
if ${lt_cv_path_MAGIC_CMD+:} false; then : |
| 8268 |
$as_echo_n "(cached) " >&6 |
| 8269 |
else |
| 8270 |
case $MAGIC_CMD in |
| 8271 |
[\\/*] | ?:[\\/]*) |
| 8272 |
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 8273 |
;; |
| 8274 |
*) |
| 8275 |
lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 8276 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 8277 |
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 8278 |
for ac_dir in $ac_dummy; do |
| 8279 |
IFS="$lt_save_ifs" |
| 8280 |
test -z "$ac_dir" && ac_dir=. |
| 8281 |
if test -f $ac_dir/${ac_tool_prefix}file; then |
| 8282 |
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 8283 |
if test -n "$file_magic_test_file"; then |
| 8284 |
case $deplibs_check_method in |
| 8285 |
"file_magic "*) |
| 8286 |
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 8287 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 8288 |
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 8289 |
$EGREP "$file_magic_regex" > /dev/null; then |
| 8290 |
: |
| 8291 |
else |
| 8292 |
cat <<_LT_EOF 1>&2 |
| 8293 |
|
| 8294 |
*** Warning: the command libtool uses to detect shared libraries, |
| 8295 |
*** $file_magic_cmd, produces output that libtool cannot recognize. |
| 8296 |
*** The result is that libtool may fail to recognize shared libraries |
| 8297 |
*** as such. This will affect the creation of libtool libraries that |
| 8298 |
*** depend on shared libraries, but programs linked with such libtool |
| 8299 |
*** libraries will work regardless of this problem. Nevertheless, you |
| 8300 |
*** may want to report the problem to your system manager and/or to |
| 8301 |
*** bug-libtool@gnu.org |
| 8302 |
|
| 8303 |
_LT_EOF |
| 8304 |
fi ;; |
| 8305 |
esac |
| 8306 |
fi |
| 8307 |
break |
| 8308 |
fi |
| 8309 |
done |
| 8310 |
IFS="$lt_save_ifs" |
| 8311 |
MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 8312 |
;; |
| 8313 |
esac |
| 8314 |
fi |
| 8315 |
|
| 8316 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 8317 |
if test -n "$MAGIC_CMD"; then |
| 8318 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| 8319 |
$as_echo "$MAGIC_CMD" >&6; } |
| 8320 |
else |
| 8321 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8322 |
$as_echo "no" >&6; } |
| 8323 |
fi |
| 8324 |
|
| 8325 |
|
| 8326 |
|
| 8327 |
|
| 8328 |
|
| 8329 |
if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 8330 |
if test -n "$ac_tool_prefix"; then |
| 8331 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
| 8332 |
$as_echo_n "checking for file... " >&6; } |
| 8333 |
if ${lt_cv_path_MAGIC_CMD+:} false; then : |
| 8334 |
$as_echo_n "(cached) " >&6 |
| 8335 |
else |
| 8336 |
case $MAGIC_CMD in |
| 8337 |
[\\/*] | ?:[\\/]*) |
| 8338 |
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 8339 |
;; |
| 8340 |
*) |
| 8341 |
lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 8342 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 8343 |
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 8344 |
for ac_dir in $ac_dummy; do |
| 8345 |
IFS="$lt_save_ifs" |
| 8346 |
test -z "$ac_dir" && ac_dir=. |
| 8347 |
if test -f $ac_dir/file; then |
| 8348 |
lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 8349 |
if test -n "$file_magic_test_file"; then |
| 8350 |
case $deplibs_check_method in |
| 8351 |
"file_magic "*) |
| 8352 |
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 8353 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 8354 |
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 8355 |
$EGREP "$file_magic_regex" > /dev/null; then |
| 8356 |
: |
| 8357 |
else |
| 8358 |
cat <<_LT_EOF 1>&2 |
| 8359 |
|
| 8360 |
*** Warning: the command libtool uses to detect shared libraries, |
| 8361 |
*** $file_magic_cmd, produces output that libtool cannot recognize. |
| 8362 |
*** The result is that libtool may fail to recognize shared libraries |
| 8363 |
*** as such. This will affect the creation of libtool libraries that |
| 8364 |
*** depend on shared libraries, but programs linked with such libtool |
| 8365 |
*** libraries will work regardless of this problem. Nevertheless, you |
| 8366 |
*** may want to report the problem to your system manager and/or to |
| 8367 |
*** bug-libtool@gnu.org |
| 8368 |
|
| 8369 |
_LT_EOF |
| 8370 |
fi ;; |
| 8371 |
esac |
| 8372 |
fi |
| 8373 |
break |
| 8374 |
fi |
| 8375 |
done |
| 8376 |
IFS="$lt_save_ifs" |
| 8377 |
MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 8378 |
;; |
| 8379 |
esac |
| 8380 |
fi |
| 8381 |
|
| 8382 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 8383 |
if test -n "$MAGIC_CMD"; then |
| 8384 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| 8385 |
$as_echo "$MAGIC_CMD" >&6; } |
| 8386 |
else |
| 8387 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8388 |
$as_echo "no" >&6; } |
| 8389 |
fi |
| 8390 |
|
| 8391 |
|
| 8392 |
else |
| 8393 |
MAGIC_CMD=: |
| 8394 |
fi |
| 8395 |
fi |
| 8396 |
|
| 8397 |
fi |
| 8398 |
;; |
| 8399 |
esac |
| 8400 |
|
| 8401 |
# Use C for the default configuration in the libtool script |
| 8402 |
|
| 8403 |
lt_save_CC="$CC" |
| 8404 |
ac_ext=c |
| 8405 |
ac_cpp='$CPP $CPPFLAGS' |
| 8406 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8407 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8408 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8409 |
|
| 8410 |
|
| 8411 |
# Source file extension for C test sources. |
| 8412 |
ac_ext=c |
| 8413 |
|
| 8414 |
# Object file extension for compiled C test sources. |
| 8415 |
objext=o |
| 8416 |
objext=$objext |
| 8417 |
|
| 8418 |
# Code to be used in simple compile tests |
| 8419 |
lt_simple_compile_test_code="int some_variable = 0;" |
| 8420 |
|
| 8421 |
# Code to be used in simple link tests |
| 8422 |
lt_simple_link_test_code='int main(){return(0);}' |
| 8423 |
|
| 8424 |
|
| 8425 |
|
| 8426 |
|
| 8427 |
|
| 8428 |
|
| 8429 |
|
| 8430 |
# If no C compiler was specified, use CC. |
| 8431 |
LTCC=${LTCC-"$CC"} |
| 8432 |
|
| 8433 |
# If no C compiler flags were specified, use CFLAGS. |
| 8434 |
LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 8435 |
|
| 8436 |
# Allow CC to be a program name with arguments. |
| 8437 |
compiler=$CC |
| 8438 |
|
| 8439 |
# Save the default compiler, since it gets overwritten when the other |
| 8440 |
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. |
| 8441 |
compiler_DEFAULT=$CC |
| 8442 |
|
| 8443 |
# save warnings/boilerplate of simple test code |
| 8444 |
ac_outfile=conftest.$ac_objext |
| 8445 |
echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 8446 |
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 8447 |
_lt_compiler_boilerplate=`cat conftest.err` |
| 8448 |
$RM conftest* |
| 8449 |
|
| 8450 |
ac_outfile=conftest.$ac_objext |
| 8451 |
echo "$lt_simple_link_test_code" >conftest.$ac_ext |
| 8452 |
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 8453 |
_lt_linker_boilerplate=`cat conftest.err` |
| 8454 |
$RM -r conftest* |
| 8455 |
|
| 8456 |
|
| 8457 |
if test -n "$compiler"; then |
| 8458 |
|
| 8459 |
lt_prog_compiler_no_builtin_flag= |
| 8460 |
|
| 8461 |
if test "$GCC" = yes; then |
| 8462 |
case $cc_basename in |
| 8463 |
nvcc*) |
| 8464 |
lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; |
| 8465 |
*) |
| 8466 |
lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; |
| 8467 |
esac |
| 8468 |
|
| 8469 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 8470 |
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
| 8471 |
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
| 8472 |
$as_echo_n "(cached) " >&6 |
| 8473 |
else |
| 8474 |
lt_cv_prog_compiler_rtti_exceptions=no |
| 8475 |
ac_outfile=conftest.$ac_objext |
| 8476 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 8477 |
lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 8478 |
# Insert the option either (1) after the last *FLAGS variable, or |
| 8479 |
# (2) before a word containing "conftest.", or (3) at the end. |
| 8480 |
# Note that $ac_compile itself does not contain backslashes and begins |
| 8481 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8482 |
# The option is referenced via a variable to avoid confusing sed. |
| 8483 |
lt_compile=`echo "$ac_compile" | $SED \ |
| 8484 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 8485 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8486 |
-e 's:$: $lt_compiler_flag:'` |
| 8487 |
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 8488 |
(eval "$lt_compile" 2>conftest.err) |
| 8489 |
ac_status=$? |
| 8490 |
cat conftest.err >&5 |
| 8491 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8492 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
| 8493 |
# The compiler can only warn and ignore the option if not recognized |
| 8494 |
# So say no if there are warnings other than the usual output. |
| 8495 |
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| 8496 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 8497 |
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 8498 |
lt_cv_prog_compiler_rtti_exceptions=yes |
| 8499 |
fi |
| 8500 |
fi |
| 8501 |
$RM conftest* |
| 8502 |
|
| 8503 |
fi |
| 8504 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 8505 |
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
| 8506 |
|
| 8507 |
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 8508 |
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 8509 |
else |
| 8510 |
: |
| 8511 |
fi |
| 8512 |
|
| 8513 |
fi |
| 8514 |
|
| 8515 |
|
| 8516 |
|
| 8517 |
|
| 8518 |
|
| 8519 |
|
| 8520 |
lt_prog_compiler_wl= |
| 8521 |
lt_prog_compiler_pic= |
| 8522 |
lt_prog_compiler_static= |
| 8523 |
|
| 8524 |
|
| 8525 |
if test "$GCC" = yes; then |
| 8526 |
lt_prog_compiler_wl='-Wl,' |
| 8527 |
lt_prog_compiler_static='-static' |
| 8528 |
|
| 8529 |
case $host_os in |
| 8530 |
aix*) |
| 8531 |
# All AIX code is PIC. |
| 8532 |
if test "$host_cpu" = ia64; then |
| 8533 |
# AIX 5 now supports IA64 processor |
| 8534 |
lt_prog_compiler_static='-Bstatic' |
| 8535 |
fi |
| 8536 |
;; |
| 8537 |
|
| 8538 |
amigaos*) |
| 8539 |
case $host_cpu in |
| 8540 |
powerpc) |
| 8541 |
# see comment about AmigaOS4 .so support |
| 8542 |
lt_prog_compiler_pic='-fPIC' |
| 8543 |
;; |
| 8544 |
m68k) |
| 8545 |
# FIXME: we need at least 68020 code to build shared libraries, but |
| 8546 |
# adding the `-m68020' flag to GCC prevents building anything better, |
| 8547 |
# like `-m68040'. |
| 8548 |
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| 8549 |
;; |
| 8550 |
esac |
| 8551 |
;; |
| 8552 |
|
| 8553 |
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 8554 |
# PIC is the default for these OSes. |
| 8555 |
;; |
| 8556 |
|
| 8557 |
mingw* | cygwin* | pw32* | os2* | cegcc*) |
| 8558 |
# This hack is so that the source file can tell whether it is being |
| 8559 |
# built for inclusion in a dll (and should export symbols for example). |
| 8560 |
# Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 8561 |
# (--disable-auto-import) libraries |
| 8562 |
lt_prog_compiler_pic='-DDLL_EXPORT' |
| 8563 |
;; |
| 8564 |
|
| 8565 |
darwin* | rhapsody*) |
| 8566 |
# PIC is the default on this platform |
| 8567 |
# Common symbols not allowed in MH_DYLIB files |
| 8568 |
lt_prog_compiler_pic='-fno-common' |
| 8569 |
;; |
| 8570 |
|
| 8571 |
haiku*) |
| 8572 |
# PIC is the default for Haiku. |
| 8573 |
# The "-static" flag exists, but is broken. |
| 8574 |
lt_prog_compiler_static= |
| 8575 |
;; |
| 8576 |
|
| 8577 |
hpux*) |
| 8578 |
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 8579 |
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 8580 |
# sets the default TLS model and affects inlining. |
| 8581 |
case $host_cpu in |
| 8582 |
hppa*64*) |
| 8583 |
# +Z the default |
| 8584 |
;; |
| 8585 |
*) |
| 8586 |
lt_prog_compiler_pic='-fPIC' |
| 8587 |
;; |
| 8588 |
esac |
| 8589 |
;; |
| 8590 |
|
| 8591 |
interix[3-9]*) |
| 8592 |
# Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 8593 |
# Instead, we relocate shared libraries at runtime. |
| 8594 |
;; |
| 8595 |
|
| 8596 |
msdosdjgpp*) |
| 8597 |
# Just because we use GCC doesn't mean we suddenly get shared libraries |
| 8598 |
# on systems that don't support them. |
| 8599 |
lt_prog_compiler_can_build_shared=no |
| 8600 |
enable_shared=no |
| 8601 |
;; |
| 8602 |
|
| 8603 |
*nto* | *qnx*) |
| 8604 |
# QNX uses GNU C++, but need to define -shared option too, otherwise |
| 8605 |
# it will coredump. |
| 8606 |
lt_prog_compiler_pic='-fPIC -shared' |
| 8607 |
;; |
| 8608 |
|
| 8609 |
sysv4*MP*) |
| 8610 |
if test -d /usr/nec; then |
| 8611 |
lt_prog_compiler_pic=-Kconform_pic |
| 8612 |
fi |
| 8613 |
;; |
| 8614 |
|
| 8615 |
*) |
| 8616 |
lt_prog_compiler_pic='-fPIC' |
| 8617 |
;; |
| 8618 |
esac |
| 8619 |
|
| 8620 |
case $cc_basename in |
| 8621 |
nvcc*) # Cuda Compiler Driver 2.2 |
| 8622 |
lt_prog_compiler_wl='-Xlinker ' |
| 8623 |
if test -n "$lt_prog_compiler_pic"; then |
| 8624 |
lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" |
| 8625 |
fi |
| 8626 |
;; |
| 8627 |
esac |
| 8628 |
else |
| 8629 |
# PORTME Check for flag to pass linker flags through the system compiler. |
| 8630 |
case $host_os in |
| 8631 |
aix*) |
| 8632 |
lt_prog_compiler_wl='-Wl,' |
| 8633 |
if test "$host_cpu" = ia64; then |
| 8634 |
# AIX 5 now supports IA64 processor |
| 8635 |
lt_prog_compiler_static='-Bstatic' |
| 8636 |
else |
| 8637 |
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
| 8638 |
fi |
| 8639 |
;; |
| 8640 |
|
| 8641 |
mingw* | cygwin* | pw32* | os2* | cegcc*) |
| 8642 |
# This hack is so that the source file can tell whether it is being |
| 8643 |
# built for inclusion in a dll (and should export symbols for example). |
| 8644 |
lt_prog_compiler_pic='-DDLL_EXPORT' |
| 8645 |
;; |
| 8646 |
|
| 8647 |
hpux9* | hpux10* | hpux11*) |
| 8648 |
lt_prog_compiler_wl='-Wl,' |
| 8649 |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 8650 |
# not for PA HP-UX. |
| 8651 |
case $host_cpu in |
| 8652 |
hppa*64*|ia64*) |
| 8653 |
# +Z the default |
| 8654 |
;; |
| 8655 |
*) |
| 8656 |
lt_prog_compiler_pic='+Z' |
| 8657 |
;; |
| 8658 |
esac |
| 8659 |
# Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 8660 |
lt_prog_compiler_static='${wl}-a ${wl}archive' |
| 8661 |
;; |
| 8662 |
|
| 8663 |
irix5* | irix6* | nonstopux*) |
| 8664 |
lt_prog_compiler_wl='-Wl,' |
| 8665 |
# PIC (with -KPIC) is the default. |
| 8666 |
lt_prog_compiler_static='-non_shared' |
| 8667 |
;; |
| 8668 |
|
| 8669 |
linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| 8670 |
case $cc_basename in |
| 8671 |
# old Intel for x86_64 which still supported -KPIC. |
| 8672 |
ecc*) |
| 8673 |
lt_prog_compiler_wl='-Wl,' |
| 8674 |
lt_prog_compiler_pic='-KPIC' |
| 8675 |
lt_prog_compiler_static='-static' |
| 8676 |
;; |
| 8677 |
# icc used to be incompatible with GCC. |
| 8678 |
# ICC 10 doesn't accept -KPIC any more. |
| 8679 |
icc* | ifort*) |
| 8680 |
lt_prog_compiler_wl='-Wl,' |
| 8681 |
lt_prog_compiler_pic='-fPIC' |
| 8682 |
lt_prog_compiler_static='-static' |
| 8683 |
;; |
| 8684 |
# Lahey Fortran 8.1. |
| 8685 |
lf95*) |
| 8686 |
lt_prog_compiler_wl='-Wl,' |
| 8687 |
lt_prog_compiler_pic='--shared' |
| 8688 |
lt_prog_compiler_static='--static' |
| 8689 |
;; |
| 8690 |
nagfor*) |
| 8691 |
# NAG Fortran compiler |
| 8692 |
lt_prog_compiler_wl='-Wl,-Wl,,' |
| 8693 |
lt_prog_compiler_pic='-PIC' |
| 8694 |
lt_prog_compiler_static='-Bstatic' |
| 8695 |
;; |
| 8696 |
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
| 8697 |
# Portland Group compilers (*not* the Pentium gcc compiler, |
| 8698 |
# which looks to be a dead project) |
| 8699 |
lt_prog_compiler_wl='-Wl,' |
| 8700 |
lt_prog_compiler_pic='-fpic' |
| 8701 |
lt_prog_compiler_static='-Bstatic' |
| 8702 |
;; |
| 8703 |
ccc*) |
| 8704 |
lt_prog_compiler_wl='-Wl,' |
| 8705 |
# All Alpha code is PIC. |
| 8706 |
lt_prog_compiler_static='-non_shared' |
| 8707 |
;; |
| 8708 |
xl* | bgxl* | bgf* | mpixl*) |
| 8709 |
# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene |
| 8710 |
lt_prog_compiler_wl='-Wl,' |
| 8711 |
lt_prog_compiler_pic='-qpic' |
| 8712 |
lt_prog_compiler_static='-qstaticlink' |
| 8713 |
;; |
| 8714 |
*) |
| 8715 |
case `$CC -V 2>&1 | sed 5q` in |
| 8716 |
*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) |
| 8717 |
# Sun Fortran 8.3 passes all unrecognized flags to the linker |
| 8718 |
lt_prog_compiler_pic='-KPIC' |
| 8719 |
lt_prog_compiler_static='-Bstatic' |
| 8720 |
lt_prog_compiler_wl='' |
| 8721 |
;; |
| 8722 |
*Sun\ F* | *Sun*Fortran*) |
| 8723 |
lt_prog_compiler_pic='-KPIC' |
| 8724 |
lt_prog_compiler_static='-Bstatic' |
| 8725 |
lt_prog_compiler_wl='-Qoption ld ' |
| 8726 |
;; |
| 8727 |
*Sun\ C*) |
| 8728 |
# Sun C 5.9 |
| 8729 |
lt_prog_compiler_pic='-KPIC' |
| 8730 |
lt_prog_compiler_static='-Bstatic' |
| 8731 |
lt_prog_compiler_wl='-Wl,' |
| 8732 |
;; |
| 8733 |
*Intel*\ [CF]*Compiler*) |
| 8734 |
lt_prog_compiler_wl='-Wl,' |
| 8735 |
lt_prog_compiler_pic='-fPIC' |
| 8736 |
lt_prog_compiler_static='-static' |
| 8737 |
;; |
| 8738 |
*Portland\ Group*) |
| 8739 |
lt_prog_compiler_wl='-Wl,' |
| 8740 |
lt_prog_compiler_pic='-fpic' |
| 8741 |
lt_prog_compiler_static='-Bstatic' |
| 8742 |
;; |
| 8743 |
esac |
| 8744 |
;; |
| 8745 |
esac |
| 8746 |
;; |
| 8747 |
|
| 8748 |
newsos6) |
| 8749 |
lt_prog_compiler_pic='-KPIC' |
| 8750 |
lt_prog_compiler_static='-Bstatic' |
| 8751 |
;; |
| 8752 |
|
| 8753 |
*nto* | *qnx*) |
| 8754 |
# QNX uses GNU C++, but need to define -shared option too, otherwise |
| 8755 |
# it will coredump. |
| 8756 |
lt_prog_compiler_pic='-fPIC -shared' |
| 8757 |
;; |
| 8758 |
|
| 8759 |
osf3* | osf4* | osf5*) |
| 8760 |
lt_prog_compiler_wl='-Wl,' |
| 8761 |
# All OSF/1 code is PIC. |
| 8762 |
lt_prog_compiler_static='-non_shared' |
| 8763 |
;; |
| 8764 |
|
| 8765 |
rdos*) |
| 8766 |
lt_prog_compiler_static='-non_shared' |
| 8767 |
;; |
| 8768 |
|
| 8769 |
solaris*) |
| 8770 |
lt_prog_compiler_pic='-KPIC' |
| 8771 |
lt_prog_compiler_static='-Bstatic' |
| 8772 |
case $cc_basename in |
| 8773 |
f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) |
| 8774 |
lt_prog_compiler_wl='-Qoption ld ';; |
| 8775 |
*) |
| 8776 |
lt_prog_compiler_wl='-Wl,';; |
| 8777 |
esac |
| 8778 |
;; |
| 8779 |
|
| 8780 |
sunos4*) |
| 8781 |
lt_prog_compiler_wl='-Qoption ld ' |
| 8782 |
lt_prog_compiler_pic='-PIC' |
| 8783 |
lt_prog_compiler_static='-Bstatic' |
| 8784 |
;; |
| 8785 |
|
| 8786 |
sysv4 | sysv4.2uw2* | sysv4.3*) |
| 8787 |
lt_prog_compiler_wl='-Wl,' |
| 8788 |
lt_prog_compiler_pic='-KPIC' |
| 8789 |
lt_prog_compiler_static='-Bstatic' |
| 8790 |
;; |
| 8791 |
|
| 8792 |
sysv4*MP*) |
| 8793 |
if test -d /usr/nec ;then |
| 8794 |
lt_prog_compiler_pic='-Kconform_pic' |
| 8795 |
lt_prog_compiler_static='-Bstatic' |
| 8796 |
fi |
| 8797 |
;; |
| 8798 |
|
| 8799 |
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 8800 |
lt_prog_compiler_wl='-Wl,' |
| 8801 |
lt_prog_compiler_pic='-KPIC' |
| 8802 |
lt_prog_compiler_static='-Bstatic' |
| 8803 |
;; |
| 8804 |
|
| 8805 |
unicos*) |
| 8806 |
lt_prog_compiler_wl='-Wl,' |
| 8807 |
lt_prog_compiler_can_build_shared=no |
| 8808 |
;; |
| 8809 |
|
| 8810 |
uts4*) |
| 8811 |
lt_prog_compiler_pic='-pic' |
| 8812 |
lt_prog_compiler_static='-Bstatic' |
| 8813 |
;; |
| 8814 |
|
| 8815 |
*) |
| 8816 |
lt_prog_compiler_can_build_shared=no |
| 8817 |
;; |
| 8818 |
esac |
| 8819 |
fi |
| 8820 |
|
| 8821 |
case $host_os in |
| 8822 |
# For platforms which do not support PIC, -DPIC is meaningless: |
| 8823 |
*djgpp*) |
| 8824 |
lt_prog_compiler_pic= |
| 8825 |
;; |
| 8826 |
*) |
| 8827 |
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 8828 |
;; |
| 8829 |
esac |
| 8830 |
|
| 8831 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
| 8832 |
$as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
| 8833 |
if ${lt_cv_prog_compiler_pic+:} false; then : |
| 8834 |
$as_echo_n "(cached) " >&6 |
| 8835 |
else |
| 8836 |
lt_cv_prog_compiler_pic=$lt_prog_compiler_pic |
| 8837 |
fi |
| 8838 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 |
| 8839 |
$as_echo "$lt_cv_prog_compiler_pic" >&6; } |
| 8840 |
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic |
| 8841 |
|
| 8842 |
# |
| 8843 |
# Check to make sure the PIC flag actually works. |
| 8844 |
# |
| 8845 |
if test -n "$lt_prog_compiler_pic"; then |
| 8846 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 8847 |
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
| 8848 |
if ${lt_cv_prog_compiler_pic_works+:} false; then : |
| 8849 |
$as_echo_n "(cached) " >&6 |
| 8850 |
else |
| 8851 |
lt_cv_prog_compiler_pic_works=no |
| 8852 |
ac_outfile=conftest.$ac_objext |
| 8853 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 8854 |
lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 8855 |
# Insert the option either (1) after the last *FLAGS variable, or |
| 8856 |
# (2) before a word containing "conftest.", or (3) at the end. |
| 8857 |
# Note that $ac_compile itself does not contain backslashes and begins |
| 8858 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8859 |
# The option is referenced via a variable to avoid confusing sed. |
| 8860 |
lt_compile=`echo "$ac_compile" | $SED \ |
| 8861 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 8862 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8863 |
-e 's:$: $lt_compiler_flag:'` |
| 8864 |
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 8865 |
(eval "$lt_compile" 2>conftest.err) |
| 8866 |
ac_status=$? |
| 8867 |
cat conftest.err >&5 |
| 8868 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8869 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
| 8870 |
# The compiler can only warn and ignore the option if not recognized |
| 8871 |
# So say no if there are warnings other than the usual output. |
| 8872 |
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| 8873 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 8874 |
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 8875 |
lt_cv_prog_compiler_pic_works=yes |
| 8876 |
fi |
| 8877 |
fi |
| 8878 |
$RM conftest* |
| 8879 |
|
| 8880 |
fi |
| 8881 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
| 8882 |
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
| 8883 |
|
| 8884 |
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
| 8885 |
case $lt_prog_compiler_pic in |
| 8886 |
"" | " "*) ;; |
| 8887 |
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 8888 |
esac |
| 8889 |
else |
| 8890 |
lt_prog_compiler_pic= |
| 8891 |
lt_prog_compiler_can_build_shared=no |
| 8892 |
fi |
| 8893 |
|
| 8894 |
fi |
| 8895 |
|
| 8896 |
|
| 8897 |
|
| 8898 |
|
| 8899 |
|
| 8900 |
|
| 8901 |
|
| 8902 |
|
| 8903 |
|
| 8904 |
|
| 8905 |
|
| 8906 |
# |
| 8907 |
# Check to make sure the static flag actually works. |
| 8908 |
# |
| 8909 |
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
| 8910 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 8911 |
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
| 8912 |
if ${lt_cv_prog_compiler_static_works+:} false; then : |
| 8913 |
$as_echo_n "(cached) " >&6 |
| 8914 |
else |
| 8915 |
lt_cv_prog_compiler_static_works=no |
| 8916 |
save_LDFLAGS="$LDFLAGS" |
| 8917 |
LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 8918 |
echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 8919 |
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 8920 |
# The linker can only warn and ignore the option if not recognized |
| 8921 |
# So say no if there are warnings |
| 8922 |
if test -s conftest.err; then |
| 8923 |
# Append any errors to the config.log. |
| 8924 |
cat conftest.err 1>&5 |
| 8925 |
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| 8926 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 8927 |
if diff conftest.exp conftest.er2 >/dev/null; then |
| 8928 |
lt_cv_prog_compiler_static_works=yes |
| 8929 |
fi |
| 8930 |
else |
| 8931 |
lt_cv_prog_compiler_static_works=yes |
| 8932 |
fi |
| 8933 |
fi |
| 8934 |
$RM -r conftest* |
| 8935 |
LDFLAGS="$save_LDFLAGS" |
| 8936 |
|
| 8937 |
fi |
| 8938 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
| 8939 |
$as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
| 8940 |
|
| 8941 |
if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
| 8942 |
: |
| 8943 |
else |
| 8944 |
lt_prog_compiler_static= |
| 8945 |
fi |
| 8946 |
|
| 8947 |
|
| 8948 |
|
| 8949 |
|
| 8950 |
|
| 8951 |
|
| 8952 |
|
| 8953 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 8954 |
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 8955 |
if ${lt_cv_prog_compiler_c_o+:} false; then : |
| 8956 |
$as_echo_n "(cached) " >&6 |
| 8957 |
else |
| 8958 |
lt_cv_prog_compiler_c_o=no |
| 8959 |
$RM -r conftest 2>/dev/null |
| 8960 |
mkdir conftest |
| 8961 |
cd conftest |
| 8962 |
mkdir out |
| 8963 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 8964 |
|
| 8965 |
lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 8966 |
# Insert the option either (1) after the last *FLAGS variable, or |
| 8967 |
# (2) before a word containing "conftest.", or (3) at the end. |
| 8968 |
# Note that $ac_compile itself does not contain backslashes and begins |
| 8969 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8970 |
lt_compile=`echo "$ac_compile" | $SED \ |
| 8971 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 8972 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8973 |
-e 's:$: $lt_compiler_flag:'` |
| 8974 |
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 8975 |
(eval "$lt_compile" 2>out/conftest.err) |
| 8976 |
ac_status=$? |
| 8977 |
cat out/conftest.err >&5 |
| 8978 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8979 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 8980 |
then |
| 8981 |
# The compiler can only warn and ignore the option if not recognized |
| 8982 |
# So say no if there are warnings |
| 8983 |
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 8984 |
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 8985 |
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 8986 |
lt_cv_prog_compiler_c_o=yes |
| 8987 |
fi |
| 8988 |
fi |
| 8989 |
chmod u+w . 2>&5 |
| 8990 |
$RM conftest* |
| 8991 |
# SGI C++ compiler will create directory out/ii_files/ for |
| 8992 |
# template instantiation |
| 8993 |
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 8994 |
$RM out/* && rmdir out |
| 8995 |
cd .. |
| 8996 |
$RM -r conftest |
| 8997 |
$RM conftest* |
| 8998 |
|
| 8999 |
fi |
| 9000 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
| 9001 |
$as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
| 9002 |
|
| 9003 |
|
| 9004 |
|
| 9005 |
|
| 9006 |
|
| 9007 |
|
| 9008 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 9009 |
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 9010 |
if ${lt_cv_prog_compiler_c_o+:} false; then : |
| 9011 |
$as_echo_n "(cached) " >&6 |
| 9012 |
else |
| 9013 |
lt_cv_prog_compiler_c_o=no |
| 9014 |
$RM -r conftest 2>/dev/null |
| 9015 |
mkdir conftest |
| 9016 |
cd conftest |
| 9017 |
mkdir out |
| 9018 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 9019 |
|
| 9020 |
lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 9021 |
# Insert the option either (1) after the last *FLAGS variable, or |
| 9022 |
# (2) before a word containing "conftest.", or (3) at the end. |
| 9023 |
# Note that $ac_compile itself does not contain backslashes and begins |
| 9024 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
| 9025 |
lt_compile=`echo "$ac_compile" | $SED \ |
| 9026 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 9027 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 9028 |
-e 's:$: $lt_compiler_flag:'` |
| 9029 |
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 9030 |
(eval "$lt_compile" 2>out/conftest.err) |
| 9031 |
ac_status=$? |
| 9032 |
cat out/conftest.err >&5 |
| 9033 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9034 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 9035 |
then |
| 9036 |
# The compiler can only warn and ignore the option if not recognized |
| 9037 |
# So say no if there are warnings |
| 9038 |
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 9039 |
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 9040 |
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 9041 |
lt_cv_prog_compiler_c_o=yes |
| 9042 |
fi |
| 9043 |
fi |
| 9044 |
chmod u+w . 2>&5 |
| 9045 |
$RM conftest* |
| 9046 |
# SGI C++ compiler will create directory out/ii_files/ for |
| 9047 |
# template instantiation |
| 9048 |
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 9049 |
$RM out/* && rmdir out |
| 9050 |
cd .. |
| 9051 |
$RM -r conftest |
| 9052 |
$RM conftest* |
| 9053 |
|
| 9054 |
fi |
| 9055 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
| 9056 |
$as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
| 9057 |
|
| 9058 |
|
| 9059 |
|
| 9060 |
|
| 9061 |
hard_links="nottested" |
| 9062 |
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
| 9063 |
# do not overwrite the value of need_locks provided by the user |
| 9064 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
| 9065 |
$as_echo_n "checking if we can lock with hard links... " >&6; } |
| 9066 |
hard_links=yes |
| 9067 |
$RM conftest* |
| 9068 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 9069 |
touch conftest.a |
| 9070 |
ln conftest.a conftest.b 2>&5 || hard_links=no |
| 9071 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 9072 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
| 9073 |
$as_echo "$hard_links" >&6; } |
| 9074 |
if test "$hard_links" = no; then |
| 9075 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 9076 |
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 9077 |
need_locks=warn |
| 9078 |
fi |
| 9079 |
else |
| 9080 |
need_locks=no |
| 9081 |
fi |
| 9082 |
|
| 9083 |
|
| 9084 |
|
| 9085 |
|
| 9086 |
|
| 9087 |
|
| 9088 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 9089 |
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
| 9090 |
|
| 9091 |
runpath_var= |
| 9092 |
allow_undefined_flag= |
| 9093 |
always_export_symbols=no |
| 9094 |
archive_cmds= |
| 9095 |
archive_expsym_cmds= |
| 9096 |
compiler_needs_object=no |
| 9097 |
enable_shared_with_static_runtimes=no |
| 9098 |
export_dynamic_flag_spec= |
| 9099 |
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 9100 |
hardcode_automatic=no |
| 9101 |
hardcode_direct=no |
| 9102 |
hardcode_direct_absolute=no |
| 9103 |
hardcode_libdir_flag_spec= |
| 9104 |
hardcode_libdir_separator= |
| 9105 |
hardcode_minus_L=no |
| 9106 |
hardcode_shlibpath_var=unsupported |
| 9107 |
inherit_rpath=no |
| 9108 |
link_all_deplibs=unknown |
| 9109 |
module_cmds= |
| 9110 |
module_expsym_cmds= |
| 9111 |
old_archive_from_new_cmds= |
| 9112 |
old_archive_from_expsyms_cmds= |
| 9113 |
thread_safe_flag_spec= |
| 9114 |
whole_archive_flag_spec= |
| 9115 |
# include_expsyms should be a list of space-separated symbols to be *always* |
| 9116 |
# included in the symbol list |
| 9117 |
include_expsyms= |
| 9118 |
# exclude_expsyms can be an extended regexp of symbols to exclude |
| 9119 |
# it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 9120 |
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 9121 |
# as well as any symbol that contains `d'. |
| 9122 |
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
| 9123 |
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 9124 |
# platforms (ab)use it in PIC code, but their linkers get confused if |
| 9125 |
# the symbol is explicitly referenced. Since portable code cannot |
| 9126 |
# rely on this symbol name, it's probably fine to never include it in |
| 9127 |
# preloaded symbol tables. |
| 9128 |
# Exclude shared library initialization/finalization symbols. |
| 9129 |
extract_expsyms_cmds= |
| 9130 |
|
| 9131 |
case $host_os in |
| 9132 |
cygwin* | mingw* | pw32* | cegcc*) |
| 9133 |
# FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 9134 |
# When not using gcc, we currently assume that we are using |
| 9135 |
# Microsoft Visual C++. |
| 9136 |
if test "$GCC" != yes; then |
| 9137 |
with_gnu_ld=no |
| 9138 |
fi |
| 9139 |
;; |
| 9140 |
interix*) |
| 9141 |
# we just hope/assume this is gcc and not c89 (= MSVC++) |
| 9142 |
with_gnu_ld=yes |
| 9143 |
;; |
| 9144 |
openbsd*) |
| 9145 |
with_gnu_ld=no |
| 9146 |
;; |
| 9147 |
esac |
| 9148 |
|
| 9149 |
ld_shlibs=yes |
| 9150 |
|
| 9151 |
# On some targets, GNU ld is compatible enough with the native linker |
| 9152 |
# that we're better off using the native interface for both. |
| 9153 |
lt_use_gnu_ld_interface=no |
| 9154 |
if test "$with_gnu_ld" = yes; then |
| 9155 |
case $host_os in |
| 9156 |
aix*) |
| 9157 |
# The AIX port of GNU ld has always aspired to compatibility |
| 9158 |
# with the native linker. However, as the warning in the GNU ld |
| 9159 |
# block says, versions before 2.19.5* couldn't really create working |
| 9160 |
# shared libraries, regardless of the interface used. |
| 9161 |
case `$LD -v 2>&1` in |
| 9162 |
*\ \(GNU\ Binutils\)\ 2.19.5*) ;; |
| 9163 |
*\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; |
| 9164 |
*\ \(GNU\ Binutils\)\ [3-9]*) ;; |
| 9165 |
*) |
| 9166 |
lt_use_gnu_ld_interface=yes |
| 9167 |
;; |
| 9168 |
esac |
| 9169 |
;; |
| 9170 |
*) |
| 9171 |
lt_use_gnu_ld_interface=yes |
| 9172 |
;; |
| 9173 |
esac |
| 9174 |
fi |
| 9175 |
|
| 9176 |
if test "$lt_use_gnu_ld_interface" = yes; then |
| 9177 |
# If archive_cmds runs LD, not CC, wlarc should be empty |
| 9178 |
wlarc='${wl}' |
| 9179 |
|
| 9180 |
# Set some defaults for GNU ld with shared library support. These |
| 9181 |
# are reset later if shared libraries are not supported. Putting them |
| 9182 |
# here allows them to be overridden if necessary. |
| 9183 |
runpath_var=LD_RUN_PATH |
| 9184 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9185 |
export_dynamic_flag_spec='${wl}--export-dynamic' |
| 9186 |
# ancient GNU ld didn't support --whole-archive et. al. |
| 9187 |
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
| 9188 |
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 9189 |
else |
| 9190 |
whole_archive_flag_spec= |
| 9191 |
fi |
| 9192 |
supports_anon_versioning=no |
| 9193 |
case `$LD -v 2>&1` in |
| 9194 |
*GNU\ gold*) supports_anon_versioning=yes ;; |
| 9195 |
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 9196 |
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 9197 |
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 9198 |
*\ 2.11.*) ;; # other 2.11 versions |
| 9199 |
*) supports_anon_versioning=yes ;; |
| 9200 |
esac |
| 9201 |
|
| 9202 |
# See if GNU ld supports shared libraries. |
| 9203 |
case $host_os in |
| 9204 |
aix[3-9]*) |
| 9205 |
# On AIX/PPC, the GNU linker is very broken |
| 9206 |
if test "$host_cpu" != ia64; then |
| 9207 |
ld_shlibs=no |
| 9208 |
cat <<_LT_EOF 1>&2 |
| 9209 |
|
| 9210 |
*** Warning: the GNU linker, at least up to release 2.19, is reported |
| 9211 |
*** to be unable to reliably create shared libraries on AIX. |
| 9212 |
*** Therefore, libtool is disabling shared libraries support. If you |
| 9213 |
*** really care for shared libraries, you may want to install binutils |
| 9214 |
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. |
| 9215 |
*** You will then need to restart the configuration process. |
| 9216 |
|
| 9217 |
_LT_EOF |
| 9218 |
fi |
| 9219 |
;; |
| 9220 |
|
| 9221 |
amigaos*) |
| 9222 |
case $host_cpu in |
| 9223 |
powerpc) |
| 9224 |
# see comment about AmigaOS4 .so support |
| 9225 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9226 |
archive_expsym_cmds='' |
| 9227 |
;; |
| 9228 |
m68k) |
| 9229 |
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)' |
| 9230 |
hardcode_libdir_flag_spec='-L$libdir' |
| 9231 |
hardcode_minus_L=yes |
| 9232 |
;; |
| 9233 |
esac |
| 9234 |
;; |
| 9235 |
|
| 9236 |
beos*) |
| 9237 |
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 9238 |
allow_undefined_flag=unsupported |
| 9239 |
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 9240 |
# support --undefined. This deserves some investigation. FIXME |
| 9241 |
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9242 |
else |
| 9243 |
ld_shlibs=no |
| 9244 |
fi |
| 9245 |
;; |
| 9246 |
|
| 9247 |
cygwin* | mingw* | pw32* | cegcc*) |
| 9248 |
# _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 9249 |
# as there is no search path for DLLs. |
| 9250 |
hardcode_libdir_flag_spec='-L$libdir' |
| 9251 |
export_dynamic_flag_spec='${wl}--export-all-symbols' |
| 9252 |
allow_undefined_flag=unsupported |
| 9253 |
always_export_symbols=no |
| 9254 |
enable_shared_with_static_runtimes=yes |
| 9255 |
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' |
| 9256 |
exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' |
| 9257 |
|
| 9258 |
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
| 9259 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 9260 |
# If the export-symbols file already is a .def file (1st line |
| 9261 |
# is EXPORTS), use it as is; otherwise, prepend... |
| 9262 |
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 9263 |
cp $export_symbols $output_objdir/$soname.def; |
| 9264 |
else |
| 9265 |
echo EXPORTS > $output_objdir/$soname.def; |
| 9266 |
cat $export_symbols >> $output_objdir/$soname.def; |
| 9267 |
fi~ |
| 9268 |
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 9269 |
else |
| 9270 |
ld_shlibs=no |
| 9271 |
fi |
| 9272 |
;; |
| 9273 |
|
| 9274 |
haiku*) |
| 9275 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9276 |
link_all_deplibs=yes |
| 9277 |
;; |
| 9278 |
|
| 9279 |
interix[3-9]*) |
| 9280 |
hardcode_direct=no |
| 9281 |
hardcode_shlibpath_var=no |
| 9282 |
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 9283 |
export_dynamic_flag_spec='${wl}-E' |
| 9284 |
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 9285 |
# Instead, shared libraries are loaded at an image base (0x10000000 by |
| 9286 |
# default) and relocated if they conflict, which is a slow very memory |
| 9287 |
# consuming and fragmenting process. To avoid this, we pick a random, |
| 9288 |
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 9289 |
# time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 9290 |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 9291 |
archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 9292 |
;; |
| 9293 |
|
| 9294 |
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
| 9295 |
tmp_diet=no |
| 9296 |
if test "$host_os" = linux-dietlibc; then |
| 9297 |
case $cc_basename in |
| 9298 |
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
| 9299 |
esac |
| 9300 |
fi |
| 9301 |
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
| 9302 |
&& test "$tmp_diet" = no |
| 9303 |
then |
| 9304 |
tmp_addflag=' $pic_flag' |
| 9305 |
tmp_sharedflag='-shared' |
| 9306 |
case $cc_basename,$host_cpu in |
| 9307 |
pgcc*) # Portland Group C compiler |
| 9308 |
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
| 9309 |
tmp_addflag=' $pic_flag' |
| 9310 |
;; |
| 9311 |
pgf77* | pgf90* | pgf95* | pgfortran*) |
| 9312 |
# Portland Group f77 and f90 compilers |
| 9313 |
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
| 9314 |
tmp_addflag=' $pic_flag -Mnomain' ;; |
| 9315 |
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 9316 |
tmp_addflag=' -i_dynamic' ;; |
| 9317 |
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 9318 |
tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 9319 |
ifc* | ifort*) # Intel Fortran compiler |
| 9320 |
tmp_addflag=' -nofor_main' ;; |
| 9321 |
lf95*) # Lahey Fortran 8.1 |
| 9322 |
whole_archive_flag_spec= |
| 9323 |
tmp_sharedflag='--shared' ;; |
| 9324 |
xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
| 9325 |
tmp_sharedflag='-qmkshrobj' |
| 9326 |
tmp_addflag= ;; |
| 9327 |
nvcc*) # Cuda Compiler Driver 2.2 |
| 9328 |
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
| 9329 |
compiler_needs_object=yes |
| 9330 |
;; |
| 9331 |
esac |
| 9332 |
case `$CC -V 2>&1 | sed 5q` in |
| 9333 |
*Sun\ C*) # Sun C 5.9 |
| 9334 |
whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
| 9335 |
compiler_needs_object=yes |
| 9336 |
tmp_sharedflag='-G' ;; |
| 9337 |
*Sun\ F*) # Sun Fortran 8.3 |
| 9338 |
tmp_sharedflag='-G' ;; |
| 9339 |
esac |
| 9340 |
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9341 |
|
| 9342 |
if test "x$supports_anon_versioning" = xyes; then |
| 9343 |
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 9344 |
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 9345 |
echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 9346 |
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 9347 |
fi |
| 9348 |
|
| 9349 |
case $cc_basename in |
| 9350 |
xlf* | bgf* | bgxlf* | mpixlf*) |
| 9351 |
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
| 9352 |
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' |
| 9353 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9354 |
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
| 9355 |
if test "x$supports_anon_versioning" = xyes; then |
| 9356 |
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 9357 |
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 9358 |
echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 9359 |
$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
| 9360 |
fi |
| 9361 |
;; |
| 9362 |
esac |
| 9363 |
else |
| 9364 |
ld_shlibs=no |
| 9365 |
fi |
| 9366 |
;; |
| 9367 |
|
| 9368 |
netbsd*) |
| 9369 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 9370 |
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 9371 |
wlarc= |
| 9372 |
else |
| 9373 |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9374 |
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 9375 |
fi |
| 9376 |
;; |
| 9377 |
|
| 9378 |
solaris*) |
| 9379 |
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
| 9380 |
ld_shlibs=no |
| 9381 |
cat <<_LT_EOF 1>&2 |
| 9382 |
|
| 9383 |
*** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 9384 |
*** create shared libraries on Solaris systems. Therefore, libtool |
| 9385 |
*** is disabling shared libraries support. We urge you to upgrade GNU |
| 9386 |
*** binutils to release 2.9.1 or newer. Another option is to modify |
| 9387 |
*** your PATH or compiler configuration so that the native linker is |
| 9388 |
*** used, and then restart. |
| 9389 |
|
| 9390 |
_LT_EOF |
| 9391 |
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 9392 |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9393 |
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 9394 |
else |
| 9395 |
ld_shlibs=no |
| 9396 |
fi |
| 9397 |
;; |
| 9398 |
|
| 9399 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 9400 |
case `$LD -v 2>&1` in |
| 9401 |
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 9402 |
ld_shlibs=no |
| 9403 |
cat <<_LT_EOF 1>&2 |
| 9404 |
|
| 9405 |
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 9406 |
*** reliably create shared libraries on SCO systems. Therefore, libtool |
| 9407 |
*** is disabling shared libraries support. We urge you to upgrade GNU |
| 9408 |
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 9409 |
*** your PATH or compiler configuration so that the native linker is |
| 9410 |
*** used, and then restart. |
| 9411 |
|
| 9412 |
_LT_EOF |
| 9413 |
;; |
| 9414 |
*) |
| 9415 |
# For security reasons, it is highly recommended that you always |
| 9416 |
# use absolute paths for naming shared libraries, and exclude the |
| 9417 |
# DT_RUNPATH tag from executables and libraries. But doing so |
| 9418 |
# requires that you compile everything twice, which is a pain. |
| 9419 |
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 9420 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9421 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9422 |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 9423 |
else |
| 9424 |
ld_shlibs=no |
| 9425 |
fi |
| 9426 |
;; |
| 9427 |
esac |
| 9428 |
;; |
| 9429 |
|
| 9430 |
sunos4*) |
| 9431 |
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 9432 |
wlarc= |
| 9433 |
hardcode_direct=yes |
| 9434 |
hardcode_shlibpath_var=no |
| 9435 |
;; |
| 9436 |
|
| 9437 |
*) |
| 9438 |
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 9439 |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9440 |
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 9441 |
else |
| 9442 |
ld_shlibs=no |
| 9443 |
fi |
| 9444 |
;; |
| 9445 |
esac |
| 9446 |
|
| 9447 |
if test "$ld_shlibs" = no; then |
| 9448 |
runpath_var= |
| 9449 |
hardcode_libdir_flag_spec= |
| 9450 |
export_dynamic_flag_spec= |
| 9451 |
whole_archive_flag_spec= |
| 9452 |
fi |
| 9453 |
else |
| 9454 |
# PORTME fill in a description of your system's linker (not GNU ld) |
| 9455 |
case $host_os in |
| 9456 |
aix3*) |
| 9457 |
allow_undefined_flag=unsupported |
| 9458 |
always_export_symbols=yes |
| 9459 |
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' |
| 9460 |
# Note: this linker hardcodes the directories in LIBPATH if there |
| 9461 |
# are no directories specified by -L. |
| 9462 |
hardcode_minus_L=yes |
| 9463 |
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
| 9464 |
# Neither direct hardcoding nor static linking is supported with a |
| 9465 |
# broken collect2. |
| 9466 |
hardcode_direct=unsupported |
| 9467 |
fi |
| 9468 |
;; |
| 9469 |
|
| 9470 |
aix[4-9]*) |
| 9471 |
if test "$host_cpu" = ia64; then |
| 9472 |
# On IA64, the linker does run time linking by default, so we don't |
| 9473 |
# have to do anything special. |
| 9474 |
aix_use_runtimelinking=no |
| 9475 |
exp_sym_flag='-Bexport' |
| 9476 |
no_entry_flag="" |
| 9477 |
else |
| 9478 |
# If we're using GNU nm, then we don't want the "-C" option. |
| 9479 |
# -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 9480 |
# Also, AIX nm treats weak defined symbols like other global |
| 9481 |
# defined symbols, whereas GNU nm marks them as "W". |
| 9482 |
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| 9483 |
export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
| 9484 |
else |
| 9485 |
export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
| 9486 |
fi |
| 9487 |
aix_use_runtimelinking=no |
| 9488 |
|
| 9489 |
# Test if we are trying to use run time linking or normal |
| 9490 |
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 9491 |
# need to do runtime linking. |
| 9492 |
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
| 9493 |
for ld_flag in $LDFLAGS; do |
| 9494 |
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 9495 |
aix_use_runtimelinking=yes |
| 9496 |
break |
| 9497 |
fi |
| 9498 |
done |
| 9499 |
;; |
| 9500 |
esac |
| 9501 |
|
| 9502 |
exp_sym_flag='-bexport' |
| 9503 |
no_entry_flag='-bnoentry' |
| 9504 |
fi |
| 9505 |
|
| 9506 |
# When large executables or shared objects are built, AIX ld can |
| 9507 |
# have problems creating the table of contents. If linking a library |
| 9508 |
# or program results in "error TOC overflow" add -mminimal-toc to |
| 9509 |
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 9510 |
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 9511 |
|
| 9512 |
archive_cmds='' |
| 9513 |
hardcode_direct=yes |
| 9514 |
hardcode_direct_absolute=yes |
| 9515 |
hardcode_libdir_separator=':' |
| 9516 |
link_all_deplibs=yes |
| 9517 |
file_list_spec='${wl}-f,' |
| 9518 |
|
| 9519 |
if test "$GCC" = yes; then |
| 9520 |
case $host_os in aix4.[012]|aix4.[012].*) |
| 9521 |
# We only want to do this on AIX 4.2 and lower, the check |
| 9522 |
# below for broken collect2 doesn't work under 4.3+ |
| 9523 |
collect2name=`${CC} -print-prog-name=collect2` |
| 9524 |
if test -f "$collect2name" && |
| 9525 |
strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
| 9526 |
then |
| 9527 |
# We have reworked collect2 |
| 9528 |
: |
| 9529 |
else |
| 9530 |
# We have old collect2 |
| 9531 |
hardcode_direct=unsupported |
| 9532 |
# It fails to find uninstalled libraries when the uninstalled |
| 9533 |
# path is not listed in the libpath. Setting hardcode_minus_L |
| 9534 |
# to unsupported forces relinking |
| 9535 |
hardcode_minus_L=yes |
| 9536 |
hardcode_libdir_flag_spec='-L$libdir' |
| 9537 |
hardcode_libdir_separator= |
| 9538 |
fi |
| 9539 |
;; |
| 9540 |
esac |
| 9541 |
shared_flag='-shared' |
| 9542 |
if test "$aix_use_runtimelinking" = yes; then |
| 9543 |
shared_flag="$shared_flag "'${wl}-G' |
| 9544 |
fi |
| 9545 |
else |
| 9546 |
# not using gcc |
| 9547 |
if test "$host_cpu" = ia64; then |
| 9548 |
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 9549 |
# chokes on -Wl,-G. The following line is correct: |
| 9550 |
shared_flag='-G' |
| 9551 |
else |
| 9552 |
if test "$aix_use_runtimelinking" = yes; then |
| 9553 |
shared_flag='${wl}-G' |
| 9554 |
else |
| 9555 |
shared_flag='${wl}-bM:SRE' |
| 9556 |
fi |
| 9557 |
fi |
| 9558 |
fi |
| 9559 |
|
| 9560 |
export_dynamic_flag_spec='${wl}-bexpall' |
| 9561 |
# It seems that -bexpall does not export symbols beginning with |
| 9562 |
# underscore (_), so it is better to generate a list of symbols to export. |
| 9563 |
always_export_symbols=yes |
| 9564 |
if test "$aix_use_runtimelinking" = yes; then |
| 9565 |
# Warning - without using the other runtime loading flags (-brtl), |
| 9566 |
# -berok will link without error, but may produce a broken library. |
| 9567 |
allow_undefined_flag='-berok' |
| 9568 |
# Determine the default libpath from the value encoded in an |
| 9569 |
# empty executable. |
| 9570 |
if test "${lt_cv_aix_libpath+set}" = set; then |
| 9571 |
aix_libpath=$lt_cv_aix_libpath |
| 9572 |
else |
| 9573 |
if ${lt_cv_aix_libpath_+:} false; then : |
| 9574 |
$as_echo_n "(cached) " >&6 |
| 9575 |
else |
| 9576 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9577 |
/* end confdefs.h. */ |
| 9578 |
|
| 9579 |
int |
| 9580 |
main () |
| 9581 |
{ |
| 9582 |
|
| 9583 |
; |
| 9584 |
return 0; |
| 9585 |
} |
| 9586 |
_ACEOF |
| 9587 |
if ac_fn_c_try_link "$LINENO"; then : |
| 9588 |
|
| 9589 |
lt_aix_libpath_sed=' |
| 9590 |
/Import File Strings/,/^$/ { |
| 9591 |
/^0/ { |
| 9592 |
s/^0 *\([^ ]*\) *$/\1/ |
| 9593 |
p |
| 9594 |
} |
| 9595 |
}' |
| 9596 |
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 9597 |
# Check for a 64-bit object if we didn't find anything. |
| 9598 |
if test -z "$lt_cv_aix_libpath_"; then |
| 9599 |
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 9600 |
fi |
| 9601 |
fi |
| 9602 |
rm -f core conftest.err conftest.$ac_objext \ |
| 9603 |
conftest$ac_exeext conftest.$ac_ext |
| 9604 |
if test -z "$lt_cv_aix_libpath_"; then |
| 9605 |
lt_cv_aix_libpath_="/usr/lib:/lib" |
| 9606 |
fi |
| 9607 |
|
| 9608 |
fi |
| 9609 |
|
| 9610 |
aix_libpath=$lt_cv_aix_libpath_ |
| 9611 |
fi |
| 9612 |
|
| 9613 |
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 9614 |
archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
| 9615 |
else |
| 9616 |
if test "$host_cpu" = ia64; then |
| 9617 |
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 9618 |
allow_undefined_flag="-z nodefs" |
| 9619 |
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
| 9620 |
else |
| 9621 |
# Determine the default libpath from the value encoded in an |
| 9622 |
# empty executable. |
| 9623 |
if test "${lt_cv_aix_libpath+set}" = set; then |
| 9624 |
aix_libpath=$lt_cv_aix_libpath |
| 9625 |
else |
| 9626 |
if ${lt_cv_aix_libpath_+:} false; then : |
| 9627 |
$as_echo_n "(cached) " >&6 |
| 9628 |
else |
| 9629 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9630 |
/* end confdefs.h. */ |
| 9631 |
|
| 9632 |
int |
| 9633 |
main () |
| 9634 |
{ |
| 9635 |
|
| 9636 |
; |
| 9637 |
return 0; |
| 9638 |
} |
| 9639 |
_ACEOF |
| 9640 |
if ac_fn_c_try_link "$LINENO"; then : |
| 9641 |
|
| 9642 |
lt_aix_libpath_sed=' |
| 9643 |
/Import File Strings/,/^$/ { |
| 9644 |
/^0/ { |
| 9645 |
s/^0 *\([^ ]*\) *$/\1/ |
| 9646 |
p |
| 9647 |
} |
| 9648 |
}' |
| 9649 |
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 9650 |
# Check for a 64-bit object if we didn't find anything. |
| 9651 |
if test -z "$lt_cv_aix_libpath_"; then |
| 9652 |
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 9653 |
fi |
| 9654 |
fi |
| 9655 |
rm -f core conftest.err conftest.$ac_objext \ |
| 9656 |
conftest$ac_exeext conftest.$ac_ext |
| 9657 |
if test -z "$lt_cv_aix_libpath_"; then |
| 9658 |
lt_cv_aix_libpath_="/usr/lib:/lib" |
| 9659 |
fi |
| 9660 |
|
| 9661 |
fi |
| 9662 |
|
| 9663 |
aix_libpath=$lt_cv_aix_libpath_ |
| 9664 |
fi |
| 9665 |
|
| 9666 |
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 9667 |
# Warning - without using the other run time loading flags, |
| 9668 |
# -berok will link without error, but may produce a broken library. |
| 9669 |
no_undefined_flag=' ${wl}-bernotok' |
| 9670 |
allow_undefined_flag=' ${wl}-berok' |
| 9671 |
if test "$with_gnu_ld" = yes; then |
| 9672 |
# We only use this code for GNU lds that support --whole-archive. |
| 9673 |
whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 9674 |
else |
| 9675 |
# Exported symbols can be pulled into shared objects from archives |
| 9676 |
whole_archive_flag_spec='$convenience' |
| 9677 |
fi |
| 9678 |
archive_cmds_need_lc=yes |
| 9679 |
# This is similar to how AIX traditionally builds its shared libraries. |
| 9680 |
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
| 9681 |
fi |
| 9682 |
fi |
| 9683 |
;; |
| 9684 |
|
| 9685 |
amigaos*) |
| 9686 |
case $host_cpu in |
| 9687 |
powerpc) |
| 9688 |
# see comment about AmigaOS4 .so support |
| 9689 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9690 |
archive_expsym_cmds='' |
| 9691 |
;; |
| 9692 |
m68k) |
| 9693 |
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)' |
| 9694 |
hardcode_libdir_flag_spec='-L$libdir' |
| 9695 |
hardcode_minus_L=yes |
| 9696 |
;; |
| 9697 |
esac |
| 9698 |
;; |
| 9699 |
|
| 9700 |
bsdi[45]*) |
| 9701 |
export_dynamic_flag_spec=-rdynamic |
| 9702 |
;; |
| 9703 |
|
| 9704 |
cygwin* | mingw* | pw32* | cegcc*) |
| 9705 |
# When not using gcc, we currently assume that we are using |
| 9706 |
# Microsoft Visual C++. |
| 9707 |
# hardcode_libdir_flag_spec is actually meaningless, as there is |
| 9708 |
# no search path for DLLs. |
| 9709 |
case $cc_basename in |
| 9710 |
cl*) |
| 9711 |
# Native MSVC |
| 9712 |
hardcode_libdir_flag_spec=' ' |
| 9713 |
allow_undefined_flag=unsupported |
| 9714 |
always_export_symbols=yes |
| 9715 |
file_list_spec='@' |
| 9716 |
# Tell ltmain to make .lib files, not .a files. |
| 9717 |
libext=lib |
| 9718 |
# Tell ltmain to make .dll files, not .so files. |
| 9719 |
shrext_cmds=".dll" |
| 9720 |
# FIXME: Setting linknames here is a bad hack. |
| 9721 |
archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' |
| 9722 |
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 9723 |
sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; |
| 9724 |
else |
| 9725 |
sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; |
| 9726 |
fi~ |
| 9727 |
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ |
| 9728 |
linknames=' |
| 9729 |
# The linker will not automatically build a static lib if we build a DLL. |
| 9730 |
# _LT_TAGVAR(old_archive_from_new_cmds, )='true' |
| 9731 |
enable_shared_with_static_runtimes=yes |
| 9732 |
exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' |
| 9733 |
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
| 9734 |
# Don't use ranlib |
| 9735 |
old_postinstall_cmds='chmod 644 $oldlib' |
| 9736 |
postlink_cmds='lt_outputfile="@OUTPUT@"~ |
| 9737 |
lt_tool_outputfile="@TOOL_OUTPUT@"~ |
| 9738 |
case $lt_outputfile in |
| 9739 |
*.exe|*.EXE) ;; |
| 9740 |
*) |
| 9741 |
lt_outputfile="$lt_outputfile.exe" |
| 9742 |
lt_tool_outputfile="$lt_tool_outputfile.exe" |
| 9743 |
;; |
| 9744 |
esac~ |
| 9745 |
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then |
| 9746 |
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; |
| 9747 |
$RM "$lt_outputfile.manifest"; |
| 9748 |
fi' |
| 9749 |
;; |
| 9750 |
*) |
| 9751 |
# Assume MSVC wrapper |
| 9752 |
hardcode_libdir_flag_spec=' ' |
| 9753 |
allow_undefined_flag=unsupported |
| 9754 |
# Tell ltmain to make .lib files, not .a files. |
| 9755 |
libext=lib |
| 9756 |
# Tell ltmain to make .dll files, not .so files. |
| 9757 |
shrext_cmds=".dll" |
| 9758 |
# FIXME: Setting linknames here is a bad hack. |
| 9759 |
archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 9760 |
# The linker will automatically build a .lib file if we build a DLL. |
| 9761 |
old_archive_from_new_cmds='true' |
| 9762 |
# FIXME: Should let the user specify the lib program. |
| 9763 |
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
| 9764 |
enable_shared_with_static_runtimes=yes |
| 9765 |
;; |
| 9766 |
esac |
| 9767 |
;; |
| 9768 |
|
| 9769 |
darwin* | rhapsody*) |
| 9770 |
|
| 9771 |
|
| 9772 |
archive_cmds_need_lc=no |
| 9773 |
hardcode_direct=no |
| 9774 |
hardcode_automatic=yes |
| 9775 |
hardcode_shlibpath_var=unsupported |
| 9776 |
if test "$lt_cv_ld_force_load" = "yes"; then |
| 9777 |
whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' |
| 9778 |
|
| 9779 |
else |
| 9780 |
whole_archive_flag_spec='' |
| 9781 |
fi |
| 9782 |
link_all_deplibs=yes |
| 9783 |
allow_undefined_flag="$_lt_dar_allow_undefined" |
| 9784 |
case $cc_basename in |
| 9785 |
ifort*) _lt_dar_can_shared=yes ;; |
| 9786 |
*) _lt_dar_can_shared=$GCC ;; |
| 9787 |
esac |
| 9788 |
if test "$_lt_dar_can_shared" = "yes"; then |
| 9789 |
output_verbose_link_cmd=func_echo_all |
| 9790 |
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
| 9791 |
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
| 9792 |
archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" |
| 9793 |
module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" |
| 9794 |
|
| 9795 |
else |
| 9796 |
ld_shlibs=no |
| 9797 |
fi |
| 9798 |
|
| 9799 |
;; |
| 9800 |
|
| 9801 |
dgux*) |
| 9802 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9803 |
hardcode_libdir_flag_spec='-L$libdir' |
| 9804 |
hardcode_shlibpath_var=no |
| 9805 |
;; |
| 9806 |
|
| 9807 |
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 9808 |
# support. Future versions do this automatically, but an explicit c++rt0.o |
| 9809 |
# does not break anything, and helps significantly (at the cost of a little |
| 9810 |
# extra space). |
| 9811 |
freebsd2.2*) |
| 9812 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 9813 |
hardcode_libdir_flag_spec='-R$libdir' |
| 9814 |
hardcode_direct=yes |
| 9815 |
hardcode_shlibpath_var=no |
| 9816 |
;; |
| 9817 |
|
| 9818 |
# Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 9819 |
freebsd2.*) |
| 9820 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 9821 |
hardcode_direct=yes |
| 9822 |
hardcode_minus_L=yes |
| 9823 |
hardcode_shlibpath_var=no |
| 9824 |
;; |
| 9825 |
|
| 9826 |
# FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 9827 |
freebsd* | dragonfly*) |
| 9828 |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 9829 |
hardcode_libdir_flag_spec='-R$libdir' |
| 9830 |
hardcode_direct=yes |
| 9831 |
hardcode_shlibpath_var=no |
| 9832 |
;; |
| 9833 |
|
| 9834 |
hpux9*) |
| 9835 |
if test "$GCC" = yes; then |
| 9836 |
archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 9837 |
else |
| 9838 |
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' |
| 9839 |
fi |
| 9840 |
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 9841 |
hardcode_libdir_separator=: |
| 9842 |
hardcode_direct=yes |
| 9843 |
|
| 9844 |
# hardcode_minus_L: Not really in the search PATH, |
| 9845 |
# but as the default location of the library. |
| 9846 |
hardcode_minus_L=yes |
| 9847 |
export_dynamic_flag_spec='${wl}-E' |
| 9848 |
;; |
| 9849 |
|
| 9850 |
hpux10*) |
| 9851 |
if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
| 9852 |
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 9853 |
else |
| 9854 |
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 9855 |
fi |
| 9856 |
if test "$with_gnu_ld" = no; then |
| 9857 |
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 9858 |
hardcode_libdir_separator=: |
| 9859 |
hardcode_direct=yes |
| 9860 |
hardcode_direct_absolute=yes |
| 9861 |
export_dynamic_flag_spec='${wl}-E' |
| 9862 |
# hardcode_minus_L: Not really in the search PATH, |
| 9863 |
# but as the default location of the library. |
| 9864 |
hardcode_minus_L=yes |
| 9865 |
fi |
| 9866 |
;; |
| 9867 |
|
| 9868 |
hpux11*) |
| 9869 |
if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
| 9870 |
case $host_cpu in |
| 9871 |
hppa*64*) |
| 9872 |
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9873 |
;; |
| 9874 |
ia64*) |
| 9875 |
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 9876 |
;; |
| 9877 |
*) |
| 9878 |
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 9879 |
;; |
| 9880 |
esac |
| 9881 |
else |
| 9882 |
case $host_cpu in |
| 9883 |
hppa*64*) |
| 9884 |
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9885 |
;; |
| 9886 |
ia64*) |
| 9887 |
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 9888 |
;; |
| 9889 |
*) |
| 9890 |
|
| 9891 |
# Older versions of the 11.00 compiler do not understand -b yet |
| 9892 |
# (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) |
| 9893 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 |
| 9894 |
$as_echo_n "checking if $CC understands -b... " >&6; } |
| 9895 |
if ${lt_cv_prog_compiler__b+:} false; then : |
| 9896 |
$as_echo_n "(cached) " >&6 |
| 9897 |
else |
| 9898 |
lt_cv_prog_compiler__b=no |
| 9899 |
save_LDFLAGS="$LDFLAGS" |
| 9900 |
LDFLAGS="$LDFLAGS -b" |
| 9901 |
echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 9902 |
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 9903 |
# The linker can only warn and ignore the option if not recognized |
| 9904 |
# So say no if there are warnings |
| 9905 |
if test -s conftest.err; then |
| 9906 |
# Append any errors to the config.log. |
| 9907 |
cat conftest.err 1>&5 |
| 9908 |
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| 9909 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 9910 |
if diff conftest.exp conftest.er2 >/dev/null; then |
| 9911 |
lt_cv_prog_compiler__b=yes |
| 9912 |
fi |
| 9913 |
else |
| 9914 |
lt_cv_prog_compiler__b=yes |
| 9915 |
fi |
| 9916 |
fi |
| 9917 |
$RM -r conftest* |
| 9918 |
LDFLAGS="$save_LDFLAGS" |
| 9919 |
|
| 9920 |
fi |
| 9921 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 |
| 9922 |
$as_echo "$lt_cv_prog_compiler__b" >&6; } |
| 9923 |
|
| 9924 |
if test x"$lt_cv_prog_compiler__b" = xyes; then |
| 9925 |
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 9926 |
else |
| 9927 |
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 9928 |
fi |
| 9929 |
|
| 9930 |
;; |
| 9931 |
esac |
| 9932 |
fi |
| 9933 |
if test "$with_gnu_ld" = no; then |
| 9934 |
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 9935 |
hardcode_libdir_separator=: |
| 9936 |
|
| 9937 |
case $host_cpu in |
| 9938 |
hppa*64*|ia64*) |
| 9939 |
hardcode_direct=no |
| 9940 |
hardcode_shlibpath_var=no |
| 9941 |
;; |
| 9942 |
*) |
| 9943 |
hardcode_direct=yes |
| 9944 |
hardcode_direct_absolute=yes |
| 9945 |
export_dynamic_flag_spec='${wl}-E' |
| 9946 |
|
| 9947 |
# hardcode_minus_L: Not really in the search PATH, |
| 9948 |
# but as the default location of the library. |
| 9949 |
hardcode_minus_L=yes |
| 9950 |
;; |
| 9951 |
esac |
| 9952 |
fi |
| 9953 |
;; |
| 9954 |
|
| 9955 |
irix5* | irix6* | nonstopux*) |
| 9956 |
if test "$GCC" = yes; then |
| 9957 |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 9958 |
# Try to use the -exported_symbol ld option, if it does not |
| 9959 |
# work, assume that -exports_file does not work either and |
| 9960 |
# implicitly export all symbols. |
| 9961 |
# This should be the same for all languages, so no per-tag cache variable. |
| 9962 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 |
| 9963 |
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } |
| 9964 |
if ${lt_cv_irix_exported_symbol+:} false; then : |
| 9965 |
$as_echo_n "(cached) " >&6 |
| 9966 |
else |
| 9967 |
save_LDFLAGS="$LDFLAGS" |
| 9968 |
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" |
| 9969 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9970 |
/* end confdefs.h. */ |
| 9971 |
int foo (void) { return 0; } |
| 9972 |
_ACEOF |
| 9973 |
if ac_fn_c_try_link "$LINENO"; then : |
| 9974 |
lt_cv_irix_exported_symbol=yes |
| 9975 |
else |
| 9976 |
lt_cv_irix_exported_symbol=no |
| 9977 |
fi |
| 9978 |
rm -f core conftest.err conftest.$ac_objext \ |
| 9979 |
conftest$ac_exeext conftest.$ac_ext |
| 9980 |
LDFLAGS="$save_LDFLAGS" |
| 9981 |
fi |
| 9982 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 |
| 9983 |
$as_echo "$lt_cv_irix_exported_symbol" >&6; } |
| 9984 |
if test "$lt_cv_irix_exported_symbol" = yes; then |
| 9985 |
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' |
| 9986 |
fi |
| 9987 |
else |
| 9988 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
| 9989 |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' |
| 9990 |
fi |
| 9991 |
archive_cmds_need_lc='no' |
| 9992 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9993 |
hardcode_libdir_separator=: |
| 9994 |
inherit_rpath=yes |
| 9995 |
link_all_deplibs=yes |
| 9996 |
;; |
| 9997 |
|
| 9998 |
netbsd*) |
| 9999 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 10000 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 10001 |
else |
| 10002 |
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 10003 |
fi |
| 10004 |
hardcode_libdir_flag_spec='-R$libdir' |
| 10005 |
hardcode_direct=yes |
| 10006 |
hardcode_shlibpath_var=no |
| 10007 |
;; |
| 10008 |
|
| 10009 |
newsos6) |
| 10010 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10011 |
hardcode_direct=yes |
| 10012 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 10013 |
hardcode_libdir_separator=: |
| 10014 |
hardcode_shlibpath_var=no |
| 10015 |
;; |
| 10016 |
|
| 10017 |
*nto* | *qnx*) |
| 10018 |
;; |
| 10019 |
|
| 10020 |
openbsd*) |
| 10021 |
if test -f /usr/libexec/ld.so; then |
| 10022 |
hardcode_direct=yes |
| 10023 |
hardcode_shlibpath_var=no |
| 10024 |
hardcode_direct_absolute=yes |
| 10025 |
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 10026 |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 10027 |
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
| 10028 |
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 10029 |
export_dynamic_flag_spec='${wl}-E' |
| 10030 |
else |
| 10031 |
case $host_os in |
| 10032 |
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 10033 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 10034 |
hardcode_libdir_flag_spec='-R$libdir' |
| 10035 |
;; |
| 10036 |
*) |
| 10037 |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 10038 |
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 10039 |
;; |
| 10040 |
esac |
| 10041 |
fi |
| 10042 |
else |
| 10043 |
ld_shlibs=no |
| 10044 |
fi |
| 10045 |
;; |
| 10046 |
|
| 10047 |
os2*) |
| 10048 |
hardcode_libdir_flag_spec='-L$libdir' |
| 10049 |
hardcode_minus_L=yes |
| 10050 |
allow_undefined_flag=unsupported |
| 10051 |
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' |
| 10052 |
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 10053 |
;; |
| 10054 |
|
| 10055 |
osf3*) |
| 10056 |
if test "$GCC" = yes; then |
| 10057 |
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 10058 |
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 10059 |
else |
| 10060 |
allow_undefined_flag=' -expect_unresolved \*' |
| 10061 |
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
| 10062 |
fi |
| 10063 |
archive_cmds_need_lc='no' |
| 10064 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 10065 |
hardcode_libdir_separator=: |
| 10066 |
;; |
| 10067 |
|
| 10068 |
osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 10069 |
if test "$GCC" = yes; then |
| 10070 |
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 10071 |
archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 10072 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 10073 |
else |
| 10074 |
allow_undefined_flag=' -expect_unresolved \*' |
| 10075 |
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
| 10076 |
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ |
| 10077 |
$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' |
| 10078 |
|
| 10079 |
# Both c and cxx compiler support -rpath directly |
| 10080 |
hardcode_libdir_flag_spec='-rpath $libdir' |
| 10081 |
fi |
| 10082 |
archive_cmds_need_lc='no' |
| 10083 |
hardcode_libdir_separator=: |
| 10084 |
;; |
| 10085 |
|
| 10086 |
solaris*) |
| 10087 |
no_undefined_flag=' -z defs' |
| 10088 |
if test "$GCC" = yes; then |
| 10089 |
wlarc='${wl}' |
| 10090 |
archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10091 |
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 10092 |
$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| 10093 |
else |
| 10094 |
case `$CC -V 2>&1` in |
| 10095 |
*"Compilers 5.0"*) |
| 10096 |
wlarc='' |
| 10097 |
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10098 |
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 10099 |
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
| 10100 |
;; |
| 10101 |
*) |
| 10102 |
wlarc='${wl}' |
| 10103 |
archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10104 |
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 10105 |
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| 10106 |
;; |
| 10107 |
esac |
| 10108 |
fi |
| 10109 |
hardcode_libdir_flag_spec='-R$libdir' |
| 10110 |
hardcode_shlibpath_var=no |
| 10111 |
case $host_os in |
| 10112 |
solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 10113 |
*) |
| 10114 |
# The compiler driver will combine and reorder linker options, |
| 10115 |
# but understands `-z linker_flag'. GCC discards it without `$wl', |
| 10116 |
# but is careful enough not to reorder. |
| 10117 |
# Supported since Solaris 2.6 (maybe 2.5.1?) |
| 10118 |
if test "$GCC" = yes; then |
| 10119 |
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 10120 |
else |
| 10121 |
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
| 10122 |
fi |
| 10123 |
;; |
| 10124 |
esac |
| 10125 |
link_all_deplibs=yes |
| 10126 |
;; |
| 10127 |
|
| 10128 |
sunos4*) |
| 10129 |
if test "x$host_vendor" = xsequent; then |
| 10130 |
# Use $CC to link under sequent, because it throws in some extra .o |
| 10131 |
# files that make .init and .fini sections work. |
| 10132 |
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10133 |
else |
| 10134 |
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 10135 |
fi |
| 10136 |
hardcode_libdir_flag_spec='-L$libdir' |
| 10137 |
hardcode_direct=yes |
| 10138 |
hardcode_minus_L=yes |
| 10139 |
hardcode_shlibpath_var=no |
| 10140 |
;; |
| 10141 |
|
| 10142 |
sysv4) |
| 10143 |
case $host_vendor in |
| 10144 |
sni) |
| 10145 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10146 |
hardcode_direct=yes # is this really true??? |
| 10147 |
;; |
| 10148 |
siemens) |
| 10149 |
## LD is ld it makes a PLAMLIB |
| 10150 |
## CC just makes a GrossModule. |
| 10151 |
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 10152 |
reload_cmds='$CC -r -o $output$reload_objs' |
| 10153 |
hardcode_direct=no |
| 10154 |
;; |
| 10155 |
motorola) |
| 10156 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10157 |
hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 10158 |
;; |
| 10159 |
esac |
| 10160 |
runpath_var='LD_RUN_PATH' |
| 10161 |
hardcode_shlibpath_var=no |
| 10162 |
;; |
| 10163 |
|
| 10164 |
sysv4.3*) |
| 10165 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10166 |
hardcode_shlibpath_var=no |
| 10167 |
export_dynamic_flag_spec='-Bexport' |
| 10168 |
;; |
| 10169 |
|
| 10170 |
sysv4*MP*) |
| 10171 |
if test -d /usr/nec; then |
| 10172 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10173 |
hardcode_shlibpath_var=no |
| 10174 |
runpath_var=LD_RUN_PATH |
| 10175 |
hardcode_runpath_var=yes |
| 10176 |
ld_shlibs=yes |
| 10177 |
fi |
| 10178 |
;; |
| 10179 |
|
| 10180 |
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 10181 |
no_undefined_flag='${wl}-z,text' |
| 10182 |
archive_cmds_need_lc=no |
| 10183 |
hardcode_shlibpath_var=no |
| 10184 |
runpath_var='LD_RUN_PATH' |
| 10185 |
|
| 10186 |
if test "$GCC" = yes; then |
| 10187 |
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10188 |
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10189 |
else |
| 10190 |
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10191 |
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10192 |
fi |
| 10193 |
;; |
| 10194 |
|
| 10195 |
sysv5* | sco3.2v5* | sco5v6*) |
| 10196 |
# Note: We can NOT use -z defs as we might desire, because we do not |
| 10197 |
# link with -lc, and that would cause any symbols used from libc to |
| 10198 |
# always be unresolved, which means just about no library would |
| 10199 |
# ever link correctly. If we're not using GNU ld we use -z text |
| 10200 |
# though, which does catch some bad symbols but isn't as heavy-handed |
| 10201 |
# as -z defs. |
| 10202 |
no_undefined_flag='${wl}-z,text' |
| 10203 |
allow_undefined_flag='${wl}-z,nodefs' |
| 10204 |
archive_cmds_need_lc=no |
| 10205 |
hardcode_shlibpath_var=no |
| 10206 |
hardcode_libdir_flag_spec='${wl}-R,$libdir' |
| 10207 |
hardcode_libdir_separator=':' |
| 10208 |
link_all_deplibs=yes |
| 10209 |
export_dynamic_flag_spec='${wl}-Bexport' |
| 10210 |
runpath_var='LD_RUN_PATH' |
| 10211 |
|
| 10212 |
if test "$GCC" = yes; then |
| 10213 |
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10214 |
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10215 |
else |
| 10216 |
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10217 |
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10218 |
fi |
| 10219 |
;; |
| 10220 |
|
| 10221 |
uts4*) |
| 10222 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10223 |
hardcode_libdir_flag_spec='-L$libdir' |
| 10224 |
hardcode_shlibpath_var=no |
| 10225 |
;; |
| 10226 |
|
| 10227 |
*) |
| 10228 |
ld_shlibs=no |
| 10229 |
;; |
| 10230 |
esac |
| 10231 |
|
| 10232 |
if test x$host_vendor = xsni; then |
| 10233 |
case $host in |
| 10234 |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 10235 |
export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 10236 |
;; |
| 10237 |
esac |
| 10238 |
fi |
| 10239 |
fi |
| 10240 |
|
| 10241 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
| 10242 |
$as_echo "$ld_shlibs" >&6; } |
| 10243 |
test "$ld_shlibs" = no && can_build_shared=no |
| 10244 |
|
| 10245 |
with_gnu_ld=$with_gnu_ld |
| 10246 |
|
| 10247 |
|
| 10248 |
|
| 10249 |
|
| 10250 |
|
| 10251 |
|
| 10252 |
|
| 10253 |
|
| 10254 |
|
| 10255 |
|
| 10256 |
|
| 10257 |
|
| 10258 |
|
| 10259 |
|
| 10260 |
|
| 10261 |
# |
| 10262 |
# Do we need to explicitly link libc? |
| 10263 |
# |
| 10264 |
case "x$archive_cmds_need_lc" in |
| 10265 |
x|xyes) |
| 10266 |
# Assume -lc should be added |
| 10267 |
archive_cmds_need_lc=yes |
| 10268 |
|
| 10269 |
if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 10270 |
case $archive_cmds in |
| 10271 |
*'~'*) |
| 10272 |
# FIXME: we may have to deal with multi-command sequences. |
| 10273 |
;; |
| 10274 |
'$CC '*) |
| 10275 |
# Test whether the compiler implicitly links with -lc since on some |
| 10276 |
# systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 10277 |
# to ld, don't add -lc before -lgcc. |
| 10278 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
| 10279 |
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
| 10280 |
if ${lt_cv_archive_cmds_need_lc+:} false; then : |
| 10281 |
$as_echo_n "(cached) " >&6 |
| 10282 |
else |
| 10283 |
$RM conftest* |
| 10284 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 10285 |
|
| 10286 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 10287 |
(eval $ac_compile) 2>&5 |
| 10288 |
ac_status=$? |
| 10289 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 10290 |
test $ac_status = 0; } 2>conftest.err; then |
| 10291 |
soname=conftest |
| 10292 |
lib=conftest |
| 10293 |
libobjs=conftest.$ac_objext |
| 10294 |
deplibs= |
| 10295 |
wl=$lt_prog_compiler_wl |
| 10296 |
pic_flag=$lt_prog_compiler_pic |
| 10297 |
compiler_flags=-v |
| 10298 |
linker_flags=-v |
| 10299 |
verstring= |
| 10300 |
output_objdir=. |
| 10301 |
libname=conftest |
| 10302 |
lt_save_allow_undefined_flag=$allow_undefined_flag |
| 10303 |
allow_undefined_flag= |
| 10304 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
| 10305 |
(eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 10306 |
ac_status=$? |
| 10307 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 10308 |
test $ac_status = 0; } |
| 10309 |
then |
| 10310 |
lt_cv_archive_cmds_need_lc=no |
| 10311 |
else |
| 10312 |
lt_cv_archive_cmds_need_lc=yes |
| 10313 |
fi |
| 10314 |
allow_undefined_flag=$lt_save_allow_undefined_flag |
| 10315 |
else |
| 10316 |
cat conftest.err 1>&5 |
| 10317 |
fi |
| 10318 |
$RM conftest* |
| 10319 |
|
| 10320 |
fi |
| 10321 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
| 10322 |
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } |
| 10323 |
archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
| 10324 |
;; |
| 10325 |
esac |
| 10326 |
fi |
| 10327 |
;; |
| 10328 |
esac |
| 10329 |
|
| 10330 |
|
| 10331 |
|
| 10332 |
|
| 10333 |
|
| 10334 |
|
| 10335 |
|
| 10336 |
|
| 10337 |
|
| 10338 |
|
| 10339 |
|
| 10340 |
|
| 10341 |
|
| 10342 |
|
| 10343 |
|
| 10344 |
|
| 10345 |
|
| 10346 |
|
| 10347 |
|
| 10348 |
|
| 10349 |
|
| 10350 |
|
| 10351 |
|
| 10352 |
|
| 10353 |
|
| 10354 |
|
| 10355 |
|
| 10356 |
|
| 10357 |
|
| 10358 |
|
| 10359 |
|
| 10360 |
|
| 10361 |
|
| 10362 |
|
| 10363 |
|
| 10364 |
|
| 10365 |
|
| 10366 |
|
| 10367 |
|
| 10368 |
|
| 10369 |
|
| 10370 |
|
| 10371 |
|
| 10372 |
|
| 10373 |
|
| 10374 |
|
| 10375 |
|
| 10376 |
|
| 10377 |
|
| 10378 |
|
| 10379 |
|
| 10380 |
|
| 10381 |
|
| 10382 |
|
| 10383 |
|
| 10384 |
|
| 10385 |
|
| 10386 |
|
| 10387 |
|
| 10388 |
|
| 10389 |
|
| 10390 |
|
| 10391 |
|
| 10392 |
|
| 10393 |
|
| 10394 |
|
| 10395 |
|
| 10396 |
|
| 10397 |
|
| 10398 |
|
| 10399 |
|
| 10400 |
|
| 10401 |
|
| 10402 |
|
| 10403 |
|
| 10404 |
|
| 10405 |
|
| 10406 |
|
| 10407 |
|
| 10408 |
|
| 10409 |
|
| 10410 |
|
| 10411 |
|
| 10412 |
|
| 10413 |
|
| 10414 |
|
| 10415 |
|
| 10416 |
|
| 10417 |
|
| 10418 |
|
| 10419 |
|
| 10420 |
|
| 10421 |
|
| 10422 |
|
| 10423 |
|
| 10424 |
|
| 10425 |
|
| 10426 |
|
| 10427 |
|
| 10428 |
|
| 10429 |
|
| 10430 |
|
| 10431 |
|
| 10432 |
|
| 10433 |
|
| 10434 |
|
| 10435 |
|
| 10436 |
|
| 10437 |
|
| 10438 |
|
| 10439 |
|
| 10440 |
|
| 10441 |
|
| 10442 |
|
| 10443 |
|
| 10444 |
|
| 10445 |
|
| 10446 |
|
| 10447 |
|
| 10448 |
|
| 10449 |
|
| 10450 |
|
| 10451 |
|
| 10452 |
|
| 10453 |
|
| 10454 |
|
| 10455 |
|
| 10456 |
|
| 10457 |
|
| 10458 |
|
| 10459 |
|
| 10460 |
|
| 10461 |
|
| 10462 |
|
| 10463 |
|
| 10464 |
|
| 10465 |
|
| 10466 |
|
| 10467 |
|
| 10468 |
|
| 10469 |
|
| 10470 |
|
| 10471 |
|
| 10472 |
|
| 10473 |
|
| 10474 |
|
| 10475 |
|
| 10476 |
|
| 10477 |
|
| 10478 |
|
| 10479 |
|
| 10480 |
|
| 10481 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
| 10482 |
$as_echo_n "checking dynamic linker characteristics... " >&6; } |
| 10483 |
|
| 10484 |
if test "$GCC" = yes; then |
| 10485 |
case $host_os in |
| 10486 |
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
| 10487 |
*) lt_awk_arg="/^libraries:/" ;; |
| 10488 |
esac |
| 10489 |
case $host_os in |
| 10490 |
mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; |
| 10491 |
*) lt_sed_strip_eq="s,=/,/,g" ;; |
| 10492 |
esac |
| 10493 |
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` |
| 10494 |
case $lt_search_path_spec in |
| 10495 |
*\;*) |
| 10496 |
# if the path contains ";" then we assume it to be the separator |
| 10497 |
# otherwise default to the standard path separator (i.e. ":") - it is |
| 10498 |
# assumed that no part of a normal pathname contains ";" but that should |
| 10499 |
# okay in the real world where ";" in dirpaths is itself problematic. |
| 10500 |
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
| 10501 |
;; |
| 10502 |
*) |
| 10503 |
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` |
| 10504 |
;; |
| 10505 |
esac |
| 10506 |
# Ok, now we have the path, separated by spaces, we can step through it |
| 10507 |
# and add multilib dir if necessary. |
| 10508 |
lt_tmp_lt_search_path_spec= |
| 10509 |
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
| 10510 |
for lt_sys_path in $lt_search_path_spec; do |
| 10511 |
if test -d "$lt_sys_path/$lt_multi_os_dir"; then |
| 10512 |
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" |
| 10513 |
else |
| 10514 |
test -d "$lt_sys_path" && \ |
| 10515 |
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
| 10516 |
fi |
| 10517 |
done |
| 10518 |
lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
| 10519 |
BEGIN {RS=" "; FS="/|\n";} { |
| 10520 |
lt_foo=""; |
| 10521 |
lt_count=0; |
| 10522 |
for (lt_i = NF; lt_i > 0; lt_i--) { |
| 10523 |
if ($lt_i != "" && $lt_i != ".") { |
| 10524 |
if ($lt_i == "..") { |
| 10525 |
lt_count++; |
| 10526 |
} else { |
| 10527 |
if (lt_count == 0) { |
| 10528 |
lt_foo="/" $lt_i lt_foo; |
| 10529 |
} else { |
| 10530 |
lt_count--; |
| 10531 |
} |
| 10532 |
} |
| 10533 |
} |
| 10534 |
} |
| 10535 |
if (lt_foo != "") { lt_freq[lt_foo]++; } |
| 10536 |
if (lt_freq[lt_foo] == 1) { print lt_foo; } |
| 10537 |
}'` |
| 10538 |
# AWK program above erroneously prepends '/' to C:/dos/paths |
| 10539 |
# for these hosts. |
| 10540 |
case $host_os in |
| 10541 |
mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ |
| 10542 |
$SED 's,/\([A-Za-z]:\),\1,g'` ;; |
| 10543 |
esac |
| 10544 |
sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` |
| 10545 |
else |
| 10546 |
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 10547 |
fi |
| 10548 |
library_names_spec= |
| 10549 |
libname_spec='lib$name' |
| 10550 |
soname_spec= |
| 10551 |
shrext_cmds=".so" |
| 10552 |
postinstall_cmds= |
| 10553 |
postuninstall_cmds= |
| 10554 |
finish_cmds= |
| 10555 |
finish_eval= |
| 10556 |
shlibpath_var= |
| 10557 |
shlibpath_overrides_runpath=unknown |
| 10558 |
version_type=none |
| 10559 |
dynamic_linker="$host_os ld.so" |
| 10560 |
sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 10561 |
need_lib_prefix=unknown |
| 10562 |
hardcode_into_libs=no |
| 10563 |
|
| 10564 |
# when you set need_version to no, make sure it does not cause -set_version |
| 10565 |
# flags to be left without arguments |
| 10566 |
need_version=unknown |
| 10567 |
|
| 10568 |
case $host_os in |
| 10569 |
aix3*) |
| 10570 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 10571 |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 10572 |
shlibpath_var=LIBPATH |
| 10573 |
|
| 10574 |
# AIX 3 has no versioning support, so we append a major version to the name. |
| 10575 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 10576 |
;; |
| 10577 |
|
| 10578 |
aix[4-9]*) |
| 10579 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 10580 |
need_lib_prefix=no |
| 10581 |
need_version=no |
| 10582 |
hardcode_into_libs=yes |
| 10583 |
if test "$host_cpu" = ia64; then |
| 10584 |
# AIX 5 supports IA64 |
| 10585 |
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 10586 |
shlibpath_var=LD_LIBRARY_PATH |
| 10587 |
else |
| 10588 |
# With GCC up to 2.95.x, collect2 would create an import file |
| 10589 |
# for dependence libraries. The import file would start with |
| 10590 |
# the line `#! .'. This would cause the generated library to |
| 10591 |
# depend on `.', always an invalid library. This was fixed in |
| 10592 |
# development snapshots of GCC prior to 3.0. |
| 10593 |
case $host_os in |
| 10594 |
aix4 | aix4.[01] | aix4.[01].*) |
| 10595 |
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 10596 |
echo ' yes ' |
| 10597 |
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
| 10598 |
: |
| 10599 |
else |
| 10600 |
can_build_shared=no |
| 10601 |
fi |
| 10602 |
;; |
| 10603 |
esac |
| 10604 |
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 10605 |
# soname into executable. Probably we can add versioning support to |
| 10606 |
# collect2, so additional links can be useful in future. |
| 10607 |
if test "$aix_use_runtimelinking" = yes; then |
| 10608 |
# If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 10609 |
# instead of lib<name>.a to let people know that these are not |
| 10610 |
# typical AIX shared libraries. |
| 10611 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10612 |
else |
| 10613 |
# We preserve .a as extension for shared libraries through AIX4.2 |
| 10614 |
# and later when we are not doing run time linking. |
| 10615 |
library_names_spec='${libname}${release}.a $libname.a' |
| 10616 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 10617 |
fi |
| 10618 |
shlibpath_var=LIBPATH |
| 10619 |
fi |
| 10620 |
;; |
| 10621 |
|
| 10622 |
amigaos*) |
| 10623 |
case $host_cpu in |
| 10624 |
powerpc) |
| 10625 |
# Since July 2007 AmigaOS4 officially supports .so libraries. |
| 10626 |
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 10627 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10628 |
;; |
| 10629 |
m68k) |
| 10630 |
library_names_spec='$libname.ixlibrary $libname.a' |
| 10631 |
# Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 10632 |
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
| 10633 |
;; |
| 10634 |
esac |
| 10635 |
;; |
| 10636 |
|
| 10637 |
beos*) |
| 10638 |
library_names_spec='${libname}${shared_ext}' |
| 10639 |
dynamic_linker="$host_os ld.so" |
| 10640 |
shlibpath_var=LIBRARY_PATH |
| 10641 |
;; |
| 10642 |
|
| 10643 |
bsdi[45]*) |
| 10644 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 10645 |
need_version=no |
| 10646 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10647 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 10648 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 10649 |
shlibpath_var=LD_LIBRARY_PATH |
| 10650 |
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 10651 |
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 10652 |
# the default ld.so.conf also contains /usr/contrib/lib and |
| 10653 |
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 10654 |
# libtool to hard-code these into programs |
| 10655 |
;; |
| 10656 |
|
| 10657 |
cygwin* | mingw* | pw32* | cegcc*) |
| 10658 |
version_type=windows |
| 10659 |
shrext_cmds=".dll" |
| 10660 |
need_version=no |
| 10661 |
need_lib_prefix=no |
| 10662 |
|
| 10663 |
case $GCC,$cc_basename in |
| 10664 |
yes,*) |
| 10665 |
# gcc |
| 10666 |
library_names_spec='$libname.dll.a' |
| 10667 |
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 10668 |
postinstall_cmds='base_file=`basename \${file}`~ |
| 10669 |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
| 10670 |
dldir=$destdir/`dirname \$dlpath`~ |
| 10671 |
test -d \$dldir || mkdir -p \$dldir~ |
| 10672 |
$install_prog $dir/$dlname \$dldir/$dlname~ |
| 10673 |
chmod a+x \$dldir/$dlname~ |
| 10674 |
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 10675 |
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 10676 |
fi' |
| 10677 |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 10678 |
dlpath=$dir/\$dldll~ |
| 10679 |
$RM \$dlpath' |
| 10680 |
shlibpath_overrides_runpath=yes |
| 10681 |
|
| 10682 |
case $host_os in |
| 10683 |
cygwin*) |
| 10684 |
# Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 10685 |
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 10686 |
|
| 10687 |
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" |
| 10688 |
;; |
| 10689 |
mingw* | cegcc*) |
| 10690 |
# MinGW DLLs use traditional 'lib' prefix |
| 10691 |
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 10692 |
;; |
| 10693 |
pw32*) |
| 10694 |
# pw32 DLLs use 'pw' prefix rather than 'lib' |
| 10695 |
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 10696 |
;; |
| 10697 |
esac |
| 10698 |
dynamic_linker='Win32 ld.exe' |
| 10699 |
;; |
| 10700 |
|
| 10701 |
*,cl*) |
| 10702 |
# Native MSVC |
| 10703 |
libname_spec='$name' |
| 10704 |
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 10705 |
library_names_spec='${libname}.dll.lib' |
| 10706 |
|
| 10707 |
case $build_os in |
| 10708 |
mingw*) |
| 10709 |
sys_lib_search_path_spec= |
| 10710 |
lt_save_ifs=$IFS |
| 10711 |
IFS=';' |
| 10712 |
for lt_path in $LIB |
| 10713 |
do |
| 10714 |
IFS=$lt_save_ifs |
| 10715 |
# Let DOS variable expansion print the short 8.3 style file name. |
| 10716 |
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` |
| 10717 |
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" |
| 10718 |
done |
| 10719 |
IFS=$lt_save_ifs |
| 10720 |
# Convert to MSYS style. |
| 10721 |
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` |
| 10722 |
;; |
| 10723 |
cygwin*) |
| 10724 |
# Convert to unix form, then to dos form, then back to unix form |
| 10725 |
# but this time dos style (no spaces!) so that the unix form looks |
| 10726 |
# like /cygdrive/c/PROGRA~1:/cygdr... |
| 10727 |
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` |
| 10728 |
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` |
| 10729 |
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 10730 |
;; |
| 10731 |
*) |
| 10732 |
sys_lib_search_path_spec="$LIB" |
| 10733 |
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
| 10734 |
# It is most probably a Windows format PATH. |
| 10735 |
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 10736 |
else |
| 10737 |
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 10738 |
fi |
| 10739 |
# FIXME: find the short name or the path components, as spaces are |
| 10740 |
# common. (e.g. "Program Files" -> "PROGRA~1") |
| 10741 |
;; |
| 10742 |
esac |
| 10743 |
|
| 10744 |
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 10745 |
postinstall_cmds='base_file=`basename \${file}`~ |
| 10746 |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
| 10747 |
dldir=$destdir/`dirname \$dlpath`~ |
| 10748 |
test -d \$dldir || mkdir -p \$dldir~ |
| 10749 |
$install_prog $dir/$dlname \$dldir/$dlname' |
| 10750 |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 10751 |
dlpath=$dir/\$dldll~ |
| 10752 |
$RM \$dlpath' |
| 10753 |
shlibpath_overrides_runpath=yes |
| 10754 |
dynamic_linker='Win32 link.exe' |
| 10755 |
;; |
| 10756 |
|
| 10757 |
*) |
| 10758 |
# Assume MSVC wrapper |
| 10759 |
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 10760 |
dynamic_linker='Win32 ld.exe' |
| 10761 |
;; |
| 10762 |
esac |
| 10763 |
# FIXME: first we should search . and the directory the executable is in |
| 10764 |
shlibpath_var=PATH |
| 10765 |
;; |
| 10766 |
|
| 10767 |
darwin* | rhapsody*) |
| 10768 |
dynamic_linker="$host_os dyld" |
| 10769 |
version_type=darwin |
| 10770 |
need_lib_prefix=no |
| 10771 |
need_version=no |
| 10772 |
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 10773 |
soname_spec='${libname}${release}${major}$shared_ext' |
| 10774 |
shlibpath_overrides_runpath=yes |
| 10775 |
shlibpath_var=DYLD_LIBRARY_PATH |
| 10776 |
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 10777 |
|
| 10778 |
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
| 10779 |
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 10780 |
;; |
| 10781 |
|
| 10782 |
dgux*) |
| 10783 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 10784 |
need_lib_prefix=no |
| 10785 |
need_version=no |
| 10786 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 10787 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 10788 |
shlibpath_var=LD_LIBRARY_PATH |
| 10789 |
;; |
| 10790 |
|
| 10791 |
freebsd* | dragonfly*) |
| 10792 |
# DragonFly does not have aout. When/if they implement a new |
| 10793 |
# versioning mechanism, adjust this. |
| 10794 |
if test -x /usr/bin/objformat; then |
| 10795 |
objformat=`/usr/bin/objformat` |
| 10796 |
else |
| 10797 |
case $host_os in |
| 10798 |
freebsd[23].*) objformat=aout ;; |
| 10799 |
*) objformat=elf ;; |
| 10800 |
esac |
| 10801 |
fi |
| 10802 |
version_type=freebsd-$objformat |
| 10803 |
case $version_type in |
| 10804 |
freebsd-elf*) |
| 10805 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 10806 |
need_version=no |
| 10807 |
need_lib_prefix=no |
| 10808 |
;; |
| 10809 |
freebsd-*) |
| 10810 |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 10811 |
need_version=yes |
| 10812 |
;; |
| 10813 |
esac |
| 10814 |
shlibpath_var=LD_LIBRARY_PATH |
| 10815 |
case $host_os in |
| 10816 |
freebsd2.*) |
| 10817 |
shlibpath_overrides_runpath=yes |
| 10818 |
;; |
| 10819 |
freebsd3.[01]* | freebsdelf3.[01]*) |
| 10820 |
shlibpath_overrides_runpath=yes |
| 10821 |
hardcode_into_libs=yes |
| 10822 |
;; |
| 10823 |
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 10824 |
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
| 10825 |
shlibpath_overrides_runpath=no |
| 10826 |
hardcode_into_libs=yes |
| 10827 |
;; |
| 10828 |
*) # from 4.6 on, and DragonFly |
| 10829 |
shlibpath_overrides_runpath=yes |
| 10830 |
hardcode_into_libs=yes |
| 10831 |
;; |
| 10832 |
esac |
| 10833 |
;; |
| 10834 |
|
| 10835 |
gnu*) |
| 10836 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 10837 |
need_lib_prefix=no |
| 10838 |
need_version=no |
| 10839 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 10840 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 10841 |
shlibpath_var=LD_LIBRARY_PATH |
| 10842 |
shlibpath_overrides_runpath=no |
| 10843 |
hardcode_into_libs=yes |
| 10844 |
;; |
| 10845 |
|
| 10846 |
haiku*) |
| 10847 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 10848 |
need_lib_prefix=no |
| 10849 |
need_version=no |
| 10850 |
dynamic_linker="$host_os runtime_loader" |
| 10851 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 10852 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 10853 |
shlibpath_var=LIBRARY_PATH |
| 10854 |
shlibpath_overrides_runpath=yes |
| 10855 |
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
| 10856 |
hardcode_into_libs=yes |
| 10857 |
;; |
| 10858 |
|
| 10859 |
hpux9* | hpux10* | hpux11*) |
| 10860 |
# Give a soname corresponding to the major version so that dld.sl refuses to |
| 10861 |
# link against other versions. |
| 10862 |
version_type=sunos |
| 10863 |
need_lib_prefix=no |
| 10864 |
need_version=no |
| 10865 |
case $host_cpu in |
| 10866 |
ia64*) |
| 10867 |
shrext_cmds='.so' |
| 10868 |
hardcode_into_libs=yes |
| 10869 |
dynamic_linker="$host_os dld.so" |
| 10870 |
shlibpath_var=LD_LIBRARY_PATH |
| 10871 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 10872 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10873 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 10874 |
if test "X$HPUX_IA64_MODE" = X32; then |
| 10875 |
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 10876 |
else |
| 10877 |
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 10878 |
fi |
| 10879 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 10880 |
;; |
| 10881 |
hppa*64*) |
| 10882 |
shrext_cmds='.sl' |
| 10883 |
hardcode_into_libs=yes |
| 10884 |
dynamic_linker="$host_os dld.sl" |
| 10885 |
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 10886 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 10887 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10888 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 10889 |
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 10890 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 10891 |
;; |
| 10892 |
*) |
| 10893 |
shrext_cmds='.sl' |
| 10894 |
dynamic_linker="$host_os dld.sl" |
| 10895 |
shlibpath_var=SHLIB_PATH |
| 10896 |
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 10897 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10898 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 10899 |
;; |
| 10900 |
esac |
| 10901 |
# HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
| 10902 |
postinstall_cmds='chmod 555 $lib' |
| 10903 |
# or fails outright, so override atomically: |
| 10904 |
install_override_mode=555 |
| 10905 |
;; |
| 10906 |
|
| 10907 |
interix[3-9]*) |
| 10908 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 10909 |
need_lib_prefix=no |
| 10910 |
need_version=no |
| 10911 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 10912 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 10913 |
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 10914 |
shlibpath_var=LD_LIBRARY_PATH |
| 10915 |
shlibpath_overrides_runpath=no |
| 10916 |
hardcode_into_libs=yes |
| 10917 |
;; |
| 10918 |
|
| 10919 |
irix5* | irix6* | nonstopux*) |
| 10920 |
case $host_os in |
| 10921 |
nonstopux*) version_type=nonstopux ;; |
| 10922 |
*) |
| 10923 |
if test "$lt_cv_prog_gnu_ld" = yes; then |
| 10924 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 10925 |
else |
| 10926 |
version_type=irix |
| 10927 |
fi ;; |
| 10928 |
esac |
| 10929 |
need_lib_prefix=no |
| 10930 |
need_version=no |
| 10931 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 10932 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 10933 |
case $host_os in |
| 10934 |
irix5* | nonstopux*) |
| 10935 |
libsuff= shlibsuff= |
| 10936 |
;; |
| 10937 |
*) |
| 10938 |
case $LD in # libtool.m4 will add one of these switches to LD |
| 10939 |
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 10940 |
libsuff= shlibsuff= libmagic=32-bit;; |
| 10941 |
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 10942 |
libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 10943 |
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 10944 |
libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 10945 |
*) libsuff= shlibsuff= libmagic=never-match;; |
| 10946 |
esac |
| 10947 |
;; |
| 10948 |
esac |
| 10949 |
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 10950 |
shlibpath_overrides_runpath=no |
| 10951 |
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 10952 |
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 10953 |
hardcode_into_libs=yes |
| 10954 |
;; |
| 10955 |
|
| 10956 |
# No shared lib support for Linux oldld, aout, or coff. |
| 10957 |
linux*oldld* | linux*aout* | linux*coff*) |
| 10958 |
dynamic_linker=no |
| 10959 |
;; |
| 10960 |
|
| 10961 |
# This must be glibc/ELF. |
| 10962 |
linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| 10963 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 10964 |
need_lib_prefix=no |
| 10965 |
need_version=no |
| 10966 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10967 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 10968 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 10969 |
shlibpath_var=LD_LIBRARY_PATH |
| 10970 |
shlibpath_overrides_runpath=no |
| 10971 |
|
| 10972 |
# Some binutils ld are patched to set DT_RUNPATH |
| 10973 |
if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
| 10974 |
$as_echo_n "(cached) " >&6 |
| 10975 |
else |
| 10976 |
lt_cv_shlibpath_overrides_runpath=no |
| 10977 |
save_LDFLAGS=$LDFLAGS |
| 10978 |
save_libdir=$libdir |
| 10979 |
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ |
| 10980 |
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" |
| 10981 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10982 |
/* end confdefs.h. */ |
| 10983 |
|
| 10984 |
int |
| 10985 |
main () |
| 10986 |
{ |
| 10987 |
|
| 10988 |
; |
| 10989 |
return 0; |
| 10990 |
} |
| 10991 |
_ACEOF |
| 10992 |
if ac_fn_c_try_link "$LINENO"; then : |
| 10993 |
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : |
| 10994 |
lt_cv_shlibpath_overrides_runpath=yes |
| 10995 |
fi |
| 10996 |
fi |
| 10997 |
rm -f core conftest.err conftest.$ac_objext \ |
| 10998 |
conftest$ac_exeext conftest.$ac_ext |
| 10999 |
LDFLAGS=$save_LDFLAGS |
| 11000 |
libdir=$save_libdir |
| 11001 |
|
| 11002 |
fi |
| 11003 |
|
| 11004 |
shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
| 11005 |
|
| 11006 |
# This implies no fast_install, which is unacceptable. |
| 11007 |
# Some rework will be needed to allow for fast_install |
| 11008 |
# before this can be enabled. |
| 11009 |
hardcode_into_libs=yes |
| 11010 |
|
| 11011 |
# Append ld.so.conf contents to the search path |
| 11012 |
if test -f /etc/ld.so.conf; then |
| 11013 |
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` |
| 11014 |
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 11015 |
fi |
| 11016 |
|
| 11017 |
# We used to test for /lib/ld.so.1 and disable shared libraries on |
| 11018 |
# powerpc, because MkLinux only supported shared libraries with the |
| 11019 |
# GNU dynamic linker. Since this was broken with cross compilers, |
| 11020 |
# most powerpc-linux boxes support dynamic linking these days and |
| 11021 |
# people can always --disable-shared, the test was removed, and we |
| 11022 |
# assume the GNU/Linux dynamic linker is in use. |
| 11023 |
dynamic_linker='GNU/Linux ld.so' |
| 11024 |
;; |
| 11025 |
|
| 11026 |
netbsd*) |
| 11027 |
version_type=sunos |
| 11028 |
need_lib_prefix=no |
| 11029 |
need_version=no |
| 11030 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 11031 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 11032 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 11033 |
dynamic_linker='NetBSD (a.out) ld.so' |
| 11034 |
else |
| 11035 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 11036 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 11037 |
dynamic_linker='NetBSD ld.elf_so' |
| 11038 |
fi |
| 11039 |
shlibpath_var=LD_LIBRARY_PATH |
| 11040 |
shlibpath_overrides_runpath=yes |
| 11041 |
hardcode_into_libs=yes |
| 11042 |
;; |
| 11043 |
|
| 11044 |
newsos6) |
| 11045 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 11046 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11047 |
shlibpath_var=LD_LIBRARY_PATH |
| 11048 |
shlibpath_overrides_runpath=yes |
| 11049 |
;; |
| 11050 |
|
| 11051 |
*nto* | *qnx*) |
| 11052 |
version_type=qnx |
| 11053 |
need_lib_prefix=no |
| 11054 |
need_version=no |
| 11055 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11056 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 11057 |
shlibpath_var=LD_LIBRARY_PATH |
| 11058 |
shlibpath_overrides_runpath=no |
| 11059 |
hardcode_into_libs=yes |
| 11060 |
dynamic_linker='ldqnx.so' |
| 11061 |
;; |
| 11062 |
|
| 11063 |
openbsd*) |
| 11064 |
version_type=sunos |
| 11065 |
sys_lib_dlsearch_path_spec="/usr/lib" |
| 11066 |
need_lib_prefix=no |
| 11067 |
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 11068 |
case $host_os in |
| 11069 |
openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 11070 |
*) need_version=no ;; |
| 11071 |
esac |
| 11072 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 11073 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 11074 |
shlibpath_var=LD_LIBRARY_PATH |
| 11075 |
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 11076 |
case $host_os in |
| 11077 |
openbsd2.[89] | openbsd2.[89].*) |
| 11078 |
shlibpath_overrides_runpath=no |
| 11079 |
;; |
| 11080 |
*) |
| 11081 |
shlibpath_overrides_runpath=yes |
| 11082 |
;; |
| 11083 |
esac |
| 11084 |
else |
| 11085 |
shlibpath_overrides_runpath=yes |
| 11086 |
fi |
| 11087 |
;; |
| 11088 |
|
| 11089 |
os2*) |
| 11090 |
libname_spec='$name' |
| 11091 |
shrext_cmds=".dll" |
| 11092 |
need_lib_prefix=no |
| 11093 |
library_names_spec='$libname${shared_ext} $libname.a' |
| 11094 |
dynamic_linker='OS/2 ld.exe' |
| 11095 |
shlibpath_var=LIBPATH |
| 11096 |
;; |
| 11097 |
|
| 11098 |
osf3* | osf4* | osf5*) |
| 11099 |
version_type=osf |
| 11100 |
need_lib_prefix=no |
| 11101 |
need_version=no |
| 11102 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 11103 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11104 |
shlibpath_var=LD_LIBRARY_PATH |
| 11105 |
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 11106 |
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 11107 |
;; |
| 11108 |
|
| 11109 |
rdos*) |
| 11110 |
dynamic_linker=no |
| 11111 |
;; |
| 11112 |
|
| 11113 |
solaris*) |
| 11114 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 11115 |
need_lib_prefix=no |
| 11116 |
need_version=no |
| 11117 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11118 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 11119 |
shlibpath_var=LD_LIBRARY_PATH |
| 11120 |
shlibpath_overrides_runpath=yes |
| 11121 |
hardcode_into_libs=yes |
| 11122 |
# ldd complains unless libraries are executable |
| 11123 |
postinstall_cmds='chmod +x $lib' |
| 11124 |
;; |
| 11125 |
|
| 11126 |
sunos4*) |
| 11127 |
version_type=sunos |
| 11128 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 11129 |
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 11130 |
shlibpath_var=LD_LIBRARY_PATH |
| 11131 |
shlibpath_overrides_runpath=yes |
| 11132 |
if test "$with_gnu_ld" = yes; then |
| 11133 |
need_lib_prefix=no |
| 11134 |
fi |
| 11135 |
need_version=yes |
| 11136 |
;; |
| 11137 |
|
| 11138 |
sysv4 | sysv4.3*) |
| 11139 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 11140 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11141 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 11142 |
shlibpath_var=LD_LIBRARY_PATH |
| 11143 |
case $host_vendor in |
| 11144 |
sni) |
| 11145 |
shlibpath_overrides_runpath=no |
| 11146 |
need_lib_prefix=no |
| 11147 |
runpath_var=LD_RUN_PATH |
| 11148 |
;; |
| 11149 |
siemens) |
| 11150 |
need_lib_prefix=no |
| 11151 |
;; |
| 11152 |
motorola) |
| 11153 |
need_lib_prefix=no |
| 11154 |
need_version=no |
| 11155 |
shlibpath_overrides_runpath=no |
| 11156 |
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 11157 |
;; |
| 11158 |
esac |
| 11159 |
;; |
| 11160 |
|
| 11161 |
sysv4*MP*) |
| 11162 |
if test -d /usr/nec ;then |
| 11163 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 11164 |
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 11165 |
soname_spec='$libname${shared_ext}.$major' |
| 11166 |
shlibpath_var=LD_LIBRARY_PATH |
| 11167 |
fi |
| 11168 |
;; |
| 11169 |
|
| 11170 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 11171 |
version_type=freebsd-elf |
| 11172 |
need_lib_prefix=no |
| 11173 |
need_version=no |
| 11174 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 11175 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 11176 |
shlibpath_var=LD_LIBRARY_PATH |
| 11177 |
shlibpath_overrides_runpath=yes |
| 11178 |
hardcode_into_libs=yes |
| 11179 |
if test "$with_gnu_ld" = yes; then |
| 11180 |
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 11181 |
else |
| 11182 |
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 11183 |
case $host_os in |
| 11184 |
sco3.2v5*) |
| 11185 |
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 11186 |
;; |
| 11187 |
esac |
| 11188 |
fi |
| 11189 |
sys_lib_dlsearch_path_spec='/usr/lib' |
| 11190 |
;; |
| 11191 |
|
| 11192 |
tpf*) |
| 11193 |
# TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| 11194 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 11195 |
need_lib_prefix=no |
| 11196 |
need_version=no |
| 11197 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11198 |
shlibpath_var=LD_LIBRARY_PATH |
| 11199 |
shlibpath_overrides_runpath=no |
| 11200 |
hardcode_into_libs=yes |
| 11201 |
;; |
| 11202 |
|
| 11203 |
uts4*) |
| 11204 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 11205 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11206 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 11207 |
shlibpath_var=LD_LIBRARY_PATH |
| 11208 |
;; |
| 11209 |
|
| 11210 |
*) |
| 11211 |
dynamic_linker=no |
| 11212 |
;; |
| 11213 |
esac |
| 11214 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
| 11215 |
$as_echo "$dynamic_linker" >&6; } |
| 11216 |
test "$dynamic_linker" = no && can_build_shared=no |
| 11217 |
|
| 11218 |
variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 11219 |
if test "$GCC" = yes; then |
| 11220 |
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 11221 |
fi |
| 11222 |
|
| 11223 |
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
| 11224 |
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
| 11225 |
fi |
| 11226 |
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
| 11227 |
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
| 11228 |
fi |
| 11229 |
|
| 11230 |
|
| 11231 |
|
| 11232 |
|
| 11233 |
|
| 11234 |
|
| 11235 |
|
| 11236 |
|
| 11237 |
|
| 11238 |
|
| 11239 |
|
| 11240 |
|
| 11241 |
|
| 11242 |
|
| 11243 |
|
| 11244 |
|
| 11245 |
|
| 11246 |
|
| 11247 |
|
| 11248 |
|
| 11249 |
|
| 11250 |
|
| 11251 |
|
| 11252 |
|
| 11253 |
|
| 11254 |
|
| 11255 |
|
| 11256 |
|
| 11257 |
|
| 11258 |
|
| 11259 |
|
| 11260 |
|
| 11261 |
|
| 11262 |
|
| 11263 |
|
| 11264 |
|
| 11265 |
|
| 11266 |
|
| 11267 |
|
| 11268 |
|
| 11269 |
|
| 11270 |
|
| 11271 |
|
| 11272 |
|
| 11273 |
|
| 11274 |
|
| 11275 |
|
| 11276 |
|
| 11277 |
|
| 11278 |
|
| 11279 |
|
| 11280 |
|
| 11281 |
|
| 11282 |
|
| 11283 |
|
| 11284 |
|
| 11285 |
|
| 11286 |
|
| 11287 |
|
| 11288 |
|
| 11289 |
|
| 11290 |
|
| 11291 |
|
| 11292 |
|
| 11293 |
|
| 11294 |
|
| 11295 |
|
| 11296 |
|
| 11297 |
|
| 11298 |
|
| 11299 |
|
| 11300 |
|
| 11301 |
|
| 11302 |
|
| 11303 |
|
| 11304 |
|
| 11305 |
|
| 11306 |
|
| 11307 |
|
| 11308 |
|
| 11309 |
|
| 11310 |
|
| 11311 |
|
| 11312 |
|
| 11313 |
|
| 11314 |
|
| 11315 |
|
| 11316 |
|
| 11317 |
|
| 11318 |
|
| 11319 |
|
| 11320 |
|
| 11321 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
| 11322 |
$as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
| 11323 |
hardcode_action= |
| 11324 |
if test -n "$hardcode_libdir_flag_spec" || |
| 11325 |
test -n "$runpath_var" || |
| 11326 |
test "X$hardcode_automatic" = "Xyes" ; then |
| 11327 |
|
| 11328 |
# We can hardcode non-existent directories. |
| 11329 |
if test "$hardcode_direct" != no && |
| 11330 |
# If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 11331 |
# have to relink, otherwise we might link with an installed library |
| 11332 |
# when we should be linking with a yet-to-be-installed one |
| 11333 |
## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && |
| 11334 |
test "$hardcode_minus_L" != no; then |
| 11335 |
# Linking always hardcodes the temporary library directory. |
| 11336 |
hardcode_action=relink |
| 11337 |
else |
| 11338 |
# We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 11339 |
hardcode_action=immediate |
| 11340 |
fi |
| 11341 |
else |
| 11342 |
# We cannot hardcode anything, or else we can only hardcode existing |
| 11343 |
# directories. |
| 11344 |
hardcode_action=unsupported |
| 11345 |
fi |
| 11346 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
| 11347 |
$as_echo "$hardcode_action" >&6; } |
| 11348 |
|
| 11349 |
if test "$hardcode_action" = relink || |
| 11350 |
test "$inherit_rpath" = yes; then |
| 11351 |
# Fast installation is not supported |
| 11352 |
enable_fast_install=no |
| 11353 |
elif test "$shlibpath_overrides_runpath" = yes || |
| 11354 |
test "$enable_shared" = no; then |
| 11355 |
# Fast installation is not necessary |
| 11356 |
enable_fast_install=needless |
| 11357 |
fi |
| 11358 |
|
| 11359 |
|
| 11360 |
|
| 11361 |
|
| 11362 |
|
| 11363 |
|
| 11364 |
if test "x$enable_dlopen" != xyes; then |
| 11365 |
enable_dlopen=unknown |
| 11366 |
enable_dlopen_self=unknown |
| 11367 |
enable_dlopen_self_static=unknown |
| 11368 |
else |
| 11369 |
lt_cv_dlopen=no |
| 11370 |
lt_cv_dlopen_libs= |
| 11371 |
|
| 11372 |
case $host_os in |
| 11373 |
beos*) |
| 11374 |
lt_cv_dlopen="load_add_on" |
| 11375 |
lt_cv_dlopen_libs= |
| 11376 |
lt_cv_dlopen_self=yes |
| 11377 |
;; |
| 11378 |
|
| 11379 |
mingw* | pw32* | cegcc*) |
| 11380 |
lt_cv_dlopen="LoadLibrary" |
| 11381 |
lt_cv_dlopen_libs= |
| 11382 |
;; |
| 11383 |
|
| 11384 |
cygwin*) |
| 11385 |
lt_cv_dlopen="dlopen" |
| 11386 |
lt_cv_dlopen_libs= |
| 11387 |
;; |
| 11388 |
|
| 11389 |
darwin*) |
| 11390 |
# if libdl is installed we need to link against it |
| 11391 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 11392 |
$as_echo_n "checking for dlopen in -ldl... " >&6; } |
| 11393 |
if ${ac_cv_lib_dl_dlopen+:} false; then : |
| 11394 |
$as_echo_n "(cached) " >&6 |
| 11395 |
else |
| 11396 |
ac_check_lib_save_LIBS=$LIBS |
| 11397 |
LIBS="-ldl $LIBS" |
| 11398 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11399 |
/* end confdefs.h. */ |
| 11400 |
|
| 11401 |
/* Override any GCC internal prototype to avoid an error. |
| 11402 |
Use char because int might match the return type of a GCC |
| 11403 |
builtin and then its argument prototype would still apply. */ |
| 11404 |
#ifdef __cplusplus |
| 11405 |
extern "C" |
| 11406 |
#endif |
| 11407 |
char dlopen (); |
| 11408 |
int |
| 11409 |
main () |
| 11410 |
{ |
| 11411 |
return dlopen (); |
| 11412 |
; |
| 11413 |
return 0; |
| 11414 |
} |
| 11415 |
_ACEOF |
| 11416 |
if ac_fn_c_try_link "$LINENO"; then : |
| 11417 |
ac_cv_lib_dl_dlopen=yes |
| 11418 |
else |
| 11419 |
ac_cv_lib_dl_dlopen=no |
| 11420 |
fi |
| 11421 |
rm -f core conftest.err conftest.$ac_objext \ |
| 11422 |
conftest$ac_exeext conftest.$ac_ext |
| 11423 |
LIBS=$ac_check_lib_save_LIBS |
| 11424 |
fi |
| 11425 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 11426 |
$as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| 11427 |
if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
| 11428 |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 11429 |
else |
| 11430 |
|
| 11431 |
lt_cv_dlopen="dyld" |
| 11432 |
lt_cv_dlopen_libs= |
| 11433 |
lt_cv_dlopen_self=yes |
| 11434 |
|
| 11435 |
fi |
| 11436 |
|
| 11437 |
;; |
| 11438 |
|
| 11439 |
*) |
| 11440 |
ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
| 11441 |
if test "x$ac_cv_func_shl_load" = xyes; then : |
| 11442 |
lt_cv_dlopen="shl_load" |
| 11443 |
else |
| 11444 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
| 11445 |
$as_echo_n "checking for shl_load in -ldld... " >&6; } |
| 11446 |
if ${ac_cv_lib_dld_shl_load+:} false; then : |
| 11447 |
$as_echo_n "(cached) " >&6 |
| 11448 |
else |
| 11449 |
ac_check_lib_save_LIBS=$LIBS |
| 11450 |
LIBS="-ldld $LIBS" |
| 11451 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11452 |
/* end confdefs.h. */ |
| 11453 |
|
| 11454 |
/* Override any GCC internal prototype to avoid an error. |
| 11455 |
Use char because int might match the return type of a GCC |
| 11456 |
builtin and then its argument prototype would still apply. */ |
| 11457 |
#ifdef __cplusplus |
| 11458 |
extern "C" |
| 11459 |
#endif |
| 11460 |
char shl_load (); |
| 11461 |
int |
| 11462 |
main () |
| 11463 |
{ |
| 11464 |
return shl_load (); |
| 11465 |
; |
| 11466 |
return 0; |
| 11467 |
} |
| 11468 |
_ACEOF |
| 11469 |
if ac_fn_c_try_link "$LINENO"; then : |
| 11470 |
ac_cv_lib_dld_shl_load=yes |
| 11471 |
else |
| 11472 |
ac_cv_lib_dld_shl_load=no |
| 11473 |
fi |
| 11474 |
rm -f core conftest.err conftest.$ac_objext \ |
| 11475 |
conftest$ac_exeext conftest.$ac_ext |
| 11476 |
LIBS=$ac_check_lib_save_LIBS |
| 11477 |
fi |
| 11478 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
| 11479 |
$as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
| 11480 |
if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
| 11481 |
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
| 11482 |
else |
| 11483 |
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
| 11484 |
if test "x$ac_cv_func_dlopen" = xyes; then : |
| 11485 |
lt_cv_dlopen="dlopen" |
| 11486 |
else |
| 11487 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 11488 |
$as_echo_n "checking for dlopen in -ldl... " >&6; } |
| 11489 |
if ${ac_cv_lib_dl_dlopen+:} false; then : |
| 11490 |
$as_echo_n "(cached) " >&6 |
| 11491 |
else |
| 11492 |
ac_check_lib_save_LIBS=$LIBS |
| 11493 |
LIBS="-ldl $LIBS" |
| 11494 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11495 |
/* end confdefs.h. */ |
| 11496 |
|
| 11497 |
/* Override any GCC internal prototype to avoid an error. |
| 11498 |
Use char because int might match the return type of a GCC |
| 11499 |
builtin and then its argument prototype would still apply. */ |
| 11500 |
#ifdef __cplusplus |
| 11501 |
extern "C" |
| 11502 |
#endif |
| 11503 |
char dlopen (); |
| 11504 |
int |
| 11505 |
main () |
| 11506 |
{ |
| 11507 |
return dlopen (); |
| 11508 |
; |
| 11509 |
return 0; |
| 11510 |
} |
| 11511 |
_ACEOF |
| 11512 |
if ac_fn_c_try_link "$LINENO"; then : |
| 11513 |
ac_cv_lib_dl_dlopen=yes |
| 11514 |
else |
| 11515 |
ac_cv_lib_dl_dlopen=no |
| 11516 |
fi |
| 11517 |
rm -f core conftest.err conftest.$ac_objext \ |
| 11518 |
conftest$ac_exeext conftest.$ac_ext |
| 11519 |
LIBS=$ac_check_lib_save_LIBS |
| 11520 |
fi |
| 11521 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 11522 |
$as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| 11523 |
if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
| 11524 |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 11525 |
else |
| 11526 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
| 11527 |
$as_echo_n "checking for dlopen in -lsvld... " >&6; } |
| 11528 |
if ${ac_cv_lib_svld_dlopen+:} false; then : |
| 11529 |
$as_echo_n "(cached) " >&6 |
| 11530 |
else |
| 11531 |
ac_check_lib_save_LIBS=$LIBS |
| 11532 |
LIBS="-lsvld $LIBS" |
| 11533 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11534 |
/* end confdefs.h. */ |
| 11535 |
|
| 11536 |
/* Override any GCC internal prototype to avoid an error. |
| 11537 |
Use char because int might match the return type of a GCC |
| 11538 |
builtin and then its argument prototype would still apply. */ |
| 11539 |
#ifdef __cplusplus |
| 11540 |
extern "C" |
| 11541 |
#endif |
| 11542 |
char dlopen (); |
| 11543 |
int |
| 11544 |
main () |
| 11545 |
{ |
| 11546 |
return dlopen (); |
| 11547 |
; |
| 11548 |
return 0; |
| 11549 |
} |
| 11550 |
_ACEOF |
| 11551 |
if ac_fn_c_try_link "$LINENO"; then : |
| 11552 |
ac_cv_lib_svld_dlopen=yes |
| 11553 |
else |
| 11554 |
ac_cv_lib_svld_dlopen=no |
| 11555 |
fi |
| 11556 |
rm -f core conftest.err conftest.$ac_objext \ |
| 11557 |
conftest$ac_exeext conftest.$ac_ext |
| 11558 |
LIBS=$ac_check_lib_save_LIBS |
| 11559 |
fi |
| 11560 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
| 11561 |
$as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
| 11562 |
if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
| 11563 |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 11564 |
else |
| 11565 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
| 11566 |
$as_echo_n "checking for dld_link in -ldld... " >&6; } |
| 11567 |
if ${ac_cv_lib_dld_dld_link+:} false; then : |
| 11568 |
$as_echo_n "(cached) " >&6 |
| 11569 |
else |
| 11570 |
ac_check_lib_save_LIBS=$LIBS |
| 11571 |
LIBS="-ldld $LIBS" |
| 11572 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11573 |
/* end confdefs.h. */ |
| 11574 |
|
| 11575 |
/* Override any GCC internal prototype to avoid an error. |
| 11576 |
Use char because int might match the return type of a GCC |
| 11577 |
builtin and then its argument prototype would still apply. */ |
| 11578 |
#ifdef __cplusplus |
| 11579 |
extern "C" |
| 11580 |
#endif |
| 11581 |
char dld_link (); |
| 11582 |
int |
| 11583 |
main () |
| 11584 |
{ |
| 11585 |
return dld_link (); |
| 11586 |
; |
| 11587 |
return 0; |
| 11588 |
} |
| 11589 |
_ACEOF |
| 11590 |
if ac_fn_c_try_link "$LINENO"; then : |
| 11591 |
ac_cv_lib_dld_dld_link=yes |
| 11592 |
else |
| 11593 |
ac_cv_lib_dld_dld_link=no |
| 11594 |
fi |
| 11595 |
rm -f core conftest.err conftest.$ac_objext \ |
| 11596 |
conftest$ac_exeext conftest.$ac_ext |
| 11597 |
LIBS=$ac_check_lib_save_LIBS |
| 11598 |
fi |
| 11599 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
| 11600 |
$as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
| 11601 |
if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
| 11602 |
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
| 11603 |
fi |
| 11604 |
|
| 11605 |
|
| 11606 |
fi |
| 11607 |
|
| 11608 |
|
| 11609 |
fi |
| 11610 |
|
| 11611 |
|
| 11612 |
fi |
| 11613 |
|
| 11614 |
|
| 11615 |
fi |
| 11616 |
|
| 11617 |
|
| 11618 |
fi |
| 11619 |
|
| 11620 |
;; |
| 11621 |
esac |
| 11622 |
|
| 11623 |
if test "x$lt_cv_dlopen" != xno; then |
| 11624 |
enable_dlopen=yes |
| 11625 |
else |
| 11626 |
enable_dlopen=no |
| 11627 |
fi |
| 11628 |
|
| 11629 |
case $lt_cv_dlopen in |
| 11630 |
dlopen) |
| 11631 |
save_CPPFLAGS="$CPPFLAGS" |
| 11632 |
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 11633 |
|
| 11634 |
save_LDFLAGS="$LDFLAGS" |
| 11635 |
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 11636 |
|
| 11637 |
save_LIBS="$LIBS" |
| 11638 |
LIBS="$lt_cv_dlopen_libs $LIBS" |
| 11639 |
|
| 11640 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
| 11641 |
$as_echo_n "checking whether a program can dlopen itself... " >&6; } |
| 11642 |
if ${lt_cv_dlopen_self+:} false; then : |
| 11643 |
$as_echo_n "(cached) " >&6 |
| 11644 |
else |
| 11645 |
if test "$cross_compiling" = yes; then : |
| 11646 |
lt_cv_dlopen_self=cross |
| 11647 |
else |
| 11648 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 11649 |
lt_status=$lt_dlunknown |
| 11650 |
cat > conftest.$ac_ext <<_LT_EOF |
| 11651 |
#line $LINENO "configure" |
| 11652 |
#include "confdefs.h" |
| 11653 |
|
| 11654 |
#if HAVE_DLFCN_H |
| 11655 |
#include <dlfcn.h> |
| 11656 |
#endif |
| 11657 |
|
| 11658 |
#include <stdio.h> |
| 11659 |
|
| 11660 |
#ifdef RTLD_GLOBAL |
| 11661 |
# define LT_DLGLOBAL RTLD_GLOBAL |
| 11662 |
#else |
| 11663 |
# ifdef DL_GLOBAL |
| 11664 |
# define LT_DLGLOBAL DL_GLOBAL |
| 11665 |
# else |
| 11666 |
# define LT_DLGLOBAL 0 |
| 11667 |
# endif |
| 11668 |
#endif |
| 11669 |
|
| 11670 |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 11671 |
find out it does not work in some platform. */ |
| 11672 |
#ifndef LT_DLLAZY_OR_NOW |
| 11673 |
# ifdef RTLD_LAZY |
| 11674 |
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 11675 |
# else |
| 11676 |
# ifdef DL_LAZY |
| 11677 |
# define LT_DLLAZY_OR_NOW DL_LAZY |
| 11678 |
# else |
| 11679 |
# ifdef RTLD_NOW |
| 11680 |
# define LT_DLLAZY_OR_NOW RTLD_NOW |
| 11681 |
# else |
| 11682 |
# ifdef DL_NOW |
| 11683 |
# define LT_DLLAZY_OR_NOW DL_NOW |
| 11684 |
# else |
| 11685 |
# define LT_DLLAZY_OR_NOW 0 |
| 11686 |
# endif |
| 11687 |
# endif |
| 11688 |
# endif |
| 11689 |
# endif |
| 11690 |
#endif |
| 11691 |
|
| 11692 |
/* When -fvisbility=hidden is used, assume the code has been annotated |
| 11693 |
correspondingly for the symbols needed. */ |
| 11694 |
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
| 11695 |
int fnord () __attribute__((visibility("default"))); |
| 11696 |
#endif |
| 11697 |
|
| 11698 |
int fnord () { return 42; } |
| 11699 |
int main () |
| 11700 |
{ |
| 11701 |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 11702 |
int status = $lt_dlunknown; |
| 11703 |
|
| 11704 |
if (self) |
| 11705 |
{ |
| 11706 |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 11707 |
else |
| 11708 |
{ |
| 11709 |
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 11710 |
else puts (dlerror ()); |
| 11711 |
} |
| 11712 |
/* dlclose (self); */ |
| 11713 |
} |
| 11714 |
else |
| 11715 |
puts (dlerror ()); |
| 11716 |
|
| 11717 |
return status; |
| 11718 |
} |
| 11719 |
_LT_EOF |
| 11720 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 11721 |
(eval $ac_link) 2>&5 |
| 11722 |
ac_status=$? |
| 11723 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 11724 |
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 11725 |
(./conftest; exit; ) >&5 2>/dev/null |
| 11726 |
lt_status=$? |
| 11727 |
case x$lt_status in |
| 11728 |
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 11729 |
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 11730 |
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
| 11731 |
esac |
| 11732 |
else : |
| 11733 |
# compilation failed |
| 11734 |
lt_cv_dlopen_self=no |
| 11735 |
fi |
| 11736 |
fi |
| 11737 |
rm -fr conftest* |
| 11738 |
|
| 11739 |
|
| 11740 |
fi |
| 11741 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
| 11742 |
$as_echo "$lt_cv_dlopen_self" >&6; } |
| 11743 |
|
| 11744 |
if test "x$lt_cv_dlopen_self" = xyes; then |
| 11745 |
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
| 11746 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
| 11747 |
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } |
| 11748 |
if ${lt_cv_dlopen_self_static+:} false; then : |
| 11749 |
$as_echo_n "(cached) " >&6 |
| 11750 |
else |
| 11751 |
if test "$cross_compiling" = yes; then : |
| 11752 |
lt_cv_dlopen_self_static=cross |
| 11753 |
else |
| 11754 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 11755 |
lt_status=$lt_dlunknown |
| 11756 |
cat > conftest.$ac_ext <<_LT_EOF |
| 11757 |
#line $LINENO "configure" |
| 11758 |
#include "confdefs.h" |
| 11759 |
|
| 11760 |
#if HAVE_DLFCN_H |
| 11761 |
#include <dlfcn.h> |
| 11762 |
#endif |
| 11763 |
|
| 11764 |
#include <stdio.h> |
| 11765 |
|
| 11766 |
#ifdef RTLD_GLOBAL |
| 11767 |
# define LT_DLGLOBAL RTLD_GLOBAL |
| 11768 |
#else |
| 11769 |
# ifdef DL_GLOBAL |
| 11770 |
# define LT_DLGLOBAL DL_GLOBAL |
| 11771 |
# else |
| 11772 |
# define LT_DLGLOBAL 0 |
| 11773 |
# endif |
| 11774 |
#endif |
| 11775 |
|
| 11776 |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 11777 |
find out it does not work in some platform. */ |
| 11778 |
#ifndef LT_DLLAZY_OR_NOW |
| 11779 |
# ifdef RTLD_LAZY |
| 11780 |
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 11781 |
# else |
| 11782 |
# ifdef DL_LAZY |
| 11783 |
# define LT_DLLAZY_OR_NOW DL_LAZY |
| 11784 |
# else |
| 11785 |
# ifdef RTLD_NOW |
| 11786 |
# define LT_DLLAZY_OR_NOW RTLD_NOW |
| 11787 |
# else |
| 11788 |
# ifdef DL_NOW |
| 11789 |
# define LT_DLLAZY_OR_NOW DL_NOW |
| 11790 |
# else |
| 11791 |
# define LT_DLLAZY_OR_NOW 0 |
| 11792 |
# endif |
| 11793 |
# endif |
| 11794 |
# endif |
| 11795 |
# endif |
| 11796 |
#endif |
| 11797 |
|
| 11798 |
/* When -fvisbility=hidden is used, assume the code has been annotated |
| 11799 |
correspondingly for the symbols needed. */ |
| 11800 |
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
| 11801 |
int fnord () __attribute__((visibility("default"))); |
| 11802 |
#endif |
| 11803 |
|
| 11804 |
int fnord () { return 42; } |
| 11805 |
int main () |
| 11806 |
{ |
| 11807 |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 11808 |
int status = $lt_dlunknown; |
| 11809 |
|
| 11810 |
if (self) |
| 11811 |
{ |
| 11812 |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 11813 |
else |
| 11814 |
{ |
| 11815 |
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 11816 |
else puts (dlerror ()); |
| 11817 |
} |
| 11818 |
/* dlclose (self); */ |
| 11819 |
} |
| 11820 |
else |
| 11821 |
puts (dlerror ()); |
| 11822 |
|
| 11823 |
return status; |
| 11824 |
} |
| 11825 |
_LT_EOF |
| 11826 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 11827 |
(eval $ac_link) 2>&5 |
| 11828 |
ac_status=$? |
| 11829 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 11830 |
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 11831 |
(./conftest; exit; ) >&5 2>/dev/null |
| 11832 |
lt_status=$? |
| 11833 |
case x$lt_status in |
| 11834 |
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 11835 |
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 11836 |
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
| 11837 |
esac |
| 11838 |
else : |
| 11839 |
# compilation failed |
| 11840 |
lt_cv_dlopen_self_static=no |
| 11841 |
fi |
| 11842 |
fi |
| 11843 |
rm -fr conftest* |
| 11844 |
|
| 11845 |
|
| 11846 |
fi |
| 11847 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
| 11848 |
$as_echo "$lt_cv_dlopen_self_static" >&6; } |
| 11849 |
fi |
| 11850 |
|
| 11851 |
CPPFLAGS="$save_CPPFLAGS" |
| 11852 |
LDFLAGS="$save_LDFLAGS" |
| 11853 |
LIBS="$save_LIBS" |
| 11854 |
;; |
| 11855 |
esac |
| 11856 |
|
| 11857 |
case $lt_cv_dlopen_self in |
| 11858 |
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 11859 |
*) enable_dlopen_self=unknown ;; |
| 11860 |
esac |
| 11861 |
|
| 11862 |
case $lt_cv_dlopen_self_static in |
| 11863 |
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 11864 |
*) enable_dlopen_self_static=unknown ;; |
| 11865 |
esac |
| 11866 |
fi |
| 11867 |
|
| 11868 |
|
| 11869 |
|
| 11870 |
|
| 11871 |
|
| 11872 |
|
| 11873 |
|
| 11874 |
|
| 11875 |
|
| 11876 |
|
| 11877 |
|
| 11878 |
|
| 11879 |
|
| 11880 |
|
| 11881 |
|
| 11882 |
|
| 11883 |
|
| 11884 |
striplib= |
| 11885 |
old_striplib= |
| 11886 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
| 11887 |
$as_echo_n "checking whether stripping libraries is possible... " >&6; } |
| 11888 |
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
| 11889 |
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 11890 |
test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 11891 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11892 |
$as_echo "yes" >&6; } |
| 11893 |
else |
| 11894 |
# FIXME - insert some real tests, host_os isn't really good enough |
| 11895 |
case $host_os in |
| 11896 |
darwin*) |
| 11897 |
if test -n "$STRIP" ; then |
| 11898 |
striplib="$STRIP -x" |
| 11899 |
old_striplib="$STRIP -S" |
| 11900 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11901 |
$as_echo "yes" >&6; } |
| 11902 |
else |
| 11903 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11904 |
$as_echo "no" >&6; } |
| 11905 |
fi |
| 11906 |
;; |
| 11907 |
*) |
| 11908 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11909 |
$as_echo "no" >&6; } |
| 11910 |
;; |
| 11911 |
esac |
| 11912 |
fi |
| 11913 |
|
| 11914 |
|
| 11915 |
|
| 11916 |
|
| 11917 |
|
| 11918 |
|
| 11919 |
|
| 11920 |
|
| 11921 |
|
| 11922 |
|
| 11923 |
|
| 11924 |
|
| 11925 |
# Report which library types will actually be built |
| 11926 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
| 11927 |
$as_echo_n "checking if libtool supports shared libraries... " >&6; } |
| 11928 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 |
| 11929 |
$as_echo "$can_build_shared" >&6; } |
| 11930 |
|
| 11931 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
| 11932 |
$as_echo_n "checking whether to build shared libraries... " >&6; } |
| 11933 |
test "$can_build_shared" = "no" && enable_shared=no |
| 11934 |
|
| 11935 |
# On AIX, shared libraries and static libraries use the same namespace, and |
| 11936 |
# are all built from PIC. |
| 11937 |
case $host_os in |
| 11938 |
aix3*) |
| 11939 |
test "$enable_shared" = yes && enable_static=no |
| 11940 |
if test -n "$RANLIB"; then |
| 11941 |
archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 11942 |
postinstall_cmds='$RANLIB $lib' |
| 11943 |
fi |
| 11944 |
;; |
| 11945 |
|
| 11946 |
aix[4-9]*) |
| 11947 |
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 11948 |
test "$enable_shared" = yes && enable_static=no |
| 11949 |
fi |
| 11950 |
;; |
| 11951 |
esac |
| 11952 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
| 11953 |
$as_echo "$enable_shared" >&6; } |
| 11954 |
|
| 11955 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
| 11956 |
$as_echo_n "checking whether to build static libraries... " >&6; } |
| 11957 |
# Make sure either enable_shared or enable_static is yes. |
| 11958 |
test "$enable_shared" = yes || enable_static=yes |
| 11959 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
| 11960 |
$as_echo "$enable_static" >&6; } |
| 11961 |
|
| 11962 |
|
| 11963 |
|
| 11964 |
|
| 11965 |
fi |
| 11966 |
ac_ext=c |
| 11967 |
ac_cpp='$CPP $CPPFLAGS' |
| 11968 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11969 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11970 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 11971 |
|
| 11972 |
CC="$lt_save_CC" |
| 11973 |
|
| 11974 |
|
| 11975 |
|
| 11976 |
|
| 11977 |
|
| 11978 |
|
| 11979 |
|
| 11980 |
|
| 11981 |
|
| 11982 |
|
| 11983 |
|
| 11984 |
|
| 11985 |
|
| 11986 |
|
| 11987 |
|
| 11988 |
ac_config_commands="$ac_config_commands libtool" |
| 11989 |
|
| 11990 |
|
| 11991 |
|
| 11992 |
|
| 11993 |
# Only expand once: |
| 11994 |
|
| 11995 |
|
| 11996 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5 |
| 11997 |
$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; } |
| 11998 |
if ${libltdl_cv_shlibext+:} false; then : |
| 11999 |
$as_echo_n "(cached) " >&6 |
| 12000 |
else |
| 12001 |
|
| 12002 |
module=yes |
| 12003 |
eval libltdl_cv_shlibext=$shrext_cmds |
| 12004 |
module=no |
| 12005 |
eval libltdl_cv_shrext=$shrext_cmds |
| 12006 |
|
| 12007 |
fi |
| 12008 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5 |
| 12009 |
$as_echo "$libltdl_cv_shlibext" >&6; } |
| 12010 |
if test -n "$libltdl_cv_shlibext"; then |
| 12011 |
|
| 12012 |
cat >>confdefs.h <<_ACEOF |
| 12013 |
#define LT_MODULE_EXT "$libltdl_cv_shlibext" |
| 12014 |
_ACEOF |
| 12015 |
|
| 12016 |
fi |
| 12017 |
if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then |
| 12018 |
|
| 12019 |
cat >>confdefs.h <<_ACEOF |
| 12020 |
#define LT_SHARED_EXT "$libltdl_cv_shrext" |
| 12021 |
_ACEOF |
| 12022 |
|
| 12023 |
fi |
| 12024 |
|
| 12025 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5 |
| 12026 |
$as_echo_n "checking which variable specifies run-time module search path... " >&6; } |
| 12027 |
if ${lt_cv_module_path_var+:} false; then : |
| 12028 |
$as_echo_n "(cached) " >&6 |
| 12029 |
else |
| 12030 |
lt_cv_module_path_var="$shlibpath_var" |
| 12031 |
fi |
| 12032 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5 |
| 12033 |
$as_echo "$lt_cv_module_path_var" >&6; } |
| 12034 |
if test -n "$lt_cv_module_path_var"; then |
| 12035 |
|
| 12036 |
cat >>confdefs.h <<_ACEOF |
| 12037 |
#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var" |
| 12038 |
_ACEOF |
| 12039 |
|
| 12040 |
fi |
| 12041 |
|
| 12042 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5 |
| 12043 |
$as_echo_n "checking for the default library search path... " >&6; } |
| 12044 |
if ${lt_cv_sys_dlsearch_path+:} false; then : |
| 12045 |
$as_echo_n "(cached) " >&6 |
| 12046 |
else |
| 12047 |
lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec" |
| 12048 |
fi |
| 12049 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5 |
| 12050 |
$as_echo "$lt_cv_sys_dlsearch_path" >&6; } |
| 12051 |
if test -n "$lt_cv_sys_dlsearch_path"; then |
| 12052 |
sys_dlsearch_path= |
| 12053 |
for dir in $lt_cv_sys_dlsearch_path; do |
| 12054 |
if test -z "$sys_dlsearch_path"; then |
| 12055 |
sys_dlsearch_path="$dir" |
| 12056 |
else |
| 12057 |
sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir" |
| 12058 |
fi |
| 12059 |
done |
| 12060 |
|
| 12061 |
cat >>confdefs.h <<_ACEOF |
| 12062 |
#define LT_DLSEARCH_PATH "$sys_dlsearch_path" |
| 12063 |
_ACEOF |
| 12064 |
|
| 12065 |
fi |
| 12066 |
|
| 12067 |
|
| 12068 |
LT_DLLOADERS= |
| 12069 |
|
| 12070 |
|
| 12071 |
ac_ext=c |
| 12072 |
ac_cpp='$CPP $CPPFLAGS' |
| 12073 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12074 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12075 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 12076 |
|
| 12077 |
|
| 12078 |
LIBADD_DLOPEN= |
| 12079 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 |
| 12080 |
$as_echo_n "checking for library containing dlopen... " >&6; } |
| 12081 |
if ${ac_cv_search_dlopen+:} false; then : |
| 12082 |
$as_echo_n "(cached) " >&6 |
| 12083 |
else |
| 12084 |
ac_func_search_save_LIBS=$LIBS |
| 12085 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12086 |
/* end confdefs.h. */ |
| 12087 |
|
| 12088 |
/* Override any GCC internal prototype to avoid an error. |
| 12089 |
Use char because int might match the return type of a GCC |
| 12090 |
builtin and then its argument prototype would still apply. */ |
| 12091 |
#ifdef __cplusplus |
| 12092 |
extern "C" |
| 12093 |
#endif |
| 12094 |
char dlopen (); |
| 12095 |
int |
| 12096 |
main () |
| 12097 |
{ |
| 12098 |
return dlopen (); |
| 12099 |
; |
| 12100 |
return 0; |
| 12101 |
} |
| 12102 |
_ACEOF |
| 12103 |
for ac_lib in '' dl; do |
| 12104 |
if test -z "$ac_lib"; then |
| 12105 |
ac_res="none required" |
| 12106 |
else |
| 12107 |
ac_res=-l$ac_lib |
| 12108 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 12109 |
fi |
| 12110 |
if ac_fn_c_try_link "$LINENO"; then : |
| 12111 |
ac_cv_search_dlopen=$ac_res |
| 12112 |
fi |
| 12113 |
rm -f core conftest.err conftest.$ac_objext \ |
| 12114 |
conftest$ac_exeext |
| 12115 |
if ${ac_cv_search_dlopen+:} false; then : |
| 12116 |
break |
| 12117 |
fi |
| 12118 |
done |
| 12119 |
if ${ac_cv_search_dlopen+:} false; then : |
| 12120 |
|
| 12121 |
else |
| 12122 |
ac_cv_search_dlopen=no |
| 12123 |
fi |
| 12124 |
rm conftest.$ac_ext |
| 12125 |
LIBS=$ac_func_search_save_LIBS |
| 12126 |
fi |
| 12127 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 |
| 12128 |
$as_echo "$ac_cv_search_dlopen" >&6; } |
| 12129 |
ac_res=$ac_cv_search_dlopen |
| 12130 |
if test "$ac_res" != no; then : |
| 12131 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 12132 |
|
| 12133 |
$as_echo "#define HAVE_LIBDL 1" >>confdefs.h |
| 12134 |
|
| 12135 |
if test "$ac_cv_search_dlopen" != "none required" ; then |
| 12136 |
LIBADD_DLOPEN="-ldl" |
| 12137 |
fi |
| 12138 |
libltdl_cv_lib_dl_dlopen="yes" |
| 12139 |
LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" |
| 12140 |
else |
| 12141 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12142 |
/* end confdefs.h. */ |
| 12143 |
#if HAVE_DLFCN_H |
| 12144 |
# include <dlfcn.h> |
| 12145 |
#endif |
| 12146 |
|
| 12147 |
int |
| 12148 |
main () |
| 12149 |
{ |
| 12150 |
dlopen(0, 0); |
| 12151 |
; |
| 12152 |
return 0; |
| 12153 |
} |
| 12154 |
_ACEOF |
| 12155 |
if ac_fn_c_try_link "$LINENO"; then : |
| 12156 |
|
| 12157 |
$as_echo "#define HAVE_LIBDL 1" >>confdefs.h |
| 12158 |
|
| 12159 |
libltdl_cv_func_dlopen="yes" |
| 12160 |
LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" |
| 12161 |
else |
| 12162 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
| 12163 |
$as_echo_n "checking for dlopen in -lsvld... " >&6; } |
| 12164 |
if ${ac_cv_lib_svld_dlopen+:} false; then : |
| 12165 |
$as_echo_n "(cached) " >&6 |
| 12166 |
else |
| 12167 |
ac_check_lib_save_LIBS=$LIBS |
| 12168 |
LIBS="-lsvld $LIBS" |
| 12169 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12170 |
/* end confdefs.h. */ |
| 12171 |
|
| 12172 |
/* Override any GCC internal prototype to avoid an error. |
| 12173 |
Use char because int might match the return type of a GCC |
| 12174 |
builtin and then its argument prototype would still apply. */ |
| 12175 |
#ifdef __cplusplus |
| 12176 |
extern "C" |
| 12177 |
#endif |
| 12178 |
char dlopen (); |
| 12179 |
int |
| 12180 |
main () |
| 12181 |
{ |
| 12182 |
return dlopen (); |
| 12183 |
; |
| 12184 |
return 0; |
| 12185 |
} |
| 12186 |
_ACEOF |
| 12187 |
if ac_fn_c_try_link "$LINENO"; then : |
| 12188 |
ac_cv_lib_svld_dlopen=yes |
| 12189 |
else |
| 12190 |
ac_cv_lib_svld_dlopen=no |
| 12191 |
fi |
| 12192 |
rm -f core conftest.err conftest.$ac_objext \ |
| 12193 |
conftest$ac_exeext conftest.$ac_ext |
| 12194 |
LIBS=$ac_check_lib_save_LIBS |
| 12195 |
fi |
| 12196 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
| 12197 |
$as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
| 12198 |
if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
| 12199 |
|
| 12200 |
$as_echo "#define HAVE_LIBDL 1" >>confdefs.h |
| 12201 |
|
| 12202 |
LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes" |
| 12203 |
LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" |
| 12204 |
fi |
| 12205 |
|
| 12206 |
fi |
| 12207 |
rm -f core conftest.err conftest.$ac_objext \ |
| 12208 |
conftest$ac_exeext conftest.$ac_ext |
| 12209 |
fi |
| 12210 |
|
| 12211 |
if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes |
| 12212 |
then |
| 12213 |
lt_save_LIBS="$LIBS" |
| 12214 |
LIBS="$LIBS $LIBADD_DLOPEN" |
| 12215 |
for ac_func in dlerror |
| 12216 |
do : |
| 12217 |
ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror" |
| 12218 |
if test "x$ac_cv_func_dlerror" = xyes; then : |
| 12219 |
cat >>confdefs.h <<_ACEOF |
| 12220 |
#define HAVE_DLERROR 1 |
| 12221 |
_ACEOF |
| 12222 |
|
| 12223 |
fi |
| 12224 |
done |
| 12225 |
|
| 12226 |
LIBS="$lt_save_LIBS" |
| 12227 |
fi |
| 12228 |
|
| 12229 |
|
| 12230 |
LIBADD_SHL_LOAD= |
| 12231 |
ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
| 12232 |
if test "x$ac_cv_func_shl_load" = xyes; then : |
| 12233 |
|
| 12234 |
$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h |
| 12235 |
|
| 12236 |
LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" |
| 12237 |
else |
| 12238 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
| 12239 |
$as_echo_n "checking for shl_load in -ldld... " >&6; } |
| 12240 |
if ${ac_cv_lib_dld_shl_load+:} false; then : |
| 12241 |
$as_echo_n "(cached) " >&6 |
| 12242 |
else |
| 12243 |
ac_check_lib_save_LIBS=$LIBS |
| 12244 |
LIBS="-ldld $LIBS" |
| 12245 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12246 |
/* end confdefs.h. */ |
| 12247 |
|
| 12248 |
/* Override any GCC internal prototype to avoid an error. |
| 12249 |
Use char because int might match the return type of a GCC |
| 12250 |
builtin and then its argument prototype would still apply. */ |
| 12251 |
#ifdef __cplusplus |
| 12252 |
extern "C" |
| 12253 |
#endif |
| 12254 |
char shl_load (); |
| 12255 |
int |
| 12256 |
main () |
| 12257 |
{ |
| 12258 |
return shl_load (); |
| 12259 |
; |
| 12260 |
return 0; |
| 12261 |
} |
| 12262 |
_ACEOF |
| 12263 |
if ac_fn_c_try_link "$LINENO"; then : |
| 12264 |
ac_cv_lib_dld_shl_load=yes |
| 12265 |
else |
| 12266 |
ac_cv_lib_dld_shl_load=no |
| 12267 |
fi |
| 12268 |
rm -f core conftest.err conftest.$ac_objext \ |
| 12269 |
conftest$ac_exeext conftest.$ac_ext |
| 12270 |
LIBS=$ac_check_lib_save_LIBS |
| 12271 |
fi |
| 12272 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
| 12273 |
$as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
| 12274 |
if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
| 12275 |
|
| 12276 |
$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h |
| 12277 |
|
| 12278 |
LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" |
| 12279 |
LIBADD_SHL_LOAD="-ldld" |
| 12280 |
fi |
| 12281 |
|
| 12282 |
fi |
| 12283 |
|
| 12284 |
|
| 12285 |
|
| 12286 |
case $host_os in |
| 12287 |
darwin[1567].*) |
| 12288 |
# We only want this for pre-Mac OS X 10.4. |
| 12289 |
ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup" |
| 12290 |
if test "x$ac_cv_func__dyld_func_lookup" = xyes; then : |
| 12291 |
|
| 12292 |
$as_echo "#define HAVE_DYLD 1" >>confdefs.h |
| 12293 |
|
| 12294 |
LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la" |
| 12295 |
fi |
| 12296 |
|
| 12297 |
;; |
| 12298 |
beos*) |
| 12299 |
LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la" |
| 12300 |
;; |
| 12301 |
cygwin* | mingw* | os2* | pw32*) |
| 12302 |
ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h> |
| 12303 |
" |
| 12304 |
if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then : |
| 12305 |
ac_have_decl=1 |
| 12306 |
else |
| 12307 |
ac_have_decl=0 |
| 12308 |
fi |
| 12309 |
|
| 12310 |
cat >>confdefs.h <<_ACEOF |
| 12311 |
#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl |
| 12312 |
_ACEOF |
| 12313 |
|
| 12314 |
LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la" |
| 12315 |
;; |
| 12316 |
esac |
| 12317 |
|
| 12318 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
| 12319 |
$as_echo_n "checking for dld_link in -ldld... " >&6; } |
| 12320 |
if ${ac_cv_lib_dld_dld_link+:} false; then : |
| 12321 |
$as_echo_n "(cached) " >&6 |
| 12322 |
else |
| 12323 |
ac_check_lib_save_LIBS=$LIBS |
| 12324 |
LIBS="-ldld $LIBS" |
| 12325 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12326 |
/* end confdefs.h. */ |
| 12327 |
|
| 12328 |
/* Override any GCC internal prototype to avoid an error. |
| 12329 |
Use char because int might match the return type of a GCC |
| 12330 |
builtin and then its argument prototype would still apply. */ |
| 12331 |
#ifdef __cplusplus |
| 12332 |
extern "C" |
| 12333 |
#endif |
| 12334 |
char dld_link (); |
| 12335 |
int |
| 12336 |
main () |
| 12337 |
{ |
| 12338 |
return dld_link (); |
| 12339 |
; |
| 12340 |
return 0; |
| 12341 |
} |
| 12342 |
_ACEOF |
| 12343 |
if ac_fn_c_try_link "$LINENO"; then : |
| 12344 |
ac_cv_lib_dld_dld_link=yes |
| 12345 |
else |
| 12346 |
ac_cv_lib_dld_dld_link=no |
| 12347 |
fi |
| 12348 |
rm -f core conftest.err conftest.$ac_objext \ |
| 12349 |
conftest$ac_exeext conftest.$ac_ext |
| 12350 |
LIBS=$ac_check_lib_save_LIBS |
| 12351 |
fi |
| 12352 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
| 12353 |
$as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
| 12354 |
if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
| 12355 |
|
| 12356 |
$as_echo "#define HAVE_DLD 1" >>confdefs.h |
| 12357 |
|
| 12358 |
LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la" |
| 12359 |
fi |
| 12360 |
|
| 12361 |
|
| 12362 |
|
| 12363 |
|
| 12364 |
LT_DLPREOPEN= |
| 12365 |
if test -n "$LT_DLLOADERS" |
| 12366 |
then |
| 12367 |
for lt_loader in $LT_DLLOADERS; do |
| 12368 |
LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader " |
| 12369 |
done |
| 12370 |
|
| 12371 |
$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h |
| 12372 |
|
| 12373 |
fi |
| 12374 |
|
| 12375 |
|
| 12376 |
LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD" |
| 12377 |
|
| 12378 |
|
| 12379 |
ac_ext=c |
| 12380 |
ac_cpp='$CPP $CPPFLAGS' |
| 12381 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12382 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12383 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 12384 |
|
| 12385 |
|
| 12386 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5 |
| 12387 |
$as_echo_n "checking for _ prefix in compiled symbols... " >&6; } |
| 12388 |
if ${lt_cv_sys_symbol_underscore+:} false; then : |
| 12389 |
$as_echo_n "(cached) " >&6 |
| 12390 |
else |
| 12391 |
lt_cv_sys_symbol_underscore=no |
| 12392 |
cat > conftest.$ac_ext <<_LT_EOF |
| 12393 |
void nm_test_func(){} |
| 12394 |
int main(){nm_test_func;return 0;} |
| 12395 |
_LT_EOF |
| 12396 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 12397 |
(eval $ac_compile) 2>&5 |
| 12398 |
ac_status=$? |
| 12399 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 12400 |
test $ac_status = 0; }; then |
| 12401 |
# Now try to grab the symbols. |
| 12402 |
ac_nlist=conftest.nm |
| 12403 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5 |
| 12404 |
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 |
| 12405 |
ac_status=$? |
| 12406 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 12407 |
test $ac_status = 0; } && test -s "$ac_nlist"; then |
| 12408 |
# See whether the symbols have a leading underscore. |
| 12409 |
if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then |
| 12410 |
lt_cv_sys_symbol_underscore=yes |
| 12411 |
else |
| 12412 |
if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then |
| 12413 |
: |
| 12414 |
else |
| 12415 |
echo "configure: cannot find nm_test_func in $ac_nlist" >&5 |
| 12416 |
fi |
| 12417 |
fi |
| 12418 |
else |
| 12419 |
echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 12420 |
fi |
| 12421 |
else |
| 12422 |
echo "configure: failed program was:" >&5 |
| 12423 |
cat conftest.c >&5 |
| 12424 |
fi |
| 12425 |
rm -rf conftest* |
| 12426 |
|
| 12427 |
fi |
| 12428 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5 |
| 12429 |
$as_echo "$lt_cv_sys_symbol_underscore" >&6; } |
| 12430 |
sys_symbol_underscore=$lt_cv_sys_symbol_underscore |
| 12431 |
|
| 12432 |
|
| 12433 |
if test x"$lt_cv_sys_symbol_underscore" = xyes; then |
| 12434 |
if test x"$libltdl_cv_func_dlopen" = xyes || |
| 12435 |
test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then |
| 12436 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5 |
| 12437 |
$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; } |
| 12438 |
if ${libltdl_cv_need_uscore+:} false; then : |
| 12439 |
$as_echo_n "(cached) " >&6 |
| 12440 |
else |
| 12441 |
libltdl_cv_need_uscore=unknown |
| 12442 |
save_LIBS="$LIBS" |
| 12443 |
LIBS="$LIBS $LIBADD_DLOPEN" |
| 12444 |
if test "$cross_compiling" = yes; then : |
| 12445 |
libltdl_cv_need_uscore=cross |
| 12446 |
else |
| 12447 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 12448 |
lt_status=$lt_dlunknown |
| 12449 |
cat > conftest.$ac_ext <<_LT_EOF |
| 12450 |
#line $LINENO "configure" |
| 12451 |
#include "confdefs.h" |
| 12452 |
|
| 12453 |
#if HAVE_DLFCN_H |
| 12454 |
#include <dlfcn.h> |
| 12455 |
#endif |
| 12456 |
|
| 12457 |
#include <stdio.h> |
| 12458 |
|
| 12459 |
#ifdef RTLD_GLOBAL |
| 12460 |
# define LT_DLGLOBAL RTLD_GLOBAL |
| 12461 |
#else |
| 12462 |
# ifdef DL_GLOBAL |
| 12463 |
# define LT_DLGLOBAL DL_GLOBAL |
| 12464 |
# else |
| 12465 |
# define LT_DLGLOBAL 0 |
| 12466 |
# endif |
| 12467 |
#endif |
| 12468 |
|
| 12469 |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 12470 |
find out it does not work in some platform. */ |
| 12471 |
#ifndef LT_DLLAZY_OR_NOW |
| 12472 |
# ifdef RTLD_LAZY |
| 12473 |
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 12474 |
# else |
| 12475 |
# ifdef DL_LAZY |
| 12476 |
# define LT_DLLAZY_OR_NOW DL_LAZY |
| 12477 |
# else |
| 12478 |
# ifdef RTLD_NOW |
| 12479 |
# define LT_DLLAZY_OR_NOW RTLD_NOW |
| 12480 |
# else |
| 12481 |
# ifdef DL_NOW |
| 12482 |
# define LT_DLLAZY_OR_NOW DL_NOW |
| 12483 |
# else |
| 12484 |
# define LT_DLLAZY_OR_NOW 0 |
| 12485 |
# endif |
| 12486 |
# endif |
| 12487 |
# endif |
| 12488 |
# endif |
| 12489 |
#endif |
| 12490 |
|
| 12491 |
/* When -fvisbility=hidden is used, assume the code has been annotated |
| 12492 |
correspondingly for the symbols needed. */ |
| 12493 |
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
| 12494 |
int fnord () __attribute__((visibility("default"))); |
| 12495 |
#endif |
| 12496 |
|
| 12497 |
int fnord () { return 42; } |
| 12498 |
int main () |
| 12499 |
{ |
| 12500 |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 12501 |
int status = $lt_dlunknown; |
| 12502 |
|
| 12503 |
if (self) |
| 12504 |
{ |
| 12505 |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 12506 |
else |
| 12507 |
{ |
| 12508 |
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 12509 |
else puts (dlerror ()); |
| 12510 |
} |
| 12511 |
/* dlclose (self); */ |
| 12512 |
} |
| 12513 |
else |
| 12514 |
puts (dlerror ()); |
| 12515 |
|
| 12516 |
return status; |
| 12517 |
} |
| 12518 |
_LT_EOF |
| 12519 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 12520 |
(eval $ac_link) 2>&5 |
| 12521 |
ac_status=$? |
| 12522 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 12523 |
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 12524 |
(./conftest; exit; ) >&5 2>/dev/null |
| 12525 |
lt_status=$? |
| 12526 |
case x$lt_status in |
| 12527 |
x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; |
| 12528 |
x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; |
| 12529 |
x$lt_dlunknown|x*) ;; |
| 12530 |
esac |
| 12531 |
else : |
| 12532 |
# compilation failed |
| 12533 |
|
| 12534 |
fi |
| 12535 |
fi |
| 12536 |
rm -fr conftest* |
| 12537 |
|
| 12538 |
LIBS="$save_LIBS" |
| 12539 |
|
| 12540 |
fi |
| 12541 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5 |
| 12542 |
$as_echo "$libltdl_cv_need_uscore" >&6; } |
| 12543 |
fi |
| 12544 |
fi |
| 12545 |
|
| 12546 |
if test x"$libltdl_cv_need_uscore" = xyes; then |
| 12547 |
|
| 12548 |
$as_echo "#define NEED_USCORE 1" >>confdefs.h |
| 12549 |
|
| 12550 |
fi |
| 12551 |
|
| 12552 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5 |
| 12553 |
$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; } |
| 12554 |
if ${lt_cv_sys_dlopen_deplibs+:} false; then : |
| 12555 |
$as_echo_n "(cached) " >&6 |
| 12556 |
else |
| 12557 |
# PORTME does your system automatically load deplibs for dlopen? |
| 12558 |
# or its logical equivalent (e.g. shl_load for HP-UX < 11) |
| 12559 |
# For now, we just catch OSes we know something about -- in the |
| 12560 |
# future, we'll try test this programmatically. |
| 12561 |
lt_cv_sys_dlopen_deplibs=unknown |
| 12562 |
case $host_os in |
| 12563 |
aix3*|aix4.1.*|aix4.2.*) |
| 12564 |
# Unknown whether this is true for these versions of AIX, but |
| 12565 |
# we want this `case' here to explicitly catch those versions. |
| 12566 |
lt_cv_sys_dlopen_deplibs=unknown |
| 12567 |
;; |
| 12568 |
aix[4-9]*) |
| 12569 |
lt_cv_sys_dlopen_deplibs=yes |
| 12570 |
;; |
| 12571 |
amigaos*) |
| 12572 |
case $host_cpu in |
| 12573 |
powerpc) |
| 12574 |
lt_cv_sys_dlopen_deplibs=no |
| 12575 |
;; |
| 12576 |
esac |
| 12577 |
;; |
| 12578 |
darwin*) |
| 12579 |
# Assuming the user has installed a libdl from somewhere, this is true |
| 12580 |
# If you are looking for one http://www.opendarwin.org/projects/dlcompat |
| 12581 |
lt_cv_sys_dlopen_deplibs=yes |
| 12582 |
;; |
| 12583 |
freebsd* | dragonfly*) |
| 12584 |
lt_cv_sys_dlopen_deplibs=yes |
| 12585 |
;; |
| 12586 |
gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| 12587 |
# GNU and its variants, using gnu ld.so (Glibc) |
| 12588 |
lt_cv_sys_dlopen_deplibs=yes |
| 12589 |
;; |
| 12590 |
hpux10*|hpux11*) |
| 12591 |
lt_cv_sys_dlopen_deplibs=yes |
| 12592 |
;; |
| 12593 |
interix*) |
| 12594 |
lt_cv_sys_dlopen_deplibs=yes |
| 12595 |
;; |
| 12596 |
irix[12345]*|irix6.[01]*) |
| 12597 |
# Catch all versions of IRIX before 6.2, and indicate that we don't |
| 12598 |
# know how it worked for any of those versions. |
| 12599 |
lt_cv_sys_dlopen_deplibs=unknown |
| 12600 |
;; |
| 12601 |
irix*) |
| 12602 |
# The case above catches anything before 6.2, and it's known that |
| 12603 |
# at 6.2 and later dlopen does load deplibs. |
| 12604 |
lt_cv_sys_dlopen_deplibs=yes |
| 12605 |
;; |
| 12606 |
netbsd*) |
| 12607 |
lt_cv_sys_dlopen_deplibs=yes |
| 12608 |
;; |
| 12609 |
openbsd*) |
| 12610 |
lt_cv_sys_dlopen_deplibs=yes |
| 12611 |
;; |
| 12612 |
osf[1234]*) |
| 12613 |
# dlopen did load deplibs (at least at 4.x), but until the 5.x series, |
| 12614 |
# it did *not* use an RPATH in a shared library to find objects the |
| 12615 |
# library depends on, so we explicitly say `no'. |
| 12616 |
lt_cv_sys_dlopen_deplibs=no |
| 12617 |
;; |
| 12618 |
osf5.0|osf5.0a|osf5.1) |
| 12619 |
# dlopen *does* load deplibs and with the right loader patch applied |
| 12620 |
# it even uses RPATH in a shared library to search for shared objects |
| 12621 |
# that the library depends on, but there's no easy way to know if that |
| 12622 |
# patch is installed. Since this is the case, all we can really |
| 12623 |
# say is unknown -- it depends on the patch being installed. If |
| 12624 |
# it is, this changes to `yes'. Without it, it would be `no'. |
| 12625 |
lt_cv_sys_dlopen_deplibs=unknown |
| 12626 |
;; |
| 12627 |
osf*) |
| 12628 |
# the two cases above should catch all versions of osf <= 5.1. Read |
| 12629 |
# the comments above for what we know about them. |
| 12630 |
# At > 5.1, deplibs are loaded *and* any RPATH in a shared library |
| 12631 |
# is used to find them so we can finally say `yes'. |
| 12632 |
lt_cv_sys_dlopen_deplibs=yes |
| 12633 |
;; |
| 12634 |
qnx*) |
| 12635 |
lt_cv_sys_dlopen_deplibs=yes |
| 12636 |
;; |
| 12637 |
solaris*) |
| 12638 |
lt_cv_sys_dlopen_deplibs=yes |
| 12639 |
;; |
| 12640 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 12641 |
libltdl_cv_sys_dlopen_deplibs=yes |
| 12642 |
;; |
| 12643 |
esac |
| 12644 |
|
| 12645 |
fi |
| 12646 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5 |
| 12647 |
$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; } |
| 12648 |
if test "$lt_cv_sys_dlopen_deplibs" != yes; then |
| 12649 |
|
| 12650 |
$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h |
| 12651 |
|
| 12652 |
fi |
| 12653 |
|
| 12654 |
: |
| 12655 |
|
| 12656 |
for ac_header in argz.h |
| 12657 |
do : |
| 12658 |
ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default |
| 12659 |
" |
| 12660 |
if test "x$ac_cv_header_argz_h" = xyes; then : |
| 12661 |
cat >>confdefs.h <<_ACEOF |
| 12662 |
#define HAVE_ARGZ_H 1 |
| 12663 |
_ACEOF |
| 12664 |
|
| 12665 |
fi |
| 12666 |
|
| 12667 |
done |
| 12668 |
|
| 12669 |
|
| 12670 |
ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H) |
| 12671 |
# include <argz.h> |
| 12672 |
#endif |
| 12673 |
" |
| 12674 |
if test "x$ac_cv_type_error_t" = xyes; then : |
| 12675 |
|
| 12676 |
cat >>confdefs.h <<_ACEOF |
| 12677 |
#define HAVE_ERROR_T 1 |
| 12678 |
_ACEOF |
| 12679 |
|
| 12680 |
|
| 12681 |
else |
| 12682 |
|
| 12683 |
$as_echo "#define error_t int" >>confdefs.h |
| 12684 |
|
| 12685 |
|
| 12686 |
$as_echo "#define __error_t_defined 1" >>confdefs.h |
| 12687 |
|
| 12688 |
fi |
| 12689 |
|
| 12690 |
|
| 12691 |
ARGZ_H= |
| 12692 |
for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \ |
| 12693 |
argz_next argz_stringify |
| 12694 |
do : |
| 12695 |
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12696 |
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 12697 |
if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 12698 |
cat >>confdefs.h <<_ACEOF |
| 12699 |
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12700 |
_ACEOF |
| 12701 |
|
| 12702 |
else |
| 12703 |
ARGZ_H=argz.h; |
| 12704 |
|
| 12705 |
_LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext" |
| 12706 |
|
| 12707 |
fi |
| 12708 |
done |
| 12709 |
|
| 12710 |
|
| 12711 |
if test -z "$ARGZ_H"; then : |
| 12712 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5 |
| 12713 |
$as_echo_n "checking if argz actually works... " >&6; } |
| 12714 |
if ${lt_cv_sys_argz_works+:} false; then : |
| 12715 |
$as_echo_n "(cached) " >&6 |
| 12716 |
else |
| 12717 |
case $host_os in #( |
| 12718 |
*cygwin*) |
| 12719 |
lt_cv_sys_argz_works=no |
| 12720 |
if test "$cross_compiling" != no; then |
| 12721 |
lt_cv_sys_argz_works="guessing no" |
| 12722 |
else |
| 12723 |
lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/' |
| 12724 |
save_IFS=$IFS |
| 12725 |
IFS=-. |
| 12726 |
set x `uname -r | sed -e "$lt_sed_extract_leading_digits"` |
| 12727 |
IFS=$save_IFS |
| 12728 |
lt_os_major=${2-0} |
| 12729 |
lt_os_minor=${3-0} |
| 12730 |
lt_os_micro=${4-0} |
| 12731 |
if test "$lt_os_major" -gt 1 \ |
| 12732 |
|| { test "$lt_os_major" -eq 1 \ |
| 12733 |
&& { test "$lt_os_minor" -gt 5 \ |
| 12734 |
|| { test "$lt_os_minor" -eq 5 \ |
| 12735 |
&& test "$lt_os_micro" -gt 24; }; }; }; then |
| 12736 |
lt_cv_sys_argz_works=yes |
| 12737 |
fi |
| 12738 |
fi |
| 12739 |
;; #( |
| 12740 |
*) lt_cv_sys_argz_works=yes ;; |
| 12741 |
esac |
| 12742 |
fi |
| 12743 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5 |
| 12744 |
$as_echo "$lt_cv_sys_argz_works" >&6; } |
| 12745 |
if test "$lt_cv_sys_argz_works" = yes; then : |
| 12746 |
|
| 12747 |
$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h |
| 12748 |
|
| 12749 |
else |
| 12750 |
ARGZ_H=argz.h |
| 12751 |
|
| 12752 |
|
| 12753 |
_LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext" |
| 12754 |
|
| 12755 |
fi |
| 12756 |
fi |
| 12757 |
|
| 12758 |
|
| 12759 |
|
| 12760 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5 |
| 12761 |
$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; } |
| 12762 |
if ${libltdl_cv_preloaded_symbols+:} false; then : |
| 12763 |
$as_echo_n "(cached) " >&6 |
| 12764 |
else |
| 12765 |
if test -n "$lt_cv_sys_global_symbol_pipe"; then |
| 12766 |
libltdl_cv_preloaded_symbols=yes |
| 12767 |
else |
| 12768 |
libltdl_cv_preloaded_symbols=no |
| 12769 |
fi |
| 12770 |
|
| 12771 |
fi |
| 12772 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5 |
| 12773 |
$as_echo "$libltdl_cv_preloaded_symbols" >&6; } |
| 12774 |
if test x"$libltdl_cv_preloaded_symbols" = xyes; then |
| 12775 |
|
| 12776 |
$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h |
| 12777 |
|
| 12778 |
fi |
| 12779 |
|
| 12780 |
# Set options |
| 12781 |
|
| 12782 |
|
| 12783 |
|
| 12784 |
|
| 12785 |
|
| 12786 |
|
| 12787 |
|
| 12788 |
|
| 12789 |
|
| 12790 |
|
| 12791 |
|
| 12792 |
# Check whether --with-included_ltdl was given. |
| 12793 |
if test "${with_included_ltdl+set}" = set; then : |
| 12794 |
withval=$with_included_ltdl; |
| 12795 |
fi |
| 12796 |
|
| 12797 |
|
| 12798 |
if test "x$with_included_ltdl" != xyes; then |
| 12799 |
# We are not being forced to use the included libltdl sources, so |
| 12800 |
# decide whether there is a useful installed version we can use. |
| 12801 |
ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default |
| 12802 |
|
| 12803 |
" |
| 12804 |
if test "x$ac_cv_header_ltdl_h" = xyes; then : |
| 12805 |
ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default |
| 12806 |
#include <ltdl.h> |
| 12807 |
" |
| 12808 |
if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then : |
| 12809 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5 |
| 12810 |
$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; } |
| 12811 |
if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then : |
| 12812 |
$as_echo_n "(cached) " >&6 |
| 12813 |
else |
| 12814 |
ac_check_lib_save_LIBS=$LIBS |
| 12815 |
LIBS="-lltdl $LIBS" |
| 12816 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12817 |
/* end confdefs.h. */ |
| 12818 |
|
| 12819 |
/* Override any GCC internal prototype to avoid an error. |
| 12820 |
Use char because int might match the return type of a GCC |
| 12821 |
builtin and then its argument prototype would still apply. */ |
| 12822 |
#ifdef __cplusplus |
| 12823 |
extern "C" |
| 12824 |
#endif |
| 12825 |
char lt_dladvise_preload (); |
| 12826 |
int |
| 12827 |
main () |
| 12828 |
{ |
| 12829 |
return lt_dladvise_preload (); |
| 12830 |
; |
| 12831 |
return 0; |
| 12832 |
} |
| 12833 |
_ACEOF |
| 12834 |
if ac_fn_c_try_link "$LINENO"; then : |
| 12835 |
ac_cv_lib_ltdl_lt_dladvise_preload=yes |
| 12836 |
else |
| 12837 |
ac_cv_lib_ltdl_lt_dladvise_preload=no |
| 12838 |
fi |
| 12839 |
rm -f core conftest.err conftest.$ac_objext \ |
| 12840 |
conftest$ac_exeext conftest.$ac_ext |
| 12841 |
LIBS=$ac_check_lib_save_LIBS |
| 12842 |
fi |
| 12843 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5 |
| 12844 |
$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; } |
| 12845 |
if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then : |
| 12846 |
with_included_ltdl=no |
| 12847 |
else |
| 12848 |
with_included_ltdl=yes |
| 12849 |
fi |
| 12850 |
|
| 12851 |
else |
| 12852 |
with_included_ltdl=yes |
| 12853 |
fi |
| 12854 |
|
| 12855 |
else |
| 12856 |
with_included_ltdl=yes |
| 12857 |
fi |
| 12858 |
|
| 12859 |
|
| 12860 |
fi |
| 12861 |
|
| 12862 |
|
| 12863 |
|
| 12864 |
|
| 12865 |
# Check whether --with-ltdl_include was given. |
| 12866 |
if test "${with_ltdl_include+set}" = set; then : |
| 12867 |
withval=$with_ltdl_include; |
| 12868 |
fi |
| 12869 |
|
| 12870 |
|
| 12871 |
if test -n "$with_ltdl_include"; then |
| 12872 |
if test -f "$with_ltdl_include/ltdl.h"; then : |
| 12873 |
else |
| 12874 |
as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5 |
| 12875 |
fi |
| 12876 |
else |
| 12877 |
with_ltdl_include=no |
| 12878 |
fi |
| 12879 |
|
| 12880 |
|
| 12881 |
# Check whether --with-ltdl_lib was given. |
| 12882 |
if test "${with_ltdl_lib+set}" = set; then : |
| 12883 |
withval=$with_ltdl_lib; |
| 12884 |
fi |
| 12885 |
|
| 12886 |
|
| 12887 |
if test -n "$with_ltdl_lib"; then |
| 12888 |
if test -f "$with_ltdl_lib/libltdl.la"; then : |
| 12889 |
else |
| 12890 |
as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5 |
| 12891 |
fi |
| 12892 |
else |
| 12893 |
with_ltdl_lib=no |
| 12894 |
fi |
| 12895 |
|
| 12896 |
case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in |
| 12897 |
,yes,no,no,) |
| 12898 |
case $enable_ltdl_convenience in |
| 12899 |
no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;; |
| 12900 |
"") enable_ltdl_convenience=yes |
| 12901 |
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; |
| 12902 |
esac |
| 12903 |
LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la" |
| 12904 |
LTDLDEPS=$LIBLTDL |
| 12905 |
LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}" |
| 12906 |
|
| 12907 |
|
| 12908 |
|
| 12909 |
|
| 12910 |
|
| 12911 |
# For backwards non-gettext consistent compatibility... |
| 12912 |
INCLTDL="$LTDLINCL" |
| 12913 |
|
| 12914 |
|
| 12915 |
;; |
| 12916 |
,no,no,no,) |
| 12917 |
# If the included ltdl is not to be used, then use the |
| 12918 |
# preinstalled libltdl we found. |
| 12919 |
|
| 12920 |
$as_echo "#define HAVE_LTDL 1" >>confdefs.h |
| 12921 |
|
| 12922 |
LIBLTDL=-lltdl |
| 12923 |
LTDLDEPS= |
| 12924 |
LTDLINCL= |
| 12925 |
;; |
| 12926 |
,no*,no,*) |
| 12927 |
as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5 |
| 12928 |
;; |
| 12929 |
*) with_included_ltdl=no |
| 12930 |
LIBLTDL="-L$with_ltdl_lib -lltdl" |
| 12931 |
LTDLDEPS= |
| 12932 |
LTDLINCL="-I$with_ltdl_include" |
| 12933 |
;; |
| 12934 |
esac |
| 12935 |
INCLTDL="$LTDLINCL" |
| 12936 |
|
| 12937 |
# Report our decision... |
| 12938 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5 |
| 12939 |
$as_echo_n "checking where to find libltdl headers... " >&6; } |
| 12940 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5 |
| 12941 |
$as_echo "$LTDLINCL" >&6; } |
| 12942 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5 |
| 12943 |
$as_echo_n "checking where to find libltdl library... " >&6; } |
| 12944 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5 |
| 12945 |
$as_echo "$LIBLTDL" >&6; } |
| 12946 |
|
| 12947 |
|
| 12948 |
|
| 12949 |
# Check whether --enable-ltdl-install was given. |
| 12950 |
if test "${enable_ltdl_install+set}" = set; then : |
| 12951 |
enableval=$enable_ltdl_install; |
| 12952 |
fi |
| 12953 |
|
| 12954 |
|
| 12955 |
case ,${enable_ltdl_install},${enable_ltdl_convenience} in |
| 12956 |
*yes*) ;; |
| 12957 |
*) enable_ltdl_convenience=yes ;; |
| 12958 |
esac |
| 12959 |
|
| 12960 |
if test x"${enable_ltdl_install-no}" != xno; then |
| 12961 |
INSTALL_LTDL_TRUE= |
| 12962 |
INSTALL_LTDL_FALSE='#' |
| 12963 |
else |
| 12964 |
INSTALL_LTDL_TRUE='#' |
| 12965 |
INSTALL_LTDL_FALSE= |
| 12966 |
fi |
| 12967 |
|
| 12968 |
if test x"${enable_ltdl_convenience-no}" != xno; then |
| 12969 |
CONVENIENCE_LTDL_TRUE= |
| 12970 |
CONVENIENCE_LTDL_FALSE='#' |
| 12971 |
else |
| 12972 |
CONVENIENCE_LTDL_TRUE='#' |
| 12973 |
CONVENIENCE_LTDL_FALSE= |
| 12974 |
fi |
| 12975 |
|
| 12976 |
|
| 12977 |
|
| 12978 |
|
| 12979 |
|
| 12980 |
|
| 12981 |
# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS |
| 12982 |
# the user used. This is so that ltdl.h can pick up the parent projects |
| 12983 |
# config.h file, The first file in AC_CONFIG_HEADERS must contain the |
| 12984 |
# definitions required by ltdl.c. |
| 12985 |
# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility). |
| 12986 |
|
| 12987 |
|
| 12988 |
|
| 12989 |
for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h |
| 12990 |
do : |
| 12991 |
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 12992 |
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 12993 |
" |
| 12994 |
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 12995 |
cat >>confdefs.h <<_ACEOF |
| 12996 |
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 12997 |
_ACEOF |
| 12998 |
|
| 12999 |
fi |
| 13000 |
|
| 13001 |
done |
| 13002 |
|
| 13003 |
|
| 13004 |
for ac_func in closedir opendir readdir |
| 13005 |
do : |
| 13006 |
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13007 |
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 13008 |
if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 13009 |
cat >>confdefs.h <<_ACEOF |
| 13010 |
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13011 |
_ACEOF |
| 13012 |
|
| 13013 |
else |
| 13014 |
|
| 13015 |
|
| 13016 |
_LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext" |
| 13017 |
|
| 13018 |
fi |
| 13019 |
done |
| 13020 |
|
| 13021 |
for ac_func in strlcat strlcpy |
| 13022 |
do : |
| 13023 |
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13024 |
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 13025 |
if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 13026 |
cat >>confdefs.h <<_ACEOF |
| 13027 |
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13028 |
_ACEOF |
| 13029 |
|
| 13030 |
else |
| 13031 |
|
| 13032 |
|
| 13033 |
_LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext" |
| 13034 |
|
| 13035 |
fi |
| 13036 |
done |
| 13037 |
|
| 13038 |
|
| 13039 |
|
| 13040 |
cat >>confdefs.h <<_ACEOF |
| 13041 |
#define LT_LIBEXT "$libext" |
| 13042 |
_ACEOF |
| 13043 |
|
| 13044 |
|
| 13045 |
name= |
| 13046 |
eval "lt_libprefix=\"$libname_spec\"" |
| 13047 |
|
| 13048 |
cat >>confdefs.h <<_ACEOF |
| 13049 |
#define LT_LIBPREFIX "$lt_libprefix" |
| 13050 |
_ACEOF |
| 13051 |
|
| 13052 |
|
| 13053 |
name=ltdl |
| 13054 |
eval "LTDLOPEN=\"$libname_spec\"" |
| 13055 |
|
| 13056 |
|
| 13057 |
|
| 13058 |
|
| 13059 |
|
| 13060 |
|
| 13061 |
|
| 13062 |
|
| 13063 |
# Only expand once: |
| 13064 |
|
| 13065 |
|
| 13066 |
LIBTOOL="$LIBTOOL --silent" |
| 13067 |
|
| 13068 |
# Checks for libraries. |
| 13069 |
|
| 13070 |
ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" |
| 13071 |
if test "x$ac_cv_func_getaddrinfo" = xyes; then : |
| 13072 |
|
| 13073 |
else |
| 13074 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5 |
| 13075 |
$as_echo_n "checking for library containing getaddrinfo... " >&6; } |
| 13076 |
if ${ac_cv_search_getaddrinfo+:} false; then : |
| 13077 |
$as_echo_n "(cached) " >&6 |
| 13078 |
else |
| 13079 |
ac_func_search_save_LIBS=$LIBS |
| 13080 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13081 |
/* end confdefs.h. */ |
| 13082 |
|
| 13083 |
/* Override any GCC internal prototype to avoid an error. |
| 13084 |
Use char because int might match the return type of a GCC |
| 13085 |
builtin and then its argument prototype would still apply. */ |
| 13086 |
#ifdef __cplusplus |
| 13087 |
extern "C" |
| 13088 |
#endif |
| 13089 |
char getaddrinfo (); |
| 13090 |
int |
| 13091 |
main () |
| 13092 |
{ |
| 13093 |
return getaddrinfo (); |
| 13094 |
; |
| 13095 |
return 0; |
| 13096 |
} |
| 13097 |
_ACEOF |
| 13098 |
for ac_lib in '' nsl; do |
| 13099 |
if test -z "$ac_lib"; then |
| 13100 |
ac_res="none required" |
| 13101 |
else |
| 13102 |
ac_res=-l$ac_lib |
| 13103 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13104 |
fi |
| 13105 |
if ac_fn_c_try_link "$LINENO"; then : |
| 13106 |
ac_cv_search_getaddrinfo=$ac_res |
| 13107 |
fi |
| 13108 |
rm -f core conftest.err conftest.$ac_objext \ |
| 13109 |
conftest$ac_exeext |
| 13110 |
if ${ac_cv_search_getaddrinfo+:} false; then : |
| 13111 |
break |
| 13112 |
fi |
| 13113 |
done |
| 13114 |
if ${ac_cv_search_getaddrinfo+:} false; then : |
| 13115 |
|
| 13116 |
else |
| 13117 |
ac_cv_search_getaddrinfo=no |
| 13118 |
fi |
| 13119 |
rm conftest.$ac_ext |
| 13120 |
LIBS=$ac_func_search_save_LIBS |
| 13121 |
fi |
| 13122 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5 |
| 13123 |
$as_echo "$ac_cv_search_getaddrinfo" >&6; } |
| 13124 |
ac_res=$ac_cv_search_getaddrinfo |
| 13125 |
if test "$ac_res" != no; then : |
| 13126 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13127 |
|
| 13128 |
fi |
| 13129 |
|
| 13130 |
fi |
| 13131 |
|
| 13132 |
ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" |
| 13133 |
if test "x$ac_cv_func_getnameinfo" = xyes; then : |
| 13134 |
|
| 13135 |
else |
| 13136 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5 |
| 13137 |
$as_echo_n "checking for library containing getnameinfo... " >&6; } |
| 13138 |
if ${ac_cv_search_getnameinfo+:} false; then : |
| 13139 |
$as_echo_n "(cached) " >&6 |
| 13140 |
else |
| 13141 |
ac_func_search_save_LIBS=$LIBS |
| 13142 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13143 |
/* end confdefs.h. */ |
| 13144 |
|
| 13145 |
/* Override any GCC internal prototype to avoid an error. |
| 13146 |
Use char because int might match the return type of a GCC |
| 13147 |
builtin and then its argument prototype would still apply. */ |
| 13148 |
#ifdef __cplusplus |
| 13149 |
extern "C" |
| 13150 |
#endif |
| 13151 |
char getnameinfo (); |
| 13152 |
int |
| 13153 |
main () |
| 13154 |
{ |
| 13155 |
return getnameinfo (); |
| 13156 |
; |
| 13157 |
return 0; |
| 13158 |
} |
| 13159 |
_ACEOF |
| 13160 |
for ac_lib in '' nsl; do |
| 13161 |
if test -z "$ac_lib"; then |
| 13162 |
ac_res="none required" |
| 13163 |
else |
| 13164 |
ac_res=-l$ac_lib |
| 13165 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13166 |
fi |
| 13167 |
if ac_fn_c_try_link "$LINENO"; then : |
| 13168 |
ac_cv_search_getnameinfo=$ac_res |
| 13169 |
fi |
| 13170 |
rm -f core conftest.err conftest.$ac_objext \ |
| 13171 |
conftest$ac_exeext |
| 13172 |
if ${ac_cv_search_getnameinfo+:} false; then : |
| 13173 |
break |
| 13174 |
fi |
| 13175 |
done |
| 13176 |
if ${ac_cv_search_getnameinfo+:} false; then : |
| 13177 |
|
| 13178 |
else |
| 13179 |
ac_cv_search_getnameinfo=no |
| 13180 |
fi |
| 13181 |
rm conftest.$ac_ext |
| 13182 |
LIBS=$ac_func_search_save_LIBS |
| 13183 |
fi |
| 13184 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5 |
| 13185 |
$as_echo "$ac_cv_search_getnameinfo" >&6; } |
| 13186 |
ac_res=$ac_cv_search_getnameinfo |
| 13187 |
if test "$ac_res" != no; then : |
| 13188 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13189 |
|
| 13190 |
fi |
| 13191 |
|
| 13192 |
fi |
| 13193 |
|
| 13194 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 |
| 13195 |
$as_echo_n "checking for library containing socket... " >&6; } |
| 13196 |
if ${ac_cv_search_socket+:} false; then : |
| 13197 |
$as_echo_n "(cached) " >&6 |
| 13198 |
else |
| 13199 |
ac_func_search_save_LIBS=$LIBS |
| 13200 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13201 |
/* end confdefs.h. */ |
| 13202 |
|
| 13203 |
/* Override any GCC internal prototype to avoid an error. |
| 13204 |
Use char because int might match the return type of a GCC |
| 13205 |
builtin and then its argument prototype would still apply. */ |
| 13206 |
#ifdef __cplusplus |
| 13207 |
extern "C" |
| 13208 |
#endif |
| 13209 |
char socket (); |
| 13210 |
int |
| 13211 |
main () |
| 13212 |
{ |
| 13213 |
return socket (); |
| 13214 |
; |
| 13215 |
return 0; |
| 13216 |
} |
| 13217 |
_ACEOF |
| 13218 |
for ac_lib in '' socket; do |
| 13219 |
if test -z "$ac_lib"; then |
| 13220 |
ac_res="none required" |
| 13221 |
else |
| 13222 |
ac_res=-l$ac_lib |
| 13223 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13224 |
fi |
| 13225 |
if ac_fn_c_try_link "$LINENO"; then : |
| 13226 |
ac_cv_search_socket=$ac_res |
| 13227 |
fi |
| 13228 |
rm -f core conftest.err conftest.$ac_objext \ |
| 13229 |
conftest$ac_exeext |
| 13230 |
if ${ac_cv_search_socket+:} false; then : |
| 13231 |
break |
| 13232 |
fi |
| 13233 |
done |
| 13234 |
if ${ac_cv_search_socket+:} false; then : |
| 13235 |
|
| 13236 |
else |
| 13237 |
ac_cv_search_socket=no |
| 13238 |
fi |
| 13239 |
rm conftest.$ac_ext |
| 13240 |
LIBS=$ac_func_search_save_LIBS |
| 13241 |
fi |
| 13242 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 |
| 13243 |
$as_echo "$ac_cv_search_socket" >&6; } |
| 13244 |
ac_res=$ac_cv_search_socket |
| 13245 |
if test "$ac_res" != no; then : |
| 13246 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13247 |
|
| 13248 |
else |
| 13249 |
as_fn_error $? "socket library not found" "$LINENO" 5 |
| 13250 |
fi |
| 13251 |
|
| 13252 |
ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "#include <sys/types.h> |
| 13253 |
#include <sys/socket.h> |
| 13254 |
#include <netdb.h> |
| 13255 |
|
| 13256 |
" |
| 13257 |
if test "x$ac_cv_type_struct_sockaddr_in" = xyes; then : |
| 13258 |
|
| 13259 |
cat >>confdefs.h <<_ACEOF |
| 13260 |
#define HAVE_STRUCT_SOCKADDR_IN 1 |
| 13261 |
_ACEOF |
| 13262 |
|
| 13263 |
|
| 13264 |
fi |
| 13265 |
ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h> |
| 13266 |
#include <sys/socket.h> |
| 13267 |
#include <netdb.h> |
| 13268 |
|
| 13269 |
" |
| 13270 |
if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then : |
| 13271 |
|
| 13272 |
cat >>confdefs.h <<_ACEOF |
| 13273 |
#define HAVE_STRUCT_SOCKADDR_STORAGE 1 |
| 13274 |
_ACEOF |
| 13275 |
|
| 13276 |
|
| 13277 |
fi |
| 13278 |
ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h> |
| 13279 |
#include <sys/socket.h> |
| 13280 |
#include <netdb.h> |
| 13281 |
|
| 13282 |
" |
| 13283 |
if test "x$ac_cv_type_struct_addrinfo" = xyes; then : |
| 13284 |
|
| 13285 |
cat >>confdefs.h <<_ACEOF |
| 13286 |
#define HAVE_STRUCT_ADDRINFO 1 |
| 13287 |
_ACEOF |
| 13288 |
|
| 13289 |
|
| 13290 |
fi |
| 13291 |
|
| 13292 |
ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h> |
| 13293 |
<sys/socket.h> |
| 13294 |
" |
| 13295 |
if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then : |
| 13296 |
|
| 13297 |
cat >>confdefs.h <<_ACEOF |
| 13298 |
#define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1 |
| 13299 |
_ACEOF |
| 13300 |
|
| 13301 |
|
| 13302 |
fi |
| 13303 |
|
| 13304 |
|
| 13305 |
|
| 13306 |
ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#include <netinet/in.h> |
| 13307 |
" |
| 13308 |
if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then : |
| 13309 |
|
| 13310 |
$as_echo "#define IPV6 1" >>confdefs.h |
| 13311 |
|
| 13312 |
fi |
| 13313 |
|
| 13314 |
|
| 13315 |
|
| 13316 |
# Checks for typedefs, structures, and compiler characteristics. |
| 13317 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
| 13318 |
$as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
| 13319 |
if ${ac_cv_c_bigendian+:} false; then : |
| 13320 |
$as_echo_n "(cached) " >&6 |
| 13321 |
else |
| 13322 |
ac_cv_c_bigendian=unknown |
| 13323 |
# See if we're dealing with a universal compiler. |
| 13324 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13325 |
/* end confdefs.h. */ |
| 13326 |
#ifndef __APPLE_CC__ |
| 13327 |
not a universal capable compiler |
| 13328 |
#endif |
| 13329 |
typedef int dummy; |
| 13330 |
|
| 13331 |
_ACEOF |
| 13332 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 13333 |
|
| 13334 |
# Check for potential -arch flags. It is not universal unless |
| 13335 |
# there are at least two -arch flags with different values. |
| 13336 |
ac_arch= |
| 13337 |
ac_prev= |
| 13338 |
for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 13339 |
if test -n "$ac_prev"; then |
| 13340 |
case $ac_word in |
| 13341 |
i?86 | x86_64 | ppc | ppc64) |
| 13342 |
if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
| 13343 |
ac_arch=$ac_word |
| 13344 |
else |
| 13345 |
ac_cv_c_bigendian=universal |
| 13346 |
break |
| 13347 |
fi |
| 13348 |
;; |
| 13349 |
esac |
| 13350 |
ac_prev= |
| 13351 |
elif test "x$ac_word" = "x-arch"; then |
| 13352 |
ac_prev=arch |
| 13353 |
fi |
| 13354 |
done |
| 13355 |
fi |
| 13356 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13357 |
if test $ac_cv_c_bigendian = unknown; then |
| 13358 |
# See if sys/param.h defines the BYTE_ORDER macro. |
| 13359 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13360 |
/* end confdefs.h. */ |
| 13361 |
#include <sys/types.h> |
| 13362 |
#include <sys/param.h> |
| 13363 |
|
| 13364 |
int |
| 13365 |
main () |
| 13366 |
{ |
| 13367 |
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 13368 |
&& defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 13369 |
&& LITTLE_ENDIAN) |
| 13370 |
bogus endian macros |
| 13371 |
#endif |
| 13372 |
|
| 13373 |
; |
| 13374 |
return 0; |
| 13375 |
} |
| 13376 |
_ACEOF |
| 13377 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 13378 |
# It does; now see whether it defined to BIG_ENDIAN or not. |
| 13379 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13380 |
/* end confdefs.h. */ |
| 13381 |
#include <sys/types.h> |
| 13382 |
#include <sys/param.h> |
| 13383 |
|
| 13384 |
int |
| 13385 |
main () |
| 13386 |
{ |
| 13387 |
#if BYTE_ORDER != BIG_ENDIAN |
| 13388 |
not big endian |
| 13389 |
#endif |
| 13390 |
|
| 13391 |
; |
| 13392 |
return 0; |
| 13393 |
} |
| 13394 |
_ACEOF |
| 13395 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 13396 |
ac_cv_c_bigendian=yes |
| 13397 |
else |
| 13398 |
ac_cv_c_bigendian=no |
| 13399 |
fi |
| 13400 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13401 |
fi |
| 13402 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13403 |
fi |
| 13404 |
if test $ac_cv_c_bigendian = unknown; then |
| 13405 |
# See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
| 13406 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13407 |
/* end confdefs.h. */ |
| 13408 |
#include <limits.h> |
| 13409 |
|
| 13410 |
int |
| 13411 |
main () |
| 13412 |
{ |
| 13413 |
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 13414 |
bogus endian macros |
| 13415 |
#endif |
| 13416 |
|
| 13417 |
; |
| 13418 |
return 0; |
| 13419 |
} |
| 13420 |
_ACEOF |
| 13421 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 13422 |
# It does; now see whether it defined to _BIG_ENDIAN or not. |
| 13423 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13424 |
/* end confdefs.h. */ |
| 13425 |
#include <limits.h> |
| 13426 |
|
| 13427 |
int |
| 13428 |
main () |
| 13429 |
{ |
| 13430 |
#ifndef _BIG_ENDIAN |
| 13431 |
not big endian |
| 13432 |
#endif |
| 13433 |
|
| 13434 |
; |
| 13435 |
return 0; |
| 13436 |
} |
| 13437 |
_ACEOF |
| 13438 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 13439 |
ac_cv_c_bigendian=yes |
| 13440 |
else |
| 13441 |
ac_cv_c_bigendian=no |
| 13442 |
fi |
| 13443 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13444 |
fi |
| 13445 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13446 |
fi |
| 13447 |
if test $ac_cv_c_bigendian = unknown; then |
| 13448 |
# Compile a test program. |
| 13449 |
if test "$cross_compiling" = yes; then : |
| 13450 |
# Try to guess by grepping values from an object file. |
| 13451 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13452 |
/* end confdefs.h. */ |
| 13453 |
short int ascii_mm[] = |
| 13454 |
{ 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 13455 |
short int ascii_ii[] = |
| 13456 |
{ 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 13457 |
int use_ascii (int i) { |
| 13458 |
return ascii_mm[i] + ascii_ii[i]; |
| 13459 |
} |
| 13460 |
short int ebcdic_ii[] = |
| 13461 |
{ 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 13462 |
short int ebcdic_mm[] = |
| 13463 |
{ 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 13464 |
int use_ebcdic (int i) { |
| 13465 |
return ebcdic_mm[i] + ebcdic_ii[i]; |
| 13466 |
} |
| 13467 |
extern int foo; |
| 13468 |
|
| 13469 |
int |
| 13470 |
main () |
| 13471 |
{ |
| 13472 |
return use_ascii (foo) == use_ebcdic (foo); |
| 13473 |
; |
| 13474 |
return 0; |
| 13475 |
} |
| 13476 |
_ACEOF |
| 13477 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 13478 |
if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 13479 |
ac_cv_c_bigendian=yes |
| 13480 |
fi |
| 13481 |
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 13482 |
if test "$ac_cv_c_bigendian" = unknown; then |
| 13483 |
ac_cv_c_bigendian=no |
| 13484 |
else |
| 13485 |
# finding both strings is unlikely to happen, but who knows? |
| 13486 |
ac_cv_c_bigendian=unknown |
| 13487 |
fi |
| 13488 |
fi |
| 13489 |
fi |
| 13490 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13491 |
else |
| 13492 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13493 |
/* end confdefs.h. */ |
| 13494 |
$ac_includes_default |
| 13495 |
int |
| 13496 |
main () |
| 13497 |
{ |
| 13498 |
|
| 13499 |
/* Are we little or big endian? From Harbison&Steele. */ |
| 13500 |
union |
| 13501 |
{ |
| 13502 |
long int l; |
| 13503 |
char c[sizeof (long int)]; |
| 13504 |
} u; |
| 13505 |
u.l = 1; |
| 13506 |
return u.c[sizeof (long int) - 1] == 1; |
| 13507 |
|
| 13508 |
; |
| 13509 |
return 0; |
| 13510 |
} |
| 13511 |
_ACEOF |
| 13512 |
if ac_fn_c_try_run "$LINENO"; then : |
| 13513 |
ac_cv_c_bigendian=no |
| 13514 |
else |
| 13515 |
ac_cv_c_bigendian=yes |
| 13516 |
fi |
| 13517 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13518 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 13519 |
fi |
| 13520 |
|
| 13521 |
fi |
| 13522 |
fi |
| 13523 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
| 13524 |
$as_echo "$ac_cv_c_bigendian" >&6; } |
| 13525 |
case $ac_cv_c_bigendian in #( |
| 13526 |
yes) |
| 13527 |
$as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
| 13528 |
;; #( |
| 13529 |
no) |
| 13530 |
;; #( |
| 13531 |
universal) |
| 13532 |
|
| 13533 |
$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
| 13534 |
|
| 13535 |
;; #( |
| 13536 |
*) |
| 13537 |
as_fn_error $? "unknown endianness |
| 13538 |
presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
| 13539 |
esac |
| 13540 |
|
| 13541 |
|
| 13542 |
# Checks for library functions. |
| 13543 |
|
| 13544 |
|
| 13545 |
|
| 13546 |
for ac_func in $ac_func_list |
| 13547 |
do : |
| 13548 |
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13549 |
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 13550 |
if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 13551 |
cat >>confdefs.h <<_ACEOF |
| 13552 |
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13553 |
_ACEOF |
| 13554 |
|
| 13555 |
fi |
| 13556 |
done |
| 13557 |
|
| 13558 |
|
| 13559 |
|
| 13560 |
|
| 13561 |
|
| 13562 |
|
| 13563 |
|
| 13564 |
|
| 13565 |
|
| 13566 |
|
| 13567 |
|
| 13568 |
# Checks for header files. |
| 13569 |
|
| 13570 |
|
| 13571 |
|
| 13572 |
for ac_header in $ac_header_list |
| 13573 |
do : |
| 13574 |
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 13575 |
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 13576 |
" |
| 13577 |
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 13578 |
cat >>confdefs.h <<_ACEOF |
| 13579 |
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 13580 |
_ACEOF |
| 13581 |
|
| 13582 |
fi |
| 13583 |
|
| 13584 |
done |
| 13585 |
|
| 13586 |
|
| 13587 |
|
| 13588 |
|
| 13589 |
|
| 13590 |
|
| 13591 |
|
| 13592 |
|
| 13593 |
|
| 13594 |
|
| 13595 |
|
| 13596 |
|
| 13597 |
|
| 13598 |
|
| 13599 |
|
| 13600 |
|
| 13601 |
|
| 13602 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5 |
| 13603 |
$as_echo_n "checking for library containing crypt... " >&6; } |
| 13604 |
if ${ac_cv_search_crypt+:} false; then : |
| 13605 |
$as_echo_n "(cached) " >&6 |
| 13606 |
else |
| 13607 |
ac_func_search_save_LIBS=$LIBS |
| 13608 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13609 |
/* end confdefs.h. */ |
| 13610 |
|
| 13611 |
/* Override any GCC internal prototype to avoid an error. |
| 13612 |
Use char because int might match the return type of a GCC |
| 13613 |
builtin and then its argument prototype would still apply. */ |
| 13614 |
#ifdef __cplusplus |
| 13615 |
extern "C" |
| 13616 |
#endif |
| 13617 |
char crypt (); |
| 13618 |
int |
| 13619 |
main () |
| 13620 |
{ |
| 13621 |
return crypt (); |
| 13622 |
; |
| 13623 |
return 0; |
| 13624 |
} |
| 13625 |
_ACEOF |
| 13626 |
for ac_lib in '' crypt; do |
| 13627 |
if test -z "$ac_lib"; then |
| 13628 |
ac_res="none required" |
| 13629 |
else |
| 13630 |
ac_res=-l$ac_lib |
| 13631 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13632 |
fi |
| 13633 |
if ac_fn_c_try_link "$LINENO"; then : |
| 13634 |
ac_cv_search_crypt=$ac_res |
| 13635 |
fi |
| 13636 |
rm -f core conftest.err conftest.$ac_objext \ |
| 13637 |
conftest$ac_exeext |
| 13638 |
if ${ac_cv_search_crypt+:} false; then : |
| 13639 |
break |
| 13640 |
fi |
| 13641 |
done |
| 13642 |
if ${ac_cv_search_crypt+:} false; then : |
| 13643 |
|
| 13644 |
else |
| 13645 |
ac_cv_search_crypt=no |
| 13646 |
fi |
| 13647 |
rm conftest.$ac_ext |
| 13648 |
LIBS=$ac_func_search_save_LIBS |
| 13649 |
fi |
| 13650 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5 |
| 13651 |
$as_echo "$ac_cv_search_crypt" >&6; } |
| 13652 |
ac_res=$ac_cv_search_crypt |
| 13653 |
if test "$ac_res" != no; then : |
| 13654 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13655 |
|
| 13656 |
fi |
| 13657 |
|
| 13658 |
|
| 13659 |
# Check whether --enable-libpcre was given. |
| 13660 |
if test "${enable_libpcre+set}" = set; then : |
| 13661 |
enableval=$enable_libpcre; |
| 13662 |
else |
| 13663 |
ac_fn_c_check_header_mongrel "$LINENO" "pcre.h" "ac_cv_header_pcre_h" "$ac_includes_default" |
| 13664 |
if test "x$ac_cv_header_pcre_h" = xyes; then : |
| 13665 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pcre_study" >&5 |
| 13666 |
$as_echo_n "checking for library containing pcre_study... " >&6; } |
| 13667 |
if ${ac_cv_search_pcre_study+:} false; then : |
| 13668 |
$as_echo_n "(cached) " >&6 |
| 13669 |
else |
| 13670 |
ac_func_search_save_LIBS=$LIBS |
| 13671 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13672 |
/* end confdefs.h. */ |
| 13673 |
|
| 13674 |
/* Override any GCC internal prototype to avoid an error. |
| 13675 |
Use char because int might match the return type of a GCC |
| 13676 |
builtin and then its argument prototype would still apply. */ |
| 13677 |
#ifdef __cplusplus |
| 13678 |
extern "C" |
| 13679 |
#endif |
| 13680 |
char pcre_study (); |
| 13681 |
int |
| 13682 |
main () |
| 13683 |
{ |
| 13684 |
return pcre_study (); |
| 13685 |
; |
| 13686 |
return 0; |
| 13687 |
} |
| 13688 |
_ACEOF |
| 13689 |
for ac_lib in '' pcre; do |
| 13690 |
if test -z "$ac_lib"; then |
| 13691 |
ac_res="none required" |
| 13692 |
else |
| 13693 |
ac_res=-l$ac_lib |
| 13694 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13695 |
fi |
| 13696 |
if ac_fn_c_try_link "$LINENO"; then : |
| 13697 |
ac_cv_search_pcre_study=$ac_res |
| 13698 |
fi |
| 13699 |
rm -f core conftest.err conftest.$ac_objext \ |
| 13700 |
conftest$ac_exeext |
| 13701 |
if ${ac_cv_search_pcre_study+:} false; then : |
| 13702 |
break |
| 13703 |
fi |
| 13704 |
done |
| 13705 |
if ${ac_cv_search_pcre_study+:} false; then : |
| 13706 |
|
| 13707 |
else |
| 13708 |
ac_cv_search_pcre_study=no |
| 13709 |
fi |
| 13710 |
rm conftest.$ac_ext |
| 13711 |
LIBS=$ac_func_search_save_LIBS |
| 13712 |
fi |
| 13713 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pcre_study" >&5 |
| 13714 |
$as_echo "$ac_cv_search_pcre_study" >&6; } |
| 13715 |
ac_res=$ac_cv_search_pcre_study |
| 13716 |
if test "$ac_res" != no; then : |
| 13717 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13718 |
|
| 13719 |
$as_echo "#define HAVE_LIBPCRE 1" >>confdefs.h |
| 13720 |
|
| 13721 |
fi |
| 13722 |
|
| 13723 |
fi |
| 13724 |
|
| 13725 |
|
| 13726 |
fi |
| 13727 |
|
| 13728 |
|
| 13729 |
# Check whether --enable-openssl was given. |
| 13730 |
if test "${enable_openssl+set}" = set; then : |
| 13731 |
enableval=$enable_openssl; cf_enable_openssl=$enableval |
| 13732 |
else |
| 13733 |
cf_enable_openssl="auto" |
| 13734 |
fi |
| 13735 |
|
| 13736 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5 |
| 13737 |
$as_echo_n "checking for OpenSSL... " >&6; } |
| 13738 |
if test "$cf_enable_openssl" != "no"; then |
| 13739 |
cf_openssl_basedir="" |
| 13740 |
if test "$cf_enable_openssl" != "auto" && |
| 13741 |
test "$cf_enable_openssl" != "yes"; then |
| 13742 |
cf_openssl_basedir="${cf_enable_openssl}" |
| 13743 |
else |
| 13744 |
for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\ |
| 13745 |
/opt /opt/openssl /usr/local/openssl; do |
| 13746 |
if test -f "${dirs}/include/openssl/opensslv.h"; then |
| 13747 |
cf_openssl_basedir="${dirs}" |
| 13748 |
break |
| 13749 |
fi |
| 13750 |
done |
| 13751 |
unset dirs |
| 13752 |
fi |
| 13753 |
|
| 13754 |
if test ! -z "$cf_openssl_basedir"; then |
| 13755 |
if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then |
| 13756 |
CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS" |
| 13757 |
LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS" |
| 13758 |
else |
| 13759 |
cf_openssl_basedir="" |
| 13760 |
fi |
| 13761 |
else |
| 13762 |
if test -f "/usr/include/openssl/opensslv.h"; then |
| 13763 |
cf_openssl_basedir="/usr" |
| 13764 |
fi |
| 13765 |
fi |
| 13766 |
|
| 13767 |
if test ! -z "$cf_openssl_basedir"; then |
| 13768 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5 |
| 13769 |
$as_echo "$cf_openssl_basedir" >&6; } |
| 13770 |
cf_enable_openssl="yes" |
| 13771 |
else |
| 13772 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5 |
| 13773 |
$as_echo "not found. Please check your path." >&6; } |
| 13774 |
cf_enable_openssl="no" |
| 13775 |
fi |
| 13776 |
unset cf_openssl_basedir |
| 13777 |
else |
| 13778 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 |
| 13779 |
$as_echo "disabled" >&6; } |
| 13780 |
fi |
| 13781 |
|
| 13782 |
if test "$cf_enable_openssl" != "no"; then : |
| 13783 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.8s or above" >&5 |
| 13784 |
$as_echo_n "checking for OpenSSL 0.9.8s or above... " >&6; } |
| 13785 |
if test "$cross_compiling" = yes; then : |
| 13786 |
cf_openssl_version_ok=no |
| 13787 |
else |
| 13788 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13789 |
/* end confdefs.h. */ |
| 13790 |
|
| 13791 |
|
| 13792 |
#include <openssl/opensslv.h> |
| 13793 |
#include <stdlib.h> |
| 13794 |
int |
| 13795 |
main () |
| 13796 |
{ |
| 13797 |
exit(!(OPENSSL_VERSION_NUMBER >= 0x0090813f)); |
| 13798 |
; |
| 13799 |
return 0; |
| 13800 |
} |
| 13801 |
_ACEOF |
| 13802 |
if ac_fn_c_try_run "$LINENO"; then : |
| 13803 |
cf_openssl_version_ok=yes |
| 13804 |
else |
| 13805 |
cf_openssl_version_ok=no |
| 13806 |
fi |
| 13807 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13808 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 13809 |
fi |
| 13810 |
|
| 13811 |
|
| 13812 |
if test "$cf_openssl_version_ok" = "yes"; then : |
| 13813 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
| 13814 |
$as_echo "found" >&6; } |
| 13815 |
|
| 13816 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5 |
| 13817 |
$as_echo_n "checking for RSA_free in -lcrypto... " >&6; } |
| 13818 |
if ${ac_cv_lib_crypto_RSA_free+:} false; then : |
| 13819 |
$as_echo_n "(cached) " >&6 |
| 13820 |
else |
| 13821 |
ac_check_lib_save_LIBS=$LIBS |
| 13822 |
LIBS="-lcrypto $LIBS" |
| 13823 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13824 |
/* end confdefs.h. */ |
| 13825 |
|
| 13826 |
/* Override any GCC internal prototype to avoid an error. |
| 13827 |
Use char because int might match the return type of a GCC |
| 13828 |
builtin and then its argument prototype would still apply. */ |
| 13829 |
#ifdef __cplusplus |
| 13830 |
extern "C" |
| 13831 |
#endif |
| 13832 |
char RSA_free (); |
| 13833 |
int |
| 13834 |
main () |
| 13835 |
{ |
| 13836 |
return RSA_free (); |
| 13837 |
; |
| 13838 |
return 0; |
| 13839 |
} |
| 13840 |
_ACEOF |
| 13841 |
if ac_fn_c_try_link "$LINENO"; then : |
| 13842 |
ac_cv_lib_crypto_RSA_free=yes |
| 13843 |
else |
| 13844 |
ac_cv_lib_crypto_RSA_free=no |
| 13845 |
fi |
| 13846 |
rm -f core conftest.err conftest.$ac_objext \ |
| 13847 |
conftest$ac_exeext conftest.$ac_ext |
| 13848 |
LIBS=$ac_check_lib_save_LIBS |
| 13849 |
fi |
| 13850 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5 |
| 13851 |
$as_echo "$ac_cv_lib_crypto_RSA_free" >&6; } |
| 13852 |
if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then : |
| 13853 |
cat >>confdefs.h <<_ACEOF |
| 13854 |
#define HAVE_LIBCRYPTO 1 |
| 13855 |
_ACEOF |
| 13856 |
|
| 13857 |
LIBS="-lcrypto $LIBS" |
| 13858 |
|
| 13859 |
fi |
| 13860 |
|
| 13861 |
if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then : |
| 13862 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5 |
| 13863 |
$as_echo_n "checking for SSL_connect in -lssl... " >&6; } |
| 13864 |
if ${ac_cv_lib_ssl_SSL_connect+:} false; then : |
| 13865 |
$as_echo_n "(cached) " >&6 |
| 13866 |
else |
| 13867 |
ac_check_lib_save_LIBS=$LIBS |
| 13868 |
LIBS="-lssl $LIBS" |
| 13869 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13870 |
/* end confdefs.h. */ |
| 13871 |
|
| 13872 |
/* Override any GCC internal prototype to avoid an error. |
| 13873 |
Use char because int might match the return type of a GCC |
| 13874 |
builtin and then its argument prototype would still apply. */ |
| 13875 |
#ifdef __cplusplus |
| 13876 |
extern "C" |
| 13877 |
#endif |
| 13878 |
char SSL_connect (); |
| 13879 |
int |
| 13880 |
main () |
| 13881 |
{ |
| 13882 |
return SSL_connect (); |
| 13883 |
; |
| 13884 |
return 0; |
| 13885 |
} |
| 13886 |
_ACEOF |
| 13887 |
if ac_fn_c_try_link "$LINENO"; then : |
| 13888 |
ac_cv_lib_ssl_SSL_connect=yes |
| 13889 |
else |
| 13890 |
ac_cv_lib_ssl_SSL_connect=no |
| 13891 |
fi |
| 13892 |
rm -f core conftest.err conftest.$ac_objext \ |
| 13893 |
conftest$ac_exeext conftest.$ac_ext |
| 13894 |
LIBS=$ac_check_lib_save_LIBS |
| 13895 |
fi |
| 13896 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5 |
| 13897 |
$as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; } |
| 13898 |
if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then : |
| 13899 |
cat >>confdefs.h <<_ACEOF |
| 13900 |
#define HAVE_LIBSSL 1 |
| 13901 |
_ACEOF |
| 13902 |
|
| 13903 |
LIBS="-lssl $LIBS" |
| 13904 |
|
| 13905 |
fi |
| 13906 |
|
| 13907 |
fi |
| 13908 |
|
| 13909 |
else |
| 13910 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5 |
| 13911 |
$as_echo "no - OpenSSL support disabled" >&6; } |
| 13912 |
cf_enable_openssl="no" |
| 13913 |
fi |
| 13914 |
fi |
| 13915 |
|
| 13916 |
if test "$ac_cv_lib_ssl_SSL_connect" = yes; then |
| 13917 |
ENABLE_SSL_TRUE= |
| 13918 |
ENABLE_SSL_FALSE='#' |
| 13919 |
else |
| 13920 |
ENABLE_SSL_TRUE='#' |
| 13921 |
ENABLE_SSL_FALSE= |
| 13922 |
fi |
| 13923 |
|
| 13924 |
|
| 13925 |
|
| 13926 |
# Check whether --enable-assert was given. |
| 13927 |
if test "${enable_assert+set}" = set; then : |
| 13928 |
enableval=$enable_assert; assert=$enableval |
| 13929 |
else |
| 13930 |
assert=no |
| 13931 |
fi |
| 13932 |
|
| 13933 |
|
| 13934 |
if test "$assert" = "no"; then : |
| 13935 |
|
| 13936 |
$as_echo "#define NDEBUG 1" >>confdefs.h |
| 13937 |
|
| 13938 |
fi |
| 13939 |
|
| 13940 |
|
| 13941 |
|
| 13942 |
$as_echo "#define NICKNAMEHISTORYLENGTH 16384" >>confdefs.h |
| 13943 |
|
| 13944 |
|
| 13945 |
$as_echo "#define MP_CHUNK_SIZE_CHANNEL 64*1024" >>confdefs.h |
| 13946 |
|
| 13947 |
|
| 13948 |
$as_echo "#define MP_CHUNK_SIZE_MEMBER 32*1024" >>confdefs.h |
| 13949 |
|
| 13950 |
|
| 13951 |
$as_echo "#define MP_CHUNK_SIZE_BAN 16*1024" >>confdefs.h |
| 13952 |
|
| 13953 |
|
| 13954 |
$as_echo "#define MP_CHUNK_SIZE_CLIENT 256*1024" >>confdefs.h |
| 13955 |
|
| 13956 |
|
| 13957 |
$as_echo "#define MP_CHUNK_SIZE_LCLIENT 128*1024" >>confdefs.h |
| 13958 |
|
| 13959 |
|
| 13960 |
$as_echo "#define MP_CHUNK_SIZE_DNODE 8*1024" >>confdefs.h |
| 13961 |
|
| 13962 |
|
| 13963 |
$as_echo "#define MP_CHUNK_SIZE_DBUF 512*1024" >>confdefs.h |
| 13964 |
|
| 13965 |
|
| 13966 |
$as_echo "#define MP_CHUNK_SIZE_AUTH 32*1024" >>confdefs.h |
| 13967 |
|
| 13968 |
|
| 13969 |
$as_echo "#define MP_CHUNK_SIZE_DNS 16*1024" >>confdefs.h |
| 13970 |
|
| 13971 |
|
| 13972 |
$as_echo "#define MP_CHUNK_SIZE_WATCH 4*1024" >>confdefs.h |
| 13973 |
|
| 13974 |
|
| 13975 |
# Argument processing. |
| 13976 |
|
| 13977 |
desired_iopoll_mechanism="none" |
| 13978 |
# Check whether --enable-kqueue was given. |
| 13979 |
if test "${enable_kqueue+set}" = set; then : |
| 13980 |
enableval=$enable_kqueue; desired_iopoll_mechanism="kqueue" |
| 13981 |
fi |
| 13982 |
|
| 13983 |
# Check whether --enable-epoll was given. |
| 13984 |
if test "${enable_epoll+set}" = set; then : |
| 13985 |
enableval=$enable_epoll; desired_iopoll_mechanism="epoll" |
| 13986 |
fi |
| 13987 |
|
| 13988 |
# Check whether --enable-devpoll was given. |
| 13989 |
if test "${enable_devpoll+set}" = set; then : |
| 13990 |
enableval=$enable_devpoll; desired_iopoll_mechanism="devpoll" |
| 13991 |
fi |
| 13992 |
|
| 13993 |
# Check whether --enable-poll was given. |
| 13994 |
if test "${enable_poll+set}" = set; then : |
| 13995 |
enableval=$enable_poll; desired_iopoll_mechanism="poll" |
| 13996 |
fi |
| 13997 |
|
| 13998 |
# Check whether --enable-select was given. |
| 13999 |
if test "${enable_select+set}" = set; then : |
| 14000 |
enableval=$enable_select; desired_iopoll_mechanism="select" |
| 14001 |
fi |
| 14002 |
|
| 14003 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5 |
| 14004 |
$as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; } |
| 14005 |
iopoll_mechanism_none=0 |
| 14006 |
|
| 14007 |
cat >>confdefs.h <<_ACEOF |
| 14008 |
#define __IOPOLL_MECHANISM_NONE $iopoll_mechanism_none |
| 14009 |
_ACEOF |
| 14010 |
|
| 14011 |
iopoll_mechanism_kqueue=1 |
| 14012 |
|
| 14013 |
cat >>confdefs.h <<_ACEOF |
| 14014 |
#define __IOPOLL_MECHANISM_KQUEUE $iopoll_mechanism_kqueue |
| 14015 |
_ACEOF |
| 14016 |
|
| 14017 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14018 |
/* end confdefs.h. */ |
| 14019 |
/* Define kevent to an innocuous variant, in case <limits.h> declares kevent. |
| 14020 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 14021 |
#define kevent innocuous_kevent |
| 14022 |
|
| 14023 |
/* System header to define __stub macros and hopefully few prototypes, |
| 14024 |
which can conflict with char kevent (); below. |
| 14025 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 14026 |
<limits.h> exists even on freestanding compilers. */ |
| 14027 |
|
| 14028 |
#ifdef __STDC__ |
| 14029 |
# include <limits.h> |
| 14030 |
#else |
| 14031 |
# include <assert.h> |
| 14032 |
#endif |
| 14033 |
|
| 14034 |
#undef kevent |
| 14035 |
|
| 14036 |
/* Override any GCC internal prototype to avoid an error. |
| 14037 |
Use char because int might match the return type of a GCC |
| 14038 |
builtin and then its argument prototype would still apply. */ |
| 14039 |
#ifdef __cplusplus |
| 14040 |
extern "C" |
| 14041 |
#endif |
| 14042 |
char kevent (); |
| 14043 |
/* The GNU C library defines this for functions which it implements |
| 14044 |
to always fail with ENOSYS. Some functions are actually named |
| 14045 |
something starting with __ and the normal name is an alias. */ |
| 14046 |
#if defined __stub_kevent || defined __stub___kevent |
| 14047 |
choke me |
| 14048 |
#endif |
| 14049 |
|
| 14050 |
int |
| 14051 |
main () |
| 14052 |
{ |
| 14053 |
return kevent (); |
| 14054 |
; |
| 14055 |
return 0; |
| 14056 |
} |
| 14057 |
_ACEOF |
| 14058 |
if ac_fn_c_try_link "$LINENO"; then : |
| 14059 |
is_kqueue_mechanism_available="yes" |
| 14060 |
else |
| 14061 |
is_kqueue_mechanism_available="no" |
| 14062 |
fi |
| 14063 |
rm -f core conftest.err conftest.$ac_objext \ |
| 14064 |
conftest$ac_exeext conftest.$ac_ext |
| 14065 |
iopoll_mechanism_epoll=2 |
| 14066 |
|
| 14067 |
cat >>confdefs.h <<_ACEOF |
| 14068 |
#define __IOPOLL_MECHANISM_EPOLL $iopoll_mechanism_epoll |
| 14069 |
_ACEOF |
| 14070 |
|
| 14071 |
if test "$cross_compiling" = yes; then : |
| 14072 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 14073 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 14074 |
as_fn_error $? "cannot run test program while cross compiling |
| 14075 |
See \`config.log' for more details" "$LINENO" 5; } |
| 14076 |
else |
| 14077 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14078 |
/* end confdefs.h. */ |
| 14079 |
|
| 14080 |
#include <sys/epoll.h> |
| 14081 |
#include <sys/syscall.h> |
| 14082 |
#if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY) |
| 14083 |
#if !defined(__NR_epoll_create) |
| 14084 |
#if defined(__ia64__) |
| 14085 |
#define __NR_epoll_create 1243 |
| 14086 |
#elif defined(__x86_64__) |
| 14087 |
#define __NR_epoll_create 214 |
| 14088 |
#elif defined(__sparc64__) || defined(__sparc__) |
| 14089 |
#define __NR_epoll_create 193 |
| 14090 |
#elif defined(__s390__) || defined(__m68k__) |
| 14091 |
#define __NR_epoll_create 249 |
| 14092 |
#elif defined(__ppc64__) || defined(__ppc__) |
| 14093 |
#define __NR_epoll_create 236 |
| 14094 |
#elif defined(__parisc__) || defined(__arm26__) || defined(__arm__) |
| 14095 |
#define __NR_epoll_create 224 |
| 14096 |
#elif defined(__alpha__) |
| 14097 |
#define __NR_epoll_create 407 |
| 14098 |
#elif defined(__sh64__) |
| 14099 |
#define __NR_epoll_create 282 |
| 14100 |
#elif defined(__i386__) || defined(__sh__) || defined(__m32r__) || defined(__h8300__) || defined(__frv__) |
| 14101 |
#define __NR_epoll_create 254 |
| 14102 |
#else |
| 14103 |
#error No system call numbers defined for epoll family. |
| 14104 |
#endif |
| 14105 |
#endif |
| 14106 |
_syscall1(int, epoll_create, int, size) |
| 14107 |
#endif |
| 14108 |
|
| 14109 |
int |
| 14110 |
main () |
| 14111 |
{ |
| 14112 |
return epoll_create(256) == -1 ? 1 : 0 |
| 14113 |
; |
| 14114 |
return 0; |
| 14115 |
} |
| 14116 |
_ACEOF |
| 14117 |
if ac_fn_c_try_run "$LINENO"; then : |
| 14118 |
is_epoll_mechanism_available="yes" |
| 14119 |
else |
| 14120 |
is_epoll_mechanism_available="no" |
| 14121 |
fi |
| 14122 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14123 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 14124 |
fi |
| 14125 |
|
| 14126 |
iopoll_mechanism_devpoll=3 |
| 14127 |
|
| 14128 |
cat >>confdefs.h <<_ACEOF |
| 14129 |
#define __IOPOLL_MECHANISM_DEVPOLL $iopoll_mechanism_devpoll |
| 14130 |
_ACEOF |
| 14131 |
|
| 14132 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14133 |
/* end confdefs.h. */ |
| 14134 |
#include <devpoll.h> |
| 14135 |
int |
| 14136 |
main () |
| 14137 |
{ |
| 14138 |
|
| 14139 |
; |
| 14140 |
return 0; |
| 14141 |
} |
| 14142 |
_ACEOF |
| 14143 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 14144 |
is_devpoll_mechanism_available="yes" |
| 14145 |
else |
| 14146 |
is_devpoll_mechanism_available="no" |
| 14147 |
fi |
| 14148 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14149 |
if test "$is_devpoll_mechanism_available" = "yes" ; then |
| 14150 |
|
| 14151 |
$as_echo "#define HAVE_DEVPOLL_H 1" >>confdefs.h |
| 14152 |
|
| 14153 |
fi |
| 14154 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14155 |
/* end confdefs.h. */ |
| 14156 |
#include <sys/devpoll.h> |
| 14157 |
int |
| 14158 |
main () |
| 14159 |
{ |
| 14160 |
|
| 14161 |
; |
| 14162 |
return 0; |
| 14163 |
} |
| 14164 |
_ACEOF |
| 14165 |
if ac_fn_c_try_compile "$LINENO"; then : |
| 14166 |
is_devpoll_mechanism_available="yes" |
| 14167 |
else |
| 14168 |
is_devpoll_mechanism_available="no" |
| 14169 |
fi |
| 14170 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14171 |
if test "$is_devpoll_mechanism_available" = "yes" ; then |
| 14172 |
|
| 14173 |
$as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h |
| 14174 |
|
| 14175 |
fi |
| 14176 |
iopoll_mechanism_poll=4 |
| 14177 |
|
| 14178 |
cat >>confdefs.h <<_ACEOF |
| 14179 |
#define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll |
| 14180 |
_ACEOF |
| 14181 |
|
| 14182 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14183 |
/* end confdefs.h. */ |
| 14184 |
/* Define poll to an innocuous variant, in case <limits.h> declares poll. |
| 14185 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 14186 |
#define poll innocuous_poll |
| 14187 |
|
| 14188 |
/* System header to define __stub macros and hopefully few prototypes, |
| 14189 |
which can conflict with char poll (); below. |
| 14190 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 14191 |
<limits.h> exists even on freestanding compilers. */ |
| 14192 |
|
| 14193 |
#ifdef __STDC__ |
| 14194 |
# include <limits.h> |
| 14195 |
#else |
| 14196 |
# include <assert.h> |
| 14197 |
#endif |
| 14198 |
|
| 14199 |
#undef poll |
| 14200 |
|
| 14201 |
/* Override any GCC internal prototype to avoid an error. |
| 14202 |
Use char because int might match the return type of a GCC |
| 14203 |
builtin and then its argument prototype would still apply. */ |
| 14204 |
#ifdef __cplusplus |
| 14205 |
extern "C" |
| 14206 |
#endif |
| 14207 |
char poll (); |
| 14208 |
/* The GNU C library defines this for functions which it implements |
| 14209 |
to always fail with ENOSYS. Some functions are actually named |
| 14210 |
something starting with __ and the normal name is an alias. */ |
| 14211 |
#if defined __stub_poll || defined __stub___poll |
| 14212 |
choke me |
| 14213 |
#endif |
| 14214 |
|
| 14215 |
int |
| 14216 |
main () |
| 14217 |
{ |
| 14218 |
return poll (); |
| 14219 |
; |
| 14220 |
return 0; |
| 14221 |
} |
| 14222 |
_ACEOF |
| 14223 |
if ac_fn_c_try_link "$LINENO"; then : |
| 14224 |
is_poll_mechanism_available="yes" |
| 14225 |
else |
| 14226 |
is_poll_mechanism_available="no" |
| 14227 |
fi |
| 14228 |
rm -f core conftest.err conftest.$ac_objext \ |
| 14229 |
conftest$ac_exeext conftest.$ac_ext |
| 14230 |
iopoll_mechanism_select=5 |
| 14231 |
|
| 14232 |
cat >>confdefs.h <<_ACEOF |
| 14233 |
#define __IOPOLL_MECHANISM_SELECT $iopoll_mechanism_select |
| 14234 |
_ACEOF |
| 14235 |
|
| 14236 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14237 |
/* end confdefs.h. */ |
| 14238 |
/* Define select to an innocuous variant, in case <limits.h> declares select. |
| 14239 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 14240 |
#define select innocuous_select |
| 14241 |
|
| 14242 |
/* System header to define __stub macros and hopefully few prototypes, |
| 14243 |
which can conflict with char select (); below. |
| 14244 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 14245 |
<limits.h> exists even on freestanding compilers. */ |
| 14246 |
|
| 14247 |
#ifdef __STDC__ |
| 14248 |
# include <limits.h> |
| 14249 |
#else |
| 14250 |
# include <assert.h> |
| 14251 |
#endif |
| 14252 |
|
| 14253 |
#undef select |
| 14254 |
|
| 14255 |
/* Override any GCC internal prototype to avoid an error. |
| 14256 |
Use char because int might match the return type of a GCC |
| 14257 |
builtin and then its argument prototype would still apply. */ |
| 14258 |
#ifdef __cplusplus |
| 14259 |
extern "C" |
| 14260 |
#endif |
| 14261 |
char select (); |
| 14262 |
/* The GNU C library defines this for functions which it implements |
| 14263 |
to always fail with ENOSYS. Some functions are actually named |
| 14264 |
something starting with __ and the normal name is an alias. */ |
| 14265 |
#if defined __stub_select || defined __stub___select |
| 14266 |
choke me |
| 14267 |
#endif |
| 14268 |
|
| 14269 |
int |
| 14270 |
main () |
| 14271 |
{ |
| 14272 |
return select (); |
| 14273 |
; |
| 14274 |
return 0; |
| 14275 |
} |
| 14276 |
_ACEOF |
| 14277 |
if ac_fn_c_try_link "$LINENO"; then : |
| 14278 |
is_select_mechanism_available="yes" |
| 14279 |
else |
| 14280 |
is_select_mechanism_available="no" |
| 14281 |
fi |
| 14282 |
rm -f core conftest.err conftest.$ac_objext \ |
| 14283 |
conftest$ac_exeext conftest.$ac_ext |
| 14284 |
optimal_iopoll_mechanism="none" |
| 14285 |
for mechanism in "kqueue" "epoll" "devpoll" "poll" "select" ; do # order is important |
| 14286 |
eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available" |
| 14287 |
if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then |
| 14288 |
optimal_iopoll_mechanism="$mechanism" |
| 14289 |
break |
| 14290 |
fi |
| 14291 |
done |
| 14292 |
if test "$desired_iopoll_mechanism" = "none" ; then |
| 14293 |
if test "$optimal_iopoll_mechanism" = "none" ; then |
| 14294 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| 14295 |
$as_echo "none" >&6; } |
| 14296 |
as_fn_error $? "no iopoll mechanism found!" "$LINENO" 5 |
| 14297 |
else |
| 14298 |
selected_iopoll_mechanism=$optimal_iopoll_mechanism |
| 14299 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5 |
| 14300 |
$as_echo "$selected_iopoll_mechanism" >&6; } |
| 14301 |
fi |
| 14302 |
else |
| 14303 |
eval "is_desired_iopoll_mechanism_available=\$is_${desired_iopoll_mechanism}_mechanism_available" |
| 14304 |
if test "$is_desired_iopoll_mechanism_available" = "yes" ; then |
| 14305 |
selected_iopoll_mechanism=$desired_iopoll_mechanism |
| 14306 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5 |
| 14307 |
$as_echo "$selected_iopoll_mechanism" >&6; } |
| 14308 |
else |
| 14309 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| 14310 |
$as_echo "none" >&6; } |
| 14311 |
as_fn_error $? "desired iopoll mechanism, $desired_iopoll_mechanism, is not available" "$LINENO" 5 |
| 14312 |
fi |
| 14313 |
fi |
| 14314 |
eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}" |
| 14315 |
|
| 14316 |
cat >>confdefs.h <<_ACEOF |
| 14317 |
#define USE_IOPOLL_MECHANISM $use_iopoll_mechanism |
| 14318 |
_ACEOF |
| 14319 |
|
| 14320 |
|
| 14321 |
|
| 14322 |
# Check whether --enable-halfops was given. |
| 14323 |
if test "${enable_halfops+set}" = set; then : |
| 14324 |
enableval=$enable_halfops; halfops="$enableval" |
| 14325 |
else |
| 14326 |
halfops="no" |
| 14327 |
fi |
| 14328 |
|
| 14329 |
if test "$halfops" = "yes" ; then |
| 14330 |
|
| 14331 |
$as_echo "#define HALFOPS 1" >>confdefs.h |
| 14332 |
|
| 14333 |
fi |
| 14334 |
|
| 14335 |
|
| 14336 |
# Check whether --enable-debugging was given. |
| 14337 |
if test "${enable_debugging+set}" = set; then : |
| 14338 |
enableval=$enable_debugging; debugging="$enableval" |
| 14339 |
else |
| 14340 |
debugging="no" |
| 14341 |
fi |
| 14342 |
|
| 14343 |
if test "$debugging" = "yes" ; then |
| 14344 |
CFLAGS="-Wall -g -O0" |
| 14345 |
fi |
| 14346 |
|
| 14347 |
|
| 14348 |
# Check whether --enable-warnings was given. |
| 14349 |
if test "${enable_warnings+set}" = set; then : |
| 14350 |
enableval=$enable_warnings; warnings="$enableval" |
| 14351 |
else |
| 14352 |
warnings="no" |
| 14353 |
fi |
| 14354 |
|
| 14355 |
if test "$warnings" = "yes" ; then |
| 14356 |
CFLAGS="-Wall -Wextra -Wno-unused -Wcast-qual -Wcast-align -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wredundant-decls -Wshadow -Wwrite-strings -Wundef" |
| 14357 |
fi |
| 14358 |
|
| 14359 |
|
| 14360 |
|
| 14361 |
prefix_NONE= |
| 14362 |
exec_prefix_NONE= |
| 14363 |
test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix |
| 14364 |
test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix |
| 14365 |
eval ac_define_dir="\"$prefix\"" |
| 14366 |
eval ac_define_dir="\"$ac_define_dir\"" |
| 14367 |
PREFIX="$ac_define_dir" |
| 14368 |
|
| 14369 |
|
| 14370 |
cat >>confdefs.h <<_ACEOF |
| 14371 |
#define PREFIX "$ac_define_dir" |
| 14372 |
_ACEOF |
| 14373 |
|
| 14374 |
test "$prefix_NONE" && prefix=NONE |
| 14375 |
test "$exec_prefix_NONE" && exec_prefix=NONE |
| 14376 |
|
| 14377 |
|
| 14378 |
prefix_NONE= |
| 14379 |
exec_prefix_NONE= |
| 14380 |
test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix |
| 14381 |
test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix |
| 14382 |
eval ac_define_dir="\"$sysconfdir\"" |
| 14383 |
eval ac_define_dir="\"$ac_define_dir\"" |
| 14384 |
SYSCONFDIR="$ac_define_dir" |
| 14385 |
|
| 14386 |
|
| 14387 |
cat >>confdefs.h <<_ACEOF |
| 14388 |
#define SYSCONFDIR "$ac_define_dir" |
| 14389 |
_ACEOF |
| 14390 |
|
| 14391 |
test "$prefix_NONE" && prefix=NONE |
| 14392 |
test "$exec_prefix_NONE" && exec_prefix=NONE |
| 14393 |
|
| 14394 |
|
| 14395 |
prefix_NONE= |
| 14396 |
exec_prefix_NONE= |
| 14397 |
test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix |
| 14398 |
test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix |
| 14399 |
eval ac_define_dir="\"$libdir\"" |
| 14400 |
eval ac_define_dir="\"$ac_define_dir\"" |
| 14401 |
LIBDIR="$ac_define_dir" |
| 14402 |
|
| 14403 |
|
| 14404 |
cat >>confdefs.h <<_ACEOF |
| 14405 |
#define LIBDIR "$ac_define_dir" |
| 14406 |
_ACEOF |
| 14407 |
|
| 14408 |
test "$prefix_NONE" && prefix=NONE |
| 14409 |
test "$exec_prefix_NONE" && exec_prefix=NONE |
| 14410 |
|
| 14411 |
|
| 14412 |
prefix_NONE= |
| 14413 |
exec_prefix_NONE= |
| 14414 |
test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix |
| 14415 |
test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix |
| 14416 |
eval ac_define_dir="\"$datadir\"" |
| 14417 |
eval ac_define_dir="\"$ac_define_dir\"" |
| 14418 |
DATADIR="$ac_define_dir" |
| 14419 |
|
| 14420 |
|
| 14421 |
cat >>confdefs.h <<_ACEOF |
| 14422 |
#define DATADIR "$ac_define_dir" |
| 14423 |
_ACEOF |
| 14424 |
|
| 14425 |
test "$prefix_NONE" && prefix=NONE |
| 14426 |
test "$exec_prefix_NONE" && exec_prefix=NONE |
| 14427 |
|
| 14428 |
|
| 14429 |
prefix_NONE= |
| 14430 |
exec_prefix_NONE= |
| 14431 |
test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix |
| 14432 |
test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix |
| 14433 |
eval ac_define_dir="\"$localstatedir\"" |
| 14434 |
eval ac_define_dir="\"$ac_define_dir\"" |
| 14435 |
LOCALSTATEDIR="$ac_define_dir" |
| 14436 |
|
| 14437 |
|
| 14438 |
cat >>confdefs.h <<_ACEOF |
| 14439 |
#define LOCALSTATEDIR "$ac_define_dir" |
| 14440 |
_ACEOF |
| 14441 |
|
| 14442 |
test "$prefix_NONE" && prefix=NONE |
| 14443 |
test "$exec_prefix_NONE" && exec_prefix=NONE |
| 14444 |
|
| 14445 |
|
| 14446 |
ac_config_files="$ac_config_files Makefile src/Makefile libltdl/Makefile messages/Makefile modules/Makefile modules/core/Makefile doc/Makefile help/Makefile help/opers/Makefile help/users/Makefile tools/Makefile" |
| 14447 |
|
| 14448 |
|
| 14449 |
cat >confcache <<\_ACEOF |
| 14450 |
# This file is a shell script that caches the results of configure |
| 14451 |
# tests run on this system so they can be shared between configure |
| 14452 |
# scripts and configure runs, see configure's option --config-cache. |
| 14453 |
# It is not useful on other systems. If it contains results you don't |
| 14454 |
# want to keep, you may remove or edit it. |
| 14455 |
# |
| 14456 |
# config.status only pays attention to the cache file if you give it |
| 14457 |
# the --recheck option to rerun configure. |
| 14458 |
# |
| 14459 |
# `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 14460 |
# loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 14461 |
# following values. |
| 14462 |
|
| 14463 |
_ACEOF |
| 14464 |
|
| 14465 |
# The following way of writing the cache mishandles newlines in values, |
| 14466 |
# but we know of no workaround that is simple, portable, and efficient. |
| 14467 |
# So, we kill variables containing newlines. |
| 14468 |
# Ultrix sh set writes to stderr and can't be redirected directly, |
| 14469 |
# and sets the high bit in the cache file unless we assign to the vars. |
| 14470 |
( |
| 14471 |
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 14472 |
eval ac_val=\$$ac_var |
| 14473 |
case $ac_val in #( |
| 14474 |
*${as_nl}*) |
| 14475 |
case $ac_var in #( |
| 14476 |
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 14477 |
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 14478 |
esac |
| 14479 |
case $ac_var in #( |
| 14480 |
_ | IFS | as_nl) ;; #( |
| 14481 |
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 14482 |
*) { eval $ac_var=; unset $ac_var;} ;; |
| 14483 |
esac ;; |
| 14484 |
esac |
| 14485 |
done |
| 14486 |
|
| 14487 |
(set) 2>&1 | |
| 14488 |
case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 14489 |
*${as_nl}ac_space=\ *) |
| 14490 |
# `set' does not quote correctly, so add quotes: double-quote |
| 14491 |
# substitution turns \\\\ into \\, and sed turns \\ into \. |
| 14492 |
sed -n \ |
| 14493 |
"s/'/'\\\\''/g; |
| 14494 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 14495 |
;; #( |
| 14496 |
*) |
| 14497 |
# `set' quotes correctly as required by POSIX, so do not add quotes. |
| 14498 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 14499 |
;; |
| 14500 |
esac | |
| 14501 |
sort |
| 14502 |
) | |
| 14503 |
sed ' |
| 14504 |
/^ac_cv_env_/b end |
| 14505 |
t clear |
| 14506 |
:clear |
| 14507 |
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 14508 |
t end |
| 14509 |
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 14510 |
:end' >>confcache |
| 14511 |
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 14512 |
if test -w "$cache_file"; then |
| 14513 |
if test "x$cache_file" != "x/dev/null"; then |
| 14514 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 14515 |
$as_echo "$as_me: updating cache $cache_file" >&6;} |
| 14516 |
if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 14517 |
cat confcache >"$cache_file" |
| 14518 |
else |
| 14519 |
case $cache_file in #( |
| 14520 |
*/* | ?:*) |
| 14521 |
mv -f confcache "$cache_file"$$ && |
| 14522 |
mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 14523 |
*) |
| 14524 |
mv -f confcache "$cache_file" ;; |
| 14525 |
esac |
| 14526 |
fi |
| 14527 |
fi |
| 14528 |
else |
| 14529 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 14530 |
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
| 14531 |
fi |
| 14532 |
fi |
| 14533 |
rm -f confcache |
| 14534 |
|
| 14535 |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 14536 |
# Let make expand exec_prefix. |
| 14537 |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 14538 |
|
| 14539 |
DEFS=-DHAVE_CONFIG_H |
| 14540 |
|
| 14541 |
ac_libobjs= |
| 14542 |
ac_ltlibobjs= |
| 14543 |
U= |
| 14544 |
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 14545 |
# 1. Remove the extension, and $U if already installed. |
| 14546 |
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 14547 |
ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
| 14548 |
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 14549 |
# will be set to the directory where LIBOBJS objects are built. |
| 14550 |
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 14551 |
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
| 14552 |
done |
| 14553 |
LIBOBJS=$ac_libobjs |
| 14554 |
|
| 14555 |
LTLIBOBJS=$ac_ltlibobjs |
| 14556 |
|
| 14557 |
|
| 14558 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
| 14559 |
$as_echo_n "checking that generated files are newer than configure... " >&6; } |
| 14560 |
if test -n "$am_sleep_pid"; then |
| 14561 |
# Hide warnings about reused PIDs. |
| 14562 |
wait $am_sleep_pid 2>/dev/null |
| 14563 |
fi |
| 14564 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 |
| 14565 |
$as_echo "done" >&6; } |
| 14566 |
if test -n "$EXEEXT"; then |
| 14567 |
am__EXEEXT_TRUE= |
| 14568 |
am__EXEEXT_FALSE='#' |
| 14569 |
else |
| 14570 |
am__EXEEXT_TRUE='#' |
| 14571 |
am__EXEEXT_FALSE= |
| 14572 |
fi |
| 14573 |
|
| 14574 |
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
| 14575 |
as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
| 14576 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 14577 |
fi |
| 14578 |
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
| 14579 |
as_fn_error $? "conditional \"AMDEP\" was never defined. |
| 14580 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 14581 |
fi |
| 14582 |
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
| 14583 |
as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
| 14584 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 14585 |
fi |
| 14586 |
if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then |
| 14587 |
as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined. |
| 14588 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 14589 |
fi |
| 14590 |
if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then |
| 14591 |
as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined. |
| 14592 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 14593 |
fi |
| 14594 |
LT_CONFIG_H=config.h |
| 14595 |
|
| 14596 |
_ltdl_libobjs= |
| 14597 |
_ltdl_ltlibobjs= |
| 14598 |
if test -n "$_LT_LIBOBJS"; then |
| 14599 |
# Remove the extension. |
| 14600 |
_lt_sed_drop_objext='s/\.o$//;s/\.obj$//' |
| 14601 |
for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do |
| 14602 |
_ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext" |
| 14603 |
_ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo" |
| 14604 |
done |
| 14605 |
fi |
| 14606 |
ltdl_LIBOBJS=$_ltdl_libobjs |
| 14607 |
|
| 14608 |
ltdl_LTLIBOBJS=$_ltdl_ltlibobjs |
| 14609 |
|
| 14610 |
|
| 14611 |
|
| 14612 |
if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then |
| 14613 |
as_fn_error $? "conditional \"ENABLE_SSL\" was never defined. |
| 14614 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 14615 |
fi |
| 14616 |
|
| 14617 |
: "${CONFIG_STATUS=./config.status}" |
| 14618 |
ac_write_fail=0 |
| 14619 |
ac_clean_files_save=$ac_clean_files |
| 14620 |
ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 14621 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 14622 |
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 14623 |
as_write_fail=0 |
| 14624 |
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
| 14625 |
#! $SHELL |
| 14626 |
# Generated by $as_me. |
| 14627 |
# Run this file to recreate the current configuration. |
| 14628 |
# Compiler output produced by configure, useful for debugging |
| 14629 |
# configure, is in config.log if it exists. |
| 14630 |
|
| 14631 |
debug=false |
| 14632 |
ac_cs_recheck=false |
| 14633 |
ac_cs_silent=false |
| 14634 |
|
| 14635 |
SHELL=\${CONFIG_SHELL-$SHELL} |
| 14636 |
export SHELL |
| 14637 |
_ASEOF |
| 14638 |
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 14639 |
## -------------------- ## |
| 14640 |
## M4sh Initialization. ## |
| 14641 |
## -------------------- ## |
| 14642 |
|
| 14643 |
# Be more Bourne compatible |
| 14644 |
DUALCASE=1; export DUALCASE # for MKS sh |
| 14645 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
| 14646 |
emulate sh |
| 14647 |
NULLCMD=: |
| 14648 |
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 14649 |
# is contrary to our usage. Disable this feature. |
| 14650 |
alias -g '${1+"$@"}'='"$@"' |
| 14651 |
setopt NO_GLOB_SUBST |
| 14652 |
else |
| 14653 |
case `(set -o) 2>/dev/null` in #( |
| 14654 |
*posix*) : |
| 14655 |
set -o posix ;; #( |
| 14656 |
*) : |
| 14657 |
;; |
| 14658 |
esac |
| 14659 |
fi |
| 14660 |
|
| 14661 |
|
| 14662 |
as_nl=' |
| 14663 |
' |
| 14664 |
export as_nl |
| 14665 |
# Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 14666 |
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 14667 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 14668 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 14669 |
# Prefer a ksh shell builtin over an external printf program on Solaris, |
| 14670 |
# but without wasting forks for bash or zsh. |
| 14671 |
if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 14672 |
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 14673 |
as_echo='print -r --' |
| 14674 |
as_echo_n='print -rn --' |
| 14675 |
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 14676 |
as_echo='printf %s\n' |
| 14677 |
as_echo_n='printf %s' |
| 14678 |
else |
| 14679 |
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 14680 |
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 14681 |
as_echo_n='/usr/ucb/echo -n' |
| 14682 |
else |
| 14683 |
as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 14684 |
as_echo_n_body='eval |
| 14685 |
arg=$1; |
| 14686 |
case $arg in #( |
| 14687 |
*"$as_nl"*) |
| 14688 |
expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 14689 |
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 14690 |
esac; |
| 14691 |
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 14692 |
' |
| 14693 |
export as_echo_n_body |
| 14694 |
as_echo_n='sh -c $as_echo_n_body as_echo' |
| 14695 |
fi |
| 14696 |
export as_echo_body |
| 14697 |
as_echo='sh -c $as_echo_body as_echo' |
| 14698 |
fi |
| 14699 |
|
| 14700 |
# The user is always right. |
| 14701 |
if test "${PATH_SEPARATOR+set}" != set; then |
| 14702 |
PATH_SEPARATOR=: |
| 14703 |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 14704 |
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 14705 |
PATH_SEPARATOR=';' |
| 14706 |
} |
| 14707 |
fi |
| 14708 |
|
| 14709 |
|
| 14710 |
# IFS |
| 14711 |
# We need space, tab and new line, in precisely that order. Quoting is |
| 14712 |
# there to prevent editors from complaining about space-tab. |
| 14713 |
# (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 14714 |
# splitting by setting IFS to empty value.) |
| 14715 |
IFS=" "" $as_nl" |
| 14716 |
|
| 14717 |
# Find who we are. Look in the path if we contain no directory separator. |
| 14718 |
as_myself= |
| 14719 |
case $0 in #(( |
| 14720 |
*[\\/]* ) as_myself=$0 ;; |
| 14721 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14722 |
for as_dir in $PATH |
| 14723 |
do |
| 14724 |
IFS=$as_save_IFS |
| 14725 |
test -z "$as_dir" && as_dir=. |
| 14726 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 14727 |
done |
| 14728 |
IFS=$as_save_IFS |
| 14729 |
|
| 14730 |
;; |
| 14731 |
esac |
| 14732 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
| 14733 |
# in which case we are not to be found in the path. |
| 14734 |
if test "x$as_myself" = x; then |
| 14735 |
as_myself=$0 |
| 14736 |
fi |
| 14737 |
if test ! -f "$as_myself"; then |
| 14738 |
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 14739 |
exit 1 |
| 14740 |
fi |
| 14741 |
|
| 14742 |
# Unset variables that we do not need and which cause bugs (e.g. in |
| 14743 |
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 14744 |
# suppresses any "Segmentation fault" message there. '((' could |
| 14745 |
# trigger a bug in pdksh 5.2.14. |
| 14746 |
for as_var in BASH_ENV ENV MAIL MAILPATH |
| 14747 |
do eval test x\${$as_var+set} = xset \ |
| 14748 |
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 14749 |
done |
| 14750 |
PS1='$ ' |
| 14751 |
PS2='> ' |
| 14752 |
PS4='+ ' |
| 14753 |
|
| 14754 |
# NLS nuisances. |
| 14755 |
LC_ALL=C |
| 14756 |
export LC_ALL |
| 14757 |
LANGUAGE=C |
| 14758 |
export LANGUAGE |
| 14759 |
|
| 14760 |
# CDPATH. |
| 14761 |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 14762 |
|
| 14763 |
|
| 14764 |
# as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 14765 |
# ---------------------------------------- |
| 14766 |
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 14767 |
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 14768 |
# script with STATUS, using 1 if that was 0. |
| 14769 |
as_fn_error () |
| 14770 |
{ |
| 14771 |
as_status=$1; test $as_status -eq 0 && as_status=1 |
| 14772 |
if test "$4"; then |
| 14773 |
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 14774 |
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 14775 |
fi |
| 14776 |
$as_echo "$as_me: error: $2" >&2 |
| 14777 |
as_fn_exit $as_status |
| 14778 |
} # as_fn_error |
| 14779 |
|
| 14780 |
|
| 14781 |
# as_fn_set_status STATUS |
| 14782 |
# ----------------------- |
| 14783 |
# Set $? to STATUS, without forking. |
| 14784 |
as_fn_set_status () |
| 14785 |
{ |
| 14786 |
return $1 |
| 14787 |
} # as_fn_set_status |
| 14788 |
|
| 14789 |
# as_fn_exit STATUS |
| 14790 |
# ----------------- |
| 14791 |
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 14792 |
as_fn_exit () |
| 14793 |
{ |
| 14794 |
set +e |
| 14795 |
as_fn_set_status $1 |
| 14796 |
exit $1 |
| 14797 |
} # as_fn_exit |
| 14798 |
|
| 14799 |
# as_fn_unset VAR |
| 14800 |
# --------------- |
| 14801 |
# Portably unset VAR. |
| 14802 |
as_fn_unset () |
| 14803 |
{ |
| 14804 |
{ eval $1=; unset $1;} |
| 14805 |
} |
| 14806 |
as_unset=as_fn_unset |
| 14807 |
# as_fn_append VAR VALUE |
| 14808 |
# ---------------------- |
| 14809 |
# Append the text in VALUE to the end of the definition contained in VAR. Take |
| 14810 |
# advantage of any shell optimizations that allow amortized linear growth over |
| 14811 |
# repeated appends, instead of the typical quadratic growth present in naive |
| 14812 |
# implementations. |
| 14813 |
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 14814 |
eval 'as_fn_append () |
| 14815 |
{ |
| 14816 |
eval $1+=\$2 |
| 14817 |
}' |
| 14818 |
else |
| 14819 |
as_fn_append () |
| 14820 |
{ |
| 14821 |
eval $1=\$$1\$2 |
| 14822 |
} |
| 14823 |
fi # as_fn_append |
| 14824 |
|
| 14825 |
# as_fn_arith ARG... |
| 14826 |
# ------------------ |
| 14827 |
# Perform arithmetic evaluation on the ARGs, and store the result in the |
| 14828 |
# global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 14829 |
# must be portable across $(()) and expr. |
| 14830 |
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 14831 |
eval 'as_fn_arith () |
| 14832 |
{ |
| 14833 |
as_val=$(( $* )) |
| 14834 |
}' |
| 14835 |
else |
| 14836 |
as_fn_arith () |
| 14837 |
{ |
| 14838 |
as_val=`expr "$@" || test $? -eq 1` |
| 14839 |
} |
| 14840 |
fi # as_fn_arith |
| 14841 |
|
| 14842 |
|
| 14843 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
| 14844 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 14845 |
as_expr=expr |
| 14846 |
else |
| 14847 |
as_expr=false |
| 14848 |
fi |
| 14849 |
|
| 14850 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 14851 |
as_basename=basename |
| 14852 |
else |
| 14853 |
as_basename=false |
| 14854 |
fi |
| 14855 |
|
| 14856 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 14857 |
as_dirname=dirname |
| 14858 |
else |
| 14859 |
as_dirname=false |
| 14860 |
fi |
| 14861 |
|
| 14862 |
as_me=`$as_basename -- "$0" || |
| 14863 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 14864 |
X"$0" : 'X\(//\)$' \| \ |
| 14865 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 14866 |
$as_echo X/"$0" | |
| 14867 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 14868 |
s//\1/ |
| 14869 |
q |
| 14870 |
} |
| 14871 |
/^X\/\(\/\/\)$/{ |
| 14872 |
s//\1/ |
| 14873 |
q |
| 14874 |
} |
| 14875 |
/^X\/\(\/\).*/{ |
| 14876 |
s//\1/ |
| 14877 |
q |
| 14878 |
} |
| 14879 |
s/.*/./; q'` |
| 14880 |
|
| 14881 |
# Avoid depending upon Character Ranges. |
| 14882 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 14883 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 14884 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 14885 |
as_cr_digits='0123456789' |
| 14886 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 14887 |
|
| 14888 |
ECHO_C= ECHO_N= ECHO_T= |
| 14889 |
case `echo -n x` in #((((( |
| 14890 |
-n*) |
| 14891 |
case `echo 'xy\c'` in |
| 14892 |
*c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 14893 |
xy) ECHO_C='\c';; |
| 14894 |
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 14895 |
ECHO_T=' ';; |
| 14896 |
esac;; |
| 14897 |
*) |
| 14898 |
ECHO_N='-n';; |
| 14899 |
esac |
| 14900 |
|
| 14901 |
rm -f conf$$ conf$$.exe conf$$.file |
| 14902 |
if test -d conf$$.dir; then |
| 14903 |
rm -f conf$$.dir/conf$$.file |
| 14904 |
else |
| 14905 |
rm -f conf$$.dir |
| 14906 |
mkdir conf$$.dir 2>/dev/null |
| 14907 |
fi |
| 14908 |
if (echo >conf$$.file) 2>/dev/null; then |
| 14909 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 14910 |
as_ln_s='ln -s' |
| 14911 |
# ... but there are two gotchas: |
| 14912 |
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 14913 |
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 14914 |
# In both cases, we have to default to `cp -pR'. |
| 14915 |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 14916 |
as_ln_s='cp -pR' |
| 14917 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
| 14918 |
as_ln_s=ln |
| 14919 |
else |
| 14920 |
as_ln_s='cp -pR' |
| 14921 |
fi |
| 14922 |
else |
| 14923 |
as_ln_s='cp -pR' |
| 14924 |
fi |
| 14925 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 14926 |
rmdir conf$$.dir 2>/dev/null |
| 14927 |
|
| 14928 |
|
| 14929 |
# as_fn_mkdir_p |
| 14930 |
# ------------- |
| 14931 |
# Create "$as_dir" as a directory, including parents if necessary. |
| 14932 |
as_fn_mkdir_p () |
| 14933 |
{ |
| 14934 |
|
| 14935 |
case $as_dir in #( |
| 14936 |
-*) as_dir=./$as_dir;; |
| 14937 |
esac |
| 14938 |
test -d "$as_dir" || eval $as_mkdir_p || { |
| 14939 |
as_dirs= |
| 14940 |
while :; do |
| 14941 |
case $as_dir in #( |
| 14942 |
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 14943 |
*) as_qdir=$as_dir;; |
| 14944 |
esac |
| 14945 |
as_dirs="'$as_qdir' $as_dirs" |
| 14946 |
as_dir=`$as_dirname -- "$as_dir" || |
| 14947 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 14948 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 14949 |
X"$as_dir" : 'X\(//\)$' \| \ |
| 14950 |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 14951 |
$as_echo X"$as_dir" | |
| 14952 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 14953 |
s//\1/ |
| 14954 |
q |
| 14955 |
} |
| 14956 |
/^X\(\/\/\)[^/].*/{ |
| 14957 |
s//\1/ |
| 14958 |
q |
| 14959 |
} |
| 14960 |
/^X\(\/\/\)$/{ |
| 14961 |
s//\1/ |
| 14962 |
q |
| 14963 |
} |
| 14964 |
/^X\(\/\).*/{ |
| 14965 |
s//\1/ |
| 14966 |
q |
| 14967 |
} |
| 14968 |
s/.*/./; q'` |
| 14969 |
test -d "$as_dir" && break |
| 14970 |
done |
| 14971 |
test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 14972 |
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 14973 |
|
| 14974 |
|
| 14975 |
} # as_fn_mkdir_p |
| 14976 |
if mkdir -p . 2>/dev/null; then |
| 14977 |
as_mkdir_p='mkdir -p "$as_dir"' |
| 14978 |
else |
| 14979 |
test -d ./-p && rmdir ./-p |
| 14980 |
as_mkdir_p=false |
| 14981 |
fi |
| 14982 |
|
| 14983 |
|
| 14984 |
# as_fn_executable_p FILE |
| 14985 |
# ----------------------- |
| 14986 |
# Test if FILE is an executable regular file. |
| 14987 |
as_fn_executable_p () |
| 14988 |
{ |
| 14989 |
test -f "$1" && test -x "$1" |
| 14990 |
} # as_fn_executable_p |
| 14991 |
as_test_x='test -x' |
| 14992 |
as_executable_p=as_fn_executable_p |
| 14993 |
|
| 14994 |
# Sed expression to map a string onto a valid CPP name. |
| 14995 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 14996 |
|
| 14997 |
# Sed expression to map a string onto a valid variable name. |
| 14998 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 14999 |
|
| 15000 |
|
| 15001 |
exec 6>&1 |
| 15002 |
## ----------------------------------- ## |
| 15003 |
## Main body of $CONFIG_STATUS script. ## |
| 15004 |
## ----------------------------------- ## |
| 15005 |
_ASEOF |
| 15006 |
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
| 15007 |
|
| 15008 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 15009 |
# Save the log message, to keep $0 and so on meaningful, and to |
| 15010 |
# report actual input values of CONFIG_FILES etc. instead of their |
| 15011 |
# values after options handling. |
| 15012 |
ac_log=" |
| 15013 |
This file was extended by ircd-hybrid $as_me TRUNK, which was |
| 15014 |
generated by GNU Autoconf 2.69. Invocation command line was |
| 15015 |
|
| 15016 |
CONFIG_FILES = $CONFIG_FILES |
| 15017 |
CONFIG_HEADERS = $CONFIG_HEADERS |
| 15018 |
CONFIG_LINKS = $CONFIG_LINKS |
| 15019 |
CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 15020 |
$ $0 $@ |
| 15021 |
|
| 15022 |
on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 15023 |
" |
| 15024 |
|
| 15025 |
_ACEOF |
| 15026 |
|
| 15027 |
case $ac_config_files in *" |
| 15028 |
"*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 15029 |
esac |
| 15030 |
|
| 15031 |
case $ac_config_headers in *" |
| 15032 |
"*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 15033 |
esac |
| 15034 |
|
| 15035 |
|
| 15036 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 15037 |
# Files that config.status was made for. |
| 15038 |
config_files="$ac_config_files" |
| 15039 |
config_headers="$ac_config_headers" |
| 15040 |
config_commands="$ac_config_commands" |
| 15041 |
|
| 15042 |
_ACEOF |
| 15043 |
|
| 15044 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 15045 |
ac_cs_usage="\ |
| 15046 |
\`$as_me' instantiates files and other configuration actions |
| 15047 |
from templates according to the current configuration. Unless the files |
| 15048 |
and actions are specified as TAGs, all are instantiated by default. |
| 15049 |
|
| 15050 |
Usage: $0 [OPTION]... [TAG]... |
| 15051 |
|
| 15052 |
-h, --help print this help, then exit |
| 15053 |
-V, --version print version number and configuration settings, then exit |
| 15054 |
--config print configuration, then exit |
| 15055 |
-q, --quiet, --silent |
| 15056 |
do not print progress messages |
| 15057 |
-d, --debug don't remove temporary files |
| 15058 |
--recheck update $as_me by reconfiguring in the same conditions |
| 15059 |
--file=FILE[:TEMPLATE] |
| 15060 |
instantiate the configuration file FILE |
| 15061 |
--header=FILE[:TEMPLATE] |
| 15062 |
instantiate the configuration header FILE |
| 15063 |
|
| 15064 |
Configuration files: |
| 15065 |
$config_files |
| 15066 |
|
| 15067 |
Configuration headers: |
| 15068 |
$config_headers |
| 15069 |
|
| 15070 |
Configuration commands: |
| 15071 |
$config_commands |
| 15072 |
|
| 15073 |
Report bugs to <bugs@ircd-hybrid.org>." |
| 15074 |
|
| 15075 |
_ACEOF |
| 15076 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 15077 |
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
| 15078 |
ac_cs_version="\\ |
| 15079 |
ircd-hybrid config.status TRUNK |
| 15080 |
configured by $0, generated by GNU Autoconf 2.69, |
| 15081 |
with options \\"\$ac_cs_config\\" |
| 15082 |
|
| 15083 |
Copyright (C) 2012 Free Software Foundation, Inc. |
| 15084 |
This config.status script is free software; the Free Software Foundation |
| 15085 |
gives unlimited permission to copy, distribute and modify it." |
| 15086 |
|
| 15087 |
ac_pwd='$ac_pwd' |
| 15088 |
srcdir='$srcdir' |
| 15089 |
INSTALL='$INSTALL' |
| 15090 |
MKDIR_P='$MKDIR_P' |
| 15091 |
AWK='$AWK' |
| 15092 |
test -n "\$AWK" || AWK=awk |
| 15093 |
_ACEOF |
| 15094 |
|
| 15095 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 15096 |
# The default lists apply if the user does not specify any file. |
| 15097 |
ac_need_defaults=: |
| 15098 |
while test $# != 0 |
| 15099 |
do |
| 15100 |
case $1 in |
| 15101 |
--*=?*) |
| 15102 |
ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 15103 |
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
| 15104 |
ac_shift=: |
| 15105 |
;; |
| 15106 |
--*=) |
| 15107 |
ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 15108 |
ac_optarg= |
| 15109 |
ac_shift=: |
| 15110 |
;; |
| 15111 |
*) |
| 15112 |
ac_option=$1 |
| 15113 |
ac_optarg=$2 |
| 15114 |
ac_shift=shift |
| 15115 |
;; |
| 15116 |
esac |
| 15117 |
|
| 15118 |
case $ac_option in |
| 15119 |
# Handling of the options. |
| 15120 |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 15121 |
ac_cs_recheck=: ;; |
| 15122 |
--version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 15123 |
$as_echo "$ac_cs_version"; exit ;; |
| 15124 |
--config | --confi | --conf | --con | --co | --c ) |
| 15125 |
$as_echo "$ac_cs_config"; exit ;; |
| 15126 |
--debug | --debu | --deb | --de | --d | -d ) |
| 15127 |
debug=: ;; |
| 15128 |
--file | --fil | --fi | --f ) |
| 15129 |
$ac_shift |
| 15130 |
case $ac_optarg in |
| 15131 |
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 15132 |
'') as_fn_error $? "missing file argument" ;; |
| 15133 |
esac |
| 15134 |
as_fn_append CONFIG_FILES " '$ac_optarg'" |
| 15135 |
ac_need_defaults=false;; |
| 15136 |
--header | --heade | --head | --hea ) |
| 15137 |
$ac_shift |
| 15138 |
case $ac_optarg in |
| 15139 |
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 15140 |
esac |
| 15141 |
as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
| 15142 |
ac_need_defaults=false;; |
| 15143 |
--he | --h) |
| 15144 |
# Conflict between --help and --header |
| 15145 |
as_fn_error $? "ambiguous option: \`$1' |
| 15146 |
Try \`$0 --help' for more information.";; |
| 15147 |
--help | --hel | -h ) |
| 15148 |
$as_echo "$ac_cs_usage"; exit ;; |
| 15149 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 15150 |
| -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 15151 |
ac_cs_silent=: ;; |
| 15152 |
|
| 15153 |
# This is an error. |
| 15154 |
-*) as_fn_error $? "unrecognized option: \`$1' |
| 15155 |
Try \`$0 --help' for more information." ;; |
| 15156 |
|
| 15157 |
*) as_fn_append ac_config_targets " $1" |
| 15158 |
ac_need_defaults=false ;; |
| 15159 |
|
| 15160 |
esac |
| 15161 |
shift |
| 15162 |
done |
| 15163 |
|
| 15164 |
ac_configure_extra_args= |
| 15165 |
|
| 15166 |
if $ac_cs_silent; then |
| 15167 |
exec 6>/dev/null |
| 15168 |
ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 15169 |
fi |
| 15170 |
|
| 15171 |
_ACEOF |
| 15172 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 15173 |
if \$ac_cs_recheck; then |
| 15174 |
set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 15175 |
shift |
| 15176 |
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 15177 |
CONFIG_SHELL='$SHELL' |
| 15178 |
export CONFIG_SHELL |
| 15179 |
exec "\$@" |
| 15180 |
fi |
| 15181 |
|
| 15182 |
_ACEOF |
| 15183 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 15184 |
exec 5>>config.log |
| 15185 |
{ |
| 15186 |
echo |
| 15187 |
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 15188 |
## Running $as_me. ## |
| 15189 |
_ASBOX |
| 15190 |
$as_echo "$ac_log" |
| 15191 |
} >&5 |
| 15192 |
|
| 15193 |
_ACEOF |
| 15194 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 15195 |
# |
| 15196 |
# INIT-COMMANDS |
| 15197 |
# |
| 15198 |
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
| 15199 |
|
| 15200 |
|
| 15201 |
# The HP-UX ksh and POSIX shell print the target directory to stdout |
| 15202 |
# if CDPATH is set. |
| 15203 |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 15204 |
|
| 15205 |
sed_quote_subst='$sed_quote_subst' |
| 15206 |
double_quote_subst='$double_quote_subst' |
| 15207 |
delay_variable_subst='$delay_variable_subst' |
| 15208 |
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
| 15209 |
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' |
| 15210 |
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' |
| 15211 |
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' |
| 15212 |
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' |
| 15213 |
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' |
| 15214 |
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' |
| 15215 |
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' |
| 15216 |
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' |
| 15217 |
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' |
| 15218 |
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' |
| 15219 |
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' |
| 15220 |
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' |
| 15221 |
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' |
| 15222 |
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' |
| 15223 |
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' |
| 15224 |
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' |
| 15225 |
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' |
| 15226 |
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' |
| 15227 |
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' |
| 15228 |
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' |
| 15229 |
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' |
| 15230 |
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' |
| 15231 |
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' |
| 15232 |
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' |
| 15233 |
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' |
| 15234 |
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' |
| 15235 |
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' |
| 15236 |
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' |
| 15237 |
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' |
| 15238 |
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' |
| 15239 |
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' |
| 15240 |
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' |
| 15241 |
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' |
| 15242 |
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' |
| 15243 |
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' |
| 15244 |
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' |
| 15245 |
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' |
| 15246 |
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' |
| 15247 |
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' |
| 15248 |
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' |
| 15249 |
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' |
| 15250 |
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' |
| 15251 |
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' |
| 15252 |
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' |
| 15253 |
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 15254 |
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 15255 |
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' |
| 15256 |
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' |
| 15257 |
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' |
| 15258 |
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' |
| 15259 |
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' |
| 15260 |
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' |
| 15261 |
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' |
| 15262 |
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' |
| 15263 |
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' |
| 15264 |
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' |
| 15265 |
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' |
| 15266 |
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' |
| 15267 |
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' |
| 15268 |
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' |
| 15269 |
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' |
| 15270 |
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' |
| 15271 |
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' |
| 15272 |
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' |
| 15273 |
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' |
| 15274 |
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' |
| 15275 |
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' |
| 15276 |
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' |
| 15277 |
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' |
| 15278 |
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' |
| 15279 |
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' |
| 15280 |
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' |
| 15281 |
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' |
| 15282 |
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' |
| 15283 |
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
| 15284 |
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' |
| 15285 |
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' |
| 15286 |
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 15287 |
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 15288 |
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' |
| 15289 |
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' |
| 15290 |
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
| 15291 |
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' |
| 15292 |
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
| 15293 |
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' |
| 15294 |
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
| 15295 |
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' |
| 15296 |
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' |
| 15297 |
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' |
| 15298 |
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 15299 |
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' |
| 15300 |
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' |
| 15301 |
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' |
| 15302 |
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' |
| 15303 |
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' |
| 15304 |
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' |
| 15305 |
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' |
| 15306 |
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' |
| 15307 |
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' |
| 15308 |
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' |
| 15309 |
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' |
| 15310 |
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' |
| 15311 |
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' |
| 15312 |
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' |
| 15313 |
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' |
| 15314 |
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' |
| 15315 |
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' |
| 15316 |
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' |
| 15317 |
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' |
| 15318 |
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' |
| 15319 |
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' |
| 15320 |
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' |
| 15321 |
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' |
| 15322 |
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' |
| 15323 |
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' |
| 15324 |
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' |
| 15325 |
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 15326 |
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 15327 |
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' |
| 15328 |
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' |
| 15329 |
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' |
| 15330 |
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' |
| 15331 |
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' |
| 15332 |
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' |
| 15333 |
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' |
| 15334 |
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' |
| 15335 |
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' |
| 15336 |
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' |
| 15337 |
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' |
| 15338 |
|
| 15339 |
LTCC='$LTCC' |
| 15340 |
LTCFLAGS='$LTCFLAGS' |
| 15341 |
compiler='$compiler_DEFAULT' |
| 15342 |
|
| 15343 |
# A function that is used when there is no print builtin or printf. |
| 15344 |
func_fallback_echo () |
| 15345 |
{ |
| 15346 |
eval 'cat <<_LTECHO_EOF |
| 15347 |
\$1 |
| 15348 |
_LTECHO_EOF' |
| 15349 |
} |
| 15350 |
|
| 15351 |
# Quote evaled strings. |
| 15352 |
for var in SHELL \ |
| 15353 |
ECHO \ |
| 15354 |
PATH_SEPARATOR \ |
| 15355 |
SED \ |
| 15356 |
GREP \ |
| 15357 |
EGREP \ |
| 15358 |
FGREP \ |
| 15359 |
LD \ |
| 15360 |
NM \ |
| 15361 |
LN_S \ |
| 15362 |
lt_SP2NL \ |
| 15363 |
lt_NL2SP \ |
| 15364 |
reload_flag \ |
| 15365 |
OBJDUMP \ |
| 15366 |
deplibs_check_method \ |
| 15367 |
file_magic_cmd \ |
| 15368 |
file_magic_glob \ |
| 15369 |
want_nocaseglob \ |
| 15370 |
DLLTOOL \ |
| 15371 |
sharedlib_from_linklib_cmd \ |
| 15372 |
AR \ |
| 15373 |
AR_FLAGS \ |
| 15374 |
archiver_list_spec \ |
| 15375 |
STRIP \ |
| 15376 |
RANLIB \ |
| 15377 |
CC \ |
| 15378 |
CFLAGS \ |
| 15379 |
compiler \ |
| 15380 |
lt_cv_sys_global_symbol_pipe \ |
| 15381 |
lt_cv_sys_global_symbol_to_cdecl \ |
| 15382 |
lt_cv_sys_global_symbol_to_c_name_address \ |
| 15383 |
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
| 15384 |
nm_file_list_spec \ |
| 15385 |
lt_prog_compiler_no_builtin_flag \ |
| 15386 |
lt_prog_compiler_pic \ |
| 15387 |
lt_prog_compiler_wl \ |
| 15388 |
lt_prog_compiler_static \ |
| 15389 |
lt_cv_prog_compiler_c_o \ |
| 15390 |
need_locks \ |
| 15391 |
MANIFEST_TOOL \ |
| 15392 |
DSYMUTIL \ |
| 15393 |
NMEDIT \ |
| 15394 |
LIPO \ |
| 15395 |
OTOOL \ |
| 15396 |
OTOOL64 \ |
| 15397 |
shrext_cmds \ |
| 15398 |
export_dynamic_flag_spec \ |
| 15399 |
whole_archive_flag_spec \ |
| 15400 |
compiler_needs_object \ |
| 15401 |
with_gnu_ld \ |
| 15402 |
allow_undefined_flag \ |
| 15403 |
no_undefined_flag \ |
| 15404 |
hardcode_libdir_flag_spec \ |
| 15405 |
hardcode_libdir_separator \ |
| 15406 |
exclude_expsyms \ |
| 15407 |
include_expsyms \ |
| 15408 |
file_list_spec \ |
| 15409 |
variables_saved_for_relink \ |
| 15410 |
libname_spec \ |
| 15411 |
library_names_spec \ |
| 15412 |
soname_spec \ |
| 15413 |
install_override_mode \ |
| 15414 |
finish_eval \ |
| 15415 |
old_striplib \ |
| 15416 |
striplib; do |
| 15417 |
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
| 15418 |
*[\\\\\\\`\\"\\\$]*) |
| 15419 |
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
| 15420 |
;; |
| 15421 |
*) |
| 15422 |
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 15423 |
;; |
| 15424 |
esac |
| 15425 |
done |
| 15426 |
|
| 15427 |
# Double-quote double-evaled strings. |
| 15428 |
for var in reload_cmds \ |
| 15429 |
old_postinstall_cmds \ |
| 15430 |
old_postuninstall_cmds \ |
| 15431 |
old_archive_cmds \ |
| 15432 |
extract_expsyms_cmds \ |
| 15433 |
old_archive_from_new_cmds \ |
| 15434 |
old_archive_from_expsyms_cmds \ |
| 15435 |
archive_cmds \ |
| 15436 |
archive_expsym_cmds \ |
| 15437 |
module_cmds \ |
| 15438 |
module_expsym_cmds \ |
| 15439 |
export_symbols_cmds \ |
| 15440 |
prelink_cmds \ |
| 15441 |
postlink_cmds \ |
| 15442 |
postinstall_cmds \ |
| 15443 |
postuninstall_cmds \ |
| 15444 |
finish_cmds \ |
| 15445 |
sys_lib_search_path_spec \ |
| 15446 |
sys_lib_dlsearch_path_spec; do |
| 15447 |
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
| 15448 |
*[\\\\\\\`\\"\\\$]*) |
| 15449 |
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
| 15450 |
;; |
| 15451 |
*) |
| 15452 |
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 15453 |
;; |
| 15454 |
esac |
| 15455 |
done |
| 15456 |
|
| 15457 |
ac_aux_dir='$ac_aux_dir' |
| 15458 |
xsi_shell='$xsi_shell' |
| 15459 |
lt_shell_append='$lt_shell_append' |
| 15460 |
|
| 15461 |
# See if we are running on zsh, and set the options which allow our |
| 15462 |
# commands through without removal of \ escapes INIT. |
| 15463 |
if test -n "\${ZSH_VERSION+set}" ; then |
| 15464 |
setopt NO_GLOB_SUBST |
| 15465 |
fi |
| 15466 |
|
| 15467 |
|
| 15468 |
PACKAGE='$PACKAGE' |
| 15469 |
VERSION='$VERSION' |
| 15470 |
TIMESTAMP='$TIMESTAMP' |
| 15471 |
RM='$RM' |
| 15472 |
ofile='$ofile' |
| 15473 |
|
| 15474 |
|
| 15475 |
|
| 15476 |
|
| 15477 |
_ACEOF |
| 15478 |
|
| 15479 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 15480 |
|
| 15481 |
# Handling of arguments. |
| 15482 |
for ac_config_target in $ac_config_targets |
| 15483 |
do |
| 15484 |
case $ac_config_target in |
| 15485 |
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
| 15486 |
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
| 15487 |
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
| 15488 |
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 15489 |
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
| 15490 |
"libltdl/Makefile") CONFIG_FILES="$CONFIG_FILES libltdl/Makefile" ;; |
| 15491 |
"messages/Makefile") CONFIG_FILES="$CONFIG_FILES messages/Makefile" ;; |
| 15492 |
"modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;; |
| 15493 |
"modules/core/Makefile") CONFIG_FILES="$CONFIG_FILES modules/core/Makefile" ;; |
| 15494 |
"doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
| 15495 |
"help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;; |
| 15496 |
"help/opers/Makefile") CONFIG_FILES="$CONFIG_FILES help/opers/Makefile" ;; |
| 15497 |
"help/users/Makefile") CONFIG_FILES="$CONFIG_FILES help/users/Makefile" ;; |
| 15498 |
"tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
| 15499 |
|
| 15500 |
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
| 15501 |
esac |
| 15502 |
done |
| 15503 |
|
| 15504 |
|
| 15505 |
# If the user did not use the arguments to specify the items to instantiate, |
| 15506 |
# then the envvar interface is used. Set only those that are not. |
| 15507 |
# We use the long form for the default assignment because of an extremely |
| 15508 |
# bizarre bug on SunOS 4.1.3. |
| 15509 |
if $ac_need_defaults; then |
| 15510 |
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 15511 |
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 15512 |
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 15513 |
fi |
| 15514 |
|
| 15515 |
# Have a temporary directory for convenience. Make it in the build tree |
| 15516 |
# simply because there is no reason against having it here, and in addition, |
| 15517 |
# creating and moving files from /tmp can sometimes cause problems. |
| 15518 |
# Hook for its removal unless debugging. |
| 15519 |
# Note that there is a small window in which the directory will not be cleaned: |
| 15520 |
# after its creation but before its name has been assigned to `$tmp'. |
| 15521 |
$debug || |
| 15522 |
{ |
| 15523 |
tmp= ac_tmp= |
| 15524 |
trap 'exit_status=$? |
| 15525 |
: "${ac_tmp:=$tmp}" |
| 15526 |
{ test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
| 15527 |
' 0 |
| 15528 |
trap 'as_fn_exit 1' 1 2 13 15 |
| 15529 |
} |
| 15530 |
# Create a (secure) tmp directory for tmp files. |
| 15531 |
|
| 15532 |
{ |
| 15533 |
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
| 15534 |
test -d "$tmp" |
| 15535 |
} || |
| 15536 |
{ |
| 15537 |
tmp=./conf$$-$RANDOM |
| 15538 |
(umask 077 && mkdir "$tmp") |
| 15539 |
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 15540 |
ac_tmp=$tmp |
| 15541 |
|
| 15542 |
# Set up the scripts for CONFIG_FILES section. |
| 15543 |
# No need to generate them if there are no CONFIG_FILES. |
| 15544 |
# This happens for instance with `./config.status config.h'. |
| 15545 |
if test -n "$CONFIG_FILES"; then |
| 15546 |
|
| 15547 |
|
| 15548 |
ac_cr=`echo X | tr X '\015'` |
| 15549 |
# On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 15550 |
# But we know of no other shell where ac_cr would be empty at this |
| 15551 |
# point, so we can use a bashism as a fallback. |
| 15552 |
if test "x$ac_cr" = x; then |
| 15553 |
eval ac_cr=\$\'\\r\' |
| 15554 |
fi |
| 15555 |
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 15556 |
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 15557 |
ac_cs_awk_cr='\\r' |
| 15558 |
else |
| 15559 |
ac_cs_awk_cr=$ac_cr |
| 15560 |
fi |
| 15561 |
|
| 15562 |
echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
| 15563 |
_ACEOF |
| 15564 |
|
| 15565 |
|
| 15566 |
{ |
| 15567 |
echo "cat >conf$$subs.awk <<_ACEOF" && |
| 15568 |
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 15569 |
echo "_ACEOF" |
| 15570 |
} >conf$$subs.sh || |
| 15571 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 15572 |
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
| 15573 |
ac_delim='%!_!# ' |
| 15574 |
for ac_last_try in false false false false false :; do |
| 15575 |
. ./conf$$subs.sh || |
| 15576 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 15577 |
|
| 15578 |
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 15579 |
if test $ac_delim_n = $ac_delim_num; then |
| 15580 |
break |
| 15581 |
elif $ac_last_try; then |
| 15582 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 15583 |
else |
| 15584 |
ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 15585 |
fi |
| 15586 |
done |
| 15587 |
rm -f conf$$subs.sh |
| 15588 |
|
| 15589 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 15590 |
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
| 15591 |
_ACEOF |
| 15592 |
sed -n ' |
| 15593 |
h |
| 15594 |
s/^/S["/; s/!.*/"]=/ |
| 15595 |
p |
| 15596 |
g |
| 15597 |
s/^[^!]*!// |
| 15598 |
:repl |
| 15599 |
t repl |
| 15600 |
s/'"$ac_delim"'$// |
| 15601 |
t delim |
| 15602 |
:nl |
| 15603 |
h |
| 15604 |
s/\(.\{148\}\)..*/\1/ |
| 15605 |
t more1 |
| 15606 |
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 15607 |
p |
| 15608 |
n |
| 15609 |
b repl |
| 15610 |
:more1 |
| 15611 |
s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 15612 |
p |
| 15613 |
g |
| 15614 |
s/.\{148\}// |
| 15615 |
t nl |
| 15616 |
:delim |
| 15617 |
h |
| 15618 |
s/\(.\{148\}\)..*/\1/ |
| 15619 |
t more2 |
| 15620 |
s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 15621 |
p |
| 15622 |
b |
| 15623 |
:more2 |
| 15624 |
s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 15625 |
p |
| 15626 |
g |
| 15627 |
s/.\{148\}// |
| 15628 |
t delim |
| 15629 |
' <conf$$subs.awk | sed ' |
| 15630 |
/^[^""]/{ |
| 15631 |
N |
| 15632 |
s/\n// |
| 15633 |
} |
| 15634 |
' >>$CONFIG_STATUS || ac_write_fail=1 |
| 15635 |
rm -f conf$$subs.awk |
| 15636 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 15637 |
_ACAWK |
| 15638 |
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
| 15639 |
for (key in S) S_is_set[key] = 1 |
| 15640 |
FS = "" |
| 15641 |
|
| 15642 |
} |
| 15643 |
{ |
| 15644 |
line = $ 0 |
| 15645 |
nfields = split(line, field, "@") |
| 15646 |
substed = 0 |
| 15647 |
len = length(field[1]) |
| 15648 |
for (i = 2; i < nfields; i++) { |
| 15649 |
key = field[i] |
| 15650 |
keylen = length(key) |
| 15651 |
if (S_is_set[key]) { |
| 15652 |
value = S[key] |
| 15653 |
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 15654 |
len += length(value) + length(field[++i]) |
| 15655 |
substed = 1 |
| 15656 |
} else |
| 15657 |
len += 1 + keylen |
| 15658 |
} |
| 15659 |
|
| 15660 |
print line |
| 15661 |
} |
| 15662 |
|
| 15663 |
_ACAWK |
| 15664 |
_ACEOF |
| 15665 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 15666 |
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 15667 |
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 15668 |
else |
| 15669 |
cat |
| 15670 |
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| 15671 |
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
| 15672 |
_ACEOF |
| 15673 |
|
| 15674 |
# VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 15675 |
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
| 15676 |
# trailing colons and then remove the whole line if VPATH becomes empty |
| 15677 |
# (actually we leave an empty line to preserve line numbers). |
| 15678 |
if test "x$srcdir" = x.; then |
| 15679 |
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 15680 |
h |
| 15681 |
s/// |
| 15682 |
s/^/:/ |
| 15683 |
s/[ ]*$/:/ |
| 15684 |
s/:\$(srcdir):/:/g |
| 15685 |
s/:\${srcdir}:/:/g |
| 15686 |
s/:@srcdir@:/:/g |
| 15687 |
s/^:*// |
| 15688 |
s/:*$// |
| 15689 |
x |
| 15690 |
s/\(=[ ]*\).*/\1/ |
| 15691 |
G |
| 15692 |
s/\n// |
| 15693 |
s/^[^=]*=[ ]*$// |
| 15694 |
}' |
| 15695 |
fi |
| 15696 |
|
| 15697 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 15698 |
fi # test -n "$CONFIG_FILES" |
| 15699 |
|
| 15700 |
# Set up the scripts for CONFIG_HEADERS section. |
| 15701 |
# No need to generate them if there are no CONFIG_HEADERS. |
| 15702 |
# This happens for instance with `./config.status Makefile'. |
| 15703 |
if test -n "$CONFIG_HEADERS"; then |
| 15704 |
cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
| 15705 |
BEGIN { |
| 15706 |
_ACEOF |
| 15707 |
|
| 15708 |
# Transform confdefs.h into an awk script `defines.awk', embedded as |
| 15709 |
# here-document in config.status, that substitutes the proper values into |
| 15710 |
# config.h.in to produce config.h. |
| 15711 |
|
| 15712 |
# Create a delimiter string that does not exist in confdefs.h, to ease |
| 15713 |
# handling of long lines. |
| 15714 |
ac_delim='%!_!# ' |
| 15715 |
for ac_last_try in false false :; do |
| 15716 |
ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 15717 |
if test -z "$ac_tt"; then |
| 15718 |
break |
| 15719 |
elif $ac_last_try; then |
| 15720 |
as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
| 15721 |
else |
| 15722 |
ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 15723 |
fi |
| 15724 |
done |
| 15725 |
|
| 15726 |
# For the awk script, D is an array of macro values keyed by name, |
| 15727 |
# likewise P contains macro parameters if any. Preserve backslash |
| 15728 |
# newline sequences. |
| 15729 |
|
| 15730 |
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 15731 |
sed -n ' |
| 15732 |
s/.\{148\}/&'"$ac_delim"'/g |
| 15733 |
t rset |
| 15734 |
:rset |
| 15735 |
s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 15736 |
t def |
| 15737 |
d |
| 15738 |
:def |
| 15739 |
s/\\$// |
| 15740 |
t bsnl |
| 15741 |
s/["\\]/\\&/g |
| 15742 |
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 15743 |
D["\1"]=" \3"/p |
| 15744 |
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 15745 |
d |
| 15746 |
:bsnl |
| 15747 |
s/["\\]/\\&/g |
| 15748 |
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 15749 |
D["\1"]=" \3\\\\\\n"\\/p |
| 15750 |
t cont |
| 15751 |
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 15752 |
t cont |
| 15753 |
d |
| 15754 |
:cont |
| 15755 |
n |
| 15756 |
s/.\{148\}/&'"$ac_delim"'/g |
| 15757 |
t clear |
| 15758 |
:clear |
| 15759 |
s/\\$// |
| 15760 |
t bsnlc |
| 15761 |
s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 15762 |
d |
| 15763 |
:bsnlc |
| 15764 |
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 15765 |
b cont |
| 15766 |
' <confdefs.h | sed ' |
| 15767 |
s/'"$ac_delim"'/"\\\ |
| 15768 |
"/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 15769 |
|
| 15770 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 15771 |
for (key in D) D_is_set[key] = 1 |
| 15772 |
FS = "" |
| 15773 |
} |
| 15774 |
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 15775 |
line = \$ 0 |
| 15776 |
split(line, arg, " ") |
| 15777 |
if (arg[1] == "#") { |
| 15778 |
defundef = arg[2] |
| 15779 |
mac1 = arg[3] |
| 15780 |
} else { |
| 15781 |
defundef = substr(arg[1], 2) |
| 15782 |
mac1 = arg[2] |
| 15783 |
} |
| 15784 |
split(mac1, mac2, "(") #) |
| 15785 |
macro = mac2[1] |
| 15786 |
prefix = substr(line, 1, index(line, defundef) - 1) |
| 15787 |
if (D_is_set[macro]) { |
| 15788 |
# Preserve the white space surrounding the "#". |
| 15789 |
print prefix "define", macro P[macro] D[macro] |
| 15790 |
next |
| 15791 |
} else { |
| 15792 |
# Replace #undef with comments. This is necessary, for example, |
| 15793 |
# in the case of _POSIX_SOURCE, which is predefined and required |
| 15794 |
# on some systems where configure will not decide to define it. |
| 15795 |
if (defundef == "undef") { |
| 15796 |
print "/*", prefix defundef, macro, "*/" |
| 15797 |
next |
| 15798 |
} |
| 15799 |
} |
| 15800 |
} |
| 15801 |
{ print } |
| 15802 |
_ACAWK |
| 15803 |
_ACEOF |
| 15804 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 15805 |
as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
| 15806 |
fi # test -n "$CONFIG_HEADERS" |
| 15807 |
|
| 15808 |
|
| 15809 |
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
| 15810 |
shift |
| 15811 |
for ac_tag |
| 15812 |
do |
| 15813 |
case $ac_tag in |
| 15814 |
:[FHLC]) ac_mode=$ac_tag; continue;; |
| 15815 |
esac |
| 15816 |
case $ac_mode$ac_tag in |
| 15817 |
:[FHL]*:*);; |
| 15818 |
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
| 15819 |
:[FH]-) ac_tag=-:-;; |
| 15820 |
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 15821 |
esac |
| 15822 |
ac_save_IFS=$IFS |
| 15823 |
IFS=: |
| 15824 |
set x $ac_tag |
| 15825 |
IFS=$ac_save_IFS |
| 15826 |
shift |
| 15827 |
ac_file=$1 |
| 15828 |
shift |
| 15829 |
|
| 15830 |
case $ac_mode in |
| 15831 |
:L) ac_source=$1;; |
| 15832 |
:[FH]) |
| 15833 |
ac_file_inputs= |
| 15834 |
for ac_f |
| 15835 |
do |
| 15836 |
case $ac_f in |
| 15837 |
-) ac_f="$ac_tmp/stdin";; |
| 15838 |
*) # Look for the file first in the build tree, then in the source tree |
| 15839 |
# (if the path is not absolute). The absolute path cannot be DOS-style, |
| 15840 |
# because $ac_f cannot contain `:'. |
| 15841 |
test -f "$ac_f" || |
| 15842 |
case $ac_f in |
| 15843 |
[\\/$]*) false;; |
| 15844 |
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 15845 |
esac || |
| 15846 |
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
| 15847 |
esac |
| 15848 |
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 15849 |
as_fn_append ac_file_inputs " '$ac_f'" |
| 15850 |
done |
| 15851 |
|
| 15852 |
# Let's still pretend it is `configure' which instantiates (i.e., don't |
| 15853 |
# use $as_me), people would be surprised to read: |
| 15854 |
# /* config.h. Generated by config.status. */ |
| 15855 |
configure_input='Generated from '` |
| 15856 |
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 15857 |
`' by configure.' |
| 15858 |
if test x"$ac_file" != x-; then |
| 15859 |
configure_input="$ac_file. $configure_input" |
| 15860 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 15861 |
$as_echo "$as_me: creating $ac_file" >&6;} |
| 15862 |
fi |
| 15863 |
# Neutralize special characters interpreted by sed in replacement strings. |
| 15864 |
case $configure_input in #( |
| 15865 |
*\&* | *\|* | *\\* ) |
| 15866 |
ac_sed_conf_input=`$as_echo "$configure_input" | |
| 15867 |
sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 15868 |
*) ac_sed_conf_input=$configure_input;; |
| 15869 |
esac |
| 15870 |
|
| 15871 |
case $ac_tag in |
| 15872 |
*:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 15873 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
| 15874 |
esac |
| 15875 |
;; |
| 15876 |
esac |
| 15877 |
|
| 15878 |
ac_dir=`$as_dirname -- "$ac_file" || |
| 15879 |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 15880 |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 15881 |
X"$ac_file" : 'X\(//\)$' \| \ |
| 15882 |
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 15883 |
$as_echo X"$ac_file" | |
| 15884 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 15885 |
s//\1/ |
| 15886 |
q |
| 15887 |
} |
| 15888 |
/^X\(\/\/\)[^/].*/{ |
| 15889 |
s//\1/ |
| 15890 |
q |
| 15891 |
} |
| 15892 |
/^X\(\/\/\)$/{ |
| 15893 |
s//\1/ |
| 15894 |
q |
| 15895 |
} |
| 15896 |
/^X\(\/\).*/{ |
| 15897 |
s//\1/ |
| 15898 |
q |
| 15899 |
} |
| 15900 |
s/.*/./; q'` |
| 15901 |
as_dir="$ac_dir"; as_fn_mkdir_p |
| 15902 |
ac_builddir=. |
| 15903 |
|
| 15904 |
case "$ac_dir" in |
| 15905 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 15906 |
*) |
| 15907 |
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 15908 |
# A ".." for each directory in $ac_dir_suffix. |
| 15909 |
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 15910 |
case $ac_top_builddir_sub in |
| 15911 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 15912 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 15913 |
esac ;; |
| 15914 |
esac |
| 15915 |
ac_abs_top_builddir=$ac_pwd |
| 15916 |
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 15917 |
# for backward compatibility: |
| 15918 |
ac_top_builddir=$ac_top_build_prefix |
| 15919 |
|
| 15920 |
case $srcdir in |
| 15921 |
.) # We are building in place. |
| 15922 |
ac_srcdir=. |
| 15923 |
ac_top_srcdir=$ac_top_builddir_sub |
| 15924 |
ac_abs_top_srcdir=$ac_pwd ;; |
| 15925 |
[\\/]* | ?:[\\/]* ) # Absolute name. |
| 15926 |
ac_srcdir=$srcdir$ac_dir_suffix; |
| 15927 |
ac_top_srcdir=$srcdir |
| 15928 |
ac_abs_top_srcdir=$srcdir ;; |
| 15929 |
*) # Relative name. |
| 15930 |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 15931 |
ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 15932 |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 15933 |
esac |
| 15934 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 15935 |
|
| 15936 |
|
| 15937 |
case $ac_mode in |
| 15938 |
:F) |
| 15939 |
# |
| 15940 |
# CONFIG_FILE |
| 15941 |
# |
| 15942 |
|
| 15943 |
case $INSTALL in |
| 15944 |
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 15945 |
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
| 15946 |
esac |
| 15947 |
ac_MKDIR_P=$MKDIR_P |
| 15948 |
case $MKDIR_P in |
| 15949 |
[\\/$]* | ?:[\\/]* ) ;; |
| 15950 |
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 15951 |
esac |
| 15952 |
_ACEOF |
| 15953 |
|
| 15954 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 15955 |
# If the template does not know about datarootdir, expand it. |
| 15956 |
# FIXME: This hack should be removed a few years after 2.60. |
| 15957 |
ac_datarootdir_hack=; ac_datarootdir_seen= |
| 15958 |
ac_sed_dataroot=' |
| 15959 |
/datarootdir/ { |
| 15960 |
p |
| 15961 |
q |
| 15962 |
} |
| 15963 |
/@datadir@/p |
| 15964 |
/@docdir@/p |
| 15965 |
/@infodir@/p |
| 15966 |
/@localedir@/p |
| 15967 |
/@mandir@/p' |
| 15968 |
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 15969 |
*datarootdir*) ac_datarootdir_seen=yes;; |
| 15970 |
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 15971 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 15972 |
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 15973 |
_ACEOF |
| 15974 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 15975 |
ac_datarootdir_hack=' |
| 15976 |
s&@datadir@&$datadir&g |
| 15977 |
s&@docdir@&$docdir&g |
| 15978 |
s&@infodir@&$infodir&g |
| 15979 |
s&@localedir@&$localedir&g |
| 15980 |
s&@mandir@&$mandir&g |
| 15981 |
s&\\\${datarootdir}&$datarootdir&g' ;; |
| 15982 |
esac |
| 15983 |
_ACEOF |
| 15984 |
|
| 15985 |
# Neutralize VPATH when `$srcdir' = `.'. |
| 15986 |
# Shell code in configure.ac might set extrasub. |
| 15987 |
# FIXME: do we really want to maintain this feature? |
| 15988 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 15989 |
ac_sed_extra="$ac_vpsub |
| 15990 |
$extrasub |
| 15991 |
_ACEOF |
| 15992 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 15993 |
:t |
| 15994 |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 15995 |
s|@configure_input@|$ac_sed_conf_input|;t t |
| 15996 |
s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 15997 |
s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 15998 |
s&@srcdir@&$ac_srcdir&;t t |
| 15999 |
s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 16000 |
s&@top_srcdir@&$ac_top_srcdir&;t t |
| 16001 |
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 16002 |
s&@builddir@&$ac_builddir&;t t |
| 16003 |
s&@abs_builddir@&$ac_abs_builddir&;t t |
| 16004 |
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 16005 |
s&@INSTALL@&$ac_INSTALL&;t t |
| 16006 |
s&@MKDIR_P@&$ac_MKDIR_P&;t t |
| 16007 |
$ac_datarootdir_hack |
| 16008 |
" |
| 16009 |
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 16010 |
>$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 16011 |
|
| 16012 |
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 16013 |
{ ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 16014 |
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 16015 |
"$ac_tmp/out"`; test -z "$ac_out"; } && |
| 16016 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 16017 |
which seems to be undefined. Please make sure it is defined" >&5 |
| 16018 |
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 16019 |
which seems to be undefined. Please make sure it is defined" >&2;} |
| 16020 |
|
| 16021 |
rm -f "$ac_tmp/stdin" |
| 16022 |
case $ac_file in |
| 16023 |
-) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 16024 |
*) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
| 16025 |
esac \ |
| 16026 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 16027 |
;; |
| 16028 |
:H) |
| 16029 |
# |
| 16030 |
# CONFIG_HEADER |
| 16031 |
# |
| 16032 |
if test x"$ac_file" != x-; then |
| 16033 |
{ |
| 16034 |
$as_echo "/* $configure_input */" \ |
| 16035 |
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 16036 |
} >"$ac_tmp/config.h" \ |
| 16037 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 16038 |
if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
| 16039 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 16040 |
$as_echo "$as_me: $ac_file is unchanged" >&6;} |
| 16041 |
else |
| 16042 |
rm -f "$ac_file" |
| 16043 |
mv "$ac_tmp/config.h" "$ac_file" \ |
| 16044 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 16045 |
fi |
| 16046 |
else |
| 16047 |
$as_echo "/* $configure_input */" \ |
| 16048 |
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
| 16049 |
|| as_fn_error $? "could not create -" "$LINENO" 5 |
| 16050 |
fi |
| 16051 |
# Compute "$ac_file"'s index in $config_headers. |
| 16052 |
_am_arg="$ac_file" |
| 16053 |
_am_stamp_count=1 |
| 16054 |
for _am_header in $config_headers :; do |
| 16055 |
case $_am_header in |
| 16056 |
$_am_arg | $_am_arg:* ) |
| 16057 |
break ;; |
| 16058 |
* ) |
| 16059 |
_am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| 16060 |
esac |
| 16061 |
done |
| 16062 |
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
| 16063 |
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16064 |
X"$_am_arg" : 'X\(//\)[^/]' \| \ |
| 16065 |
X"$_am_arg" : 'X\(//\)$' \| \ |
| 16066 |
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
| 16067 |
$as_echo X"$_am_arg" | |
| 16068 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 16069 |
s//\1/ |
| 16070 |
q |
| 16071 |
} |
| 16072 |
/^X\(\/\/\)[^/].*/{ |
| 16073 |
s//\1/ |
| 16074 |
q |
| 16075 |
} |
| 16076 |
/^X\(\/\/\)$/{ |
| 16077 |
s//\1/ |
| 16078 |
q |
| 16079 |
} |
| 16080 |
/^X\(\/\).*/{ |
| 16081 |
s//\1/ |
| 16082 |
q |
| 16083 |
} |
| 16084 |
s/.*/./; q'`/stamp-h$_am_stamp_count |
| 16085 |
;; |
| 16086 |
|
| 16087 |
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
| 16088 |
$as_echo "$as_me: executing $ac_file commands" >&6;} |
| 16089 |
;; |
| 16090 |
esac |
| 16091 |
|
| 16092 |
|
| 16093 |
case $ac_file$ac_mode in |
| 16094 |
"depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
| 16095 |
# Older Autoconf quotes --file arguments for eval, but not when files |
| 16096 |
# are listed without --file. Let's play safe and only enable the eval |
| 16097 |
# if we detect the quoting. |
| 16098 |
case $CONFIG_FILES in |
| 16099 |
*\'*) eval set x "$CONFIG_FILES" ;; |
| 16100 |
*) set x $CONFIG_FILES ;; |
| 16101 |
esac |
| 16102 |
shift |
| 16103 |
for mf |
| 16104 |
do |
| 16105 |
# Strip MF so we end up with the name of the file. |
| 16106 |
mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 16107 |
# Check whether this is an Automake generated Makefile or not. |
| 16108 |
# We used to match only the files named 'Makefile.in', but |
| 16109 |
# some people rename them; so instead we look at the file content. |
| 16110 |
# Grep'ing the first line is not enough: some people post-process |
| 16111 |
# each Makefile.in and add a new line on top of each file to say so. |
| 16112 |
# Grep'ing the whole file is not good either: AIX grep has a line |
| 16113 |
# limit of 2048, but all sed's we know have understand at least 4000. |
| 16114 |
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
| 16115 |
dirpart=`$as_dirname -- "$mf" || |
| 16116 |
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16117 |
X"$mf" : 'X\(//\)[^/]' \| \ |
| 16118 |
X"$mf" : 'X\(//\)$' \| \ |
| 16119 |
X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
| 16120 |
$as_echo X"$mf" | |
| 16121 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 16122 |
s//\1/ |
| 16123 |
q |
| 16124 |
} |
| 16125 |
/^X\(\/\/\)[^/].*/{ |
| 16126 |
s//\1/ |
| 16127 |
q |
| 16128 |
} |
| 16129 |
/^X\(\/\/\)$/{ |
| 16130 |
s//\1/ |
| 16131 |
q |
| 16132 |
} |
| 16133 |
/^X\(\/\).*/{ |
| 16134 |
s//\1/ |
| 16135 |
q |
| 16136 |
} |
| 16137 |
s/.*/./; q'` |
| 16138 |
else |
| 16139 |
continue |
| 16140 |
fi |
| 16141 |
# Extract the definition of DEPDIR, am__include, and am__quote |
| 16142 |
# from the Makefile without running 'make'. |
| 16143 |
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
| 16144 |
test -z "$DEPDIR" && continue |
| 16145 |
am__include=`sed -n 's/^am__include = //p' < "$mf"` |
| 16146 |
test -z "am__include" && continue |
| 16147 |
am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
| 16148 |
# Find all dependency output files, they are included files with |
| 16149 |
# $(DEPDIR) in their names. We invoke sed twice because it is the |
| 16150 |
# simplest approach to changing $(DEPDIR) to its actual value in the |
| 16151 |
# expansion. |
| 16152 |
for file in `sed -n " |
| 16153 |
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
| 16154 |
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do |
| 16155 |
# Make sure the directory exists. |
| 16156 |
test -f "$dirpart/$file" && continue |
| 16157 |
fdir=`$as_dirname -- "$file" || |
| 16158 |
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16159 |
X"$file" : 'X\(//\)[^/]' \| \ |
| 16160 |
X"$file" : 'X\(//\)$' \| \ |
| 16161 |
X"$file" : 'X\(/\)' \| . 2>/dev/null || |
| 16162 |
$as_echo X"$file" | |
| 16163 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 16164 |
s//\1/ |
| 16165 |
q |
| 16166 |
} |
| 16167 |
/^X\(\/\/\)[^/].*/{ |
| 16168 |
s//\1/ |
| 16169 |
q |
| 16170 |
} |
| 16171 |
/^X\(\/\/\)$/{ |
| 16172 |
s//\1/ |
| 16173 |
q |
| 16174 |
} |
| 16175 |
/^X\(\/\).*/{ |
| 16176 |
s//\1/ |
| 16177 |
q |
| 16178 |
} |
| 16179 |
s/.*/./; q'` |
| 16180 |
as_dir=$dirpart/$fdir; as_fn_mkdir_p |
| 16181 |
# echo "creating $dirpart/$file" |
| 16182 |
echo '# dummy' > "$dirpart/$file" |
| 16183 |
done |
| 16184 |
done |
| 16185 |
} |
| 16186 |
;; |
| 16187 |
"libtool":C) |
| 16188 |
|
| 16189 |
# See if we are running on zsh, and set the options which allow our |
| 16190 |
# commands through without removal of \ escapes. |
| 16191 |
if test -n "${ZSH_VERSION+set}" ; then |
| 16192 |
setopt NO_GLOB_SUBST |
| 16193 |
fi |
| 16194 |
|
| 16195 |
cfgfile="${ofile}T" |
| 16196 |
trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
| 16197 |
$RM "$cfgfile" |
| 16198 |
|
| 16199 |
cat <<_LT_EOF >> "$cfgfile" |
| 16200 |
#! $SHELL |
| 16201 |
|
| 16202 |
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
| 16203 |
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
| 16204 |
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 16205 |
# NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 16206 |
# |
| 16207 |
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
| 16208 |
# 2006, 2007, 2008, 2009, 2010, 2011 Free Software |
| 16209 |
# Foundation, Inc. |
| 16210 |
# Written by Gordon Matzigkeit, 1996 |
| 16211 |
# |
| 16212 |
# This file is part of GNU Libtool. |
| 16213 |
# |
| 16214 |
# GNU Libtool is free software; you can redistribute it and/or |
| 16215 |
# modify it under the terms of the GNU General Public License as |
| 16216 |
# published by the Free Software Foundation; either version 2 of |
| 16217 |
# the License, or (at your option) any later version. |
| 16218 |
# |
| 16219 |
# As a special exception to the GNU General Public License, |
| 16220 |
# if you distribute this file as part of a program or library that |
| 16221 |
# is built using GNU Libtool, you may include this file under the |
| 16222 |
# same distribution terms that you use for the rest of that program. |
| 16223 |
# |
| 16224 |
# GNU Libtool is distributed in the hope that it will be useful, |
| 16225 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16226 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16227 |
# GNU General Public License for more details. |
| 16228 |
# |
| 16229 |
# You should have received a copy of the GNU General Public License |
| 16230 |
# along with GNU Libtool; see the file COPYING. If not, a copy |
| 16231 |
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or |
| 16232 |
# obtained by writing to the Free Software Foundation, Inc., |
| 16233 |
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 16234 |
|
| 16235 |
|
| 16236 |
# The names of the tagged configurations supported by this script. |
| 16237 |
available_tags="" |
| 16238 |
|
| 16239 |
# ### BEGIN LIBTOOL CONFIG |
| 16240 |
|
| 16241 |
# Which release of libtool.m4 was used? |
| 16242 |
macro_version=$macro_version |
| 16243 |
macro_revision=$macro_revision |
| 16244 |
|
| 16245 |
# Whether or not to build static libraries. |
| 16246 |
build_old_libs=$enable_static |
| 16247 |
|
| 16248 |
# Whether or not to build shared libraries. |
| 16249 |
build_libtool_libs=$enable_shared |
| 16250 |
|
| 16251 |
# What type of objects to build. |
| 16252 |
pic_mode=$pic_mode |
| 16253 |
|
| 16254 |
# Whether or not to optimize for fast installation. |
| 16255 |
fast_install=$enable_fast_install |
| 16256 |
|
| 16257 |
# Shell to use when invoking shell scripts. |
| 16258 |
SHELL=$lt_SHELL |
| 16259 |
|
| 16260 |
# An echo program that protects backslashes. |
| 16261 |
ECHO=$lt_ECHO |
| 16262 |
|
| 16263 |
# The PATH separator for the build system. |
| 16264 |
PATH_SEPARATOR=$lt_PATH_SEPARATOR |
| 16265 |
|
| 16266 |
# The host system. |
| 16267 |
host_alias=$host_alias |
| 16268 |
host=$host |
| 16269 |
host_os=$host_os |
| 16270 |
|
| 16271 |
# The build system. |
| 16272 |
build_alias=$build_alias |
| 16273 |
build=$build |
| 16274 |
build_os=$build_os |
| 16275 |
|
| 16276 |
# A sed program that does not truncate output. |
| 16277 |
SED=$lt_SED |
| 16278 |
|
| 16279 |
# Sed that helps us avoid accidentally triggering echo(1) options like -n. |
| 16280 |
Xsed="\$SED -e 1s/^X//" |
| 16281 |
|
| 16282 |
# A grep program that handles long lines. |
| 16283 |
GREP=$lt_GREP |
| 16284 |
|
| 16285 |
# An ERE matcher. |
| 16286 |
EGREP=$lt_EGREP |
| 16287 |
|
| 16288 |
# A literal string matcher. |
| 16289 |
FGREP=$lt_FGREP |
| 16290 |
|
| 16291 |
# A BSD- or MS-compatible name lister. |
| 16292 |
NM=$lt_NM |
| 16293 |
|
| 16294 |
# Whether we need soft or hard links. |
| 16295 |
LN_S=$lt_LN_S |
| 16296 |
|
| 16297 |
# What is the maximum length of a command? |
| 16298 |
max_cmd_len=$max_cmd_len |
| 16299 |
|
| 16300 |
# Object file suffix (normally "o"). |
| 16301 |
objext=$ac_objext |
| 16302 |
|
| 16303 |
# Executable file suffix (normally ""). |
| 16304 |
exeext=$exeext |
| 16305 |
|
| 16306 |
# whether the shell understands "unset". |
| 16307 |
lt_unset=$lt_unset |
| 16308 |
|
| 16309 |
# turn spaces into newlines. |
| 16310 |
SP2NL=$lt_lt_SP2NL |
| 16311 |
|
| 16312 |
# turn newlines into spaces. |
| 16313 |
NL2SP=$lt_lt_NL2SP |
| 16314 |
|
| 16315 |
# convert \$build file names to \$host format. |
| 16316 |
to_host_file_cmd=$lt_cv_to_host_file_cmd |
| 16317 |
|
| 16318 |
# convert \$build files to toolchain format. |
| 16319 |
to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
| 16320 |
|
| 16321 |
# An object symbol dumper. |
| 16322 |
OBJDUMP=$lt_OBJDUMP |
| 16323 |
|
| 16324 |
# Method to check whether dependent libraries are shared objects. |
| 16325 |
deplibs_check_method=$lt_deplibs_check_method |
| 16326 |
|
| 16327 |
# Command to use when deplibs_check_method = "file_magic". |
| 16328 |
file_magic_cmd=$lt_file_magic_cmd |
| 16329 |
|
| 16330 |
# How to find potential files when deplibs_check_method = "file_magic". |
| 16331 |
file_magic_glob=$lt_file_magic_glob |
| 16332 |
|
| 16333 |
# Find potential files using nocaseglob when deplibs_check_method = "file_magic". |
| 16334 |
want_nocaseglob=$lt_want_nocaseglob |
| 16335 |
|
| 16336 |
# DLL creation program. |
| 16337 |
DLLTOOL=$lt_DLLTOOL |
| 16338 |
|
| 16339 |
# Command to associate shared and link libraries. |
| 16340 |
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd |
| 16341 |
|
| 16342 |
# The archiver. |
| 16343 |
AR=$lt_AR |
| 16344 |
|
| 16345 |
# Flags to create an archive. |
| 16346 |
AR_FLAGS=$lt_AR_FLAGS |
| 16347 |
|
| 16348 |
# How to feed a file listing to the archiver. |
| 16349 |
archiver_list_spec=$lt_archiver_list_spec |
| 16350 |
|
| 16351 |
# A symbol stripping program. |
| 16352 |
STRIP=$lt_STRIP |
| 16353 |
|
| 16354 |
# Commands used to install an old-style archive. |
| 16355 |
RANLIB=$lt_RANLIB |
| 16356 |
old_postinstall_cmds=$lt_old_postinstall_cmds |
| 16357 |
old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 16358 |
|
| 16359 |
# Whether to use a lock for old archive extraction. |
| 16360 |
lock_old_archive_extraction=$lock_old_archive_extraction |
| 16361 |
|
| 16362 |
# A C compiler. |
| 16363 |
LTCC=$lt_CC |
| 16364 |
|
| 16365 |
# LTCC compiler flags. |
| 16366 |
LTCFLAGS=$lt_CFLAGS |
| 16367 |
|
| 16368 |
# Take the output of nm and produce a listing of raw symbols and C names. |
| 16369 |
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 16370 |
|
| 16371 |
# Transform the output of nm in a proper C declaration. |
| 16372 |
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 16373 |
|
| 16374 |
# Transform the output of nm in a C name address pair. |
| 16375 |
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 16376 |
|
| 16377 |
# Transform the output of nm in a C name address pair when lib prefix is needed. |
| 16378 |
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix |
| 16379 |
|
| 16380 |
# Specify filename containing input files for \$NM. |
| 16381 |
nm_file_list_spec=$lt_nm_file_list_spec |
| 16382 |
|
| 16383 |
# The root where to search for dependent libraries,and in which our libraries should be installed. |
| 16384 |
lt_sysroot=$lt_sysroot |
| 16385 |
|
| 16386 |
# The name of the directory that contains temporary libtool files. |
| 16387 |
objdir=$objdir |
| 16388 |
|
| 16389 |
# Used to examine libraries when file_magic_cmd begins with "file". |
| 16390 |
MAGIC_CMD=$MAGIC_CMD |
| 16391 |
|
| 16392 |
# Must we lock files when doing compilation? |
| 16393 |
need_locks=$lt_need_locks |
| 16394 |
|
| 16395 |
# Manifest tool. |
| 16396 |
MANIFEST_TOOL=$lt_MANIFEST_TOOL |
| 16397 |
|
| 16398 |
# Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
| 16399 |
DSYMUTIL=$lt_DSYMUTIL |
| 16400 |
|
| 16401 |
# Tool to change global to local symbols on Mac OS X. |
| 16402 |
NMEDIT=$lt_NMEDIT |
| 16403 |
|
| 16404 |
# Tool to manipulate fat objects and archives on Mac OS X. |
| 16405 |
LIPO=$lt_LIPO |
| 16406 |
|
| 16407 |
# ldd/readelf like tool for Mach-O binaries on Mac OS X. |
| 16408 |
OTOOL=$lt_OTOOL |
| 16409 |
|
| 16410 |
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
| 16411 |
OTOOL64=$lt_OTOOL64 |
| 16412 |
|
| 16413 |
# Old archive suffix (normally "a"). |
| 16414 |
libext=$libext |
| 16415 |
|
| 16416 |
# Shared library suffix (normally ".so"). |
| 16417 |
shrext_cmds=$lt_shrext_cmds |
| 16418 |
|
| 16419 |
# The commands to extract the exported symbol list from a shared archive. |
| 16420 |
extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 16421 |
|
| 16422 |
# Variables whose values should be saved in libtool wrapper scripts and |
| 16423 |
# restored at link time. |
| 16424 |
variables_saved_for_relink=$lt_variables_saved_for_relink |
| 16425 |
|
| 16426 |
# Do we need the "lib" prefix for modules? |
| 16427 |
need_lib_prefix=$need_lib_prefix |
| 16428 |
|
| 16429 |
# Do we need a version for libraries? |
| 16430 |
need_version=$need_version |
| 16431 |
|
| 16432 |
# Library versioning type. |
| 16433 |
version_type=$version_type |
| 16434 |
|
| 16435 |
# Shared library runtime path variable. |
| 16436 |
runpath_var=$runpath_var |
| 16437 |
|
| 16438 |
# Shared library path variable. |
| 16439 |
shlibpath_var=$shlibpath_var |
| 16440 |
|
| 16441 |
# Is shlibpath searched before the hard-coded library search path? |
| 16442 |
shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 16443 |
|
| 16444 |
# Format of library name prefix. |
| 16445 |
libname_spec=$lt_libname_spec |
| 16446 |
|
| 16447 |
# List of archive names. First name is the real one, the rest are links. |
| 16448 |
# The last name is the one that the linker finds with -lNAME |
| 16449 |
library_names_spec=$lt_library_names_spec |
| 16450 |
|
| 16451 |
# The coded name of the library, if different from the real name. |
| 16452 |
soname_spec=$lt_soname_spec |
| 16453 |
|
| 16454 |
# Permission mode override for installation of shared libraries. |
| 16455 |
install_override_mode=$lt_install_override_mode |
| 16456 |
|
| 16457 |
# Command to use after installation of a shared archive. |
| 16458 |
postinstall_cmds=$lt_postinstall_cmds |
| 16459 |
|
| 16460 |
# Command to use after uninstallation of a shared archive. |
| 16461 |
postuninstall_cmds=$lt_postuninstall_cmds |
| 16462 |
|
| 16463 |
# Commands used to finish a libtool library installation in a directory. |
| 16464 |
finish_cmds=$lt_finish_cmds |
| 16465 |
|
| 16466 |
# As "finish_cmds", except a single script fragment to be evaled but |
| 16467 |
# not shown. |
| 16468 |
finish_eval=$lt_finish_eval |
| 16469 |
|
| 16470 |
# Whether we should hardcode library paths into libraries. |
| 16471 |
hardcode_into_libs=$hardcode_into_libs |
| 16472 |
|
| 16473 |
# Compile-time system search path for libraries. |
| 16474 |
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 16475 |
|
| 16476 |
# Run-time system search path for libraries. |
| 16477 |
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 16478 |
|
| 16479 |
# Whether dlopen is supported. |
| 16480 |
dlopen_support=$enable_dlopen |
| 16481 |
|
| 16482 |
# Whether dlopen of programs is supported. |
| 16483 |
dlopen_self=$enable_dlopen_self |
| 16484 |
|
| 16485 |
# Whether dlopen of statically linked programs is supported. |
| 16486 |
dlopen_self_static=$enable_dlopen_self_static |
| 16487 |
|
| 16488 |
# Commands to strip libraries. |
| 16489 |
old_striplib=$lt_old_striplib |
| 16490 |
striplib=$lt_striplib |
| 16491 |
|
| 16492 |
|
| 16493 |
# The linker used to build libraries. |
| 16494 |
LD=$lt_LD |
| 16495 |
|
| 16496 |
# How to create reloadable object files. |
| 16497 |
reload_flag=$lt_reload_flag |
| 16498 |
reload_cmds=$lt_reload_cmds |
| 16499 |
|
| 16500 |
# Commands used to build an old-style archive. |
| 16501 |
old_archive_cmds=$lt_old_archive_cmds |
| 16502 |
|
| 16503 |
# A language specific compiler. |
| 16504 |
CC=$lt_compiler |
| 16505 |
|
| 16506 |
# Is the compiler the GNU compiler? |
| 16507 |
with_gcc=$GCC |
| 16508 |
|
| 16509 |
# Compiler flag to turn off builtin functions. |
| 16510 |
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
| 16511 |
|
| 16512 |
# Additional compiler flags for building library objects. |
| 16513 |
pic_flag=$lt_lt_prog_compiler_pic |
| 16514 |
|
| 16515 |
# How to pass a linker flag through the compiler. |
| 16516 |
wl=$lt_lt_prog_compiler_wl |
| 16517 |
|
| 16518 |
# Compiler flag to prevent dynamic linking. |
| 16519 |
link_static_flag=$lt_lt_prog_compiler_static |
| 16520 |
|
| 16521 |
# Does compiler simultaneously support -c and -o options? |
| 16522 |
compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
| 16523 |
|
| 16524 |
# Whether or not to add -lc for building shared libraries. |
| 16525 |
build_libtool_need_lc=$archive_cmds_need_lc |
| 16526 |
|
| 16527 |
# Whether or not to disallow shared libs when runtime libs are static. |
| 16528 |
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
| 16529 |
|
| 16530 |
# Compiler flag to allow reflexive dlopens. |
| 16531 |
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 16532 |
|
| 16533 |
# Compiler flag to generate shared objects directly from archives. |
| 16534 |
whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 16535 |
|
| 16536 |
# Whether the compiler copes with passing no objects directly. |
| 16537 |
compiler_needs_object=$lt_compiler_needs_object |
| 16538 |
|
| 16539 |
# Create an old-style archive from a shared archive. |
| 16540 |
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 16541 |
|
| 16542 |
# Create a temporary old-style archive to link instead of a shared archive. |
| 16543 |
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 16544 |
|
| 16545 |
# Commands used to build a shared archive. |
| 16546 |
archive_cmds=$lt_archive_cmds |
| 16547 |
archive_expsym_cmds=$lt_archive_expsym_cmds |
| 16548 |
|
| 16549 |
# Commands used to build a loadable module if different from building |
| 16550 |
# a shared archive. |
| 16551 |
module_cmds=$lt_module_cmds |
| 16552 |
module_expsym_cmds=$lt_module_expsym_cmds |
| 16553 |
|
| 16554 |
# Whether we are building with GNU ld or not. |
| 16555 |
with_gnu_ld=$lt_with_gnu_ld |
| 16556 |
|
| 16557 |
# Flag that allows shared libraries with undefined symbols to be built. |
| 16558 |
allow_undefined_flag=$lt_allow_undefined_flag |
| 16559 |
|
| 16560 |
# Flag that enforces no undefined symbols. |
| 16561 |
no_undefined_flag=$lt_no_undefined_flag |
| 16562 |
|
| 16563 |
# Flag to hardcode \$libdir into a binary during linking. |
| 16564 |
# This must work even if \$libdir does not exist |
| 16565 |
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 16566 |
|
| 16567 |
# Whether we need a single "-rpath" flag with a separated argument. |
| 16568 |
hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 16569 |
|
| 16570 |
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 16571 |
# DIR into the resulting binary. |
| 16572 |
hardcode_direct=$hardcode_direct |
| 16573 |
|
| 16574 |
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 16575 |
# DIR into the resulting binary and the resulting library dependency is |
| 16576 |
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the |
| 16577 |
# library is relocated. |
| 16578 |
hardcode_direct_absolute=$hardcode_direct_absolute |
| 16579 |
|
| 16580 |
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 16581 |
# into the resulting binary. |
| 16582 |
hardcode_minus_L=$hardcode_minus_L |
| 16583 |
|
| 16584 |
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 16585 |
# into the resulting binary. |
| 16586 |
hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 16587 |
|
| 16588 |
# Set to "yes" if building a shared library automatically hardcodes DIR |
| 16589 |
# into the library and all subsequent libraries and executables linked |
| 16590 |
# against it. |
| 16591 |
hardcode_automatic=$hardcode_automatic |
| 16592 |
|
| 16593 |
# Set to yes if linker adds runtime paths of dependent libraries |
| 16594 |
# to runtime path list. |
| 16595 |
inherit_rpath=$inherit_rpath |
| 16596 |
|
| 16597 |
# Whether libtool must link a program against all its dependency libraries. |
| 16598 |
link_all_deplibs=$link_all_deplibs |
| 16599 |
|
| 16600 |
# Set to "yes" if exported symbols are required. |
| 16601 |
always_export_symbols=$always_export_symbols |
| 16602 |
|
| 16603 |
# The commands to list exported symbols. |
| 16604 |
export_symbols_cmds=$lt_export_symbols_cmds |
| 16605 |
|
| 16606 |
# Symbols that should not be listed in the preloaded symbols. |
| 16607 |
exclude_expsyms=$lt_exclude_expsyms |
| 16608 |
|
| 16609 |
# Symbols that must always be exported. |
| 16610 |
include_expsyms=$lt_include_expsyms |
| 16611 |
|
| 16612 |
# Commands necessary for linking programs (against libraries) with templates. |
| 16613 |
prelink_cmds=$lt_prelink_cmds |
| 16614 |
|
| 16615 |
# Commands necessary for finishing linking programs. |
| 16616 |
postlink_cmds=$lt_postlink_cmds |
| 16617 |
|
| 16618 |
# Specify filename containing input files. |
| 16619 |
file_list_spec=$lt_file_list_spec |
| 16620 |
|
| 16621 |
# How to hardcode a shared library path into an executable. |
| 16622 |
hardcode_action=$hardcode_action |
| 16623 |
|
| 16624 |
# ### END LIBTOOL CONFIG |
| 16625 |
|
| 16626 |
_LT_EOF |
| 16627 |
|
| 16628 |
case $host_os in |
| 16629 |
aix3*) |
| 16630 |
cat <<\_LT_EOF >> "$cfgfile" |
| 16631 |
# AIX sometimes has problems with the GCC collect2 program. For some |
| 16632 |
# reason, if we set the COLLECT_NAMES environment variable, the problems |
| 16633 |
# vanish in a puff of smoke. |
| 16634 |
if test "X${COLLECT_NAMES+set}" != Xset; then |
| 16635 |
COLLECT_NAMES= |
| 16636 |
export COLLECT_NAMES |
| 16637 |
fi |
| 16638 |
_LT_EOF |
| 16639 |
;; |
| 16640 |
esac |
| 16641 |
|
| 16642 |
|
| 16643 |
ltmain="$ac_aux_dir/ltmain.sh" |
| 16644 |
|
| 16645 |
|
| 16646 |
# We use sed instead of cat because bash on DJGPP gets confused if |
| 16647 |
# if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 16648 |
# text mode, it properly converts lines to CR/LF. This bash problem |
| 16649 |
# is reportedly fixed, but why not run on old versions too? |
| 16650 |
sed '$q' "$ltmain" >> "$cfgfile" \ |
| 16651 |
|| (rm -f "$cfgfile"; exit 1) |
| 16652 |
|
| 16653 |
if test x"$xsi_shell" = xyes; then |
| 16654 |
sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ |
| 16655 |
func_dirname ()\ |
| 16656 |
{\ |
| 16657 |
\ case ${1} in\ |
| 16658 |
\ */*) func_dirname_result="${1%/*}${2}" ;;\ |
| 16659 |
\ * ) func_dirname_result="${3}" ;;\ |
| 16660 |
\ esac\ |
| 16661 |
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ |
| 16662 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 16663 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 16664 |
test 0 -eq $? || _lt_function_replace_fail=: |
| 16665 |
|
| 16666 |
|
| 16667 |
sed -e '/^func_basename ()$/,/^} # func_basename /c\ |
| 16668 |
func_basename ()\ |
| 16669 |
{\ |
| 16670 |
\ func_basename_result="${1##*/}"\ |
| 16671 |
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ |
| 16672 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 16673 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 16674 |
test 0 -eq $? || _lt_function_replace_fail=: |
| 16675 |
|
| 16676 |
|
| 16677 |
sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ |
| 16678 |
func_dirname_and_basename ()\ |
| 16679 |
{\ |
| 16680 |
\ case ${1} in\ |
| 16681 |
\ */*) func_dirname_result="${1%/*}${2}" ;;\ |
| 16682 |
\ * ) func_dirname_result="${3}" ;;\ |
| 16683 |
\ esac\ |
| 16684 |
\ func_basename_result="${1##*/}"\ |
| 16685 |
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ |
| 16686 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 16687 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 16688 |
test 0 -eq $? || _lt_function_replace_fail=: |
| 16689 |
|
| 16690 |
|
| 16691 |
sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ |
| 16692 |
func_stripname ()\ |
| 16693 |
{\ |
| 16694 |
\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ |
| 16695 |
\ # positional parameters, so assign one to ordinary parameter first.\ |
| 16696 |
\ func_stripname_result=${3}\ |
| 16697 |
\ func_stripname_result=${func_stripname_result#"${1}"}\ |
| 16698 |
\ func_stripname_result=${func_stripname_result%"${2}"}\ |
| 16699 |
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ |
| 16700 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 16701 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 16702 |
test 0 -eq $? || _lt_function_replace_fail=: |
| 16703 |
|
| 16704 |
|
| 16705 |
sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ |
| 16706 |
func_split_long_opt ()\ |
| 16707 |
{\ |
| 16708 |
\ func_split_long_opt_name=${1%%=*}\ |
| 16709 |
\ func_split_long_opt_arg=${1#*=}\ |
| 16710 |
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ |
| 16711 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 16712 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 16713 |
test 0 -eq $? || _lt_function_replace_fail=: |
| 16714 |
|
| 16715 |
|
| 16716 |
sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ |
| 16717 |
func_split_short_opt ()\ |
| 16718 |
{\ |
| 16719 |
\ func_split_short_opt_arg=${1#??}\ |
| 16720 |
\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ |
| 16721 |
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ |
| 16722 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 16723 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 16724 |
test 0 -eq $? || _lt_function_replace_fail=: |
| 16725 |
|
| 16726 |
|
| 16727 |
sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ |
| 16728 |
func_lo2o ()\ |
| 16729 |
{\ |
| 16730 |
\ case ${1} in\ |
| 16731 |
\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ |
| 16732 |
\ *) func_lo2o_result=${1} ;;\ |
| 16733 |
\ esac\ |
| 16734 |
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ |
| 16735 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 16736 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 16737 |
test 0 -eq $? || _lt_function_replace_fail=: |
| 16738 |
|
| 16739 |
|
| 16740 |
sed -e '/^func_xform ()$/,/^} # func_xform /c\ |
| 16741 |
func_xform ()\ |
| 16742 |
{\ |
| 16743 |
func_xform_result=${1%.*}.lo\ |
| 16744 |
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ |
| 16745 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 16746 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 16747 |
test 0 -eq $? || _lt_function_replace_fail=: |
| 16748 |
|
| 16749 |
|
| 16750 |
sed -e '/^func_arith ()$/,/^} # func_arith /c\ |
| 16751 |
func_arith ()\ |
| 16752 |
{\ |
| 16753 |
func_arith_result=$(( $* ))\ |
| 16754 |
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ |
| 16755 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 16756 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 16757 |
test 0 -eq $? || _lt_function_replace_fail=: |
| 16758 |
|
| 16759 |
|
| 16760 |
sed -e '/^func_len ()$/,/^} # func_len /c\ |
| 16761 |
func_len ()\ |
| 16762 |
{\ |
| 16763 |
func_len_result=${#1}\ |
| 16764 |
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ |
| 16765 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 16766 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 16767 |
test 0 -eq $? || _lt_function_replace_fail=: |
| 16768 |
|
| 16769 |
fi |
| 16770 |
|
| 16771 |
if test x"$lt_shell_append" = xyes; then |
| 16772 |
sed -e '/^func_append ()$/,/^} # func_append /c\ |
| 16773 |
func_append ()\ |
| 16774 |
{\ |
| 16775 |
eval "${1}+=\\${2}"\ |
| 16776 |
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ |
| 16777 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 16778 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 16779 |
test 0 -eq $? || _lt_function_replace_fail=: |
| 16780 |
|
| 16781 |
|
| 16782 |
sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ |
| 16783 |
func_append_quoted ()\ |
| 16784 |
{\ |
| 16785 |
\ func_quote_for_eval "${2}"\ |
| 16786 |
\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ |
| 16787 |
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ |
| 16788 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 16789 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 16790 |
test 0 -eq $? || _lt_function_replace_fail=: |
| 16791 |
|
| 16792 |
|
| 16793 |
# Save a `func_append' function call where possible by direct use of '+=' |
| 16794 |
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ |
| 16795 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 16796 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 16797 |
test 0 -eq $? || _lt_function_replace_fail=: |
| 16798 |
else |
| 16799 |
# Save a `func_append' function call even when '+=' is not available |
| 16800 |
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ |
| 16801 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 16802 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 16803 |
test 0 -eq $? || _lt_function_replace_fail=: |
| 16804 |
fi |
| 16805 |
|
| 16806 |
if test x"$_lt_function_replace_fail" = x":"; then |
| 16807 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 |
| 16808 |
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} |
| 16809 |
fi |
| 16810 |
|
| 16811 |
|
| 16812 |
mv -f "$cfgfile" "$ofile" || |
| 16813 |
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| 16814 |
chmod +x "$ofile" |
| 16815 |
|
| 16816 |
;; |
| 16817 |
|
| 16818 |
esac |
| 16819 |
done # for ac_tag |
| 16820 |
|
| 16821 |
|
| 16822 |
as_fn_exit 0 |
| 16823 |
_ACEOF |
| 16824 |
ac_clean_files=$ac_clean_files_save |
| 16825 |
|
| 16826 |
test $ac_write_fail = 0 || |
| 16827 |
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| 16828 |
|
| 16829 |
|
| 16830 |
# configure is writing to config.log, and then calls config.status. |
| 16831 |
# config.status does its own redirection, appending to config.log. |
| 16832 |
# Unfortunately, on DOS this fails, as config.log is still kept open |
| 16833 |
# by configure, so config.status won't be able to write to it; its |
| 16834 |
# output is simply discarded. So we exec the FD to /dev/null, |
| 16835 |
# effectively closing config.log, so it can be properly (re)opened and |
| 16836 |
# appended to by config.status. When coming back to configure, we |
| 16837 |
# need to make the FD available again. |
| 16838 |
if test "$no_create" != yes; then |
| 16839 |
ac_cs_success=: |
| 16840 |
ac_config_status_args= |
| 16841 |
test "$silent" = yes && |
| 16842 |
ac_config_status_args="$ac_config_status_args --quiet" |
| 16843 |
exec 5>/dev/null |
| 16844 |
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 16845 |
exec 5>>config.log |
| 16846 |
# Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 16847 |
# would make configure fail if this is the last instruction. |
| 16848 |
$ac_cs_success || as_fn_exit 1 |
| 16849 |
fi |
| 16850 |
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 16851 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 16852 |
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 16853 |
fi |
| 16854 |
|